View Full Version : imput text being read
tiger
11-26-2002, 03:54 PM
I have a very basic program that depending on the imput text (a number) gives you a answer. its a grading system 80=A. it all works fine except when the program is running and i got to change the text it wont read it. if i have a preset number it gives me a answer but when i change it nothing happens. how do I get flash to read the text in the imput window?
jimburton
11-26-2002, 06:06 PM
you need to trigger whatever code it is that makes your calculation, so put it in a function then call that function when a button is pressed, or maybe when the text field changes...eg:
function myFunction() {
// your code...
}
myTextField.onChanged = myFunction;
// or mySubmitButton.onRelease = myFunction;
tiger
11-26-2002, 06:17 PM
well duh! I feel a little dumb, thanks much! :)
Im just not thinking stright to day I guess
jimburton
11-26-2002, 06:21 PM
;)
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.