# Multiplayer game using sockets

**URL:** <https://forum.kirupa.com/t/multiplayer-game-using-sockets/321008>\
**Category:** Uncategorized\
**Created:** [April 7, 2011, 6:03pm UTC](https://forum.kirupa.com/t/multiplayer-game-using-sockets/321008 "2011-04-07T18:03:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danmc977](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@danmc977](https://forum.kirupa.com/u/danmc977)\
**Post date:** [April 7, 2011, 6:03pm UTC](https://forum.kirupa.com/t/multiplayer-game-using-sockets/321008/1 "2011-04-07T18:03:52Z")

</div>

Hey guys, posted this in the as2 forums just wondering if anyone could help me out here;

Just wondering if anyone could help me with making a multiplayer flash game using as2? Ive created a game and a socket connection (java) for a chat program im pretty confident with as2 but not so much with java.

I really need help with the basics: Moving a character on one client, notifying the server then applying the change for the receiving client.

Ive come up with this:  
_XMLSocket.prototype.onData = function(msg) {  
if (msg == (“move\_left”)) {  
move\_left(); }_

Sadly it isnt this simple, so was just wondering if someone could give me some code hints to get started  
Thanks  
Dan
