Hello,
I am creating a website and have several mc’s that play animations and act as my navigation buttons. I’m trying to get the button for the page currently being displayed to be deactivated.
I tried If else statements to deactivate the Movie Clips, but it doesn’t seem to be working.
Here is my code for two of the button MCs:
if (this.myLoader.contentPath == “profile.jpg”) {
_root.nav.profile_btn.enabled=false;
_root.nav.capabilities_btn.enabled=true;
} else if (this.myLoader.contentPath == “capabilities.jpg”) {
_root.nav.profile_btn.enabled=true;
_root.nav.capabilities_btn.enabled=false;
}
As you can see I’m using a loader component to bring in my external swfs. When i run the movie, there are no errors, but the movie clips do not become deactivated. I am placing this code in an actions layer on the main timeline. Is the placement wrong? Any advice?
Thanks much!
Damon