added reverse playback and "bounce" looping (back and forth) #343
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
added functionality to
MovieClip
to allow reverse playback and "bounce" loop -- play forward and backward as a loop.both are fully compatible with
MovieClip
's existing features. settingbounceLoop = true
will setloop = false
and settingloop = true
will setbounceLoop = false
, since the two cannot both be true at once.reverse
works whether or notloop
orbounceLoop
are set.there are two commits in this pull request because i implemented these changes against an out-of-date version of
MovieClip
and had to go back and reimplement them against the latest version. better to look at the MovieClip.as diff than to look through the individual commits.i haven't tested with your unit tests as i don't have that test suite set up, but i manually tested all the permutations of
loop
,bounceLoop
,reverse
, and anEvent.COMPLETE
handler that i could come up with, and have been running with this code successfully for a couple of months now.