Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Depths - Bring to Front?

Status
Not open for further replies.

abbott567

Technical User
Jun 18, 2007
38
0
0
GB
hey - i am using some script to determine which movieclip loads as to which button is pressed - like a nav bar and each movie clip is a page

but i want to make whichever it pressed come to the front of the layers

my code is this...

bt1.onRelease = function() {
if(currMovie == "mc1"){
stop();
}else{
_root[nextMovie].gotoAndPlay("fadeOut");
nextMovie = currMovie = "mc1";
}
};

bt2.onRelease = function() {
if(currMovie == "mc2"){
stop();
}else{
_root[nextMovie].gotoAndPlay("fadeOut");
nextMovie = currMovie = "mc2";
}
};


how can i integrate the swapDepths function so that the page is brought forward each time the pages are swapped...

thanks in advance -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top