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 a loop/onComplete property for MovieClips #63

Closed
wants to merge 6 commits into from

Conversation

alex-bogartz
Copy link

Usage:

myClip.loop=false;
myClip.onComplete=function(){
alert('this clip is done playing');
}

@englercj
Copy link
Member

englercj commented Apr 9, 2013

If src/pixi/MovieClip.js was the only file modified, this PR would be just what I was about to do myself!

@alex-bogartz
Copy link
Author

Yes, that's what I modified. Take a look at what I did and give me a sanity check?

@englercj
Copy link
Member

englercj commented Apr 9, 2013

@alex-bogartz I think it looks good, but your commits modify 10 files because you including the builds.

@alex-bogartz
Copy link
Author

I also just added a swapChildren function. Usage:

stage.swapChildren(stage.children[0], stage.children[1]);
stage.swapChildren(stage.children[2], stage.children[3]);

It swaps the depth of each child so you can place one object on top of another, for example by scale or arbitrary z position in pseudo 3D

@alex-bogartz
Copy link
Author

Closing to clean up code

@lock
Copy link

lock bot commented Feb 26, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Feb 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants