Quote:
var maxY = 450;
function star (){
this.Dot._xscale = this.Dot._yscale = 10;
this._rotation = Math.round(Math.random()*360);
this.scal = .5;
var r = Math.random()
this.scalFact = 1+r/3;
this.Dot._y = maxY-r*maxY;
}
star.prototype = new MovieClip;
sp = star.prototype;
sp.onEnterFrame = function(){
this.scal*=this.scalFact;
this.Dot._xscale = this.Dot._yscale+=this.scal/3;
this.Dot._y+=this.scal;
if(this.Dot._y>300){
this.removeMovieClip();
}
}
Object.registerClass("Star", star);
function makeStar(){
for(i=0; i<Math.random()*5+3; i++){
++starCount;
attachMovie("Star", "Star"+starCount, starCount, {_x:275, _y:200});
}
}
starGen = setInterval(makeStar,40);
Please help me to make that galaxy dissapear, thanks!