| Package | org.flintparticles.particles |
| Class | public class Particle |
| Property | Defined by | ||
|---|---|---|---|
| age : Number = 0
The age of the particle, in seconds.
| Particle | ||
| angVelocity : Number = 0
The angular velocity of the particle in radians per second.
| Particle | ||
| color : uint = 0xFFFFFFFF
The 32bit ARGB color of the particle.
| Particle | ||
| colorTransform : ColorTransform [read-only]
A ColorTransform object that converts white to the colour of the particle.
| Particle | ||
| dictionary : Dictionary [read-only]
The dictionary object enables actions and activities to add additional properties to the particle.
| Particle | ||
| energy : Number = 1
The energy of the particle.
| Particle | ||
| image : DisplayObject = null
The DisplayObject used to display the image.
| Particle | ||
| isDead : Boolean = false
Whether the particle is dead and should be removed from the stage.
| Particle | ||
| lifetime : Number = 0
The lifetime of the particle, in seconds.
| Particle | ||
| matrixTransform : Matrix [read-only]
A transformation matrix for the position, scale and rotation of the particle.
| Particle | ||
| rotation : Number = 0
The rotation of the particle in radians.
| Particle | ||
| scale : Number = 1
The scale of the particle ( 1 is normal size ).
| Particle | ||
| spaceSortX : uint
The position in the emitter's horizontal spacial sorted array
| Particle | ||
| velX : Number = 0
The x coordinate of the velocity of the particle in pixels per second.
| Particle | ||
| velY : Number = 0
The y coordinate of the velocity of the particle in pixels per second.
| Particle | ||
| x : Number = 0
The x coordinate of the particle in pixels.
| Particle | ||
| y : Number = 0
The y coordinate of the particle in pixels.
| Particle | ||
| Method | Defined by | ||
|---|---|---|---|
|
Particle()
Creates a particle.
| Particle | ||
|
initialize():void
Sets the particles properties to their default values.
| Particle | ||
| age | property |
public var age:Number = 0The age of the particle, in seconds.
| angVelocity | property |
public var angVelocity:Number = 0The angular velocity of the particle in radians per second.
| color | property |
public var color:uint = 0xFFFFFFFFThe 32bit ARGB color of the particle. The initial value is 0xFFFFFFFF (white).
| colorTransform | property |
colorTransform:ColorTransform [read-only]A ColorTransform object that converts white to the colour of the particle.
Implementation public function get colorTransform():ColorTransform
| dictionary | property |
dictionary:Dictionary [read-only]The dictionary object enables actions and activities to add additional properties to the particle. Any object adding properties to the particle should use a reference to itself as the dictionary key, thus ensuring it doesn't clash with other object's properties. If multiple properties are needed, the dictionary value can be an object with a number of properties.
Implementation public function get dictionary():Dictionary
| energy | property |
public var energy:Number = 1The energy of the particle.
| image | property |
public var image:DisplayObject = nullThe DisplayObject used to display the image.
| isDead | property |
public var isDead:Boolean = falseWhether the particle is dead and should be removed from the stage.
| lifetime | property |
public var lifetime:Number = 0The lifetime of the particle, in seconds.
| matrixTransform | property |
matrixTransform:Matrix [read-only]A transformation matrix for the position, scale and rotation of the particle.
Implementation public function get matrixTransform():Matrix
| rotation | property |
public var rotation:Number = 0The rotation of the particle in radians.
| scale | property |
public var scale:Number = 1The scale of the particle ( 1 is normal size ).
| spaceSortX | property |
public var spaceSortX:uintThe position in the emitter's horizontal spacial sorted array
| velX | property |
public var velX:Number = 0The x coordinate of the velocity of the particle in pixels per second.
| velY | property |
public var velY:Number = 0The y coordinate of the velocity of the particle in pixels per second.
| x | property |
public var x:Number = 0The x coordinate of the particle in pixels.
| y | property |
public var y:Number = 0The y coordinate of the particle in pixels.
| Particle | () | constructor |
public function Particle()Creates a particle. Alternatively particles can be reused by using the ParticleCreator to create and manage them. Usually the emitter will create the particles and the user doesn't need to create them.
| initialize | () | method |
public function initialize():voidSets the particles properties to their default values.