Frame 1
function 82(_arg4, _arg3, _arg2) {
if (_arg2 == undefined) {
_arg2 = 1;
}
if (_arg3 == undefined) {
_arg3 = 15;
}
mysoundobj = new Sound(this);
mysoundobj.attachSound(_arg4);
mysoundobj.start(0, _arg2);
}
function 99(_arg1) {
mysoundobj.stop(_arg1);
}
function 52(_arg8) {
trace("New Shared Object Created");
var _local4 = new Array();
var _local3 = new Array();
if (_arg8) {
var _local5 = -90;
var _local6 = 75;
var _local7 = 4;
}
var _local1 = 0;
while (_local1 < 57) {
_local4[_local1] = Math.round(19 - (_local1 * 20));
_local3[_local1] = "";
var _local2 = 0;
while (_local2 < 21) {
_local3[_local1] = _local3[_local1] + 90();
_local2++;
}
_local1++;
}
if (_arg8) {
97.data.speed = _local5;
97.data.aspeed = _local6;
97.data.quadrants = _local7;
97.data.random_id = Math.round(Math.random() * 100000);
}
97.data.scores = _local4;
97.data.players = _local3;
97.data.computer = computer;
97.data.paration = paratio;
97.data.sresx = sresx;
97.data.sresy = sresy;
97.flush();
}
function 90() {
return(chr(Math.floor(Math.random() * 25) + 65));
}
Stage.scaleMode = "noScale";
Stage.showMenu = false;
var 97 = SharedObject.getLocal("quadrants");
var 19 = 1000;
var 20 = 100;
var 57 = 10;
var 21 = 3;
if (97.data.random_id == undefined) {
if (!97.flush(1)) {
System.showSettings(1);
} else {
52(true);
trace("Shared Objects Allowed");
}
}
Frame 2
var 46 = _root.getBytesLoaded();
var 101 = _root.getBytesTotal();
var 81 = Math.round((46 / 101) * 100);
_root.bar.gotoAndStop(81);
_root.percent.htmlText = 81 + "%";
if (81 == 100) {
stop();
gotoAndPlay (4);
}
Frame 3
gotoAndPlay (2);
Frame 17
stop();
loaded.onRollOver = function () {
_root.82("btn");
this.gotoAndStop(2);
};
loaded.onRollOut = function () {
this.gotoAndStop(1);
};
loaded.onPress = function () {
this.gotoAndStop(1);
gotoAndPlay (18);
};
Frame 23
function 51(_arg10) {
var _local2;
var _local3 = _root.brick;
var _local4 = mx.transitions.easing.Bounce.easeOut;
_local4 = mx.transitions.easing.Bounce.easeOut;
var _local8 = _root.brick._x;
var _local7 = _root.brick._y;
var _local6 = 481;
var _local5 = 79;
if (_arg10) {
_local2 = 0.2;
var _local9 = new mx.transitions.Tween(_local3, "_x", _local4, _local8, _local6, _local2, true);
_local9.onMotionFinished = function () {
51(false);
};
} else {
_local2 = 0.5;
var _local9 = new mx.transitions.Tween(_local3, "_y", _local4, _local7, _local5, _local2, true);
_local9.onMotionFinished = function () {
gotoAndPlay (24);
};
}
}
stop();
51(true);
Frame 24
Mouse.show();
stopAllSounds();
Frame 38
monster.gotoAndPlay(2);
Frame 51
mWindow.freezeShape(true);
var 96 = _root["97"].data.speed;
var 94 = _root["97"].data.aspeed;
var 95 = _root["97"].data.quadrants;
var 59 = new Object();
59.quadrants = ((95 == undefined) ? 4 : (95));
59.speed = ((94 == undefined) ? 75 : (94));
59.up = 87;
59.down = 83;
59.left = 65;
59.right = 68;
59.use = 32;
59.pauser = 80;
59.rotright = 49;
59.rotleft = 50;
59.other = 66;
if (reloading) {
mainmc._visible = false;
if ((btn_scores["8"] != true) || (btn_scores["8"] == undefined)) {
mc_blank.attachMovie("scores_mc", "scores", 0);
btn_scores["8"] = true;
}
btn_scores.gotoAndStop(2);
with (btn_options) {
gotoAndStop(1);
Set("8", false);
}
btn_clear.enabled = true;
btn_clear._visible = true;
}
btn_clear._visible = false;
btn_clear.enabled = false;
btn_clear.onPress = function () {
this.gotoAndStop(3);
_root["97"].clear();
_root.52(false);
mc_blank.attachMovie("scores_mc", "scores", 0);
this.enabled = false;
};
btn_clear.onRollOver = function () {
_root.82("btn", 15);
this.gotoAndStop(2);
};
btn_clear.onRollOut = function () {
this.gotoAndStop(1);
};
btn_play.onPress = function () {
stopAllSounds();
this.gotoAndStop(1);
btn_clear.enabled = false;
btn_clear._visible = false;
gotoAndPlay (57);
};
btn_play.onRollOver = function () {
_root.82("btn", 15);
this.gotoAndStop(2);
};
btn_play.onRollOut = function () {
this.gotoAndStop(1);
};
btn_scores.onPress = function () {
mainmc._visible = false;
if ((this["8"] != true) || (this["8"] == undefined)) {
mc_blank.attachMovie("scores_mc", "scores", 0);
this["8"] = true;
}
this.gotoAndStop(2);
with (btn_options) {
gotoAndStop(1);
Set("8", false);
}
btn_clear.enabled = true;
btn_clear._visible = true;
};
btn_scores.onRollOver = function () {
_root.82("btn", 15);
if (!this["8"]) {
this.gotoAndStop(2);
}
};
btn_scores.onRollOut = function () {
if (!this["8"]) {
this.gotoAndStop(1);
}
};
btn_options.onPress = function () {
mainmc._visible = false;
if ((this["8"] != true) || (this["8"] == undefined)) {
mc_blank.attachMovie("options_mc", "options", 0);
this["8"] = true;
}
this.gotoAndStop(2);
with (btn_scores) {
gotoAndStop(1);
Set("8", false);
}
btn_clear.enabled = false;
btn_clear._visible = false;
};
btn_options.onRollOver = function () {
_root.82("btn", 15);
if (!this["8"]) {
this.gotoAndStop(2);
}
};
btn_options.onRollOut = function () {
if (!this["8"]) {
this.gotoAndStop(1);
}
};
Frame 56
stop();
if (reloading) {
btn_clear.enabled = true;
btn_clear._visible = true;
}
form.onPress = function () {
getURL ("http://www.theformgroup.com/", "_blank");
};
gohome.onPress = function () {
mc_blank.attachMovie("Blank", "Blank", 0);
mainmc._visible = true;
btn_clear._visible = false;
btn_clear.enabled = false;
with (btn_scores) {
gotoAndStop(1);
Set("8", false);
}
with (btn_options) {
gotoAndStop(1);
Set("8", false);
}
};
Frame 57
btn_clear.enabled = false;
btn_play.enabled = false;
btn_score.enabled = false;
btn_options.enabled = false;
Frame 74
Mouse.hide();
Frame 109
function 3(quit) {
var _local2 = 0;
while (_local2++ , _local2 < 53) {
trace(("quad0" + _local2) + " removed");
_root["quad_0" + _local2].removeMovieClip();
}
_root.pausecover.removeMovieClip();
_root.center.removeMovieClip();
_root.ds.removeMovieClip();
_root.game_over.removeMovieClip();
if (!quit) {
_root.reloading = true;
gotoAndPlay (24);
} else {
gotoAndPlay (110);
}
}
stop();
trace("Number of Quadrants = " + 59.quadrants);
trace("Game Speed = " + 59.speed);
var 33 = new ClassGame(59.quadrants, 59.speed, 59.up, 59.down, 59.left, 59.right, 59.use, 59.pauser, 59.rotright, 59.rotleft, 59.other);
pausecover._visible = false;
pausecover.swapDepths(10004);
var 53 = (33.quadrants + 1);
var i = 0;
while ((++i) < 53) {
var 87;
var 50 = ((53 == 1) ? false : true);
switch (i) {
case 1 :
Set("87", 0);
break;
case 2 :
Set("87", 180);
break;
case 3 :
Set("87", 270);
break;
case 4 :
Set("87", 90);
}
var 80 = ((i == 1) ? false : true);
Set("q0" + i, new ClassQuadrant("quad_0" + i, i, true, 87, 50));
}
Frame 110
credits.onPress = function () {
getURL ("http://www.theformgroup.com/", "_blank");
};
var 10 = new Sound();
10.setVolume(100);
stopAllSounds();
Frame 119
function 88() {
17++;
if (17 == 8) {
gotoAndPlay (120);
trace("Exiting Application...");
}
}
stop();
var 17 = 0;
Frame 129
stop();
trace("Exit Application if Applicable");
mWindow.close();
Symbol 19 MovieClip [score_label] Frame 2
stop();
Symbol 21 MovieClip [block] Frame 1
stop();
Symbol 21 MovieClip [block] Frame 2
this.br_holder._visible = true;
Symbol 21 MovieClip [block] Frame 5
this.removeMovieClip();
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 2
stop();
Symbol 61 MovieClip Frame 3
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 5
gotoAndPlay (2);
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 2
stop();
Symbol 85 MovieClip Frame 3
stop();
Symbol 85 MovieClip Frame 4
stop();
Symbol 91 MovieClip Frame 2
stop();
Symbol 94 MovieClip Frame 12
stop();
if (this._name == "last") {
var 102 = this._parent._parent._name;
Set("102", 102.substr(6, 1));
Set("102", "q0" + 102);
_root[102].quadref.removeMovieClip();
if (_root["33"].noquadrants == 0) {
_root["33"].ResetMonster();
}
}
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 9
stop();
Symbol 110 MovieClip [Chain System] Frame 7
Symbol 115 MovieClip [Combo System] Frame 10
this.removeMovieClip();
Symbol 121 MovieClip Frame 1
this["8"] = false;
this._alpha = 75;
this.onRollOver = function () {
if (!this["8"]) {
this._alpha = 100;
}
};
this.onRollOut = function () {
if (!this["8"]) {
this._alpha = 75;
}
};
this.onPress = function () {
_parent._parent.89(this);
};
stop();
Symbol 121 MovieClip Frame 2
stop();
Symbol 144 MovieClip Frame 1
var 23 = false;
if (_root["96"] != undefined) {
line._rotation = _root["96"];
} else {
_root["96"] = -90;
}
trace(_root["96"]);
center.onPress = function () {
Set("23", true);
startDrag (pos, true, -20, -20, 20, 0);
};
center.onRelease = function () {
Set("23", false);
stopDrag();
};
center.onReleaseOutside = function () {
Set("23", false);
stopDrag();
};
pos.onEnterFrame = function () {
if (23) {
var _local6 = pos._x + 20;
var _local4 = int((_local6 / 40) * 100);
var _local5 = Math.atan2(this._y - 0, this._x - 0);
var _local3 = Math.round((_local5 * 180) / Math.PI);
line._rotation = _local3;
_root["97"].data.speed = _local3;
_root["97"].data.aspeed = _local4 + 25;
trace(_local3);
_root["97"].flush();
if (_local3 <= 0) {
_local3 = Math.abs(360 + _local3);
}
_local3 = Math.abs(_local3);
_local3 = Math.floor((_local3 * 100) / 360) - 25;
_root["97"].data.aspeed = 150 - _local4;
_root["59"].speed = 150 - _local4;
}
};
Symbol 146 MovieClip [options_mc] Frame 1
function 89(43) {
var 102 = 43._name;
var i = 0;
while (i < 4) {
if (102 != ("opt" + i)) {
with (qopts["opt" + i]) {
_alpha = 75;
Set("8", false);
gotoAndStop(1);
}
} else {
_root["95"] = i + 1;
_root["97"].data.quadrants = i + 1;
_root["59"].quadrants = i + 1;
with (qopts["opt" + i]) {
_alpha = 100;
Set("8", true);
gotoAndStop(2);
}
}
i++;
}
}
if (_root["95"] != undefined) {
89(qopts["opt" + (_root["95"] - 1)]);
} else {
_root["95"] = 4;
89(qopts.opt3);
}
Symbol 147 MovieClip [scores_mc] Frame 1
var i = 0;
var 54 = _root["57"];
var 35 = _root["97"].data.scores;
var 34 = _root["97"].data.players;
var 109 = 0;
var 110 = 0;
Symbol 147 MovieClip [scores_mc] Frame 2
if (i < 54) {
var 107 = this.attachMovie("score_label", "score_label" + i, i);
107._x = 109 + (110 * 5);
107._y = Math.round(110 * (this["score_label" + i]._height - 3));
107._rotation = -7;
110++;
var score = this["35"][i];
107.numberfield.htmlText = score;
107.numberfieldunder.htmlText = score;
var 83 = (([i + 1] + " ") + this["34"][i]);
107.namefield.htmlText = 83;
107.namefieldunder.htmlText = 83;
if (i == ((_root["57"] / 2) - 1)) {
Set("109", 125);
Set("110", 0);
}
gotoAndPlay (3);
} else {
stop();
}
Symbol 147 MovieClip [scores_mc] Frame 4
i++;
gotoAndStop (2);
Symbol 157 MovieClip Frame 1
btnsubmit.onRollOver = function () {
_root.82("btn", 15);
this._parent.gotoAndStop(2);
};
btnsubmit.onRollOut = function () {
this._parent.gotoAndStop(1);
};
btnsubmit.onPress = function () {
trace("Final Score = " + _root["33"].GetScore());
trace("Name = " + highscorename.text);
var _local3 = highscorename.text;
if (_local3.length > 0) {
_root["33"].UpdateHighScores(_local3);
_root.3(false);
this._parent.gotoAndStop(1);
}
};
stop();
Symbol 157 MovieClip Frame 2
stop();
Symbol 162 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 2
stop();
Symbol 167 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 2
stop();
Symbol 168 MovieClip [Game Over] Frame 1
tryagain.onRollOver = function () {
_root.82("btn", 15);
this.gotoAndStop(2);
};
tryagain.onRollOut = function () {
this.gotoAndStop(1);
};
tryagain.onPress = function () {
trace("Trying Again");
_root.3(0);
this.gotoAndStop(1);
};
quit.onRollOver = function () {
_root.82("btn", 15);
this.gotoAndStop(2);
};
quit.onRollOut = function () {
this.gotoAndStop(1);
};
quit.onPress = function () {
trace("Quitting Game");
_root.3(1);
this.gotoAndStop(1);
};
Symbol 179 MovieClip [Paused Cover] Frame 1
btnresume.onRollOver = function () {
_root.82("btn", 15);
this._alpha = 100;
};
btnresume.onRollOut = function () {
this._alpha = 0;
};
btnresume.onPress = function () {
trace("Resuming Game");
this._alpha = 0;
_root["33"].PauseGame(0);
this._parent._visible = false;
};
btnquit.onRollOver = function () {
_root.82("btn", 15);
this._alpha = 100;
};
btnquit.onRollOut = function () {
this._alpha = 0;
};
btnquit.onPress = function () {
trace("Quitting Game");
_root.3(1);
this._alpha = 0;
};
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 10
stop();
Symbol 197 MovieClip Frame 12
stop();
Symbol 198 MovieClip Frame 59
gotoAndPlay (30);
Symbol 198 MovieClip Frame 60
stop();
Symbol 207 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 10
gotoAndPlay (2);
Symbol 211 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 5
gotoAndPlay (2);
Symbol 216 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 5
gotoAndPlay ("laugh");
Symbol 232 MovieClip Frame 22
if (!hover) {
gotoAndPlay ("open");
}
Symbol 232 MovieClip Frame 41
gotoAndPlay ("hover");
Symbol 232 MovieClip Frame 46
gotoAndPlay ("laugh");
Symbol 235 MovieClip Frame 1
if (hover) {
stop();
}
Symbol 240 MovieClip Frame 15
if (!_parent._parent.eyeflash) {
stop();
} else {
play();
}
Symbol 242 MovieClip [center] Frame 1
eyeflash = true;
eyeshadow._visible = false;
Symbol 252 MovieClip [Bomb Drop] Frame 5
this.removeMovieClip();
Symbol 460 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
}
Symbol 461 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, _arg2) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!_arg2) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
}
Symbol 462 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (_arg8, _arg5, _arg4, _arg3, finish, duration, _arg9) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this["58"] = _arg8;
this["84"] = _arg5;
this["13"] = _arg3;
position = (_arg3);
this.duration = (duration);
this["104"] = _arg9;
if (_arg4) {
this["32"] = _arg4;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (this["104"]) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
this["58"][this["84"]] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(this.32(t, this["13"], change, _duration));
}
function set finish(f) {
change = f - this["13"];
//return(finish);
}
function get finish() {
return(this["13"] + change);
}
function continueTo(finish, duration) {
this["13"] = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(this["13"], time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (this["104"]) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!this["104"]) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (this["104"]) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function 32(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 463 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
}
Symbol 464 MovieClip [__Packages.ClassQuadrant] Frame 0
class ClassQuadrant extends MovieClip
{
var quadname, quadnum, quadspeed, quadpos, quadrant, rotation, quadref, cr, pt, inter, quadactive;
function ClassQuadrant (71, 72, 69, 64, 66) {
super();
quadname = 71;
quadnum = 72;
this["91"] = this;
this["80"] = 69;
quadspeed = _root["33"].gamespeed;
quadpos = 72;
quadrant = _root.attachMovie("quadrant_bg", quadname, quadnum);
with (quadrant) {
_alpha = 0;
q_title.gotoAndStop(quadnum);
q_nums.gotoAndStop(quadnum);
_x = _root.center._x;
_y = _root.center._y - 2;
_rotation = (rotation = 64);
}
var 27 = mx.transitions.easing.Strong.easeOut;
var 13 = 0;
var 28 = 100;
var time = 2;
var 49 = quadrant;
var 103 = (new mx.transitions.Tween(49, "_alpha", 27, 13, 28, time, true));
if (quadnum == _root["33"].quadrants) {
103.onMotionFinished = function () {
_root.q01.pt.AddListener();
_root["33"].MonsterPull(1);
};
}
quadref = quadrant.q_blank.createEmptyMovieClip(quadname, 1);
cr = new ClassRow(quadref, quadnum, rows);
var 102 = cr.randomlist;
quadblocks = (quadrant.quadblocks = 102);
pt = new ClassPointer(quadrant, quadref, quadnum, this["80"]);
quadref["91"] = this["91"];
if (this["80"] == true) {
quadrant.chain_mc.stop();
pt.PauseQuadrant(true);
} else {
pt.AddListener();
pt.facingdown = true;
inter = setInterval(Move, quadspeed, this);
}
}
function Move(_arg1) {
if (_arg1.moved >= _arg1.quadspacing) {
_arg1.moved = 0;
_arg1.rows++;
_arg1.pt.minposbot = _arg1.rows;
var _local2 = new ClassRow(_arg1.quadref, _arg1.quadnum, _arg1.rows);
var _local3 = _local2.randomlist;
_arg1.quadblocks = _arg1.quadblocks.concat(_local3);
_arg1.quadrant.quadblocks = _arg1.quadblocks;
_arg1.pt.CheckAllBlocks();
}
_arg1.quadref._y = _arg1.quadref._y - 1;
_arg1.pt.pref._y = _arg1.pt.pref._y - 1;
_arg1.quadrant.combo._y = _arg1.quadrant.combo._y - 1;
_arg1.moved = _arg1.moved + 1;
_arg1.movedtotal = _arg1.movedtotal + 1;
_arg1.CheckDanger(_arg1.movedtotal);
}
function SetActive(_arg2) {
quadactive = _arg2;
}
function CheckDanger(y) {
if (y < danger) {
dangerlevel = 0;
quadrant.q_danger.gotoAndStop(1);
} else if ((superdanger > y) && (y >= danger)) {
if (dangerlevel != 1) {
quadrant.q_danger.gotoAndPlay(2);
dangerlevel = 1;
}
} else if ((finaldanger > y) && (y >= superdanger)) {
if (dangerlevel != 2) {
dangerlevel = 2;
}
} else if (y >= finaldanger) {
RumbleQuadrant();
quadrant.q_danger.gotoAndStop(1);
}
}
function RumbleQuadrant() {
trace("Rumble...");
pt.nobombs = true;
pt.QuadrantDead();
clearInterval(inter);
var 85 = (quadnum - 1);
_root["33"].activequadrants[85] = false;
trace("Active Quadrants = " + _root["33"].activequadrants);
if (!dead) {
_root["33"].noquadrants--;
}
dead = true;
_root.82("rumble", 100);
var 42 = 3;
var 56 = 0;
var 14 = 15;
var 91 = this;
var 24 = _root.damagering._x;
var 25 = _root.damagering._y;
with (_root.center.eye) {
arms.hover = true;
arms.arm_right.hover = true;
arms.arm_left.hover = true;
}
quadref.onEnterFrame = function () {
this._x = random(42) - random(42);
this._y = this._y - random(42);
56++;
if (56 == 14) {
delete this.onEnterFrame;
this["91"].DestroyQuadrant();
}
};
}
function MoveQuadrant(_arg9) {
var _local3;
var _local10 = this;
switch (_arg9) {
case 1 :
_local3 = 90;
break;
case 2 :
_local3 = -90;
}
if (_arg9 == 2) {
switch (quadpos) {
case 1 :
quadpos = 3;
break;
case 2 :
quadpos = 4;
break;
case 3 :
quadpos = 2;
break;
case 4 :
quadpos = 1;
}
} else {
switch (quadpos) {
case 1 :
quadpos = 4;
break;
case 2 :
quadpos = 3;
break;
case 3 :
quadpos = 1;
break;
case 4 :
quadpos = 2;
}
}
var _local8 = mx.transitions.easing.Strong.easeOut;
var _local4 = rotation;
var _local7 = _local4 + _local3;
var _local6 = 1;
var _local5 = quadrant;
this["103"] = new mx.transitions.Tween(_local5, "_rotation", _local8, _local4, _local7, _local6, true);
rotation = rotation + _local3;
if (Math.abs(rotation) == 360) {
rotation = 0;
}
if (rotation == 0) {
if (quadpos == 1) {
pt.AddListener();
}
}
trace((("Quadrant " + quadnum) + " at Position ") + quadpos);
_root["33"].posquadrants[quadpos - 1] = quadnum;
}
function DestroyQuadrant() {
_root.82("explosion", 40);
_root.center.chains.gotoAndStop("break");
quadrant.bricks.gotoAndPlay(2);
_root["33"].DamageRing();
trace("Number of Quadrants Remaining = " + _root["33"].noquadrants);
pt.nobombs = false;
if (_root["33"].noquadrants == 0) {
_root["33"].GameOver();
}
}
var moving = false;
var quadblocks = new Array();
var rowsdiff = 0;
var rows = 0;
var moved = 0;
var movedtotal = 0;
var quadspacing = 16;
var dead = false;
var dangerlevel = 0;
var danger = 140;
var superdanger = 170;
var finaldanger = 211;
}
Symbol 465 MovieClip [__Packages.ClassPointer] Frame 0
class ClassPointer extends MovieClip
{
var keyleft, keyright, keyup, keydown, keyenter, keyuse, keypause, keyscore, keybtnq1, keybtnq2, qrefent, thisref, objref, level, pref, mask, pref1, pref2, minposbot;
function ClassPointer (_arg4, _arg5, _arg6, _arg7) {
super();
keyleft = _root["33"].left;
keyright = _root["33"].right;
keyup = _root["33"].up;
keydown = _root["33"].down;
keyenter = _root["33"].btnb;
keyuse = _root["33"].btna;
keypause = _root["33"].btnp;
keyscore = _root["33"].btns;
keybtnq1 = _root["33"].num_01;
keybtnq2 = _root["33"].num_02;
this["80"] = _arg7;
qrefent = _arg5;
thisref = this;
objref = "q0" + _arg6;
level = 10000;
this["86"] = _arg4;
this["109"] = xstart;
this["110"] = ystart;
pref = this["86"].pt_holder.createEmptyMovieClip("pointer", level);
pref._y = this["86"].q_blank._y - 24;
mask = this["86"].q_mask.duplicateMovieClip("p_mask", 0);
pref.setMask(mask);
pref1 = pref.createEmptyMovieClip("pointer_left", level + 1);
pref2 = pref.createEmptyMovieClip("pointer_right", level + 2);
pref1.beginFill(16777215);
pref1.lineStyle(1, 4214348, 100);
pref1.moveTo(p1, p1);
pref1.lineTo(p3, p1);
pref1.lineTo(p3, p2);
pref1.lineTo(p2, p2);
pref1.lineTo(p2, p4);
pref1.lineTo(p3, p4);
pref1.lineTo(p3, p5);
pref1.lineTo(p1, p5);
pref1.lineTo(p1, p1);
pref1.endFill();
pref2.beginFill(16777215);
pref2.lineStyle(1, 4214348, 100);
pref2.moveTo(p1, p1);
pref2.lineTo(-p3, p1);
pref2.lineTo(-p3, p2);
pref2.lineTo(-p2, p2);
pref2.lineTo(-p2, p4);
pref2.lineTo(-p3, p4);
pref2.lineTo(-p3, p5);
pref2.lineTo(-p1, p5);
pref2.lineTo(-p1, p1);
pref2.endFill();
pref1._x = pref1._x - 2;
pref1._y = pref1._y - 1;
pref2._x = (pref1._x + 36) + p2;
pref2._y = pref2._y - 1;
pref.thisref = thisref;
}
function KeyIntervalCheck(_arg1) {
if (_arg1.keycount == 1) {
_arg1.keycheck = false;
clearInterval(_arg1.keyinterval);
} else {
_arg1.keycount++;
}
}
function AddListener(_param1) {
var 60 = this;
plisten.onKeyDown = function () {
if (!60.keycheck) {
60.keycheck = true;
60.keyinterval = setInterval(60.KeyIntervalCheck, 25, 60);
var _local4 = Key.getCode();
if (!_root["33"]["80"]) {
if (!60.dead) {
if (_root["33"].quadrants > 1) {
switch (_local4) {
case 60.keyleft :
case 37 :
if (60["109"] != 60.minpos) {
60.SetPos(-1, 0);
_root.center.controls.left.gotoAndPlay(2);
} else {
_root.82("error", 35);
}
break;
case 60.keydown :
case 40 :
if (60["110"] < 60.minposbot) {
60.SetPos(0, 1);
_root.center.controls.down.gotoAndPlay(2);
} else {
_root.82("error", 35);
}
break;
case 60.keyright :
case 39 :
if (60["109"] != 60.maxpos) {
60.SetPos(1, 0);
_root.center.controls.right.gotoAndPlay(2);
} else {
_root.82("error", 35);
}
break;
case 60.keyup :
case 38 :
if (60["110"] > 60.minpostop) {
60.SetPos(0, -1);
_root.center.controls.up.gotoAndPlay(2);
} else {
_root.82("error", 35);
}
break;
case 60.keyuse :
60.SwapBlocks();
break;
case 60.keypause :
if (_root["33"]["80"]) {
_root["33"].PauseGame(0);
} else {
_root["33"].PauseGame(1);
}
break;
case 60.keyscore :
if (!60.nobombs) {
_root["33"].UseBomb();
}
break;
case 60.keybtnq1 :
var _local3 = _root["33"].quadrants + 1;
var _local2 = 1;
while (_local2 < _local3) {
_root["q0" + _local2].MoveQuadrant(2);
_local2++;
}
_root["33"].MoveMonster("R", 1, 1);
break;
case 60.keybtnq2 :
_local3 = _root["33"].quadrants + 1;
_local2 = 1;
while (_local2 < _local3) {
_root["q0" + _local2].MoveQuadrant(1);
_local2++;
}
_root["33"].MoveMonster("L", 1, 1);
}
} else {
switch (_local4) {
case 60.keyleft :
case 37 :
if (60["109"] != 60.minpos) {
60.SetPos(-1, 0);
_root.center.controls.left.gotoAndPlay(2);
} else {
_root.82("error", 35);
}
break;
case 60.keydown :
case 40 :
if (60["110"] < 60.minposbot) {
60.SetPos(0, 1);
_root.center.controls.down.gotoAndPlay(2);
} else {
_root.82("error", 35);
}
break;
case 60.keyright :
case 39 :
if (60["109"] != 60.maxpos) {
60.SetPos(1, 0);
_root.center.controls.right.gotoAndPlay(2);
} else {
_root.82("error", 35);
}
break;
case 60.keyup :
case 38 :
if (60["110"] > 60.minpostop) {
60.SetPos(0, -1);
_root.center.controls.up.gotoAndPlay(2);
} else {
_root.82("error", 35);
}
break;
case 60.keyuse :
60.SwapBlocks();
break;
case 60.keypause :
if (_root["33"]["80"]) {
_root["33"].PauseGame(0);
} else {
_root["33"].PauseGame(1);
}
break;
case 60.keyscore :
_root["33"].UseBomb();
}
}
} else {
switch (_local4) {
case 60.keypause :
if (_root["33"]["80"]) {
_root["33"].PauseGame(0);
} else {
_root["33"].PauseGame(1);
}
break;
case 60.keyscore :
if (!60.nobombs) {
_root["33"].UseBomb();
}
break;
case 60.keybtnq1 :
var _local3 = _root["33"].quadrants + 1;
var _local2 = 1;
while (_local2 < _local3) {
_root["q0" + _local2].MoveQuadrant(2);
_local2++;
}
_root["33"].MoveMonster("R", 1, 1);
break;
case 60.keybtnq2 :
_local3 = _root["33"].quadrants + 1;
_local2 = 1;
while (_local2 < _local3) {
_root["q0" + _local2].MoveQuadrant(1);
_local2++;
}
_root["33"].MoveMonster("L", 1, 1);
}
}
} else if (_local4 == 60.keypause) {
_root["33"].PauseGame(0);
}
}
};
Key.addListener(plisten);
}
function RemoveListener(_param1) {
Key.removeListener(plisten);
}
function PauseQuadrant(_arg3) {
if (_arg3) {
_root[objref].quadrant.chain_mc.stop();
clearInterval(_root[objref].inter);
this["80"] = true;
} else {
this["80"] = false;
_root[objref].quadrant.chain_mc.play();
_root[objref].quadrant.iqcover._visible = true;
_root[objref].inter = setInterval(_root[objref].Move, _root["33"].gamespeed, _root[objref]);
}
}
function SetPos(x, y) {
_root.82("snap", 50);
this["109"] = this["109"] + x;
this["110"] = this["110"] + y;
pref._x = increment * this["109"];
pref._y = pref._y + (increment * y);
}
function SwapBlocks() {
_root.82("swap", 50);
var _local5 = GetPosX(this["109"]);
var _local4 = GetPosX(this["109"]) + 1;
var _local3 = GetPosY(this["110"]);
var _local9 = _local5 + (9 * _local3);
var _local8 = _local4 + (9 * _local3);
var _local11 = _root[objref].quadblocks[_local9];
var _local10 = _root[objref].quadblocks[_local8];
var _local6 = GetBlockReference(_local5, _local3);
var _local7 = GetBlockReference(_local4, _local3);
_local6._x = _local4 * increment;
_local6._name = "block_tmp";
_local7._x = _local5 * increment;
_local7._name = (("row_" + _local3) + "_block_") + _local5;
_local6._name = (("row_" + _local3) + "_block_") + _local4;
_root[objref].quadblocks[_local9] = _local10;
_root[objref].quadblocks[_local8] = _local11;
_local6.col = _local4;
_local7.col = _local5;
CheckAllBlocks();
if (minposbot != undefined) {
BlockGravity();
}
}
function GetPosX(x) {
return(this["109"]);
}
function GetPosY(y) {
return(this["110"]);
}
function GetBlockReference(x, y) {
var _local2 = this["86"].q_blank[this["86"]._name][(("row_" + y) + "_block_") + x];
return(_local2);
}
function CheckAllBlocks() {
var _local7 = new ClassResults(0);
var _local3;
var _local10 = minposbot;
var _local9;
var _local8;
var _local5 = 0;
while (_local5 < 9) {
var _local4 = 0;
while (_local4 < _local10) {
var _local6 = GetBlockReference(_local5, _local4);
if ((_local6 != null) && (_local6["98"] != undefined)) {
_local3 = new ClassCheckBreaks(_local5, _local4, minposbot, this["86"]);
_local7["48"] = _local7["48"] + _local3["48"];
_local7.bpx = _local3.bpx;
_local7.bpy = _local3.bpy;
if (_local3.bpx != undefined) {
_local9 = _local3.bpx;
}
if (_local3.bpy != undefined) {
_local8 = _local3.bpy;
}
}
_local4++;
}
_local5++;
}
if (_local7["48"] >= _root["33"].minblocksforbreak) {
_root.82("bang", 50);
var _local12 = _local7["48"].toString();
var _local11 = this["86"].combo.attachMovie("Combo System", "combo_on", 0);
_local11.amount.text = _local12;
_local11.bg._width = ((_local12.length > 1) ? 28 : 19);
_local11._x = _local9;
_local11._y = _local8;
possibleChainCount++;
BlockGravity();
_root["33"].SetScore(_local7["48"]);
} else {
if (possibleChainCount > 1) {
_root["33"].ChainScore(possibleChainCount);
}
possibleChainCount = 0;
}
}
function BlockGravity() {
var _local8 = 0;
while (_local8 < 9) {
var _local4 = minposbot - 2;
while (_local4 >= 0) {
var _local9 = _local8 + (9 * _local4);
var _local19 = _local8 + (9 * (_local4 + 1));
var _local10 = this["86"].quadblocks[_local9];
var _local18 = this["86"].quadblocks[_local19];
var _local3 = GetBlockReference(_local8, _local4);
if (_local10 != null) {
if (_local18 == null) {
var _local6 = null;
var _local7 = _local9;
var _local5 = 0;
while (_local6 == null) {
_local7 = _local7 + 9;
_local6 = this["86"].quadblocks[_local7];
_local5++;
}
_local5--;
_local3.row = _local3.row + _local5;
var _local14 = _local3._y;
var _local17 = _local3.row * 16;
var _local16 = mx.transitions.easing.Bounce.easeOut;
var _local13 = _local14;
var _local15 = _local17;
var _local12 = 0.1;
var _local11 = _local3;
var _local20 = new mx.transitions.Tween(_local11, "_y", _local16, _local13, _local15, _local12, true);
this["86"].quadblocks[_local3.col + (_local3.row * 9)] = _local10;
this["86"].quadblocks[_local9] = null;
_local3._name = (("row_" + _local3.row) + "_block_") + _local3.col;
}
}
_local4--;
}
_local8++;
}
var _local22 = null;
var _local21 = 0;
while (_local22 == null) {
_local22 = this["86"].quadblocks[_local21];
_local21++;
}
_local21--;
var _local23 = int(_local21 / 9);
if ((_local23 > 0) && (_root[objref].rowsdiff != _local23)) {
var _local24 = _local23;
_local24 = (_local24 - _root[objref].rowsdiff) * 16;
_root[objref].movedtotal = _root[objref].movedtotal - _local24;
_root[objref].rowsdiff = _local23;
minpostop = _local23;
}
var 91 = this;
_local20.onMotionFinished = function () {
91.CheckAllBlocks();
};
}
function QuadrantDead() {
dead = true;
pref._visible = false;
}
var xstart = 0;
var ystart = 0;
var dead = false;
var facingdown = false;
var nobombs = false;
var possibleChainCount = 0;
var minpos = 0;
var maxpos = 7;
var minpostop = 0;
var plisten = new Object();
var keycheck = false;
var keycount = 0;
var p1 = 0;
var p2 = 4;
var p3 = 9;
var p4 = 20;
var p5 = 24;
var increment = 16;
}
Symbol 466 MovieClip [__Packages.ClassResults] Frame 0
class ClassResults
{
function ClassResults (_arg2) {
this["48"] = _arg2;
}
}
Symbol 467 MovieClip [__Packages.ClassCheckBreaks] Frame 0
class ClassCheckBreaks
{
var bpx, bpy;
function ClassCheckBreaks (x, y, _arg18, _arg17) {
this["86"] = _arg17;
this["48"] = 0;
this["37"] = _arg18;
var _local3;
var _local6;
var _local13 = 0;
var _local14 = 0;
_local3 = x - 1;
_local6 = 0;
while (_local3 >= _local6) {
var _local8 = GetBlockReference(_local3, y);
var _local10 = GetBlockReference(x, y);
if ((_local8["98"] == 0) && (_local8.instnum == _local10.instnum)) {
_local13++;
} else {
break;
}
_local3--;
}
_local3 = x + 1;
_local6 = 9;
while (_local3 < _local6) {
var _local8 = GetBlockReference(_local3, y);
var _local10 = GetBlockReference(x, y);
if ((_local8["98"] == 0) && (_local8.instnum == _local10.instnum)) {
_local14++;
} else {
break;
}
_local3++;
}
var _local15 = 0;
var _local16 = 0;
_local3 = y - 1;
_local6 = 0;
while (_local3 >= _local6) {
var _local8 = GetBlockReference(x, _local3);
var _local10 = GetBlockReference(x, y);
if ((_local8["98"] == 0) && (_local8.instnum == _local10.instnum)) {
_local15++;
} else {
break;
}
_local3--;
}
_local3 = y + 1;
_local6 = this["37"];
while (_local3 < _local6) {
var _local8 = GetBlockReference(x, _local3);
var _local10 = GetBlockReference(x, y);
if ((_local8["98"] == 0) && (_local8.instnum == _local10.instnum)) {
_local16++;
} else {
break;
}
_local3++;
}
if (((_local13 + 1) + _local14) >= _root["33"].minblocksforbreak) {
this["48"] = this["48"] + 1;
}
if (((_local15 + 1) + _local16) >= _root["33"].minblocksforbreak) {
this["48"] = this["48"] + 1;
}
if ((((_local13 + 1) + _local14) >= _root["33"].minblocksforbreak) && (((_local15 + 1) + _local16) >= _root["33"].minblocksforbreak)) {
this["48"]--;
}
if (((_local13 + 1) + _local14) >= _root["33"].minblocksforbreak) {
_local3 = x - _local13;
_local6 = x + _local14;
while (_local3 <= _local6) {
var _local7 = GetBlockReference(_local3, y);
var _local9 = _local3 + (9 * y);
this["86"].quadblocks[_local9] = null;
var _local12 = _local7._x - 16;
var _local11 = _local7._y;
_local7.gotoAndPlay("break");
_local3++;
}
}
if (((_local15 + 1) + _local16) >= _root["33"].minblocksforbreak) {
_local3 = y - _local15;
_local6 = y + _local16;
while (_local3 <= _local6) {
var _local7 = GetBlockReference(x, _local3);
var _local9 = x + (9 * _local3);
this["86"].quadblocks[_local9] = null;
var _local12 = _local7._x;
var _local11 = _local7._y - 16;
_local7.gotoAndPlay("break");
_local3++;
}
}
bpx = _local12;
bpy = _local11;
}
function GetBlockReference(x, y) {
var _local2 = this["86"].q_blank[this["86"]._name][(("row_" + y) + "_block_") + x];
return(_local2);
}
}
Symbol 468 MovieClip [__Packages.ClassRow] Frame 0
class ClassRow extends MovieClip
{
var rownum, qnum, yorg, randomlist;
function ClassRow (_arg6, _arg8, _arg7) {
super();
rownum = (this["93"] = _arg7);
qnum = _arg8;
this["40"] = (_arg6 + "_") + _arg7;
yorg = _arg7 * increment;
randomlist = GetUniqueRandom(colnum);
var _local3 = -1;
var _local5 = colnum;
while (_local3++ , _local3 < _local5) {
var _local4 = new ClassBlock(_arg6, this["93"], randomlist[_local3], _local3);
_local4.instpos = _local3;
_local4.block._x = _local3 * increment;
_local4.block._y = yorg;
}
}
function GetUniqueRandom(_arg7) {
var _local6 = new Array();
var _local4 = 0;
while (_local4 < _arg7) {
var _local3 = Math.floor(Math.random() * 4) + 1;
do {
_local3++;
if (_local3 == 5) {
_local3 = 1;
}
var _local5 = _local4 + ((rownum - 1) * colnum);
var 7 = _root["q0" + qnum].quadblocks[_local5];
} while ((_local3 == _local6[_local4 - 1]) || (7 == _local3));
_local6[_local4] = _local3;
_local4++;
}
return(_local6);
}
var colnum = 9;
var increment = 16;
}
Symbol 469 MovieClip [__Packages.ClassBlock] Frame 0
class ClassBlock extends MovieClip
{
var bname, block, row, col;
function ClassBlock (_arg5, _arg6, _arg3, _arg4) {
super();
this["45"] = _arg3;
bname = (("row_" + _arg6) + "_block_") + _arg4;
block = _arg5.attachMovie("block", bname, _arg5.getNextHighestDepth());
block.row = (row = _arg6);
block.col = (col = _arg4);
block.instnum = (this["45"] = _arg3);
block["98"] = 0;
this["44"] = block.pc_holder.attachMovie("pcmc_" + _arg3, "pc_" + _arg4, 0);
block.br_holder.attachMovie((("pcmc_" + _arg3) + "-") + _arg3, "br_" + _arg4, 1);
block.onPress = function () {
trace("\nBlock name: " + this._name);
trace((("At Column " + this.col) + ", Row ") + this.row);
trace("State: " + this["98"]);
trace("Inst: " + this.instnum);
};
}
}
Symbol 470 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
}
Symbol 471 MovieClip [__Packages.ClassGame] Frame 0
class ClassGame
{
var score, gamespeed, quadrants, noquadrants, scoreperblock, up, down, left, right, btns, btna, btnp, num_01, num_02, seconds, monster, gametime, highscorebreak, monsterpause, creature;
function ClassGame (_arg4, _arg5, _arg9, _arg13, _arg7, _arg12, _arg6, _arg14, _arg10, _arg8, _arg11) {
score = 0;
gamespeed = _arg5;
quadrants = _arg4;
noquadrants = _arg4;
scoreperblock = 10 - (_arg4 - 1);
up = _arg9;
down = _arg13;
left = _arg7;
right = _arg12;
btns = _arg11;
btna = _arg6;
btnp = _arg14;
num_01 = _arg10;
num_02 = _arg8;
activequadrants.length = quadrants;
var _local3 = 0;
while (_local3 < quadrants) {
activequadrants[_local3] = true;
posquadrants[_local3] = _local3 + 1;
_local3++;
}
if (quadrants > 1) {
seconds = GetRandomSeconds();
monster = setInterval(CheckMonster, 1000, this);
}
_root.center.swapDepths(10002);
_root.ds.swapDepths(10001);
gametime = setInterval(UpdateGameTime, 1000, this);
}
function GetScore(_param1) {
return(score);
}
function SetScore(_arg3) {
var _local5 = _arg3 * scoreperblock;
var _local4 = 0;
if (_arg3 > 3) {
switch (_arg3) {
case 4 :
_local4 = 20;
break;
case 5 :
_local4 = 30;
break;
default :
_local4 = (_arg3 * scoreperblock) - scoreperblock;
}
}
if (_arg3 > highcombo) {
highcombo = _arg3;
_root.bombs.high.text = "X" + _arg3;
_root.bombs.high_up.text = "X" + _arg3;
}
score = score + (_local5 + _local4);
_root.score.scoretext.text = score;
UpdateLimit(_arg3);
}
function ChainScore(_arg3) {
var _local5 = _arg3 - 2;
var _local4 = new Array(50, 80, 150, 300, 400, 500, 700, 900, 1100, 1300, 1500, 1800);
var _local6 = _local4[_local5];
if (_arg3 > highchain) {
highchain = _arg3;
_root.bombs.chain.text = _arg3;
_root.bombs.chain_up.text = _arg3;
}
score = score + _local6;
_root.score.scoretext.text = score;
UpdateLimit(_arg3);
}
function CheckHighScores(_param1) {
var _local9;
var _local6 = _root["57"];
var _local5 = false;
var _local8 = GetScore();
var _local7 = _level0["97"].data.scores;
var _local3 = 0;
while (_local3 < _local6) {
var _local4 = _local7[_local3];
if (_local8 >= _local4) {
highscorebreak = _local3;
_local5 = true;
break;
}
_local3++;
}
return((_local5 ? true : false));
}
function UpdateHighScores(highscorename) {
if (GetScore() > 0) {
var _local3 = new LoadVars();
_local3.action = "add";
_local3.gTitle = "quadrants";
_local3.user = highscorename;
_local3.score = GetScore();
_local3.sendAndLoad("http://www.theformgroup.com/games/quadrants/score_manager.php", _local3, "POST");
_local3.onLoad = function (_arg2) {
if (_arg2) {
_root.52(false);
} else {
trace("didn't work");
}
};
}
}
function UpdateLimit(_arg11) {
var _local5 = _root.center.limit.limitmask._y;
var _local3 = _root.center.limit.limitmask._y - _arg11;
if (_local3 < 0) {
if ((limit != true) && (limitbombsinc != true)) {
limit = true;
if (limitbombs < 6) {
BombAdd();
}
limitbombsinc = true;
}
} else {
var _local10 = mx.transitions.easing.Strong.easeIn;
var _local7 = _local5;
var _local8 = _local3;
var _local6 = 0.2;
var _local4 = _root.center.limit.limitmask;
var _local9 = new mx.transitions.Tween(_local4, "_y", _local10, _local7, _local8, _local6, true);
var 91 = this;
_local9.onMotionFinished = function () {
91.limitbombsinc = false;
};
}
}
function ResetLimit(_param1) {
limit = false;
var _local8 = mx.transitions.easing.Bounce.easeOut;
var _local5 = _root.center.limit.limitmask._y;
var _local6 = 55;
var _local4 = 2;
var _local3 = _root.center.limit.limitmask;
var _local7 = new mx.transitions.Tween(_local3, "_y", _local8, _local5, _local6, _local4, true);
_local7.onMotionFinished = function () {
this.limitbombsinc = false;
};
_root.center.limit.gotoAndStop(1);
_root.center.limit_text.gotoAndStop(1);
}
function BombAdd(_param1) {
if ((limitbombs < 6) && (limitbombsinc != true)) {
_root.82("gotbomb", 15);
limitbombs++;
var _local3 = limitbombs;
_root.bombs.allbombs["b" + _local3].gotoAndStop(2);
ResetLimit();
}
}
function BombDestroy(_param1) {
if (limitbombs > 0) {
var _local3 = limitbombs;
_root.bombs.allbombs["b" + _local3].gotoAndStop(1);
limitbombs--;
}
}
function UseBomb(6) {
if ((limitbombs > 0) && (monsterpause == undefined)) {
monsterpause = 0;
BombDestroy();
monstermoving = true;
clearInterval(monster);
var i = 1;
while (i < (quadrants + 1)) {
_root["q0" + i].pt.PauseQuadrant(1);
i++;
}
_root.center.bomb.attachMovie("Bomb Drop", "bomb_attachment", 0);
_root.center.chains.gotoAndStop("break");
_root.82("explosion", 40);
_root.center.eyeflash = false;
with (_root.center.eye) {
arms.hover = true;
arms.arm_right.hover = true;
arms.arm_left.hover = true;
}
creature = setInterval(CreaturePaused, 1000, this);
_root.82("shutdown", 35);
} else {
_root.82("error");
if (monsterpause != undefined) {
trace("Paused");
} else {
trace("No Bombs");
}
}
}
function CreaturePaused(91) {
if (91.monsterpausetime == 91.monsterpause) {
trace("I'm Baaaaack!");
clearInterval(91.creature);
if (!_root["33"]["80"]) {
trace("Monster Position = " + 91.monsterposition);
trace("Quadrant Position = " + 91.posquadrants[91.monsterposition - 1]);
trace("Quadtrant Active = " + 91.activequadrants[91.posquadrants[91.monsterposition - 1] - 1]);
if (91.activequadrants[91.posquadrants[91.monsterposition - 1] - 1] == true) {
trace("Quadrant is active, resume pulling");
91.MonsterPull(_root["33"].posquadrants[91.monsterposition - 1]);
_root.82("scream");
with (_root.center.eye) {
if (arms.hover == true) {
arms.play();
arms.hover = false;
arms.arm_right.hover = false;
arms.arm_left.hover = false;
arms.arm_right.gotoAndPlay("open");
arms.arm_left.gotoAndPlay("open");
}
}
} else if (91.activequadrants[91.posquadrants[91.monsterposition - 1] - 1] != undefined) {
trace("Quadrant is Dead; Auto Move");
91.CheckMonster(91, true);
} else {
trace("Active Quadrants Broken");
}
91.monster = setInterval(91.CheckMonster, 1000, 91);
} else {
91.comingbackfrompaused = true;
}
_root.center.chains.gotoAndPlay(1);
_root.center.eyeflash = true;
_root.center.eye.eyecenter.gotoAndPlay(1);
91.monstermoving = false;
91.monsterpause = undefined;
} else if (!_root["33"]["80"]) {
trace("Waiting..." + 91.monsterpause);
91.monsterpause++;
} else {
trace("Waiting Paused at " + 91.monsterpause);
}
}
function DamageRing(_param1) {
var _local3 = 4 - quadrants;
damage++;
_root.damagering.gotoAndPlay("Damage" + (damage + _local3));
}
function UpdateGameTime(_arg1) {
_arg1.gametimecount++;
if (_arg1.gametimecount == _arg1.gametimemax) {
_arg1.gametimecount = 0;
_arg1.UpdateGameSpeed();
}
}
function UpdateGameSpeed(_param1) {
trace("Current Game Speed of " + gamespeed);
if (gamespeed > 20) {
gamespeed = gamespeed - gamespeedinc;
trace("\tUpdated to " + gamespeed);
var _local3 = 1;
while (_local3 <= quadrants) {
_root["q0" + _local3].quadspeed = gamespeed;
_local3++;
}
}
}
function GetRandomSeconds(_param1) {
var _local1 = int((Math.random() * 10) + 5);
return(_local1);
}
function CheckMonster(_arg3, _arg9) {
if ((_arg3.monstercount == _arg3.seconds) || (_arg9)) {
_arg3.monstercount = 0;
_arg3.seconds = _arg3.GetRandomSeconds();
var _local5 = new Array();
var _local4 = 0;
var _local2 = 0;
while (_local2 < _arg3.activequadrants.length) {
if ((_arg3.monsterposition != (_local2 + 1)) && (_arg3.activequadrants[_root["33"].posquadrants[_local2] - 1] == true)) {
_local5[_local4] = _local2 + 1;
_local4++;
}
_local2++;
}
var _local8 = int(Math.random() * _local5.length);
var _local7 = int(Math.random() * 2);
var _local6 = _local5[_local8];
trace(((("Monster Chose Position " + _local6) + " Out of the Available Positions (") + _local5) + ")");
switch (_local7) {
case 0 :
dir = "L";
break;
case 1 :
dir = "R";
break;
default :
dir = "L";
}
switch (_arg3.monsterposition) {
case 1 :
switch (_local6) {
case 2 :
n = 2;
break;
case 3 :
n = 1;
dir = "R";
break;
case 4 :
n = 1;
dir = "L";
}
break;
case 2 :
switch (_local6) {
case 1 :
n = 2;
break;
case 3 :
n = 1;
dir = "L";
break;
case 4 :
n = 1;
dir = "R";
}
break;
case 3 :
switch (_local6) {
case 4 :
n = 2;
break;
case 1 :
n = 1;
dir = "L";
break;
case 2 :
n = 1;
dir = "R";
}
break;
case 4 :
switch (_local6) {
case 3 :
n = 2;
break;
case 2 :
n = 1;
dir = "L";
break;
case 1 :
n = 1;
dir = "R";
}
}
if ((n != undefined) && (_local6 != undefined)) {
_arg3.MoveMonster(dir, n, 0);
_root.82("move");
_root.center.chains.gotoAndStop("break");
if (_arg3.noquadrants < 2) {
clearInterval(_arg3.monster);
}
}
} else {
_arg3.monstercount++;
}
}
function MonsterPull(_arg2) {
if (_root["q0" + _arg2].pt["80"]) {
_root["q0" + _arg2].pt.PauseQuadrant(0);
}
}
function MonsterStopPull(_arg5) {
var _local3 = 0;
var _local4 = quadrants;
while ((_local3++) < _local4) {
if (_local3 != _arg5) {
if (!_root["q0" + _local3].pt["80"]) {
_root["q0" + _local3].pt.PauseQuadrant(1);
}
}
}
}
function MoveMonster(4, 2, 1) {
var 29;
var 91 = this;
switch (4) {
case "L" :
Set("29", 90 * 2);
break;
case "R" :
Set("29", -90 * 2);
}
if (2 == 2) {
switch (monsterposition) {
case 1 :
monsterposition = 2;
break;
case 2 :
monsterposition = 1;
break;
case 3 :
monsterposition = 4;
break;
case 4 :
monsterposition = 3;
}
} else if (4 == "L") {
switch (monsterposition) {
case 1 :
monsterposition = 4;
break;
case 2 :
monsterposition = 3;
break;
case 3 :
monsterposition = 1;
break;
case 4 :
monsterposition = 2;
}
} else {
switch (monsterposition) {
case 1 :
monsterposition = 3;
break;
case 2 :
monsterposition = 4;
break;
case 3 :
monsterposition = 2;
break;
case 4 :
monsterposition = 1;
}
}
var 27 = mx.transitions.easing.Strong.easeOut;
var 13 = rotation;
var 28 = (13 + 29);
var time = 1;
var 49 = _root.center;
var 103 = (new mx.transitions.Tween(49, "_rotation", 27, 13, 28, time, true));
if (!1) {
103.onMotionFinished = function () {
if ((!_root["33"]["80"]) && (!91.monstermoving)) {
91.MonsterPull(_root["33"].posquadrants[91.monsterposition - 1]);
}
if (!91.monstermoving) {
_root.center.chains.gotoAndPlay(1);
with (_root.center.eye) {
if (arms.hover == true) {
arms.play();
arms.hover = false;
arms.arm_right.hover = false;
arms.arm_left.hover = false;
arms.arm_right.gotoAndPlay("open");
arms.arm_left.gotoAndPlay("open");
}
}
}
};
}
rotation = rotation + 29;
if (Math.abs(rotation) == 360) {
rotation = 0;
}
MonsterStopPull(posquadrants[91.monsterposition - 1]);
}
function ResetMonster(6) {
var 91 = this;
var 92 = ((rotation == -90) ? 270 : (rotation));
var 27 = mx.transitions.easing.Strong.easeOut;
var 13 = 92;
var 28 = 0;
var time = 2;
var 49 = _root.center;
var 103 = (new mx.transitions.Tween(49, "_rotation", 27, 13, 28, time, true));
103.onMotionFinished = function () {
with (_root.center) {
eye.arms.gotoAndStop(1);
eye.arms.arm_right.gotoAndStop("open");
eye.arms.arm_left.gotoAndStop("open");
eyeshadow._visible = true;
}
var 27 = mx.transitions.easing.Strong.easeOut;
var 13 = _root.center.eye._xscale;
var 28 = 175;
var time = 4;
var 49 = _root.center.eye;
var 11 = (new mx.transitions.Tween(49, "_xscale", 27, 13, 28, time, true));
var 27 = mx.transitions.easing.Strong.easeOut;
var 13 = _root.center.eye._yscale;
var 28 = 175;
var time = 4;
var 49 = _root.center.eye;
var 15 = (new mx.transitions.Tween(49, "_yscale", 27, 13, 28, time, true));
var 27 = mx.transitions.easing.Strong.easeOut;
var 13 = _root.center.eyeshadow._xscale;
var 28 = 135;
var time = 4;
var 49 = _root.center.eyeshadow;
var 18 = (new mx.transitions.Tween(49, "_xscale", 27, 13, 28, time, true));
var 27 = mx.transitions.easing.Strong.easeOut;
var 13 = _root.center.eyeshadow._yscale;
var 28 = 115;
var time = 4;
var 49 = _root.center.eyeshadow;
var 26 = (new mx.transitions.Tween(49, "_yscale", 27, 13, 28, time, true));
var 27 = mx.transitions.easing.Strong.easeOut;
var 13 = _root.center.eye._x;
var 28 = (13 - 18);
var time = 3;
var 49 = _root.center.eye;
var 30 = (new mx.transitions.Tween(49, "_x", 27, 13, 28, time, true));
var 27 = mx.transitions.easing.Strong.easeOut;
var 13 = _root.center.eye._y;
var 28 = -165;
var time = 6;
var 49 = _root.center.eye;
var 31 = (new mx.transitions.Tween(49, "_y", 27, 13, 28, time, true));
var 27 = mx.transitions.easing.Strong.easeOut;
var 13 = _root.center.eyeshadow._x;
var 28 = (13 - 15);
var time = 3;
var 49 = _root.center.eyeshadow;
var 38 = (new mx.transitions.Tween(49, "_x", 27, 13, 28, time, true));
var 27 = mx.transitions.easing.Strong.easeOut;
var 13 = _root.center.eyeshadow._y;
var 28 = -55;
var time = 5;
var 49 = _root.center.eyeshadow;
var 39 = (new mx.transitions.Tween(49, "_y", 27, 13, 28, time, true));
31.onMotionFinished = function () {
Mouse.show();
with (_root.center.eye) {
arms.hover = false;
arms.arm_left.gotoAndPlay("laugh");
arms.arm_right.gotoAndPlay("laugh");
}
_root.center.eyeshadow.gotoAndPlay("laugh");
var 36 = _root.attachMovie("Game Over", "game_over", 10003);
36._alpha = 0;
36._x = 362;
36._y = 290;
36.highscore._visible = true;
var 27 = mx.transitions.easing.Strong.easeInOut;
var 13 = 0;
var 28 = 100;
var time = 3;
var 49 = 36;
var 103 = (new mx.transitions.Tween(49, "_alpha", 27, 13, 28, time, true));
};
};
}
function PauseGame(98) {
if (98) {
this["80"] = true;
_root.pausecover._visible = true;
Mouse.show();
var 10 = new Sound();
10.setVolume(25);
clearInterval(monster);
clearInterval(gametime);
var i = 1;
while (i < (quadrants + 1)) {
_root["q0" + i].pt.PauseQuadrant(1);
i++;
}
} else {
this["80"] = false;
_root.pausecover._visible = false;
Mouse.hide();
var 10 = new Sound();
10.setVolume(100);
if (monsterpause == undefined) {
MonsterPull(posquadrants[monsterposition - 1]);
monster = setInterval(CheckMonster, 1000, this);
}
if (comingbackfrompaused) {
comingbackfrompaused = false;
trace("Coming Back From Paused");
_root.82("scream");
with (_root.center.eye) {
if (arms.hover == true) {
arms.play();
arms.hover = false;
arms.arm_right.hover = false;
arms.arm_left.hover = false;
arms.arm_right.gotoAndPlay("open");
arms.arm_left.gotoAndPlay("open");
}
}
}
gametime = setInterval(UpdateGameTime, 1000, this);
}
}
function GameOver(_param1) {
clearInterval(monster);
clearInterval(creature);
clearInterval(gametime);
var _local3 = 1;
while (_local3 < (quadrants + 1)) {
_root["q0" + _local3].pt.RemoveListener();
_local3++;
}
}
var damage = 0;
var rotation = 0;
var limitbombs = 0;
var limit = false;
var limitbombsinc = false;
var 80 = false;
var activequadrants = new Array();
var posquadrants = new Array();
var limitinc = 2;
var gamespeedinc = 2;
var gametimecount = 0;
var gametimemax = 60;
var comingbackfrompaused = false;
var monstercount = 0;
var monsterposition = 1;
var monsterpausetime = 5;
var monstermoving = false;
var minblocksforbreak = 3;
var highcombo = 0;
var highchain = 0;
}
Symbol 280 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 2
stop();
Symbol 310 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 33
gotoAndPlay (2);
Symbol 316 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 2
stop();
Symbol 322 MovieClip Frame 1
stop();
Symbol 322 MovieClip Frame 2
stop();
Symbol 331 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 2
stop();
Symbol 339 MovieClip Frame 1
stop();
Symbol 339 MovieClip Frame 2
stop();
Symbol 339 MovieClip Frame 3
stop();
Symbol 344 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 2
stop();
Symbol 348 MovieClip Frame 1
this.keytext.text = this._name;
this.keytextunder.text = this._name;
Symbol 354 MovieClip Frame 1
this.keytext.text = this._name;
this.keytextunder.text = this._name;
Symbol 374 MovieClip Frame 1
Symbol 377 MovieClip Frame 1
Symbol 380 MovieClip Frame 1
Symbol 383 MovieClip Frame 1
Symbol 393 MovieClip Frame 1
stop();
Symbol 393 MovieClip Frame 2
stop();
Symbol 401 MovieClip Frame 1
stop();
objectives.onRollOver = function () {
_root.82("btn");
this.gotoAndStop(2);
};
objectives.onRollOut = function () {
this.gotoAndStop(1);
};
objectives.onPress = function () {
gotoAndPlay (2);
this.gotoAndStop(1);
};
Symbol 401 MovieClip Frame 13
stop();
missioncontrol.onRollOver = function () {
_root.82("btn");
this.gotoAndStop(2);
};
missioncontrol.onRollOut = function () {
this.gotoAndStop(1);
};
missioncontrol.onPress = function () {
gotoAndPlay (14);
this.gotoAndStop(1);
};
Symbol 430 MovieClip Frame 8
stop();
Symbol 430 MovieClip Frame 16
stop();
Symbol 430 MovieClip Frame 24
stop();
Symbol 430 MovieClip Frame 32
stop();
Symbol 430 MovieClip Frame 40
stop();
Symbol 444 MovieClip Frame 10
stop();
Symbol 445 MovieClip Frame 1
stop();
Symbol 445 MovieClip Frame 2
stop();