FieldSweeper.sweepers

Availability

FieldSweeper component version 1.0

Usage

instance.sweepers

Description

Property; an array of DisplayObjects that set off the reactions of each particle when crossing over it. Use this property to manually set sweeper objects in code, or use the sweeperInstanceNames property to set the names of sweeper objects already on the stage.

Example

The following code sets the sweepers.

myFieldSweeper.sweepers = [getChildByName("sweeper1"), getChildByName("sweeper2")];