Squeeze transition

ActionScript Class Name mx.transitions.Squeeze

Parameters

dimension An integer that indicates the Squeeze effect should be horizontal (0) or vertical (1).

Description

A transition effect: Scales the movie clip object horizontally or vertically.

This class is used by specifying mx.transitions.Squeeze as a transObject.type parameter for the TransitionManager class.

Example

The following code creates an instance of TransitionManager that applies the Squeeze transition with a dimension integer specified as vertical (1). The content target of the transition is the movie clip img1_mc. The TransitionManager applies a direction of mx.transitions.Transition.IN over a duration of 2 seconds with an Elastic easing effect in the direction of easeOut.

import mx.transitions.*;
import mx.transitions.easing.*;
TransitionManager.start(img1_mc, {type:Squeeze, direction:Transition.IN, duration:2, easing:Elastic.easeOut, dimension:1});