Packageorg.flintparticles.common.initializers
Classpublic class MouseEventHandlers
InheritanceMouseEventHandlers Inheritance InitializerBase Inheritance Object

The MouseEventHandlers Initializer sets event handlers to listen for the mouseOver and mouseOut events on each particle. To use this initializer, you must use a DisplayObjectRenderer, use an InteractiveObject as the image for each particle, and set the mouseChildren property of the renderer to true.



Public Properties
 PropertyDefined By
  clickHandler : Function
The mouseClick event handler.
MouseEventHandlers
  downHandler : Function
The mouseDown event handler.
MouseEventHandlers
  outHandler : Function
The mouseOut event handler.
MouseEventHandlers
  overHandler : Function
The mouseOver event handler.
MouseEventHandlers
 Inheritedpriority : int
Returns a default priority of 0 for this action.
InitializerBase
  upHandler : Function
The mouseUp event handler.
MouseEventHandlers
Protected Properties
 PropertyDefined By
 Inherited_priority : int = 0
InitializerBase
Public Methods
 MethodDefined By
  
The constructor creates a MassInit initializer for use by an emitter.
MouseEventHandlers
  
addedToEmitter(emitter:Emitter):void
[override] Listens for particles to die and removes the mouse event listeners from them when this occurs.
MouseEventHandlers
  
initialize(emitter:Emitter, particle:Particle):void
[override] This method does nothing.
MouseEventHandlers
  
[override] Stops listening for particles to die.
MouseEventHandlers
Property Detail
clickHandlerproperty
clickHandler:Function

The mouseClick event handler.


Implementation
    public function get clickHandler():Function
    public function set clickHandler(value:Function):void
downHandlerproperty 
downHandler:Function

The mouseDown event handler.


Implementation
    public function get downHandler():Function
    public function set downHandler(value:Function):void
outHandlerproperty 
outHandler:Function

The mouseOut event handler.


Implementation
    public function get outHandler():Function
    public function set outHandler(value:Function):void
overHandlerproperty 
overHandler:Function

The mouseOver event handler.


Implementation
    public function get overHandler():Function
    public function set overHandler(value:Function):void
upHandlerproperty 
upHandler:Function

The mouseUp event handler.


Implementation
    public function get upHandler():Function
    public function set upHandler(value:Function):void
Constructor Detail
MouseEventHandlers()Constructor
public function MouseEventHandlers()

The constructor creates a MassInit initializer for use by an emitter. To add a MassInit to all particles created by an emitter, use the emitter's addInitializer method.

See also

Method Detail
addedToEmitter()method
override public function addedToEmitter(emitter:Emitter):void

Listens for particles to die and removes the mouse event listeners from them when this occurs.

Parameters

emitter:Emitter

initialize()method 
override public function initialize(emitter:Emitter, particle:Particle):void

This method does nothing. All derived classes override this method to initialize each particle created by the emitter.

Parameters

emitter:Emitter
 
particle:Particle

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

Stops listening for particles to die.

Parameters

emitter:Emitter