I am building a resource for my students which allows text entry into a text input text field. When I try to type the answer a number of keys are disabled. I have tried disabling keyboard shortcuts in the Flash editor. I have then tried closing the program and just running it in the stand alone Flash Player. The list of keys that do not work are given below.
The keys that do not work are 5,6,8,9,0,P,J,K,B, and X. I have not tested other alphanumeric characters.
the Flash Player version is version 9.
I am using Adobe Flash 5 at home but save as version 4 for use in school. I am running ActionScript 2.
Regards
teacheRuss
Kglad
I am not detecting any keys. My Flash file is the start of a simple quiz. ans1 (in the code below) is a text box instance. The actionscript compares what is typed in with a number of given answers. The trouble is if I make questions that need any of the keyboard keys that do not work then the anser cannot be inputted. Thsiis my problem.
Code given below:
Q1.onRelease = function() {//Q1 carries out this function when
//the mouse is released Q1 is hte button named and is assigned this script
trace(ans1.text); //ans1 is the variable name for the data entry box. The trace
//method traces ans1 text entered in the output window
if(ans1.text == "-1" || ans1.text == "minus 1" ||
ans1.text == "Minus 1" || ans1.text == "Minus one" ||
ans1.text == "minus one") //checks the data entered into the box where ==
//is equal to and || means OR
{
_root.gotoAndStop(3) // if ans1 is equal to any ofthe above the playhead jumps to frame 3
// for the welcome message then closes correct condition
} else { // else allows the playhead to jump to frame 4 with the
// incorrect answer
_root.gotoAndStop(4)
} // closes the incorrect condition
} // closes the script
North America
Europe, Middle East and Africa
Asia Pacific