Log in

View Full Version : Resolved Make element appear in the foreground



bistromath
01-19-2009, 10:22 PM
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. The actionscript looks like this:


stop();

this.onEnterFrame = function(){
if(zoom == true){
prevFrame();
}
}

this.onRollOver = function(){
zoom = false;
play();
}

this.onRollOut = function(){
zoom = true;
}

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?

Thanks in advance, this forum is always such a huge help...

bistromath
01-20-2009, 03:26 AM
Scratch that, got it figured out.



on(rollOver)

{

this.swapDepths(1000);


}

Nile
01-20-2009, 04:15 AM
It seems your topic is solved... Please set the status to resolved.. To do this:
Go to your first post ->
Edit your first post ->
Click "Go Advanced" ->
Then in the drop down next to the title, select "RESOLVED"