ParallelAnimation Client Reference
The ParallelAnimation plays several animations simultaneously. It inherits from
, but makes itself the owner of all
its child animations to allow the use a single timer and syncrhonization mechanisms shared with
all the children (in other words, the duration properties of any child animations
are ignored in favor of the parent's duration). It is very useful in creating
sophisticated effects through combination of simpler animations.
ParallelAnimation Client Properties
| Name | Description |
| animations | Array of child animations to be played (there are no assumptions placed on order because it will matter for some
derived animations like , but not for
others like ). To manipulate the child
animations, use the functions add, clear, remove, and removeAt. |
| duration | Length of the animation in seconds. The default is 1. |
| events | The collection of event handlers for this behavior. This property should only be used by derived behaviors and should not be publicly called by other code. |
| fps | Number of steps per second. The default is 25. |
| id | |
| isActive | true if animation is active, false if not. |
| isInitialized | |
| isPlaying | true if animation is playing, false if not. |
| isUpdating | |
| percentComplete | Percentage of the animation already played. |
| target | |
ParallelAnimation Client Methods
| Name | Description |
| add |
Add an animation as a child of this animation and make ourselves its owner.
|
| beginUpdate | |
| clear |
Clear the array of child animations.
|
| dispose |
Dispose of the child animations
|
| endUpdate | |
| getAnimatedValue |
Determine the state of the animation after the given percentage of its duration has elapsed
|
| initialize |
Initialize the parent along with any child animations that have not yet been initialized themselves
|
| interpolate |
The interpolate function is used to find the appropriate value between starting and
ending values given the current percentage.
|
| onEnd |
Finish playing all of the child animations
|
| onStart |
Get the child animations ready to play
|
| onStep |
Progress the child animations through each frame
|
| pause |
Pause the animation if it is playing. Calling play will resume where
the animation left off.
|
| play |
Play the animation from the beginning or where it was left off when paused.
|
| play |
Create an animation, play it immediately, and dispose it when finished.
|
| raiseEnded |
Raise the ended event
|
| raisePropertyChanged | Raises a change notification event. |
| raiseStarted |
Raise the started event
|
| raiseStep |
Raise the step event
|
| remove |
Remove the animation from the array of child animations.
|
| removeAt |
Remove the animation at a given index from the array of child animations.
|
| setOwner |
Make this animation the child of another animation
|
| setValue |
Set the current state of the animation
|
| stop |
Stop playing the animation.
|
| updated | |
ParallelAnimation Client Events
| Name | Description |
| disposing | |
| ended |
Adds an event handler for the ended event.
|
| propertyChanged | |
| started |
Adds an event handler for the started event.
|
| step |
Adds an event handler for the step event.
|