for(x=0;x<70;x++){
light=_root.attachMovie("star","star"+x,x++);
light._x=Math.floor(Math.random()*Stage.width);
light._y=Math.floor(Math.random()*250);
myScale=Math.floor(Math.random()*50)+20;
light._xscale=myScale;
light._yscale=myScale;
light.onEnterFrame=function(){
flicker=Math.floor(Math.random()*30);
switch(flicker){
case(1):
this._alpha=Math.floor(Math.random()*100);
break;
case(2):
this._alpha=Math.random()*100;
break;
default:
this._alpha=100;
}
}
} |