How to delete this enterframe?

Hi,

I have some stars in my flash file. I want them to dissappear when i get to the final frame. Can I delete the enterFrame? Then how do I make it re appear again?

Thanks!



var numStars:Number = 15;
for (i=1; i<=numStars; i++) {
	_root.attachMovie("star", "star"+i, i, {_x:Math.random()*Stage.width, _y:Math.random()*Stage.height, _alpha:Math.random()*100});
	_root["star"+i].rotSpeed = Math.round(Math.random()*8+2);
	_root["star"+i].tranSpeed = Math.round(Math.random()*5);
	_root["star"+i].tranDir = Math.floor(Math.random()*2);
	trace(_root["star"+i].rotSpeed);
	_root["star"+i].onEnterFrame = function() {
		if (this.tranDir == 0) {
			this._alpha += this.tranSpeed;
			if (this._alpha>100) {
				this.tranDir = 1;
			}
		} else {
			this._alpha -= this.tranSpeed;
			if (this._alpha<40) {
				this.tranDir = 0;
			}
		}
		this._rotation += this.rotSpeed;
	};
}