elektra
11-24-2003, 04:34 PM
hi there
im having a problem with disabling a button in a parent MC. Im making a game where you can click on thre different doors and then enter a room behind them. Inside each room theres a back-button that sends you back to the three doors. I want to make the door that has once been clicked disabled so that you cant enter again. The trouble is that I cant find a solution for disabling a button (for the door) in the MC in which the doors are (and the buttons). Ive tried this code for the back-button in the rooms:
on (release) {
_root.rum.gotoAndPlay("rum");
_root.rum.myButton._visible = false;
}
but then when you enter the mc with the three doors ("rum") the button is still active. Ive tried the myButton.enabled = false; as well but it does'nt work.
Does somebody have a suggestion?
im having a problem with disabling a button in a parent MC. Im making a game where you can click on thre different doors and then enter a room behind them. Inside each room theres a back-button that sends you back to the three doors. I want to make the door that has once been clicked disabled so that you cant enter again. The trouble is that I cant find a solution for disabling a button (for the door) in the MC in which the doors are (and the buttons). Ive tried this code for the back-button in the rooms:
on (release) {
_root.rum.gotoAndPlay("rum");
_root.rum.myButton._visible = false;
}
but then when you enter the mc with the three doors ("rum") the button is still active. Ive tried the myButton.enabled = false; as well but it does'nt work.
Does somebody have a suggestion?