Frame 1
stop();
onEnterFrame = function () {
completed = _root.getBytesLoaded() / _root.getBytesTotal();
percent = completed * 100;
loada.scaler._xscale = percent;
loada2.scaler._xscale = percent;
if ((percent == 100) && (_currentframe == 1)) {
gotoAndStop (2);
delete onEnterFrame;
}
};
Frame 2
var popsound = new Sound();
popsound.attachSound("pop");
var bleepsound = new Sound();
bleepsound.attachSound("bleep");
stop();
Frame 3
stop();
removeMovieClip("loser");
Frame 4
function moveSpring() {
aimertwo._rotation = aimer._rotation;
aimertwo.x = (-aimertwo._x) + _root._xmouse;
aimertwo.y = (-aimertwo._y) + _root._ymouse;
xp = (xp * inertia) + (aimertwo.x * k);
yp = (yp * inertia) + (aimertwo.y * k);
aimertwo._x = aimertwo._x + xp;
aimertwo._y = aimertwo._y + yp;
}
function lose(tellwhy) {
loser._visible = true;
loser.reasonwhy = tellwhy;
lives--;
lifecounter.gotoAndStop(lives + 1);
if (lives > -1) {
loser.dol.gotoAndStop(1);
} else {
loser.dol.gotoAndStop(2);
}
}
function cleanup(endgame) {
a = 0;
while (a <= 90) {
removeMovieClip(_root["ball" + a]);
a++;
}
b = 300;
while (b <= 400) {
removeMovieClip(_root["clicker" + b]);
b++;
}
if (endgame) {
_root.removeMovieClip(loser);
_root.removeMovieClip(aimer);
_root.removeMovieClip(prompt);
}
}
totscore = 0;
testlvl = 0;
lives = 3;
lifecounter.gotoAndStop(lives + 1);
clickdepth = 300;
attachMovie("aimer", "aimer", 200);
attachMovie("aimertwo", "aimertwo", 201);
attachMovie("loser", "loser", 199);
attachMovie("prompt", "prompt", 198);
aimertwo._x = _xmouse;
aimertwo._y = _ymouse;
prompt._x = Stage.width / 2;
prompt._y = Stage.height / 2;
loser._x = Stage.width / 2;
loser._y = Stage.height / 2;
loser._visible = false;
bbarspeed = 24;
stop();
timer = 0;
reward = "";
tick = 0;
hits = 0;
inertia = 0.7;
k = 0.5;
xp = 0;
yp = 0;
createlvl = function (balls, time, maxX, maxY, minX, minY, acX, acY, addXac, addYac, friction, minXscale, maxXscale, enProb) {
_root.balls = balls;
_root.bads = 0;
var _local2 = 0;
while (_local2 <= balls) {
attachMovie("ball", "ball" + _local2, _local2);
var _local4 = maxX - minX;
var _local5 = maxY - minY;
var _local7 = (Math.random() * _local4) + minX;
var _local6 = (Math.random() * _local5) + minY;
_root["ball" + _local2].xmove = _local7;
_root["ball" + _local2].cacheAsBitmap = true;
sbe = Math.ceil(Math.random() * 10);
if (enProb == undefined) {
enProb = 0;
}
if (sbe <= enProb) {
_root["ball" + _local2].body.gotoAndStop(2);
_root["ball" + _local2].swapDepths(_local2 + 100);
_root.bads++;
}
_root["ball" + _local2].ymove = _local6;
_root["ball" + _local2].accX = acX;
_root["ball" + _local2].accY = acY;
_root["ball" + _local2].yMeth = addYac;
_root["ball" + _local2].xMeth = addXac;
_root["ball" + _local2]._x = Math.random() * Stage.width;
_root["ball" + _local2]._y = Math.random() * Stage.height;
_root["ball" + _local2].friction = friction;
if (maxXscale == undefined) {
maxXscale = 100;
}
_root["ball" + _local2]._xscale = (_root["ball" + _local2]._yscale = (Math.random() * (maxXscale - minXscale)) + minXscale);
_local2++;
}
_root.timer = time;
};
clock = function () {
tick++;
if (tick == 31) {
timer--;
tick = 0;
if (timer <= 3) {
bleepsound.start();
}
}
};
Mouse.hide();
Stage.showMenu = false;
onEnterFrame = function () {
moveSpring();
pxmouse = xmouse;
pymouse = ymouse;
xmouse = _xmouse;
ymouse = _ymouse;
xdif = pxmouse - xmouse;
ydif = pymouse - ymouse;
movehyp = Math.sqrt((xdif * xdif) + (ydif * ydif));
trace(movehyp);
aimer._rotation = aimer._rotation + (1 + movehyp);
aimer._x = _xmouse;
aimer._y = _ymouse;
if ((timer < 0) && (loser._visible == false)) {
lose("You ran out of time!");
}
if (prompt._currentframe == 1) {
clock();
}
p = 0;
while (p <= balls) {
if (_root["ball" + p].hitTest(bbar)) {
_root["ball" + p].ymove = -bbarspeed;
} else if (_root["ball" + p].hitTest(ubar)) {
_root["ball" + p].ymove = bbarspeed;
}
if (_root["ball" + p].hitTest(lbar)) {
_root["ball" + p].xmove = bbarspeed;
} else if (_root["ball" + p].hitTest(rbar)) {
_root["ball" + p].xmove = -bbarspeed;
}
if ((((_root["ball" + p].xmove > 8) || (_root["ball" + p].xmove < -8)) || (_root["ball" + p].ymove > 8)) || (_root["ball" + p].ymove < -8)) {
_root["ball" + p].xmove = _root["ball" + p].xmove * 0.95;
_root["ball" + p].ymove = _root["ball" + p].ymove * 0.95;
}
_root["ball" + p].xmove = _root["ball" + p].xmove + _root["ball" + p].accX;
_root["ball" + p].ymove = _root["ball" + p].ymove + _root["ball" + p].accY;
_root["ball" + p]._x = _root["ball" + p]._x + _root["ball" + p].xmove;
_root["ball" + p]._y = _root["ball" + p]._y + _root["ball" + p].ymove;
if (((_root["ball" + p]._x + (_root["ball" + p]._width / 2)) >= Stage.width) && (_root["ball" + p].xmove > 0)) {
_root["ball" + p].xmove = -_root["ball" + p].xmove;
} else if (((_root["ball" + p]._x - (_root["ball" + p]._width / 2)) <= 0) && (_root["ball" + p].xmove < 0)) {
_root["ball" + p].xmove = -_root["ball" + p].xmove;
}
if (((_root["ball" + p]._y + (_root["ball" + p]._height / 2)) >= Stage.height) && (_root["ball" + p].ymove > 0)) {
_root["ball" + p].ymove = -_root["ball" + p].ymove;
} else if (((_root["ball" + p]._y - (_root["ball" + p]._width / 2)) <= 0) && (_root["ball" + p].ymove < 0)) {
_root["ball" + p].ymove = -_root["ball" + p].ymove;
}
p++;
}
};
onMouseDown = function () {
aimer.play();
if (prompt._currentframe == 1) {
kic = 0;
attachMovie("clicker", "clicker" + clickdepth, clickdepth);
_root["clicker" + clickdepth]._x = _xmouse;
_root["clicker" + clickdepth]._y = _ymouse;
clickdepth++;
if (clickdepth == 400) {
clickdepth = 300;
}
_root.totscore = _root.totscore - 2;
var _local2 = 0;
while (_local2 <= balls) {
if (_root["ball" + _local2].hitTest(_xmouse, _ymouse, true) && (_root["ball" + _local2]._currentframe == 1)) {
_root["ball" + _local2].play();
kic++;
popsound.start();
hits++;
if ((_root["ball" + _local2].body._currentframe == 2) && (loser._visible == false)) {
lose("You destroyed a red ball!");
trace("aaa");
}
}
_local2++;
}
if (kic > 1) {
if (kic == 2) {
reward = "Double Pop!";
} else if (kic == 3) {
reward = "Triple Pop!";
} else if (kic > 3) {
reward = "Pop Tacular!!";
}
score.addscore = "+" + (kic * 7);
timer = timer + kic;
score.revealer.play();
_root.totscore = _root.totscore + (kic * 7);
reveal_reward.gotoAndPlay(2);
} else if (kic == 1) {
score.addscore = "+5";
score.revealer.play();
_root.totscore = _root.totscore + 5;
}
if ((hits == ((balls + 1) - bads)) && (loser._visible == false)) {
if (_currentframe != 19) {
prompt.play();
} else {
gotoAndStop (20);
}
}
}
};
if (testlvl != 0) {
gotoAndStop(testlvl);
}
createlvl(1, 20, 1, 1, 1, 1, 0, 0, true, false, 0, 50);
teaser = "Lets Begin!";
Frame 5
createlvl(5, 9, 3, 3, 3, 3, 0, 0, true, false, 0, 50);
teaser = "OK. That was easy, lets see how you handle this!";
reward = "";
tick = 0;
hits = 0;
Frame 6
stop();
createlvl(12, 9, 3, 3, 3, 3, 0, 0, true, false, 0, 50);
teaser = "See, more balls! I can do more than that aswell! Watch this.";
reward = "";
tick = 0;
hits = 0;
Frame 7
stop();
createlvl(8, 9, 6, 6, 5, 5, 0, 0, true, false, 0, 50);
teaser = "Speed! hahaha. Lets try getting some forces in action!";
reward = "";
tick = 0;
hits = 0;
Frame 8
stop();
createlvl(8, 9, 5, 5, 4, 4, 0, 1, true, false, 0, 50);
teaser = "How did you like that? Lets make things more confusing!";
reward = "";
tick = 0;
hits = 0;
Frame 9
stop();
createlvl(10, 13, 6, 6, 3, 3, 0, -1, true, false, 0, 50);
teaser = "I bet that got ya the first time round! Lets try that again!";
reward = "";
tick = 0;
hits = 0;
Frame 10
stop();
createlvl(15, 19, 6, 6, 3, 3, -1, 0, true, false, 0, 40);
teaser = "Moving on...";
reward = "";
tick = 0;
hits = 0;
Frame 11
stop();
createlvl(20, 20, 8, 8, 4, 4, 0, 0, true, false, 0, 50);
teaser = "We`re giving you a break here, so we`ve made these targets nice and big.";
reward = "";
tick = 0;
hits = 0;
Frame 12
stop();
createlvl(10, 16, 4, 4, 2, 2, 0, 0, true, false, 0, 20, 40);
teaser = "Remember. Green = Good. Three guesses what red means?";
reward = "";
tick = 0;
hits = 0;
Frame 13
stop();
createlvl(14, 9, 4, 4, 2, 2, 0, 0, true, false, 0, 60, 120, 4);
teaser = "Now lets go back to the other stuff. But with reds!";
reward = "";
tick = 0;
hits = 0;
Frame 14
stop();
createlvl(14, 12, 5, 5, 4, 4, 0, 0.25, true, false, 0, 60, 120, 2);
teaser = "Hanging in there? Diagonal Gravity!";
reward = "";
tick = 0;
hits = 0;
Frame 15
stop();
createlvl(30, 25, 5, 5, 4, 4, 0.05, -0.15, true, false, 0, 60, 120, 3);
teaser = "Make sure there isnt a red hidden under your greens! Thats one double pop you dont want!";
reward = "";
tick = 0;
hits = 0;
Frame 16
stop();
createlvl(20, 16, 4, 4, 2, 2, 0, 0, true, false, 0, 30, 40, 5);
teaser = "Three left! Time for speed!";
reward = "";
tick = 0;
hits = 0;
Frame 17
stop();
createlvl(10, 20, 8, 8, 9, 9, 0, 0, true, false, 0, 60, 80, 4);
teaser = "Two levels remaining! Get those points!";
reward = "";
tick = 0;
hits = 0;
Frame 18
stop();
createlvl(10, 20, 8, 8, 5, 5, 0, 2, true, false, 0, 60, 80, 3);
teaser = "Prepare for the grand finale!!";
reward = "";
tick = 0;
hits = 0;
Frame 19
stop();
createlvl(90, 120, 3, 3, 4, 4, 0, 0, true, false, 0, 30, 50, 6);
teaser = "Two levels remaining! Get those points!";
reward = "";
tick = 0;
hits = 0;
Frame 20
stop();
Frame 21
gotoAndStop(wasonlev);
clickdepth = 300;
attachMovie("aimer", "aimer", 200);
attachMovie("aimertwo", "aimertwo", 201);
attachMovie("loser", "loser", 199);
attachMovie("prompt", "prompt", 198);
aimertwo._x = _xmouse;
aimertwo._y = _ymouse;
prompt._x = Stage.width / 2;
prompt._y = Stage.height / 2;
loser._x = Stage.width / 2;
loser._y = Stage.height / 2;
loser._visible = false;
bbarspeed = 24;
stop();
timer = 0;
reward = "";
tick = 0;
hits = 0;
inertia = 0.7;
k = 0.5;
xp = 0;
lifecounter.gotoAndStop(lives + 1);
yp = 0;
Symbol 10 MovieClip Frame 1
stop();
Symbol 14 MovieClip [ball] Frame 1
stop();
Symbol 14 MovieClip [ball] Frame 15
removeMovieClip(this);
Symbol 19 MovieClip [prompt] Frame 1
stop();
Symbol 19 MovieClip [prompt] Frame 2
_root.totscore = _root.totscore + (_root.timer * 2);
_root.cleanup(false);
Symbol 19 MovieClip [prompt] Frame 10
stop();
levelname = "level " + (_root._currentframe - 3);
teaser = _root.teaser;
nextbtn.onPress = function () {
_root.nextFrame();
play();
};
Symbol 19 MovieClip [prompt] Frame 20
gotoAndStop (1);
Symbol 24 MovieClip [aimer] Frame 1
stop();
Symbol 32 Button
on (release) {
getURL ("http://www.armorgames.com", "_BLANK");
}
Symbol 34 Button
on (release) {
_root.wasonlev = _root._currentframe;
_root.gotoAndStop("retry");
_root.cleanup(true);
}
Symbol 36 Button
on (release) {
_root.gotoAndStop("menu");
_root.cleanup(true);
}
Symbol 42 MovieClip [clicker] Frame 90
removeMovieClip(this);
Symbol 65 MovieClip Frame 126
_parent.play();
Symbol 71 MovieClip Frame 1
stop();
Instance of Symbol 65 MovieClip in Symbol 71 MovieClip Frame 1
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Symbol 71 MovieClip Frame 120
_root.nextFrame();
Symbol 78 Button
on (release) {
nextFrame();
}
Symbol 83 Button
on (release) {
getURL ("http://www.armorgames.com", "_BLANK");
}
Symbol 87 Button
on (release) {
getURL ("http://www.armorblog.com", "_BLANK");
}
Symbol 103 MovieClip Frame 1
stop();