Packageorg.flintparticles.twoD.activities
Classpublic class FollowMouse
InheritanceFollowMouse Inheritance ActivityBase Inheritance Object

The FollowMouse activity causes the emitter to follow the position of the mouse pointer. The effect is for it to emit particles from the mouse pointer location.



Public Properties
 PropertyDefined By
 Inheritedpriority : int
Returns a default priority of 0 for this activity.
ActivityBase
  renderer : DisplayObject
The display object whose coordinate system the mouse position is converted to.
FollowMouse
Protected Properties
 PropertyDefined By
 Inherited_priority : int = 0
ActivityBase
Public Methods
 MethodDefined By
  
FollowMouse(renderer:DisplayObject = null)
The constructor creates a FollowMouse activity for use by an emitter.
FollowMouse
 Inherited
addedToEmitter(emitter:Emitter):void
This method does nothing.
ActivityBase
 Inherited
initialize(emitter:Emitter):void
This method does nothing.
ActivityBase
 Inherited
This method does nothing.
ActivityBase
  
update(emitter:Emitter, time:Number):void
[override] This method does nothing.
FollowMouse
Property Detail
rendererproperty
renderer:DisplayObject

The display object whose coordinate system the mouse position is converted to. This is usually the renderer for the particle system created by the emitter.


Implementation
    public function get renderer():DisplayObject
    public function set renderer(value:DisplayObject):void
Constructor Detail
FollowMouse()Constructor
public function FollowMouse(renderer:DisplayObject = null)

The constructor creates a FollowMouse activity for use by an emitter. To add a FollowMouse to an emitter, use the emitter's addActvity method.

Parameters
renderer:DisplayObject (default = null) — The display object whose coordinate system the mouse position is converted to. This is usually the renderer for the particle system created by the emitter.

See also

Method Detail
update()method
override public function update(emitter:Emitter, time:Number):void

This method does nothing. Derived classes override this method to alter the state of the emitter every frame.

Parameters

emitter:Emitter — The Emitter.
 
time:Number — The duration of the frame - used for time based updates.