View Full Version : Closing Movieclips?
barry_sheen
01-16-2002, 10:48 AM
Hi There,
I want to be able to press a button, which will close whatever movieclip is playing on the main stage. Any ideas?
Cheers
Barry
pixelwit
01-16-2002, 01:10 PM
How did your movies get on the stage and what do you mean by "closing" them?
-PiXELWiT
http://www.pixelwit.com
farafiro
01-16-2002, 01:16 PM
If u mean that to end playing the movie just puy buttons that go back to the first frame or to the one that started with
barry_sheen
01-16-2002, 02:29 PM
I have each movie and button on a different layer, and want to be able to click any button, which will close the movie clip that is visible and then start the next clip. When I say close, I just mean either become invisible or just jump to a frame that is blank. The problem I'm having is making it so I can click the buttons in a random order.
Hope this makes sense.
Thanks for your help
Barry
Is each button supposed to play it's own movie? You could have on each button:
BUTTON ONE:
on(release){
movieClipA._visible = true;
movieClipA.gotoAndPlay(1);
movieClipB._visible = false;
movieClipC._visible = false;
movieClipD._visible = false;
movieClipE._visible = false;
}
BUTTON TWO:
on(release){
movieClipA._visible = false;
movieClipB._visible = true;
movieClipB.gotoAndPlay(1);
movieClipC._visible = false;
movieClipD._visible = false;
movieClipE._visible = false;
}
etc.etc.
But it's a bit clunky if you have lots of clips.
cheers
farafiro
01-17-2002, 06:40 AM
Also u should put all the buttins in one layer as much as u can
barry_sheen
01-17-2002, 09:18 AM
Thanks for all the help guys.
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.