-
Launch and close win, continue original movie
Hi,
I am seeking a way to do the following:
I am play a movie and in the middle of it, I press a button on it which will launch another window which plays a new movie. When this button is pressed, the first movie should pause. When the second window is closed by pressing a button on it, the first movie should continue at the pause point.
Now, I am able to launch the second window and play. But not sure how to pause the first one and continue when the second one is closed. Is there a way to do that?
Thanks.
-
Button on main time line
Code:
on(release){
_root.stop();
// Lauch your other movie
}
Button in launched movie
Code:
on(release){
this.removeMovieClip();
_root.play();
}
-
Thanks. I tried your code but it doesn't work. The first movie does not continue to play when the second one is removed. Is there something else?
-
try _root.gotoAndPlay(_currentFrame);
-
It still doesn't work. I am wondering if the first one can be referred by "_root" (nor can it be referred by "_parent", I tried) because the second one is in a newly launched window. May be upon removing the second one, I need to set focus to the first window before I do anything? Does it make sense? But how do I refer to the first window and set focus if the first one is originally called by a html file and does not have a window name?
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
|