# Enabled Button from a load SWF

**URL:** <https://forum.kirupa.com/t/enabled-button-from-a-load-swf/43743>\
**Category:** flash\
**Created:** [February 25, 2004, 3:58pm UTC](https://forum.kirupa.com/t/enabled-button-from-a-load-swf/43743 "2004-02-25T15:58:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lessmari](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@lessmari](https://forum.kirupa.com/u/lessmari)\
**Post date:** [February 25, 2004, 3:58pm UTC](https://forum.kirupa.com/t/enabled-button-from-a-load-swf/43743/1 "2004-02-25T15:58:10Z")

</div>

I am trying to turn buttons off and back on from a loaded SWF.

When loading an external SWF into an empty MC, the bottons on the root are still active underneath the loaded SWF.

I am using the following code on the button which loads the external SWF  
on (release) {  
loadMovie(“1005.swf”,\_root.location);  
}

and then from the first frame of the the loaded SWF I have  
\_root.compact.enabled = false  
\_root.compact.enabled = true

this is not working; the buttons are still active…Can anyone please help.
