Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I pause a nested movie or is the code in the wrong place?

Status
Not open for further replies.

rossi3713

Technical User
Feb 18, 2004
18
US
I have a nested movie that is called by the following function.

function test(){
_root.createEmptyMovieClip("container",25);
loadMovie("images/5_28.swf", "container");
container._x=15;
container._y = 95;
}
test();

On the base movie I have three control buttons for play, pause, and rewind.

The play and the rewind work like a gem on the nested movie, but the pause button does not work when selected and the nested movie just keeps playing. The following is the code that is used.

on (release) {
stop();
}
on (release) {
this._parent.stop();
this._parent.container.stop();
}

Does any one have a suggestion on how to pause the nested movie ???
 
Bill,

Thank you for the quick reply.

Someone else wrote this code and I'm not sure that I implemented your code correctly because the nested movie still will not stop.

This is how I have changed the code.


on (release) {
stop();
}
on (release) {
this._root.stop();
this._root.container.stop();
}


Thank you in advance,

Mark Rossi
 

Bill

Thank you for the code clarification.

However I put the code in and it still does not stop the movie being called by the function.

on (release) {
stop();
}
on (release) {
_root.container.stop();
}


The first Stop is for the audio in the third level movie and the function in that level calls the animation to play in the third level movie. But the root.container.stop ActionScript still does not pause the movie.

Do I have this set up wrong or is there a better way to do this?

Thank you in advance.

 
can you put up the fla for download

cant tell whats wrong without seeing it

 
Tom,

Sorry for the delay, I have been out of the office. I have now placed the files at the following url.


I could not upload all of the content because it has not been released yet.

To see an example that the pause button is not working on the nested movie select the Unit Information tab from the menu and go to slide 13.

However the pause button does stop the audio that is contained in the page.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top