Solved

Controlling the parent movieclip from a nested clip

Posted on 2006-06-23
4
240 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 500 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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,…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to how to record live broadcast.

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now