Package | away3d.animators |
Class | public class VertexAnimator |
Inheritance | VertexAnimator Animator flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
currentFrame : int [read-only]
Returns the current keyframe number
| Animator | ||
cycleNumber : int [read-only]
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 : Vector.<Vector3D> [read-only] | VertexAnimator | ||
interpolate : Boolean
Defines whether the animation interpolates between channel points. | Animator | ||
isPlaying : Boolean [read-only]
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 | ||
name : String
The name of the animation used as a unique reference. | 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 [read-only]
Returns the total length of the animation in frames
| Animator |
Method | Defined By | ||
---|---|---|---|
VertexAnimator(target:Object3D = null, init:Object = null)
Creates a new VertexAnimator
| VertexAnimator | ||
addFrame(frame:Vector.<Vector3D>):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 [override] | VertexAnimator | ||
updateProgress(val:Number):void [override] | VertexAnimator | ||
updateTarget():void [override] | VertexAnimator |
frames | property |
frames:Vector.<Vector3D>
[read-only] public function get frames():Vector.<Vector3D>
VertexAnimator | () | Constructor |
public function VertexAnimator(target:Object3D = null, init:Object = null)
Creates a new VertexAnimator
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:Vector.<Vector3D>):void
Parameters
frame:Vector.<Vector3D> |
addVertex | () | method |
getDefaultFps | () | method |
override protected function getDefaultFps():Number
ReturnsNumber |
updateProgress | () | method |
override protected function updateProgress(val:Number):void
Parameters
val:Number |
updateTarget | () | method |
override protected function updateTarget():void