Solved

Controlling the parent movieclip from a nested clip

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
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,…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

790 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