我尝试这段代码,但我得到了错误
package {
import flash.display.SimpleButton;
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class np extends SimpleButton {
public function np() {
this.addEventListener(MouseEvent.CLICK, clickF);
}
private function clickF(e:MouseEvent):void{
MovieClip(this.root).nextScene(),gotoAndStop(1);
}
}
}
调用可能未定义的方法 gotoanStop
注意:只是我想去下一个场景