| Package | org.flintparticles.twoD.actions |
| Class | public class TweenToZone |
| Inheritance | TweenToZone ActionBase Object |
| Implements | Initializer |
Default MXML Propertyzone
| Property | Defined By | ||
|---|---|---|---|
![]() | priority : int
Returns a default priority of 0 for this action. | ActionBase | |
| zone : Zone2D
The zone for the particle's position when its energy is 0. | TweenToZone | ||
| Method | Defined By | ||
|---|---|---|---|
TweenToZone(zone:Zone2D)
The constructor creates a TweenToZone action for use by an emitter. | TweenToZone | ||
addedToEmitter(emitter:Emitter):void [override]
| TweenToZone | ||
| TweenToZone | |||
removedFromEmitter(emitter:Emitter):void [override] | TweenToZone | ||
[override]
Calculates the current position of the particle based on it's energy. | TweenToZone | ||
| zone | property |
zone:Zone2DThe zone for the particle's position when its energy is 0.
public function get zone():Zone2D public function set zone(value:Zone2D):void| TweenToZone | () | Constructor |
public function TweenToZone(zone:Zone2D)The constructor creates a TweenToZone action for use by an emitter. To add a TweenToZone to all particles created by an emitter, use the emitter's addAction method.
Parameterszone:Zone2D — The zone for the particle's position when its energy is 0.
|
See also
| addedToEmitter | () | method |
| initialize | () | method |
public function initialize(emitter:Emitter, particle:Particle):void
Parameters
emitter:Emitter | |
particle:Particle |
| removedFromEmitter | () | method |
| update | () | method |
override public function update(emitter:Emitter, particle:Particle, time:Number):voidCalculates the current position of the particle based on it's energy.
This method is called by the emitter and need not be called by the user.
Parameters
emitter:Emitter — The Emitter that created the particle.
| |
particle:Particle — The particle to be updated.
| |
time:Number — The duration of the frame - used for time based updates.
|
See also