NodeFire Library

animation  1.0.6

NodeFire Library > animation > NF.anim.track
Search:
 
Filters

Class NF.anim.track

Tracks include one or multiple clips. Tracks can be added directly to a timeline or created from a timeline object. The clips in a track play in the sequential order in which they are added.

To optionally specify a specific frame position for a clip within the track, use the clip objects frameAnchorPos configuration property.

Constructor

NF.anim.track ( )

Properties

clips - Array

Array of clip objects belonging to the track.

Methods

addClip

object addClip ( clip )
Adds a clip to the track.
Parameters:
clip <object | object array> A clip object to add to the track.
Returns: object
The added clip object.

removeClip

Array removeClip ( clip )
Removes a clip from the track.
Parameters:
clip <object> A clip object to be removed from the track.
Returns: Array
Array of remaining clip objects.


Copyright © 2012 OpenCube: Inc. All rights reserved.