PDA

View Full Version : Actions, invisible buttons, movie clips - simple help needed


roxy031
07-18-2008, 02:46 AM
I need just a little bit of help, and I'm sure it's probably something really simple.

I have this navigation, vertical, with 6 main icons that are buttons. When the 3rd icon is clicked, a submenu slides underneath it (with 4 icons). At the bottom of the menu there's an invisible button. If the user hasn't clicked one of the icons by the time they reach the IB, it triggers the submenu to slide back up, going back to the original 6 icons.

So far I have that part working.

The part that I can't figure out - well, I can't even really think of how to explain it. The 3rd button - after the menu has collapsed back to the original, goes back to the root Frame 1, but something is a little off. I'm doing a horrible job of explaining and I think my brain is boycotting, so I'm going to post the file and if you would be so kind as to look at it and see if you know what I've done wrong, I would be sooooooo appreciative!!

Thank you!!

http://www.morganicdesign.com/navigation_testing3.fla
(Flash 8)

atomic
07-18-2008, 03:30 AM
Even after having a look at the .fla, I'm still a bit confused...

Try the following on your IB...

on (rollOver){
_root.prevFrame();
}

Is that what you want?

roxy031
07-18-2008, 11:25 AM
Thanks for your help, Atomic. Yeah, it is really confusing, and I probably didn't do this the best way. I'm a designer and can do really simple Flash stuff, but my brain explodes when it comes to Actionscript or programming :)

Anyway - what you suggested would work and it's what I originally had, but the client wanted the submenu to slide back up. So the first action on the IB triggers going to the next frame, which is where the movieclip of the sliding up resides. And on THAT movieclip, I had an action on the button (the one that triggers the menu expansion) that returns the whole thing to scene 1, frame 1. But that's where it's messed up. I think what I should have is a second action on the IB that says 'after going to next frame and playing movieclip of sliding up icons, go back to frame 1 of root.' But when I did that, it just ignored the sliding up movieclip (doing essentially what the code you suggested does).

How can I get it to do both?

Sorry this is so confusing. I really appreciate your (or anyone else's) help!

atomic
07-18-2008, 02:35 PM
Then try this...

Add a stop(); action on frame 3 of the submenu_mc.

And add _root.prevFrame(); at the end (frame 8) of your sliding slidingreverse_mc...

stop();
_root.prevFrame();

roxy031
07-18-2008, 03:46 PM
Yay!!!

That is exactly what I needed it to do. I knew it would be something that simple - yet still too hard for my brain to comprehend!

Thank you so much for your help!! I really appreciate it.

atomic
07-18-2008, 03:57 PM
Grrrrrrrreat! ;)