# Submenu?

**URL:** https://forum.kirupa.com/t/submenu/256713
**Category:** Uncategorized
**Created:** [April 6, 2008, 1:54pm UTC](https://forum.kirupa.com/t/submenu/256713 "2008-04-06T13:54:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ZeroScount](https://avatars.discourse-cdn.com/v4/letter/z/cab0a1/32.png) [@ZeroScount](https://forum.kirupa.com/u/ZeroScount)
#### Post date: [April 6, 2008, 1:54pm UTC](https://forum.kirupa.com/t/submenu/256713/1 "2008-04-06T13:54:02Z")

</div>

Hey all,

I’ve been working on a small “submenu”, but got a problem. The hitareas block for each other. When I place the menu above the submenu, its hitarea blocks for the submenus (You can’t click it now). When I place the submenu above the menu, its hitarea blocks for a part of the menus (It will roll in and the submenu will disappear). I’m out of ideas, on how I possible could fix this problem.

Current code:

```auto
import mx.transitions.Tween;
sub._visible = false;
men.hit._visible = false;
men.onRollOver = ro;
men.dragOver = ro;
men.onRollOut = ri;
men.releaseOutside = ri;

sub.onPress = function () {
    trace ("I've been pressed.");
};

function ro () {
    var myTween:Tween = new Tween (this, "_x", Strong.easeOut, this._x, 105, 3.5, false);
    myTween.onMotionStopped = function () {
        sub._visible = true;
        men.hit._visible = true;
    };
}

function ri () {
    var myTween2:Tween = new Tween (this, "_x", Strong.easeOut, this._x, 82, 3.5, false);
    myTween2.onMotionStopped = function () {
        sub._visible = false;
        men.hit._visible = false;
    };

}

```

Thanks in advance for any help 🙂  
(SWF preview: [SWF](http://www.swfup.com/file/179337)  
FLA download: [FLA](http://www.gratisupload.dk/show.php?fileId=10704))
