Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
fscommand ("showMenu", "false");
Stage.showMenu = false;
var MochiAd = {showPreloaderAd:function (options) {
var DEFAULTS = {clip:_root, ad_msec:11000, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:2493952, background:16777215, outline:2493952};
options = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = options.ad_msec;
delete options.ad_msec;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
return(null);
}
clip.stop();
var mc = clip._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var wh = MochiAd._getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = w * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
bar._x = 10;
bar._y = h - 20;
var bar_color = options.color;
delete options.color;
var bar_background = options.background;
delete options.background;
var bar_outline = options.outline;
delete options.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(w - 20, 0);
backing.lineTo(w - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var inside = bar.createEmptyMovieClip("_inside", 2);
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo(w - 20, 0);
inside.lineTo(w - 20, 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(w - 20, 0);
outline.lineTo(w - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var p = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (p > 0) {
this._parent._alpha = p;
} else {
var _clip = this._parent._parent;
MochiAd.unload(_clip);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _chk = this.mc._mochiad_wait;
_chk.server_control = true;
_chk.started = getTimer();
_chk.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _clip = this._parent._parent;
var ad_clip = this._parent._mochiad_ctr;
var elapsed = (getTimer() - this.started);
var finished = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var clip_pcnt = ((100 * clip_loaded) / clip_total);
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = this._mochiad_bar._inside;
var pcnt = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt));
pcnt = Math.max(this.last_pcnt, pcnt);
this.last_pcnt = pcnt;
_inside._xscale = pcnt;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
finished = true;
}
}
if (elapsed > chk.ad_msec) {
finished = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (finished)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}, showTimedAd:function (options) {
var DEFAULTS = {clip:_root, ad_msec:11000, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd"};
options = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = options.ad_msec;
delete options.ad_msec;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
return(null);
}
clip.stop();
var mc = clip._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var wh = MochiAd._getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var p = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (p > 0) {
this._parent._alpha = p;
} else {
var _clip = this._parent._parent;
MochiAd.unload(_clip);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _chk = this.mc._mochiad_wait;
_chk.server_control = true;
_chk.started = getTimer();
_chk.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var ad_clip = this._parent._mochiad_ctr;
var elapsed = (getTimer() - this.started);
var finished = false;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
finished = true;
}
}
if (elapsed > chk.ad_msec) {
finished = true;
}
if (finished) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}, load:function (options) {
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = MochiAd._parseOptions(options, DEFAULTS);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = "1.3";
var clip = options.clip;
if (!MochiAd._isNetworkAvailable()) {
return(false);
}
if (clip._mochiad_loaded) {
return(false);
}
var depth = options.depth;
delete options.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = MochiAd._getRes(options);
options.res = (wh[0] + "x") + wh[1];
options.server = options.server + options.id;
delete options.id;
clip._mochiad_loaded = true;
var lv = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in options) {
lv[k] = options[k];
}
if (clip._url.indexOf("http") != 0) {
options.no_page = true;
}
var server = lv.server;
delete lv.server;
var hostname = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(hostname);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(hostname);
}
}
mc.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var lc = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
lc.mc = mc;
lc.name = name;
lc.hostname = hostname;
lc.allowDomain = function (d) {
return(true);
};
lc.allowInsecureDomain = lc.allowDomain;
lc.connect(name);
mc.lc = lc;
lv.lc = name;
lv.st = getTimer();
lv.loadMovie(server + ".swf", "POST");
return(mc);
}, unload:function (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);
}, _isNetworkAvailable:function () {
if (System.security) {
var o = System.security;
if (o.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}, _getRes:function (options) {
var b = options.clip.getBounds();
var w = 0;
var h = 0;
if (typeof(options.res) != "undefined") {
var xy = options.res.split("x");
w = parseFloat(xy[0]);
h = parseFloat(xy[1]);
} else {
w = b.xMax - b.xMin;
h = b.yMax - b.yMin;
}
if ((w == 0) || (h == 0)) {
w = Stage.width;
h = Stage.height;
}
return([w, h]);
}, _parseOptions:function (options, defaults) {
var optcopy = {};
for (var k in defaults) {
optcopy[k] = defaults[k];
}
if (options) {
for (var k in options) {
optcopy[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var i = 0;
while (i < pairs.length) {
var kv = pairs[i].split("=");
optcopy[unescape(kv[0])] = unescape(kv[1]);
i++;
}
}
return(optcopy);
}};
MochiAd.showPreloaderAd({id:"b817d7d064ac8f9d", res:"640x480"});
__com_mochibot__("5cf183b1", this, 10301, true);
__com_mochibot__("44be7590", this, 10301, true);
Frame 2
stop();
Frame 3
function changeSoundValue() {
this.elapsedTime = getTimer() - this.lastTimerCheck;
this.fadeAmount = this.elapsedTime * this.changePerMs;
this.fadeAmount = ((this.fadeDir == "decrease") ? (this.fadeAmount * -1) : (this.fadeAmount));
this.newVal = Math.round(this.getSoundControlValue() + this.fadeAmount);
if (((this.fadeDir == "increase") && (this.newVal >= this.endVal)) || ((this.fadeDir == "decrease") && (this.newVal <= this.endVal))) {
this.newVal = this.endVal;
}
this.lastTimerCheck = getTimer();
this.setSoundControlValue(this.newVal);
this.onFadeChange(this.newVal);
if (this.newVal == this.endVal) {
if (this.reverseFade) {
this.setFadeParams(this.endVal, this.startVal, this.fadeTime);
} else {
if (this.stopSound) {
this.stop();
if (this.soundControl == "volume") {
this.setVolume(this.startVal);
}
}
this.onFadeComplete();
_root[this.mcname].removeMovieClip();
}
}
}
function attachFaderClip() {
mcLinkageID = "soundfader";
var d = 9999;
while (typeof(_root[mcLinkageID + d]) == "movieclip") {
d--;
}
this.mcname = mcLinkageID + d;
if (!_root.createEmptyMovieClip) {
_root.attachMovie(mcLinkageID, mcLinkageID + d, d);
_root[mcLinkageID + d].so = this;
} else {
_root.createEmptyMovieClip(mcLinkageID + d, d);
_root[mcLinkageID + d].so = this;
_root[mcLinkageID + d].onEnterFrame = function () {
if (!_root[mcLinkageID + d].so.isFadePaused) {
_root[mcLinkageID + d].so.changeSoundValue();
}
};
}
}
function fadeTo(endval, time) {
this.soundControl = ((arguments[2] == null) ? "volume" : (arguments[2].toLowerCase()));
if (this.soundControl == "pan") {
startval = this.getPan();
} else if (this.soundControl == "volume") {
startval = this.getVolume();
} else {
return(undefined);
}
this.stopSound = false;
this.reverseFade = false;
this.setFadeParams(startval, endval, time);
this.attachFaderClip();
}
function fadeToStop(endval, time) {
this.soundControl = ((arguments[2] == null) ? "volume" : (arguments[2].toLowerCase()));
if (this.soundControl == "pan") {
startval = this.getPan();
} else if (this.soundControl == "volume") {
startval = this.getVolume();
} else {
return(undefined);
}
this.stopSound = true;
this.reverseFade = false;
this.setFadeParams(startval, endval, time);
this.attachFaderClip();
}
function getFadeType() {
return(this.soundControl);
}
function oscillateFade(endval, time) {
this.soundControl = ((arguments[2] == null) ? "volume" : (arguments[2].toLowerCase()));
if (this.soundControl == "pan") {
startval = this.getPan();
} else if (this.soundControl == "volume") {
startval = this.getVolume();
} else {
return(undefined);
}
this.stopSound = false;
this.reverseFade = true;
time = Math.round(time / 2);
this.setFadeParams(startval, endval, time);
this.attachFaderClip();
}
function setFadeParams(sv, ev, t) {
this.startVal = parseFloat(sv);
this.endVal = parseFloat(ev);
this.fadeTime = t;
this.fadeDir = ((this.startVal > this.endVal) ? "decrease" : "increase");
this.changePerMs = Math.abs(this.startVal - this.endVal) / this.fadeTime;
this.lastTimerCheck = getTimer();
if (this.soundControl == "pan") {
this.getSoundControlValue = this.getPan;
this.setSoundControlValue = this.setPan;
} else {
this.getSoundControlValue = this.getVolume;
this.setSoundControlValue = this.setVolume;
}
}
function setFadeState(state) {
if (state == "pause") {
_root[this.mcname].stop();
this.isFadePaused = true;
} else if (state == "resume") {
this.lastTimerCheck = getTimer();
_root[this.mcname].play();
this.isFadePaused = false;
} else if (state == "stop") {
_root[this.mcname].removeMovieClip();
this.isFadePaused = false;
} else {
return(undefined);
}
}
function gameoverFade_killMusic() {
_root.end.fadeToStop(0, 4000);
}
_global.LVLS = 19;
_global.STAGE_H = 480;
_global.STAGE_W = 640;
sliderInt_H = (STAGE_H - 40) / LVLS;
var lvl = 1;
var SQUARE_SIZE;
var grid = [];
var history = [];
var months = ["Jan", "Feb", "March", "April", "May", "June", "July", "Aug", "Sept", "Oct", "Nov", "Dec"];
var timedMode = false;
colours = [];
var i = 0;
while (i < 13) {
colours[i] = i + 1;
i++;
}
go = new Sound();
go.attachSound("go");
error = new Sound();
error.attachSound("error");
end = new Sound();
end.attachSound("end");
createEmptyMovieClip("obs", 100);
obDepth = 100;
level1 = new Object();
level1.gridAmount = 3;
level1.colourAmount = 3;
level1.obTypes = [1, 2, 1];
level1.time = 10000;
level2 = new Object();
level2.gridAmount = 4;
level2.colourAmount = 4;
level2.obTypes = [1, 1, 2, 4, 1];
level2.time = 8000;
level3 = new Object();
level3.gridAmount = 4;
level3.colourAmount = 4;
level3.obTypes = [1, 4, 1, 1, 1, 4, 1];
level3.time = 8000;
level4 = new Object();
level4.gridAmount = 5;
level4.colourAmount = 5;
level4.obTypes = [1, 1, 2, 1, 2, 2, 1, 4];
level4.time = 10000;
level5 = new Object();
level5.gridAmount = 5;
level5.colourAmount = 5;
level5.obTypes = [4, 1, 1, 4, 1, 1, 4, 1, 1, 4];
level5.specials = ["rotate", null, null, null, null, null];
level5.time = 16000;
level6 = new Object();
level6.gridAmount = 5;
level6.colourAmount = 6;
level6.obTypes = [1, 2, 1, 2, 4, 1, 1, 2, 4, 1, 2];
level6.specials = [null, "fadeInOut", null, "rotate", null];
level6.time = 20000;
level7 = new Object();
level7.gridAmount = 6;
level7.colourAmount = 7;
level7.obTypes = [1, 1, 2, 2, 4, 1, 2, 1, 4, 1, 2, 1];
level7.specials = [null, null, null, "rotate", null, "rotate", null];
level7.time = 20000;
level8 = new Object();
level8.gridAmount = 6;
level8.colourAmount = 7;
level8.obTypes = [1, 2, 1, 1, 4, 1, 2, 1, 4, 1, 2, 1, 1];
level8.specials = [null, "rotate", "fadeInOut", null, null, "fadeColours"];
level8.time = 25000;
level9 = new Object();
level9.gridAmount = 6;
level9.colourAmount = 8;
level9.obTypes = [2, 1, 4, 1, 2, 4, 2, 1, 2, 1, 1, 2, 1, 2, 2];
level9.specials = [null, "rotate", "rotate", null, null, "rotate", null, "rotate", "rotate"];
level9.time = 20000;
level10 = new Object();
level10.gridAmount = 7;
level10.colourAmount = 8;
level10.obTypes = [1, 2, 1, 1, 4, 11, 2, 1, 1, 2, 1, 4, 1, 2, 1];
level10.specials = [null, null, null, "rotate", "fadeInOut", "fadeInOut", null, "rotate"];
level10.time = 28000;
level11 = new Object();
level11.gridAmount = 7;
level11.colourAmount = 9;
level11.obTypes = [1, 2, 1, 1, 4, 1, 2, 1, 4, 1, 2, 1, 2, 4, 1, 4, 2];
level11.time = 25000;
level12 = new Object();
level12.gridAmount = 7;
level12.colourAmount = 9;
level12.obTypes = [1, 2, 1, 2, 1, 4, 1, 4, 1, 2, 4, 2, 1, 2, 1, 1, 2, 1];
level12.specials = [null, "fadeInOut", null, "fadeInOut", null, "fadeColours", null, null, "fadeInOut"];
level12.time = 28000;
level13 = new Object();
level13.gridAmount = 7;
level13.colourAmount = 9;
level13.obTypes = [1, 4, 1, 1, 1, 1, 1, 1, 2, 1, 4, 1, 4, 1, 2, 4, 2, 1, 2, 1, 1, 2, 1];
level13.specials = [null.null.null.null, "rotate", null, "fadeInOut", null, null, null, "fadeInOut"];
level13.time = 30000;
level14 = new Object();
level14.gridAmount = 8;
level14.colourAmount = 10;
level14.obTypes = [1, 2, 4, 1, 2, 4, 2, 1, 1, 2, 1, 4, 1, 2, 1, 2, 1, 2, 1, 2];
level14.specials = ["fadeInOut", null, null, "fadeInOut", "fadeColours", "rotate", null.null, "fadeInOut"];
level14.time = 40000;
level15 = new Object();
level15.gridAmount = 8;
level15.colourAmount = 10;
level15.obTypes = [1, 2, 4, 4, 1, 2, 1, 2, 4, 1, 4, 1, 2, 1, 2, 4, 2, 1, 2, 4];
level15.specials = [null, "fadeColours", null, null, "fadeColours", "fadeColours"];
level15.time = 40000;
level16 = new Object();
level16.gridAmount = 8;
level16.colourAmount = 11;
level16.obTypes = [1, 2, 4, 2, 4, 1, 2, 4, 2, 1, 2, 1, 2, 2, 4, 2, 4, 2, 2, 4, 2, 2];
level16.specials = ["fadeInOut", null, null, "fadeInOut", "fadeColours", "rotate", null.null, "fadeInOut"];
level16.time = 40000;
level17 = new Object();
level17.gridAmount = 9;
level17.colourAmount = 11;
level17.obTypes = [2, 2, 4, 2, 2, 1, 2, 2, 4, 2, 2, 4, 2, 1, 4, 2, 1, 4, 2, 2, 1, 1, 2];
level17.specials = [null, null, null, null, null, null, "fadeInOut", null, null, "fadeInOut", "fadeColours", "rotate", null.null, "fadeInOut"];
level17.time = 30000;
level18 = new Object();
level18.gridAmount = 9;
level18.colourAmount = 12;
level18.obTypes = [2, 1, 2, 4, 2, 1, 2, 4, 2, 1, 2, 4, 2, 1, 2, 4, 1, 1, 4, 2, 1, 2, 1, 2, 1, 2];
level18.specials = [null, null, "fadeInOut", null, null, "fadeInOut", null, "fadeColours", "rotate", null.null, "fadeInOut"];
level18.time = 40000;
level19 = new Object();
level19.gridAmount = 9;
level19.colourAmount = 12;
level19.obTypes = [4, 2, 4, 2, 1, 2, 4, 2, 2, 1, 4, 1, 2, 4, 1, 2, 4, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 4, 2, 1, 1, 2, 1, 2, 2, 2, 1];
level19.specials = [];
level19.time = 50000;
level20 = new Object();
level20.gridAmount = 10;
level20.colourAmount = 13;
level20.obTypes = [2, 2, 1, 2, 1, 2, 1, 4, 4, 1, 2, 4, 2, 4, 1, 1, 4, 2, 2, 1, 1, 2, 1, 1, 2, 4, 2, 2, 2, 4, 2, 2, 1, 1, 1, 1, 4, 2, 4, 2, 1, 2, 4, 2, 1, 2, 1, 4];
level20.specials = ["fadeInOut", "rotate", null, null, null, "fadeColours", null, null, "fadeColours", null, null, null, "fadeColours", null, "fadeInOut", null, null, null, "rotate", null, null, "rotate", null, "fadeInOut", "fadeInOut", "rotate", null, null, null, "fadeColours", null, null, null, null, null, null, null, null, "fadeInOut", null, null, null, "rotate", null, null, "rotate", null, "fadeInOut"];
level20.time = 60000;
Sound.prototype.fadeTo = fadeTo;
Sound.prototype.fadeToStop = fadeToStop;
Sound.prototype.getFadeType = getFadeType;
Sound.prototype.onFadeChange = null;
Sound.prototype.onFadeComplete = null;
Sound.prototype.oscillateFade = oscillateFade;
Sound.prototype.setFadeParams = setFadeParams;
Sound.prototype.setFadeState = setFadeState;
Sound.prototype.changeSoundValue = changeSoundValue;
Sound.prototype.attachFaderClip = attachFaderClip;
Frame 4
function create(lvlNum, timed) {
_root.lvl = lvlNum;
_root.onMouseUp = null;
_root.onMouseUp = gameMouseUp;
gotoAndStop (5);
lvlTxt = "Level: " + lvlNum;
restart();
attachMovie("selectRing", "selectRing", 201);
selectRing._x = (selectRing._y = 1000);
var level = this["level" + lvlNum];
if (level == undefined) {
return(undefined);
}
if (level.time > 0) {
if (timed) {
clock.startTimer(-1, level.time);
} else {
clock.startTimer(1);
}
} else {
clock.startTimer(1);
}
_root.timedMode = timed;
var gridAmount = level.gridAmount;
SQUARE_SIZE = STAGE_H / gridAmount;
selectRing._width = (selectRing._height = SQUARE_SIZE);
var numObs = level.obTypes.length;
grid = new Array();
i = 0;
while (i < (gridAmount + 1)) {
grid.push([]);
j = 0;
while (j < (gridAmount + 1)) {
grid[i].push(0);
if ((j == gridAmount) or (i == gridAmount)) {
grid[i][j] = 1;
}
j++;
}
i++;
}
var order = level.obTypes;
var coloursTemp = colours.concat();
while (coloursTemp.length > level.colourAmount) {
coloursTemp.pop();
}
coloursTemp.sort(arrayRandomizer);
var colourCount = 0;
posArray = [];
var a = 0;
while (a < gridAmount) {
var b = 0;
while (b < gridAmount) {
posArray.push([a, b]);
b++;
}
a++;
}
posArray.sort(arrayRandomizer);
var obCount = 0;
var whileCount = 0;
while (obCount < numObs) {
if (whileCount == posArray.length) {
trace("Function restart #" + (functionAbortCount++));
if (functionAbortCount >= 5) {
functionAbortCount = 0;
this["level" + lvlNum].gridAmount++;
trace("Hacked level");
}
create(lvlNum, timedMode);
return(undefined);
}
var x = posArray[whileCount][0];
var y = posArray[whileCount][1];
whileCount++;
if (grid[y][x] != 1) {
var name = (("ob" + x) + y);
obs.attachMovie("ob", name, obDepth++);
if (((grid[y + 1][x] != 1) and (grid[y][x + 1] != 1)) and (grid[y + 1][x + 1] != 1)) {
if (((((grid[y][x + 2] != 1) and (grid[y + 1][x + 2] != 1)) and (grid[y + 2][x + 2] != 1)) and (grid[y + 2][x + 1] != 1)) and (grid[y + 2][x] != 1)) {
grid[y][x] = (grid[y + 1][x] = (grid[y][x + 1] = (grid[y + 1][x + 1] = 1)));
grid[y][x + 2] = (grid[y + 1][x + 2] = (grid[y + 2][x + 2] = (grid[y + 2][x + 1] = (grid[y + 2][x] = 1))));
} else {
var newSQUARE_SIZE = (SQUARE_SIZE * 2);
grid[y][x] = (grid[y + 1][x] = (grid[y][x + 1] = (grid[y + 1][x + 1] = 1)));
}
} else {
var newSQUARE_SIZE = SQUARE_SIZE;
grid[y][x] = 1;
}
obs[name]._width = (obs[name]._height = newSQUARE_SIZE);
obs[name]._x = x * SQUARE_SIZE;
obs[name]._y = y * SQUARE_SIZE;
obs[name].colours = [];
if (level.specials[obCount] != null) {
obs[name].onEnterFrame = this["special_" + level.specials[obCount]];
}
var c1;
var c2;
var c3;
var c4;
switch (order[obCount]) {
case 1 :
c1 = (c2 = (c3 = (c4 = coloursTemp[colourCount])));
obs[name].colours[0] = c1;
break;
case 2 :
c1 = (c2 = coloursTemp[colourCount]);
if (level.coloursRandom) {
colourCount = random(coloursTemp.length);
} else {
colourCount++;
}
if (colourCount == coloursTemp.length) {
colourCount = 0;
}
c3 = (c4 = coloursTemp[colourCount]);
obs[name].colours[0] = c1;
obs[name].colours[1] = c3;
break;
case 4 :
c1 = coloursTemp[colourCount];
colourCount++;
if (colourCount == coloursTemp.length) {
colourCount = 0;
}
c2 = coloursTemp[colourCount];
c3 = coloursTemp[random(coloursTemp.length)];
c4 = coloursTemp[random(coloursTemp.length)];
obs[name].colours[0] = c1;
obs[name].colours[1] = c2;
obs[name].colours[2] = c3;
obs[name].colours[3] = c4;
break;
default :
c1 = (c2 = (c3 = (c4 = coloursTemp[colourCount])));
obs[name].colours[0] = c1;
}
prevOb = obs[name];
obs[name].c1.gotoAndStop(c1);
obs[name].c2.gotoAndStop(c2);
obs[name].c3.gotoAndStop(c3);
obs[name].c4.gotoAndStop(c4);
var newRotation = (random(4) * 90);
obs[name].c1._rotation = obs[name].c1._rotation + newRotation;
obs[name].c2._rotation = obs[name].c2._rotation + newRotation;
obs[name].c3._rotation = obs[name].c3._rotation + newRotation;
obs[name].c4._rotation = obs[name].c4._rotation + newRotation;
obCount++;
}
}
}
function arrayRandomizer(a, b) {
var value = ((random(2) == 0) ? -1 : 1);
return(value);
}
function select(ob) {
if (selectedOb == null) {
selectRing._x = ob._x;
selectRing._y = ob._y;
selectRing._width = (selectRing._height = Math.round(ob._width / SQUARE_SIZE) * SQUARE_SIZE);
selectedOb = ob;
addToHistory(selectedOb);
} else if (ob.disabled) {
error.start(0, 0);
} else if (match(selectedOb, ob)) {
selectedOb._alpha = 10;
selectedOb.disabled = true;
selectRing._x = ob._x;
selectRing._y = ob._y;
selectRing._width = (selectRing._height = Math.round(ob._width / SQUARE_SIZE) * SQUARE_SIZE);
selectedOb = ob;
addToHistory(selectedOb);
go.start(0, 0);
} else {
error.start(0, 0);
}
}
function match(ob1, ob2) {
var a = 0;
while (a < ob1.colours.length) {
var b = 0;
while (b < ob2.colours.length) {
if (ob1.colours[a] == ob2.colours[b]) {
return(true);
}
b++;
}
a++;
}
}
function deselect() {
selectedOb = null;
selectRing._x = (selectRing._y = 1000);
for (var i in obs) {
obs[i]._alpha = 100;
obs[i].disabled = false;
}
}
function restart() {
obs.removeMovieClip();
selectedOb = null;
selectRing._x = 1000;
SQUARESIZE = null;
grid = null;
history = [];
lvlStatus.removeMovieClip();
createEmptyMovieClip("obs", 100);
obDepth = 100;
clock.resetTimer();
}
function special_rotate() {
if (this.rotateNum == undefined) {
this.rotateNum = random(16) - 8;
if (this.rotateNum == 0) {
this.rotateNum = 8;
}
}
this.c1._rotation = this.c1._rotation + this.rotateNum;
this.c2._rotation = this.c2._rotation + this.rotateNum;
this.c3._rotation = this.c3._rotation + this.rotateNum;
this.c4._rotation = this.c4._rotation + this.rotateNum;
}
function special_fadeInOut() {
if (this.fadeNum == undefined) {
this.fadeNum = random(100);
this.fadeDir = ((random(2) == 0) ? -1 : 1);
}
if (this.fadeNum >= 100) {
this.fadeDir = -1;
}
if (this.fadeNum <= 0) {
this.fadeDir = 1;
}
this.fadeNum = this.fadeNum + (this.fadeDir * 2);
this.c1._alpha = (this.c2._alpha = (this.c3._alpha = (this.c4._alpha = this.fadeNum)));
}
function special_fadeColours() {
if (this.fadeNum == undefined) {
this.fadeNum = random(100);
this.fadeDir = ((random(2) == 0) ? -1 : 1);
}
if (this.fadeNum >= 100) {
this.fadeDir = -1;
}
if (this.fadeNum <= 0) {
this.fadeDir = 1;
}
this.fadeNum = this.fadeNum + (this.fadeDir * 2);
this.c1._alpha = (this.c2._alpha = (this.c3._alpha = (this.c4._alpha = this.fadeNum)));
if (this.fadeNum == 0) {
if (this.currentColour == 1) {
this.currentColour = 0;
} else {
this.currentColour = 1;
}
col = this.colours[this.currentColour];
this.c1.gotoAndStop(col);
this.c2.gotoAndStop(col);
this.c3.gotoAndStop(col);
this.c4.gotoAndStop(col);
}
}
function saveProgress() {
if (lvl == "Custom") {
return(undefined);
}
var m = (timedMode ? 1 : 0);
if (completion[m][lvl - 1] == 1) {
return(undefined);
}
completion[m][lvl - 1] = 1;
so = SharedObject.getlocal("colourConnectSaveGame");
so.data.completion = completion;
}
function addToHistory(ob) {
history.push(ob);
}
function undo() {
var ob = history.pop();
ob.disabled = false;
var newOb = history[history.length - 1];
selectRing._x = newOb._x;
selectRing._y = newOb._y;
selectRing._width = (selectRing._height = newOb._width);
selectedOb = newOb;
newOb._alpha = 100;
if (history.length <= 0) {
selectRing._x = 1000;
selectedOb = null;
}
}
function submitName(name) {
varsOut = new LoadVars();
varsIn = new LoadVars();
varsOut.mode = (timedMode ? "timed" : "normal");
varsOut.name = name;
var time = new Date();
varsOut.time = (((months[time.getMonth()] + " ") + time.getDate()) + ", ") + time.getFullYear();
varsOut.sendAndLoad("http://skylogic.ca/flash/CC/addName.php", varsIn, "POST");
}
sliderGhost._y = ((lvl - 1) * sliderInt_H) + 20;
if (((lvl == "Custom") or (!((lvl > 0) and (lvl <= 20)))) or (lvl == NaN)) {
lvl = 1;
sliderGhost._y = ((lvl - 1) * sliderInt_H) + 20;
}
lvlTxt = (slider.lvlTxt = lvl);
openEditorBtn._visible = false;
noobGuide._visible = false;
if (completion == null) {
so = SharedObject.getlocal("colourConnectSaveGame");
if (so.data.completion != null) {
var completion = so.data.completion;
if (so.data.sentName != null) {
var sentName = so.data.sentName;
} else {
var sentName = [0, 0];
}
} else {
var completion = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
var sentName = [0, 0];
noobGuide._visible = true;
}
}
var z = true;
var zz = true;
var i = 0;
while (i < 20) {
if (completion[0][i] == 0) {
z = false;
}
if (completion[1][i] == 0) {
zz = false;
}
i++;
}
if (z or zz) {
_root.editorUnlocked = true;
_root.openEditorBtn._visible = true;
}
delete z;
delete zz;
createEmptyMovieClip("lvlStatus", 2);
var i = 0;
while (i < completion[0].length) {
if (completion[0][i] == 1) {
lvlStatus.attachMovie("starIcon", "n" + i, i);
lvlStatus["n" + i]._y = (i * sliderInt_H) + sliderBar._y;
lvlStatus["n" + i]._x = 485;
}
i++;
}
var i = 0;
while (i < completion[1].length) {
if (completion[1][i] == 1) {
lvlStatus.attachMovie("timeIcon", "t" + i, i + 100);
lvlStatus["t" + i]._y = (i * sliderInt_H) + sliderBar._y;
lvlStatus["t" + i]._x = 510;
}
i++;
}
this.onMouseDown = function () {
if ((_xmouse >= (sliderBar._x - 30)) and (_xmouse <= (sliderBar._x + 38))) {
_root.slider.onEnterFrame = function () {
this._y = _ymouse;
this.y = Math.round((this._y - 20) / _root.sliderInt_H);
_root.sliderGhost._y = (this.y * _root.sliderInt_H) + 20;
if (_ymouse < 20) {
this._y = (_root.sliderGhost._y = 20);
this.y = 0;
} else if (_ymouse > (STAGE_H - 20)) {
this._y = (_root.sliderGhost._y = STAGE_H - 20);
this.y = LVLS;
}
_root.lvlTxt = (slider.lvlTxt = this.y + 1);
};
}
};
onMouseUp = function () {
_root.slider.onEnterFrame = null;
_root.slider._y = 10000;
_root.lvl = slider.y + 1;
};
openEditorBtn.onRelease = function () {
gotoAndStop (6);
};
outline._y = selectNormalBtn._y - 4;
outline._x = (timedMode ? (selectTimedBtn._x - 4) : (selectNormalBtn._x - 4));
selectNormalBtn.onPress = function () {
outline._x = selectNormalBtn._x - 4;
timedMode = false;
};
selectTimedBtn.onPress = function () {
outline._x = selectTimedBtn._x - 4;
timedMode = true;
};
startBtn.onRelease = function () {
attachMovie("fade", "fade", 202);
lvl = Math.round((sliderGhost._y - 20) / _root.sliderInt_H) + 1;
functionAbortCount = 0;
create(lvl, timedMode);
};
timeUp = function () {
attachMovie("fadeTime", "fadeTime", 202);
_root.onMouseUp = function () {
_root.onMouseUp = null;
_root.fadeTime.gotoAndPlay("end");
create(lvl, true);
};
return(undefined);
};
gameMouseUp = function () {
if (_xmouse <= 480) {
for (var a in obs) {
var ob = obs[a];
if ((((ob._xmouse < 76.8) and (ob._ymouse < 76.8)) and (ob._xmouse > 0)) and (ob._ymouse > 0)) {
if (ob != selectedOb) {
select(ob);
}
}
}
}
var success = 2;
for (var v in obs) {
if (!obs[v].disabled) {
success--;
}
}
if (success == 1) {
saveProgress();
var gameComplete = true;
var m = (timedMode ? 1 : 0);
var i = 0;
while (i < 20) {
if (completion[m][i] == 0) {
gameComplete = false;
}
i++;
}
if (gameComplete) {
attachMovie("fadeGameComplete", "fadeGameComplete", 202);
fadeGameComplete.timeTxt = clock.getAndFreezeTime();
_root.onMouseUp = function () {
_root.onMouseUp = null;
restart();
_root.gotoAndStop("menu");
_root.fadeGameComplete.gotoAndPlay("end");
_root.attachMovie("submitName_window", "submitName_window", 1248);
_root.submitName_window.m = m;
};
_root.editorUnlocked = true;
return(undefined);
}
delete gameComplete;
if (_root.lvl == "Custom") {
attachMovie("fadeEnd", "fadeEnd", 202);
fadeEnd.timeTxt = clock.getAndFreezeTime();
_root.onMouseUp = function () {
_root.onMouseUp = null;
restart();
gotoAndStop (6);
_root.fadeEnd.gotoAndPlay("end");
};
return(undefined);
}
attachMovie("fadeEnd", "fadeEnd", 202);
fadeEnd.timeTxt = clock.getAndFreezeTime();
if (_root.lvl == 20) {
_root.onMouseUp = function () {
_root.onMouseUp = null;
restart();
_root.gotoAndStop("menu");
_root.fadeEnd.gotoAndPlay("end");
};
} else {
_root.lvl++;
_root.onMouseUp = function () {
_root.fadeEnd.gotoAndPlay("end");
_root.onMouseUp = null;
create(lvl, timedMode);
};
}
}
};
if (cdiscs != null) {
levelCustom = new Object();
levelCustom.obTypes = [];
cdiscs = cdiscs.toString();
var o = 0;
while (o < cdiscs.length) {
levelCustom.obTypes.push(Number(cdiscs.charAt(o)));
o++;
}
if (cgrid != null) {
levelCustom.gridAmount = Number(cgrid);
} else {
levelCustom.gridAmount = Math.ceil(Math.sqrt(levelCustom.obTypes.length)) + 1;
}
if (ccol != null) {
levelCustom.colourAmount = Number(ccol);
} else {
levelCustom.colourAmount = 13;
}
if (ctime != null) {
levelCustom.time = Number(ctime);
} else {
levelCustom.time = 0;
}
delete cdiscs;
delete ccol;
delete ctime;
delete cgrid;
attachMovie("fade", "fade", 202);
functionAbortCount = 0;
create("Custom", true);
}
stop();
Frame 5
stop();
Frame 6
function changeColourAmount() {
_root.levelCustom.colourAmount = colourAmount_comp.getValue();
keyL.onKeyUp();
}
function editorAddOb(obType) {
discsArray_txt = discsArray_txt + obType.toString();
keyL.onKeyUp();
}
function changeAutoSize() {
autoSize = autoSize_comp.getValue();
gridBlack._visible = (autoSize ? 70 : 0);
if (autoSize) {
keyL.onKeyUp();
}
}
function updateURL() {
var discs = discsArray_txt;
if (gridSize_in < 10) {
var grid = ("0" + gridSize_in.toString());
} else {
var grid = gridSize_in.toString();
}
if (levelCustom.colourAmount < 10) {
var colours = ("0" + levelCustom.colourAmount.toString());
} else {
var colours = levelCustom.colourAmount.toString();
}
var time = levelCustom.time.toString();
var url = "http://skylogic.ca/flash/CC/ColourConnect.php";
url_txt = url + "?col=";
url_txt = url_txt + colours;
url_txt = url_txt + "&grid=";
url_txt = url_txt + grid;
url_txt = url_txt + "&discs=";
url_txt = url_txt + discs;
url_txt = url_txt + "&time=";
url_txt = url_txt + time;
}
restart();
discsArray_txt = "";
if (levelCustom == undefined) {
levelCustom = new Object();
levelCustom.gridAmount = 2;
levelCustom.colourAmount = 1;
levelCustom.obTypes = [];
levelCustom.time = 0;
var gridSize_in = 2;
var autoSize = true;
} else {
gridSize_in = levelCustom.gridAmount;
var i = 0;
while (i < levelCustom.obTypes.length) {
discsArray_txt = discsArray_txt + levelCustom.obTypes[i];
i++;
}
colourAmount_comp.setSelectedIndex(levelCustom.colourAmount - 1);
autoSize_comp.setValue(autoSize);
time_in = levelCustom.time / 1000;
}
keyL = new Object();
keyL.onKeyUp = function () {
delete levelCustom.obTypes;
levelCustom.obTypes = new Array();
var i = 0;
while (i < discsArray_txt.length) {
var char = discsArray_txt.charAt(i);
if (char == 1) {
levelCustom.obTypes.push(1);
} else if (char == 2) {
levelCustom.obTypes.push(2);
} else if (char == 4) {
levelCustom.obTypes.push(4);
}
i++;
}
if (!autoSize) {
levelCustom.gridAmount = gridSize_in;
} else {
levelCustom.gridAmount = (gridSize_in = Math.ceil(Math.sqrt(levelCustom.obTypes.length)) + 1);
}
levelCustom.time = Math.floor(time_in) * 1000;
updateURL();
};
Key.addListener(keyL);
editorStartBtn.onRelease = function () {
if ((levelCustom.gridAmount * levelCustom.gridAmount) >= levelCustom.obTypes.length) {
attachMovie("fade", "fade", 202);
functionAbortCount = 0;
create("Custom", true);
} else {
gridSizeError._visible = true;
}
};
menuBtn.onRelease = function () {
gotoAndStop (4);
};
clearBtn.onRelease = function () {
delete levelCustom;
levelCustom = new Object();
levelCustom.gridAmount = 2;
levelCustom.colourAmount = 1;
levelCustom.obTypes = [];
levelCustom.time = 0;
var gridSize_in = 2;
var autoSize = true;
discsArray_txt = "";
gridSize_in = "2";
time_in = 0;
urlTxt = "";
colourAmount_comp.setSelectedIndex(0);
autoSize_comp.setValue(true);
};
Instance of Symbol 306 MovieClip "gridSizeError" in Frame 6
onClipEvent (load) {
this._visible = false;
}
Symbol 21 MovieClip Frame 1
this._xscale = (this._yscale = this._yscale + (random(20) - 10));
gotoAndPlay(random(20));
Symbol 21 MovieClip Frame 21
gotoAndPlay (2);
Symbol 38 Button
on (release) {
this.play();
}
Symbol 45 MovieClip [creditsMenu] Frame 25
stop();
Symbol 45 MovieClip [creditsMenu] Frame 45
this.removeMovieClip();
Symbol 47 MovieClip [Timer] Frame 1
#initclip 1
function MDtimerClass() {
this.startTime = 0;
this.countDir = 1;
this.timeLength = 0;
this.timeUsed = 0;
this.timeUp = function () {
var timeDiff = (getTimer() - _root.clock.startTime);
_root.clock.timeUsed = timeDiff;
timeDiff = timeDiff.toString();
var ms = timeDiff.substr(-3, 2);
var s = timeDiff.substr(0, -3);
if (s == "") {
s = "0";
}
s = Number(s);
if (s > 60) {
var m = Math.floor(s / 60);
s = s % 60;
if (s < 10) {
s = "0" + s;
}
_root.clock.timeTxt = (((m + ":") + s) + ":") + ms;
} else {
_root.clock.timeTxt = (s + ":") + ms;
}
};
this.timeDown = function () {
var currentTime = (getTimer() - _root.clock.startTime);
var timeDiff = (_root.clock.timeLength - currentTime);
_root.clock.timeUsed = timeDiff;
timeDiff = timeDiff.toString();
var ms = timeDiff.substr(-3, 2);
var s = timeDiff.substr(0, -3);
if (s < 10) {
s = "0" + s;
} else if (s == "") {
s = "00";
}
s = Number(s);
if (s > 60) {
var m = Math.floor(s / 60);
s = s % 60;
if (s < 10) {
s = "0" + s;
}
_root.clock.timeTxt = (((m + ":") + s) + ":") + ms;
} else {
_root.clock.timeTxt = (s + ":") + ms;
}
if (timeDiff <= 0) {
clearInterval(_root.clock.timerInterval);
_root.clock.timeTxt = "00:00";
_root.clock.timeUsed = 0;
_root.timeUp();
}
};
}
MDtimerClass.prototype = new MovieClip();
MDtimerClass.prototype.startTimer = function (_countDir, _timeLength) {
if (_timeLength != null) {
timeTxt = _timeLength;
this.timeLength = _timeLength;
} else {
this.timeTxt = "00:00";
}
this.startTime = getTimer();
this.countDir = _countDir;
var whichFunction = ((this.countDir == 1) ? "timeUp" : "timeDown");
this.timerInterval = setInterval(this[whichFunction], 10);
};
MDtimerClass.prototype.getAndFreezeTime = function () {
clearInterval(this.timerInterval);
if (this.countDir == -1) {
var timeDiff = (this.timeLength - this.timeUsed);
} else {
var timeDiff = this.timeUsed;
}
timeDiff = timeDiff.toString();
var ms = timeDiff.substr(-3, 2);
var s = timeDiff.substr(0, -3);
if (s == "") {
s = "0";
}
s = Number(s);
if (s > 60) {
var m = Math.floor(s / 60);
s = (s % 60) / 60;
s = s * 100;
s = Math.round(s);
return(((m + ".") + s) + " min.");
}
return(((s + ".") + ms) + " sec.");
};
MDtimerClass.prototype.resetTimer = function () {
clearInterval(this.timerInterval);
this.startTime = 0;
this.countDir = 1;
this.timeLength = 0;
this.timeUsed = 0;
this.timeTxt = "";
};
Object.registerClass("Timer", MDTimerClass);
#endinitclip
Symbol 58 MovieClip Frame 15
stop();
Symbol 59 Button
on (release) {
if ((nameInput != "") and (nameInput != null)) {
_root.submitName(nameInput);
_root.sentName[m] = 1;
so = SharedObject.getlocal("colourConnectSaveGame");
so.data.sentName = _root.sentName;
this.removeMovieClip();
} else {
gotoAndStop (2);
}
}
Symbol 64 MovieClip Frame 15
stop();
Symbol 65 Button
on (release) {
this.removeMovieClip();
}
Symbol 73 MovieClip Frame 15
stop();
Symbol 74 Button
on (release) {
this.removeMovieClip();
}
Symbol 75 MovieClip [submitName_window] Frame 1
stop();
if (_root.sentName[m] == 1) {
gotoAndStop (3);
}
Symbol 80 Button
on (release) {
getURL ("http://www.venusarcade.com/", "_blank");
}
Symbol 121 MovieClip Frame 134
_root.play();
Symbol 130 MovieClip [fade] Frame 8
stop();
this.removeMovieClip();
Symbol 148 MovieClip [fadeGameComplete] Frame 1
_root.end.start(0, 0);
_root.end.setVolume(100);
btn.useHandCursor = false;
Symbol 148 MovieClip [fadeGameComplete] Frame 172
stop();
Symbol 148 MovieClip [fadeGameComplete] Frame 173
_root.gameoverFade_killMusic();
Symbol 148 MovieClip [fadeGameComplete] Frame 192
this.removeMovieClip();
Symbol 155 MovieClip Frame 1
lvlTxt = (isNaN(_root.lvl) ? "" : (" " + (_root.lvl - 1)));
lvlTxt = lvlTxt + " solved -";
Symbol 164 MovieClip [fadeEnd] Frame 51
stop();
Symbol 164 MovieClip [fadeEnd] Frame 56
this.removeMovieClip();
Symbol 175 MovieClip [fadeTime] Frame 51
stop();
Symbol 175 MovieClip [fadeTime] Frame 56
this.removeMovieClip();
Symbol 190 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 1
stop();
Symbol 204 Button
on (release) {
so = SharedObject.getlocal("colourConnectSaveGame");
var i = 0;
while (i < 20) {
completion[0][i] = 0;
completion[1][i] = 0;
i++;
}
delete so.data.completion;
delete so.data.sentName;
so.flush();
completion = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
sentName = [0, 0];
for (var i in lvlStatus) {
lvlStatus[i].removeMovieClip();
}
}
Symbol 209 Button
on (release) {
_root.attachMovie("creditsMenu", "creditsMenu", 12984);
}
Symbol 234 MovieClip Frame 12
stop();
Symbol 241 MovieClip Frame 12
stop();
Symbol 255 Button
on (release) {
getURL ("http://skylogic.ca/flash/CC/completionList.php", "_blank");
}
Symbol 260 Button
on (release) {
getURL ("http://www.venusarcade.com/", "_self");
}
Symbol 263 Button
on (release) {
getURL ("http://www.venusarcade.com/", "_self");
}
Symbol 271 Button
on (release) {
trace(timedMode);
create(lvl, timedMode);
trace(timedMode);
}
Symbol 275 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 1
barH = 380;
c = _root.clock;
this.onEnterFrame = function () {
var p = (c.timeUsed / c.timeLength);
bar._height = p * barH;
bar.gotoAndStop(100 - Math.round(p * 100));
};
Symbol 281 Button
on (release) {
_root.restart();
_root.gotoAndStop("menu");
}
Symbol 283 MovieClip Frame 10
stop();
Symbol 287 MovieClip Frame 10
stop();
Symbol 288 Button
on (release, keyPress "<Space>") {
undo();
}
Symbol 294 Button
on (release) {
_root.editorAddOb(1);
}
Symbol 295 Button
on (release) {
_root.editorAddOb(2);
}
Symbol 296 Button
on (release) {
_root.editorAddOb(4);
}