| Package | org.flintparticles.twoD.activities |
| Class | public class FollowMouse |
| Inheritance | FollowMouse ActivityBase Object |
| Property | Defined By | ||
|---|---|---|---|
![]() | priority : 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 | ||
| Method | Defined By | ||
|---|---|---|---|
FollowMouse(renderer:DisplayObject = null)
The constructor creates a FollowMouse activity for use by
an emitter. | FollowMouse | ||
![]() | addedToEmitter(emitter:Emitter):void
This method does nothing. | ActivityBase | |
![]() | initialize(emitter:Emitter):void
This method does nothing. | ActivityBase | |
![]() | removedFromEmitter(emitter:Emitter):void
This method does nothing. | ActivityBase | |
[override]
This method does nothing. | FollowMouse | ||
| renderer | property |
renderer:DisplayObjectThe display object whose coordinate system the mouse position is converted to. This is usually the renderer for the particle system created by the emitter.
public function get renderer():DisplayObject public function set renderer(value:DisplayObject):void| 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.
Parametersrenderer: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
| update | () | method |
override public function update(emitter:Emitter, time:Number):voidThis 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.
|