FramePulse

Kind of class: public class
Package:
Inherits from:
  • EventDispatcher
Classpath: org.asaplibrary.util.FramePulse
File last modified: Wednesday, 11 May 2011, 19:06:40
Class to generate onEnterFrame events.
Usage
  • FramePulse.addEnterFrameListener(handleEnterFrame);
    
    // function that handles onEnterFrame events
    public function handleEnterFrame (e:Event) : void {
        
    // code goes here...
    }
    
    To stop receiving the onEnterFrame event: FramePulse.removeEnterFrameListener(handleEnterFrame);

Summary

Class methods

Class methods

addEnterFrameListener

static function addEnterFrameListener(inHandler:Function) : void

Add a listener to the FramePulse

Parameters
inHandler:function to be called on enterframe, with parameter FramePulseEvent

removeEnterFrameListener

static function removeEnterFrameListener(inHandler:Function) : void

Remove a listener from the FramePulse

Parameters
inHandler:function that was previously added