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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rewind, Pause, and start Start buttons for base movie and external mov 1

Status
Not open for further replies.

rossi3713

Technical User
Joined
Feb 18, 2004
Messages
18
Location
US

I'm lost...

I have a base movie that contains three buttons (Rewind, Pause, and Start)

The code for the rewind button that sends the base movie to frame 2 which is set to play and then reloads the external movie (images/4_24.swf). works perfectly and is shown below.

on (release) {
gotoAndPlay(2);
}
on (release){
function test(){
_root.createEmptyMovieClip("container",25);
loadMovie("images/4_24.swf", "container");
container._x=15;
container._y = 95;
}
test();}


My question is does any one know how to now pause both the base and external movie with the pause button and then start both movies again with the start button???? Some how I need to control both movies with these three buttons.

Code for play button is ---
on (release) {
play();
}

Code for pause button is ---
on (release) {
stop();
}


Thank you MJR
 
It would be:
[tt]
on (release) {
this._parent.play();
this._parent.container.play();
}
[/tt]

(But avoid "on(release)" and do it from main timeline if you can!)

Kenneth Kawamoto
 


Kenneth,

Brilliant, just simply brilliant.

Thank you very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top