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 -
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 -