View Full Version : Can Anyone Help Me?
izzy44
02-19-2003, 04:00 PM
I have this project that I am working on and desperately needing to complete. I am new to flash and I don't know how to make the action work.
What I need to happen is when I click on a designated button, a specified character will show up in an input text field. I know it sounds simple but I don't have the slightest clue how to begin. If anyone has any ideas or solutions it would be greatly appreciated.
izzypride44@earthlink.net
Thanks, Izzy
Bezirker
02-19-2003, 04:16 PM
ma
Make an input text field. Make sure you put an instance name on it (for purpose of this example lets call it textBox). Then in the var field enter a name for the variable which will hold your text (lets call it text).
make a button and then place this code on the button (you can change it later):
on (release) {
textBox.text = "t";
}
This will display the letter 't' in the input text box once you click the button.
:cool:
izzy44
02-19-2003, 04:38 PM
Thank you very much for your reply. Your solution worked perfectly except for one thing. In the text field, I want to make it so that more than one character can appear in it.
For example, if I were to click on the "a" button and then the "b" button, the text field would show "a" and then "b". I want it to show "ab". Again your help is very much appreciated.
Izzy
Bezirker
02-19-2003, 04:51 PM
All you do is change the operator to add and reassign which would be this code on each button:
on (release) {
textBox.text += "t";
}
Just change the '=' to '+='
:)
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.