5 Replies Latest reply on Jun 23, 2010 12:12 PM by mattbanks82

    Setting textbox text property to ""


      I know this is a very basic question, but I have some code here that I have been trying to figure out why it wont work for about 3 hours.


      I have a button that you click when you want to send a message. I also have a keyboard shortcut for the Enter key to send the message. Both of these options go to the same function.


      public function onKey(event:KeyboardEvent):void{
           if (event.keyCode == 13){   


      the button goes to onChatSend(); also


                  public function onChatSend():void
                      if(chatMsg.text != ""){
                          if(infoPanel.visible == false){
                              sendStream.send("onTextRecieve", chatMsg.text);
                              chatMsg.text = "";