Question
how to "turn off" a button
Is there any way how to "TURN OFF" a button by AS? I mean
keep the button _visible just make it not react like button (no on
roll over, on press behaviour). In reality, I have semi transparent
menu and there might be a case when there will be some stage
buttons under my menu. I need keep the stage buttons visible but
turn their function so the user would not be allowed to click them
while the transparent menu covers them.
Till now I always solved this situation by having two exactly same objects on each other - one button, on graphic and I was switching their _visible property depending if the button is supposed "to work" or not. That works fine but I have found it very "heavy", I search for "lighter" and more elegant solution.
Thanks for any helps or recommendations.
Till now I always solved this situation by having two exactly same objects on each other - one button, on graphic and I was switching their _visible property depending if the button is supposed "to work" or not. That works fine but I have found it very "heavy", I search for "lighter" and more elegant solution.
Thanks for any helps or recommendations.