错误 5000“必须子类 flash.display.MovieClip”/“必须子类 flash.display.SimpleButton” 我终于决定在论坛跳跃后询问答案。基本上,当我扩展 MovieClip 时,影片剪辑的错误消失了,但出现了简单的按钮错误。当我扩展简单按钮时,出现影片剪辑错误。包含两者或以其他方式使其工作的最简单方法是什么?
//psuedo code
import flash.display.*;
public class classInSession extends MovieClip //or SimpleButton
{
var Btn:SimpleButton;//This needs SimpleButton
public function reception123() {
stop();//This needs MovieClip
Btn.enabled = true;//This needs SimpleButton
Btn.addEventListener(MouseEvent.MOUSE_DOWN, goSomewhere);
function goSomewhere(event:MouseEvent):void{
gotoAndStop(1);//This also needs MovieClip
}
}
}