Instance of Symbol 8 MovieClip in Frame 1
onClipEvent (load) {
var per = 0;
}
onClipEvent (enterFrame) {
per = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (per != 100) {
bar._x = -100 + per;
} else {
_root.gotoAndStop(5);
}
}
Frame 5
stop();
Frame 9
if (_root.level == 20) {
gotoAndStop (12);
} else {
_root.level++;
gotoAndStop (10);
}
Frame 10
if (_root.level == 0) {
(_root.amount = 10);
(_root.needed = 50);
}
if (_root.level == 1) {
(_root.amount = 10);
(_root.needed = 50);
}
if (_root.level == 2) {
(_root.amount = 10);
(_root.needed = 50);
}
if (_root.level == 3) {
(_root.amount = 10);
(_root.needed = 50);
}
if (_root.level == 4) {
(_root.amount = 10);
(_root.needed = 75);
}
if (_root.level == 5) {
(_root.amount = 20);
(_root.needed = 100);
}
if (_root.level == 6) {
(_root.amount = 30);
(_root.needed = 10);
}
if (_root.level == 7) {
(_root.amount = 10);
(_root.needed = 50);
}
if (_root.level == 8) {
(_root.amount = 3);
(_root.needed = 100);
}
if (_root.level == 9) {
(_root.amount = 50);
(_root.needed = 75);
}
if (_root.level == 10) {
(_root.amount = 75);
(_root.needed = 33);
}
if (_root.level == 11) {
(_root.amount = 30);
(_root.needed = 33);
}
if (_root.level == 12) {
(_root.amount = 10);
(_root.needed = 80);
}
if (_root.level == 13) {
(_root.amount = 20);
(_root.needed = 50);
}
if (_root.level == 14) {
(_root.amount = 50);
(_root.needed = 40);
}
if (_root.level == 15) {
(_root.amount = 50);
(_root.needed = 40);
}
if (_root.level == 16) {
(_root.amount = 100);
(_root.needed = 66);
}
if (_root.level == 17) {
(_root.amount = 20);
(_root.needed = 75);
}
if (_root.level == 18) {
(_root.amount = 10);
(_root.needed = 100);
}
if (_root.level == 19) {
(_root.amount = 2);
(_root.needed = 100);
}
if (_root.level == 20) {
(_root.amount = 100);
(_root.needed = 1);
}
stop();
_root.num = 0;
_root.out = 0;
_root.xms = 0;
_root.yms = 0;
var oldX = _root._xmouse;
var oldY = _root._ymouse;
this.onEnterFrame = function () {
_root.xms = _root._xmouse - oldX;
_root.yms = _root._ymouse - oldY;
oldX = _root._xmouse;
oldY = _root._ymouse;
};
Instance of Symbol 45 MovieClip "land" in Frame 10
onClipEvent (load) {
gotoAndStop(_root.level + 1);
}
Instance of Symbol 50 MovieClip "world" in Frame 10
onClipEvent (load) {
gotoAndStop(_root.level + 1);
}
Frame 11
gotoAndStop (10);
Frame 12
stop();
Symbol 2 MovieClip [star] Frame 1
var xs = 0;
var ys = 0;
var grav = 0.1;
var size = (random(60) + 40);
var dist = 0;
var dist2 = 0;
_xscale = size;
_yscale = size;
_x = (_parent.sb._x + (random(_parent.sb._width) - (_parent.sb._width / 2)));
_y = (_parent.sb._y + (random(_parent.sb._height) - (_parent.sb._height / 2)));
stop();
this.onEnterFrame = function () {
if ((_name != "dummy") && (_currentframe < 10)) {
dist = Math.round(Math.sqrt(((_root._xmouse - _x) * (_root._xmouse - _x)) + ((_root._ymouse - _y) * (_root._ymouse - _y))));
dist2 = Math.round(Math.sqrt(((_parent.fin._x - _x) * (_parent.fin._x - _x)) + ((_parent.fin._y - _y) * (_parent.fin._y - _y))));
_rotation = ((_x * _y) / 100);
ys = ys + grav;
_x = (_x + (((xs = xs * 0.9)) * (size / 100)));
_y = (_y + (((ys = ys * 0.9)) * (size / 100)));
if ((((_y > 200) || (_x < 0)) || (_x > 500)) || (_root.land.hitTest(_x, _y, true))) {
_root.num--;
removeMovieClip(this);
}
if (dist < 20) {
(xs = _root.xms / 2);
(ys = (_root.yms / 2) - 1);
}
if ((dist2 < 13) && (_currentframe == 1)) {
play();
}
}
};
Symbol 2 MovieClip [star] Frame 10
_root.out++;
stop();
Symbol 13 Button
on (release) {
gotoAndStop (6);
}
Symbol 15 Button
on (release) {
_root.level = 1;
gotoAndStop (10);
}
Symbol 21 Button
on (release) {
gotoAndStop (7);
}
Symbol 23 Button
on (release) {
gotoAndStop (5);
}
Symbol 27 MovieClip Frame 1
stop();
Symbol 27 MovieClip Frame 30
_root.gotoAndStop(11);
Symbol 27 MovieClip Frame 40
gotoAndStop (1);
Symbol 29 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 30
_root.gotoAndStop(9);
Symbol 29 MovieClip Frame 40
gotoAndStop (1);
Symbol 47 MovieClip Frame 1
_visible = false;
i = 0;
while (i < _root.amount) {
depth = _root.getNextHighestDepth();
_parent.attachMovie("star", "star" + i, i);
_root.num++;
i++;
}
Symbol 59 MovieClip Frame 1
this.onEnterFrame = function () {
per = Math.round((_root.num / _root.amount) * 100);
perOut = Math.round((_root.out / _root.amount) * 100);
amount = per + "%";
out = perOut + "%";
need = _root.needed + "%";
if (per < _root.needed) {
_root.fail.play();
}
if (perOut >= _root.needed) {
_root.win.play();
}
};
Instance of Symbol 52 MovieClip "warn" in Symbol 59 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.per < (_root.needed + 25)) {
_visible = true;
} else {
_visible = false;
}
}