FramePulse proxies an
ENTER_FRAME
event to any non-
DisplayObject
classes which need to execute code on each frame tick.
Example
FramePulse.$.addFrameListener( enterFrame );
protected function enterFrame( e:Event ):void {
trace( "pulse" );
}
$:FramePulse
[read-only]
Shorthand singleton accessor getter
Implementation
public static function get $():FramePulse
public function FramePulse($:SingletonEnforcer = null)
FramePulse Singleton Constructor
Parameters
| $:SingletonEnforcer (default = null ) — SingletonEnforcer internal to the AS file; this param prevents external instantiation without error.
|
public function addFrameListener(handler:Function):void
Parameters
public function destroy():void
Destroy the frame pulse and singleton instance.
public static function getInstance():FramePulse
Singleton Accessor
Returns
public function removeFrameListener(handler:Function):void
Parameters
Copyright © 2008-2012 jason m horwitz, Sekati LLC. All Rights Reserved.