PDA

View Full Version : Creating a computer keyboard


Nibblingcheese
06-09-2005, 03:50 PM
Hi

Here's my quick query...

I'm creating a keyboard in Flash, where I have created several buttons with letters on. When they are pressed the letter is displayed in a dynamic text box. However, they replace each other. I don't want this to happen, I would like them to be able to spell out words, like a real keyboard.

This is the code I have on the buttons so far...


on (release){
answer = (a);
}


Ta in advance :)

Billystyx
06-09-2005, 03:58 PM
Set the variable of your textfield to myVar
on each button, do
on(release){
myVar=myVar+"a";
}
for example, on the button that represents 'a'
if you need a backspace button, then
on(release){
myVar=myVar.substr(0, myVar.length-1);
}


(or something like that)
billystyx