package{ import flash.display.Sprite; import flash.net.*; import flash.events.*; public class Main extends Sprite{ var socket:XMLSocket = new XMLSocket(); public function Main(){
} private function connected(event:Event):void { socket.send("hi"); } private function dataReceived(dataEvent:DataEvent):void { trace(dataEvent.data); var xml:XML = new XML(dataEvent.data); } } }
Related Scripts with Example Source Code in same category :