![]() |
![]() ![]() |
FieldSweeper component version 1.0
instance.particulatorMcPool
Property; an array of linkage ids for movie clips that are used as particles. The component randomly chooses one of the movie clips in this array each time it needs to create a particle in the field. This array can be set in the custom component inspector UI, in the 'particle appearance' pane. To set the linkage identifier for a movie clip, select it in the library, right-click and bring up the 'Linkage...' dialog. In ActionScript 2, the component looks for the 'Identifier' field. In ActionScript 3, it uses the value in 'Class'. Make sure 'Export in first frame' is checked, or the particles may not appear when you publish the swf.
The following code tells the component to use 3 different particle movie clips.
myFieldSweeper.particleMcPool = ["p1", "p2", "p3"];
![]() ![]() |
|