# Simple Button Q. FMX

**URL:** <https://forum.kirupa.com/t/simple-button-q-fmx/17654>\
**Category:** flash\
**Created:** [April 8, 2003, 12:04am UTC](https://forum.kirupa.com/t/simple-button-q-fmx/17654 "2003-04-08T00:04:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jingman](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jingman/32/163_2.png) [@jingman](https://forum.kirupa.com/u/jingman)\
**Post date:** [April 8, 2003, 12:04am UTC](https://forum.kirupa.com/t/simple-button-q-fmx/17654/1 "2003-04-08T00:04:52Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2003, 12:48am UTC](https://forum.kirupa.com/t/simple-button-q-fmx/17654/2 "2003-04-08T00:48:29Z")

</div>

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/animatedrollover.htm)  
[http://www.kirupa.com/developer/flash5/advroll.htm](http://www.kirupa.com/developer/flash5/advroll.htm)

hope that helps!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2003, 12:58am UTC](https://forum.kirupa.com/t/simple-button-q-fmx/17654/3 "2003-04-08T00:58:09Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2003, 1:06am UTC](https://forum.kirupa.com/t/simple-button-q-fmx/17654/4 "2003-04-08T01:06:12Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2003, 1:39am UTC](https://forum.kirupa.com/t/simple-button-q-fmx/17654/5 "2003-04-08T01:39:31Z")

</div>

[\>\>\>A _Drop Down Menu_ perhaps … Click This\<\<\<](http://www.macromedia.com/support/flash/ts/documents/popup_menu.htm)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2003, 2:00am UTC](https://forum.kirupa.com/t/simple-button-q-fmx/17654/6 "2003-04-08T02:00:14Z")

</div>

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.
