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

| Animation Modes | ||
|---|---|---|
![]() |
||
| Method | Parameter | Description |
|---|---|---|
| init | target_mc:MovieClip, duration:Number, tileFadeDuration:Number, tileWidth:Number, tileHeight:Number, animationMode:String direction:String refreshEveryFrame:Boolean |
Select the MovieClip you apply this effect to Total duration of animation (in frames) Sets the duration a individial tiles to fade (in frames) Sets the width of the tile in pixel Sets the height of the tile in pixel Sets the animation mode of the transition Sets whether the TargetMovieclip should animate in or out If true, the filter will redraw every frame (i.e. for video) |
| removeFilter() | none | Stops the generated animation and sets the TargetMovieClip visible |
Example:
| // attach filter on stage var maskFilter:MovieClip = this.attachMovie("MaskTransitionEffectAS2", "MaskTransitionEffectAS2", 1); // init the filter with parameter maskFilter.init(img1_mc, 50, 15, 30, 30, "mode9", "in", false); // set a listener to get an event when the transition in done var eventListener = new Object(); eventListener.onComplete = function(){ trace("transition done"); } maskFilter.addEventListener("onComplete",eventListener); |
The example files delivered with the filter contain ActionScript examples both for AS2 and AS3.