PGemitter._totalparticles Property

Availability

ActionScript 2.0; Flash Player 6

Since

Partigen 1.0

Usage

PGemitter._totalparticles : Number

Description

Property, read/write; The total amount of particles created in the MovieClip. This is a read only value that keeps track of how many particles were created so far by any emitter in any MovieClip. This is a property of ANY MovieClip that has been an _emissiontarget.

Example

The following example shows how to get the total amount of particles that were created inside of a MovieClip container:

var cont:MovieClip = this.createEmptyMovieClip('pcontainer', 0);
Partigen.createEmitter(this, 'my_em1', 1, cont); //create 3 new emitters
Partigen.createEmitter(this, 'my_em2', 2, cont);
Partigen.createEmitter(this, 'my_em3', 3, cont);
Partigen.setAllEmitters('start');
trace(cont._totalparticles);

See Also

PGemitter._total


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