Packageorg.flintparticles.common.behaviours
Interfacepublic interface Behaviour

The Behaviour interface is the base for the Action, Initializer and Activity interfaces.



Public Properties
 PropertyDefined By
  priority : int
The priority property is used to order the execution of behaviours.
Behaviour
Public Methods
 MethodDefined By
  
addedToEmitter(emitter:Emitter):void
The addedToEmitter method is called by the emitter when the Behaviour is added to it.
Behaviour
  
The removedFromEmitter method is called by the emitter when the Behaviour is removed from it.
Behaviour
Property Detail
priorityproperty
priority:int

The priority property is used to order the execution of behaviours.

The behaviours within the Flint library use 0 as the default priority. Some behaviours that need to be called early have priorities of 10 or 20. Behaviours that need to be called late have priorities of -10 or -20.

For example, the move action has a priority of -20 because the movement should be performed last, after other actions have made changes to the particle's velocity.


Implementation
    public function get priority():int
    public function set priority(value:int):void
Method Detail
addedToEmitter()method
public function addedToEmitter(emitter:Emitter):void

The addedToEmitter method is called by the emitter when the Behaviour is added to it. It is an opportunity for a behaviour to do any initializing that is relative to the emitter. Only a few behaviours make use of this method. It is called by the emitter and need not be called by the user.

Parameters

emitter:Emitter — The Emitter that the Behaviour was added to.

removedFromEmitter()method 
public function removedFromEmitter(emitter:Emitter):void

The removedFromEmitter method is called by the emitter when the Behaviour is removed from it. It is an opportunity for a behaviour to do any finalizing that is relative to the emitter. Only a few behaviours make use of this method. It is called by the emitter and need not be called by the user.

Parameters

emitter:Emitter — The Emitter that the Behaviour was removed from.