Frame 1
_quality = "HIGH";
record = 0;
music = true;
stop();
Instance of Symbol 7 MovieClip in Frame 1
onClipEvent (enterFrame) {
bytes_loaded = _root.getBytesLoaded();
bytes_total = _root.getBytesTotal();
if (bytes_loaded >= bytes_total) {
_root.gotoAndStop(4);
}
getPercent = _root.getBytesLoaded() / _root.getBytesTotal();
_root.loadText = Math.floor(getPercent * 100) + "%";
}
Frame 4
stop();
Frame 5
rotate = function (objectName) {
with (eval ("_root." + objectName)) {
if (dr > 0) {
_rotation = (dr * Math.sin(dr)) * 0.8;
dr = dr - 1;
} else {
_rotation = 0;
}
}
};
stop();
Instance of Symbol 82 MovieClip in Frame 5
onClipEvent (load) {
dx = -2;
}
onClipEvent (enterFrame) {
if ((_currentframe > 4) && (_currentframe < 12)) {
_x = (_x + dx);
if (_x > 440) {
_x = 430;
dx = -2;
_xscale = 100;
}
if (_x < -40) {
_x = -30;
dx = 2;
_xscale = -100;
}
}
}
Instance of Symbol 197 MovieClip in Frame 5
on (rollOver) {
dr = 15;
}
onClipEvent (enterFrame) {
_root.rotate(this._name);
}
on (press) {
_root.gotoAndPlay(7);
}
Instance of Symbol 207 MovieClip in Frame 5
on (rollOver) {
dr = 15;
}
onClipEvent (enterFrame) {
_root.rotate(this._name);
}
on (press) {
if ((_quality == "LOW") || (_quality == "MEDIUM")) {
_quality = "HIGH";
trigger.gotoAndStop(2);
} else if (_quality == "HIGH") {
_quality = "BEST";
trigger.gotoAndStop(3);
} else {
_quality = "LOW";
trigger.gotoAndStop(1);
}
}
Instance of Symbol 210 MovieClip in Frame 5
on (rollOver) {
dr = 15;
}
onClipEvent (enterFrame) {
_root.rotate(this._name);
}
on (press) {
_root.gotoAndStop(6);
}
Instance of Symbol 229 MovieClip in Frame 5
onClipEvent (load) {
if (!_root.music) {
gotoAndStop (2);
}
}
Instance of Symbol 206 MovieClip "trigger" in Frame 6
onClipEvent (load) {
if ((_quality == "LOW") || (_quality == "MEDIUM")) {
gotoAndStop (1);
}
if (_quality == "HIGH") {
gotoAndStop (2);
}
if (_quality == "BEST") {
gotoAndStop (3);
}
}
Instance of Symbol 236 MovieClip in Frame 6
on (rollOver) {
dr = 15;
}
onClipEvent (enterFrame) {
_root.rotate(this._name);
}
on (press) {
_root.gotoAndStop(5);
}
Frame 7
blobsArray = new Array(false, false, false, false, false, false, false, false, false, false, false, false, false, false, false);
blobDied = function () {
blobsLeft = blobsLeft - 1;
if (blobsLeft <= 0) {
if (_currentframe == 7) {
gotoAndStop (8);
}
}
};
attachBlob = function (x, y) {
i = 0;
while (i < 15) {
if (!blobsArray[i]) {
blobsArray[i] = true;
_root.attachMovie("blob", i, i + 1);
eval ("_root." + i)._x = x;
eval ("_root." + i)._y = y;
return;
}
i++;
}
};
DangerGone = function () {
if (_root.dangerTimeOld > 90) {
_root.dangerTimeOld = _root.dangerTimeOld - 90;
}
_root.dangerTime = _root.dangerTimeOld;
_root.dangerItemOn = false;
};
timerOffset = getTimer();
dangerItemOn = false;
dangerTime = 800;
dangerTimeOld = 800;
blobsLeft = 32;
stop();
Instance of Symbol 239 MovieClip "puddle" in Frame 7
onClipEvent (load) {
_x = ((Math.random() * 250) + 75);
_y = ((Math.random() * 240) + 125);
}
Instance of Symbol 229 MovieClip in Frame 7
onClipEvent (load) {
if (!_root.music) {
gotoAndStop (2);
}
}
Instance of Symbol 226 MovieClip in Frame 7
onClipEvent (enterFrame) {
_root.timer = getTimer();
_root.timeTemp = Math.floor((_root.timer - _root.timerOffset) / 1000);
mins = Math.floor(_root.timeTemp / 60);
secs = _root.timeTemp - (60 * mins);
_root.timeString = (mins + ":") + secs;
if (!_root.dangerItemOn) {
_root.dangerTime = _root.dangerTime - 1;
if (_root.dangerTime < 0) {
_root.dangerItemOn = true;
randomItem = Math.floor(Math.random() * 4);
if (randomItem == 0) {
_root.attachMovie("weight", "dangerItem", 10000);
_root.dangerItem._x = (Math.random() * 300) + 50;
_root.dangerItem._y = (Math.random() * 290) + 90;
}
if (randomItem == 1) {
_root.attachMovie("bowl_ball", "dangerItem", 10000);
}
if (randomItem == 2) {
_root.attachMovie("bouncing_ball", "dangerItem", 10000);
}
if (randomItem > 2) {
_root.attachMovie("rocket", "dangerItem", 10000);
}
}
}
}
Instance of Symbol 249 MovieClip "pipe" in Frame 7
onClipEvent (load) {
this.swapDepths(12000);
}
Frame 8
pipe.removeMovieClip();
blob_fall.removeMovieClip();
bomb.removeMovieClip();
bomb_fall.removeMovieClip();
dangerItem.removeMovieClip();
q = 0;
while (q < 15) {
removeMovieClip(eval ("_root." + q));
q++;
}
if (_root.timeTemp > _root.record) {
_root.record = _root.timeTemp;
}
mins = Math.floor(_root.record / 60);
secs = _root.record - (60 * mins);
_root.recordString = (mins + ":") + secs;
stop();
Instance of Symbol 236 MovieClip in Frame 8
on (rollOver) {
dr = 15;
}
onClipEvent (enterFrame) {
_root.rotate(this._name);
}
on (press) {
_root.gotoAndStop(5);
}
Symbol 12 MovieClip [blob_fall] Frame 35
_root.attachBlob(_x, _y);
removeMovieClip(this);
Symbol 82 MovieClip Frame 16
gotoAndPlay (1);
Symbol 82 MovieClip Frame 17
stop();
Instance of Symbol 46 MovieClip in Symbol 82 MovieClip Frame 17
onClipEvent (load) {
sinus = 0;
}
onClipEvent (enterFrame) {
_rotation = (Math.sin(sinus) * 8);
sinus = sinus + 0.2;
}
Symbol 82 MovieClip Frame 18
stop();
Instance of Symbol 49 MovieClip in Symbol 82 MovieClip Frame 18
onClipEvent (load) {
sinus = 0;
}
onClipEvent (enterFrame) {
_rotation = (Math.sin(sinus) * 8);
sinus = sinus + 0.2;
}
Symbol 82 MovieClip Frame 34
gotoAndPlay (19);
Instance of Symbol 82 MovieClip "part" in Symbol 83 MovieClip [blob] Frame 1
onClipEvent (load) {
ill = false;
gotoAndPlay(Math.floor((Math.random() * 15) + 1));
if (Math.random() < 0.5) {
dx = -2;
} else {
dx = 2;
}
dy = (Math.random() * 4) - 2;
}
onClipEvent (enterFrame) {
if (ill) {
illTime = illTime - 1;
if (illTime < 0) {
clipIndex = Number(_parent._name);
_root.blobsArray[clipIndex] = false;
_root.attachMovie("blob_squashed_ill", "blob_squashed_" + clipIndex, 100 + clipIndex);
eval ("_root.blob_squashed_" + clipIndex)._x = _parent._x;
eval ("_root.blob_squashed_" + clipIndex)._y = _parent._y;
eval ("_root.blob_squashed_" + clipIndex)._xscale = _parent._xscale;
removeMovieClip(_parent);
}
}
if ((_root.puddle.hotspot.hitTest(_parent._x, _parent._y, true) && (!ill)) && (!taken)) {
ill = true;
illTime = 100 + (Math.random() * 50);
gotoAndPlay(_currentframe + 18);
}
if (_root.dangerItem.hotspot.hitTest(_parent._x, _parent._y, true)) {
clipIndex = Number(_parent._name);
_root.blobsArray[clipIndex] = false;
if (!ill) {
_root.attachMovie("blob_squashed", "blob_squashed_" + clipIndex, 100 + clipIndex);
} else {
_root.attachMovie("blob_squashed_ill", "blob_squashed_" + clipIndex, 100 + clipIndex);
eval ("_root.blob_squashed_" + clipIndex).gotoAndPlay(14);
}
eval ("_root.blob_squashed_" + clipIndex)._x = _parent._x;
eval ("_root.blob_squashed_" + clipIndex)._y = _parent._y;
eval ("_root.blob_squashed_" + clipIndex)._xscale = _parent._xscale;
removeMovieClip(_parent);
}
if (((!taken) && ((_currentframe > 4) && (_currentframe < 12))) || ((_currentframe > 22) && (_currentframe < 30))) {
y1 = _parent._y + dy;
x1 = _parent._x + dx;
if ((x1 > 380) || (x1 < 20)) {
dx = -dx;
dy = (Math.random() * 4) - 2;
} else {
_parent._x = x1;
}
if ((y1 > 400) || (y1 < 35)) {
dy = -dy;
} else {
_parent._y = y1;
}
if (dx < 0) {
_parent._xscale = 100;
} else {
_parent._xscale = -100;
}
}
}
on (press) {
if (!ill) {
gotoAndPlay (17);
} else {
gotoAndPlay (18);
}
taken = true;
startDrag (_parent, false, 20, 35, 380, 400);
}
on (release, releaseOutside) {
if (!ill) {
gotoAndPlay (1);
} else {
gotoAndPlay (19);
}
taken = false;
stopDrag();
}
Symbol 92 MovieClip [blob_squashed] Frame 2
_root.blobDied();
Instance of Symbol 87 MovieClip in Symbol 92 MovieClip [blob_squashed] Frame 2
onClipEvent (load) {
d = -6;
dx = (Math.random() * 6) - 3;
dd = (Math.random() * 2) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + d);
_x = (_x + dx);
d = d + dd;
}
Instance of Symbol 87 MovieClip in Symbol 92 MovieClip [blob_squashed] Frame 2
onClipEvent (load) {
d = -6;
dx = (Math.random() * 6) - 3;
dd = (Math.random() * 2) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + d);
_x = (_x + dx);
d = d + dd;
}
Instance of Symbol 87 MovieClip in Symbol 92 MovieClip [blob_squashed] Frame 2
onClipEvent (load) {
d = -6;
dx = (Math.random() * 6) - 3;
dd = (Math.random() * 2) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + d);
_x = (_x + dx);
d = d + dd;
}
Instance of Symbol 87 MovieClip in Symbol 92 MovieClip [blob_squashed] Frame 2
onClipEvent (load) {
d = -6;
dx = (Math.random() * 6) - 3;
dd = (Math.random() * 2) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + d);
_x = (_x + dx);
d = d + dd;
}
Instance of Symbol 90 MovieClip in Symbol 92 MovieClip [blob_squashed] Frame 2
onClipEvent (load) {
d = -6;
dx = (Math.random() * 6) - 3;
dd = (Math.random() * 2) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + d);
_x = (_x + dx);
_rotation = (_rotation + (d - 2));
d = d + dd;
}
Instance of Symbol 90 MovieClip in Symbol 92 MovieClip [blob_squashed] Frame 2
onClipEvent (load) {
d = -6;
dx = (Math.random() * 6) - 3;
dd = (Math.random() * 2) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + d);
_x = (_x + dx);
_rotation = (_rotation + (d - 2));
d = d + dd;
}
Symbol 92 MovieClip [blob_squashed] Frame 42
removeMovieClip(this);
Symbol 115 MovieClip [blob_squashed_ill] Frame 13
a = 0;
while (a < 16) {
if ((!eval (("_root." + a) + ".part").ill) && (this.hitTest(eval ("_root." + a)))) {
eval (("_root." + a) + ".part").ill = true;
eval (("_root." + a) + ".part").illTime = 100 + (Math.random() * 50);
eval (("_root." + a) + ".part").gotoAndPlay(eval (("_root." + a) + ".part")._currentframe + 18);
}
a++;
}
Symbol 115 MovieClip [blob_squashed_ill] Frame 14
_root.blobDied();
Instance of Symbol 114 MovieClip in Symbol 115 MovieClip [blob_squashed_ill] Frame 14
onClipEvent (load) {
d = -6;
dx = (Math.random() * 6) - 3;
dd = (Math.random() * 2) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + d);
_x = (_x + dx);
d = d + dd;
}
Instance of Symbol 114 MovieClip in Symbol 115 MovieClip [blob_squashed_ill] Frame 14
onClipEvent (load) {
d = -6;
dx = (Math.random() * 6) - 3;
dd = (Math.random() * 2) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + d);
_x = (_x + dx);
d = d + dd;
}
Instance of Symbol 114 MovieClip in Symbol 115 MovieClip [blob_squashed_ill] Frame 14
onClipEvent (load) {
d = -6;
dx = (Math.random() * 6) - 3;
dd = (Math.random() * 2) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + d);
_x = (_x + dx);
d = d + dd;
}
Instance of Symbol 114 MovieClip in Symbol 115 MovieClip [blob_squashed_ill] Frame 14
onClipEvent (load) {
d = -6;
dx = (Math.random() * 6) - 3;
dd = (Math.random() * 2) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + d);
_x = (_x + dx);
d = d + dd;
}
Instance of Symbol 90 MovieClip in Symbol 115 MovieClip [blob_squashed_ill] Frame 14
onClipEvent (load) {
d = -6;
dx = (Math.random() * 6) - 3;
dd = (Math.random() * 2) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + d);
_x = (_x + dx);
_rotation = (_rotation + (d - 2));
d = d + dd;
}
Instance of Symbol 90 MovieClip in Symbol 115 MovieClip [blob_squashed_ill] Frame 14
onClipEvent (load) {
d = -6;
dx = (Math.random() * 6) - 3;
dd = (Math.random() * 2) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + d);
_x = (_x + dx);
_rotation = (_rotation + (d - 2));
d = d + dd;
}
Symbol 115 MovieClip [blob_squashed_ill] Frame 54
removeMovieClip(this);
Symbol 138 MovieClip [bomb] Frame 1
blastFXcount = 16;
blast = function () {
_root._x = (Math.random() - 0.5) * blastFXcount;
_root._y = (Math.random() - 0.5) * blastFXcount;
blastFXcount = blastFXcount - 2;
};
stop();
Instance of Symbol 122 MovieClip in Symbol 138 MovieClip [bomb] Frame 1
onClipEvent (load) {
timer = (Math.random() * 10) + 20;
}
onClipEvent (enterFrame) {
timer = timer - 1;
if (timer < 0) {
stopDrag();
_parent.play();
}
}
on (press) {
startDrag (_parent, false, 20, 35, 380, 400);
}
on (release, releaseOutside) {
stopDrag();
}
Symbol 138 MovieClip [bomb] Frame 2
blast();
a = 0;
while (a < 16) {
if (this.hitTest(eval ("_root." + a))) {
_root.blobsArray[a] = false;
if (!eval (("_root." + a) + ".part").ill) {
_root.attachMovie("blob_squashed", "blob_squashed_" + a, 100 + a);
} else {
_root.attachMovie("blob_squashed_ill", "blob_squashed_" + a, 100 + a);
}
eval ("_root.blob_squashed_" + a)._x = eval ("_root." + a)._x;
eval ("_root.blob_squashed_" + a)._y = eval ("_root." + a)._y;
eval ("_root.blob_squashed_" + a)._xscale = eval ("_root." + a)._xscale;
removeMovieClip(eval ("_root." + a));
}
a++;
}
Symbol 138 MovieClip [bomb] Frame 3
blast();
Symbol 138 MovieClip [bomb] Frame 4
blast();
Symbol 138 MovieClip [bomb] Frame 5
blast();
Symbol 138 MovieClip [bomb] Frame 6
blast();
Symbol 138 MovieClip [bomb] Frame 7
blast();
Symbol 138 MovieClip [bomb] Frame 8
blast();
Symbol 138 MovieClip [bomb] Frame 9
_root._x = 0;
_root._y = 0;
Symbol 138 MovieClip [bomb] Frame 27
removeMovieClip(this);
Symbol 141 MovieClip [bomb_fall] Frame 35
_root.attachMovie("bomb", "bomb", 9000);
_root.bomb._x = _x;
_root.bomb._y = _y;
removeMovieClip(this);
Instance of Symbol 149 MovieClip in Symbol 152 MovieClip [bouncing_ball] Frame 1
onClipEvent (load) {
if (Math.random() < 0.5) {
_parent._x = -50;
dx = 3;
} else {
_parent._x = 450;
dx = -3;
}
_parent._y = 100 + (Math.random() * 280);
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + dx;
if ((_parent._x > 460) || (_parent._x < -60)) {
_root.DangerGone();
removeMovieClip(_parent);
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip [bowl_ball] Frame 1
onClipEvent (load) {
_parent._x = (Math.random() * 300) + 50;
_parent._y = -10;
}
onClipEvent (enterFrame) {
_parent._y = _parent._y + 2;
if (_parent._y > 500) {
_root.DangerGone();
removeMovieClip(_parent);
}
}
Instance of Symbol 170 MovieClip in Symbol 171 MovieClip [rocket] Frame 1
onClipEvent (load) {
sfx = new Sound();
sfx.attachSound("rocketsnd");
sfx.start(0, 1);
if (Math.random() < 0.5) {
_parent._x = 460;
_xscale = 100;
dd = 0.2;
} else {
_parent._x = -60;
_xscale = -100;
dd = -0.2;
}
_parent._y = (Math.random() * 300) + 50;
d = 0;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x - d;
d = d + dd;
if ((_parent._x > 465) || (_parent._x < -65)) {
_root.DangerGone();
_parent.removeMovieClip();
}
}
Instance of Symbol 179 MovieClip in Symbol 180 MovieClip [weight] Frame 39
onClipEvent (load) {
d = 10;
}
onClipEvent (enterFrame) {
if (d > 0) {
_root._y = Math.sin(d - 8.5) * d;
d = d - 1;
}
}
Symbol 180 MovieClip [weight] Frame 70
_root.DangerGone();
removeMovieClip(this);
Symbol 192 MovieClip Frame 126
_root.musicTrack = new Sound();
_root.musicTrack.attachSound("track");
_root.musicTrack.start(0, 5000);
_root.gotoAndStop(5);
Symbol 206 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 2
stop();
Symbol 206 MovieClip Frame 3
stop();
Instance of Symbol 206 MovieClip "trigger" in Symbol 207 MovieClip Frame 1
onClipEvent (load) {
if ((_quality == "LOW") || (_quality == "MEDIUM")) {
gotoAndStop (1);
}
if (_quality == "HIGH") {
gotoAndStop (2);
}
if (_quality == "BEST") {
gotoAndStop (3);
}
}
Symbol 212 Button
on (press) {
getURL ("http://www.newgrounds.com");
}
Symbol 218 Button
on (press) {
getURL ("http://www.virtualtoy.nm.ru");
}
Symbol 222 Button
on (press) {
getURL ("mailto:virtualtoy@nm.ru");
}
Symbol 229 MovieClip Frame 1
stop();
Instance of Symbol 226 MovieClip in Symbol 229 MovieClip Frame 1
on (press) {
if (_root.music) {
_root.music = false;
_root.musicTrack.stop();
_parent.gotoAndStop(2);
} else {
_root.music = true;
_root.musicTrack = new Sound();
_root.musicTrack.attachSound("track");
_root.musicTrack.start(0, 5000);
_parent.gotoAndStop(1);
}
}
Symbol 229 MovieClip Frame 2
stop();
Instance of Symbol 243 MovieClip "part" in Symbol 244 MovieClip Frame 1
onClipEvent (enterFrame) {
tox = (32 - _root.blobsLeft) * 12;
d = (tox - _x) / 4;
if (d > 0.1) {
_x = (_x + d);
}
}
Symbol 249 MovieClip Frame 1
_x = ((Math.random() * 300) + 50);
gotoAndPlay(Math.floor((Math.random() * 30) + 5));
Symbol 249 MovieClip Frame 40
isBlobs = false;
i = 0;
while (i < 15) {
if (!_root.blobsArray[i]) {
isBlobs = true;
_root.attachMovie("blob_fall", "blob_fall", 11000);
_root.blob_fall._x = _x;
_root.blob_fall._y = (Math.random() * 300) + 50;
break;
}
i++;
}
if (!isBlobs) {
_root.attachMovie("bomb_fall", "bomb_fall", 11000);
_root.bomb_fall._x = _x;
_root.bomb_fall._y = (Math.random() * 300) + 50;
}