Packageorg.flintparticles.twoD.activities
Classpublic class FollowDisplayObject
InheritanceFollowDisplayObject Inheritance ActivityBase Inheritance Object

The FollowDisplayObject activity causes the emitter to follow the position and rotation of a DisplayObject. The purpose is for the emitter to emit particles from the location of the DisplayObject.



Public Properties
 PropertyDefined By
  displayObject : DisplayObject
The display object that the emitter follows.
FollowDisplayObject
 Inheritedpriority : int
Returns a default priority of 0 for this activity.
ActivityBase
  renderer : DisplayObject
The DisplayObject whose coordinate system the DisplayObject's position is converted to.
FollowDisplayObject
Protected Properties
 PropertyDefined By
 Inherited_priority : int = 0
ActivityBase
Public Methods
 MethodDefined By
  
FollowDisplayObject(displayObject:DisplayObject = null, renderer:DisplayObject = null)
The constructor creates a FollowDisplayObject activity for use by an emitter.
FollowDisplayObject
 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.
FollowDisplayObject
Property Detail
displayObjectproperty
displayObject:DisplayObject

The display object that the emitter follows.


Implementation
    public function get displayObject():DisplayObject
    public function set displayObject(value:DisplayObject):void
rendererproperty 
renderer:DisplayObject

The DisplayObject whose coordinate system the DisplayObject's 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
FollowDisplayObject()Constructor
public function FollowDisplayObject(displayObject:DisplayObject = null, renderer:DisplayObject = null)

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

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

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.