Packageorg.flintparticles.twoD.activities
Classpublic class MoveEmitter
InheritanceMoveEmitter Inheritance ActivityBase Inheritance Object

The MoveEmitter activity moves the emitter at a constant velocity.



Public Properties
 PropertyDefined By
 Inheritedpriority : int
Returns a default priority of 0 for this activity.
ActivityBase
  x : Number
The x coordinate of the velocity to move the emitter, in pixels per second
MoveEmitter
  y : Number
The y coordinate of the velocity to move the emitter, in pixels per second
MoveEmitter
Protected Properties
 PropertyDefined By
 Inherited_priority : int = 0
ActivityBase
Public Methods
 MethodDefined By
  
MoveEmitter(x:Number = 0, y:Number = 0)
The constructor creates a MoveEmitter activity for use by an emitter.
MoveEmitter
 Inherited
addedToEmitter(emitter:Emitter):void
This method does nothing.
ActivityBase
 Inherited
initialize(emitter:Emitter):void
This method does nothing.
ActivityBase
 Inherited
This method does nothing.
ActivityBase
  
update(emitter:Emitter, time:Number):void
[override] This method does nothing.
MoveEmitter
Property Detail
xproperty
x:Number

The x coordinate of the velocity to move the emitter, in pixels per second


Implementation
    public function get x():Number
    public function set x(value:Number):void
yproperty 
y:Number

The y coordinate of the velocity to move the emitter, in pixels per second


Implementation
    public function get y():Number
    public function set y(value:Number):void
Constructor Detail
MoveEmitter()Constructor
public function MoveEmitter(x:Number = 0, y:Number = 0)

The constructor creates a MoveEmitter activity for use by an emitter. To add a MoveEmitter to an emitter, use the emitter's addActvity method.

Parameters
x:Number (default = 0) — The x coordinate of the velocity to move the emitter, in pixels per second.
 
y:Number (default = 0) — The y coordinate of the velocity to move the emitter, in pixels per second.

See also

Method Detail
update()method
override public function update(emitter:Emitter, time:Number):void

This method does nothing. Derived classes override this method to alter the state of the emitter every frame.

Parameters

emitter:Emitter — The Emitter.
 
time:Number — The duration of the frame - used for time based updates.