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.
org.flintparticles.common.emitters.Emitter.Emitter()
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
public function FrameUpdater()
The constructor creates an EmitterUpdater object.
public override function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, weakReference:Boolean = false):voidParameters
| type:String |
| |
| listener:Function |
| |
| useCapture:Boolean (default = false) |
| |
| priority:int (default = 0) |
| |
| weakReference:Boolean (default = false) |
public override function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):voidParameters
| type:String |
| |
| listener:Function |
| |
| useCapture:Boolean (default = false) |
© Richard Lord 2009