# How to avoid avoid buttons when movieclip is loaded over them

**URL:** <https://forum.kirupa.com/t/how-to-avoid-avoid-buttons-when-movieclip-is-loaded-over-them/29438>\
**Category:** flash\
**Created:** [August 26, 2003, 7:50pm UTC](https://forum.kirupa.com/t/how-to-avoid-avoid-buttons-when-movieclip-is-loaded-over-them/29438 "2003-08-26T19:50:38Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jtesp](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@jtesp](https://forum.kirupa.com/u/jtesp)\
**Post date:** [August 26, 2003, 7:50pm UTC](https://forum.kirupa.com/t/how-to-avoid-avoid-buttons-when-movieclip-is-loaded-over-them/29438/1 "2003-08-26T19:50:38Z")

</div>

::::::::::SOLVED THANKS TO claudio::::::::::  
Kinda hard to explain…  
Say I have some buttons on a level 3 movie, then I click on one of those buttons, it loads an external movie on level 4. When the level 4 movie is ontop of the level 3 movie, level 3’s buttons still work even though they aren’t visible. How do I stop this???

Here’s an example:  
[http://www.bs-ps.com/](http://www.bs-ps.com/)  
when entering, go to Fast(broadband), skip the intro, click Staff and Services link, and you will see that the buttons are still there even though they are not visible. If you float the mouse a bit above the big word STAFF, you will see the cursor turn into a finger and the button will work.

How can I avoid this problem? I’ve had various situations where I like to load movie clips ontop of others, but the buttons still working annoys me.  
Any help appreciated!  
Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2003, 7:56pm UTC](https://forum.kirupa.com/t/how-to-avoid-avoid-buttons-when-movieclip-is-loaded-over-them/29438/2 "2003-08-26T19:56:43Z")

</div>

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=32655](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=32655)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2003, 8:55pm UTC](https://forum.kirupa.com/t/how-to-avoid-avoid-buttons-when-movieclip-is-loaded-over-them/29438/3 "2003-08-26T20:55:54Z")

</div>

Thanks! But hmmm…this is really confusing me ☹  
I have a “secret” button that loads a movie onto level 10. The rest of the buttons load into the “content” layer. I can’t seem to disable the other buttons…  
Where do I paste that first chunk of actionscript? Sorry, I’m kind of lost here.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2003, 9:54pm UTC](https://forum.kirupa.com/t/how-to-avoid-avoid-buttons-when-movieclip-is-loaded-over-them/29438/4 "2003-08-26T21:54:29Z")

</div>

on the one that you load put

```auto
onLoad = function () {
_root.loaded = true;
}

```

then on the frame put

```auto
onEnterFrame = function() {
if(_root.loaded == true) {
_root.button1._enabled = false;
_root.button2._enabled = false;
}
}

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2003, 10:19pm UTC](https://forum.kirupa.com/t/how-to-avoid-avoid-buttons-when-movieclip-is-loaded-over-them/29438/5 "2003-08-26T22:19:31Z")

</div>

\*\*\*\*…this one is giving me problems ☹ Would it be too much to ask for a simple .fla attachment? I’m far better at decyphering code by looking at a working version. Or perhaps you know a link with a tutorial and included fla file?  
Thanks alot for the help guys 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 27, 2003, 3:25am UTC](https://forum.kirupa.com/t/how-to-avoid-avoid-buttons-when-movieclip-is-loaded-over-them/29438/6 "2003-08-27T03:25:40Z")

</div>

Here

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 27, 2003, 3:57am UTC](https://forum.kirupa.com/t/how-to-avoid-avoid-buttons-when-movieclip-is-loaded-over-them/29438/7 "2003-08-27T03:57:29Z")

</div>

Ahhhh…THANK YOU so much! I’ll disect these after dinner 🙂 I really appreciate the extra effort for uploading this for me.  
😃

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 27, 2003, 4:02am UTC](https://forum.kirupa.com/t/how-to-avoid-avoid-buttons-when-movieclip-is-loaded-over-them/29438/8 "2003-08-27T04:02:48Z")

</div>

Anytime 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 27, 2003, 4:09am UTC](https://forum.kirupa.com/t/how-to-avoid-avoid-buttons-when-movieclip-is-loaded-over-them/29438/9 "2003-08-27T04:09:56Z")

</div>

Mmmm…works perfect! Oh yeah!  
Hey, you don’t know how to make an xml based dynamic text file editable from within a browser do you? This way, the client can easily edit the text content without dealing with ftp, notepad, etc.  
(I know that’s a shot in the dark)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 27, 2003, 4:11am UTC](https://forum.kirupa.com/t/how-to-avoid-avoid-buttons-when-movieclip-is-loaded-over-them/29438/10 "2003-08-27T04:11:00Z")

</div>

Nope i dunno that 😛  
maybe you want to start a new thread for that.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 27, 2003, 4:13am UTC](https://forum.kirupa.com/t/how-to-avoid-avoid-buttons-when-movieclip-is-loaded-over-them/29438/11 "2003-08-27T04:13:24Z")

</div>

Yeah, it’s in the server side scripting section 😉
