View Full Version : touch screen keyboard

03-20-2001, 05:14 PM
I need help in being able to allocate specific keys to certain buttons to fill into a text field. If there is any easy way of doing this it would be most appreciate. All my attempts up to date have been failures. I can allocate variables to to a button to fill in a letter to a text field,
but it needs to be able to tab various fields, and fill it with multiple characters.

In short its a digital form filled in by a touch screen keyboard, all in the same flash movie.

Thanks in advance

03-21-2001, 07:07 AM
Well each of your field has a variable name right?
So how about this. You have a variable called 'currentField' which holds the name of the variable which you are currently working on. Say your form has a field marked 'name' and another marked 'phone'. SO while working on the name field/variable you set:
currentField = "name";

Then each of your buttons appends its letter to the current variable/field. So the letter D would have this code on it:

set (_root.currentField, (eval(_root.currentField))+ "d");

This sets the current variable to its current value plus the letter 'd' on the end.

So all you have to do is change the currentField variable and the field you're effecting will change



12-31-2008, 04:33 PM
i have a keyboard working using your example... I can't figure out how to make a backspace button to delete a character. Any ideas?

Is it possible to have the data entered into the text box focus on the newest added character?