PDA

View Full Version : AS2.0 "Chat Client"


archon68
09-23-2008, 09:29 PM
I'm using Flash CS3, and AS2.0. I don't know whether this is a Flash or Actionscript related question, so I've decided to put it on this forum.

I have the stage set up to handle the chat client as follows:

There is a box in the middle of the screen, containing an input text box (named "talk"). Above it, there is a dynamic text box (named "record") in which all the replies and requests will be stored. My problem is that I want the user to be able to press the "ENTER" key to submit their request, but every time the enter key is pressed, it clears the current text field. Is there any way to stop this???

The 'Input Text' UI Component doesn't fit my situation because I need the text area to have a background (an image, to be precise). I know using the Input Text component works very well, but unless I can remove the border and background, then I won't use it.

And I don't want to force the user to press a button with the mouse every time they enter text. That's just not fair.

:confused:

aamenabar
09-24-2008, 06:38 AM
first check if you are using single or multiline textfield.(maybe it's just scrolling down)
if that is OK, paste here the code you are using to paste from one textField to the other...