I have a question that probably has a pretty simple answer, I just can't come up with it. I have a movie clip offstage that says:
onClipEvent (keyDown) {
tellTarget ("_root" {
if (Key.getCode() == 112) {
play ();
This says that if the user press F1, play. But I also need to check the condition of an input text box. I need to tell Flash "If textbox A equals 100, and the user press F1 then play. But if textbox A doesn't equal 100, don't play (even if F1 is pressed). What do I have to add to my script? Any help is greatly appreciated.
onClipEvent (keyDown) {
tellTarget ("_root" {
if (Key.getCode() == 112) {
play ();
This says that if the user press F1, play. But I also need to check the condition of an input text box. I need to tell Flash "If textbox A equals 100, and the user press F1 then play. But if textbox A doesn't equal 100, don't play (even if F1 is pressed). What do I have to add to my script? Any help is greatly appreciated.