Instances of the ActionBase class should not be directly created because the ActionBase class itself simply implements the Action interface with default methods that do nothing.
Developers creating custom actions may either extend the ActionBase class or implement the Action interface directly. Classes that extend the ActionBase class need only to implement their own functionality for the methods they want to use, leaving other methods with their default empty implementations.
See also
| Property | Defined By | ||
|---|---|---|---|
| priority : int
Returns a default priority of 0 for this action. | ActionBase | ||
| Property | Defined By | ||
|---|---|---|---|
| _priority : int = 0 | ActionBase | ||
| Method | Defined By | ||
|---|---|---|---|
The constructor creates an ActionBase object. | ActionBase | ||
addedToEmitter(emitter:Emitter):void
This method does nothing. | ActionBase | ||
removedFromEmitter(emitter:Emitter):void
This method does nothing. | ActionBase | ||
This method does nothing. | ActionBase | ||
| _priority | property |
protected var _priority:int = 0| priority | property |
priority:intReturns a default priority of 0 for this action. Derived classes override this method if they want a different default priority.
public function get priority():int public function set priority(value:int):voidSee also
| ActionBase | () | Constructor |
public function ActionBase()The constructor creates an ActionBase object. But you shouldn't use it directly because the ActionBase class is abstract.
| addedToEmitter | () | method |
public function addedToEmitter(emitter:Emitter):voidThis method does nothing. Some derived classes override this method to perform actions when the action is added to an emitter.
Parameters
emitter:Emitter — The Emitter that the Action was added to.
|
See also
| removedFromEmitter | () | method |
public function removedFromEmitter(emitter:Emitter):voidThis method does nothing. Some derived classes override this method to perform actions when the action is removed from the emitter.
Parameters
emitter:Emitter — The Emitter that the Action was removed from.
|
See also
| update | () | method |
public function update(emitter:Emitter, particle:Particle, time:Number):voidThis method does nothing. All derived classes override this method to update each particle every frame.
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