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
| Method | Defined by | ||
|---|---|---|---|
|
The constructor creates an ActionBase object.
| ActionBase | ||
|
addedToEmitter(emitter:Emitter):void
This method does nothing.
| ActionBase | ||
|
getDefaultPriority():Number
Returns a default priority of 0 for this action.
| ActionBase | ||
|
removedFromEmitter(emitter:Emitter):void
This method does nothing.
| ActionBase | ||
|
This method does nothing.
| ActionBase | ||
| 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.
Parametersemitter:Emitter — The Emitter that the Action was added to.
|
See also
| getDefaultPriority | () | method |
public function getDefaultPriority():NumberReturns a default priority of 0 for this action. Derived classes override this method if they want a different default priority.
ReturnsNumber |
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.
Parametersemitter: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.
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