Flashplayer 8.0
Kan nogen fortælle mig, hvorfor følgende kode ikke viker efter hensigten, når min Flash eksporteres til Flash-Player 8.0 fremfor Flashplayer 6.0?onClipEvent (load) {
movieWidth = 350;
movieHeight = 250;
i = 1+Math.random()*2;
k = -Math.PI+Math.random()*Math.PI;
this._xscale = this._yscale=60+Math.random()*100;
this._alpha = 75+Math.random()*100;
this._x = -10+Math.random()*movieWidth;
this._y = -10+Math.random()*movieHeight;
this._rotation = random(360)
}
onClipEvent (enterFrame) {
rad += (k/180)*Math.PI;
this._x -= Math.cos(rad);
this._y += i;
if (this._y>=movieHeight) {
this._y = -5;
}
if ((this._x>=moviewidth) || (this._x<=0)) {
this._x = -10+Math.random()*movieWidth;
this._y = -5;
}
}
