FieldSweeper.emitterType

Availability

FieldSweeper component version 1.0

Usage

instance.emitterType

Description

Property; A string enumeration indicating the bounding area from which particles are emitted when a field is generated. Can be "rectangle" or "oval". If set to 'rectangle', particles are placed inside the rectangle created by the position and size of the component. The 'oval' setting is similar to rectangle, except particles are kept inside the ellipse with a bounding box set to the width/height of the component on the stage. Use the gridSize, gridSizeRandom, and gridStaggered properties to specify spacing of particles inside the field.

Example

The following code sets the emitter type to generate particles from an ellipse 400 x 100:

myFieldSweeper.setSize(400,100);
myFieldSweeper.emitterType = "oval";