Topic History of: Repeated connect events? Max. showing the last posts - (Last post first)
Author
Message
Gnoll
scratch that, i loaded my ide file (which i was using to compile) up and somehow it got a timeline frame
Gnoll
Code:
public function PalabreConnection(url:String,port:int)
{ conn = new XMLSocket() conn.addEventListener(Event.CONNECT,connectEvent);//OnConnect// conn.addEventListener(Event.CLOSE,closeEvent);//OnDisconnect// conn.addEventListener(IOErrorEvent.IO_ERROR,io_errorEvent);//Unable To Connect// conn.addEventListener(DataEvent.DATA, dataEvent);//onData// conn.connect(url, port)
}
private function connectEvent(e:Event)
{ trace(e) //dispatchEvent(new CustomEvent(CustomEvent.evt,"connect")); }