function sayHelloWorld():Void {
trace(this);
removeMovieClip(this);
}
this.attachMovie("btnHelloWorld","btnHelloWorld",1);
this.btnHelloWorld._x = 200;
this.btnHelloWorld._y = 200;
this.btnHelloWorld.onPress = sayHelloWorld;
attachMovie(元件名稱, Actionscript 內的名稱, 深度)
相關書籍: