在我的程序中,我有一个小箭头在旋转,这是我使用的代码
import flash.events.Event;
var spinSpeed:Number = 2;
function onEnterFrame(event:Event):void{
myMovieClip.rotation += spinSpeed;
}
addEventListener(Event.ENTER_FRAME, onEnterFrame);
btnnext14.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_11);
function fl_ClickToGoToAndStopAtFrame_11(event:MouseEvent):void
{
gotoAndStop(39);
}
它工作正常并且箭头旋转,但是当我尝试转到下一张幻灯片时,我收到错误 #1009
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at pp2_fla::MainTimeline/onEnterFrame()[pp2_fla.MainTimeline::frame38:9]
有谁知道怎么了?