View Full Version : [AS2] MultyPlayer Chat
d0brin
07-08-2009, 10:46 AM
so here is a complex thing that i ahve no idea if flash is posible to do so here is the thing i have a flash game that you play on your pc and i want to put in it a multyplayer chat so that the players that currently are playing the game can chat? IS it posible to be done when this game is not in internet becaus eit is played on your local PC?
pradvan
07-08-2009, 03:25 PM
Look in to localconnection:
http://www.google.com/search?source=ig&hl=en&rlz=&=&q=actionscript+localconnection&btnG=Google+Search&aq=0&oq=actionscript+localCO
evride
07-08-2009, 03:34 PM
no LocalConnection won't do. That would be only between SWF's or AIR apps inside a single computer.
You would need to write your own Java XMLSocket server for the user to start up whenever he or she wants to run a multiplayer networked game which is what I'm guessing you are wanting to do.
pradvan
07-08-2009, 03:49 PM
no LocalConnection won't do. That would be only between SWF's or AIR apps inside a single computer.
well, that's what he said...
evride
07-08-2009, 04:05 PM
localconnection has nothing to do with chat.
If the flash movie cannot access the server over the internet, it of course cannot chat with other players online. There's just nothing you can do to get around that. But you can create your own Java XML Socket server for a "host" to run on a lan connected computer and allow other lan connected players to connect to that host.
If you don't understand how chat in flash works, then here's a quick primer. Whoever is creating the flash chat/game has to have a chat server somewhere on the internet so that all the people can connect to it in what is called a Flash client. The server is almost always programmed in Java. The flash client utilizes the XMLSocket class to connect and send data to and receive data from the Java server. There are several XML Socket Servers on the market but not any that would be appropriate or legal to deploy in a client LAN setting which is why I suggest you create your own if you want offline LAN chat.
bluemagica
07-08-2009, 07:20 PM
yeah, yeah, but the poster said something almost impossible here:
IS it posible to be done when this game is not in internetI wonder how that would be possible...... even LAN is a type of very small internet!
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.