Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

63 users online



simple button question. PLease help

simple button question. PLease help

Currently viewing this thread: 1 (0 members and 1 guests)


Busby

Busby

Status: Offline!

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 Sad

Thanks

FrankyFish

FrankyFish

Status: Offline!

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.

Jeisp

Jeisp

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?

FrankyFish

FrankyFish

Status: Offline!

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:

<?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)

Jeisp

Jeisp

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 Smile

Thanks

FrankyFish

FrankyFish

Status: Offline!

Yeah sure, Sometimes... it's hard to explain....

Gimme sometime...

___________________

Dictionary is the only place where Sucess come before work.

Jeisp

Jeisp

Neverside Newbie
Status: Offline!

I was thinking if you could send me a file... When would it be done?

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0077 seconds.