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 methods for this effect.
| Method | Parameter | Description |
|---|---|---|
| init() | start_mc:MovieClip, duration:Number, refreshFrame:Boolean |
MovieClip the transition will apply to Time in frames the trasition will take If true, the filter will redraw every frame (i.e. for video) |
| removeFilter() | none | Remove the filter from stage |
Example:
| // create effect instance var effect:DreamSequenceEffectAS3 = new DreamSequenceEffectAS3(); // init with parameter effect.init(img04_mc, 75, false); // add to stage addChild(effect); // add callback listener effect.addEventListener(DreamSequenceEffectAS3.ANIMATION_DONE, _onAnimationDone); // callback function function _onAnimationDone(e:Event):void { trace("onAnimationDone"); } |
The example files delivered with the filter contain ActionScript examples.