感谢任何能够在这种情况下提供帮助的人......
所以,
我在 Flash 中制作了幻灯片,在我选择调试电影之前可以预览它。那是出现错误的时候,关于 MouseEvent 的类......
错误状态“无法加载类或接口‘MouseEvent’”。从我所阅读的内容中收集,我是否正确地假设我需要导入此 MouseEvent?
为了准确了解我所拥有的,以下是我的完整代码;
stop()
btn1.addEventListener(MouseEvent.CLICK,backward);
btn2.addEventListener(MouseEvent.CLICK,forward);
function forward(event:MouseEvent){
if(this.currentFrame == this.totalFrames){
gotoAndStop(1);
}
else{
nextFrame();
}
}
function backward(event:MouseEvent){
if(this.currentFrame == 1){
gotoAndStop(this.totalFrames);
}
else{
prevFrame();
}
}