//Imports TransitionManager class along with all available transition types and easing functions.
import fl.transitions.*;
import fl.transitions.easing.*;
// Declare global variables
var tMgr:TransitionManager;
// apply the transition to MovieClip object
tMgr = new TransitionManager(MovieClip);
tMgr.startTransition({type:Iris, direction:Transition.OUT, duration:2, easing:Regular.easeOut});
tMgr.addEventListener("allTransitionsOutDone", whenDone); // when the transition done, execute whenDone function
function whenDone(e:Event):void {
//some actions here
}
/*
transition types available:
Wipe
Photo
Blinds
Iris
PixelDissolve
Zoom
*/
No comments:
Post a Comment