# Disabling buttons when a new swf is loaded

**URL:** https://forum.kirupa.com/t/disabling-buttons-when-a-new-swf-is-loaded/204604
**Category:** Uncategorized
**Created:** [October 21, 2006, 12:38pm UTC](https://forum.kirupa.com/t/disabling-buttons-when-a-new-swf-is-loaded/204604 "2006-10-21T12:38:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![thegoodchairman](https://avatars.discourse-cdn.com/v4/letter/t/958977/32.png) [@thegoodchairman](https://forum.kirupa.com/u/thegoodchairman)
#### Post date: [October 21, 2006, 12:38pm UTC](https://forum.kirupa.com/t/disabling-buttons-when-a-new-swf-is-loaded/204604/1 "2006-10-21T12:38:11Z")

</div>

Hallo Folks!  
How are things?  
M working on a personal project and i would like to need help for now because ive been stuck trying to figure out how to get it done.

My main image for the site is a building and i have a button place on each window.

The button is something like this  
on(release) {  
createEmptyMovieClip(“pocket”,5);  
pocket.loadMovie(“room01.swf”);  
pocket.\_x = 55 ; pocket.\_y = 10 ;  
}

My problem is when the room01.swf is loaded it loads on top of the window buttons and it just mess up eveything.

I need help if the way ny button action is ok and how to disable the other window buttons when a new swf is loaded. Is there a better way of handling it?

Thanks!  
Mao Lee

---

<div class="post-metadata">

### Author: ![thegoodchairman](https://avatars.discourse-cdn.com/v4/letter/t/958977/32.png) [@thegoodchairman](https://forum.kirupa.com/u/thegoodchairman)
#### Post date: [October 23, 2006, 3:33am UTC](https://forum.kirupa.com/t/disabling-buttons-when-a-new-swf-is-loaded/204604/2 "2006-10-23T03:33:31Z")

</div>

Hi Man this is what i mean  
im nt sure wad u mean, but since u wanted room01.swf to load over ur existing swf, (i assume u inserted all the buttons in ur workspace (so the new swf should be of a higher layer), so all the buttons would b ignored.
