as3.0中如何实现帧的跳转播放??
为什么不能实现效果?代码:importflash.events.Event/*haitan_mc.addEventListener(MouseEvent.CLICK,aa...
为什么不能实现效果?
代码:
import flash.events.Event
/*haitan_mc.addEventListener(MouseEvent.CLICK,aaaa);
function aaaa(event:MouseEvent)
{
gotoAndPlay(121);
}
haitan_mc.buttonMode = true;
laojie_mc.addEventListener(MouseEvent.CLICK,aaa);
function aaa(event:MouseEvent)
{
gotoAndPlay(300);
}
laojie_mc.buttonMode = true;
xiaochi_mc.addEventListener(MouseEvent.CLICK,aa);
function aa(event:MouseEvent)
{
gotoAndPlay(410);
}
xiaochi_mc.buttonMode = true;
jiejing_mc.addEventListener(MouseEvent.CLICK,a);
function a(event:MouseEvent)
{
gotoAndPlay(200);
}
jiejing_mc.buttonMode = true;*/
编译时没出现错误,但在输出处出现:
TypeError: Error #1009: 无法访问空对象引用的属性或方法。
at _fla::MainTimeline/frame120()
这是怎么回事啊?
求高手指教~~ 展开
代码:
import flash.events.Event
/*haitan_mc.addEventListener(MouseEvent.CLICK,aaaa);
function aaaa(event:MouseEvent)
{
gotoAndPlay(121);
}
haitan_mc.buttonMode = true;
laojie_mc.addEventListener(MouseEvent.CLICK,aaa);
function aaa(event:MouseEvent)
{
gotoAndPlay(300);
}
laojie_mc.buttonMode = true;
xiaochi_mc.addEventListener(MouseEvent.CLICK,aa);
function aa(event:MouseEvent)
{
gotoAndPlay(410);
}
xiaochi_mc.buttonMode = true;
jiejing_mc.addEventListener(MouseEvent.CLICK,a);
function a(event:MouseEvent)
{
gotoAndPlay(200);
}
jiejing_mc.buttonMode = true;*/
编译时没出现错误,但在输出处出现:
TypeError: Error #1009: 无法访问空对象引用的属性或方法。
at _fla::MainTimeline/frame120()
这是怎么回事啊?
求高手指教~~ 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询