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.

Below the methods for this effect.
| Method | Parameter | Description |
|---|---|---|
| init() | start_mc:MovieClip, end_mc:MovieClip, speed:Number, direction:Number, targetPoint:String, easeIn:String, easeOut:String |
MovieClip the transition will start with MovieClip the transition will end with Time in frames the trasition will take Direction of the transition Point where to transition will move to ease setting for moving-in transition (easy demo here) ease setting for moving-out transition (easy demo here) |
| removeFilter() | none | Remove the filter from stage |
Example:
| // attach filter on stage var myFilter:MovieClip = this.attachMovie("DrainTransitionEffectAS2", "DrainTransitionEffectAS2", 1); // init the filter with parameter myFilter.init(img1_mc, img2_mc, 50, "in", "M", "easeInOutBounce", "easeInOutBounce"); // 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.