Packagegraphics.transitions
Classpublic class TweenBuffer
InheritanceTweenBuffer Inheritance Object
Implements Iterable

The buffer of the Tween class.



Public Methods
 MethodDefined By
  
TweenBuffer(entries:Array = null)
Creates a new TweenBuffer instance.
TweenBuffer
  
add(entry:TweenEntry):Boolean
Inserts a new TweenEntry in the buffer.
TweenBuffer
  
clear():void
Removes all elements register in the buffer.
TweenBuffer
  
clone():*
Returns a shallow copy of this object.
TweenBuffer
  
contains(prop:String):Boolean
Returns true if the specified property exist in this buffer.
TweenBuffer
  
get(prop:String):TweenEntry
Returns the specified TweenEntry reference.
TweenBuffer
  
Returns the Array representation of all property names in this buffer.
TweenBuffer
  
Returns an iterator of this buffer.
TweenBuffer
  
remove(entry:*):Boolean
Removes an entry in the model.
TweenBuffer
  
size():Number
Returns the number of elements in the buffer.
TweenBuffer
  
toArray():Array
Returns the Array representation of all TweenEntry objects in this buffer.
TweenBuffer
  
Returns the Map representation of all TweenEntry objects in this buffer.
TweenBuffer
  
toString():String
Returns the String representation of this object.
TweenBuffer
Constructor Detail
TweenBuffer()Constructor
public function TweenBuffer(entries:Array = null)

Creates a new TweenBuffer instance.

Parameters
entries:Array (default = null) — The array to initialize the model with some TweenEntry objects. All no TweenEntry objects are ignored.
Method Detail
add()method
public function add(entry:TweenEntry):Boolean

Inserts a new TweenEntry in the buffer.

Parameters

entry:TweenEntry

Returns
Boolean
clear()method 
public function clear():void

Removes all elements register in the buffer.

clone()method 
public function clone():*

Returns a shallow copy of this object. This method keep all Tween entries and the id of the original object.

 
         var model:TweenBuffer = new TweenBuffer() ; 
         var clone:TweenBuffer = model.clone() as TweenBuffer ;
         

Returns
* — A shallow copy of this object.
contains()method 
public function contains(prop:String):Boolean

Returns true if the specified property exist in this buffer.

Parameters

prop:String

Returns
Booleantrue if the specified property exist in this buffer.
get()method 
public function get(prop:String):TweenEntry

Returns the specified TweenEntry reference.

Parameters

prop:String

Returns
TweenEntry — the specified TweenEntry reference.
getProperties()method 
public function getProperties():Array

Returns the Array representation of all property names in this buffer.

Returns
Array — the Array representation of all property names in this buffer.
iterator()method 
public function iterator():Iterator

Returns an iterator of this buffer.

Returns
Iterator — an iterator of this buffer.
remove()method 
public function remove(entry:*):Boolean

Removes an entry in the model.

Parameters

entry:*

Returns
Boolean
size()method 
public function size():Number

Returns the number of elements in the buffer.

Returns
Number — the number of elements in the buffer.
toArray()method 
public function toArray():Array

Returns the Array representation of all TweenEntry objects in this buffer.

Returns
Array — the Array representation of all TweenEntry objects in this buffer.
toMap()method 
public function toMap():Map

Returns the Map representation of all TweenEntry objects in this buffer.

Returns
Map — the Map representation of all TweenEntry objects in this buffer.
toString()method 
public function toString():String

Returns the String representation of this object.

Returns
String — the String representation of this object.