# Using onRollOver to make a submenu but using onRelease for subbuttons... HELP PLZ!

**URL:** <https://forum.kirupa.com/t/using-onrollover-to-make-a-submenu-but-using-onrelease-for-subbuttons-help-plz/116623>\
**Category:** Uncategorized\
**Created:** [July 20, 2004, 2:04am UTC](https://forum.kirupa.com/t/using-onrollover-to-make-a-submenu-but-using-onrelease-for-subbuttons-help-plz/116623 "2004-07-20T02:04:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlkedave](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@mlkedave](https://forum.kirupa.com/u/mlkedave)\
**Post date:** [July 20, 2004, 2:04am UTC](https://forum.kirupa.com/t/using-onrollover-to-make-a-submenu-but-using-onrelease-for-subbuttons-help-plz/116623/1 "2004-07-20T02:04:13Z")

</div>

Ok here is the problem. i have a movieclip that is working as a button. onRollOver the moveclip goes to frame 2 where the submenu appears. Here is where the problem starts.

The submenu buttons use hitTest for their animation. I want to be able to click one of the submenu items and use  
[AS]  
button.onRelease = function() {  
getURL(“Home.html”,"\_self")  
}  
[/AS]  
To make it link to a different site. The problem is it just doesn’t seem to work.

I think the problem is when I try to click on the submenu buttons, since they are nested in a movieclip that already uses onRollOver, it isn’t recognizing i am clicking on the subbutton. I used onRollOver instead of a HitTest for the main buttons because if it used HitTest several popup menu’s would show up at a time, so that is not a solution.

Basically, does anyone know how to make it so i can have a movieclip nested in another movieclip where the parent uses onRollOver and the sub movieclip uses OnRelease. Whenever i try to do it the sub just doesn’t work. THANKS A LOT

MIke

---

<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:** [July 20, 2004, 5:58pm UTC](https://forum.kirupa.com/t/using-onrollover-to-make-a-submenu-but-using-onrelease-for-subbuttons-help-plz/116623/2 "2004-07-20T17:58:37Z")

</div>

Anyone!
