Frame 1
stop();
Instance of Symbol 8 MovieClip "bar" in Frame 1
onClipEvent (load) {
tkb = _root.getBytesTotal();
_root.totalsize = Math.round(_root.getBytesTotal() / 1000);
}
onClipEvent (enterFrame) {
_root.totalloaded = Math.round(_root.getBytesLoaded() / 1000);
scale = (_root.getBytesLoaded() / tkb) * 100;
_root.sl = ((_root.totalloaded + " kb of ") + _root.totalsize) + " kb loaded";
_root.pl = Math.round(scale) + "% loaded";
this._xscale = scale;
if (scale == 100) {
_root.nextFrame();
}
}
Frame 2
stop();
Frame 3
function gox() {
play();
}
stop();
_root.invulnerable = 0;
_root.sticky = 0;
_root.dropSpeed = 5;
_root.glammax = 1;
_root.shittymax = 1;
_root.submax = 1;
_root.health = 12;
_root.maxHealth = 16;
_root.subgoal = 1;
_root.shittygoal = 1;
_root.glamgoal = 1;
_root.shittyend = 0;
_root.glamend = 0;
_root.goal = 1;
_root.amount = 5 + (_root.goal * 5);
_root.flee = 800;
_root.fri = 0.7;
Instance of Symbol 24 MovieClip in Frame 3
onClipEvent (load) {
this.fri = 0.9;
this.acc = 900 + random(200);
this.ox = this._x;
this.dirx = -1;
this._x = this.ox + (this.dirx * _root.flee);
}
onClipEvent (enterFrame) {
this._x = this._x + speedx;
difx = (this.ox - this._x) + (_root.fle * this.dirx);
if (0 < difx) {
xaccel = (difx * difx) / this.acc;
} else {
xaccel = (-(difx * difx)) / this.acc;
}
speedx = (speedx + xaccel) * this.fri;
}
Instance of Symbol 29 MovieClip in Frame 3
onClipEvent (load) {
this.fri = 0.9;
this.acc = 900 + random(200);
this.ox = this._x;
this.dirx = 1;
this._x = this.ox + (this.dirx * _root.flee);
}
onClipEvent (enterFrame) {
this._x = this._x + speedx;
difx = (this.ox - this._x) + (_root.fle * this.dirx);
if (0 < difx) {
xaccel = (difx * difx) / this.acc;
} else {
xaccel = (-(difx * difx)) / this.acc;
}
speedx = (speedx + xaccel) * this.fri;
}
Frame 4
_root.lev = 4;
_root.success = 0;
_root.scr = 0;
_root.span = 30;
_root.rnd = 0;
_root.win = 0;
_root.timeup = 0;
stop();
_root.coinsound = new Sound();
_root.coinsound.attachSound("coin");
_root.dingsound = new Sound();
_root.dingsound.attachSound("ding");
_root.successsound = new Sound();
_root.successsound.attachSound("success");
_root.nextsound = new Sound();
_root.nextsound.attachSound("next");
_root.endsound = new Sound();
_root.endsound.attachSound("end");
Symbol 17 Button
on (release) {
_root.gox();
}
Symbol 31 MovieClip Frame 1
theTime = new Date();
startTime = theTime.getTime();
targetTime = startTime + 1000;
Symbol 31 MovieClip Frame 3
updated = new Date();
currentTime = updated.getTime();
if (targetTime < currentTime) {
_root.te = _root.te + 1;
_root.remain = _root.remain - 1;
gotoAndPlay (1);
}
Symbol 31 MovieClip Frame 5
gotoAndPlay (3);
Symbol 51 MovieClip Frame 5
stop();
Symbol 51 MovieClip Frame 9
stop();
Symbol 51 MovieClip Frame 13
stop();
Symbol 51 MovieClip Frame 17
stop();
Symbol 51 MovieClip Frame 21
stop();
Symbol 51 MovieClip Frame 25
stop();
Symbol 53 MovieClip Frame 1
stop();
Instance of Symbol 51 MovieClip in Symbol 53 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(1);
}
Symbol 53 MovieClip Frame 2
stop();
Instance of Symbol 51 MovieClip in Symbol 53 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndPlay(6);
}
Symbol 53 MovieClip Frame 3
stop();
Instance of Symbol 51 MovieClip in Symbol 53 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndPlay(10);
}
Symbol 53 MovieClip Frame 4
stop();
Instance of Symbol 51 MovieClip in Symbol 53 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndPlay(14);
}
Symbol 53 MovieClip Frame 5
stop();
Instance of Symbol 51 MovieClip in Symbol 53 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndPlay(18);
}
Symbol 53 MovieClip Frame 6
stop();
Instance of Symbol 51 MovieClip in Symbol 53 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndPlay(22);
}
Symbol 53 MovieClip Frame 7
gotoAndStop (1);
Symbol 53 MovieClip Frame 8
stop();
Symbol 56 MovieClip Frame 1
stop();
var i = 0;
while (i < 4) {
duplicateMovieClip ("shard", "shard" + i, i);
target = eval ("shard" + i);
target._x = target._x + (random(20) - 10);
target._y = target._y + (random(30) - 15);
i++;
}
Instance of Symbol 55 MovieClip "shard" in Symbol 56 MovieClip Frame 1
onClipEvent (load) {
xspeed = random(16) - 8;
yspeed = (-random(10)) - 5;
_xscale = (random(120) + 20);
_yscale = _xscale;
bv = 130;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if ((bv + (_height / 2)) < _y) {
_y = (bv + (_height / 2));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.3;
}
if ((180 < _x) or (_x < -180)) {
bv = 300;
}
}
Symbol 60 MovieClip Frame 26
_root.score = _root.score + 100;
Symbol 60 MovieClip Frame 59
stop();
Symbol 61 MovieClip Frame 1
stop();
_root.fr = 0;
Instance of Symbol 53 MovieClip "bolt" in Symbol 61 MovieClip Frame 1
onClipEvent (load) {
this.freeze = 0;
this.gotoAndPlay(random(this._totalframes - 1) + 1);
}
onClipEvent (mouseDown) {
if (((this.hitTest(_root._xmouse, _root._ymouse, true) == 1) and (this.freeze == 0)) and (_root.timeup == 0)) {
this.stop();
this.freeze = 1;
} else if ((this.hitTest(_root._xmouse, _root._ymouse, true) == 1) and (this.freeze == 1)) {
this.freeze = 0;
if (99 < this._xscale) {
this.play();
}
}
}
onClipEvent (enterFrame) {
if (freeze == 1) {
if (75 < this._xscale) {
this._xscale = this._xscale - 5;
}
} else if (this.freeze == 0) {
if (this._xscale < 100) {
this._xscale = this._xscale + 5;
}
}
this._yscale = this._xscale;
}
onClipEvent (enterFrame) {
if ((_root.rnd == 0) and (this.freeze == 0)) {
this.play();
}
}
Symbol 61 MovieClip Frame 2
stop();
if (_root.win == 1) {
_root.remain = 0;
_root.win = 0;
_root.fr = 1;
}
Instance of Symbol 60 MovieClip in Symbol 61 MovieClip Frame 2
onClipEvent (load) {
this.fri = 0.5;
this.acc = 600 + random(400);
this.ox = this._x;
this.dirx = -1;
this._x = this.ox + (this.dirx * _root.flee);
}
onClipEvent (enterFrame) {
this.fri = _root.fri;
this._x = this._x + speedx;
difx = (this.ox - this._x) + (_root.fle * this.dirx);
if (0 < difx) {
xaccel = (difx * difx) / this.acc;
} else {
xaccel = (-(difx * difx)) / this.acc;
}
speedx = (speedx + xaccel) * this.fri;
}
Symbol 62 MovieClip Frame 1
stop();
_root.invulnerable = 0;
_root.sticky = 0;
_root.dropSpeed = 5;
_root.glammax = 1;
_root.shittymax = 1;
_root.submax = 1;
_root.health = 12;
_root.maxHealth = 16;
_root.subgoal = 1;
_root.shittygoal = 1;
_root.glamgoal = 1;
_root.shittyend = 0;
_root.glamend = 0;
_root.goal = 1;
_root.amount = 5 + (_root.goal * 5);
_root.flee = 300;
_root.fri = 0.7;
_root.star = random(5) + 1;
i = 1;
while (i < _root.lev) {
pix.duplicateMovieClip("pix" + i, i);
this["pix" + i]._x = i * this["pix" + i]._width;
this["pix" + i].left = "pix" + (i - 1);
this["pix" + i].right = "pix" + (i + 1);
trace("pix" + i);
i++;
}
Instance of Symbol 61 MovieClip "pix" in Symbol 62 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((_parent[left].bolt._currentframe == bolt._currentframe) and (_parent[left].bolt.freeze == 1)) and ((_parent[right].bolt._currentframe == bolt._currentframe) and (_parent[right].bolt.freeze == 1))) {
bolt.freeze = 1;
bolt.aa._alpha = 40;
if (this.halt == 0) {
_root.dingsound.start(0, 1);
this.halt = 1;
_root.click = _root.click + 1;
_root.score = _root.score + 50;
}
} else {
if (this.halt == 1) {
this.halt = 0;
_root.click = _root.click - 1;
}
bolt.aa._alpha = 100;
}
}
onClipEvent (load) {
this.halt = 0;
}
onClipEvent (enterFrame) {
if (_root.win == 1) {
this.gotoAndPlay(2);
}
}
onClipEvent (load) {
if (this._name == "pix") {
this._alpha = 0;
}
}
Symbol 77 MovieClip Frame 1
_root.click = 0;
_root._quality = "low";
_root.remain = 10 + _root.lev;
_root.shp = random(5) + 1;
if (_root.win == 1) {
_root.win = 0;
gotoAndPlay (3);
}
Instance of Symbol 31 MovieClip "timer" in Symbol 77 MovieClip Frame 1
onClipEvent (load) {
_root.te = 0;
}
Instance of Symbol 62 MovieClip in Symbol 77 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.fr == 0) {
this._x = -(this._width / 2);
}
if ((700 < this._width) and (_root.fr == 0)) {
this._xscale = this._xscale - (1 * (this._xscale / 10));
this._yscale = this._xscale;
}
}
onClipEvent (enterFrame) {
_root.rnd = _root.rnd + 1;
if (_root.span < _root.rnd) {
_root.rnd = 0;
}
}
Instance of Symbol 64 MovieClip in Symbol 77 MovieClip Frame 1
onClipEvent (load) {
_root.span = 35 - (_root.lev * 1);
if (_root.span < 25) {
_root.span = 25;
}
}
onClipEvent (enterFrame) {
_root.levx = _root.lev - 3;
if (_root.scr < _root.score) {
_root.coinsound.start(0, 1);
_root.scr = _root.scr + 25;
}
if (_root.click == (_root.lev - 3)) {
_root.win = 1;
if (_root.success == 0) {
_root.success = 1;
_root.successsound.start(0, 1);
}
}
if (_root.remain < -3) {
_parent.gotoAndPlay(3);
_root.lev = 3;
_root.remain = 1;
}
}
Instance of Symbol 67 MovieClip in Symbol 77 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.remain < 0) {
this._visible = 0;
} else {
this._visible = 1;
}
}
Instance of Symbol 70 MovieClip in Symbol 77 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = 1 - _root.win;
}
Instance of Symbol 72 MovieClip in Symbol 77 MovieClip Frame 1
onClipEvent (load) {
_root.timeup = 0;
this.fri = 0.8;
this.acc = 900 + random(200);
this.ox = this._x;
this.dirx = -1;
this._x = this.ox + (this.dirx * 800);
}
onClipEvent (enterFrame) {
if ((_root.remain < 0) and (_root.fr == 0)) {
_root.timeup = 1;
this._x = this._x + speedx;
if (_root.success == 0) {
_root.success = 1;
_root.endsound.start(0, 1);
}
}
difx = (this.ox - this._x) + (_root.fle * this.dirx);
if (0 < difx) {
xaccel = (difx * difx) / this.acc;
} else {
xaccel = (-(difx * difx)) / this.acc;
}
speedx = (speedx + xaccel) * this.fri;
}
Symbol 77 MovieClip Frame 2
stop();
prevFrame();
Symbol 77 MovieClip Frame 3
if (_root.timeup == 0) {
_root.lev = _root.lev + 1;
}
if (_root.timeup == 1) {
_root.lev = 4;
_root.timeup = 0;
}
_root.levx = _root.lev - 3;
_root._quality = "medium";
Instance of Symbol 76 MovieClip in Symbol 77 MovieClip Frame 4
onClipEvent (load) {
this.fri = 0.5;
this.acc = 900 + random(200);
this.ox = this._x;
this.dirx = -1;
this._x = this.ox + (this.dirx * _root.flee);
}
onClipEvent (enterFrame) {
this.fri = _root.fri;
this._x = this._x + speedx;
difx = (this.ox - this._x) + (_root.fle * this.dirx);
if (0 < difx) {
xaccel = (difx * difx) / this.acc;
} else {
xaccel = (-(difx * difx)) / this.acc;
}
speedx = (speedx + xaccel) * this.fri;
}
Symbol 77 MovieClip Frame 5
_root.success = 0;
_root.nextsound.start(0, 1);