# button1.enabled = true; problem

**URL:** <https://forum.kirupa.com/t/button1-enabled-true-problem/111735>\
**Category:** Uncategorized\
**Created:** [May 30, 2004, 2:22pm UTC](https://forum.kirupa.com/t/button1-enabled-true-problem/111735 "2004-05-30T14:22:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![respeto86](https://avatars.discourse-cdn.com/v4/letter/r/b19c9b/32.png) [@respeto86](https://forum.kirupa.com/u/respeto86)\
**Post date:** [May 30, 2004, 2:22pm UTC](https://forum.kirupa.com/t/button1-enabled-true-problem/111735/1 "2004-05-30T14:22:39Z")

</div>

Hi there. Here is my problem: I have a few buttons on an MC. They are successfully disable by this code:

```auto
on (release) {
button1.enabled = false;
button2.enabled = false;
}

```

However, when I set the code to true on the “close” button of an externally loaded MC, it does not enable my buttons. Here are the codes I have tried to enable the buttons:

```auto
on (release) {
this.unloadMovie();
button1.enabled = true;
button2.enabled = true;
}

```

I also tried adding \_parent.,\_root.,\_level0.,and level1. to the buttons.enabled = true; lines of code but it didn’t work either. Any idea what am I doing wrong? I looked at the other threads on this subject but they were of no help. Hope somebody can figure it out. Thanks.
