Hi,
Im doing a movie that contains an input box what i’m looking for is a way of adding an answer button that will only reveal the answer if there is and input in the input box?
Thanks
Spence
Hi,
Im doing a movie that contains an input box what i’m looking for is a way of adding an answer button that will only reveal the answer if there is and input in the input box?
Thanks
Spence
Put this on your button:
on (release) {
if (inputBox == "Answer" or inputBox == "answer") {
//if answer is right
text = "CORRECT!";
} else if (inputBox == "") {
//if there's no input
text = "Please enter an answer"
} else {
//if answer is wrong
text = "Wrong!"
}
}
hope it helps…and hope it’s right too
EDIT: I REACHED MY 100 POSTS MARK
Thanks that’s great :}