Forum Moderators: open
if (_root.textbox.text == "disable") {
_root.mainbutton._visible = false;
}
It does nothing.
Any help?
buttondisable_btn.onPress = function(){
myVariable = textbox.text;
if (myVariable == "disable") {
mainbutton._visible = false;
}
}
Put this on the root timeline. You really should let an imput text box have a button to execute it, otherwise set up a listener to dynamically check for changes to the text box.