Tuesday, November 23, 2010

[AS3] #1084: Syntax error

[AS3] #1084: Syntax error:expecting rightbrace before end of program.

In my case ,i add the */ at the wrong place so make the } (rightbrace) missing.
我的情況是,把*/放錯了位置,令其中一個}失去效用,以致出現#1084: Syntax error﹕

(wrong code)

/*if (coin_sence.y>92 && coin_sence.y<317 data-blogger-escaped-br=""> {
for (coin_num=0;coin_num<30 data-blogger-escaped-br="" data-blogger-escaped-coin_num=""> coin_sence.x = Math.floor(Math.random() *300);
coin_sence.y = Math.floor(Math.random() *200);
this.addChild(coin_sence);}}
}*/


(right code)

/*if (coin_sence.y>92 && coin_sence.y<317 data-blogger-escaped-br=""> {
for (coin_num=0;coin_num<30 data-blogger-escaped-br="" data-blogger-escaped-coin_num=""> coin_sence.x = Math.floor(Math.random() *300);
coin_sence.y = Math.floor(Math.random() *200);
this.addChild(coin_sence);}}*/
}

No comments :

Post a Comment