Simple Button Q. FMX

I want to do this:

  • Have a box on screen.
  • When you move over box, another little box comes up from behind it.
  • This new box changes color when you roll over it, and you can click it.
  • If you roll off the little box, or the big original box, the little one slides back behind it.

This seems like it should be simple, but I am just stuck stuck stuck.

Would appreciate any help, thanks.

Hi…
rollOvers were one of the trickiest things for me to learn/understand when I was starting out. Here are a couple tuts from Flash 5, but they’ll give you the ideas on what to do. The only difference, is in the second tut, instead of using “tellTarget” (which will still work), you can use:
[AS]
_root.movieclipname.gotoAndPlay(whatever);
[/AS]
http://www.kirupa.com/developer/flash5/animatedrollover.htm
http://www.kirupa.com/developer/flash5/advroll.htm

hope that helps!

see my problem is that I want a button inside that button, and I also want to play another animation when you roll off the button.

When I attempt to do this, the moment I rollOut of the main button it pulls it back to the “up” frame. Know what I mean?

Yes, I do understand. I’ve never done it, but I’m sure you can embed a button in a button. Double click on the grafic in the over frame, F8, convert to a button. Double click that again to put in your first animation.
For your rollOut animation; you will have to make a seperate movieClip with the rollOut animation, put in an empty frame one in that animation w/a stop();, place it on the stage where you want it to happen when you rollOut, give that MC with the animation a name (“cheese”), then on your embedded button, put this:
[AS]
on(rollOut){
_root.cheese.gotoAndPlay(2);
}
[/AS]
Give that a try…

>>>A Drop Down Menu perhaps … Click This<<<

the problem when embedding movies and looking for rollovers is that the rollover on the container movie (the outer box, in this example) will not “go away” when you rollover the inside box. In other words, it never sees the inside box rollover.

To achieve, you may have to use some other creative means. I did something with it before…hmmm… where did I put that thing… If I find it, I’ll post it. If not, hopefully someone else will help… I’ll check back for progress.