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
Cheers
Jesse
__________________
Cheers
Jesse Stratford
ActionScript.org Cofounder
Please don't email or PM me Flash questions, that's what the Forums are for!
Please don't rely on me reading my PMs either. Email me about important stuff.
|