I have 3 invisible buttons and I'd like to "deactivate" and "reactivate" them using script. When one button is clicked it will deactivate (not be interactive) and the other two are activated (interactive).
Can this be done in AS 3.0?
Printable View
I have 3 invisible buttons and I'd like to "deactivate" and "reactivate" them using script. When one button is clicked it will deactivate (not be interactive) and the other two are activated (interactive).
Can this be done in AS 3.0?
btn_name.removeEventListener(event, function);
or
btn_name.enabled = false;
It might be better to choose to remove the listener then disable the button, especially if the user won't be toggling. But if he'll be switching between buttons often using the second method would be better. Good luck.