Skip to main content
Known Participant
January 4, 2008
Answered

Drilling down into movie clips

  • January 4, 2008
  • 2 replies
  • 611 views
I created a menu movie clip that hold various buttons inside it. The whole container is called menu_mc, and lets say I want to access home_mc only and add a URLRequest to that. In AS2.0 I remember it was something like
menu_mc.home_mc.addEventListener(MouseEvent.CLICK,functionname); Why is it that when I click on menu_mc I get the URLRequest on that movie clip and not the one inside it? Here is the code for this. Thanks guys.


This topic has been closed for replies.
Correct answer Jamesabth
I swear I am not crazy lol. This doesn't work either. Here is the .fla
The menu movieclip has its type set to Button

2 replies

Participating Frequently
January 4, 2008
you're welcome :)
Participating Frequently
January 4, 2008
Do you have another clickButton function on on the home_mc timeline? In which case change to:

menu_mc.home_mc.addEventListener(MouseEvent.CLICK,menu_mc.home_mc.clickButton);
La_BestiaAuthor
Known Participant
January 4, 2008
Heres my setup: a movieclip(menu_mc) with a bunch on buttons inside(home_mc)

menu_mc is on the stage that will scroll according to user mouse movement and then once they click on home_mc (which is a child of menu_mc) it will take them to adobe.com.

Adding menu_mc.home_mc did not work. Any Ideas?
Participating Frequently
January 4, 2008
Then your origional code should work. Try adding:

menu_mc.home_mc.mouseChildren = false;