Skip to main content
December 14, 2015
Question

How to disable movieclips in actionscript 3.0?

  • December 14, 2015
  • 1 reply
  • 2503 views

Hi. I am trying to disable movieclips in my project but the movieclips are not function as button. It just simple box that I converted as movieclips. I tried to disable by using this way

xxxMC.visible = false;

however it still appears in my project when I run. Anyone can tell me the solution? Thank you in advance!

This topic has been closed for replies.

1 reply

Inspiring
December 14, 2015

Hi.. If you want to disable it use:

xMC.enabled = xMC.mouseEnabled = false; //true to enable

you'll maybe need to set the mouseChildren property to false also:

xMC.enabled = xMC.mouseEnabled = xMC.mouseChildren = false;

xxxMC.visible = false; // it must be invisible except if you set the visible property to true in somewhere else..

EDIT

December 14, 2015

But it is not functioning as button. Should i stil use mouseEnabled ?

Inspiring
December 14, 2015

Yes it'll work on the buttons, movie clips, text fields and the sprites also.