Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
MochiAd.showPreGameAd({id:"df55e65f8a8681b2", res:"550x400"});
__com_mochibot__("c3993af9", this, 10301, true);
Frame 2
function main() {
if (this.vx == undefined) {
this.vx = 0;
this.vy = 0;
}
this.vx = this.vx + ((this.ox - this._x) * k);
this.vy = this.vy + ((this.oy - this._y) * k);
var _local4 = this._x - _root._xmouse;
var _local3 = this._y - _root._ymouse;
var _local6 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
if (_local6 <= sd) {
var _local5 = Math.atan2(_local3, _local4);
this.vx = this.vx + (((_root._xmouse + (sd * Math.cos(_local5))) - this._x) * k);
this.vy = this.vy + (((_root._ymouse + (sd * Math.sin(_local5))) - this._y) * k);
}
this._x = this._x + ((this.vx = this.vx * d));
this._y = this._y + ((this.vy = this.vy * d));
}
stop();
Mouse.hide();
w = 13;
h = 10;
gw = 550 / (w - 1);
d = 0.7;
k = 0.15;
sd = 50;
showgrid = true;
dd = 0;
var song = new Sound();
song.attachSound("Song");
createEmptyMovieClip("pointHold", 2);
i = 1;
while (i <= h) {
j = 1;
while (j <= w) {
mc = pointHold.createEmptyMovieClip((("p_" + i) + "_") + j, ++dd);
mc._x = (mc.ox = ((Stage.width / 2) - (((w - 1) * gw) / 2)) + (gw * (j - 1)));
mc._y = (mc.oy = ((Stage.height / 2) - (((h - 1) * gw) / 2)) + (gw * (i - 1)));
mc.onEnterFrame = main;
j++;
}
i++;
}
pointHold.onEnterFrame = function () {
clear();
lineStyle(0.25, 16777215, 40);
i = 1;
while (i <= h) {
mc = _root.pointHold[(("p_" + i) + "_") + "1"];
moveTo(mc._x, mc._y);
j = 2;
while (j <= w) {
mc = _root.pointHold[(("p_" + i) + "_") + j];
lineStyle(0.25, 16777215, 40);
lineTo(mc._x, mc._y);
j++;
}
i++;
}
i = 1;
while (i <= w) {
mc = _root.pointHold["p_1_" + i];
moveTo(mc._x, mc._y);
j = 2;
while (j <= h) {
mc = _root.pointHold[(("p_" + j) + "_") + i];
lineStyle(0.25, 16777215, 40);
lineTo(mc._x, mc._y);
j++;
}
i++;
}
};
Instance of Symbol 40 MovieClip in Frame 2
onClipEvent (load) {
this.swapDepths(1005);
}
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 3
function endGame() {
delete onEnterFrame;
delete onMouseDown;
delete onMouseUp;
for (i in _root) {
for (a in _root[i]) {
delete _root[i][a].onEnterFrame;
delete _root[i][a].onMouseDown;
delete _root[i][a].onMouseUp;
_root[i][a].removeMovieClip();
}
delete _root[i].onEnterFrame;
delete _root[i].onMouseDown;
delete _root[i].onMouseUp;
_root[i].removeMovieClip();
}
}
function game() {
onMouseDown = function () {
mousedown = true;
if (dTime <= 3) {
bomb(12);
}
};
onMouseUp = function () {
mousedown = false;
dTime = 0;
Mouse.hide();
};
onEnterFrame = function () {
if (countdown) {
levelTimer++;
if (levelTimer > 150) {
level++;
levelTimer = 0;
}
if (combo > 1) {
combo = combo - 0.008;
}
if (combo < 1) {
combo = 1;
}
}
comboText = Math.floor(combo - (1 * Number(Math.floor(combo) == 1))) + "x";
combar.barA._xscale = (combo % 1) * initScale;
health = health + (Number(health <= 98) * Number(healthRegen));
if (countdown) {
if (powerTimer > 0) {
powerTimer--;
}
if (powerTimer == 0) {
togglePowerUps();
powerTimer--;
}
pTime--;
if (pTime <= 0) {
spawnPower();
pTime = random(150) + 400;
}
}
bar.barA._xscale = bar.barA._xscale + ((health - bar.barA._xscale) / 5);
if (Key.isDown(32)) {
anchored = true;
} else {
anchored = false;
}
if (Key.isDown(65)) {
left = true;
} else {
left = false;
}
if (Key.isDown(68)) {
right = true;
} else {
right = false;
}
if (Key.isDown(87)) {
up = true;
} else {
up = false;
}
if (Key.isDown(83)) {
down = true;
} else {
down = false;
}
if (dTime < 5) {
dTime++;
}
if (mute) {
if (song.getVolume() != 0) {
song.setVolume(0);
}
} else if (song.getVolume() != 100) {
song.setVolume(100);
}
if (Key.isDown(77) && (mDown == false)) {
mDown = true;
mute = !mute;
}
if (!Key.isDown(77)) {
mDown = false;
}
if (mousedown) {
rTime--;
if (rTime == (-1 * Number(tre))) {
if (tre) {
shootTre();
} else {
shoot();
}
rTime = 3 - (Number(fastReload) * 2);
}
}
};
circle.onEnterFrame = function () {
if (countdown) {
eTime++;
if (eTime >= (15 + random(10))) {
spawnEnemy();
eTime = 0;
}
}
if (this.getDepth() != 10000) {
this.swapDepths(10000);
}
if (!anchored) {
this._x = this._x + ((_xmouse - this._x) / (5 - (Number(fast) * 2)));
this._y = this._y + ((_ymouse - this._y) / (5 - (Number(fast) * 2)));
} else {
this._x = this._x + (((((Stage.width / 2) + (right * 100)) - (left * 100)) - this._x) / 5);
this._y = this._y + (((((Stage.height / 2) + (down * 100)) - (up * 100)) - this._y) / 5);
}
this._rotation = (Math.atan2(_ymouse - this._y, _xmouse - this._x) * 180) / Math.PI;
addTrail(this._x, this._y);
};
}
stop();
Mouse.hide();
Frame 4
stop();
Frame 5
stop();
Frame 6
function spawnPower() {
attachMovie("powerUps", "powerUps" + pa, pa, {_x:random(550), _y:random(550), onEnterFrame:powerFrame});
_root["powerUps" + pa].gotoAndStop(random(_root["powerUps" + pa]._totalframes) + 1);
pa++;
}
function powerFrame() {
if (this.hitTest(_root.circle)) {
togglePowerUps();
if (!mute) {
var _local3 = new Sound();
_local3.attachSound("Ding");
_local3.setVolume(150);
_local3.start();
}
if (this._currentframe == 1) {
tre = true;
powerTimer = 135;
pBar.play();
powerUpActive = "SPREAD SHOT";
}
if (this._currentframe == 2) {
bonus = true;
powerTimer = 135;
pBar.play();
powerUpActive = "2X SCORE";
}
if (this._currentframe == 3) {
healthRegen = true;
powerTimer = 135;
pBar.play();
powerUpActive = "HEALTH REGEN";
}
if (this._currentframe == 4) {
shield = true;
powerTimer = 135;
pBar.play();
powerUpActive = "SHIELD";
}
if (this._currentframe == 5) {
fast = true;
powerTimer = 135;
pBar.play();
powerUpActive = "SPEED";
}
if (this._currentframe == 6) {
enemyPause = true;
powerTimer = 135;
pBar.play();
powerUpActive = "FREEZE";
}
if (this._currentframe == 7) {
fastReload = true;
powerTimer = 135;
pBar.play();
powerUpActive = "FAST RELOAD";
}
this.removeMovieClip();
}
}
function addTrail(x, y) {
attachMovie("trail", "trail" + p, p, {_x:(x + random(6)) - random(6), _y:(y + random(6)) - random(6), onEnterFrame:trailFrame});
p++;
if (p == 200) {
p = 3;
}
}
function trailFrame() {
this._alpha = this._alpha - 5;
this._xscale = this._xscale - 5;
this._yscale = this._yscale - 5;
this._rotation = this._rotation + 6;
if ((this._xscale < 0) || (this._alpha < 0)) {
this.removeMovieClip();
}
}
function shoot() {
if (!mute) {
var _local3 = new Sound();
_local3.attachSound("blip");
_local3.setVolume(150);
_local3.start();
}
attachMovie("laser", "laser" + l, l, {_x:_root.circle._x + (Math.cos((_root.circle._rotation * Math.PI) / 180) * 9), _y:_root.circle._y + (Math.sin((_root.circle._rotation * Math.PI) / 180) * 9), _rotation:(_root.circle._rotation + random(4)) - random(4), onEnterFrame:laserFrame});
if (combo >= 2) {
var _local4 = new Color(this["laser" + l]);
_local4.setRGB(random(6710886) + 10066329);
}
l++;
if (l == 500) {
l = 200;
}
}
function shootTre() {
if (!mute) {
var _local9 = new Sound();
_local9.attachSound("blip");
_local9.setVolume(150);
_local9.start();
}
ang = -15;
u = 15;
var _local3 = 0;
while (_local3 < 3) {
attachMovie("laser", "laser" + l, l, {_x:_root.circle._x + (Math.cos(((_root.circle._rotation + ang) * Math.PI) / 180) * 9), _y:_root.circle._y + (Math.sin(((_root.circle._rotation + ang) * Math.PI) / 180) * 9), _rotation:((_root.circle._rotation + ang) + random(4)) - random(4), onEnterFrame:laserFrame});
if (combo >= 2) {
var _local4 = new Color(this["laser" + l]);
_local4.setRGB(random(6710886) + 10066329);
}
l++;
if (l == 500) {
l = 200;
}
ang = ang + u;
_local3++;
}
}
function bomb(n) {
if (score > 100) {
if (!mute) {
var _local10 = new Sound();
_local10.attachSound("blip");
_local10.setVolume(150);
_local10.start();
}
score = score - 100;
var _local3 = 0;
while (_local3 < n) {
attachMovie("laser", "laser" + l, l, {_rotation:random(360), _x:_root.circle._x + (Math.cos((this._rotation * Math.PI) / 180) * 9), _y:_root.circle._y + (Math.sin((this._rotation * Math.PI) / 180) * 9), onEnterFrame:laserFrame});
if (combo >= 2) {
var _local4 = new Color(this["laser" + l]);
_local4.setRGB(random(6710886) + 10066329);
}
l++;
if (l == 500) {
l = 200;
}
_local3++;
}
}
}
function laserFrame() {
this._x = this._x + (Math.cos((this._rotation * Math.PI) / 180) * 6);
this._y = this._y + (Math.sin((this._rotation * Math.PI) / 180) * 6);
if ((((this._x > 550) || (this._x < 0)) || (this._y > 400)) || (this._y < 0)) {
particle(this._x, this._y, 7, random(16777215));
this.removeMovieClip();
}
for (en in _root.enemyHold) {
if (this.hitTest(_root.enemyHold[en])) {
var _local3 = 0;
while (_local3 < 5) {
attachMovie("laser", "part" + p, p, {_x:this._x, _y:this._y, _rotation:random(360), onEnterFrame:particleFrame});
var _local4 = new Color(_root["part" + p]);
_local4.setRGB(_root.enemyHold[en].co);
p++;
if (p == 200) {
p = 3;
}
_local3++;
}
_local3 = 0;
while (_local3 < 5) {
attachMovie("ring", "part" + p, p, {_x:this._x, _y:this._y, _alpha:random(50) + 50, _xscale:random(100) + 75, onEnterFrame:ringFrame});
var _local4 = new Color(_root["part" + p]);
_local4.setRGB(_root.enemyHold[en].co);
p++;
if (p == 200) {
p = 3;
}
_local3++;
}
scorer(this._x, this._y, (((6 + random(5)) + (anchored * 10)) * (Number(bonus) + 1)) * Math.floor(combo));
this.removeMovieClip();
_root.enemyHold[en].removeMovieClip();
}
}
}
function particle(x, y, n, c) {
var _local2 = 0;
while (_local2 < n) {
attachMovie("part", "part" + p, p, {_x:x, _y:y, _rotation:random(360), onEnterFrame:particleFrame});
var _local3 = new Color(_root["part" + p]);
_local3.setRGB(c);
p++;
if (p == 200) {
p = 3;
}
_local2++;
}
}
function particleFrame() {
this._x = this._x + (Math.cos((this._rotation * Math.PI) / 180) * 3);
this._y = this._y + (Math.sin((this._rotation * Math.PI) / 180) * 3);
this._alpha = this._alpha - 6;
this._xscale = this._xscale - 6;
if (((((this._alpha < 0) || (this._x < -3)) || (this._x > 553)) || (this._y < -3)) || (this._y > 403)) {
this.removeMovieClip();
}
}
function spawnEnemy() {
var _local2 = random(6710886) + 10066329;
enemyHold.attachMovie("enemy", "enemy" + e, e, {_x:random(550), _y:random(400), _rotation:random(360), onEnterFrame:enemyFrame, xspd:(random(2) * 2) - 1, yspd:(random(2) * 2) - 1, spd:random(5) + 1, level:Math.min(random(level) + 1, en1._totalframes)});
var _local3 = new Color(_root.enemyHold["enemy" + e]);
_local3.setRGB(_local2);
_root.enemyHold["enemy" + e].co = _local2;
if (Point.distance(new Point(_root.enemyHold["enemy" + e]._x, _root.enemyHold["enemy" + e]._y), new Point(_root.circle._x, _root.circle._y)) < 12) {
_root.enemyHold["enemy" + e].removeMovieClip();
spawnEnemy();
}
e++;
if (e > 800) {
e = 500;
}
}
function enemyFrame() {
this.gotoAndStop(this.level);
if (this.hitTest(_root.circle)) {
if (!shield) {
var _local3 = new Sound();
_local3.attachSound("Wrong");
_local3.start();
superParticle(this._x, this._y, 30);
this.removeMovieClip();
white.play();
score = score - 25;
health = health - (10 + random(8));
if (health < 0) {
endGame();
gotoAndStop ("lose");
}
}
}
if (!enemyPause) {
if (this.level == 1) {
this._x = this._x + (this.xspd * this.spd);
this._y = this._y + (this.yspd * this.spd);
this._rotation = this._rotation + (this.spd * 3);
if ((this._x > 550) || (this._x < 0)) {
this.xspd = this.xspd * -1;
}
if ((this._y > 400) || (this._y < 0)) {
this.yspd = this.yspd * -1;
}
}
if (this.level == 2) {
this._rotation = (Math.atan2(_root.circle._y - this._y, _root.circle._x - this._x) * 180) / Math.PI;
this._x = this._x + (Math.cos((this._rotation * Math.PI) / 180) * this.spd);
this._y = this._y + (Math.sin((this._rotation * Math.PI) / 180) * this.spd);
}
if (this.level == 3) {
if (this.shotTime == undefined) {
this.shotTime = 50;
}
this.shotTime--;
if (this.shotTime <= 0) {
enemyArray.push(attachMovie("laser", "laser" + l, l, {_rotation:this._rotation, _x:this._x + (Math.cos((this._rotation * Math.PI) / 180) * 9), _y:this._y + (Math.sin((this._rotation * Math.PI) / 180) * 9), onEnterFrame:enlaserFrame}));
var _local4 = new Color(_root["laser" + l]);
_local4.setRGB(this.co);
_root["laser" + l].co = this.co;
l++;
if (l == 500) {
l = 200;
}
this.shotTime = 50;
}
this._x = this._x + (this.xspd * this.spd);
this._y = this._y + (this.yspd * this.spd);
this._rotation = (Math.atan2(_root.circle._y - this._y, _root.circle._x - this._x) * 180) / Math.PI;
if ((this._x > 550) || (this._x < 0)) {
this.xspd = this.xspd * -1;
}
if ((this._y > 400) || (this._y < 0)) {
this.yspd = this.yspd * -1;
}
}
}
}
function enlaserFrame() {
if (this.hitTest(_root.circle)) {
if (!shield) {
var _local3 = new Sound();
_local3.attachSound("Wrong");
_local3.start();
superParticle(this._x, this._y, 30);
this.removeMovieClip();
white.play();
score = score - 25;
health = health - (10 + random(8));
if (health < 0) {
endGame();
gotoAndStop ("lose");
}
}
}
if (_root.combo >= 2) {
var _local4 = new Color(this);
_local4.setRGB(16777215);
} else {
var _local4 = new Color(this);
_local4.setRGB(this.co);
}
this._x = this._x + (Math.cos((this._rotation * Math.PI) / 180) * 6);
this._y = this._y + (Math.sin((this._rotation * Math.PI) / 180) * 6);
if ((((this._x > 550) || (this._x < 0)) || (this._y > 400)) || (this._y < 0)) {
particle(this._x, this._y, 7, this.co);
this.removeMovieClip();
}
}
function ringFrame() {
this._xscale = this._xscale + 8;
this._yscale = this._xscale;
this._alpha = this._alpha - 8;
if (this._alpha <= 0) {
this.removeMovieClip();
}
}
function superParticle(x, y, n) {
var _local2 = 0;
while (_local2 < n) {
attachMovie("part", "part" + p, p, {_x:x, _y:y, _rotation:random(360), _xscale:random(75) + 80, onEnterFrame:superPartFrame});
var _local3 = new Color(this["part" + p]);
_local3.setRGB(random(16777215));
p++;
_local2++;
}
}
function superPartFrame() {
this._x = this._x + (Math.cos((this._rotation * Math.PI) / 180) * 5);
this._y = this._y + (Math.sin((this._rotation * Math.PI) / 180) * 5);
this._yscale = this._xscale;
this._alpha = this._alpha - 3;
this._visible = !this._visible;
if (this._alpha < 0) {
this.removeMovieClip();
}
}
function scorer(x, y, n) {
combo = combo + 0.2;
score = score + n;
attachMovie("scoreClip", "scoreClip" + p, p, {_x:x, _y:y, onEnterFrame:scoreFrame, s:n});
p++;
if (p == 200) {
p = 3;
}
}
function scoreFrame() {
this.scoreText.text = this.s;
this._y = this._y - 3;
this._alpha = this._alpha - 2;
if ((this._alpha < 0) || (this._y < 0)) {
this.removeMovieClip();
}
}
function main() {
if (this.vx == undefined) {
this.vx = 0;
this.vy = 0;
}
this.vx = this.vx + ((this.ox - this._x) * k);
this.vy = this.vy + ((this.oy - this._y) * k);
var _local4 = this._x - _root.circle._x;
var _local3 = this._y - _root.circle._y;
var _local6 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
if (_local6 <= sd) {
var _local5 = Math.atan2(_local3, _local4);
this.vx = this.vx + (((_root.circle._x + (sd * Math.cos(_local5))) - this._x) * k);
this.vy = this.vy + (((_root.circle._y + (sd * Math.sin(_local5))) - this._y) * k);
}
this._x = this._x + ((this.vx = this.vx * d));
this._y = this._y + ((this.vy = this.vy * d));
}
function togglePowerUps() {
powerUpActive = "";
tre = false;
bonus = false;
healthRegen = false;
shield = false;
fast = false;
enemyPause = false;
fastReload = false;
}
stop();
endGame();
game();
_root.createEmptyMovieClip("movFrameRate", -1);
_root.movFrameRate.onEnterFrame = function () {
this.t = getTimer();
_root.fps = Math.round(1000 / (this.t - this.o));
this.o = this.t;
};
Mouse.hide();
var p = 3;
var l = 200;
var e = 500;
var pa = 800;
var mute = false;
var enemyHold = this.createEmptyMovieClip("enemyHold", 1);
var mousedown = false;
var rTime = 3;
var dTime = 0;
var eTime = 0;
var pTime = (random(150) + 200);
var anchored = false;
var score = 0;
var left = false;
var right = false;
var up = false;
var down = false;
var tre = false;
var bonus = false;
var health = 100;
var healthRegen = false;
var shield = false;
var powerTimer = -1;
var powerUpActive;
var fast = false;
var enemyPause = false;
var fastReload = false;
var combo = 1;
var comboText = "0x";
var initScale = combar.barA._xscale;
var level = 1;
var levelTimer = 0;
var countdown = false;
var mDown = false;
bar.barA._xscale = 100;
w = 13;
h = 10;
gw = 550 / (w - 1);
d = 0.7;
k = 0.15;
sd = 50;
showgrid = true;
dd = 0;
createEmptyMovieClip("pointHold", 2);
i = 1;
while (i <= h) {
j = 1;
while (j <= w) {
mc = pointHold.createEmptyMovieClip((("p_" + i) + "_") + j, ++dd);
mc._x = (mc.ox = ((Stage.width / 2) - (((w - 1) * gw) / 2)) + (gw * (j - 1)));
mc._y = (mc.oy = ((Stage.height / 2) - (((h - 1) * gw) / 2)) + (gw * (i - 1)));
mc.onEnterFrame = main;
j++;
}
i++;
}
pointHold.onEnterFrame = function () {
clear();
lineStyle(0.25, (16777215 * (combo < 2)) + ((random(6710886) + 10066329) * (combo >= 2)), 40);
i = 1;
while (i <= h) {
mc = _root.pointHold[(("p_" + i) + "_") + "1"];
moveTo(mc._x, mc._y);
j = 2;
while (j <= w) {
mc = _root.pointHold[(("p_" + i) + "_") + j];
lineStyle(0.25, (16777215 * (combo < 2)) + ((random(6710886) + 10066329) * (combo >= 2)), 40);
lineTo(mc._x, mc._y);
j++;
}
i++;
}
i = 1;
while (i <= w) {
mc = _root.pointHold["p_1_" + i];
moveTo(mc._x, mc._y);
j = 2;
while (j <= h) {
mc = _root.pointHold[(("p_" + j) + "_") + i];
lineStyle(0.25, (16777215 * (combo < 2)) + ((random(6710886) + 10066329) * (combo >= 2)), 40);
lineTo(mc._x, mc._y);
j++;
}
i++;
}
};
Instance of Symbol 87 MovieClip "circle" in Frame 6
onClipEvent (enterFrame) {
gotoAndStop(Number(_root.shield) + 1);
}
Instance of Symbol 40 MovieClip in Frame 6
onClipEvent (load) {
this.swapDepths(1005);
_x = -50;
_y = 200;
}
onClipEvent (enterFrame) {
if (!_root.anchored) {
_x = (_x + ((-50 - _x) / 5));
_y = (_y + ((200 - _y) / 5));
} else {
_x = (_x + ((_root._xmouse - _x) / 3));
_y = (_y + ((_root._ymouse - _y) / 3));
}
}
Instance of Symbol 107 MovieClip "white" in Frame 6
onClipEvent (load) {
_width = Stage.width;
_height = Stage.height;
_x = 0;
_y = 0;
}
Frame 7
function main() {
if (this.vx == undefined) {
this.vx = 0;
this.vy = 0;
}
this.vx = this.vx + ((this.ox - this._x) * k);
this.vy = this.vy + ((this.oy - this._y) * k);
var _local4 = this._x - _root._xmouse;
var _local3 = this._y - _root._ymouse;
var _local6 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
if (_local6 <= sd) {
var _local5 = Math.atan2(_local3, _local4);
this.vx = this.vx + (((_root._xmouse + (sd * Math.cos(_local5))) - this._x) * k);
this.vy = this.vy + (((_root._ymouse + (sd * Math.sin(_local5))) - this._y) * k);
}
this._x = this._x + ((this.vx = this.vx * d));
this._y = this._y + ((this.vy = this.vy * d));
}
stop();
white.play();
createEmptyMovieClip("pointHold", 2);
i = 1;
while (i <= h) {
j = 1;
while (j <= w) {
mc = pointHold.createEmptyMovieClip((("p_" + i) + "_") + j, ++dd);
mc._x = (mc.ox = ((Stage.width / 2) - (((w - 1) * gw) / 2)) + (gw * (j - 1)));
mc._y = (mc.oy = ((Stage.height / 2) - (((h - 1) * gw) / 2)) + (gw * (i - 1)));
mc.onEnterFrame = main;
j++;
}
i++;
}
pointHold.onEnterFrame = function () {
clear();
lineStyle(0.25, 16777215, 40);
i = 1;
while (i <= h) {
mc = _root.pointHold[(("p_" + i) + "_") + "1"];
moveTo(mc._x, mc._y);
j = 2;
while (j <= w) {
mc = _root.pointHold[(("p_" + i) + "_") + j];
lineStyle(0.25, 16777215, 40);
lineTo(mc._x, mc._y);
j++;
}
i++;
}
i = 1;
while (i <= w) {
mc = _root.pointHold["p_1_" + i];
moveTo(mc._x, mc._y);
j = 2;
while (j <= h) {
mc = _root.pointHold[(("p_" + j) + "_") + i];
lineStyle(0.25, 16777215, 40);
lineTo(mc._x, mc._y);
j++;
}
i++;
}
};
Instance of Symbol 107 MovieClip "white" in Frame 7
onClipEvent (load) {
_width = Stage.width;
_height = Stage.height;
_x = 0;
_y = 0;
}
Instance of Symbol 40 MovieClip in Frame 7
onClipEvent (load) {
this.swapDepths(1005);
}
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 8
stop();
Frame 9
stop();
Frame 10
stop();
Symbol 143 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:10000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 36 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://www.smileygamer.com/?gameref=948", "_blank");
};
Symbol 38 MovieClip Frame 1
stop();
Instance of Symbol 37 MovieClip in Symbol 38 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._currentframe == this._totalframes) {
_parent.play();
}
}
Symbol 38 MovieClip Frame 2
_root.play();
_root.song.start(0, 10000);
Symbol 44 Button
on (release) {
_root.gotoAndStop("play");
}
Symbol 47 Button
on (release) {
_root.gotoAndStop("how");
}
Symbol 50 Button
on (release) {
_root.getURL("http://www.smileygamer.com/?gameref=948", "_blank");
}
Symbol 55 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://www.smileygamer.com/?gameref=948", "_blank");
};
Symbol 60 Button
on (release) {
getURL ("http://www.smileygamer.com/highscores/subluceo.html?gameref=948", "_blank");
}
Symbol 63 MovieClip Frame 28
stop();
Instance of Symbol 68 MovieClip "TA" in Symbol 73 MovieClip Frame 1
onClipEvent (load) {
this.minY = ((_parent.tops._y + (_parent.tops._height / 2)) + (this._height / 2)) + 15;
this.maxY = ((_parent.bot._y - (_parent.bot._height / 2)) - (this._height / 2)) - 15;
this.range = this.minY - this.maxY;
}
onClipEvent (enterFrame) {
var blur = (new flash.filters.BlurFilter(0, Math.abs(_parent.drag.speed)));
this.filters = [blur];
this._y = this.minY - (((_parent.drag._y - _parent.drag.minY) / (_parent.drag.maxY - _parent.drag.minY)) * this.range);
}
Instance of Symbol 71 MovieClip "tops" in Symbol 73 MovieClip Frame 1
onClipEvent (load) {
this.pressed = false;
}
onClipEvent (enterFrame) {
if (this.pressed) {
if (_parent.drag.targetY > _parent.drag.minY) {
_parent.drag.targetY--;
} else {
_parent.drag.targetY = _parent.drag.minY;
}
}
}
on (press) {
this.pressed = true;
}
on (release, dragOut) {
this.pressed = false;
}
Instance of Symbol 71 MovieClip "bot" in Symbol 73 MovieClip Frame 1
onClipEvent (load) {
this.pressed = false;
}
onClipEvent (enterFrame) {
if (this.pressed) {
if (_parent.drag.targetY < _parent.drag.maxY) {
_parent.drag.targetY++;
} else {
_parent.drag.targetY = _parent.drag.maxY;
}
}
}
on (press) {
this.pressed = true;
}
on (release, dragOut) {
this.pressed = false;
}
Instance of Symbol 72 MovieClip "drag" in Symbol 73 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.tops._x;
this._height = ((_parent.tops._y - _parent.bot._y) / _parent.TA._height) * (_parent.tops._y - _parent.bot._y);
this._y = (_parent.tops._y + _parent.tops._height) + (this._height / 2);
this.minY = this._y;
this.maxY = (_parent.bot._y - _parent.bot._height) - (this._height / 2);
this.drag = false;
this.targetY = this.minY;
this.oldY = this._y;
this.speed = 0;
}
onClipEvent (enterFrame) {
this._y = this._y + ((this.targetY - this._y) / 3);
if (this.drag) {
if (_parent._ymouse > this.maxY) {
this.targetY = this.maxY;
} else if (_parent._ymouse < this.minY) {
this.targetY = this.minY;
} else {
this.targetY = _parent._ymouse;
}
}
this.speed = this._y - this.oldY;
this.oldY = this._y;
}
on (press) {
this.drag = true;
}
on (release, releaseOutside) {
this.drag = false;
}
Symbol 78 Button
on (release) {
play();
}
Symbol 79 MovieClip Frame 22
stop();
Symbol 79 MovieClip Frame 30
stop();
_root.gotoAndStop("menu");
Symbol 87 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 18
stop();
_root.gotoAndStop("playReal");
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 11
stop();
Instance of Symbol 100 MovieClip in Symbol 103 MovieClip Frame 11
onClipEvent (enterFrame) {
this._xscale = (_root.powerTimer / 125) * 100;
if (this._xscale <= 0) {
_parent.play();
}
}
Symbol 107 MovieClip Frame 7
stop();
Symbol 109 MovieClip Frame 1
onEnterFrame = function () {
healthTxt.text = Math.round(this.barA._xscale);
};
Instance of Symbol 93 MovieClip "barA" in Symbol 109 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.health <= 40) {
play();
} else {
gotoAndStop (1);
}
}
Symbol 111 MovieClip Frame 1
onEnterFrame = function () {
comboTxt.text = _root.comboText;
};
Symbol 118 MovieClip Frame 74
stop();
_root.white.play();
_root.countdown = true;
Symbol 123 Button
on (release) {
_root.gotoAndStop("playAgain");
}
Symbol 126 Button
on (release) {
_root.gotoAndStop("submit");
}
Instance of Symbol 109 MovieClip "bar" in Symbol 131 MovieClip Frame 1
onClipEvent (load) {
this.barA._xscale = _root.health;
}
Symbol 131 MovieClip Frame 40
stop();
Symbol 132 MovieClip Frame 16
stop();
_root.gotoAndStop("playReal");
Symbol 135 MovieClip Frame 1
onEnterFrame = function () {
_root.playerName = inputName.text;
};
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 1
on (release) {
if (_root.playerName != "ENTER NAME HERE") {
url = "http://www.smileygamer.com/scripts/highscores.php";
lv = new LoadVars();
lv.id = 948;
lv.score = (_root.score * 100) + (_root.score % 97);
lv.player = _root.playerName;
trace(lv.score);
lv.sendAndLoad(url, lv, "GET");
_parent._parent.play();
} else {
var wrong = new Sound();
wrong.attachSound("Wrong");
wrong.start();
}
}
Symbol 139 Button
on (release) {
_root.gotoAndStop("playAgain2");
}
Symbol 141 MovieClip Frame 14
stop();
Symbol 141 MovieClip Frame 26
stop();
Symbol 142 MovieClip Frame 15
stop();
_root.gotoAndStop("playReal");