| Package | pegas.transitions |
| Class | public class Motion |
| Inheritance | Motion Action SimpleAction CoreEventDispatcher CoreObject |
| Implements | Stoppable |
| Subclasses | Tween, TweenLite |
| Property | Defined by | ||
|---|---|---|---|
![]() | channel : String
Indicates the channel of this dispatcher if this instance is global.
| CoreEventDispatcher | |
| duration : Number
Returns the duration of the tweened animation in frames or seconds.
| Motion | ||
| fps : Number
Returns the number of frames per second of the tweened animation.
| Motion | ||
![]() | isGlobal : Boolean
(read-only) Returns the value of the isGlobal flag of this model.
| CoreEventDispatcher | |
![]() | looping : Boolean
The flag to determinate if the Action object is looped.
| Action | |
| prevTime : Number
Defined the internal prevTime value.
| Motion | ||
![]() | running : Boolean
(read-only) Indicates
true if the process is in progress. | SimpleAction | |
| target : *
Indicates the target reference of the object contrains by the Motion effect.
| Motion | ||
| time : Number [read-only]
(read-only) Returns the current time within the duration of the animation.
| Motion | ||
| useSeconds : Boolean
Defined if the Motion used seconds or not.
| Motion | ||
| Method | Defined by | ||
|---|---|---|---|
|
Motion(bGlobal:Boolean = false, sChannel:String = null)
Creates a new Motion instance.
| Motion | ||
![]() |
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 | |
|
clone():*
Returns a shallow copy of this object.
| Motion | ||
![]() |
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
| CoreEventDispatcher | |
![]() |
Returns the internal
EventDispatcher reference. | CoreEventDispatcher | |
![]() |
getEventTypeCHANGE():String
Returns the event name use in the notifyChanged method.
| Action | |
![]() |
getEventTypeCLEAR():String
Returns the event name use in the notifyCleared method.
| Action | |
![]() |
getEventTypeINFO():String
Returns the event name use in the notifyInfo method.
| Action | |
![]() |
getEventTypeLOOP():String
Returns the event name use in the notifyLooped method.
| Action | |
![]() |
getEventTypePROGRESS():String
Returns the event name use in the notifyProgress method.
| Action | |
![]() |
getEventTypeRESUME():String
Returns the event name use in the notifyResumed method.
| Action | |
![]() |
getEventTypeSTOP():String
Returns the event name use in the notifyStopped method.
| Action | |
![]() |
getEventTypeTIMEOUT():String
Returns the event name use in the notifyTimeOut method.
| Action | |
![]() |
getIsGlobal():Boolean
Returns the value of the isGlobal flag of this model.
| CoreEventDispatcher | |
![]() |
Returns the internal
ILogger reference of this ILogable object. | CoreObject | |
![]() |
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 internal event's types of this process.
| Action | |
![]() |
isLocked():Boolean
Returns
true if the object is locked. | CoreEventDispatcher | |
![]() |
lock():void
Locks the object.
| CoreEventDispatcher | |
|
nextFrame(e:TimerEvent):void
Forwards the tweened animation to the next frame.
| Motion | ||
![]() |
notifyFinished():void
Notify an ActionEvent when the process is finished.
| SimpleAction | |
![]() |
notifyStarted():void
Notify an ActionEvent when the process is started.
| SimpleAction | |
|
prevFrame():void
Directs the tweened animation to the frame previous to the current frame.
| Motion | ||
![]() |
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 | |
![]() |
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
| CoreEventDispatcher | |
|
resume():Boolean
Resumes a tweened animation from its stopped point in the animation.
| Motion | ||
|
rewind(t:Number = 0):void
Rewinds a tweened animation to the beginning of the tweened animation.
| Motion | ||
|
run(... arguments):void
Runs the object.
| Motion | ||
![]() |
setEventDispatcher(e:EventDispatcher):void
Sets the internal
EventDispatcher reference. | CoreEventDispatcher | |
![]() |
setEventTypeCHANGE(type:String):void
Sets the event name use in the notifyChanged method.
| Action | |
![]() |
setEventTypeCLEAR(type:String):void
Sets the event name use in the notifyCleared method.
| Action | |
![]() |
setEventTypeINFO(type:String):void
Sets the event name use in the notifyInfo method.
| Action | |
![]() |
setEventTypeLOOP(type:String):void
Sets the event name use in the notifyLooped method.
| Action | |
![]() |
setEventTypePROGRESS(type:String):void
Sets the event name use in the notifyProgress method.
| Action | |
![]() |
setEventTypeRESUME(type:String):void
Sets the event name use in the notifyResumed method.
| Action | |
![]() |
setEventTypeSTOP(type:String):void
Sets the event name use in the notifyStopped method.
| Action | |
![]() |
setEventTypeTIMEOUT(type:String):void
Sets the event name use in the notifyTimeOut method.
| Action | |
![]() |
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 | |
|
setTime(t:Number):void
Sets the current time within the duration of the animation.
| Motion | ||
|
Sets the internal timer of the tweened animation.
| Motion | ||
|
start():void
Starts the tweened animation from the beginning.
| Motion | ||
|
startInterval():void
Starts the intenral interval of the tweened animation.
| Motion | ||
|
stop(... args):*
Stops the tweened animation at its current position.
| Motion | ||
|
stopInterval():void
Stops the intenral interval of the tweened animation.
| Motion | ||
![]() |
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 | |
|
update():void
Update the current object.
| Motion | ||
![]() |
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 | |
| Method | Defined by | ||
|---|---|---|---|
|
fixTime():void
| Motion | ||
![]() |
notifyChanged():void
Notify an ActionEvent when the process is changed.
| Action | |
![]() |
notifyCleared():void
Notify an ActionEvent when the process is cleared.
| Action | |
![]() |
notifyInfo(info:*):void
Notify an ActionEvent when the process info is changed.
| Action | |
![]() |
notifyLooped():void
Notify an ActionEvent when the process is looped.
| Action | |
![]() |
notifyProgress():void
Notify an ActionEvent when the process is in progress.
| Action | |
![]() |
notifyResumed():void
Notify an ActionEvent when the process is resumed.
| Action | |
![]() |
notifyStopped():void
Notify an ActionEvent when the process is stopped.
| Action | |
![]() |
notifyTimeOut():void
Notify an ActionEvent when the process is out of time.
| Action | |
![]() |
setRunning(b:Boolean):void
Changes the running property value.
| SimpleAction | |
| duration | property |
duration:Number [read-write]Returns the duration of the tweened animation in frames or seconds.
Implementation public function get duration():Number
public function set duration(value:Number):void
| fps | property |
fps:Number [read-write]Returns the number of frames per second of the tweened animation.
Implementation public function get fps():Number
public function set fps(value:Number):void
| prevTime | property |
public var prevTime:NumberDefined the internal prevTime value.
| target | property |
public var target:*Indicates the target reference of the object contrains by the Motion effect.
| time | property |
time:Number [read-only](read-only) Returns the current time within the duration of the animation.
Implementation public function get time():Number
| useSeconds | property |
public var useSeconds:BooleanDefined if the Motion used seconds or not.
| Motion | () | constructor |
public function Motion(bGlobal:Boolean = false, sChannel:String = null)Creates a new Motion instance.
ParametersbGlobal: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.
|
| clone | () | method |
public override function clone():*Returns a shallow copy of this object.
Returns* — a shallow copy of this object.
|
| fixTime | () | method |
protected function fixTime():void
| nextFrame | () | method |
public function nextFrame(e:TimerEvent):voidForwards the tweened animation to the next frame.
Parameterse:TimerEvent |
| prevFrame | () | method |
public function prevFrame():voidDirects the tweened animation to the frame previous to the current frame.
| resume | () | method |
public function resume():BooleanResumes a tweened animation from its stopped point in the animation.
ReturnsBoolean |
| rewind | () | method |
public function rewind(t:Number = 0):voidRewinds a tweened animation to the beginning of the tweened animation.
Parameterst:Number (default = 0) |
| run | () | method |
public override function run(... arguments):voidRuns the object.
Parameters... arguments |
| setTime | () | method |
public function setTime(t:Number):voidSets the current time within the duration of the animation.
Parameterst:Number |
| setTimer | () | method |
public function setTimer(timer:ITimer):voidSets the internal timer of the tweened animation.
Parameterstimer:ITimer |
| start | () | method |
public function start():voidStarts the tweened animation from the beginning.
| startInterval | () | method |
public function startInterval():voidStarts the intenral interval of the tweened animation.
| stop | () | method |
public function stop(... args):*Stops the tweened animation at its current position.
Parameters... args |
* |
| stopInterval | () | method |
public function stopInterval():voidStops the intenral interval of the tweened animation.
| update | () | method |
public function update():voidUpdate the current object.