Advertisement

08.22.2008 at 09:18AM PDT, ID: 23670715
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.4

Button rollover to target movie clip within another movie clip

Asked by slovisa in Macromedia Flash, ActionScript

Tags: , , ,

I'm creating a map where users can rollover icons in the legend to highlight areas of the map; conversely, they can rollover areas of the map to highlight the associated icons in the legend. For some reason I'm not able to target the animations in the second level "map" movie clip.

The legend is at the _root level. It contains:
- buttons to trigger the rollover actions
- associated highlight animations (separate from the buttons)

The map (instance:"map") contains:
- the map (which can be panned and zoomed)
- buttons over certain areas of the map to trigger the rollover actions
- associated highlight animations (separate from the buttons)
- A giant button area that allows the map to be panned / dragged around.
Because the map can be panned and zoomed, the associated rollover buttons and animated clips need to be contained within the "map" clip.

All actions are at the root level.

The legend buttons (at _root) trigger the animated highlights on the legend icons (at _root), but NOT the map highlights (at _root.map).

The map buttons (at _root.map) also trigger the animated highlights on the legend icons (at _root), but not the map highlights (at _root.map).

It doesn't seem to matter whether is use a relative path or add "_root" to make it absolute - I can't trigger the animations at _root.map. It also doesn't seem to matter whether I target frame numbers or frame labels.

**********
To simplify:
ROOT = icon buttons; icon animations  <--ANIMATIONS WORK FINE
"MAP" CLIP = map buttons, map animations  <--CAN NOT TARGET FROM EITHER SET OF BUTTONS
**********
Forgive me for not posting the FLA, but it's massive.

The actions for the legend buttons are essentially:
icon1_button.onRollOver = function() {
      icon1_animation.gotoAndPlay("fadein");
      map.area1_animation.gotoAndPlay("fadein");
};

The actions for the map buttons are essentially:
map.area1_button.onRollOver = function() {
      loadMovie("infobubble.swf", holder_mc);  // I assume irrelevant to this problem
      new Tween(holder_mc, "_alpha", Regular.easeIn, 0, 100, 4, false);  // I assume irrelevant to this problem
      icon1_animation.gotoAndPlay("fadein");
      map.area1_animation.gotoAndPlay("fadein");
};

I've read that some people have had trouble targeting animation clips contained in clips that also contain buttons, but I haven't found a solution - and I've never had this problem before. Maybe I'm missing something obvious? Any help would be much appreciated!Start Free Trial
[+][-]08.26.2008 at 05:56PM PDT, ID: 22320992

View this solution now by starting your 14-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Macromedia Flash, ActionScript
Tags: Adobe, Flash, 9 / CS3, AS2
Sign Up Now!
Solution Provided By: slovisa
Participating Experts: 0
Solution Grade: A
 
 
 
Loading Advertisement...
20081112-EE-VQP-43 / EE_QW_2_20070628