EventDispatcher |
Buffer |
The ‘Buffer’ class manages a collection of animations to be rendered at the same time.
com.boostworthy.collections.Collection_I
| Buffer | The ‘Buffer’ class manages a collection of animations to be rendered at the same time. |
| Variables | |
| m_objQueue | A queue for storing animation objects. |
| Functions | |
| Buffer | Constructor. |
| add | Adds a new animation to the buffer. |
| remove | Removes the specified animation from the buffer. |
| removeByTarget | Removes all animations involving the target object from the buffer. |
| removeByProperty | Removes all animations involving the target object and it’s specified property from the buffer. |
| render | Iterates through the contents of this buffer and renders each animation. |
| clear | Clears all animations from the buffer. |
| Properties | |
| length | Gets the number of items in this buffer. |
| Functions | |
| getIterator | Returns an iterator of the specified type. |
| 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. |
| removeElement | Removes an element from the queue. |
public function removeByProperty( objTarget: Object, strProperty: String ):void
Removes all animations involving the target object and it’s specified property from the buffer.
| param | objTarget The target object whose animations are to be removed. |
| param | strProperty The target object’s property being searched for. |
public function getIterator( uIterator: uint = 2 ):IIterator
Returns an iterator of the specified type.
| param | uIterator The iterator type to use for iterating through the data being stored by this collection. Default is ‘2’ (IteratorType.ARRAY_FORWARD). |
An iterator instance of the specified type.
com.boostworthy.collections.iterators.IteratorType
A queue for storing animation objects.
protected var m_objQueue: Queue
Constructor.
public function Buffer()
Adds a new animation to the buffer.
public function add( objAnimation: IAnimation ):void
Removes the specified animation from the buffer.
public function remove( objAnimation: IAnimation ):void
Removes all animations involving the target object from the buffer.
public function removeByTarget( objTarget: Object ):void
Removes all animations involving the target object and it’s specified property from the buffer.
public function removeByProperty( objTarget: Object, strProperty: String ):void
Iterates through the contents of this buffer and renders each animation.
public function render():Boolean
Clears all animations from the buffer.
public function clear():void
Gets the number of items in this buffer.
public function get length():uint
Returns an iterator of the specified type.
public function getIterator( uIterator: uint = 2 ):IIterator
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():void
Removes an element from the queue.
protected function removeElement( objElement: IAnimation ):void