LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-10-2003, 04:30 PM
mattock mattock is offline
Registered User
 
Join Date: Aug 2000
Location: Plymouth, Devon, UK
Posts: 12
Rep Power: 0
mattock is on a distinguished road
SWF DYNAMIC text fields randomly attached and attacking by typing

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
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump




All times are GMT. The time now is 04:34 PM.