Packageorg.flintparticles.common.utils
Classpublic class FrameUpdater
InheritanceFrameUpdater Inheritance flash.events.EventDispatcher

This class is used to provide a constant tick event to update the emitters every frame. This is the internal tick that is used when the useInternalTick property of the emitter is set to true.

Usually developers don't need to use this class at all - its use is internal to the Emitter classes.

See also

org.flintparticles.common.emitters.Emitter.Emitter()


Public Properties
 PropertyDefined By
  instance : FrameUpdater
[static] [read-only] This is a singleton instance.
FrameUpdater
Public Methods
 MethodDefined By
  
The constructor creates an EmitterUpdater object.
FrameUpdater
  
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, weakReference:Boolean = false):void
[override]
FrameUpdater
  
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
[override]
FrameUpdater
Property Detail
instanceproperty
instance:FrameUpdater  [read-only]

This is a singleton instance. There's no requirement to use this singleton - the constructor isn't private (or in any other way restricted) and nothing will go wrong if you create multiple instances of the class. The singleton instance is provided for speed and memory optimization - it is usually possible for all code to use the same instance and this singleton makes it easy for code to do this by all code using this singleton instance.


Implementation
    public static function get instance():FrameUpdater
Constructor Detail
FrameUpdater()Constructor
public function FrameUpdater()

The constructor creates an EmitterUpdater object.

Method Detail
addEventListener()method
override public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, weakReference:Boolean = false):void

Parameters

type:String
 
listener:Function
 
useCapture:Boolean (default = false)
 
priority:int (default = 0)
 
weakReference:Boolean (default = false)

removeEventListener()method 
override public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void

Parameters

type:String
 
listener:Function
 
useCapture:Boolean (default = false)