# rollOver on a button causes another button to rollOut

**URL:** https://forum.kirupa.com/t/rollover-on-a-button-causes-another-button-to-rollout/220196
**Category:** flash
**Created:** [March 23, 2007, 3:46pm UTC](https://forum.kirupa.com/t/rollover-on-a-button-causes-another-button-to-rollout/220196 "2007-03-23T15:46:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ohls](https://avatars.discourse-cdn.com/v4/letter/o/59ef9b/32.png) [@Ohls](https://forum.kirupa.com/u/Ohls)
#### Post date: [March 23, 2007, 3:46pm UTC](https://forum.kirupa.com/t/rollover-on-a-button-causes-another-button-to-rollout/220196/1 "2007-03-23T15:46:08Z")

</div>

I started working on a little page of mine, and I already ran into some trouble hehe. I’m kind of learning as I go along. Heres the script I’m having some trouble with:

```
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#0000FF]this[/COLOR].[COLOR=#000080]qmbacking[/COLOR].[COLOR=#0000FF]onRollOver[/COLOR] = [COLOR=#000000] **function** [/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]

```

[COLOR=#808080]_//tweens rolling in the menu_[/COLOR]  
[COLOR=#000000]}[/COLOR]  
[COLOR=#0000FF]this[/COLOR].[COLOR=#000080]qmbacking[/COLOR].[COLOR=#0000FF]onRollOut[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#808080]_//tweens rolling out the menu_[/COLOR]  
[COLOR=#000000]}[/COLOR]  
[COLOR=#0000FF]this[/COLOR].[COLOR=#000080]introb[/COLOR].[COLOR=#0000FF]onRelease[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]  
[COLOR=#0000FF]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#FF0000]“intro pressed”[/COLOR][COLOR=#000000])[/COLOR]  
[COLOR=#000000]}[/COLOR]  
[COLOR=#0000FF]this[/COLOR].[COLOR=#000080]aboutb[/COLOR].[COLOR=#0000FF]onRelease[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]  
[COLOR=#0000FF]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#FF0000]“about pressed”[/COLOR][COLOR=#000000])[/COLOR]  
[COLOR=#000000]}[/COLOR]  
[COLOR=#0000FF]this[/COLOR].[COLOR=#000080]portfoliob[/COLOR].[COLOR=#0000FF]onRelease[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]  
[COLOR=#0000FF]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#FF0000]“portfolio pressed”[/COLOR][COLOR=#000000])[/COLOR]  
[COLOR=#000000]}[/COLOR]  
[COLOR=#0000FF]this[/COLOR].[COLOR=#000080]contactb[/COLOR].[COLOR=#0000FF]onRelease[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]  
[COLOR=#0000FF]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#FF0000]“contact pressed”[/COLOR][COLOR=#000000])[/COLOR]  
[COLOR=#000000]}[/COLOR]  
[/LEFT]  
[/FONT]

The problem is is that when I rollover the menu buttons, it will cause the qmbacking to run the script under rollOut. Heres the swf:  
[http://hundsteg.se/Erik/portfolio.swf](http://hundsteg.se/Erik/portfolio.swf)

Is there any way to “override” this? Or does anyone know of an alternative way of making this type of menu? Only thing I can think of is making an invisible button on the rest of the stage but that will cause a lot of other trouble :/.

Thanks!
