我尝试这段代码但是我收到了错误
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
注意:我想进入下一个场景