PGemitter._active Property

Availability

ActionScript 2.0; Flash Player 6

Since

Partigen 1.0

Usage

PGemitter._active : Boolean

Description

Property, read only; Is the emitter currently creating particles. This is a read only value that is set to true when the emitter starts and false when the emitter stops.

If the emitter has never been started since it was created, _active will return undefined.

Example

The fallowing example traces the value of _active after starting and stopping:

Partigen.createEmitter(this, 'my_em', 0); //create a new emitter with all the defaults
my_em._x = my_em._y = 200; //set the emitters x&y position to 200 so we can see it
trace(my_em._active); //traces undefined
my_em.start();
trace(my_em._active); //traces true
my_em.stop();
trace(my_em._active); //traces false

See Also

PGemitter.start(), PGemitter.stop()


Documentation generated by BLDoc Community Edition from B-Line Express.