-
Movie order switching.
I am loading movies dynamically using:
loadMovieNum("mov1.swf",1);
loadMovieNum("mov2.swf,2);
At some points in the running of the main movie. I need to be able to bring the contents of mov1.swf in front of mov2.swf. Is there any way to do this? Better still, is there a way for a movie to take focus when the user clicks on it?
-
Code:
_level1.swapDepths(2);
while (2+2 == 4) {
drink ("bourbon");
}
gotoAndStop("bed");
-
Thanks, forgot to mention though, I need to retain tweening after it has been altered. Any other ideas?
-
I dont think you can do that. You have to change the depths for sure and this is the only method, but the movieclip stops playing when you do it.
You can use a workaround though:
1.Get the _currentframe of your tween/animation
2. Duplicate the movie at level1 into level3 (above level2).
3.Remove the movie at level1
4. use gotoAndPlay(_currentframe) to continue playing the duplicated movie (otherwise it will start over from frame 1)
while (2+2 == 4) {
drink ("bourbon");
}
gotoAndStop("bed");
-
Cheers, that should work; knew there had to be a way.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|