stop(resetFrame, dispatchComplete)
Stops playback of this animation and set it to a finished state. If a resetFrame is provided it will stop playback and set frame to the first in the animation.
If dispatchComplete
is true it will dispatch the complete events, otherwise they'll be ignored.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
resetFrame | boolean | <optional> | false | If true after the animation stops the currentFrame value will be set to the first frame in this animation. |
dispatchComplete | boolean | <optional> | false | Dispatch the Animation.onComplete and parent.onAnimationComplete events? |
- Source code: animation/Animation.js (Line 334)
Please login to continue.