Link to home
Start Free TrialLog in
Avatar of katyjack30096
katyjack30096

asked on

Controlling the parent movieclip from a nested clip

Hi - I've got a movie clip that is a drop down menu. When you mouse over a menu button, the dropdown clip becomes visible and pops down. That works just great - however the problem is that the drop down clip is made up of individual movieclips that i'm using as buttons. What I'd like to be able to do is to ad an onRollOut action to the drop down clip so that when you mouse out of it, it flys back up again. However, doing that causes the actions attached to the buttons within the dropdown clip to not work. I tried making moving out of the individual button to cause the parent to fly up, but if you're just moving from one button to another, that causes the drop down clip to fly up and down in a distracting manner. How can I keep my individual button actions and still make the drop down menu fly away when you move out of it's area?

Thanks -
Avatar of Proactivation
Proactivation
Flag of United Kingdom of Great Britain and Northern Ireland image

Keep all the actions on the child movieclips (buttons).  If you have any actions on the parent movie, it'll obscure the actions of the movies it contains.  In your child movieclips, do something like _parent.gotoAndPlay(flyup);
Avatar of katyjack30096
katyjack30096

ASKER

Yes, that's what I'm trying to do - however if they are simply moving from one child clip to the next, i don't want the parent to flyup. I need to figure out someway to know just where exactly the mouse went once if rolled off the active button.
ASKER CERTIFIED SOLUTION
Avatar of Proactivation
Proactivation
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I ended up surrounding the dropdown movie clip with invisible buttons - that worked just great - thanks for your help.