[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Actionscript; Making an animated element appear in the foreground

Asked by bistro_math in Macromedia UltraDev, Adobe Creative Suite, Miscellaneous Web Development

Tags: flash, actionscript, positioning, front

Hey all,

I've got a flash animation that I'm working on, which uses simple actionscript to make elements on a map grow and reveal more information.

See SWF here: http://www.paconserve.org/ppl_map.html

I want the region of the map that 'grows' to appear in the foreground, but as it is, I'm having trouble getting them to appear in front of the 'rollover' elements. Is there a piece of actionscript that can make the 'growing' area appear in the front every time? Is there a better way to handle this project in general?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
stop();
 
    this.onEnterFrame = function(){
    if(zoom == true){
    prevFrame();
    }
    }
 
    this.onRollOver = function(){
    zoom = false;
    play();
    }
 
    this.onRollOut = function(){
    zoom = true;
    }
[+][-]01/20/09 02:26 AM, ID: 23418648Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/20/09 05:29 AM, ID: 23419703Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625