FieldSweeper.shapeFlag

Availability

FieldSweeper component version 1.0

Usage

instance.shapeFlag

Description

Property; indicates whether the exact shape of the sweeper movie clips are used to determine whether they are crossing a particle, or if the bounding box of the sweeper is used. Setting shapeFlag to false may lose precision, but can speed up execution time if you have many particles and the sweeper is a complex shape. This is the same as the shapeFlag parameter in the hitTestPoint() function. It is true by default.

Example

The following code sets the shapeFlag property to false.

myFieldSweeper.shapeFlag = false;