Hi everyone-
I’m new to flash and having an issue with my navigation menu. I have 5 buttons on the left that when clicked call in a different movie clip from the right. Right now my code for each button looks like this-
btn1.onRelease = function() {
home.play(nextFrame);
if(home.getDepth( ) < web.getDepth( )){
web.swapDepths(home);
}
if (home.getDepth( ) < blog.getDepth( )){
blog.swapDepths(home);
}
if (home.getDepth( ) < radio.getDepth( )){
radio.swapDepths(home);
}
if (home.getDepth( ) < about.getDepth( )){
about.swapDepths(home); // Catchall if other conditions were not met
}}
I do this for each button and each is paired with a different movie clip. The problem is that once I have clicked a button and the movie clip comes out, if I want to click it again at a later point, it requires two clicks- first to remove the original movie clip, and second to bring it out again.
I want to eliminate that first click, by making it so when a button is pressed, all instances of that same movie clip disappear… so that way the navigation is smooth.
If anyone has any suggestions, I would really appreciate it.