Skip to main content
Known Participant
January 9, 2007
Question

ENTER key

  • January 9, 2007
  • 4 replies
  • 372 views
Hi,
I am making use of the ENTER key from my keyboard after typing the answer, and the score is obtained.
I referenced the "input text : insert_txt" and referenced the "Var: answer"

I dont undertand why the code is not working, when I press the ENTER key.
Thanks
U
This topic has been closed for replies.

4 replies

kglad
Community Expert
Community Expert
January 9, 2007
there's nothing wrong with your code, but there's also nothing about myScore and nothing about a textfield.

why don't you add the code you want to your checkKey() and/or releaseKey() functions?
Known Participant
January 9, 2007
Hi,
I tried both ways:
I published the movie and ran the swf and I disabled the keys (control) in Flash, but still I did not get any score in the
score box. Whre I should be possibly going wrong? I double checked the instance names and var of the input field, dynamic field boxes. Please advise how you got it working right.

Else, I would like to try a second option but I am not sure where to incorporate myScore =+25 and insert_txt.text="lascaux"
Kindly help.
kglad
Community Expert
Community Expert
January 9, 2007
or, in the test environment, click control/disable keyboard shortcuts.
Participating Frequently
January 9, 2007
your script is working, try publish your swf and run the swf, instead of testing movie from flash.

Because when you test movie from flash, your flash run in debug mode where ENTER key means "play".