
November 4th, 2004
08:44 AM
simple button question. PLease help
How you I create a button that when pressed will reveal several other buttons/links to select directly next to it. kind of like a dropdown menu but I don't want it to drop down?
I know this should be easy but I'm terrible at flash 
Thanks

November 4th, 2004
03:30 PM
Make a movie clip (mc_mask) with a mask animation in.
When you press the button, there will be an action:
on (release) {
mc_mask.gotoAndPlay(2)
}
Everything you want will be revealed when the mask move.
Or you can simply move your buttons/links under the mask to make a sort of drop down menu.
___________________
Dictionary is the only place where Sucess come before work.

November 5th, 2004
07:01 AM
Neverside Newbie
Status: Offline!
Okay... Say i have 3 buttons and when i press button 1 it drops down a manu... Then when i push button 2 or 3 the menu goes up again and a new one drops down from 2 or 3... How do you do that?

November 5th, 2004
08:29 AM

Use another variable like... "menudrop" to know wich menu is drop.
After, I call the 3 menu mc_menu1, mc_menu2 and mc_menu3.
Imagine that on your movie clip, frame 2 to 14 is the drop down animation and frame 15+ is the drop in animation
<?php
on (release){
// If you cliked for the first time on a button, the value will be
// zero, so there is nothing here to bring back.
if (_root.menudrop == 0){
_root.mc_menu1.gotoAndPlay(2)
_root.menudrop = 1
} else {
// If the menu drop is NOT 1 (the one you clicked) then it drop
//in the actual one and drop down the one you wanted.
if (_root.menudrop != 1){
eval("_root.mc_menu" + _root.menudrop).gotoAndPlay(15)
_root.mc_menu1.gotoAndPlay(2)
_root.menudrop = 1
// If you click on a menu that is allready droped down, nothing happen.
} else {
}
}
}
?>
Hope that help...
PS: I'm used to put _root. everywhere, and since I don't know where your button will be, I don't take any chance.
___________________
Dictionary is the only place where Sucess come before work.
Last edited by FrankyFish, November 5th, 2004 08:39 AM (Edited 1 times)

November 8th, 2004
02:15 AM
Neverside Newbie
Status: Offline!
Hey FrankyFish...
I was thinking if you could send me an exampel so i can see how you do it... I can't seam to get it to work... I would be very happy if you could
Thanks

November 8th, 2004
04:01 AM
Yeah sure, Sometimes... it's hard to explain....
Gimme sometime...
___________________
Dictionary is the only place where Sucess come before work.

November 8th, 2004
04:35 AM
Neverside Newbie
Status: Offline!
I was thinking if you could send me a file... When would it be done?