If you are using this effect on the timeline you can easily set the parameters in the component inspector inside of Flash 8 or Flash CS3 (what is a component inspector?).
To see what results you get from changing any of these options please click Try Yourself and play around with the seetings.

| Animation Modes | ||
|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
To intilize the filter pass the parameters above with the init-Method.
| Method | Parameter | Description |
|---|---|---|
| init() | start_mc:MovieClip, end_mc:MovieClip, tileCreateSpeed:Number, tileAnimationSpeed:Boolean, tileWidth:Number, tileHeight:Number, animationMode:String, flipDirection:String |
MovieClip the transition will start with MovieClip the transition will end with Sets the speed of creating the tiles in frames Sets the duration the tiles take to flip sets the height of a tile sets the height of a tile see above direction of fipping |
| removeFilter() | none | Stops the generated animation and sets the TargetMovieClip visible |
Example:
| // attach filter on stage var myFilter:MovieClip = this.attachMovie("FlipTransitionEffectAS2", "FlipTransitionEffectAS2", 1); // init the filter with parameter myFilter.init(img1_mc, img2_mc, 10, 20, 40, 40, "Mode7", "L->R"); // set a listener to get an event when the transition in done var eventListener = new Object(); eventListener.onComplete = function(){ trace("transition done"); } myFilter.addEventListener("onComplete",eventListener); |
The example files delivered with the filter contain ActionScript examples.