onClipEvent(sd.onLoad){ var k = Math.round(Math.random()*50)
来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/09/24 19:13:08
onClipEvent(sd.onLoad){ var k = Math.round(Math.random()*50)+1;
onClipEvent(sd.onLoad){
\x05var k = Math.round(Math.random()*50)+1;
this._x = Math.round(Math.random()*500)+1;
this._y = 100-k;
this._rotation = Math.round(Math.random()*60)-29;
this._height = Math.round(Math.random()*150)+100;
}
我用AS 3.0总是出错不知道怎么改,我知道这是AS2.0的代码怎么改才好呢
onClipEvent(sd.onLoad){
\x05var k = Math.round(Math.random()*50)+1;
this._x = Math.round(Math.random()*500)+1;
this._y = 100-k;
this._rotation = Math.round(Math.random()*60)-29;
this._height = Math.round(Math.random()*150)+100;
}
我用AS 3.0总是出错不知道怎么改,我知道这是AS2.0的代码怎么改才好呢
as3 代码不能写到 影片剪辑上.
这段代码就是赋值影片剪辑的位置和角度的属性.
你可以把下面代码放到你要设置的mc里面的时间轴上:
var k = Math.round(Math.random()*50)+1;
this.x = Math.round(Math.random()*500)+1;
this.y = 100-k;
this.rotation = Math.round(Math.random()*60)-29;
this.height = Math.round(Math.random()*150)+100;
这段代码就是赋值影片剪辑的位置和角度的属性.
你可以把下面代码放到你要设置的mc里面的时间轴上:
var k = Math.round(Math.random()*50)+1;
this.x = Math.round(Math.random()*500)+1;
this.y = 100-k;
this.rotation = Math.round(Math.random()*60)-29;
this.height = Math.round(Math.random()*150)+100;
onClipEvent(sd.onLoad){ var k = Math.round(Math.random()*50)
英语翻译var p = Math.random();var xv = Math.random();var yv = Ma
math.random
math random *
JS:var die = Math.floor(Math.random()*6 + 1); 为什么die的值会在1和6之
int random = (int) (Math.random() * 1000); random = random %
s=(int)(Math.random()*(g-k)+k); 是不是math.random()*的意思是随即0--1之
Math.floor(Math.random() * 7 +
"x = Math.floor(Math.random() *90)+10;"
index = Math.floor(Math.random() * tips.length);什么意思
Math.round(Math.random()*9+1)的问题,怎么现在才发现...
Math.random是什么意思