# Menu, submenu ¿hitTest?

**URL:** <https://forum.kirupa.com/t/menu-submenu-hittest/173009>\
**Category:** Uncategorized\
**Created:** [December 20, 2005, 10:24am UTC](https://forum.kirupa.com/t/menu-submenu-hittest/173009 "2005-12-20T10:24:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cam](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@cam](https://forum.kirupa.com/u/cam)\
**Post date:** [December 20, 2005, 10:24am UTC](https://forum.kirupa.com/t/menu-submenu-hittest/173009/1 "2005-12-20T10:24:30Z")

</div>

hi, i think maybe this is a simple question, but is driving me nuts.  
i have a menu with several buttons (all mcs) each of them have three subitems that loads external movies.  
using laco´s classes the mc scales and the subitems goes alphaTo 100.  
my problem is that, being the first mc used as a button, when i try to give actions to the items in the submenu nothing happens, so i cannot work out how to achieve those three buttons DO something.  
my explanation was no very clear, here is my code:

```auto

#include "mc_tween2.as"

cota.menu_cota._alpha = 0;

cota.onRollOver = function () {
cota.scaleTo (130, 0.7, "easeInOutCubic");
	cota.xSlideTo (730, 0.5, "easeInOutCubic");
	cota.menu_cota.alphaTo (100, 0.8, "linear");
	cota.menu_cota.cota_set.xSlideTo(-70, 1, "easeInOutCubic");
	cota.menu_cota.cota_bio.xSlideTo(-35, 1, "easeInOutCubic");
	cota.menu_cota.cota_link.xSlideTo(0, 1, "easeInOutCubic");
}

cota.onRollOut = function () {
cota.scaleTo (100, 0.7, "easeInOutCubic");
	cota.xSlideTo (746.5, 0.5, "easeInOutCubic");
	cota.menu_cota.alphaTo (0, 0.8, "linear");
	cota.menu_cota.cota_set.xSlideTo(0, 1, "easeInOutCubic");
	cota.menu_cota.cota_bio.xSlideTo(0, 1, "easeInOutCubic");
	cota.menu_cota.cota_link.xSlideTo(0, 1, "easeInOutCubic");
	cota.menu_cota.cota_link.swapDepths (100);
	
}

cota.menu_cota.cota_link.onPress = function () {
	getURL ("http://www.nicocota.com.ar", "_blank");
}

When "cota" is the first mc, inside of it is "menu_cota" the three mcs that should work like buttons "cota_set", "cota_link" and "cota_bio"

i tried with hitTest, but i dont know if thats the answer (and i can fully understand how hitTest works, he)

well, any help would be apreciated.
```
