| Package | org.flintparticles.twoD.actions |
| Class | public class TweenToZone |
| Inheritance | TweenToZone ActionBase |
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
This method does nothing.
| ActionBase | |
![]() |
removedFromEmitter(emitter:Emitter):void
This method does nothing.
| ActionBase | |
|
Calculates the current position of the particle based on it's energy.
| TweenToZone | ||
| zone | property |
zone:Zone2D [read-write]The zone for the particle's position when its energy is 0.
Implementation 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
| update | () | method |
public override 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.
Parametersemitter: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