EnterFrame
| Kind of class: | public class |
|---|---|
| Package: | org.casalib.time |
| Inherits from: | RemovableEventDispatcher < EventDispatcher |
| Version: | 09/06/09 |
| Author: | Aaron Clinger, Mike Creighton |
| Classpath: | org.casalib.time.EnterFrame |
| File last modified: | Sunday, 06 September 2009, 09:00:44 |
Creates a centralized
enterFrame event. Also enables classes that do not extend a display object to react to an enterFrame event.Example:
-
package { import flash.events.Event; import org.casalib.display.CasaMovieClip; import org.casalib.time.EnterFrame; public class MyExample extends CasaMovieClip { protected var _pulseInstance:EnterFrame; public function MyExample() { super(); this._pulseInstance = EnterFrame.getInstance(); this._pulseInstance.addEventListener(Event.ENTER_FRAME, this._onFrameFire); } protected function _onFrameFire(e:Event):void { trace("I will be called every frame."); } } }
Events broadcasted to listeners:
- Event with type:
ENTER_FRAME- Dispatched when a new frame is entered.
Summary
Instance properties
Instance properties inherited from RemovableEventDispatcher
Class methods
Class methods
Instance methods
destroy
override public function destroy (
) : void
Throws:
- Error if called. Cannot destroy a singleton.
Overrides: