qq空间flash播放器代码错误

来源:百度知道 编辑:UC知道 时间:2024/06/06 09:49:35
temp= 1:
function aa() {
mysound = new Sound():
mysound .loadSound(temp+".mp3",false):
mysound .onLoad = function (success) {
if (success) {
mysound .start(150):
}
}:
mysound .onSoundComplete = function(){
temp++:
if(temp>=4){
temp=1:
}
aa():
}:
}
aa():
提示*错误** 场景=场景 1, 图层=图层 1, 帧=1:第 1 行: 语法错误。
temp= 1:

ActionScript 错误总数:1 报错:1
怎么改

temp= 1;
function aa() {
mysound = new Sound();
mysound .loadSound(temp+".mp3",false);
mysound .onLoad = function (success) {
if (success) {
mysound .start(150);
}
};
mysound .onSoundComplete = function(){
temp++;
if(temp>=4){
temp=1;
}
aa();
};
}
aa();

后面的是分号 不是冒号

或个网站.