# Starting with XML Sockets

**URL:** <https://forum.kirupa.com/t/starting-with-xml-sockets/57945>\
**Category:** Uncategorized\
**Created:** [July 18, 2004, 4:59am UTC](https://forum.kirupa.com/t/starting-with-xml-sockets/57945 "2004-07-18T04:59:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![richmulhern](https://avatars.discourse-cdn.com/v4/letter/r/a88e57/32.png) [@richmulhern](https://forum.kirupa.com/u/richmulhern)\
**Post date:** [July 18, 2004, 4:59am UTC](https://forum.kirupa.com/t/starting-with-xml-sockets/57945/1 "2004-07-18T04:59:54Z")

</div>

Hello,

```
 I've begun playing with Flash and XML Socket Servers and I thought I started taking to it easy, but now I'm running into some problems and I'm a bit confused! I was able to connect and disconnect to a socket server I wrote and Unity but I seem to be having problems sending and/or recieveing data.

```

I wrote a small amount of code to try it out:

var server:XMLSocket = new XMLSocket();  
server.connect(“66.194.238.241”,10000);

server.onConnect = function(success:Boolean) {  
trace(success);  
}

\_root.onMouseDown = function(success:Boolean) {  
server.send(“Sent Data!”);  
}

server.onXML = function() {  
trace(“Got Data!”);  
}

It seems to be connecting fine but when I click and I try my send, I get no reaction at all! Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 18, 2004, 2:13pm UTC](https://forum.kirupa.com/t/starting-with-xml-sockets/57945/2 "2004-07-18T14:13:46Z")

</div>

Interesting topic, I can’t help you at all but where can I find more info about XML socket-servers and that kind of Actionscript tech?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 18, 2004, 5:43pm UTC](https://forum.kirupa.com/t/starting-with-xml-sockets/57945/3 "2004-07-18T17:43:21Z")

</div>

For some reason i havn’t seen very many thing on how ot do this just apps like moock comm ([http://moock.org/](http://moock.org/)).
