Frame 1
stop();
Frame 2
stop();
Stage.showMenu = false;
Frame 3
function randomize() {
desX = Math.round(Math.random() * Stage.width);
desY = Math.round(Math.random() * Stage.height);
var _local1 = new flash.geom.Point(desX, desY);
speed = (Math.random() * speedInc) + baseSpeed;
}
function levelUp(curHit) {
switch (curHit) {
case 1 :
badCount++;
attachMovie("yellow", "yellow" + badCount, 100 + badCount);
break;
case 2 :
badCount++;
attachMovie("white", "white" + badCount, 100 + badCount);
break;
case 3 :
badCount++;
attachMovie("yellow", "yellow" + badCount, 100 + badCount);
break;
case 4 :
badCount++;
attachMovie("green", "green" + badCount, 200 + badCount);
break;
case 5 :
badCount++;
attachMovie("green", "green" + badCount, 200 + badCount);
break;
case 6 :
badCount++;
attachMovie("blue", "blue" + badCount, 200 + badCount);
break;
case 7 :
badCount++;
attachMovie("blue", "blue" + badCount, 200 + badCount);
break;
case 8 :
badCount++;
attachMovie("purple", "purple" + badCount, 200 + badCount);
break;
case 9 :
badCount++;
attachMovie("blue", "blue" + badCount, 100 + badCount);
break;
case 10 :
badCount++;
attachMovie("yellow", "yellow" + badCount, 100 + badCount);
break;
case 11 :
badCount++;
attachMovie("green", "green" + badCount, 200 + badCount);
break;
case 12 :
badCount++;
attachMovie("blue", "blue" + badCount, 200 + badCount);
break;
case 13 :
badCount++;
attachMovie("purple", "purple" + badCount, 100 + badCount);
break;
case 14 :
badCount++;
attachMovie("green", "green" + badCount, 100 + badCount);
break;
case 15 :
badCount++;
attachMovie("white", "white" + badCount, 100 + badCount);
break;
case 16 :
badCount++;
attachMovie("blue", "blue" + badCount, 100 + badCount);
break;
case 17 :
badCount++;
attachMovie("purple", "purple" + badCount, 100 + badCount);
break;
case 18 :
badCount++;
attachMovie("green", "green" + badCount, 200 + badCount);
break;
case 19 :
badCount++;
attachMovie("yellow", "yellow" + badCount, 100 + badCount);
break;
case 20 :
badCount++;
attachMovie("white", "white" + badCount, 100 + badCount);
break;
case 21 :
badCount++;
attachMovie("yellow", "yellow" + badCount, 100 + badCount);
break;
case 22 :
badCount++;
attachMovie("green", "green" + badCount, 200 + badCount);
break;
case 23 :
badCount++;
attachMovie("blue", "blue" + badCount, 200 + badCount);
break;
case 24 :
badCount++;
attachMovie("purple", "purple" + badCount, 100 + badCount);
break;
case 25 :
badCount++;
attachMovie("green", "green" + badCount, 200 + badCount);
break;
case 26 :
badCount++;
attachMovie("purple", "blue" + badCount, 200 + badCount);
break;
case 27 :
badCount++;
attachMovie("blue", "blue" + badCount, 200 + badCount);
break;
case 28 :
badCount++;
attachMovie("purple", "purple" + badCount, 200 + badCount);
break;
case 30 :
badCount++;
attachMovie("blue", "blue" + badCount, 100 + badCount);
break;
case 32 :
badCount++;
attachMovie("white", "yellow" + badCount, 100 + badCount);
break;
case 34 :
badCount++;
attachMovie("green", "green" + badCount, 200 + badCount);
break;
case 36 :
badCount++;
attachMovie("yellow", "blue" + badCount, 200 + badCount);
break;
case 38 :
badCount++;
attachMovie("blue", "blue" + badCount, 200 + badCount);
break;
case 40 :
badCount++;
attachMovie("purple", "purple" + badCount, 200 + badCount);
break;
case 42 :
badCount++;
attachMovie("blue", "blue" + badCount, 100 + badCount);
break;
case 44 :
badCount++;
attachMovie("yellow", "yellow" + badCount, 100 + badCount);
break;
case 46 :
badCount++;
attachMovie("white", "white" + badCount, 100 + badCount);
}
}
stop();
var desX = 0;
var desY = 0;
var speed = 0;
var speedInc = 2;
var baseSpeed = 1;
var hitCount = 0;
var health = 100;
var level = 1;
var badCount = 0;
holder = this.createEmptyMovieClip("soundHolder", 20000);
holder2 = this.createEmptyMovieClip("soundHolder2", 21000);
holder3 = this.createEmptyMovieClip("soundHolder3", 22000);
var correct = new Sound(holder);
var wrong = new Sound(holder2);
var bgMusic = new Sound(holder3);
correct.attachSound("correct");
wrong.attachSound("wrong");
bgMusic.attachSound("bgMusic");
wrong.setVolume(7);
correct.setVolume(22);
bgMusic.setVolume(100);
bgMusic.start(0, 999);
attachMovie("circle", "circle", 1000);
circle._alpha = 60;
Stage.showMenu = false;
randomize();
onEnterFrame = function () {
var _local1 = Math.atan2(desY - circle._y, desX - circle._x);
circle._x = circle._x + (Math.cos(_local1) * speed);
circle._y = circle._y + (Math.sin(_local1) * speed);
if (((desY - circle._y) <= 10) && ((desX - circle._x) <= 10)) {
randomize();
}
if (health <= 0) {
circle.removeMovieClip();
gotoAndPlay ("gameOver");
bgMusic.stop();
}
};
onMouseDown = function () {
if (circle.hitTest(_root._xmouse, _root._ymouse, true)) {
circle._x = Math.random() * Stage.width;
circle._y = Math.random() * Stage.height;
speedInc = speedInc + 0.03;
baseSpeed = baseSpeed + 0.07;
randomize();
correct.start(0, 1);
levelUp(++hitCount);
level++;
}
};
Frame 4
gotoAndStop (5);
Frame 5
stop();
Stage.showMenu = false;
Symbol 5 MovieClip [yellow] Frame 1
function yelRandomize() {
yelDesX = Math.round(Math.random() * Stage.width);
yelDesY = Math.round(Math.random() * Stage.height);
}
var yelDesY = 0;
var yelDesX = 0;
var yelSpeed = 2.4;
this._alpha = 60;
this.cacheAsBitmap = true;
this._x = Math.random() * Stage.width;
this._y = Math.random() * Stage.height;
yelRandomize();
this.onEnterFrame = function () {
var _local3 = Math.atan2(yelDesY - this._y, yelDesX - this._x);
this._x = this._x + (Math.cos(_local3) * yelSpeed);
this._y = this._y + (Math.sin(_local3) * yelSpeed);
if (((yelDesY - this._y) <= 10) && ((yelDesX - this._x) <= 10)) {
yelRandomize();
}
if (_root.health <= 0) {
gotoAndStop ("gameOver");
this.removeMovieClip();
}
};
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (!_root.circle.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.health = _root.health - 5;
_root.wrong.start(0, 1);
}
};
Symbol 7 MovieClip [green] Frame 1
function grnRandomize() {
grnDesX = Math.round(Math.random() * Stage.width);
grnDesY = Math.round(Math.random() * Stage.height);
}
var grnDesY = 0;
var grnDesX = 0;
var grnSpeed = 1.7;
this._alpha = 50;
this.cacheAsBitmap = true;
this._x = Math.random() * Stage.width;
this._y = Math.random() * Stage.height;
grnRandomize();
this.onEnterFrame = function () {
var _local3 = Math.atan2(grnDesY - this._y, grnDesX - this._x);
this._x = this._x + (Math.cos(_local3) * grnSpeed);
this._y = this._y + (Math.sin(_local3) * grnSpeed);
if (((grnDesY - this._y) <= 10) && ((grnDesX - this._x) <= 10)) {
grnRandomize();
}
if (_root.health <= 0) {
gotoAndStop ("gameOver");
this.removeMovieClip();
}
};
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (!_root.circle.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.health = _root.health - 5;
_root.wrong.start(0, 1);
}
};
Symbol 9 MovieClip [blue] Frame 1
function blueRandomize() {
blueDesX = Math.round(Math.random() * Stage.width);
blueDesY = Math.round(Math.random() * Stage.height);
}
var blueDesY = 0;
var blueDesX = 0;
var blueSpeed = 1.3;
this._alpha = 60;
this.cacheAsBitmap = true;
this._x = Math.random() * Stage.width;
this._y = Math.random() * Stage.height;
blueRandomize();
this.onEnterFrame = function () {
var _local3 = Math.atan2(blueDesY - this._y, blueDesX - this._x);
this._x = this._x + (Math.cos(_local3) * blueSpeed);
this._y = this._y + (Math.sin(_local3) * blueSpeed);
if (((blueDesY - this._y) <= 10) && ((blueDesX - this._x) <= 10)) {
blueRandomize();
}
if (_root.health <= 0) {
gotoAndStop ("gameOver");
this.removeMovieClip();
}
};
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (!_root.circle.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.health = _root.health - 5;
_root.wrong.start(0, 1);
}
};
Symbol 11 MovieClip [purple] Frame 1
function purpRandomize() {
purpDesX = Math.round(Math.random() * Stage.width);
purpDesY = Math.round(Math.random() * Stage.height);
}
var purpDesY = 0;
var purpDesX = 0;
var purpSpeed = 1;
this._alpha = 60;
this.cacheAsBitmap = true;
this._x = Math.random() * Stage.width;
this._y = Math.random() * Stage.height;
purpRandomize();
this.onEnterFrame = function () {
var _local3 = Math.atan2(purpDesY - this._y, purpDesX - this._x);
this._x = this._x + (Math.cos(_local3) * purpSpeed);
this._y = this._y + (Math.sin(_local3) * purpSpeed);
if (((purpDesY - this._y) <= 10) && ((purpDesX - this._x) <= 10)) {
purpRandomize();
}
if (_root.health <= 0) {
gotoAndStop ("gameOver");
this.removeMovieClip();
}
};
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (!_root.circle.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.health = _root.health - 5;
_root.wrong.start(0, 1);
}
};
Symbol 13 MovieClip [white] Frame 1
function whtRandomize() {
whtDesX = Math.round(Math.random() * Stage.width);
whtDesY = Math.round(Math.random() * Stage.height);
}
var whtDesY = 0;
var whtDesX = 0;
var whtSpeed = 0.5;
this._alpha = 60;
this.cacheAsBitmap = true;
this._x = Math.random() * Stage.width;
this._y = Math.random() * Stage.height;
whtRandomize();
this.onEnterFrame = function () {
var _local3 = Math.atan2(whtDesY - this._y, whtDesX - this._x);
this._x = this._x + (Math.cos(_local3) * whtSpeed);
this._y = this._y + (Math.sin(_local3) * whtSpeed);
if (((whtDesY - this._y) <= 10) && ((whtDesX - this._x) <= 10)) {
whtRandomize();
}
if (_root.health <= 0) {
gotoAndStop ("gameOver");
this.removeMovieClip();
}
};
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (!_root.circle.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.health = _root.health - 5;
_root.wrong.start(0, 1);
}
};
Symbol 23 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 100
stop();
Symbol 26 Button
on (release) {
_root.play();
}
Symbol 27 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
logoSpin.gotoAndPlay(PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 27 MovieClip Frame 2
gotoAndPlay (1);
Symbol 30 Button
on (release) {
getURL ("http://www.heartlessgeeks.com");
}
Symbol 36 Button
on (release) {
gotoAndStop ("mainGame");
}
Symbol 53 Button
on (release) {
desX = 0;
desY = 0;
speed = 0;
speedInc = 2;
baseSpeed = 1;
hitCount = 0;
health = 100;
level = 1;
badCount = 0;
gotoAndStop (2);
}