View Full Version : overlapping menus...ack!
alwayzconfused
03-31-2002, 06:49 PM
okay. my site is http://www.asiansinc.com/aznphoenix/cloud.html. Yes, i've posted this question on a few forums, but they couldn't help me. Or maybe it just isn't possible. but what i'm trying to accomplish is that when you click on the Cirrus, then you click on Altostratus, Cirrus will close and Altostratus will be open. Then, if you click on Cirrus again, Altostratus will close and Cirrus will be open. I hope it could play the mc of closing/opening also. is it possible? and if it is,how?
red penguin
03-31-2002, 07:21 PM
Of course it's possible..I just used the same button for both of them..Are they clips? Are they separate scenes? Are they just on a different frame? You just have to target the proper clip/scene/frame to play from the appropriate button.
alwayzconfused
03-31-2002, 08:24 PM
i'm not sure wut u mean by using the same buttons. the menu that shows up is a clip. I named it cirrus and the button cirrus has the actions that goes tell target cirrus, play (summarized :P).
i thought of an idea. When you press on Cirrus, the button, it plays clip cirrus and it goes to frame dinki. Then, when you press on Altostratus, the button, it detects you're on frame dinki and plays cirrus again to *close* it. Then plays Altostratus, and goes onto frame tookie.
i guess shortened, i'm askin' for, how do u detect what frame you're on and use as to ur advantage?
like ,
if frame is ("dinki")
then, play cirrus.
then, goto ("tookie")
then, play altostratus.
in actionscript form?
red penguin
03-31-2002, 08:53 PM
What you want to accomplish is fairly simple targeting of clips/frames. Telling movies to play/stop when you click a button...
on(release){
_root.cirrus.gotoAndPlay("dinki");
}
on(release){
_root.Altostratus.gotoAndPlay("tookie");
}
I assumed you have two separate clips for each...Check out some of the tutorials we have here...
alwayzconfused
03-31-2002, 09:43 PM
i am totally confused as what you're trying to say. the cirrus and altostratus r buttons that are not in MC. They make two differenct mc play. or are you saying something else?
red penguin
03-31-2002, 10:23 PM
...is a clip. I named it cirrus...
on(release){
_root.cirrus.gotoAndPlay("dinki");
}
In laymans terms, this is saying..."when you click and release me, I will go to the main timeline and find the movie clip called "cirrus". I will then, if it is found, find the frame labeled "dinki" and start playing from that frame."
It doesn't matter where the buttons are...at all...so long as the clips you are targeting are on the "_root".
I don't know how more basic I can say it!
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.