# Button rollOver/rollOut question

**URL:** <https://forum.kirupa.com/t/button-rollover-rollout-question/184812>\
**Category:** flash\
**Created:** [April 8, 2006, 1:30am UTC](https://forum.kirupa.com/t/button-rollover-rollout-question/184812 "2006-04-08T01:30:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kidkreep](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@kidkreep](https://forum.kirupa.com/u/kidkreep)\
**Post date:** [April 8, 2006, 1:30am UTC](https://forum.kirupa.com/t/button-rollover-rollout-question/184812/1 "2006-04-08T01:30:06Z")

</div>

Hey all,

I’m new to this whole flash thing… Only been in it for a couple weeks, so this might seem like a pretty basic question… but it’s got me stumped! Here’s what I’m trying to do:

1. I have a rectangular button on my main stage at the very top.

2. When the user rolls over the button, it tween animates (approx 5-6 frames) downward to reveal two more rectangular buttons that came from off the stage. (essentially, it’s a scrolling menu)

3. There are now 3 rectangular buttons on the main stage and they are all butted up next to eachother.

What I want to do: I want to detect if the mouse pointer is on ANY of the 3 buttons. If the mouse pointer is on any of the 3 buttons, I want the menu to remain down. If the mouse pointer leaves all the buttons (EG. rolls out over the background, leaving the “menu” completely) I want the menu to roll back up.

I have it all working except for the rollling up part. That’s what has me stumped.

Any help would be greatly appreciated.

.k

PS. Sorry if it’s a poor explanation. I found it kind of hard to explain this issue. Let me know if I can do anything to further clarify what I’m trying to do.

---

<div class="post-metadata">

**Author:** ![kidkreep](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@kidkreep](https://forum.kirupa.com/u/kidkreep)\
**Post date:** [April 8, 2006, 1:41am UTC](https://forum.kirupa.com/t/button-rollover-rollout-question/184812/2 "2006-04-08T01:41:36Z")

</div>

Just to clarify, I’ve successfully tween animated the menu back up using the “on release” event from any of the buttons. So getting the menu to go back up isn’t what has me stumped… I got that part down. I just want it to tween animate up automatically when the user leaves the bounds of the entire menu (aka. all 3 buttons)

thanks again!

> [@kidkreep](#):
>
> I have it all working except for the rollling up part. That’s what has me stumped.

---

<div class="post-metadata">

**Author:** ![rhamej](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rhamej](https://forum.kirupa.com/u/rhamej)\
**Post date:** [April 8, 2006, 2:31am UTC](https://forum.kirupa.com/t/button-rollover-rollout-question/184812/3 "2006-04-08T02:31:21Z")

</div>

Here is the most common way =)

---

<div class="post-metadata">

**Author:** ![kidkreep](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@kidkreep](https://forum.kirupa.com/u/kidkreep)\
**Post date:** [April 8, 2006, 4:07am UTC](https://forum.kirupa.com/t/button-rollover-rollout-question/184812/4 "2006-04-08T04:07:36Z")

</div>

doh! I checked out the swf and thats EXACTLY what I want!

unfortunately, when I try to open the fla, it says “unexpected file format”

do i have a different version of mx2004?

> [@rhamej](#):
>
> Here is the most common way =)

---

<div class="post-metadata">

**Author:** ![rhamej](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rhamej](https://forum.kirupa.com/u/rhamej)\
**Post date:** [April 8, 2006, 6:00am UTC](https://forum.kirupa.com/t/button-rollover-rollout-question/184812/5 "2006-04-08T06:00:17Z")

</div>

Ummm, You shouldnt. :huh:  
I re-saved it as just an MX version. Try that.
