| Package | org.flintparticles.common.events |
| Class | public class ParticleEvent |
| Inheritance | ParticleEvent flash.events.Event |
| Property | Defined By | ||
|---|---|---|---|
| BOUNDING_BOX_COLLISION : String = boundingBoxCollision [static]
The event dispatched by an emitter when a particle collides with another particle. | ParticleEvent | ||
| otherObject : *
The other object involved in the event. | ParticleEvent | ||
| particle : Particle
The particle to which the event relates. | ParticleEvent | ||
| PARTICLE_ADDED : String = particleAdded [static]
The event dispatched by an emitter when a pre-existing particle is added to it. | ParticleEvent | ||
| PARTICLE_CREATED : String = particleCreated [static]
The event dispatched by an emitter when a particle is created. | ParticleEvent | ||
| PARTICLE_DEAD : String = particleDead [static]
The event dispatched by an emitter when a particle dies. | ParticleEvent | ||
| PARTICLES_COLLISION : String = particlesCollision [static]
The event dispatched by an emitter when a particle collides with another particle. | ParticleEvent | ||
| ZONE_COLLISION : String = zoneCollision [static]
The event dispatched by an emitter when a particle collides with a zone. | ParticleEvent | ||
| Method | Defined By | ||
|---|---|---|---|
ParticleEvent(type:String, particle:Particle = null, bubbles:Boolean = false, cancelable:Boolean = false)
The constructor creates a ParticleEvent object. | ParticleEvent | ||
clone():Event [override]
Creates a copy of this event. | ParticleEvent | ||
| BOUNDING_BOX_COLLISION | property |
public static var BOUNDING_BOX_COLLISION:String = boundingBoxCollisionThe event dispatched by an emitter when a particle collides with another particle.
| otherObject | property |
public var otherObject:*The other object involved in the event. This may be null.
| particle | property |
public var particle:ParticleThe particle to which the event relates.
| PARTICLE_ADDED | property |
public static var PARTICLE_ADDED:String = particleAddedThe event dispatched by an emitter when a pre-existing particle is added to it.
| PARTICLE_CREATED | property |
public static var PARTICLE_CREATED:String = particleCreatedThe event dispatched by an emitter when a particle is created.
| PARTICLE_DEAD | property |
public static var PARTICLE_DEAD:String = particleDeadThe event dispatched by an emitter when a particle dies.
| PARTICLES_COLLISION | property |
public static var PARTICLES_COLLISION:String = particlesCollisionThe event dispatched by an emitter when a particle collides with another particle.
| ZONE_COLLISION | property |
public static var ZONE_COLLISION:String = zoneCollisionThe event dispatched by an emitter when a particle collides with a zone.
| ParticleEvent | () | Constructor |
public function ParticleEvent(type:String, particle:Particle = null, bubbles:Boolean = false, cancelable:Boolean = false)The constructor creates a ParticleEvent object.
Parameterstype:String — The type of the event, accessible as Event.type.
| |
particle:Particle (default = null) — The particle to which teh event relates.
| |
bubbles:Boolean (default = false) — Determines whether the Event object participates
in the bubbling stage of the event flow. The default value is false.
| |
cancelable:Boolean (default = false) — Determines whether the Event object can be
canceled. The default values is false.
|
| clone | () | method |
override public function clone():EventCreates a copy of this event.
ReturnsEvent — The copy of this event.
|