EventDispatcher |
Framebuffer |
The ‘Framebuffer’ class works with buffers and a renderer to handle the process of rendering multiple animations at the same time.
com.boostworthy.animation.management.Buffer, com.boostworthy.animation.rendering.Renderer
| Framebuffer | The ‘Framebuffer’ class works with buffers and a renderer to handle the process of rendering multiple animations at the same time. |
| Variables | |
| m_objBufferEF | Holds all animation objects to be rendered on enter frame. |
| m_objBufferT | Holds all animation objects to be rendered on timer. |
| m_objRenderer | The renderer instance to be used to render the contents of the buffers. |
| Functions | |
| Framebuffer | Constructor. |
| onRenderEF | Event handler for the enter frame event. |
| onRenderT | Event handler for the timer event. |
| onAnimationStart | Called when an animation starts. |
| onAnimationChange | Called when an animation changes. |
| onAnimationStop | Called when an animation stops. |
| onAnimationFinish | Called when an animation finishes. |
| addBufferObject | Adds a new animation to the framebuffer. |
| removeBufferObject | Removes all animations involving the target object from the framebuffer. |
| clearBuffer | Clears all animations from the buffers. |
| dispose | Performs any appropriate clean-up tasks for garbage collection such as removing event listeners, setting object references to ‘null’, etc. |
| init | Initializes this object. |
| removeAnimation | Removes the specified animation from the buffer. |
| removeAnimationByObject | Removes all animations involving the target object from the framebuffer. |
| removeAnimationByProperty | Removes all animations involving the target object’s property from the framebuffer. |
| checkBufferLengthEF | Checks the enter frame buffer to see if it is empty. |
| checkBufferLengthT | Checks the timer buffer to see if it is empty. |
protected function removeAnimationByProperty( objTarget: Object, strProperty: String ):void
Removes all animations involving the target object’s property from the framebuffer.
| param | objTarget The object whose animations are to be removed. |
| param | strProperty The target object’s property being searched for. |
Holds all animation objects to be rendered on enter frame.
protected var m_objBufferEF: Buffer
Holds all animation objects to be rendered on timer.
protected var m_objBufferT: Buffer
The renderer instance to be used to render the contents of the buffers.
protected var m_objRenderer: Renderer
Constructor.
public function Framebuffer( nRefreshRate: Number )
Event handler for the enter frame event.
protected function onRenderEF( objEvent: Event ):void
Event handler for the timer event.
protected function onRenderT( objEvent: TimerEvent ):void
Called when an animation starts.
protected function onAnimationStart( objEvent: AnimationEvent ):void
Called when an animation changes.
protected function onAnimationChange( objEvent: AnimationEvent ):void
Called when an animation stops.
protected function onAnimationStop( objEvent: AnimationEvent ):void
Called when an animation finishes.
protected function onAnimationFinish( objEvent: AnimationEvent ):void
Adds a new animation to the framebuffer.
public function addBufferObject( objAnimation: IAnimation ):void
Removes all animations involving the target object from the framebuffer.
public function removeBufferObject( objTarget: Object ):void
Clears all animations from the buffers.
public function clearBuffer():void
Performs any appropriate clean-up tasks for garbage collection such as removing event listeners, setting object references to ‘null’, etc.
public function dispose():void
Initializes this object.
protected function init( nRefreshRate: Number ):void
Removes the specified animation from the buffer.
protected function removeAnimation( objAnimation: IAnimation ):void
Removes all animations involving the target object from the framebuffer.
protected function removeAnimationByObject( objTarget: Object ):void
Removes all animations involving the target object’s property from the framebuffer.
protected function removeAnimationByProperty( objTarget: Object, strProperty: String ):void
Checks the enter frame buffer to see if it is empty.
protected function checkBufferLengthEF():void
Checks the timer buffer to see if it is empty.
protected function checkBufferLengthT():void