Package | com.desuade.partigen.particles |
Class | public dynamic class BasicParticle |
Inheritance | BasicParticle ![]() |
Implements | IBasicParticle |
Subclasses | Particle |
Language Version : | ActionScript 3 |
Since : | 08.05.2009 |
Runtime Versions : | AIR 1.0, Flash Player 9.0.0 |
Property | Defined By | ||
---|---|---|---|
classPool : MultiPool [static]
This is the MultiPool that stores all the object pools for particle classes. | BasicParticle | ||
emitter : BasicEmitter [read-only]
The parent emitter that emitted this particle. | BasicParticle | ||
group : Array
This holds the particles inside of the group. | BasicParticle | ||
id : int [read-only]
The unique id of the particle. | BasicParticle | ||
isbuilt : Boolean = false
This is used by the emitter and pools to determine if the controllers, groups, bitmaps, etc have already been built. | BasicParticle | ||
isclean : Boolean = true
This is used by the emitter and pools to determine if/how the particle has been used before in memory. | BasicParticle | ||
life : Number
The life of the particle: how long the particle will live for. | BasicParticle |
Method | Defined By | ||
---|---|---|---|
Creates a new particle. | BasicParticle | ||
kill(... args):void
This instantly kills the particle and dispatches a "DIED" event. | BasicParticle |
classPool | property |
public static var classPool:MultiPool
This is the MultiPool that stores all the object pools for particle classes.
emitter | property |
emitter:BasicEmitter
[read-only] The parent emitter that emitted this particle.
public function get emitter():BasicEmitter
group | property |
public var group:Array
This holds the particles inside of the group.
id | property |
id:int
[read-only] The unique id of the particle.
public function get id():int
isbuilt | property |
public var isbuilt:Boolean = false
This is used by the emitter and pools to determine if the controllers, groups, bitmaps, etc have already been built.
isclean | property |
public var isclean:Boolean = true
This is used by the emitter and pools to determine if/how the particle has been used before in memory.
life | property |
public var life:Number
The life of the particle: how long the particle will live for. This also effects the duration of controller tweens.
BasicParticle | () | Constructor |
public function BasicParticle()
Creates a new particle. This should normally not be called; use emitter.emit()
instead of this.
As of v2.1, Particles act as containers for the "actual particles" used from the library. This allows any class/symbol to be used without having to be extended from Particle. It also adopts grouping.
See also
kill | () | method |
public function kill(... args):void
This instantly kills the particle and dispatches a "DIED" event.
Parameters
... args |