# De-activating/activating buttons

**URL:** https://forum.kirupa.com/t/de-activating-activating-buttons/283665
**Category:** Uncategorized
**Created:** [March 9, 2009, 8:21pm UTC](https://forum.kirupa.com/t/de-activating-activating-buttons/283665 "2009-03-09T20:21:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![webguync](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/webguync/32/2434_2.png) [@webguync](https://forum.kirupa.com/u/webguync)
#### Post date: [March 9, 2009, 8:21pm UTC](https://forum.kirupa.com/t/de-activating-activating-buttons/283665/1 "2009-03-09T20:21:39Z")

</div>

Hi,

I want to create some AS to disable and enable a button. Let’s call this ButtonX. I want this button to appear disabled at first, and then allow the user the option of enabling this button (ButtonX) by clicking another button. Let’s call this ButtonY. I cannot get this to work. I am attaching the code I am trying. I have this AS added to ButtonY and ButtonX is the instance name for the button I want to de-activate-activate.

any assistance?
