# Deactivate a button

**URL:** <https://forum.kirupa.com/t/deactivate-a-button/236304>\
**Category:** flash\
**Created:** [August 19, 2007, 5:40pm UTC](https://forum.kirupa.com/t/deactivate-a-button/236304 "2007-08-19T17:40:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![poe](https://avatars.discourse-cdn.com/v4/letter/p/5fc32e/32.png) [@poe](https://forum.kirupa.com/u/poe)\
**Post date:** [August 19, 2007, 5:40pm UTC](https://forum.kirupa.com/t/deactivate-a-button/236304/1 "2007-08-19T17:40:00Z")

</div>

[SIZE=3][FONT=Times New Roman] I have a main swf that loads other swf in to it sefl. This main swf has may main navigation. I would like to change the active state of my buttons to none active once it loads a page. Then I would like the button to go back to it’s active state after you load a new swf. Because know when you loaded the swf the correspondent button is still active. [/FONT][/SIZE]  
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]Is there an actionscript I can use to deactivate a button when press then reactivate it when another button is pressed.[/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]Thank in advance[/SIZE][/FONT]
