| Package | pegas.transitions |
| Class | public class TweenModel |
| Inheritance | TweenModel AbstractModel CoreEventDispatcher CoreObject |
| Implements | Iterable |
| Method | Defined by | ||
|---|---|---|---|
|
TweenModel(id:* = null, tweens:Array = null, bGlobal:Boolean = false, sChannel:String = null)
Creates a new TweenModel instance.
| TweenModel | ||
![]() |
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0.0, useWeakReference:Boolean = false):void
Allows the registration of event listeners on the event target.
| CoreEventDispatcher | |
|
clear():void
Clear the model.
| TweenModel | ||
|
clone():*
Returns a shallow copy of this object.
| TweenModel | ||
|
contains(prop:String):Boolean
Returns
true if the specified property exist in this model. | TweenModel | ||
![]() |
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
| CoreEventDispatcher | |
|
get(prop:String):TweenEntry
Returns the specified TweenEntry reference.
| TweenModel | ||
![]() |
Returns the internal
EventDispatcher reference. | CoreEventDispatcher | |
|
getEventTypeADD():String
Returns the event name use in the
insert method. | TweenModel | ||
|
getEventTypeCLEAR():String
Returns the event name use in the
clear method. | TweenModel | ||
|
getEventTypeREMOVE():String
Returns the event name use in the
remove method. | TweenModel | ||
![]() |
getIsGlobal():Boolean
Returns the value of the isGlobal flag of this model.
| CoreEventDispatcher | |
![]() |
Returns the internal
ILogger reference of this ILogable object. | CoreObject | |
|
getProperties():Array
Returns the Array representation of all property names in this model.
| TweenModel | ||
![]() |
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
| CoreEventDispatcher | |
![]() |
hashCode():uint
Returns a hashcode value for the object.
| CoreObject | |
![]() |
Creates and returns the internal
EventDispatcher reference (this method is invoked in the constructor). | CoreEventDispatcher | |
|
initEventType():void
Initialize the event types of this model.
| TweenModel | ||
|
insert(entry:TweenEntry):Boolean
Inserts a new TweenEntry in the model.
| TweenModel | ||
![]() |
isLocked():Boolean
Returns
true if the object is locked. | CoreEventDispatcher | |
|
Returns an iterator of this model.
| TweenModel | ||
![]() |
lock():void
Locks the object.
| CoreEventDispatcher | |
![]() |
registerEventListener(type:String, listener:Boolean, useCapture:int = false, priority:Boolean = 0, useWeakReference:* = false):void
Allows the registration of event listeners on the event target (Function or EventListener).
| CoreEventDispatcher | |
|
remove(entry:*):Boolean
Removes an entry in the model.
| TweenModel | ||
![]() |
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
| CoreEventDispatcher | |
![]() |
run(... arguments):void
Run the first process with this model.
| AbstractModel | |
![]() |
setEventDispatcher(e:EventDispatcher):void
Sets the internal
EventDispatcher reference. | CoreEventDispatcher | |
|
setEventTypeADD(type:String = null):void
Sets the event name use in the
insert method. | TweenModel | ||
|
setEventTypeCLEAR(type:String = null):void
Sets the event name use in the
clear method. | TweenModel | ||
|
setEventTypeREMOVE(type:String = null):void
Sets the event name use in the
remove method. | TweenModel | ||
![]() |
setGlobal(flag:Boolean = false, channel:String = null):void
Sets if the instance use a global
EventDispatcher to dispatch this events, if the flag value is false the instance use a local EventDispatcher. | CoreEventDispatcher | |
![]() |
Sets the internal
ILogger reference of this ILogable object. | CoreObject | |
|
size():Number
Returns the number of elements in the model.
| TweenModel | ||
|
toArray():Array
Returns the Array representation of all TweenEntry objects in this model.
| TweenModel | ||
|
Returns the Map representation of all TweenEntry objects in this model.
| TweenModel | ||
![]() |
toSource(indent:int = 0):String
Returns the string representation the source code of the object.
| CoreEventDispatcher | |
|
toString():String
Returns the String representation of this object.
| TweenModel | ||
![]() |
unlock():void
Unlocks the display.
| CoreEventDispatcher | |
![]() |
unregisterEventListener(type:String, listener:Boolean, useCapture:* = false):void
Removes a listener (Function or EventListener object) from the EventDispatcher object.
| CoreEventDispatcher | |
![]() |
willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
| CoreEventDispatcher | |
| TweenModel | () | constructor |
public function TweenModel(id:* = null, tweens:Array = null, bGlobal:Boolean = false, sChannel:String = null)Creates a new TweenModel instance.
Parametersid:* (default = null) — the id of the model.
|
|
tweens:Array (default = null) — The array to initialize the model with some TweenEntry objects. All no TweenEntry objects are ignored.
|
|
bGlobal:Boolean (default = false) — the flag to use a global event flow or a local event flow.
|
|
sChannel:String (default = null) — the name of the global event flow if the bGlobal argument is true.
|
| clear | () | method |
public function clear():voidClear the model.
| 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 clone:TweenModel = tp.clone() ;
* — a shallow copy of this object.
|
| contains | () | method |
public function contains(prop:String):Boolean
Returns true if the specified property exist in this model.
prop:String |
Boolean — true if the specified property exist in this model.
|
| get | () | method |
public function get(prop:String):TweenEntryReturns the specified TweenEntry reference.
Parametersprop:String |
TweenEntry —
the specified TweenEntry reference.
|
| getEventTypeADD | () | method |
public function getEventTypeADD():String
Returns the event name use in the insert method.
String — the event name use in the insert method.
|
| getEventTypeCLEAR | () | method |
public function getEventTypeCLEAR():String
Returns the event name use in the clear method.
String — the event name use in the clear method.
|
| getEventTypeREMOVE | () | method |
public function getEventTypeREMOVE():String
Returns the event name use in the remove method.
String — the event name use in the remove method.
|
| getProperties | () | method |
public function getProperties():ArrayReturns the Array representation of all property names in this model.
ReturnsArray — the Array representation of all property names in this model.
|
| initEventType | () | method |
public function initEventType():voidInitialize the event types of this model.
| insert | () | method |
public function insert(entry:TweenEntry):BooleanInserts a new TweenEntry in the model.
Parametersentry:TweenEntry |
Boolean |
| iterator | () | method |
public function iterator():IteratorReturns an iterator of this model.
ReturnsIterator —
an iterator of this model.
|
| remove | () | method |
public function remove(entry:*):BooleanRemoves an entry in the model.
Parametersentry:* |
Boolean |
| setEventTypeADD | () | method |
public function setEventTypeADD(type:String = null):void
Sets the event name use in the insert method.
type:String (default = null) |
| setEventTypeCLEAR | () | method |
public function setEventTypeCLEAR(type:String = null):void
Sets the event name use in the clear method.
type:String (default = null) |
| setEventTypeREMOVE | () | method |
public function setEventTypeREMOVE(type:String = null):void
Sets the event name use in the remove method.
type:String (default = null) |
| size | () | method |
public function size():NumberReturns the number of elements in the model.
ReturnsNumber — the number of elements in the model.
|
| toArray | () | method |
public function toArray():ArrayReturns the Array representation of all TweenEntry objects in this model.
ReturnsArray — the Array representation of all TweenEntry objects in this model.
|
| toMap | () | method |
public function toMap():MapReturns the Map representation of all TweenEntry objects in this model.
ReturnsMap —
the Map representation of all TweenEntry objects in this model.
|
| toString | () | method |
public override function toString():StringReturns the String representation of this object.
ReturnsString — the String representation of this object.
|