Frame 1
_root.asd = 7;
Instance of Symbol 3 MovieClip "star" in Frame 1
onClipEvent (load) {
z = 0;
xp = (320 - random(100)) + random(100);
yp = (240 - random(100)) + random(100);
x = 0;
y = 0;
fl = 300;
vx = 320;
vy = 240;
i = 0;
rofl = _root.asd;
}
onClipEvent (enterFrame) {
rofl = _root.asd;
if (Key.isDown(38)) {
_root.asd = _root.asd + 0.001;
}
if (Key.isDown(40)) {
_root.asd = _root.asd - 0.001;
}
_alpha = ((-10 * z) / 7);
x = xp - vx;
y = yp - vy;
z = z - rofl;
if (z <= (-fl)) {
i--;
removeMovieClip(this);
} else {
_visible = true;
scale = fl / (fl + z);
_yscale = (scale * 100);
_xscale = (scale * 100);
_x = (vx + (x * scale));
_y = (vy + (y * scale));
}
if (_name == "star") {
_x = -500;
z = 0;
duplicateMovieClip (this, _name + i, i);
i++;
duplicateMovieClip (this, _name + i, i);
i++;
duplicateMovieClip (this, _name + i, i);
i++;
duplicateMovieClip (this, _name + i, i);
i++;
} else if (_root.cgg.hitTest(_x, _y, true)) {
i--;
removeMovieClip(this);
}
}