[問題] 錯誤1084 但找不到問題在哪

作者: a4egg (阿九)   2013-07-05 16:06:43
程式內容
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
請大大們指導一下
謝謝 ^^
作者: jeaby (hello, ActionScript)   2013-07-05 18:59:00
extends Sprite 後面少一個 {

Links booklink

Contact Us: admin [ a t ] ucptt.com