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.

Below the parameter options for this effect.
| Property | Type | Description |
|---|---|---|
| Start MovieClip | MovieClip | Sets the start MovieClip of the transition |
| End MovieClip | MovieClip | Sets the end MovieClip of the transition |
| Duration | Number Min: 4 Max: 9999 |
Sets the duration of the transition in frames |
To intilize the filter pass the parameters above with the init-Method.
| Method | Parameter | Description |
|---|---|---|
| init | start_mc:MovieClip end_mc:MovieClip duration:Number |
See table above |
To kill the generated animation use the kill method. Note: All calculating processes will be stopped and the source TragetMovieClip will set to visible, but the filter will remain on stage. To remove the filter please use the removeMovieClip method.
| Method | Parameter | Description |
|---|---|---|
| kill | none | Stops the generated animation and sets the TargetMovieClip visible |
Example:
| // attach filter on stage var pixelFilter:MovieClip = this.attachMovie("PixelationEffectAS2", "PixelationEffectAS2", 1); // init the filter with parameter pixelFilter.init(img1_mc, img2_mc, 50); // set a listener to get an event when the transition in done var eventListener = new Object(); eventListener.onComplete = function(){ trace("transition done"); } pixelFilter.addEventListener("onComplete",eventListener); |
The example files delivered with the filter contain ActionScript examples.