# Multiplayer game using sockets

**URL:** https://forum.kirupa.com/t/multiplayer-game-using-sockets/321006
**Category:** flash
**Created:** [April 7, 2011, 5:26pm UTC](https://forum.kirupa.com/t/multiplayer-game-using-sockets/321006 "2011-04-07T17:26:23Z")
**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, 5:26pm UTC](https://forum.kirupa.com/t/multiplayer-game-using-sockets/321006/1 "2011-04-07T17:26:23Z")

</div>

Hi guys, first post so play nice =)

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
