# Help! My chatroom doesn't work

**URL:** <https://forum.kirupa.com/t/help-my-chatroom-doesnt-work/178142>\
**Category:** Uncategorized\
**Created:** [February 8, 2006, 1:50am UTC](https://forum.kirupa.com/t/help-my-chatroom-doesnt-work/178142 "2006-02-08T01:50:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OMG](https://avatars.discourse-cdn.com/v4/letter/o/9dc877/32.png) [@OMG](https://forum.kirupa.com/u/OMG)\
**Post date:** [February 8, 2006, 1:50am UTC](https://forum.kirupa.com/t/help-my-chatroom-doesnt-work/178142/1 "2006-02-08T01:50:39Z")

</div>

in the movie, there’s a XMLSocket, chat  
I use if (chat.connect(null, 8080) == false) {…}else{…}  
to know if the connection is ok  
then, in another frame(I’m already in this frame), here’s the AS:

```auto
 
chat.onConnect = function(success){
if (success) {
  disp = "connection succeeded";
 } else {
  disp = "connection failed";
 }
 }
chat.onXML = function(messages){
 var mess = messages.firstChild.firstChild.nodeValue
 disp += mess+"
"
 }
_root.send_bt.onRelease = function() {
 chat.send("<MESSAGE>"+inp+"</MESSAGE>");
 inp = "";
};

```

disp is a textfield to show the texts, inp is a textfield to say things  
everything are ok exept that I can’t see what I write when I click the send\_bt button
