If you are using this effect on the timeline you can easily set the parameters in the component inspector inside of Flash CS3 or Flash CS4 (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.

Below the methods for this effect.
| Method | Parameter | Description |
|---|---|---|
| init() | start_mc:MovieClip, end_mc:MovieClip, duration:Number, direction:Number, ease:String, refreshFrame:Boolean |
MovieClip the transition will start with Movieclip the trasition will end with Time in frames the transition will take Direction the transition will move ease setting for moving-in transition (easy demo here) If true, the filter will redraw every frame (i.e. for video) |
| removeFilter() | none | Remove the filter from stage |
Example:
| // add filter on stage var myFilter:FoldTransitionEffectAS3 = new FoldTransitionEffectAS3(); addChild(myFilter); // init the filter with parameter myFilter.init(img01_mc, img02_mc, 75, "l->r", "easeInOutSine", false); // set a listener to get an event when the transition in done myFilter.addEventListener( FoldTransitionEffectAS3.ANIMATION_DONE, animationDone); function animationDone(e:Event){ trace("animationDone"); } |
The example files delivered with the filter contain ActionScript examples.