| Package | pegas.transitions |
| Class | public class TransitionController |
| Inheritance | TransitionController CoreEventDispatcher CoreObject |
| Method | Defined by | ||
|---|---|---|---|
|
TransitionController(bGlobal:Boolean = false, sChannel:String = null)
Creates a new TransitionController instance.
| TransitionController | ||
![]() |
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 | |
|
contains(id:String):Boolean
Returns
true if the id passed in argument is registered in the TransitionController. | TransitionController | ||
|
containsTransition(transition:ITransition):Boolean
Returns
true if the Transition passed in argument is registered in the TransitionController. | TransitionController | ||
![]() |
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
| CoreEventDispatcher | |
![]() |
Returns the internal
EventDispatcher reference. | CoreEventDispatcher | |
|
[static]
Returns the singleton instance of TransitionController class.
| TransitionController | ||
![]() |
getIsGlobal():Boolean
Returns the value of the isGlobal flag of this model.
| CoreEventDispatcher | |
![]() |
Returns the internal
ILogger reference of this ILogable object. | CoreObject | |
|
getTransition(id:*):ITransition
Returns a ITransition reference register in the TransitionController with the specified
id passed in argument. | TransitionController | ||
![]() |
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 | |
|
insert(transition:ITransition):void
Adds a new entry into the TransitionController.
| TransitionController | ||
![]() |
isLocked():Boolean
Returns
true if the object is locked. | CoreEventDispatcher | |
![]() |
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(transition:*):*
Removes an entry into the TransitionController.
| TransitionController | ||
![]() |
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
| CoreEventDispatcher | |
|
run(id:String):void
Run the specified Transition.
| TransitionController | ||
![]() |
setEventDispatcher(e:EventDispatcher):void
Sets the internal
EventDispatcher reference. | CoreEventDispatcher | |
![]() |
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 | |
![]() |
toSource(indent:int = 0):String
Returns the string representation the source code of the object.
| CoreEventDispatcher | |
![]() |
toString():String
Returns the string representation of this instance.
| CoreObject | |
![]() |
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 | |
| TransitionController | () | constructor |
public function TransitionController(bGlobal:Boolean = false, sChannel:String = null)Creates a new TransitionController instance.
Example :
var controller:TransitionController = new TransitionController() ;Parameters
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.
|
| contains | () | method |
public function contains(id:String):Boolean
Returns true if the id passed in argument is registered in the TransitionController.
id:String — the id of the ITransition object mapped in the TransitionController.
|
Boolean — true if the id passed in argument is registered in the TransitionController.
|
| containsTransition | () | method |
public function containsTransition(transition:ITransition):Boolean
Returns true if the Transition passed in argument is registered in the TransitionController.
transition:ITransition — the Transition reference to search in the TransitionController.
|
Boolean — true if the Transition passed in argument is registered in the TransitionController.
|
| getInstance | () | method |
public static function getInstance():TransitionControllerReturns the singleton instance of TransitionController class.
ReturnsTransitionController —
singleton instance of TransitionController class.
|
| getTransition | () | method |
public function getTransition(id:*):ITransition
Returns a ITransition reference register in the TransitionController with the specified id passed in argument.
id:* — id the id of the ITransition object mapped in the TransitionController.
|
ITransition —
the ITransition object mapped in the TransitionController.
|
| insert | () | method |
public function insert(transition:ITransition):voidAdds a new entry into the TransitionController.
Parameterstransition:ITransition — the ITransition to register in the TransitionController.
|
— if the argument is 'null' or 'undefined'.
|
|
— if the ITransition object ID is empty.
|
| remove | () | method |
public function remove(transition:*):*Removes an entry into the TransitionController.
Parameterstransition:* — the id of the ITransition object mapped in the TransitionController or a ITransition object to remove.
|
* — The removed ITransition object or null if the ITransition don't exist in the controller.
|
| run | () | method |
public function run(id:String):voidRun the specified Transition.
Parametersid:String — the id of the Transition to be run.
|
— if the id passed in argument isn't register in this TransitionCntroller
|
|
— if the id passed in argument is 'null' or 'undefined'.
|