Rotate transition

ActionScript Class Name mx.transitions.Rotate

Parameters

ccw A Boolean value: false for clockwise rotation; true for counter-clockwise rotation.

degrees An integer that indicates the number of degrees the object is to be rotated. The recommended range is 1 to 9999. For example, a degrees setting of 1080 would rotate the object completely three times.

Description

A transition effect: Rotates the movie clip object.

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

Example

The following code creates an instance of TransitionManager that applies the Rotate transition clockwise 720 degrees (two full revolutions). The content target of the transition is the movie clip img1_mc. The TransitionManager instance applies a direction of mx.transitions.Transition.IN over a duration of 3 seconds with an easing set to Strong.easeInOut so that the transition starts slowly, speeds up, and then ends slowly.

import mx.transitions.*;
import mx.transitions.easing.*;
TransitionManager.start(img1_mc, {type:Rotate, direction:Transition.IN, duration:3, easing:Strong.easeInOut, ccw:false, degrees:720});