Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Controlling the parent movieclip from a nested clip

Posted on 2006-06-23
4
Medium Priority
?
248 Views
Last Modified: 2010-04-03
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 -
0
Comment
Question by:katyjack30096
  • 2
  • 2
4 Comments
 
LVL 12

Expert Comment

by:Proactivation
ID: 16969464
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);
0
 

Author Comment

by:katyjack30096
ID: 16969504
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.
0
 
LVL 12

Accepted Solution

by:
Proactivation earned 1500 total points
ID: 16969946
Ah, I see the problem.  One way around this is to put a thin invisible border around the dropdown movieclip by creating a movieclip with _alpha = 0, and attach the actions for closing the dropdown to the rollover state of that one.
0
 

Author Comment

by:katyjack30096
ID: 16978464
I ended up surrounding the dropdown movie clip with invisible buttons - that worked just great - thanks for your help.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question