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 parameter options for this effect.
| Property | Type | Description |
|---|---|---|
| xPosition | Number [read / write] |
Sets the x-position of the lens (relative to the source Movieclip) |
| yPosition | Number [read / write] |
Sets the y-position of the lens (relative to the source Movieclip) |
| radius | Number [read / write] |
Sets the radius of the lens |
| lenseStrength | Number [read / write] Min: 0.1 Max: 50 |
Set the strength of the lens |
| edgeWidth | Number [read / write] Min: 0 Max: 10 |
Sets the edge of the lens in pixel |
| refreshEveryFrame | Boolean [read / write] |
If true, the filter will be drawn every frame (i.e. for video) |
Below the methods for this effect.
| Method | Parameter | Description |
|---|---|---|
| init() | target_mc:MovieClip, xPos:Number, yPos:Boolean, radius:Number, strength:Number, edge:Number, coursorSensetive:Boolean, refreshEveryFrame:Boolean, |
See underneath how to use the init method |
| refresh() | none | Manual redraw the filter |
| removeFilter() | none | Stops the generated animation and removes the filter from stage |
Example:
| // attach filter on stage var lensFilter:MovieClip = this.attachMovie("LensEffectAS2", "LensEffectAS2", 1); // init the filter with parameter lensFilter.init(img1_mc, 50, 50, 100, 5, 0, false, false); |
The example files delivered with the filter contain ActionScript examples.