Disable Mouse events AS2
Posted on 2009-04-12
I have an FLA that has some buttons on one layer.
upon clicking one of the buttons, a new layer is being displayed on top of the previous layer.
all is ok, except that the bottom layer, is still clickable...
I need it to stop receiving events and stop showing the hand cursor while the top layer exists and resume events when the top layer is closed.
I tried :
mc.enabled = false;
mc.mouseEnabled = false;
mc.mouseChildren = false;
the following did work, but, the mouse cursor is still the hand cursor, and this seem like an ugly solution, for something that seems to me like a very basic function...
one_mc.onRelease = one_mc_onRelease;
function one_mc_onRelease ()
two_mc.onRelease = function ()
one_mc.onRelease = null;
any ideas ?