| Package | org.flintparticles.twoD.actions |
| Class | public class TweenPosition |
| Inheritance | TweenPosition ActionBase Object |
| Property | Defined By | ||
|---|---|---|---|
| endX : Number
The X value for the particle's position when its energy is 0. | TweenPosition | ||
| endY : Number
The y value for the particle's position when its energy is 0. | TweenPosition | ||
![]() | priority : int
Returns a default priority of 0 for this action. | ActionBase | |
| startX : Number
The x position for the particle's position when its energy is 1. | TweenPosition | ||
| startY : Number
The y position for the particle's position when its energy is 1. | TweenPosition | ||
| Method | Defined By | ||
|---|---|---|---|
TweenPosition(startX:Number = 0, startY:Number = 0, endX:Number = 0, endY:Number = 0)
The constructor creates a TweenPosition action for use by an emitter. | TweenPosition | ||
![]() | addedToEmitter(emitter:Emitter):void
This method does nothing. | ActionBase | |
![]() | removedFromEmitter(emitter:Emitter):void
This method does nothing. | ActionBase | |
[override]
Calculates the current position of the particle based on it's energy. | TweenPosition | ||
| endX | property |
endX:NumberThe X value for the particle's position when its energy is 0.
public function get endX():Number public function set endX(value:Number):void| endY | property |
endY:NumberThe y value for the particle's position when its energy is 0.
public function get endY():Number public function set endY(value:Number):void| startX | property |
startX:NumberThe x position for the particle's position when its energy is 1.
public function get startX():Number public function set startX(value:Number):void| startY | property |
startY:NumberThe y position for the particle's position when its energy is 1.
public function get startY():Number public function set startY(value:Number):void| TweenPosition | () | Constructor |
public function TweenPosition(startX:Number = 0, startY:Number = 0, endX:Number = 0, endY:Number = 0)The constructor creates a TweenPosition action for use by an emitter. To add a TweenPosition to all particles created by an emitter, use the emitter's addAction method.
ParametersstartX:Number (default = 0) — The x value for the particle's position when its energy is 1.
| |
startY:Number (default = 0) — The y value for the particle's position when its energy is 1.
| |
endX:Number (default = 0) — The x value of the particle's position when its energy is 0.
| |
endY:Number (default = 0) — The y value of the particle's position when its energy is 0.
|
See also
| 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