FieldSweeper.fieldGeneration

Availability

FieldSweeper component version 1.0

Usage

instance.fieldGeneration

Description

Property; an enumeration indicating how the field of particles is generated. The choices are generate, particulator, and selected. When generating the field automatically, particle movie clips are drawn randomly from a pool set in the particleMcPool property. Changing this property clears the field and generates a new one via generateNewField().

generate : Use grid settings to automatically generate the field when the movie is run.

particulator : Use the particulator on the stage set with the particulatorInstance property to build a field of particles on each frame.

selected : Use the set of 'selected' movie clip instances as set by the particleInstanceNames property.

Example

The following code sets up a field to be generated:

myFieldSweeper.gridSize = 10;
myFieldSweeper.particleMcPool = ["myParticle1", "myParticle2"];
myFieldSweeper.fieldGeneration = "generate";