Flash8.0做的打地鼠游戏,请各位高人帮忙解释一段AS代码: _root.shj=1 _root.d = 0; var allshrew = 10; f 100
_root.shj=1_root.d=0;varallshrew=10;for(i=1;i<=allshrew;i++);{_root["shrew"+i]._visib...
_root.shj=1
_root.d = 0;
var allshrew = 10;
for (i=1;i<=allshrew;i++);{
_root["shrew"+i]._visible=0;
}
function ranappear(){
if(_root.d==0)
{
ranshrew=Math.floor(Math.random()*allshrew)+1;
_root["shrew"+ranshrew]._visible=1;
_root["shrew"+ranshrew].play();
}
}
rantime=Math.floor(Math.random()*500)+raz;
shrewint=setInterval(ranappear,rantime); 展开
_root.d = 0;
var allshrew = 10;
for (i=1;i<=allshrew;i++);{
_root["shrew"+i]._visible=0;
}
function ranappear(){
if(_root.d==0)
{
ranshrew=Math.floor(Math.random()*allshrew)+1;
_root["shrew"+ranshrew]._visible=1;
_root["shrew"+ranshrew].play();
}
}
rantime=Math.floor(Math.random()*500)+raz;
shrewint=setInterval(ranappear,rantime); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询