
Welcome Guest
|
#1
|
|||
|
|||
|
DYNAMIC text fields randomly attached and attacking by typing
HI, I have dynamic text boxes in a typing game that when a random number is produced it attaches the text filed, applys arandom letter or word, and it falls down the stage along with a creature graphic. The idea is you have to type the letter or word attached to the MC to kill it and then just send the MC to a different frame. We have the attaching and falling done but cant work out how to get it to die when you type the letter or word. I have tried things like ------- Actionscript:
KeyListener = new Object();
KeyListener.onKeyDown = function() {
for (i=0, i
if (newbaddie.charAt(i) == (String.fromCharCode(Key.getAscii())) {
die = true;
}
}----------- But NO JOY ? we then have the problem of How do I set the focus of which MC we are trying to kill ? If you start typing one ,..I want the viewer to HAVE to finish that one.. before he can kill any others ! so I guess I dont know how to set the focus of the Dynamic text field? I have the MC's falling at differnt random speeds aswell Any ideas Thanks in advance
__________________
info@mattockgraphicdesign.com http://www.mattockgraphicdesign.com |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|



