A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Launch and close win, continue original movie

  1. #1
    Junior Member
    Join Date
    Feb 2002
    Posts
    16

    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.

  2. #2
    Senior Member
    Join Date
    May 2002
    Location
    The Great Northwest
    Posts
    380
    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();
    }
    God bless you!

  3. #3
    Junior Member
    Join Date
    Feb 2002
    Posts
    16
    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?

  4. #4
    Senior Member
    Join Date
    May 2002
    Location
    The Great Northwest
    Posts
    380
    try _root.gotoAndPlay(_currentFrame);
    God bless you!

  5. #5
    Junior Member
    Join Date
    Feb 2002
    Posts
    16
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center