accel
= 3;
for(i=0;i<60;i++){
var b = this.attachMovie("blood","blood" +i,i);
b._x = Math.random()*Stage.width;
b._y = Math.random()*Stage.height;
b.randx = Math.round(Math.random()*Stage.width);
b.randy = Math.round(Math.random()*Stage.height);
b._xscale = Math.random ()*300+30;
b._yscale = b._xscale
b.onEnterFrame = function (){
this._x += (this.randx-this._x)/accel;
this._y += (this.randy-this._y)/accel;
if(Math.round(this._x)== this.randx){
this.randx = Math.round(Math.random()*Stage.width);
this.randy = Math.round(Math.random()*Stage.height);
}
}
} |