Button disable?

when I load a movie over the top of another movie the button underneath is still active

does anyone know if I can disable this button so it doesnt interfere with the movie on top?

cheers:)


this.enabled = false;

“this” on buttons targets it’s parent. Something I learned from kax :wink: So it might be possible that you have to use [AS]this.instancenameofthisbutton.enabled = false;[/AS]

Digitalosophy’s code should work if it’s within an onRelease.

mybutton.onRelease = function () {
trace( this );
}
// traces _level0.mybutton

:slight_smile:

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=32719

Correct, if you put ahmed’s on root, it’ll target the button. If you put it on the button itself, it will target it’s parent. That makes no sense actually :stuck_out_tongue:

Can’t you just put on the timeline where you want the button disabled:


_root.myButton.enabled = false;

??
Or is that sloppy? :-\

OK i have my buttons turing off but they wont’ turn back on

:edit: never mind reversed the variables.:edit: