# Can I kill function?

**URL:** <https://forum.kirupa.com/t/can-i-kill-function/208582>\
**Category:** flash\
**Created:** [November 30, 2006, 5:18am UTC](https://forum.kirupa.com/t/can-i-kill-function/208582 "2006-11-30T05:18:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xelaxam](https://avatars.discourse-cdn.com/v4/letter/x/5e9695/32.png) [@xelaxam](https://forum.kirupa.com/u/xelaxam)\
**Post date:** [November 30, 2006, 5:18am UTC](https://forum.kirupa.com/t/can-i-kill-function/208582/1 "2006-11-30T05:18:03Z")

</div>

Pretty easy question… is it possible to disable function after you did a certai action… For exemple after I click on btc

this.btc.onRollOver = function () {  
btc.gotoAndPlay("\_over");  
}

this.btc.onRollOut = function () {  
btc.gotoAndPlay("\_out");  
}

this.btc.onRelease = function () {  
close1.gotoAndPlay("\_click");  
}

is it possible to disable all the function before (probably i need to put a name between the “()” )
