Quick Tips:EnterFrame
From CASA Framework
The org.casaframework.time.EnterFrame singleton class allows for a more versatile onEnterFrame that does not require a target MovieClip. EnterFrame is also helpful when needing onEnterFrame in classes that don't inherit from a MovieClip.
Example:
function onFrameFire():Void {
trace("I will be called every frame.");
}
var pulseInstance:EnterFrame = EnterFrame.getInstance();
this.pulseInstance.addEventObserver(this, EnterFrame.EVENT_ENTER_FRAME, "onFrameFire");
EnterFrame uses CASA's EventDispatcher model (Quick Tips:EventObservers) to subscribe to the onEnterFrame event. To stop the method from being called use removeEventObserver:
this.pulseInstance.removeEventObserver(this, EnterFrame.EVENT_ENTER_FRAME, "onFrameFire");
The class should be used instead of all regular onEnterFrame's in CASA projects.

