Combined Code
movieClip 6 {
}
movieClip 9 {
}
movieClip 11 {
}
movieClip 13 {
}
movieClip 14 {
instance starA0 of movieClip 11 {
onClipEvent (load) {
if (Number(this._name.slice(5, 10)) == 0) {
this._visible = false;
} else {
this._x = Math.random() * 10;
this._y = Math.random() * 10;
this._rotation = Math.random() * 360;
this._yscale = 30 + Math.random() * 70;
this._xscale = this._yscale;
this._alpha = 0;
this.growflag = true;
this.speed = 3;
this.speedangle = Math.random() * 360 * 3.141593 / 180;
this.velx = Math.sin(speedangle) * speed;
this.vely = Math.cos(speedangle) * speed;
}
}
onClipEvent (enterFrame) {
if (this._visible != false) {
this._x += this.velx;
this._y += this.vely;
if (this.growflag == true) {
this._alpha = Math.min(100, this._alpha + 15);
if (this._alpha == 100) {
this.growflag = false;
}
} else {
this._alpha = Math.max(0, this._alpha - 10);
if (this._alpha == 0) {
removeMovieClip(this);
}
}
}
}
}
instance of movieClip 13 {
onClipEvent (load) {
_visible = false;
timer = 0;
starcounter = 1;
}
onClipEvent (enterFrame) {
timer += 1 + Math.random();
if (timer > 3) {
duplicateMovieClip(_parent.starA0, 'starA' + starcounter, 50 + starcounter);
starcounter += 1;
if (starcounter >= 999) {
starcounter = 1;
}
timer = 0;
}
}
}
instance starB0 of movieClip 11 {
onClipEvent (load) {
if (Number(this._name.slice(5, 10)) == 0) {
this._visible = false;
} else {
this._rotation = Math.random() * 360;
this._yscale = 30 + Math.random() * 70;
this._xscale = this._yscale;
this._alpha = 0;
this.growflag = true;
this.radius = 30;
this.pos_angle = Math.random() * 360 * 3.141593 / 180;
this._x = Math.sin(pos_angle) * radius;
this._y = Math.cos(pos_angle) * radius;
}
}
onClipEvent (enterFrame) {
if (this._visible != false) {
this._rotation += 3;
if (this.growflag == true) {
this._alpha = Math.min(100, this._alpha + 15);
if (this._alpha == 100) {
this.growflag = false;
}
} else {
this._alpha = Math.max(0, this._alpha - 10);
if (this._alpha == 0) {
removeMovieClip(this);
}
}
}
}
}
instance starC0 of movieClip 11 {
onClipEvent (load) {
if (Number(this._name.slice(5, 10)) == 0) {
this._visible = false;
} else {
this._rotation = Math.random() * 360;
this._yscale = 30 + Math.random() * 70;
this._xscale = this._yscale;
this._alpha = 0;
this.growflag = true;
this.radius = 4 + 30 * Math.random();
this.pos_angle = Math.random() * 360 * 3.141593 / 180;
this._x = Math.sin(pos_angle) * radius;
this._y = Math.cos(pos_angle) * radius;
}
}
onClipEvent (enterFrame) {
if (this._visible != false) {
this._rotation += 3;
if (this.growflag == true) {
this._alpha = Math.min(100, this._alpha + 15);
if (this._alpha == 100) {
this.growflag = false;
}
} else {
this._alpha = Math.max(0, this._alpha - 10);
if (this._alpha == 0) {
removeMovieClip(this);
}
}
}
}
}
}
button 15 {
on (release) {
gotoAndPlay('02');
}
}
frame 131 {
gotoAndPlay('01');
}
movieClip 31 {
}
button 34 {
on (release) {
gotoAndPlay('01');
}
}
frame 353 {
gotoAndPlay('03');
}