Package | away3d.core.base |
Class | public class Animation |
Inheritance | Animation ![]() |
Implements | IAnimation |
Property | Defined by | ||
---|---|---|---|
cycleEvent : Boolean = false
Determines whether the animation will fire cycle events.
| Animation | ||
delay : Number = 0
Determines the delay time between animation cycles if loop is set to true.
| Animation | ||
fps : Number = 24
The frames per second at which the animation will run.
| Animation | ||
frame : Number = 0
The current frame of the animation.
| Animation | ||
isRunning : Boolean [read-only]
Indicates whether the animation is currently running.
| Animation | ||
latest : uint [read-only]
Returns the number of the latest frame displayed.
| Animation | ||
loop : Boolean = false
Determines whether the animation will loop.
| Animation | ||
object : BaseMesh
The Mesh on which the animation is occurring.
| Animation | ||
sequence : Array
Holds an array of animation frames.
| Animation | ||
sequenceEvent : Boolean = false
Determines whether the animation will fire sequence events.
| Animation | ||
smooth : Boolean = false
Determines whether the animation will smooth motion (interpolate) between frames.
| Animation |
Method | Defined by | ||
---|---|---|---|
Creates a new
Animation object. | Animation | ||
start():void
Jumps to the beginning of the animation and start playing
| Animation | ||
stop():void
Stops the animation at it's current position.
| Animation | ||
Updates the positions of vertex objects in the mesh to the current frame values
| Animation |
Event | Summary | Defined by | ||
---|---|---|---|---|
Dispatched when all frame sequences are complete | Animation | |||
Dispatched when the current frame sequence is complete | Animation |
cycleEvent | property |
public var cycleEvent:Boolean = false
Determines whether the animation will fire cycle events.
See also
delay | property |
public var delay:Number = 0
Determines the delay time between animation cycles if loop is set to true.
See also
fps | property |
public var fps:Number = 24
The frames per second at which the animation will run.
frame | property |
public var frame:Number = 0
The current frame of the animation.
isRunning | property |
isRunning:Boolean
[read-only]Indicates whether the animation is currently running.
Implementation public function get isRunning():Boolean
latest | property |
latest:uint
[read-only]Returns the number of the latest frame displayed.
Implementation public function get latest():uint
loop | property |
public var loop:Boolean = false
Determines whether the animation will loop.
object | property |
public var object:BaseMesh
The Mesh on which the animation is occurring.
sequence | property |
public var sequence:Array
Holds an array of animation frames.
See also
sequenceEvent | property |
public var sequenceEvent:Boolean = false
Determines whether the animation will fire sequence events.
See also
smooth | property |
public var smooth:Boolean = false
Determines whether the animation will smooth motion (interpolate) between frames.
Animation | () | constructor |
public function Animation(obj:BaseMesh)
Parameters
obj:BaseMesh — The mesh object that the animation acts on.
|
start | () | method |
public function start():void
Jumps to the beginning of the animation and start playing
stop | () | method |
public function stop():void
Stops the animation at it's current position.
update | () | method |
public function update(mesh:BaseMesh):void
Updates the positions of vertex objects in the mesh to the current frame values
Parametersmesh:BaseMesh — The mesh on which the animation object acts
|
cycle | event |
sequenceupdate | event |
away3d.events.AnimationEvent
Dispatched when the current frame sequence is complete