Packagegraphics.transitions
Classpublic class Motion
InheritanceMotion Inheritance CoreTransition Inheritance CoreAction Inheritance Task Inheritance Object
Subclasses Tween, TweenLite, TweenUnit

The Motion class.



Public Properties
 PropertyDefined By
 InheritedchangeIt : Signaler
This signal emit when the notifyChanged method is invoked.
CoreAction
 InheritedclearIt : Signaler
This signal emit when the notifyCleared method is invoked.
CoreAction
  duration : Number
Returns the duration of the tweened animation in frames or seconds.
Motion
 InheritedfinishIt : Signaler
This signal emit when the notifyFinished method is invoked.
Task
  fps : Number
Returns the number of frames per second of the tweened animation.
Motion
 Inheritedid : *
Indicates the id value of this object.
CoreTransition
 InheritedinfoIt : Signaler
This signal emit when the notifyInfo method is invoked.
CoreAction
 Inheritedlogger : Logger
Determinates the internal Logger reference of this Loggable object.
Task
 Inheritedlooping : Boolean
The flag to determinate if the Action object is looped.
CoreAction
 InheritedloopIt : Signaler
This signal emit when the notifyLooped method is invoked.
CoreAction
 InheritedpauseIt : Signaler
This signal emit when the notifyPause method is invoked.
CoreAction
 Inheritedphase : String
[read-only] The current phase of the action.
Task
  prevTime : Number
Defined the internal prevTime value.
Motion
 InheritedprogressIt : Signaler
This signal emit when the notifyProgress method is invoked.
CoreAction
 InheritedresumeIt : Signaler
This signal emit when the notifyResumed method is invoked.
CoreAction
 Inheritedrunning : Boolean
[read-only] Indicates true if the process is in progress.
Task
 InheritedstartIt : Signaler
This signal emit when the notifyStarted method is invoked.
Task
 InheritedstopIt : Signaler
This signal emit when the notifyStopped method is invoked.
CoreAction
  stopped : Boolean
[read-only] Indicates if the motion is stopped.
Motion
  target : *
Indicates the target reference of the object contrains by the Motion effect.
Motion
  time : Number
[read-only] Indicates the current time within the duration of the animation.
Motion
 InheritedtimeoutIt : Signaler
This signal emit when the notifyTimeOut method is invoked.
CoreAction
  useSeconds : Boolean
Defined if the Motion used seconds or not.
Motion
Public Methods
 MethodDefined By
  
Creates a new Motion instance.
Motion
  
clone():*
[override] Returns a shallow copy of this object.
Motion
 Inherited
equals(o:*):Boolean
Compares the specified object with this object for equality.
CoreTransition
 Inherited
isLocked():Boolean
Returns true if the object is locked.
Task
 Inherited
lock():void
Locks the object.
Task
  
nextFrame():void
Forwards the tweened animation to the next frame.
Motion
 Inherited
Notify when the process is changed.
CoreAction
 Inherited
Notify when the process is cleared.
CoreAction
 Inherited
Notify an ActionEvent when the process is finished.
Task
 Inherited
notifyInfo(info:*):void
Notify a specific information when the process is changed.
CoreAction
 Inherited
Notify when the process is looped.
CoreAction
 Inherited
Notify when the process is paused.
CoreAction
 Inherited
Notify when the process is in progress.
CoreAction
 Inherited
Notify when the process is resumed.
CoreAction
 Inherited
Notify an ActionEvent when the process is started.
Task
 Inherited
Notify when the process is stopped.
CoreAction
 Inherited
Notify when the process is out of time.
CoreAction
  
prevFrame():void
Directs the tweened animation to the frame previous to the current frame.
Motion
  
resume():void
[override] 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
[override] Runs the object.
Motion
  
setTime(t:Number):void
Sets the current time within the duration of the animation.
Motion
  
start():void
[override] Starts the tweened animation from the beginning.
Motion
  
Starts the intenral interval of the tweened animation.
Motion
  
stop():void
[override] Stops the tweened animation at its current position.
Motion
  
Stops the intenral interval of the tweened animation.
Motion
 Inherited
unlock():void
Unlocks the display.
Task
  
update():void
Update the current object.
Motion
Protected Methods
 MethodDefined By
 Inherited
setRunning(b:Boolean):void
Changes the running property value.
Task
  
setTimer(timer:ITimer):void
Sets the internal timer of the tweened animation.
Motion
Property Detail
durationproperty
duration:Number

Returns the duration of the tweened animation in frames or seconds.


Implementation
    public function get duration():Number
    public function set duration(value:Number):void
fpsproperty 
fps:Number

Returns the number of frames per second of the tweened animation.


Implementation
    public function get fps():Number
    public function set fps(value:Number):void
prevTimeproperty 
public var prevTime:Number

Defined the internal prevTime value.

stoppedproperty 
stopped:Boolean  [read-only]

Indicates if the motion is stopped.


Implementation
    public function get stopped():Boolean
targetproperty 
target:*

Indicates the target reference of the object contrains by the Motion effect.


Implementation
    public function get target():*
    public function set target(value:any):void
timeproperty 
time:Number  [read-only]

Indicates the current time within the duration of the animation.


Implementation
    public function get time():Number
useSecondsproperty 
public var useSeconds:Boolean

Defined if the Motion used seconds or not.

Constructor Detail
Motion()Constructor
public function Motion()

Creates a new Motion instance.

Method Detail
clone()method
override public function clone():*

Returns a shallow copy of this object.

Returns
* — a shallow copy of this object.
nextFrame()method 
public function nextFrame():void

Forwards the tweened animation to the next frame.

prevFrame()method 
public function prevFrame():void

Directs the tweened animation to the frame previous to the current frame.

resume()method 
override public function resume():void

Resumes a tweened animation from its stopped point in the animation.

rewind()method 
public function rewind(t:Number = 0):void

Rewinds a tweened animation to the beginning of the tweened animation.

Parameters

t:Number (default = 0)

run()method 
override public function run(... arguments):void

Runs the object.

Parameters

... arguments

setTime()method 
public function setTime(t:Number):void

Sets the current time within the duration of the animation.

Parameters

t:Number

setTimer()method 
protected function setTimer(timer:ITimer):void

Sets the internal timer of the tweened animation.

Parameters

timer:ITimer

start()method 
override public function start():void

Starts the tweened animation from the beginning.

startInterval()method 
public function startInterval():void

Starts the intenral interval of the tweened animation.

stop()method 
override public function stop():void

Stops the tweened animation at its current position.

stopInterval()method 
public function stopInterval():void

Stops the intenral interval of the tweened animation.

update()method 
public function update():void

Update the current object.