Instances of the InitializerBase class should not be directly created because the InitializerBase class itself simply implements the Initializer interface with default methods that do nothing.
Developers creating custom initializers may either extend the InitializerBase class or implement the Initializer interface directly. Classes that extend the InitializerBase 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.
| InitializerBase | ||
| Property | Defined by | ||
|---|---|---|---|
| _priority : int = 0 | InitializerBase | ||
| Method | Defined by | ||
|---|---|---|---|
|
The constructor creates an Initializer object.
| InitializerBase | ||
|
addedToEmitter(emitter:Emitter):void
This method does nothing.
| InitializerBase | ||
|
This method does nothing.
| InitializerBase | ||
|
removedFromEmitter(emitter:Emitter):void
This method does nothing.
| InitializerBase | ||
| _priority | property |
protected var _priority:int = 0
| priority | property |
priority:int [read-write]Returns a default priority of 0 for this action. Derived classes overrid ethis method if they want a different default priority.
Implementation public function get priority():int
public function set priority(value:int):void
See also
| InitializerBase | () | constructor |
public function InitializerBase()The constructor creates an Initializer object. But you shouldn't use it directly because the InitializerBase 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 initializer is added to an emitter.
Parametersemitter:Emitter |
See also
| initialize | () | method |
public function initialize(emitter:Emitter, particle:Particle):voidThis method does nothing. All derived classes override this method to initialize each particle created by the emitter.
Parametersemitter:Emitter |
|
particle:Particle |
See also
| removedFromEmitter | () | method |
public function removedFromEmitter(emitter:Emitter):voidThis method does nothing. Some derived classes override this method to perform actions when the initializer is removed from the emitter.
Parametersemitter:Emitter |
See also