Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added reverse playback and "bounce" looping (back and forth) #343

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ericsoco
Copy link

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. setting bounceLoop = true will set loop = false and setting loop = true will set bounceLoop = false, since the two cannot both be true at once. reverse works whether or not loop or bounceLoop 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 an Event.COMPLETE handler that i could come up with, and have been running with this code successfully for a couple of months now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants