# Rollover, hitTest question

**URL:** https://forum.kirupa.com/t/rollover-hittest-question/63403
**Category:** Uncategorized
**Created:** [September 6, 2004, 2:16pm UTC](https://forum.kirupa.com/t/rollover-hittest-question/63403 "2004-09-06T14:16:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gerartje](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@gerartje](https://forum.kirupa.com/u/gerartje)
#### Post date: [September 6, 2004, 2:16pm UTC](https://forum.kirupa.com/t/rollover-hittest-question/63403/1 "2004-09-06T14:16:39Z")

</div>

I’m making a menu with rollovers.  
So when I go over a coloured part, it’s getting larger and soms subitems appear. Those subitems must be clickable, but when I use an onRelease, my coloured part is getting smaller again.

this is my code so far:

```auto
for(var i=0;i<aantalSubItems;i++)
	{		
		subItem_mc = blokje_mc.createEmptyMovieClip("subItemMC"+i,blokje_mc.getNextHighestDepth());
		subItem_mc.createTekstVeld(subItems*.attributes["text"],"tekst",stijl);
		subItem_mc._y = i*12+15;
		subItem_mc.onMouseMove=function()
		{
			if(this.hitTest(myObject.$root._xmouse,myObject.$root._ymouse,false))
			{
				trace(this);
				
			}
		}
			
	}

```

I’m first using a rollover and then a hitTest, should I switch??  
Or does anybody have a solution??

grtz
