Overview
Represents an animation, defined by one or more KeyFrame
s.
Profile: common
Attribute Summary
name | type | description |
---|---|---|
Public | ||
autoReverse | Boolean |
Defines whether this animation reverses direction on alternating cycles. More: [+]Defines whether this animation reverses direction on alternating
cycles.
If Profile: common |
INDEFINITE | Integer |
Used to specify an animation that repeats indefinitely (until
the Used to specify an animation that repeats indefinitely (until
the Profile: common |
keyFrames | KeyFrame[] |
Defines the sequence of Defines the sequence of Profile: common |
paused | Boolean |
Read-only attribute that indicates whether the animation is currently paused. More: [+]Read-only attribute that indicates whether the animation is currently paused.
This value is initially
Note that Profile: common |
repeatCount | Number |
Defines the number of cycles in this animation. More: [+]Defines the number of cycles in this animation.
The Profile: common |
running | Boolean |
Read-only attribute that indicates whether the animation is currently running. More: [+]Read-only attribute that indicates whether the animation is currently running.
This value is initially
Note that Profile: common |
toggle | Boolean |
Defines whether this animation reverses direction in place
each time Defines whether this animation reverses direction in place
each time Profile: common |
Protected |
Inherited Attributes
Function Summary
- public pause() : Void
-
Pauses the animation.
More: [+]Pauses the animation. If the animation is not currently running, this method has no effect.
Profile: common
- public resume() : Void
-
Resumes the animation from a paused state.
More: [+]Resumes the animation from a paused state. If the animation is not currently running or not currently paused, this method has no effect.
Profile: common
- public start() : Void
-
Starts (or restarts) the animation.
More: [+]Starts (or restarts) the animation.
If
toggle==false
and the animation is currently running, the animation will be restarted from its initial position.If
toggle==true
and the animation is currently running, the animation will immediately change direction in place and continue on in that new direction. When the animation finishes in one direction, callingstart()
again will restart the animation in the opposite direction.Profile: common
- public stop() : Void
-
Stops the animation.
More: [+]Stops the animation. If the animation is not currently running, this method has no effect.
Profile: common