Flash & AS3 info, source, & experiments
Flash Network Programming via TCP/IP, part 2
Today, I give you a free utility class that handles everything you need to handle in order to establish a connection. Tomorrow, I give you the world a class that make it seem like you are calling functions directly on the server and visa versa.
Download the latest version of the ConnectionEstablisher class here.
Usage example:
[as]// To establish a new connection, do the following:
var _server:ConnectionEstablisher = new ConnectionEstablisher(“127.0.0.1″, 4500);
// To send data to the server, do the following:
var xmlPacket:XML =
_server.send(xmlPacket);[/as]
This work, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial 3.0 United States License.
| Print article | This entry was posted by Nate Chatellier on April 26, 2007 at 12:14 pm, and is filed under ActionScript, Flash, Network Programming. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |