PDA

View Full Version : How to enable and disable a MC that works as a button?



ecptavares
February 20th, 2008, 12:39 PM
Hi!

I have a MC that works as a button and I want to disable it.I am using mc.enabled = false; but even doing this I am still able to click it and execute its actions.

What is Wrong?

dewey
February 20th, 2008, 02:43 PM
Hi!

I have a MC that works as a button and I want to disable it.I am using mc.enabled = false; but even doing this I am still able to click it and execute its actions.

What is Wrong?



Use mc.mousechildren = false...

That should do it!

mfey
February 20th, 2008, 09:25 PM
Hi!

I have a MC that works as a button and I want to disable it.I am using mc.enabled = false; but even doing this I am still able to click it and execute its actions.

What is Wrong?

or mouseEnabled = false