程式內容
package {
import flash.display.Sprite;
import flash.events.*;
import flash.net.XMLSocket
public class SocketExample extends Sprite
private var socket:XMLSocket;
public function SocketExample() {
socket = new XMLSocket( );
socket.addEventListener( Event.CONNECT, onConnect );
socket.connect( "localhost", 2900 );
}
private function onConnect( event:Event ):void {
trace( "The xml socket is now connected..." );
}
}
}
不管怎麼策事一直跑出1084
請大大們指導一下
謝謝 ^^