PDA

View Full Version : keypress for button component


mahomasy
04-30-2008, 12:49 PM
hi there, i wonder if anyone can help me. my a.s skills are pretty lame.
i'm trying to modify a flash quiz template for the students in my school and would like for them to have the option of hitting enter aswell as clicking the button.
i've scouted around this forum and found a few keypress scripts but none have worked thus far. i've already adding a setfocus to the text input field, would this affect it?
any help would be greatly appreciated.

Milind sawant
04-30-2008, 01:11 PM
Hello,
Can you show your script so, I will help you....


Thanks...;)

mahomasy
04-30-2008, 01:44 PM
well thats the thing, i dont have any. i tried adding on (keyPress "<Enter>") {

}
but it didnt work. i've read that you can't use a keypress function with a button component in as2. is that true?

Milind sawant
05-02-2008, 10:42 AM
Hello,
I think, that is not a true. We ca use keypress function with a button component
Well I attached on file, please let me know is it usefull for you?

Thanks...:D

mahomasy
07-10-2008, 08:56 AM
hi, thanks for the reply, sorry for taking so long, i had to forget about this for a while.
just looking at your script. the keypress function u have included is for a button symbol, not a button component. I'm trying to add a keypress function to a button component that exists in a quiz template. any more ideas?