flash中出现identifier应在dot之前,着急import.flash.events;import.events.MouseEvent;on(release);{\x09play();};on(release);{\x09gotoAndPlay(1);};

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/17 16:47:38

flash中出现identifier应在dot之前,着急import.flash.events;import.events.MouseEvent;on(release);{\x09play();};on(release);{\x09gotoAndPlay(1);};
flash中出现identifier应在dot之前,着急
import.flash.events;
import.events.MouseEvent;
on(release);
{
\x09play();
};
on(release);
{
\x09gotoAndPlay(1);
};

flash中出现identifier应在dot之前,着急import.flash.events;import.events.MouseEvent;on(release);{\x09play();};on(release);{\x09gotoAndPlay(1);};

你这是AS3.0的语言吧,AS3.0不能写按钮上的,只能写在帧上的.这样写不对的.正确写法如下:

import flash.events.MouseEvent;
btn1.addEventListener(MouseEvent.CLICK,go1)
function go1(event:MouseEvent){
play()
}
btn2.addEventListener(MouseEvent.CLICK,go2)
function go2(event:MouseEvent){
gotoAndPlay(1)
}
//btn1,btn2,为按钮实例名