# How to disable a button

**URL:** <https://forum.kirupa.com/t/how-to-disable-a-button/69666>\
**Category:** Uncategorized\
**Created:** [November 6, 2004, 6:59pm UTC](https://forum.kirupa.com/t/how-to-disable-a-button/69666 "2004-11-06T18:59:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbkons](https://avatars.discourse-cdn.com/v4/letter/j/ecc23a/32.png) [@jbkons](https://forum.kirupa.com/u/jbkons)\
**Post date:** [November 6, 2004, 6:59pm UTC](https://forum.kirupa.com/t/how-to-disable-a-button/69666/1 "2004-11-06T18:59:15Z")

</div>

I have some buttons that play an external swf inside an empty movie clip on the main timeline. I was wondering what Actionscript I need to disable the button when it is pressed. I want the button to still have roll over functionality and everything, but I just want the swf to load once when the button is pressed. Below is the script I am using right now. Thanks!

on (release) {  
//load Movie Behavior  
if(this.content == Number(this.content)){  
loadMovieNum(“about.swf”,this.content);  
} else {  
this.content.loadMovie(“about.swf”);  
}  
//End Behavior  
}
