AnimatorGroup
Manages a collection of Animators
- Object
- SitedObject
- AnimatorBase
- AnimatorGroup
Remarks
AnimatorGroup uses its ID_mode property to decide how to run the
animations. If ID_mode is set to ID_parallel (the default),
the child animators are executed in parallel. If ID_mode is set to
ID_sequential, the child animators are run one after the other.
Properties
ID_animatorId (inherited from AnimatorBase) | The ID this animator is known by. |
ID_childAnimators | A SitedList of child animators. |
ID_mode | Either ID_sequential or ID_parallel. |
Methods
add | Adds a child animator to this animator |
addEventHandler (inherited from SitedObject) | Adds a delegate to be called when the specified eventId occurs on this object. |
equals (inherited from SitedObject) | Tests if two objects are equal. |
fireEventHandler (inherited from SitedObject) | Invokes any user event handlers registered for a particular event using SitedObject.addEventHandler(). |
getBindingStatus (inherited from SitedObject) | Provides debugging information on bindings for this object. |
getPathValue (inherited from SitedObject) | Traverses a binding path and returns the value at the end of it. |
getPropertyInfo (inherited from SitedObject) | Gets information on a property. |
getSite (inherited from SitedObject) | Gets this object's site. |
getTotalDuration (inherited from AnimatorBase) | Returns the duration of this animator in milliseconds. |
getValue (inherited from SitedObject) | Gets the value of a property on this object. |
onSetValue (inherited from SitedObject) | Called by SitedObject.setValue() when a property value is set on this object. |
onSited (inherited from SitedObject) | Called when this object is sited. |
onUnsited (inherited from SitedObject) | Called when this object is about to lose its site. |
onValueSited (inherited from SitedObject) | Called when an object is sited within this object. |
onValueUnsited (inherited from SitedObject) | Called when an object is about to be unsited in this. |
removeEventHandler (inherited from SitedObject) | Remove an existing delegate from the list of delegates for the specified event. |
setInitialValues (inherited from SitedObject) | Sets multiple property values on an object (during initialization only) |
setPathValue (inherited from SitedObject) | Traverses a binding path and sets the value at the end of it. |
setValue (inherited from SitedObject) | Sets the value of a property on this object. |
start (inherited from AnimatorBase) | Starts this animator running |
stop (inherited from AnimatorBase) | Stops this animator running |
toString (inherited from SitedObject) | Returns a string representation of this object. |
AnimatorGroup add method
Adds a child animator to this animator
JavaScript
animatorGroup.add(animator)
AnimatorGroup ID_childAnimators property
A SitedList of child animators.
JavaScript
var animatorList = animatorGroup.getValue(ID_childAnimators)
animatorGroup.setValue(ID_childAnimators, animatorList)
Xml
<j:AnimatorGroup>
<j:Animator ... />
<j:Animator ... />
...
</j:AnimatorGroup>
AnimatorGroup ID_mode property
Either ID_sequential or ID_parallel.
JavaScript
var idname = animatorGroup.getValue(ID_mode)
animatorGroup.setValue(ID_mode, idname)
Xml
<j:AnimatorGroup mode="sequential" ... >
or
<j:AnimatorGroup mode="parallel" ... >
Remarks
If this is ID_sequential, the child animators are run in sequence - when this animator starts, it starts the first child animator, runs it to completion, then starts the second child animator and so on.
If this is ID_parallel, all of the child animators are started as soon as this animator is started.