Frame 1
var MochiAd = {getVersion:function () {
return("2.2");
}, showPreGameAd:function (options) {
var _local1 = this;
var DEFAULTS = {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 = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var _local3 = wh[0];
var h = wh[1];
mc._x = _local3 * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local3 * -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(_local3 - 20, 0);
backing.lineTo(_local3 - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var _local2 = bar.createEmptyMovieClip("_inside", 2);
_local2.beginFill(bar_color);
_local2.moveTo(0, 0);
_local2.lineTo(_local3 - 20, 0);
_local2.lineTo(_local3 - 20, 10);
_local2.lineTo(0, 10);
_local2.lineTo(0, 0);
_local2.endFill();
_local2._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(_local3 - 20, 0);
outline.lineTo(_local3 - 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 _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local1 = this;
var _clip = _local1._parent._parent;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local3 = 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 = _local1._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt));
_local2 = Math.max(_local1.last_pcnt, _local2);
_local1.last_pcnt = _local2;
_inside._xscale = _local2;
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) {
_local3 = true;
}
}
if (elapsed > chk.ad_msec) {
_local3 = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (_local3)) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = chk.fadeFunction;
}
}
};
}
}, showInterLevelAd:function (options) {
var _local1 = this;
var DEFAULTS = {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 = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
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 _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local1 = this;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local2 = false;
if (!chk.showing) {
var _local3 = ad_clip.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
_local2 = true;
}
}
if (elapsed > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = _local1.fadeFunction;
}
}
};
}
}, showTimedAd:function (options) {
MochiAd.showInterLevelAd(options);
}, showPreloaderAd:function (options) {
MochiAd.showPreGameAd(options);
}, _allowDomains:function (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);
}, _loadCommunicator:function (options) {
var _local2 = options;
var _local3 = arguments;
var DEFAULTS = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
_local2 = MochiAd._parseOptions(_local2, DEFAULTS);
_local2.swfv = _local2.clip.getSWFVersion() || 6;
_local2.mav = MochiAd.getVersion();
var clip = _local2.clip;
var clipname = ("_mochiad_com_" + _local2.id);
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip[clipname]) {
return(clip[clipname].lc);
}
var server = (_local2.com_server + _local2.id);
MochiAd._allowDomains(server);
delete _local2.id;
delete _local2.com_server;
var depth = _local2.depth;
delete _local2.depth;
var mc = clip.createEmptyMovieClip(clipname, depth);
var lv = mc.createEmptyMovieClip("_mochiad_com", 1);
for (var k in _local2) {
lv[k] = _local2[k];
}
var lc = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
lc.mc = mc;
lc.name = name;
lc.allowDomain = function (d) {
return(true);
};
lc.allowInsecureDomain = lc.allowDomain;
lc.connect(name);
mc.lc = lc;
lv.lc = name;
lc._id = 0;
lc._queue = [];
lc.rpcResult = function (cb_arg) {
var cb = parseInt(cb_arg);
var _local2 = this._callbacks[cb];
if (!_local2) {
} else {
delete this._callbacks[cb];
var _local3 = [];
var _local1 = 2;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
_local1 = 1;
while (_local1 < arguments.length) {
_local3.push(arguments[_local1]);
_local1++;
}
var method = _local2[1];
var obj = _local2[0];
if (obj && (typeof(method) == "string")) {
method = obj[method];
}
if (method) {
method.apply(obj, _local3);
}
}
};
lc._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local3 = this._queue;
delete this._queue;
var ds = this.doSend;
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = _local3[_local1];
ds.apply(this, _local2);
_local1++;
}
};
lc.doSend = function (args, cbobj, cbfn) {
var _local2 = arguments;
if (this._endpoint == null) {
var _local3 = [];
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
this._queue.push(_local3);
} else {
this._id = this._id + 1;
var id = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[id] = [cbobj, cbfn];
var slc = new LocalConnection();
var ss = slc.send(this._endpoint, "rpc", id, args);
}
};
lc._callbacks = {};
lc._callbacks[0] = [lc, "_didConnect"];
lv.st = getTimer();
lv.loadMovie(server + ".swf", "POST");
return(lc);
}, fetchHighScores:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["fetchHighScores", _local2];
_local1.doSend(["fetchHighScores", _local2], callbackObj, callbackMethod);
return(true);
}, sendHighScore:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["sendHighScore", _local2];
_local1.doSend(["sendHighScore", _local2], callbackObj, callbackMethod);
return(true);
}, load:function (options) {
var _local1 = options;
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
_local1 = MochiAd._parseOptions(_local1, DEFAULTS);
_local1.swfv = _local1.clip.getSWFVersion() || 6;
_local1.mav = MochiAd.getVersion();
var clip = _local1.clip;
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip._mochiad_loaded) {
return(null);
}
var depth = _local1.depth;
delete _local1.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = MochiAd._getRes(_local1);
_local1.res = (wh[0] + "x") + wh[1];
_local1.server = _local1.server + _local1.id;
delete _local1.id;
clip._mochiad_loaded = true;
var _local2 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in _local1) {
_local2[k] = _local1[k];
}
var server = _local2.server;
delete _local2.server;
var hostname = MochiAd._allowDomains(server);
mc.onEnterFrame = function () {
var _local1 = this;
if (_local1._mochiad_ctr._url != _local1._url) {
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_local1._mochiad_ctr) {
delete _local1.onEnterFrame;
MochiAd.unload(_local1._parent);
}
};
}
};
var _local3 = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local3.mc = mc;
_local3.name = name;
_local3.hostname = hostname;
_local3.allowDomain = function (d) {
return(true);
};
_local3.allowInsecureDomain = _local3.allowDomain;
_local3.connect(name);
mc.lc = _local3;
_local2.lc = name;
_local2.st = getTimer();
_local2.loadMovie(server + ".swf", "POST");
return(mc);
}, unload:function (clip) {
var _local1 = clip;
if (typeof(_local1) == "undefined") {
_local1 = _root;
}
if (_local1.clip && (_local1.clip._mochiad)) {
_local1 = _local1.clip;
}
if (!_local1._mochiad) {
return(false);
}
_local1._mochiad.removeMovieClip();
delete _local1._mochiad_loaded;
delete _local1._mochiad;
return(true);
}, _isNetworkAvailable:function () {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}, _getRes:function (options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var xy = options.res.split("x");
_local2 = parseFloat(xy[0]);
_local1 = parseFloat(xy[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]);
}, _parseOptions:function (options, defaults) {
var _local3 = {};
for (var k in defaults) {
_local3[k] = defaults[k];
}
if (options) {
for (var k in options) {
_local3[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var _local1 = 0;
while (_local1 < pairs.length) {
var _local2 = pairs[_local1].split("=");
_local3[unescape(_local2[0])] = unescape(_local2[1]);
_local1++;
}
}
if (_local3.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local3);
}, _:null};
MochiAd.showPreGameAd({id:"cf703b6049b1d12b", res:"540x460", background:16777215, color:16747008, outline:13994812, no_bg:true});
Frame 3
_root.percentLoaded = int(this.getBytesLoaded() / (this.getBytesTotal() / 100));
if (_root.percentLoaded == 100) {
loading.gotoAndStop(2);
}
Frame 5
_root.percentLoaded = int(this.getBytesLoaded() / (this.getBytesTotal() / 100));
loading.loadingbar._xscale = 100 - _root.percentLoaded;
if (_root.percentLoaded < 100) {
gotoAndPlay ("loading");
}
loading._alpha == 30;
Frame 15
lv0iojoe = new Array("5555555555", "5555555555", " 5555 ", " 5555 ", " 5555 ", " 5555 ", " 5555 ", " 5555 ", "5555555555", "5555555555");
lv1iojoe = new Array(" 44444444 ", "4444444444", "444 444", "444 444", "444 444", "444 444", "444 444", "444 444", "4444444444", " 44444444 ");
lv2iojoe = new Array("6666666666", "6666666666", " 666 ", " 666 ", " 666 ", " 666 ", " 666 ", "666 666 ", "66666666 ", " 666666 ");
lv3iojoe = new Array(" 55555555 ", "5555555555", "555 555", "555 555", "555 555", "555 555", "555 555", "555 555", "5555555555", " 55555555 ");
lv4iojoe = new Array(" 444444444", "4444444444", "444 ", "444 ", "4444444444", "4444444444", "444 ", "444 ", "4444444444", " 444444444");
lv5iojoe = new Array("5432112345", "4321 1234", "321 123", "21 12", "1 1", "1 1", "21 12", "321 123", "4321 1234", "5432112345");
Frame 19
_root.soundon = true;
createcaption = true;
pointdummy._x = 10000;
tiledummy._x = 10000;
captiondummy._x = 10000;
Frame 20
_root.capcount = 0;
if (createcaption) {
captiondummy.duplicateMovieClip("caption", 20000);
caption._x = 0;
caption._y = 0;
createcaption = false;
}
Frame 21
createcaption = true;
pointdummy._x = 10000;
tiledummy._x = 10000;
captiondummy._x = 10000;
ix = 0;
while (ix < 10) {
iy = 0;
while (iy < 10) {
newtile = (("tilex" + ix) + "y") + iy;
this[newtile].removeMovieClip();
tiledummy.duplicateMovieClip(newtile, (ix * 100) + iy);
this[newtile]._x = (ix * 40) + 50;
this[newtile]._y = (iy * 40) + 50;
iy++;
}
ix++;
}
Frame 22
ix = 0;
while (ix < 10) {
iy = 0;
while (iy < 10) {
newpoint = (("pointx" + ix) + "y") + iy;
this[newpoint].removeMovieClip();
pointdummy.duplicateMovieClip(newpoint, ((ix + 1) * 1000) + iy);
this[newpoint]._x = (ix * 40) + 50;
this[newpoint]._y = (iy * 40) + 50;
this[newpoint].myx = ix;
this[newpoint].myy = iy;
iy++;
}
ix++;
}
gotoAndPlay ("intro");
Frame 30
ig = 0;
_root.shotcount = 0;
caption.gotoAndPlay("startgame");
Frame 31
targetLevel = ("lv" + ig) + "iojoe";
gridData = this[targetLevel];
Frame 32
ix = 0;
while (ix < 10) {
iy = 0;
while (iy < 10) {
targetpoint = (("pointx" + ix) + "y") + iy;
this[targetpoint].gotoAndPlay("go");
iy++;
}
ix++;
}
delay = 25;
Frame 35
delay--;
if (delay > 0) {
gotoAndPlay (34);
}
Frame 36
if (ig < 5) {
ig++;
} else {
ig = 0;
}
gotoAndPlay (31);
Frame 40
clvl0 = new Array(0, 0, 3, 5, 7, 1, 4);
clvl1 = new Array(0, 3, 8, 12, 12, 1, 6);
clvl2 = new Array(3, 2, 8, 8, 10, 1, 6);
clvl3 = new Array(5, 10, 15, 15, 15, 2, 8);
clvl4 = new Array(4, 10, 15, 16, 10, 2, 8);
clvl5 = new Array(6, 11, 16, 12, 10, 2, 8);
clvl6 = new Array(45, 0, 0, 0, 55, 0, 10);
clvl7 = new Array(10, 10, 20, 20, 25, 3, 10);
clvl8 = new Array(10, 10, 25, 15, 20, 4, 10);
clvl9 = new Array(10, 15, 25, 10, 15, 5, 10);
shotrank1 = 100;
shotrank2 = 110;
comborank1 = 32;
comborank2 = 23;
timerank1 = 420;
timerank2 = 540;
_root.gamelevel = 1;
_root["ls" + _root.gamelevel] = 0;
_root.shotcount = 20;
_root.shotcountfirst = 2;
_root.shotcountsecond = 0;
liveshot = false;
blankshot = false;
totalshots = 0;
totaltime = 0;
combototal = 0;
comboqty = 0;
startTime = getTimer();
Frame 41
bg.panel.gotoAndStop(2);
_root.pcount = 0;
_root.combo = 0;
_root.capcount = 0;
clvldata = this["clvl" + (_root.gamelevel - 1)];
state1 = clvldata[0];
state2 = clvldata[1];
state3 = clvldata[2];
state4 = clvldata[3];
state5 = clvldata[4];
state6 = clvldata[5];
stategrid = clvldata[6];
gridData = new Array();
iy = 0;
while (iy < 10) {
gridData[iy] = "0000000000";
iy++;
}
ia = 6;
while (ia > 0) {
if (ia == 1) {
mychar = "1";
}
if (ia == 2) {
mychar = "2";
}
if (ia == 3) {
mychar = "3";
}
if (ia == 4) {
mychar = "4";
}
if (ia == 5) {
mychar = "5";
}
if (ia == 6) {
mychar = "6";
}
ib = 1;
while (ib < (this["state" + ia] + 1)) {
notchosen = true;
while (notchosen) {
ix = random(stategrid) + (5 - (stategrid / 2));
iy = random(stategrid) + (5 - (stategrid / 2));
if (gridData[iy].charAt(ix) == "0") {
notchosen = false;
if (ix == 0) {
newData = mychar + gridData[iy].substring(1, 10);
} else if (ix == 9) {
newData = gridData[iy].substring(0, 9) + mychar;
} else {
newData = (gridData[iy].substring(0, ix) + mychar) + gridData[iy].substring(ix + 1, 10);
}
gridData[iy] = newData;
}
}
ib++;
}
ia--;
}
Frame 42
ix = 0;
while (ix < 10) {
iy = 0;
while (iy < 10) {
newpoint = (("pointx" + ix) + "y") + iy;
this[newpoint].removeMovieClip();
pointdummy.duplicateMovieClip(newpoint, ((ix + 1) * 1000) + iy);
this[newpoint]._x = (ix * 40) + 50;
this[newpoint]._y = (iy * 40) + 50;
this[newpoint].myx = ix;
this[newpoint].myy = iy;
this[newpoint].gotoAndPlay("go");
iy++;
}
ix++;
}
Frame 45
_root.shotcountfirst = int(_root.shotcount / 10);
_root.shotcountsecond = _root.shotcount % 10;
_root.levelfirst = int(_root.level / 10);
_root.levelsecond = _root.level % 10;
if (_root.capcount == 0) {
_root.combototal = _root.combototal + _root.combo;
_root.comboqty++;
_root.avcombo = int(_root.combototal / _root.comboqty);
trace((((("combototal=" + _root.combototal) + " chains=") + _root.comboqty) + " average=") + _root.avcombo);
if (_root.gamelevel == 10) {
endTime = getTimer();
_root.totalTime = int((endTime - startTime) / 1000);
caption.gotoAndPlay("youwin");
gotoAndStop (49);
} else {
if (_root.shotcount == 0) {
_root.outofshotsbonus = true;
_root.shotcount = 1;
} else {
_root.outofshotsbonus = false;
}
caption.gotoAndPlay("levelup");
gotoAndStop (47);
}
}
if (_root.pcount < 1) {
_root.pcount = 0;
if (_root.combo > 0) {
_root.combototal = _root.combototal + _root.combo;
_root.comboqty++;
_root.combo = 0;
}
if (_root.shotcount == 0) {
caption.gotoAndPlay("gameover");
gotoAndStop (49);
}
}
Frame 46
gotoAndPlay (45);
Frame 48
_root.gamelevel++;
gotoAndPlay (41);
Frame 50
_root.shotcount = 0;
_root.shotcountfirst = 0;
_root.shotcountsecond = 0;
ix = 0;
while (ix < 10) {
iy = 0;
while (iy < 10) {
newpoint = (("pointx" + ix) + "y") + iy;
this[newpoint].removeMovieClip();
pointdummy.duplicateMovieClip(newpoint, ((ix + 1) * 1000) + iy);
this[newpoint]._x = (ix * 40) + 50;
this[newpoint]._y = (iy * 40) + 50;
this[newpoint].myx = ix;
this[newpoint].myy = iy;
iy++;
}
ix++;
}
bg.panel.gotoAndStop(1);
gotoAndPlay ("intro");
Frame 57
_root.nooflevels = 3;
_root.shotcount = 1;
_root.shotrank1 = 76;
_root.shotrank2 = 80;
_root.comborank1 = 30;
_root.comborank2 = 20;
_root.timerank1 = 180;
_root.timerank2 = 360;
_root.l0x0 = " ";
_root.l0x1 = " 35555 ";
_root.l0x2 = " 66 66666 ";
_root.l0x3 = " 155555 ";
_root.l0x4 = " 66 66666 ";
_root.l0x5 = " 45555555 ";
_root.l0x6 = " 66 66666 ";
_root.l0x7 = " 255555 ";
_root.l0x8 = " ";
_root.l0x9 = " ";
_root.l1x0 = "6666666666";
_root.l1x1 = "6434454436";
_root.l1x2 = "6 666666 6";
_root.l1x3 = "6555565556";
_root.l1x4 = "6545655156";
_root.l1x5 = "6551565456";
_root.l1x6 = "6555645456";
_root.l1x7 = "6553563556";
_root.l1x8 = "6555655556";
_root.l1x9 = "6666666666";
_root.l2x0 = "53 655545";
_root.l2x1 = " 455655445";
_root.l2x2 = "5 66666666";
_root.l2x3 = "5565 5 5";
_root.l2x4 = "5 65 2 55 ";
_root.l2x5 = "5 65 6 5 5";
_root.l2x6 = "6666666666";
_root.l2x7 = "55556545 4";
_root.l2x8 = "5 656 56 4";
_root.l2x9 = "1555655 55";
_root.l3x0 = "565 5 1 56";
_root.l3x1 = " 666 6 666";
_root.l3x2 = "1 56565 56";
_root.l3x3 = " 6 66666 6";
_root.l3x4 = "5 5 565 56";
_root.l3x5 = " 666 6 6 6";
_root.l3x6 = "565 5 5 16";
_root.l3x7 = " 6 666 6 6";
_root.l3x8 = "5 5 565 56";
_root.l3x9 = "6666666666";
_root.l4x0 = " ";
_root.l4x1 = " 666555666";
_root.l4x2 = " 566 666";
_root.l4x3 = " 66555666";
_root.l4x4 = " 5 51115 5";
_root.l4x5 = " 5 51215 5";
_root.l4x6 = " 5 51115 5";
_root.l4x7 = " 66655566 ";
_root.l4x8 = " 666 665";
_root.l4x9 = " 666555666";
_root.l5x0 = "55 36 55";
_root.l5x1 = "55 3553 55";
_root.l5x2 = " 655555 ";
_root.l5x3 = " 65555553 ";
_root.l5x4 = "3555555556";
_root.l5x5 = "6333553333";
_root.l5x6 = " 3553 ";
_root.l5x7 = "55 6553 55";
_root.l5x8 = "55 3553 55";
_root.l5x9 = " 3363 ";
_root.l6x0 = "5456655 55";
_root.l6x1 = "54566 5";
_root.l6x2 = "55 55 ";
_root.l6x3 = "66666 55 ";
_root.l6x4 = "65663 5";
_root.l6x5 = "5 36566";
_root.l6x6 = " 55 66666";
_root.l6x7 = " 55 44";
_root.l6x8 = "5 66444";
_root.l6x9 = "55 5566545";
_root.l7x0 = "5555555555";
_root.l7x1 = "5444444445";
_root.l7x2 = "5433333345";
_root.l7x3 = "5432222345";
_root.l7x4 = "5432442345";
_root.l7x5 = "5432442345";
_root.l7x6 = "5432222345";
_root.l7x7 = "5433333345";
_root.l7x8 = "5444444445";
_root.l7x9 = "5555555555";
_root.l8x0 = " ";
_root.l8x1 = " 44444444 ";
_root.l8x2 = " 46644464 ";
_root.l8x3 = " 44444464 ";
_root.l8x4 = " 46466444 ";
_root.l8x5 = " 44464464 ";
_root.l8x6 = " 44444464 ";
_root.l8x7 = " 46666444 ";
_root.l8x8 = " 44444444 ";
_root.l8x9 = " ";
_root.l9x0 = " 444444 ";
_root.l9x1 = "4444444444";
_root.l9x2 = "4 444444 4";
_root.l9x3 = "4 455554 4";
_root.l9x4 = " 44555544 ";
_root.l9x5 = " 444444 ";
_root.l9x6 = " 4444 ";
_root.l9x7 = "2 2 44 2 ";
_root.l9x8 = "2224444222";
_root.l9x9 = "2244444422";
Frame 59
if (nooflevels == 0) {
gotoAndPlay (58);
} else {
ia = 0;
while (ia < 11) {
this[("lv" + ia) + "puzzle"] = new Array();
ib = 0;
while (ib < 11) {
this[("lv" + ia) + "puzzle"][ib] = this[(("l" + ia) + "x") + ib];
ib++;
}
ia++;
}
caption.play();
_root.gametype = "puzzle";
stop();
}
Frame 60
_root.gamelevel = 1;
_root["ls" + _root.gamelevel] = 0;
_root.shotcountfirst = int(_root.shotcount / 10);
_root.shotcountsecond = int(_root.shotcount % 10);
liveshot = false;
blankshot = false;
totalshots = 0;
totaltime = 0;
combototal = 0;
comboqty = 0;
startTime = getTimer();
Frame 61
bg.panel.gotoAndStop(2);
_root.pcount = 0;
_root.combo = 0;
_root.capcount = 0;
gridData = new Array();
targetLevel = ("lv" + (gamelevel - 1)) + "puzzle";
gridData = this[targetLevel];
Frame 62
ix = 0;
while (ix < 10) {
iy = 0;
while (iy < 10) {
newpoint = (("pointx" + ix) + "y") + iy;
this[newpoint].removeMovieClip();
pointdummy.duplicateMovieClip(newpoint, ((ix + 1) * 1000) + iy);
this[newpoint]._x = (ix * 40) + 50;
this[newpoint]._y = (iy * 40) + 50;
this[newpoint].myx = ix;
this[newpoint].myy = iy;
this[newpoint].gotoAndPlay("go");
iy++;
}
ix++;
}
Frame 65
_root.shotcountfirst = int(_root.shotcount / 10);
_root.shotcountsecond = _root.shotcount % 10;
_root.levelfirst = int(_root.level / 10);
_root.levelsecond = _root.level % 10;
if (_root.capcount == 0) {
_root.combototal = _root.combototal + _root.combo;
_root.comboqty++;
_root.avcombo = int(_root.combototal / _root.comboqty);
if (_root.gamelevel == 10) {
endTime = getTimer();
_root.totalTime = int((endTime - startTime) / 1000);
caption.gotoAndPlay("youwin");
gotoAndStop (69);
} else {
if (_root.shotcount == 0) {
_root.outofshotsbonus = true;
_root.shotcount = 1;
} else {
_root.outofshotsbonus = false;
}
caption.gotoAndPlay("levelup");
gotoAndStop (67);
}
}
if (_root.pcount < 1) {
_root.pcount = 0;
if (_root.combo > 0) {
_root.combototal = _root.combototal + _root.combo;
_root.comboqty++;
_root.combo = 0;
}
if (_root.shotcount == 0) {
caption.gotoAndPlay("gameover");
gotoAndStop (69);
}
}
Frame 66
gotoAndPlay (65);
Frame 68
_root.gamelevel++;
gotoAndPlay (61);
Frame 70
_root.shotcount = 0;
_root.shotcountfirst = 0;
_root.shotcountsecond = 0;
ix = 0;
while (ix < 10) {
iy = 0;
while (iy < 10) {
newpoint = (("pointx" + ix) + "y") + iy;
this[newpoint].removeMovieClip();
pointdummy.duplicateMovieClip(newpoint, ((ix + 1) * 1000) + iy);
this[newpoint]._x = (ix * 40) + 50;
this[newpoint]._y = (iy * 40) + 50;
this[newpoint].myx = ix;
this[newpoint].myy = iy;
iy++;
}
ix++;
}
bg.panel.gotoAndStop(1);
gotoAndPlay ("intro");
Frame 71
_root.shotcount = 0;
_root.shotcountfirst = 0;
_root.shotcountsecond = 0;
ix = 0;
while (ix < 10) {
iy = 0;
while (iy < 10) {
newpoint = (("pointx" + ix) + "y") + iy;
this[newpoint].removeMovieClip();
pointdummy.duplicateMovieClip(newpoint, ((ix + 1) * 1000) + iy);
this[newpoint]._x = (ix * 40) + 50;
this[newpoint]._y = (iy * 40) + 50;
this[newpoint].myx = ix;
this[newpoint].myy = iy;
iy++;
}
ix++;
}
bg.panel.gotoAndStop(1);
gotoAndPlay ("intro");
Symbol 12 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 2
if (_root.shotcount > 3) {
gotoAndPlay (1);
}
Symbol 35 MovieClip Frame 1
ls1 = 0;
currentlevel = 1;
ix = 2;
while (ix < 11) {
_root["ls" + ix] = "";
ix++;
}
Symbol 35 MovieClip Frame 10
if (_root.gamelevel > currentlevel) {
currentlevel = _root.gamelevel;
arrow._y = 106 - ((_root.gamelevel - 1) * 20.5);
_root["ls" + _root.gamelevel] = 0;
}
gotoAndPlay (8);
Symbol 36 MovieClip Frame 1
stop();
Symbol 40 Button
on (release) {
getURL ("http://iojoe.com", "_blank");
}
Symbol 44 Button
on (release) {
_root._quality = "MEDIUM";
gotoAndStop (2);
}
Symbol 47 Button
on (release) {
_root._quality = "LOW";
gotoAndStop (3);
}
Symbol 50 Button
on (release) {
_root._quality = "HIGH";
gotoAndStop (1);
}
Symbol 51 MovieClip Frame 1
stop();
Symbol 54 Button
on (release) {
_root.soundcontrol.music.stop();
_root.soundcontrol.music.musicplaying = false;
_root.soundon = false;
gotoAndStop (2);
}
Symbol 57 Button
on (release) {
_root.soundcontrol.music.start(0, 10000);
_root.soundcontrol.music.musicplaying = true;
_root.soundon = true;
gotoAndStop (1);
}
Symbol 58 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 1
gotoAndStop(random(5) + 1);
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 10
stop();
Symbol 82 MovieClip Frame 1
gotoAndStop(random(5) + 1);
Symbol 83 MovieClip Frame 1
gotoAndStop (2);
Symbol 83 MovieClip Frame 9
stop();
Symbol 83 MovieClip Frame 19
stop();
Symbol 83 MovieClip Frame 29
stop();
Symbol 83 MovieClip Frame 39
stop();
Symbol 83 MovieClip Frame 49
stop();
Symbol 83 MovieClip Frame 59
stop();
Symbol 83 MovieClip Frame 61
sprise.gotoAndPlay(2);
stop();
Symbol 83 MovieClip Frame 62
stop();
Symbol 89 MovieClip Frame 1
gotoAndPlay(random(2) + 2);
Symbol 89 MovieClip Frame 4
gotoAndPlay(random(2) + 2);
Symbol 90 MovieClip Frame 1
Symbol 90 MovieClip Frame 2
this._x = this._x + xmod;
this._y = this._y + ymod;
realx = this._x + (../../:myx * 40);
realy = this._y + (../../:myy * 40);
if ((realx < -130) || (realx > 530)) {
gotoAndStop (4);
}
if ((realy < -130) || (realy > 530)) {
gotoAndStop (4);
}
if (((realx % 40) == 0) && ((realy % 40) == 0)) {
targetpoint = (("pointx" + (realx / 40)) + "y") + (realy / 40);
targetpointstate = _root[targetpoint].mystate;
if (targetpointstate > 0) {
_root[targetpoint].mystate++;
_root[targetpoint].gotoAndPlay("update");
gotoAndStop (4);
}
}
myxy = (realx + ",") + realy;
Symbol 90 MovieClip Frame 3
gotoAndPlay (2);
Symbol 90 MovieClip Frame 4
_root.pcount--;
stop();
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 2
gotoAndPlay(random(3) + 3);
Symbol 91 MovieClip Frame 10
left.xmod = -10;
right.xmod = 10;
up.ymod = -10;
down.ymod = 10;
stop();
Symbol 94 MovieClip Frame 2
if (_root.liveshot || (_root.pcount == 0)) {
if (_root.shotcount > 0) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
} else {
gotoAndPlay (1);
}
Symbol 94 MovieClip Frame 5
gotoAndPlay (3);
Symbol 96 Button
on (release) {
if (_root.liveshot || (_root.pcount == 0)) {
if (_root.shotcount > 0) {
if (_root.soundon) {
shotsfx.start();
}
_root["ls" + _root.gamelevel]++;
mystate++;
_root.shotcount--;
_root.totalshots++;
gotoAndPlay ("update");
}
}
}
Symbol 97 Button
on (release) {
if (_root.liveshot || (_root.pcount == 0)) {
if (_root.shotcount > 0) {
if (_root.soundon) {
shotsfx.start();
}
_root["ls" + _root.gamelevel]++;
mystate++;
_root.shotcount--;
_root.totalshots++;
gotoAndPlay ("update");
}
}
}
Symbol 98 Button
on (release) {
if (_root.liveshot || (_root.pcount == 0)) {
if (_root.shotcount > 0) {
if (_root.soundon) {
shotsfx.start();
}
_root["ls" + _root.gamelevel]++;
mystate++;
_root.shotcount--;
_root.totalshots++;
gotoAndPlay ("update");
}
}
}
Symbol 99 Button
on (release) {
if (_root.liveshot || (_root.pcount == 0)) {
if (_root.shotcount > 0) {
if (_root.soundon) {
shotsfx.start();
}
_root["ls" + _root.gamelevel]++;
mystate++;
_root.shotcount--;
_root.totalshots++;
gotoAndPlay ("update");
}
}
}
Symbol 100 Button
on (release) {
if (_root.liveshot || (_root.pcount == 0)) {
if (_root.shotcount > 0) {
if (_root.soundon) {
shotsfx.start();
}
_root["ls" + _root.gamelevel]++;
mystate++;
_root.shotcount--;
_root.totalshots++;
gotoAndPlay ("update");
}
}
}
Symbol 106 MovieClip Frame 1
if (..:mycombo > 0) {
gotoAndPlay (2);
} else {
stop();
}
Symbol 106 MovieClip Frame 2
if ((..:mycombo % 5) == 0) {
comboscore.gotoAndStop(2);
if (_root.shotcount < 99) {
_root.shotcount++;
}
} else {
comboscore.gotoAndStop(1);
}
Symbol 106 MovieClip Frame 20
stop();
Symbol 107 Button
on (release) {
if (_root.shotcount > 0) {
_root.capcount++;
mystate++;
gotoAndPlay ("update");
}
}
Symbol 108 MovieClip Frame 1
Symbol 108 MovieClip Frame 2
popsfx = new Sound(this);
popsfx.attachSound("POP3");
popsfx.setVolume((myy * 5) + 60);
popsfx.setPan((myx * 20) - 90);
shotsfx = new Sound(this);
shotsfx.attachSound("SHOT");
shotsfx.setVolume(50);
shotsfx.setPan((myx * 20) - 90);
mystateChar = _root.gridData[myy].charAt(myx);
mystate = 0;
if (mystateChar == "1") {
mystate = 1;
}
if (mystateChar == "2") {
mystate = 2;
}
if (mystateChar == "3") {
mystate = 3;
}
if (mystateChar == "4") {
mystate = 4;
}
if (mystateChar == "5") {
mystate = 5;
}
if (mystateChar == "6") {
mystate = 100;
}
if ((mystate > 0) and (mystate < 6)) {
_root.capcount++;
}
myoldstate = mystate;
mydelay = random(20);
Symbol 108 MovieClip Frame 4
mydelay--;
if (mydelay > 0) {
gotoAndPlay (3);
} else {
gotoAndPlay ("update");
}
Symbol 108 MovieClip Frame 5
if (mystate == 0) {
state.gotoAndStop(1);
gotoAndPlay ("off");
} else if (mystate == myoldstate) {
if (mystate < 6) {
state.gotoAndStop((mystate + 1) * 10);
} else {
state.gotoAndStop(3);
gotoAndStop ("rock");
}
} else if (mystate < 6) {
_root["count" + myoldstate]--;
_root["count" + mystate]++;
state.gotoAndPlay(mystate * 10);
myoldstate = mystate;
} else if (mystate > 99) {
mystate = 100;
myoldstate = mystate;
state.gotoAndStop(3);
gotoAndStop ("rock");
} else {
gotoAndPlay ("fire");
}
Symbol 108 MovieClip Frame 6
if (mystate == 2) {
gotoAndStop (7);
} else if (mystate == 3) {
gotoAndStop (8);
} else if (mystate == 4) {
gotoAndStop (9);
} else if (mystate == 5) {
gotoAndStop (10);
} else {
stop();
}
Symbol 108 MovieClip Frame 15
if (_root.soundon) {
popsfx.start();
}
_root.pcount = _root.pcount + 4;
_root.combo++;
_root.capcount--;
mycombo = _root.combo;
state.gotoAndPlay(60);
particles.play();
_root.count5--;
mystate = 0;
myoldstate = 0;
_root.count0++;
Symbol 108 MovieClip Frame 17
if (_root.soundon) {
shotsfx.start();
}
gotoAndPlay ("off");
Symbol 108 MovieClip Frame 25
_root.hitcount++;
if (_root.blankshot) {
gotoAndStop (26);
}
stop();
Symbol 108 MovieClip Frame 35
stop();
Symbol 118 MovieClip Frame 2
if (_root.outofshotsbonus == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 118 MovieClip Frame 4
if (_root.outofshotsbonus == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 126 Button
on (release) {
_root.gametype = "classic";
_root.gopushed = true;
_root.caption.play();
}
Symbol 127 Button
on (release) {
_root.gotoAndPlay("puzzle");
}
Symbol 130 Button
on (release) {
_root.gotoAndPlay("puzzle");
}
Symbol 131 MovieClip Frame 1
stop();
Symbol 137 Button
on (release) {
getURL ("http://www.iojoe.com", "_blank");
}
Symbol 151 Button
on (release) {
_root.gotoAndPlay("classic");
_root.caption.play();
gotoAndStop (1);
}
Symbol 160 Button
on (release) {
_root.play();
_root.caption.play();
gotoAndStop (3);
}
Symbol 161 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 3
stop();
Symbol 174 Button
on (release) {
_root.caption.play();
}
Symbol 183 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 9
gotoAndPlay (2);
Symbol 185 MovieClip Frame 1
iam = this._name;
stop();
Symbol 185 MovieClip Frame 10
_root.soundcontrol.gotoAndPlay("fadeup");
Symbol 185 MovieClip Frame 33
wc = 25;
Symbol 185 MovieClip Frame 38
if (wc > 0) {
wc--;
gotoAndPlay (37);
}
Symbol 185 MovieClip Frame 59
_root.play();
stop();
Symbol 185 MovieClip Frame 60
_root.soundcontrol.gotoAndPlay("fadeup");
Symbol 185 MovieClip Frame 85
_root.level++;
_root.play();
Symbol 185 MovieClip Frame 98
_root.soundcontrol.gotoAndPlay("fadedown");
Symbol 185 MovieClip Frame 104
stop();
Symbol 185 MovieClip Frame 105
_root.gametype = null;
_root.gopushed = false;
Symbol 185 MovieClip Frame 128
if (_root.gopushed == false) {
stop();
}
Symbol 185 MovieClip Frame 132
if (_root.gametype == "puzzle") {
rank.gotoAndStop(3);
} else {
rank.gotoAndStop(1);
}
Symbol 185 MovieClip Frame 145
if (_root.gametype == "puzzle") {
rank.gotoAndStop(4);
} else {
rank.gotoAndStop(2);
}
stop();
Symbol 185 MovieClip Frame 146
if (_root.gametype == "puzzle") {
rank.gotoAndStop(3);
} else {
rank.gotoAndStop(1);
}
Symbol 185 MovieClip Frame 158
_root.soundcontrol.gotoAndPlay("fadedown");
Symbol 185 MovieClip Frame 166
stop();
Symbol 185 MovieClip Frame 205
_root.totalshotsD = "";
_root.avcomboD = "";
_root.totaltimeD = "";
_root.totaltimeC = 0;
_root.soundcontrol.gotoAndPlay("fadeup");
Symbol 185 MovieClip Frame 249
_root.totalshotsD = 0;
dinksfx = new Sound(this);
dinksfx.attachSound("DINK");
dinksfx.setVolume(20);
Symbol 185 MovieClip Frame 251
if (_root.totalshotsD < _root.totalshots) {
_root.totalshotsD++;
if (_root.soundon) {
dinksfx.start();
}
gotoAndPlay (250);
} else {
_root.avcomboD = 0;
}
Symbol 185 MovieClip Frame 253
if (_root.avcomboD < _root.avcombo) {
_root.avcomboD++;
if (_root.soundon) {
dinksfx.start();
}
gotoAndPlay (252);
} else {
_root.totaltimeD = "0:00";
}
Symbol 185 MovieClip Frame 255
if (_root.totaltimeC < (_root.totaltime - 10)) {
_root.totaltimeC = _root.totaltimeC + 10;
totalMin = int(_root.totaltimeC / 60);
totalSecs = _root.totaltimeC % 60;
if (totalSecs < 10) {
totalSecs = "0" + totalSecs;
}
if (_root.soundon) {
dinksfx.start();
}
_root.totalTimeD = (totalMin + ":") + totalSecs;
gotoAndPlay (254);
} else if (_root.totaltimeC < _root.totaltime) {
_root.totaltimeC++;
totalMin = int(_root.totaltimeC / 60);
totalSecs = _root.totaltimeC % 60;
if (totalSecs < 10) {
totalSecs = "0" + totalSecs;
}
if (_root.soundon) {
dinksfx.start();
}
_root.totalTimeD = (totalMin + ":") + totalSecs;
gotoAndPlay (254);
} else {
wc = 50;
rank.rankletter._alpha = 50;
rank.rankletter.gotoAndPlay(2);
}
Symbol 185 MovieClip Frame 257
wc--;
if (wc > 0) {
if (_root.soundon) {
dinksfx.start();
}
gotoAndPlay (256);
} else {
dinksfx.setVolume(100);
if (_root.soundon) {
dinksfx.start();
}
rank.rankletter._alpha = 75;
rankpoints = 1;
if (_root.totalshots <= _root.shotrank1) {
rankpoints++;
}
if (_root.totalshots <= _root.shotrank2) {
rankpoints++;
}
if (_root.avcombo >= _root.comborank1) {
rankpoints++;
}
if (_root.avcombo >= _root.comborank2) {
rankpoints++;
}
if (_root.totaltime < _root.timerank1) {
rankpoints++;
}
if (_root.totaltime < _root.timerank2) {
rankpoints++;
}
rank.rankletter.gotoAndStop(rankpoints + 1);
}
Symbol 185 MovieClip Frame 259
stop();
Symbol 185 MovieClip Frame 278
_root.play();
stop();
Symbol 186 MovieClip Frame 1
music = new Sound(this);
music.attachSound("MUSIC");
music.setVolume(0);
musicplaying = false;
Symbol 186 MovieClip Frame 2
gotoAndPlay ("fadeup");
Symbol 186 MovieClip Frame 5
currentVol = music.getVolume();
if (currentVol > 0) {
music.setVolume(currentVol - 2);
} else {
music.stop();
musicplaying = false;
}
Symbol 186 MovieClip Frame 6
gotoAndPlay (5);
Symbol 186 MovieClip Frame 15
if ((musicplaying == false) and (_root.soundon == true)) {
music.start(0, 10000);
musicplaying = true;
}
currentVol = music.getVolume();
if (currentVol < 41) {
music.setVolume(currentVol + 5);
} else {
stop();
}
Symbol 186 MovieClip Frame 16
gotoAndPlay (15);