# Mybutton.enabled = true question

**URL:** <https://forum.kirupa.com/t/mybutton-enabled-true-question/224730>\
**Category:** Uncategorized\
**Created:** [May 4, 2007, 8:26pm UTC](https://forum.kirupa.com/t/mybutton-enabled-true-question/224730 "2007-05-04T20:26:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yabai](https://avatars.discourse-cdn.com/v4/letter/y/958977/32.png) [@yabai](https://forum.kirupa.com/u/yabai)\
**Post date:** [May 4, 2007, 8:26pm UTC](https://forum.kirupa.com/t/mybutton-enabled-true-question/224730/1 "2007-05-04T20:26:16Z")

</div>

hi,

i have a main swf that is loading different swfs into a higher level. i don’t want the buttons on the main level still active so i am using:

mybutton.enabled = false;

here is some code…  
work.onPress = function () {  
loadMovie(“work.swf”, “container”);  
container.\_x = 235 ;  
container.\_y = 145 ;  
ipa.enabled = false;  
}

on the work.swf there is also a close button.  
on(release) {  
unloadMovie(\_root.container);  
}

how can i enable the buttons again on the main swf? i have tried the following but am not sure of the path back to the main swf.

on(release) {  
unloadMovie(\_root.container);  
ipa.enabled = true;  
}  
on(release) {  
unloadMovie(\_root.container);  
\_root.ipa.enabled = true;  
}

any help would be great.
