Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Controlling the parent movieclip from a nested clip

Posted on 2006-06-23
4
Medium Priority
?
247 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

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…
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
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.

715 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