早教吧作业答案频道 -->其他-->
那位老师可以帮我把下面这段flash脚本翻译下啊,谢谢了,最好是可以翻译成图文形式.1this.xscale=this.yscale=math.random()*50+50;2this.alpha=math.random()*30+30;3this.x=math.random()*300+50;4this;y=300;56mycolor=n
题目详情
那位老师可以帮我把下面这段flash脚本翻译下啊,谢谢了,最好是可以翻译成图文形式.
1 this._xscale=this._yscale=math.random()*50+50;
2 this._alpha=math.random()*30+30;
3 this._x=math.random()*300+50;
4 this;_y=300;
5
6 my_color=now color(this);
7 r=math.floor(math.random()*50)+205;
8 g=math.floor(math.random()*50)+205;
9 b=255;
10 c=r*0×010000+g*0×000100+b;
11 my_color.setRGB()c;
12
13 Dir=math.random()*8-4;
14 v=math.random()*10;
15
16 onEnterFrame=function()}
17 this._x+=math.random()*6-3+Dir
18 this._y-=(math.ram()*5+v);
19 if(this._y<0)}
20 this.romovemovreclip();
21 }
22 };
1 this._xscale=this._yscale=math.random()*50+50;
2 this._alpha=math.random()*30+30;
3 this._x=math.random()*300+50;
4 this;_y=300;
5
6 my_color=now color(this);
7 r=math.floor(math.random()*50)+205;
8 g=math.floor(math.random()*50)+205;
9 b=255;
10 c=r*0×010000+g*0×000100+b;
11 my_color.setRGB()c;
12
13 Dir=math.random()*8-4;
14 v=math.random()*10;
15
16 onEnterFrame=function()}
17 this._x+=math.random()*6-3+Dir
18 this._y-=(math.ram()*5+v);
19 if(this._y<0)}
20 this.romovemovreclip();
21 }
22 };
▼优质解答
答案和解析
书写要注意,下面挺多错的
1 this._xscale=this._yscale=math.random()*50+50;//math->Math,元件的横纵轴分别缩放为随机大小(50%至100%)
2 this._alpha=math.random()*30+30;//math->Math,透明度改30%-60%
3 this._x=math.random()*300+50;//math->Math,横坐标改50-350
4 this;_y=300;//纵坐标设置为300
5
6 my_color=now color(this);//now->new,颜色赋值给my_color
7 r=math.floor(math.random()*50)+205;//变量值设置为205-255之间的整数
8 g=math.floor(math.random()*50)+205;//同上
9 b=255;//
10 c=r*0×010000+g*0×000100+b;//这里写法是否有问题还不知道
11 my_color.setRGB()c;//颜色设置为c,c应该在括号内,写法错误或者你输入没注意
12
13 Dir=math.random()*8-4;//赋值为-4至4的值
14 v=math.random()*10;//赋值0至10
15
16 onEnterFrame=function()}
17 this._x+=math.random()*6-3+Dir//进入桢执行动作横坐标递增
18 this._y-=(math.ram()*5+v);//纵坐标递减
19 if(this._y<0)}//纵坐标小于0就删除自己
20 this.romovemovreclip();//写错,应该是removeMovieClip(this);
21 }
22 };
1 this._xscale=this._yscale=math.random()*50+50;//math->Math,元件的横纵轴分别缩放为随机大小(50%至100%)
2 this._alpha=math.random()*30+30;//math->Math,透明度改30%-60%
3 this._x=math.random()*300+50;//math->Math,横坐标改50-350
4 this;_y=300;//纵坐标设置为300
5
6 my_color=now color(this);//now->new,颜色赋值给my_color
7 r=math.floor(math.random()*50)+205;//变量值设置为205-255之间的整数
8 g=math.floor(math.random()*50)+205;//同上
9 b=255;//
10 c=r*0×010000+g*0×000100+b;//这里写法是否有问题还不知道
11 my_color.setRGB()c;//颜色设置为c,c应该在括号内,写法错误或者你输入没注意
12
13 Dir=math.random()*8-4;//赋值为-4至4的值
14 v=math.random()*10;//赋值0至10
15
16 onEnterFrame=function()}
17 this._x+=math.random()*6-3+Dir//进入桢执行动作横坐标递增
18 this._y-=(math.ram()*5+v);//纵坐标递减
19 if(this._y<0)}//纵坐标小于0就删除自己
20 this.romovemovreclip();//写错,应该是removeMovieClip(this);
21 }
22 };
看了 那位老师可以帮我把下面这段f...的网友还看了以下:
那位老师可以帮我把下面这段flash脚本翻译下啊,谢谢了,最好是可以翻译成图文形式.1this.x 2020-08-03 …