# Adding actions to a child mc

**URL:** <https://forum.kirupa.com/t/adding-actions-to-a-child-mc/64616>\
**Category:** Uncategorized\
**Created:** [September 17, 2004, 11:58pm UTC](https://forum.kirupa.com/t/adding-actions-to-a-child-mc/64616 "2004-09-17T23:58:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![netrix](https://avatars.discourse-cdn.com/v4/letter/n/f0a364/32.png) [@netrix](https://forum.kirupa.com/u/netrix)\
**Post date:** [September 17, 2004, 11:58pm UTC](https://forum.kirupa.com/t/adding-actions-to-a-child-mc/64616/1 "2004-09-17T23:58:48Z")

</div>

Hi guys… I am trying to make a simple menu but I am stuck, I am sure that I’m over complicating things so here I am asking to the people I know can help me… the problem is that I am trying to put actions to a mc that’s inside of another mc, the thing is that the parent one has a roll over action… so is there any way to make flash see that I am trying to click the child mc instead of the parent one?? Here’s the fla in case I’m not being clear enough…

🔗

---

<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:** [September 18, 2004, 12:05am UTC](https://forum.kirupa.com/t/adding-actions-to-a-child-mc/64616/2 "2004-09-18T00:05:36Z")

</div>

I tried to overcome this problem using a mouse event to trigger the first mc, then that mc triggers the other one, and that way I can add the actions that I want to the nested mc… the problem with this is that once the mouse gets out of the specified zone I can’t make the mc to go to a closing state… here’s the code I’m using any suggesting or ideas would be greatly appreciated!!! Thanks in advanced…

```auto
onClipEvent (mouseMove) {
	_root.main_y = _root._ymouse;
	_root.main_x = _root._xmouse;
}
onClipEvent (enterFrame) {
	if (_root.main_y<360 || _root.main_y>450 || _root.main_x>652) {
		this.gotoAndPlay("opening");
		menuop == 2;
	} else {
		menuop == 1;
	}
	if (menuop==2) {
		this.gotoAndPlay("closing");
	}
}

```

---

<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:** [September 18, 2004, 1:13am UTC](https://forum.kirupa.com/t/adding-actions-to-a-child-mc/64616/3 "2004-09-18T01:13:55Z")

</div>

anyone??? please i really need to solve this asap…
