# Disabling Movie Clips

**URL:** https://forum.kirupa.com/t/disabling-movie-clips/212568
**Category:** flash
**Created:** [January 12, 2007, 4:53am UTC](https://forum.kirupa.com/t/disabling-movie-clips/212568 "2007-01-12T04:53:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![malnourished](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@malnourished](https://forum.kirupa.com/u/malnourished)
#### Post date: [January 12, 2007, 4:53am UTC](https://forum.kirupa.com/t/disabling-movie-clips/212568/1 "2007-01-12T04:53:49Z")

</div>

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
