Frame 1
MochiAd.showPreloaderAd({id:"c4667de9e48a3bbd", res:"640x480"});
_root.gooddomain = 1;
Frame 2
_root.players = 1;
_root.thisUser = 1;
_root.nextUser = 2;
_root.setup = 1;
_root.level = 1;
levz = 20;
if (_root.gooddomain != 1) {
levz = 5;
}
_root.player = new Array();
if (!resolution) {
resolution = 1;
}
if ((_root.gooddomain != 1) and (countdown != 1)) {
countdown = 1;
intervalID = setInterval(killuser, 300000);
}
stop();
Frame 3
p = 1;
while (p <= _root.players) {
_root.player[p] = new Object();
_root.player[p].score = 0;
_root.player[p].colors = 1;
_root.player[p].lives = 4;
_root.player[p].fill = new Array();
_root.player[p].cstep = 1;
_root.player[p].fill[1] = new Object();
_root.player[p].fill[2] = new Object();
_root.player[p].fill[3] = new Object();
_root.player[p].fill[4] = new Object();
p++;
}
nextFrame();
Instance of Symbol 61 MovieClip "snake" in Frame 4
onClipEvent (enterFrame) {
_parent.square._y = _parent["co" + _root.player[_root.setup].colors]._y;
_parent.square._x = _parent["co" + _root.player[_root.setup].colors]._x;
c = 1;
i = 1;
while (i <= 22) {
newCol = new Color(this["ball" + i]);
newCol.setTransform(_root.player[_root.setup].fill[c]);
c++;
if (c > _root.player[_root.setup].colors) {
c = 1;
}
i++;
}
}
Frame 5
if (_root.setup == _root.players) {
nextFrame();
} else {
_root.setup++;
prevFrame();
}
Frame 6
if (resolution == 2) {
game._width = 480;
game._height = 320;
game._x = 80;
game._y = 40;
} else if (resolution == 3) {
game._width = 320;
game._height = 240;
game._x = 160;
game._y = 80;
}
i = 1;
while (i <= _root.players) {
_root.player[i].cstep = 1;
_root.player[i].inverted = 0;
i++;
}
levd = "Level " + _root.level;
Frame 7
play();
Frame 16
if (players > 1) {
if (_root.player[1].vspoints > _root.player[2].vspoints) {
_root.player[1].score++;
} else if (_root.player[1].vspoints < _root.player[2].vspoints) {
_root.player[2].score++;
}
if ((_root.player[1].score >= 3) or (_root.player[2].score >= 3)) {
gotoAndStop ("results");
}
} else if (_root.player[1].lives < 0) {
gotoAndStop ("gameover");
}
Frame 17
gotoAndStop (5);
Frame 18
tag = random(5) + 1;
if (_root.player[1].score > _root.player[2].score) {
v1.gotoAndStop(tag);
v2.gotoAndStop(tag + 5);
} else if (_root.player[2].score > _root.player[1].score) {
v1.gotoAndStop(tag + 5);
v2.gotoAndStop(tag);
} else {
v1.gotoAndStop(11);
v2.gotoAndStop(11);
}
Frame 19
score2 = _root.player[1].score;
scoreSent = false;
Symbol 257 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("1.5");
}
static function showPreloaderAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, 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 showTimedAd(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.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 _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 _local25 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local25);
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 _local24 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local24);
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) {
cb = parseInt(cb);
var _local4 = this._callbacks[cb];
if (!_local4) {
return(undefined);
}
delete this._callbacks[cb];
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 _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
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 _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_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 258 MovieClip [__Packages.saveScore] Frame 0
class saveScore
{
var gameId, eKey, sponsor;
function saveScore (g, k, s) {
gameId = g;
eKey = k;
sponsor = s;
}
function submit(u, n, o, p) {
var _local2 = new Object();
_local2.seed = 99999999 * Math.random();
_local2.user = u;
if (p) {
_local2.password = com.meychi.ascrypt.MD5.calculate(p);
}
_local2.score = n;
if (o) {
_local2.other = JSON.stringify(o);
}
var _local3 = com.meychi.ascrypt.RC4.encrypt(JSON.stringify(_local2), eKey);
sendit(_local3);
}
function sendit(secure) {
_root.createEmptyMovieClip("scoreSubmissionWrapper", _root.getNextHighestDepth());
_root.scoreSubmissionWrapper.dataString = secure;
_root.scoreSubmissionWrapper.sponsor = sponsor;
_root.scoreSubmissionWrapper.gameId = gameId;
_root.scoreSubmissionWrapper.getURL("http://www.psychogoldfish.com/submitScore.php", "_blank", "POST");
_root.scoreSubmissionWrapper.removeMovieClip();
}
function show() {
getURL ((("http://www.psychogoldfish.com/scoreBoards.php?gameId=" + gameId) + "&sponsor=") + sponsor, "_blank");
}
}
Symbol 259 MovieClip [__Packages.com.meychi.ascrypt.MD5] Frame 0
class com.meychi.ascrypt.MD5
{
function MD5 () {
}
static function calculate(src) {
return(hex_md5(src));
}
static function hex_md5(src) {
return(binl2hex(core_md5(str2binl(src), src.length * 8)));
}
static function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local4 = 1732584193 /* 0x67452301 */;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var _local5 = 0;
while (_local5 < x.length) {
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
var _local7 = _local1;
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 0], 7, -680876936);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 1], 12, -389564586);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 2], 17, 606105819);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 3], 22, -1044525330);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 4], 7, -176418897);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 5], 12, 1200080426);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 6], 17, -1473231341);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 7], 22, -45705983);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 8], 7, 1770035416);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 9], 12, -1958414417);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 10], 17, -42063);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 11], 22, -1990404162);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 12], 7, 1804603682);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 13], 12, -40341101);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 14], 17, -1502002290);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 15], 22, 1236535329);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 1], 5, -165796510);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 6], 9, -1069501632);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 11], 14, 643717713);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 0], 20, -373897302);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 5], 5, -701558691);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 10], 9, 38016083);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 15], 14, -660478335);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 4], 20, -405537848);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 9], 5, 568446438);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 14], 9, -1019803690);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 3], 14, -187363961);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 8], 20, 1163531501);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 13], 5, -1444681467);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 2], 9, -51403784);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 7], 14, 1735328473);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 12], 20, -1926607734);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 5], 4, -378558);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 8], 11, -2022574463);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 11], 16, 1839030562);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 14], 23, -35309556);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 1], 4, -1530992060);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 4], 11, 1272893353);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 7], 16, -155497632);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 10], 23, -1094730640);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 13], 4, 681279174);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 0], 11, -358537222);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 3], 16, -722521979);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 6], 23, 76029189);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 9], 4, -640364487);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 12], 11, -421815835);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 15], 16, 530742520);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 2], 23, -995338651);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 0], 6, -198630844);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 7], 10, 1126891415);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 14], 15, -1416354905);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 5], 21, -57434055);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 12], 6, 1700485571);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 3], 10, -1894986606);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 10], 15, -1051523);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 1], 21, -2054922799);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 8], 6, 1873313359);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 15], 10, -30611744);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 6], 15, -1560198380);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 13], 21, 1309151649);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 4], 6, -145523070);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 11], 10, -1120210379);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 2], 15, 718787259);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 9], 21, -343485551);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local1 = safe_add(_local1, _local7);
_local5 = _local5 + 16;
}
return(new Array(_local4, _local3, _local2, _local1));
}
static function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
static function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
static function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
static function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
static function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
static function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
static function safe_add(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
static function str2binl(str) {
var _local3 = new Array();
var _local4 = 255;
var _local1 = 0;
while (_local1 < (str.length * 8)) {
_local3[_local1 >> 5] = _local3[_local1 >> 5] | ((str.charCodeAt(_local1 / 8) & _local4) << (_local1 % 32));
_local1 = _local1 + 8;
}
return(_local3);
}
static function binl2hex(binarray) {
var _local4 = new String("");
var _local3 = new String("0123456789abcdef");
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local4);
}
}
Symbol 260 MovieClip [__Packages.JSON] Frame 0
class JSON
{
function JSON () {
}
static function stringify(arg, noquotes) {
var _local3;
var _local2;
var _local6;
var _local1 = "";
var _local4;
var _local8 = typeof(arg);
switch (_local8) {
case "object" :
if (arg) {
if (arg instanceof Array) {
_local2 = 0;
while (_local2 < arg.length) {
_local4 = stringify(arg[_local2]);
if (_local1) {
_local1 = _local1 + ",";
}
_local1 = _local1 + _local4;
_local2++;
}
return(("[" + _local1) + "]");
}
if (typeof(arg.toString) != "undefined") {
for (_local2 in arg) {
_local4 = arg[_local2];
if ((typeof(_local4) != "undefined") && (typeof(_local4) != "function")) {
_local4 = stringify(_local4);
if (_local1) {
_local1 = _local1 + ",";
}
_local1 = _local1 + ((stringify(_local2) + ":") + _local4);
}
}
return(("{" + _local1) + "}");
}
}
return("null");
case "number" :
return((isFinite(arg) ? (String(arg)) : "null"));
case "string" :
_local6 = arg.length;
if (noquotes) {
var _local7 = "";
} else {
var _local7 = "\"";
}
_local1 = _local7;
_local2 = 0;
while (_local2 < _local6) {
_local3 = arg.charAt(_local2);
if (_local3 >= " ") {
if ((_local3 == "\\") || (_local3 == "\"")) {
_local1 = _local1 + "\\";
}
_local1 = _local1 + _local3;
} else {
switch (_local3) {
case "\b" :
_local1 = _local1 + "\\b";
break;
case "\f" :
_local1 = _local1 + "\\f";
break;
case newline :
_local1 = _local1 + "\\n";
break;
case "\r" :
_local1 = _local1 + "\\r";
break;
case "\t" :
_local1 = _local1 + "\\t";
break;
default :
_local3 = _local3.charCodeAt();
_local1 = _local1 + (("\\u00" + Math.floor(_local3 / 16).toString(16)) + (_local3 % 16).toString(16));
}
}
_local2 = _local2 + 1;
}
return(_local1 + _local7);
case "boolean" :
return(String(arg));
}
return("null");
}
static function parse(text) {
var at = 0;
var ch = " ";
var _value;
var _error = function (m) {
throw {name:"JSONError", message:m, at:at - 1, text:text};
};
var _next = function () {
ch = text.charAt(at);
at = at + 1;
return(ch);
};
var _white = function () {
while (ch) {
if (ch <= " ") {
_next();
} else if (ch == "/") {
switch (_next()) {
case "/" :
while ((_next() && (ch != newline)) && (ch != "\r")) {
}
break;
case "*" :
_next();
for(;;){
if (ch) {
if (ch == "*") {
if (_next() == "/") {
_next();
// unexpected jump
}
} else {
_next();
}
} else {
_error("Unterminated comment");
}
};
break;
default :
_error("Syntax error");
}
} else {
return;
}
}
};
var _string = function () {
var _local4;
var _local1 = "";
var _local3;
var _local2;
var _local5 = false;
if (ch == "\"") {
while (_next()) {
if (ch == "\"") {
_next();
return(_local1);
}
if (ch == "\\") {
switch (_next()) {
case "b" :
_local1 = _local1 + "\b";
break;
case "f" :
_local1 = _local1 + "\f";
break;
case "n" :
_local1 = _local1 + newline;
break;
case "r" :
_local1 = _local1 + "\r";
break;
case "t" :
_local1 = _local1 + "\t";
break;
case "u" :
_local2 = 0;
_local4 = 0;
while (_local4 < 4) {
_local3 = parseInt(_next(), 16);
if (!isFinite(_local3)) {
_local5 = true;
break;
}
_local2 = (_local2 * 16) + _local3;
_local4 = _local4 + 1;
}
if (_local5) {
_local5 = false;
break;
}
_local1 = _local1 + String.fromCharCode(_local2);
break;
default :
_local1 = _local1 + ch;
}
} else {
_local1 = _local1 + ch;
}
}
}
_error("Bad string");
};
var _array = function () {
var _local1 = [];
if (ch == "[") {
_next();
_white();
if (ch == "]") {
_next();
return(_local1);
}
while (ch) {
_local1.push(_value());
_white();
if (ch == "]") {
_next();
return(_local1);
}
if (ch != ",") {
break;
}
_next();
_white();
}
}
_error("Bad array");
};
var _object = function () {
var _local2;
var _local1 = {};
if (ch == "{") {
_next();
_white();
if (ch == "}") {
_next();
return(_local1);
}
while (ch) {
_local2 = _string();
_white();
if (ch != ":") {
break;
}
_next();
_local1[_local2] = _value();
_white();
if (ch == "}") {
_next();
return(_local1);
}
if (ch != ",") {
break;
}
_next();
_white();
}
}
_error("Bad object");
};
var _number = function () {
var _local1 = "";
var _local2;
if (ch == "-") {
_local1 = "-";
_next();
}
while ((ch >= "0") && (ch <= "9")) {
_local1 = _local1 + ch;
_next();
}
if (ch == ".") {
_local1 = _local1 + ".";
while ((_next() && (ch >= "0")) && (ch <= "9")) {
_local1 = _local1 + ch;
}
}
_local2 = 1 * _local1;
if (!isFinite(_local2)) {
_error("Bad number");
} else {
return(_local2);
}
};
var _word = function () {
switch (ch) {
case "t" :
if (((_next() == "r") && (_next() == "u")) && (_next() == "e")) {
_next();
return(true);
}
break;
case "f" :
if ((((_next() == "a") && (_next() == "l")) && (_next() == "s")) && (_next() == "e")) {
_next();
return(false);
}
break;
case "n" :
if (!(((_next() == "u") && (_next() == "l")) && (_next() == "l"))) {
break;
}
_next();
return(null);
}
_error("Syntax error");
};
_value = function () {
_white();
switch (ch) {
case "{" :
return(_object());
case "[" :
return(_array());
case "\"" :
return(_string());
case "-" :
return(_number());
}
return((((ch >= "0") && (ch <= "9")) ? (_number()) : (_word())));
};
return(_value());
}
}
Symbol 261 MovieClip [__Packages.com.meychi.ascrypt.RC4] Frame 0
class com.meychi.ascrypt.RC4
{
function RC4 () {
}
static function encrypt(src, key) {
var _local3 = strToChars(src);
var _local1 = strToChars(key);
var _local2 = calculate(_local3, _local1);
return(charsToHex(_local2));
}
static function decrypt(src, key) {
var _local3 = hexToChars(src);
var _local1 = strToChars(key);
var _local2 = calculate(_local3, _local1);
return(charsToStr(_local2));
}
static function initialize(pwd) {
var _local2 = 0;
var _local3;
var _local4 = pwd.length;
var _local1 = 0;
while (_local1 <= 255) {
mykey[_local1] = pwd[_local1 % _local4];
sbox[_local1] = _local1;
_local1++;
}
_local1 = 0;
while (_local1 <= 255) {
_local2 = ((_local2 + sbox[_local1]) + mykey[_local1]) % 256;
_local3 = sbox[_local1];
sbox[_local1] = sbox[_local2];
sbox[_local2] = _local3;
_local1++;
}
}
static function calculate(plaintxt, psw) {
initialize(psw);
var _local1 = 0;
var _local2 = 0;
var _local9 = new Array();
var _local7;
var _local5;
var _local6;
var _local3 = 0;
while (_local3 < plaintxt.length) {
_local1 = (_local1 + 1) % 256;
_local2 = (_local2 + sbox[_local1]) % 256;
_local5 = sbox[_local1];
sbox[_local1] = sbox[_local2];
sbox[_local2] = _local5;
var _local4 = (sbox[_local1] + sbox[_local2]) % 256;
_local7 = sbox[_local4];
_local6 = plaintxt[_local3] ^ _local7;
_local9.push(_local6);
_local3++;
}
return(_local9);
}
static function charsToHex(chars) {
var _local4 = new String("");
var _local3 = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
var _local1 = 0;
while (_local1 < chars.length) {
_local4 = _local4 + (_local3[chars[_local1] >> 4] + _local3[chars[_local1] & 15]);
_local1++;
}
return(_local4);
}
static function hexToChars(hex) {
var _local3 = new Array();
var _local1 = ((hex.substr(0, 2) == "0x") ? 2 : 0);
while (_local1 < hex.length) {
_local3.push(parseInt(hex.substr(_local1, 2), 16));
_local1 = _local1 + 2;
}
return(_local3);
}
static function charsToStr(chars) {
var _local3 = new String("");
var _local1 = 0;
while (_local1 < chars.length) {
_local3 = _local3 + String.fromCharCode(chars[_local1]);
_local1++;
}
return(_local3);
}
static function strToChars(str) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < str.length) {
_local3.push(str.charCodeAt(_local1));
_local1++;
}
return(_local3);
}
static var sbox = new Array(255);
static var mykey = new Array(255);
}
Symbol 8 Button
on (release) {
_root.players = 1;
nextFrame();
}
Symbol 11 Button
on (release) {
_root.players = 2;
nextFrame();
}
Symbol 13 Button
on (release) {
resolution++;
if (resolution == 1) {
res = "640 x 480";
} else if (resolution == 2) {
res = "480 x 360";
} else if (resolution == 3) {
res = "320 x 240";
} else {
resolution = 1;
res = "640 x 480";
}
}
Symbol 22 Button
on (release) {
_root.level++;
if (_root.level > levz) {
_root.level = 1;
}
}
Symbol 23 Button
on (release) {
_root.level--;
if (_root.level < 1) {
_root.level = levz;
}
}
Symbol 24 Button
on (release) {
scr.play();
}
Symbol 31 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 2
stop();
Symbol 33 Button
on (release) {
getURL ("http://www.psychogoldfish.com/scores/game/Radioactive_Snakes_from_Mars", "_blank");
}
Symbol 36 Button
on (release) {
getURL ("http://www.psychogoldfish.com", "_blank");
}
Symbol 40 Button
on (release) {
nextFrame();
}
Symbol 48 Button
on (release) {
mycol = new Color(this);
_root.player[_root.setup].fill[_parent.id] = mycol.getTransform();
}
Symbol 51 MovieClip Frame 1
id = _name.substring(1, 2);
nme = "color " + id;
if (_root.setup == 1) {
mycol = new Color(d1);
} else {
mycol = new Color(a1);
}
_root.player[_root.setup].fill[id] = mycol.getTransform();
Symbol 51 MovieClip Frame 2
newfill = new Color(sample);
newfill.setTransform(_parent.player[_root.setup].fill[id]);
Symbol 51 MovieClip Frame 3
if (_parent.player[_root.setup].colors >= id) {
gotoAndPlay (2);
} else {
gotoAndPlay (4);
}
Symbol 51 MovieClip Frame 5
if (_parent.player[_root.setup].colors >= id) {
gotoAndPlay (2);
} else {
gotoAndPlay (4);
}
Symbol 65 Button
on (release) {
_root.player[setup].colors = 1;
}
Symbol 66 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[setup].colors = 2;
} else {
share.play();
}
}
Symbol 67 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[setup].colors = 3;
} else {
share.play();
}
}
Symbol 68 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[setup].colors = 4;
} else {
share.play();
}
}
Symbol 69 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[setup].colors = 5;
} else {
share.play();
}
}
Symbol 70 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[setup].colors = 6;
} else {
share.play();
}
}
Symbol 71 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 6;
mycol1 = new Color(p1.y1);
mycol2 = new Color(p1.y1);
mycol3 = new Color(p1.c1);
mycol4 = new Color(p1.a1);
mycol5 = new Color(p1.a1);
mycol6 = new Color(p1.c1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 72 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 6;
mycol1 = new Color(p1.a1);
mycol2 = new Color(p1.a1);
mycol3 = new Color(p1.u1);
mycol4 = new Color(p1.h1);
mycol5 = new Color(p1.h1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 73 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 5;
mycol1 = new Color(p1.a1);
mycol2 = new Color(p1.a1);
mycol3 = new Color(p1.y1);
mycol4 = new Color(p1.u1);
mycol5 = new Color(p1.y1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 74 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 2;
mycol1 = new Color(p1.p1);
mycol2 = new Color(p1.o1);
mycol3 = new Color(p1.u1);
mycol4 = new Color(p1.u1);
mycol5 = new Color(p1.u1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 75 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 3;
mycol1 = new Color(p1.p1);
mycol2 = new Color(p1.n1);
mycol3 = new Color(p1.y1);
mycol4 = new Color(p1.u1);
mycol5 = new Color(p1.u1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 76 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 3;
mycol1 = new Color(p1.y1);
mycol2 = new Color(p1.y1);
mycol3 = new Color(p1.o1);
mycol4 = new Color(p1.u1);
mycol5 = new Color(p1.u1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 77 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 4;
mycol1 = new Color(p1.d1);
mycol2 = new Color(p1.q1);
mycol3 = new Color(p1.e1);
mycol4 = new Color(p1.q1);
mycol5 = new Color(p1.u1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 78 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 3;
mycol1 = new Color(p1.y1);
mycol2 = new Color(p1.y1);
mycol3 = new Color(p1.l1);
mycol4 = new Color(p1.u1);
mycol5 = new Color(p1.u1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 79 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 4;
mycol1 = new Color(p1.y1);
mycol2 = new Color(p1.x1);
mycol3 = new Color(p1.u1);
mycol4 = new Color(p1.v1);
mycol5 = new Color(p1.u1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 80 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 4;
mycol1 = new Color(p1.a1);
mycol2 = new Color(p1.c1);
mycol3 = new Color(p1.d1);
mycol4 = new Color(p1.h1);
mycol5 = new Color(p1.u1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 81 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 4;
mycol1 = new Color(p1.h1);
mycol2 = new Color(p1.u1);
mycol3 = new Color(p1.a1);
mycol4 = new Color(p1.u1);
mycol5 = new Color(p1.u1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 82 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 6;
mycol1 = new Color(p1.a1);
mycol2 = new Color(p1.a1);
mycol3 = new Color(p1.b1);
mycol4 = new Color(p1.b1);
mycol5 = new Color(p1.c1);
mycol6 = new Color(p1.c1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 83 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 5;
mycol1 = new Color(p1.s1);
mycol2 = new Color(p1.s1);
mycol3 = new Color(p1.t1);
mycol4 = new Color(p1.u1);
mycol5 = new Color(p1.t1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 84 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 2;
mycol1 = new Color(p1.y1);
mycol2 = new Color(p1.c1);
mycol3 = new Color(p1.u1);
mycol4 = new Color(p1.u1);
mycol5 = new Color(p1.u1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 85 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 3;
mycol1 = new Color(p1.h1);
mycol2 = new Color(p1.a1);
mycol3 = new Color(p1.u1);
mycol4 = new Color(p1.u1);
mycol5 = new Color(p1.u1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 86 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 6;
mycol1 = new Color(p1.a1);
mycol2 = new Color(p1.a1);
mycol3 = new Color(p1.a1);
mycol4 = new Color(p1.u1);
mycol5 = new Color(p1.u1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 91 MovieClip Frame 1
if ((_root.players > 1) and (_root.setup == 1)) {
_parent.dbut.text = "NEXT PLAYER >>";
} else {
_parent.dbut.text = "START GAME";
}
gotoAndStop(_root.setup);
Symbol 118 MovieClip Frame 1
if (_root.players == 1) {
stop();
} else {
gotoAndStop (2);
}
Symbol 128 MovieClip Frame 1
id = _name.substring(4, 5);
if (int(id) > _root.players) {
nextFrame();
}
stop();
Symbol 137 MovieClip Frame 1
if ((_rotation < 91) and (_rotation > 89)) {
ym = 2;
} else if (_rotation < 0) {
ym = -1;
} else if (_rotation > 0) {
ym = 1;
} else {
ym = 0;
}
r = _rotation;
_root.wall.push({clip:_name, x:_x, y:_y, w:_width, h:_height, ym:ym});
if (ym == 2) {
ym = 1;
}
_rotation = 0;
_parent.walls++;
_parent.corner.duplicateMovieClip("c1" + _parent.walls, _parent.walls + 100);
_parent["c1" + _parent.walls]._x = _x;
_parent["c1" + _parent.walls]._y = _y;
_parent["c1" + _parent.walls]._rotation = r;
_parent.corner.duplicateMovieClip("c2" + _parent.walls, _parent.walls + 200);
_parent.wall.duplicateMovieClip("w" + _parent.walls, _parent.walls + 300);
_parent["w" + _parent.walls]._x = _x;
_parent["w" + _parent.walls]._y = _y;
_parent["w" + _parent.walls]._width = _width;
_parent["w" + _parent.walls]._rotation = r;
_rotation = r;
_parent["c2" + _parent.walls]._x = _x + _width;
_parent["c2" + _parent.walls]._y = _y + (_height * ym);
_parent["c2" + _parent.walls]._rotation = r;
Symbol 172 MovieClip Frame 1
level = _root.level;
if ((_root.gooddomain != 1) and (level > 5)) {
_root.gotoAndStop(20);
}
smod = 0;
lmod = 0;
_root.wall = new Array();
walls = 0;
while (level > _root.levz) {
level = level - _root.levz;
smod++;
lmod = lmod + 2;
}
trace(level);
gotoAndStop(level + 1);
Symbol 172 MovieClip Frame 2
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 4;
orb = new Array();
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(2);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(2);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(5);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(5);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
_parent.orbs = orb.length;
Symbol 172 MovieClip Frame 3
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 2;
orb = new Array();
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(2);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(5);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(2);
orb.push(3);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
_parent.orbs = orb.length;
Symbol 172 MovieClip Frame 4
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 1;
orb = new Array();
orb.push(1);
orb.push(1);
orb.push(2);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
_parent.orbs = orb.length;
Symbol 172 MovieClip Frame 5
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 3;
orb = new Array();
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
_parent.orbs = orb.length;
Symbol 172 MovieClip Frame 6
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 4;
orb = new Array();
orb.push(1);
orb.push(2);
orb.push(3);
orb.push(4);
orb.push(1);
orb.push(2);
orb.push(3);
orb.push(1);
orb.push(2);
orb.push(3);
orb.push(5);
orb.push(1);
orb.push(2);
orb.push(3);
orb.push(1);
orb.push(2);
orb.push(3);
orb.push(4);
orb.push(4);
orb.push(5);
_parent.orbs = orb.length;
Symbol 172 MovieClip Frame 7
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 1;
orb = new Array();
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(2);
orb.push(1);
orb.push(5);
orb.push(1);
orb.push(2);
orb.push(1);
orb.push(1);
orb.push(1);
_parent.orbs = orb.length;
Symbol 172 MovieClip Frame 8
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 2;
orb = new Array();
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
_parent.orbs = orb.length;
Symbol 172 MovieClip Frame 9
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 2;
orb = new Array();
orb.push(3);
orb.push(5);
orb.push(3);
orb.push(5);
orb.push(3);
orb.push(5);
orb.push(3);
orb.push(5);
orb.push(3);
_parent.orbs = orb.length;
Symbol 172 MovieClip Frame 10
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 4;
orb = new Array();
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(3);
orb.push(2);
orb.push(1);
orb.push(4);
orb.push(5);
orb.push(2);
orb.push(1);
orb.push(3);
orb.push(1);
orb.push(4);
orb.push(1);
orb.push(1);
orb.push(5);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(2);
orb.push(3);
orb.push(4);
orb.push(1);
orb.push(2);
orb.push(1);
orb.push(5);
orb.push(3);
orb.push(4);
orb.push(1);
orb.push(1);
orb.push(5);
_parent.orbs = orb.length;
Symbol 172 MovieClip Frame 11
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 3;
orb = new Array();
orb.push(1);
orb.push(2);
orb.push(3);
orb.push(5);
orb.push(1);
orb.push(2);
orb.push(3);
orb.push(5);
orb.push(1);
orb.push(2);
orb.push(3);
orb.push(5);
orb.push(1);
orb.push(2);
orb.push(3);
orb.push(5);
_parent.orbs = orb.length;
Symbol 172 MovieClip Frame 12
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 1;
orb = new Array();
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(3);
orb.push(1);
orb.push(1);
orb.push(1);
_parent.orbs = orb.length;
Symbol 172 MovieClip Frame 13
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 2;
orb = new Array();
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(4);
orb.push(1);
orb.push(5);
orb.push(2);
orb.push(2);
orb.push(1);
orb.push(1);
orb.push(1);
_parent.orbs = orb.length;
Symbol 172 MovieClip Frame 14
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 4;
orb = new Array();
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
_parent.orbs = orb.length;
Symbol 172 MovieClip Frame 15
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 4;
orb = new Array();
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(5);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(5);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(5);
orb.push(3);
orb.push(3);
orb.push(3);
_parent.orbs = orb.length;
Symbol 172 MovieClip Frame 16
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 1;
orb = new Array();
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
_parent.orbs = orb.length;
Symbol 172 MovieClip Frame 17
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 12 + lmod;
_root.snakeSize[2] = 12 + lmod;
_root.snakeSize[3] = 12 + lmod;
_root.snakeSize[4] = 12 + lmod;
multi = 2;
orb = new Array();
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
_parent.orbs = orb.length;
Symbol 172 MovieClip Frame 18
_root.speed = 6 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 12 + lmod;
_root.snakeSize[2] = 12 + lmod;
_root.snakeSize[3] = 12 + lmod;
_root.snakeSize[4] = 12 + lmod;
multi = 2;
orb = new Array();
orb.push(4);
orb.push(4);
orb.push(4);
orb.push(5);
orb.push(4);
orb.push(4);
orb.push(4);
orb.push(5);
orb.push(4);
orb.push(4);
orb.push(4);
orb.push(5);
_parent.orbs = orb.length;
Symbol 172 MovieClip Frame 19
_root.speed = 8 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 12 + lmod;
_root.snakeSize[2] = 12 + lmod;
_root.snakeSize[3] = 12 + lmod;
_root.snakeSize[4] = 12 + lmod;
multi = 1;
orb = new Array();
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
_parent.orbs = orb.length;
Symbol 172 MovieClip Frame 20
_root.speed = 2 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 22 + lmod;
_root.snakeSize[2] = 22 + lmod;
_root.snakeSize[3] = 22 + lmod;
_root.snakeSize[4] = 22 + lmod;
multi = 1;
orb = new Array();
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
_parent.orbs = orb.length;
Symbol 172 MovieClip Frame 21
_root.speed = 6 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 22 + lmod;
_root.snakeSize[2] = 22 + lmod;
_root.snakeSize[3] = 22 + lmod;
_root.snakeSize[4] = 22 + lmod;
multi = 1;
orb = new Array();
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
_parent.orbs = orb.length;
Symbol 175 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 1
id = _name.substring(1, 2);
if (id <= _parent.map.multi) {
if ((_y < 0) and ((_parent.orb + 1) < _parent.orbs)) {
_x = (((random(36) + 1) * 16) + 24);
_y = (((random(24) + 1) * 16) + 56);
w = 0;
while (w < _root.wall.length) {
if (((_x + 24) > _root.wall[w].x) and ((_x - 24) < (_root.wall[w].x + _root.wall[w].w))) {
if (((_root.wall[w].ym == 2) and ((_y + 24) > _root.wall[w].y)) and ((_y - 24) < (_root.wall[w].y + _root.wall[w].h))) {
_y = -99;
} else if (((_root.wall[w].ym < 0) and ((_y - 24) < _root.wall[w].y)) and ((_y + 24) > (_root.wall[w].y - _root.wall[w].h))) {
xds = _x - _root.wall[w].x;
xpr = xds / _root.wall[w].w;
yds = _root.wall[w].y - (_root.wall[w].h * xpr);
if (((_y + 24) > yds) and ((_y - 24) < yds)) {
_y = -99;
} else if (((_root.wall[w].x < 24) and ((_root.wall[w].y - _root.wall[w].h) < 56)) and (_y <= yds)) {
_y = -99;
} else if ((((_root.wall[w].x + _root.wall[w].w) > 616) and (_root.wall[w].y > 456)) and (_y >= yds)) {
_y = -99;
}
} else if (((_root.wall[w].ym > 0) and ((_y + 24) > _root.wall[w].y)) and ((_y - 24) < (_root.wall[w].y + _root.wall[w].h))) {
xds = _x - _root.wall[w].x;
xpr = xds / _root.wall[w].w;
yds = _root.wall[w].y + (_root.wall[w].h * xpr);
if (((_y + 24) > yds) and ((_y - 24) < yds)) {
_y = -99;
} else if (((_root.wall[w].x < 24) and ((_root.wall[w].y + _root.wall[w].h) > 456)) and (_y >= yds)) {
_y = -99;
} else if ((((_root.wall[w].x + _root.wall[w].w) > 616) and ((_root.wall[w].y - _root.wall[w].h) < 56)) and (_y <= yds)) {
_y = -99;
}
} else if (((_y + 24) > _root.wall[w].y) and ((_y - 24) < _root.wall[w].y)) {
_y = -99;
}
}
w++;
}
if (_y > 0) {
_parent.orb++;
food.gotoAndStop(_parent.map.orb[_parent.orb]);
if (food._currentframe == 2) {
points = 350;
} else if (food._currentframe == 3) {
points = 150;
} else if (food._currentframe == 4) {
points = 500;
} else if (food._currentframe == 5) {
points = 100;
} else {
points = 250;
}
gotoAndPlay (3);
}
} else if (_y > 0) {
p = 1;
while (p <= _root.players) {
if (((_root.player[p].ball[1].x + 12) > _x) and ((_root.player[p].ball[1].x - 12) < _x)) {
if (((_root.player[p].ball[1].y + 12) > _y) and ((_root.player[p].ball[1].y - 12) < _y)) {
if ((food._currentframe == 2) and (_root.player[p].speed < 10)) {
if (_root.player[p].speed < 8) {
_root.player[p].speed = 8;
} else if (_root.player[p].speed < 14) {
_root.player[p].speed = _root.player[p].speed + 2;
}
} else if ((food._currentframe == 3) and (_root.player[p].speed > 2)) {
if (_root.player[p].speed > 4) {
_root.player[p].speed = 4;
} else if (_root.player[p].speed > 2) {
_root.player[p].speed = _root.player[p].speed - 2;
}
} else if (food._currentframe == 4) {
if (_root.players == 1) {
_root.player[p].inverted = 1;
} else {
ipn = 1;
while (ipn <= _root.players) {
if (ipn != p) {
_root.player[ipn].inverted = 1;
}
ipn++;
}
}
} else if (food._currentframe == 5) {
_root.player[p].inverted = 0;
_root.player[p].speed = _root.speed;
}
pt = 1;
while (pt <= 2) {
_root.player[p].ball[_root.player[p].ball.length] = new Object();
_root.player[p].ball[_root.player[p].ball.length - 1].step = new Array();
_root.player[p].ball[_root.player[p].ball.length - 1].x = _root.player[p].ball[_root.player[p].ball.length - 2].x;
_root.player[p].ball[_root.player[p].ball.length - 1].y = _root.player[p].ball[_root.player[p].ball.length - 2].y;
_root.player[p].ball[_root.player[p].ball.length - 1].dir = _root.player[p].ball[_root.player[p].ball.length - 2].dir;
_root.player[p].ball[_root.player[p].ball.length - 1].speed = _root.player[p].ball[_root.player[p].ball.length - 2].speed;
_root.player[p].ball[_root.player[p].ball.length - 1].delay = _root.player[p].ball[_root.player[p].ball.length - 2].delay + 16;
_root.player[p].ball[_root.player[p].ball.length - 1].clip = (("p" + p) + "b") + (_root.player[p].ball.length - 1);
_parent[(("p" + p) + "b") + (_root.player[p].ball.length - 1)]._x = _root.player[p].ball[_root.player[p].ball.length - 1].x;
_parent[(("p" + p) + "b") + (_root.player[p].ball.length - 1)]._y = _root.player[p].ball[_root.player[p].ball.length - 1].y;
_parent.pl = p;
tellTarget (_parent) {
depth++;
duplicateMovieClip ("snakeParts", (("p" + pl) + "b") + (_root.player[pl].ball.length - 1), 100 + depth);
};
paint = new Color(_parent[(("p" + p) + "b") + (_root.player[p].ball.length - 1)]);
paint.setTransform(_root.player[p].fill[_root.player[p].cstep]);
_root.player[p].cstep++;
if (_root.player[p].cstep > _root.player[p].colors) {
_root.player[p].cstep = 1;
}
_root.player[p].life = _root.player[p].life + 120;
if (_root.player[p].life > 72) {
_root.player[p].life = 720;
}
pt++;
}
_parent.onorb++;
_y = -99;
if (_root.players == 1) {
_root.player[1].score = _root.player[1].score + points;
} else {
_root.player[p].vspoints++;
}
if (_parent.onorb >= _parent.orbs) {
_parent.stop();
_root.clock = 0;
_root.readygo.play();
}
if (food._currentframe == 4) {
gotoAndPlay (25);
} else {
gotoAndPlay (20);
}
}
}
p++;
}
}
} else {
stop();
}
Symbol 181 MovieClip Frame 2
gotoAndPlay (1);
Symbol 181 MovieClip Frame 17
gotoAndPlay (1);
Symbol 181 MovieClip Frame 24
gotoAndPlay (1);
Symbol 181 MovieClip Frame 29
gotoAndPlay (1);
Symbol 183 MovieClip Frame 1
_root.clock = 0;
_root.readygo.gotoAndPlay(1);
_parent.pause.gotoAndStop(1);
map.wall._y = -999;
map.corner._y = -999;
snakeParts._y = -999;
Instance of Symbol 172 MovieClip "map" in Symbol 183 MovieClip Frame 1
onClipEvent (keyDown) {
if (Key.getCode() == 80) {
if ((_parent._currentframe > 35) and (_parent._currentframe < 42)) {
if (!pausekey) {
toggleHighQuality();
if (_parent.ispaused) {
trace("not paused");
_parent.ispaused = false;
_root.clock = 1;
_parent._parent.pauser.gotoAndStop(1);
_parent.play();
} else {
trace("paused");
_parent.ispaused = true;
_root.clock = 0;
_parent._parent.pauser.gotoAndStop(2);
_parent.stop();
}
}
}
pausekey = true;
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 80) {
pausekey = false;
}
}
Symbol 183 MovieClip Frame 2
depth = 0;
player = 1;
while (player <= _root.players) {
_root.player[player].speed = _root.speed;
_root.player[player].vspoints = 0;
_root.player[player].life = 720;
_root.player[player].oldspeed = _root.speed;
_root.player[player].ball = new Array();
i = 1;
while (i <= _root.snakeSize[player]) {
_root.player[player].ball[i] = new Object();
_root.player[player].ball[i].step = new Array();
_root.player[player].ball[i].delay = 0;
if (this.map["door" + player]._y < 48) {
_root.player[player].ball[i].dir = 0;
xm = 0;
ym = 16;
} else if (this.map["door" + player]._y > 464) {
_root.player[player].ball[i].dir = 6;
xm = 0;
ym = -16;
} else if (this.map["door" + player]._x < 16) {
_root.player[player].ball[i].dir = 9;
xm = 16;
ym = 0;
} else {
_root.player[player].ball[i].dir = 3;
xm = -16;
ym = 0;
}
_root.player[player].ball[i].x = this.map["door" + player]._x - (xm * (i - 2));
_root.player[player].ball[i].y = this.map["door" + player]._y - (ym * (i - 2));
_root.player[player].ball[i].speed = _root.speed;
depth++;
this.snakeParts.duplicateMovieClip((("p" + player) + "b") + i, 100 + depth);
_root.player[player].ball[i].clip = (("p" + player) + "b") + i;
if (i > 1) {
this[_root.player[player].ball[i].clip].gotoAndStop(2);
}
this[_root.player[player].ball[i].clip]._x = _root.player[player].ball[i].x;
this[_root.player[player].ball[i].clip]._y = _root.player[player].ball[i].y;
this[_root.player[player].ball[i].clip]._rotation = _root.player[player].ball[i].dir * 30;
paint = new Color(this[_root.player[player].ball[i].clip]);
paint.setTransform(_root.player[player].fill[_root.player[player].cstep]);
_root.player[player].cstep++;
if (_root.player[player].cstep > _root.player[player].colors) {
_root.player[player].cstep = 1;
}
i++;
}
player++;
}
loop = 0;
wait = 0;
Instance of Symbol 177 MovieClip in Symbol 183 MovieClip Frame 2
onClipEvent (load) {
this.swapDepths(600);
}
Symbol 183 MovieClip Frame 35
frame.play();
onorb = 0;
orb = -1;
trace(_root.wall.length);
Symbol 183 MovieClip Frame 36
if (loop == 2) {
loop = 0;
}
_parent.pause.gotoAndStop(1);
loop++;
_root.clock = 1;
dead = 0;
if ((_root.readygo.tune == "music1") or (_root.readygo.tune == "music2")) {
ltune = "music";
} else {
ltune = _root.readygo.tune;
}
ltune2 = ltune;
ltune = "music";
player = 1;
while (player <= _root.players) {
if (_root.player[player].speed > 0) {
if (_root.player[player].life < 240) {
ltune = "musicfast";
} else if ((_root.player[player].speed > 4) and (ltune != "musicfast")) {
ltune = "musicfaster";
}
if (loop == 2) {
if (player == _root.thisUser) {
if ((Key.isDown(37) and (_root.player[player].inverted != 1)) or (Key.isDown(39) and (_root.player[player].inverted == 1))) {
_root.player[_root.thisUser].ball[1].dir--;
if (_root.player[_root.thisUser].ball[1].dir < 0) {
_root.player[_root.thisUser].ball[1].dir = 11;
}
} else if ((Key.isDown(39) and (_root.player[player].inverted != 1)) or (Key.isDown(37) and (_root.player[player].inverted == 1))) {
_root.player[_root.thisUser].ball[1].dir++;
if (_root.player[_root.thisUser].ball[1].dir > 11) {
_root.player[_root.thisUser].ball[1].dir = 0;
}
}
} else if (player == _root.nextUser) {
if ((Key.isDown(65) and (_root.player[player].inverted != 1)) or (Key.isDown(83) and (_root.player[player].inverted == 1))) {
_root.player[_root.nextUser].ball[1].dir--;
if (_root.player[_root.nextUser].ball[1].dir < 0) {
_root.player[_root.nextUser].ball[1].dir = 11;
}
} else if ((Key.isDown(83) and (_root.player[player].inverted != 1)) or (Key.isDown(65) and (_root.player[player].inverted == 1))) {
_root.player[_root.nextUser].ball[1].dir++;
if (_root.player[_root.nextUser].ball[1].dir > 11) {
_root.player[_root.nextUser].ball[1].dir = 0;
}
}
} else if (wait < 45) {
wait++;
} else {
_root.player[player].ball[1].dir--;
if (_root.player[player].ball[1].dir < 0) {
_root.player[player].ball[1].dir = 11;
}
wait = wait - 3;
}
}
i = 1;
while (i < _root.player[player].ball.length) {
hp = 1;
while (hp <= _root.players) {
if ((hp != player) or (i > 2)) {
if (_root.player[hp].speed > 0) {
xxd = _root.player[player].ball[i].x - _root.player[hp].ball[1].x;
xxd = xxd * xxd;
if (xxd <= 196) {
yyd = _root.player[player].ball[i].y - _root.player[hp].ball[1].y;
yyd = yyd * yyd;
if (yyd <= 196) {
xyd = Math.sqrt(yyd + xxd);
if (xyd <= 15) {
_root.player[hp].speed = 0;
if (i == 1) {
_root.player[player].speed = 0;
}
}
}
}
}
}
hp++;
}
if ((i == 1) and (_root.player[player].speed > 0)) {
w = 0;
while (w < _root.wall.length) {
if (((_root.player[player].ball[i].x + 12) > _root.wall[w].x) and ((_root.player[player].ball[i].x - 12) < (_root.wall[w].x + _root.wall[w].w))) {
if (((_root.wall[w].ym == 2) and ((_root.player[player].ball[i].y + 12) > _root.wall[w].y)) and ((_root.player[player].ball[i].y - 12) < (_root.wall[w].y + _root.wall[w].h))) {
_root.player[player].speed = 0;
} else if (((_root.wall[w].ym < 0) and ((_root.player[player].ball[i].y - 12) < _root.wall[w].y)) and ((_root.player[player].ball[i].y + 12) > (_root.wall[w].y - _root.wall[w].h))) {
xds = _root.player[player].ball[i].x - _root.wall[w].x;
xpr = xds / _root.wall[w].w;
yds = _root.wall[w].y - (_root.wall[w].h * xpr);
if (((_root.player[player].ball[i].y + 12) > yds) and ((_root.player[player].ball[i].y - 12) < yds)) {
_root.player[player].speed = 0;
}
} else if (((_root.wall[w].ym > 0) and ((_root.player[player].ball[i].y + 12) > _root.wall[w].y)) and ((_root.player[player].ball[i].y - 12) < (_root.wall[w].y + _root.wall[w].h))) {
xds = _root.player[player].ball[i].x - _root.wall[w].x;
xpr = xds / _root.wall[w].w;
yds = _root.wall[w].y + (_root.wall[w].h * xpr);
if (((_root.player[player].ball[i].y + 12) > yds) and ((_root.player[player].ball[i].y - 12) < yds)) {
_root.player[player].speed = 0;
}
} else if (((_root.player[player].ball[i].y + 12) > _root.wall[w].y) and ((_root.player[player].ball[i].y - 12) < _root.wall[w].y)) {
_root.player[player].speed = 0;
}
}
w++;
}
if (_root.player[player].ball[i].x < 22) {
_root.player[player].speed = 0;
} else if (_root.player[player].ball[i].x > 618) {
_root.player[player].speed = 0;
} else if (_root.player[player].ball[i].y < 54) {
_root.player[player].speed = 0;
} else if (_root.player[player].ball[i].y > 458) {
_root.player[player].speed = 0;
}
}
if (i == 1) {
ball = 1;
} else if (i == (_root.player[player].ball.length - 1)) {
ball = 3;
} else {
ball = 2;
}
this[_root.player[player].ball[i].clip].gotoAndStop(ball);
s = 0;
while (s < _root.player[player].speed) {
if (i == 1) {
if ((_root.player[player].oldspeed != _root.player[player].speed) or (_root.player[player].olddir != _root.player[player].ball[i].dir)) {
_root.player[player].ball[i].speed = _root.player[player].speed;
_root.player[player].ball[i + 1].step.push({x:_root.player[player].ball[i].x, y:_root.player[player].ball[i].y, dir:_root.player[player].ball[i].dir, speed:_root.player[player].ball[i].speed});
}
_root.player[player].oldspeed = _root.player[player].speed;
_root.player[player].olddir = _root.player[player].ball[i].dir;
} else if ((_root.player[player].ball[i].x == _root.player[player].ball[i].step[0].x) and (_root.player[player].ball[i].y == _root.player[player].ball[i].step[0].y)) {
_root.player[player].ball[i].dir = _root.player[player].ball[i].step[0].dir;
_root.player[player].ball[i].speed = _root.player[player].ball[i].step[0].speed;
_root.player[player].ball[i].step.shift();
_root.player[player].ball[i + 1].step.push({x:_root.player[player].ball[i].x, y:_root.player[player].ball[i].y, dir:_root.player[player].ball[i].dir, speed:_root.player[player].ball[i].speed});
}
if (_root.player[player].ball[i].dir == 0) {
xm = 0;
ym = 4;
} else if (_root.player[player].ball[i].dir == 1) {
xm = -2;
ym = 3.5;
} else if (_root.player[player].ball[i].dir == 2) {
xm = -3.5;
ym = 2;
} else if (_root.player[player].ball[i].dir == 3) {
xm = -4;
ym = 0;
} else if (_root.player[player].ball[i].dir == 4) {
xm = -3.5;
ym = -2;
} else if (_root.player[player].ball[i].dir == 5) {
xm = -2;
ym = -3.5;
} else if (_root.player[player].ball[i].dir == 6) {
xm = 0;
ym = -4;
} else if (_root.player[player].ball[i].dir == 7) {
xm = 2;
ym = -3.5;
} else if (_root.player[player].ball[i].dir == 8) {
xm = 3.5;
ym = -2;
} else if (_root.player[player].ball[i].dir == 9) {
xm = 4;
ym = 0;
} else if (_root.player[player].ball[i].dir == 10) {
xm = 3.5;
ym = 2;
} else if (_root.player[player].ball[i].dir == 11) {
xm = 2;
ym = 3.5;
}
if (_root.player[player].ball[i].delay > 0) {
_root.player[player].ball[i].delay = _root.player[player].ball[i].delay - 2;
} else {
_root.player[player].ball[i].y = _root.player[player].ball[i].y + ((ym / 4) * 2);
_root.player[player].ball[i].x = _root.player[player].ball[i].x + ((xm / 4) * 2);
}
s = s + 2;
}
this[_root.player[player].ball[i].clip]._x = _root.player[player].ball[i].x;
this[_root.player[player].ball[i].clip]._y = _root.player[player].ball[i].y;
this[_root.player[player].ball[i].clip]._rotation = _root.player[player].ball[i].dir * 30;
i++;
}
} else if (_root.player[player].ball.length > 0) {
this[_root.player[player].ball[1].clip].gotoAndStop(4);
removeMovieClip(_root.player[player].ball[0].clip);
_root.player[player].ball.shift();
if (_root.players > 1) {
_root.player[player].vspoints = -1;
}
if (playdead != 1) {
_root.readygo.gotoAndPlay("dead");
playdead = 1;
}
} else {
_root.player[player].lives--;
if (_root.players > 1) {
_root.level++;
}
_root.clock = 0;
stop();
}
player++;
}
if (ltune != ltune2) {
if (ltune == "music") {
ltune = "music1";
}
_root.readygo.tune = ltune;
_root.readygo.Music.stop();
_root.readygo.Music.attachSound(ltune);
_root.readygo.Music.start();
}
_root.txt = (orbs - onorb) + " pills remaining";
Symbol 183 MovieClip Frame 37
gotoAndPlay(_currentframe - 1);
Symbol 183 MovieClip Frame 40
_root.clock = 0;
_parent.pause.gotoAndStop(2);
Symbol 183 MovieClip Frame 41
gotoAndPlay (40);
Symbol 190 MovieClip Frame 1
id = _name.substring(1, 2);
if (id > _root.players) {
_y = -999;
stop();
} else {
ltxt = ("Player " + id) + " Life:";
if (_root.players == 1) {
if (_root.player[id].lives < 0) {
lives = "Game Over";
} else {
lives = "Lives: " + _root.player[id].lives;
}
score = "Score: " + _root.player[id].score;
} else {
if (_root.player[id].vspoints < 0) {
score = "Dead...";
} else {
score = "Pills: " + _root.player[id].vspoints;
}
lives = "Wins: " + _root.player[id].score;
}
live = (_root.player[id].life / 720) * 100;
if (live > 100) {
live = 100;
}
life._width = live;
if ((_root.clock == 1) and (_root.player[id].life > 0)) {
_root.player[id].life = _root.player[id].life - 2;
} else if ((_root.clock == 1) and (_root.player[id].speed > 0)) {
_root.player[id].speed = 0;
}
}
Symbol 190 MovieClip Frame 2
gotoAndPlay (1);
Symbol 199 MovieClip Frame 1
gotoAndStop(random(5) + 1);
Symbol 206 MovieClip Frame 1
gotoAndStop(random(6) + 1);
Symbol 208 MovieClip Frame 1
stopAllSounds();
_root.player[1].speed = 4;
_root.player[2].speed = 4;
if (players == 1) {
_root.player[2].life = 720;
}
Symbol 208 MovieClip Frame 4
Music = new Sound();
Music.attachSound("music1");
tune = "music1";
Music.start();
Music.onSoundComplete = function () {
if (tune == "music1") {
tune = "music2";
} else if (tune == "music2") {
tune = "music1";
}
Music.attachSound(tune);
Music.start();
};
Symbol 208 MovieClip Frame 35
toggleHighQuality();
Symbol 208 MovieClip Frame 61
stop();
Symbol 208 MovieClip Frame 62
_root.level++;
_root.clock = 0;
toggleHighQuality();
Music.stop();
Symbol 208 MovieClip Frame 125
_parent.play();
stop();
Symbol 208 MovieClip Frame 126
toggleHighQuality();
Music.stop();
Symbol 208 MovieClip Frame 175
_parent.play();
Symbol 225 Button
on (release) {
toggleHighQuality();
_parent.game.gotoAndPlay(36);
}
Symbol 226 Button
on (release) {
_root.gotoAndPlay(1);
}
Symbol 228 MovieClip Frame 1
stop();
Symbol 244 Button
on (release) {
gotoAndPlay (1);
}
Symbol 248 Button
on (release) {
if ((score2 and (myname.length > 1)) and (!scoreSent)) {
myScore = new saveScore("Radioactive_Snakes_from_Mars", "654321PENISPENISPENISPENIS123456");
myScore.submit(myname, score2);
scoreSent = true;
}
}
Symbol 250 Button
on (release) {
if (_root.gooddomain != 1) {
_root.share.play();
} else {
_root.player[1].lives = 4;
_root.player[1].score = 0;
gotoAndPlay (6);
}
}