# Kill button function on Release

**URL:** <https://forum.kirupa.com/t/kill-button-function-on-release/262856>\
**Category:** flash\
**Created:** [June 10, 2008, 4:03pm UTC](https://forum.kirupa.com/t/kill-button-function-on-release/262856 "2008-06-10T16:03:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mickmaster\_b](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mickmaster\_b](https://forum.kirupa.com/u/mickmaster_b)\
**Post date:** [June 10, 2008, 4:03pm UTC](https://forum.kirupa.com/t/kill-button-function-on-release/262856/1 "2008-06-10T16:03:00Z")

</div>

Hi, I have a series of buttons [actionscript movie clips - on level 3] on a multi-level flash site. Each button opens a movie on a higher level [level 6]. From this level you can still see level 3 buttons, so i want to ‘kill’ the button functions and then on closing level 6 the button functions will return. Is this possible?

Any ideas much appreciated.

---

<div class="post-metadata">

**Author:** ![Ikinsey](https://avatars.discourse-cdn.com/v4/letter/i/f14d63/32.png) [@Ikinsey](https://forum.kirupa.com/u/Ikinsey)\
**Post date:** [June 10, 2008, 10:51pm UTC](https://forum.kirupa.com/t/kill-button-function-on-release/262856/2 "2008-06-10T22:51:44Z")

</div>

If you’re in AS3:

button.enabled = false;

---

<div class="post-metadata">

**Author:** ![cholin](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@cholin](https://forum.kirupa.com/u/cholin)\
**Post date:** [June 11, 2008, 3:01am UTC](https://forum.kirupa.com/t/kill-button-function-on-release/262856/3 "2008-06-11T03:01:35Z")

</div>

Or the typical

delete \_root.button3.onRelease;

---

<div class="post-metadata">

**Author:** ![mickmaster\_b](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mickmaster\_b](https://forum.kirupa.com/u/mickmaster_b)\
**Post date:** [June 17, 2008, 9:04am UTC](https://forum.kirupa.com/t/kill-button-function-on-release/262856/4 "2008-06-17T09:04:40Z")

</div>

Cheers Guys,

From your code I worked it out. Sorry should have stated its was AS2:

```auto
_level3.cont.b1.enabled = 0;

```

thanks again!
