# I need to disable links after mc plays

**URL:** https://forum.kirupa.com/t/i-need-to-disable-links-after-mc-plays/274646
**Category:** flash
**Created:** [November 2, 2008, 12:43am UTC](https://forum.kirupa.com/t/i-need-to-disable-links-after-mc-plays/274646 "2008-11-02T00:43:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![shanmarkshan](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@shanmarkshan](https://forum.kirupa.com/u/shanmarkshan)
#### Post date: [November 2, 2008, 12:43am UTC](https://forum.kirupa.com/t/i-need-to-disable-links-after-mc-plays/274646/1 "2008-11-02T00:43:29Z")

</div>

Hi,

I’m working on a web site [http://nchomeloan.net/muse.htm](http://nchomeloan.net/muse.htm) and I need to have the buttons not enabled when the mc containing the button is not playing. I have completed several tutorials but can not get this to work. If anyone can help I would really appreciate it. This is the code I am trying to use:  
directionsmuse\_mc.directions\_btn.enabled=false;

This is the error I get:  
**Error** Scene=Scene 1, layer=buttons, frame=1:Line 1: Statement must appear within on handler  
restaurant\_btn.enabled=false;

Total ActionScript Errors: 1 Reported Errors: 1
