To start,
there are 5 tabs at the top of my page. The first one being “home”, the next one being “projects”. When i click on the projects tab, i created a movie clip from an external .swf that has some more tabs that kindof drop down, if you will. My movie clip is divided into sections:
_up - which has nothing on it
_on - which makes the buttons drop down
_out - which makes the buttons reverse and pop up
My dilema:
When you click on projects i have it coded
_root.secondarytabs.gotoAndPlay("_on");
which works like a charm. Then on the “home” tab, i coded it
_root.secondarytabs.gotoAndPlay("_out");
which also works like a charm. My problem is that when the home page is already on, and i click home again, it shows the buttons fly up… which were non-existent to begin with, so it looks funny. I wanted to use some sort of “if else” statement or something to make this work properly. So i had:
if (secondarytabs == “_on”) {
_root.secondarytabs.gotoAndPlay("_out")
} else {
_root.secondarytabs.gotoAndPlay("_up")
}
Thinking that if the movie is in the “_on” state, meaning the buttons are dropped down and visible, then when i click on “home” it will start the “_out” portion of the video so the buttons will jump up. Otherwise, if the video is in a different state, it will just move the video to “_up”, where it will show nothing anyways… but there is something wrong with my code becuase it doesnt work…
Please help