Package | away3d.animators |
Class | public class VertexAnimator |
Inheritance | VertexAnimator Animator flash.events.EventDispatcher |
Property | Defined by | ||
---|---|---|---|
currentFrame : int
Returns the current keyframe number
| Animator | ||
cycleNumber : int
Returns the number of the current loop cycle
| Animator | ||
delay : Number
Defines the delay to the start of the animation in seconds
| Animator | ||
fps : Number
Defines the keyframes per second of the animation
| Animator | ||
frames : Array [read-only]
| VertexAnimator | ||
interpolate : Boolean
Defines whether the animation interpolates between channel points.
| Animator | ||
isPlaying : Boolean
Returns true when the animation is playing
| Animator | ||
length : Number
Defines the total length of the animation in seconds
| Animator | ||
loop : Boolean
Defines whether the animation will loop.
| Animator | ||
progress : Number
Represents the progress of the animation playhead from the start (0) to the end (1) of the animation.
| Animator | ||
target : Object3D
Defines the 3d object to which the animation is applied.
| Animator | ||
totalFrames : Number
Returns the total length of the animation in frames
| Animator |
Method | Defined by | ||
---|---|---|---|
Creates a new
VertexAnimator
| VertexAnimator | ||
addFrame(frame:Array):void
| VertexAnimator | ||
addOnCycle(listener:Function):void
Default method for adding a cycle event listener.
| Animator | ||
addOnEnterKeyFrame(listener:Function):void
Default method for adding an enterKeyFrame event listener
| Animator | ||
VertexAnimator | |||
Duplicates the animators properties to another
Animator object
| Animator | ||
gotoAndPlay(frame:uint):void
| Animator | ||
gotoAndStop(frame:uint):void
| Animator | ||
play():void
| Animator | ||
removeOnCycle(listener:Function):void
Default method for removing a cycle event listener
| Animator | ||
removeOnEnterKeyFrame(listener:Function):void
Default method for removing a enterKeyFrame event listener
| Animator | ||
stop():void
| Animator | ||
update(time:Number):void
Updates the position of the playhead to the given time in seconds.
| Animator |
Method | Defined by | ||
---|---|---|---|
getDefaultFps():Number
| VertexAnimator | ||
updateProgress(val:Number):void
| VertexAnimator | ||
updateTarget():void
| VertexAnimator |
frames | property |
frames:Array
[read-only]Implementation
public function get frames():Array
VertexAnimator | () | constructor |
public function VertexAnimator(target:Object3D = null, init:Object = null)
Parameters
target:Object3D (default = null ) — [optional] Defines the 3d object to which the animation is applied.
|
|
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
addFrame | () | method |
public function addFrame(frame:Array):void
Parameters
frame:Array |
addVertex | () | method |
getDefaultFps | () | method |
protected override function getDefaultFps():Number
Returns
Number |
updateProgress | () | method |
protected override function updateProgress(val:Number):void
Parameters
val:Number |
updateTarget | () | method |
protected override function updateTarget():void