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, tileCreateSpeed:Number, tileAnimationSpeed:Boolean, tileWidth:Number, tileHeight:Number, animationMode:String |
Select the MovieClip you apply this effect to Sets the speed of creating the tiles in frames Sets the duration the tiles take flending from alpha = 0 to alpha = 100 in frames Sets the width of the tile in pixel Sets the height of the tile in pixel Sets the direction of the transition |
| 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, "mode1"); // 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.