Combined Code
// unknown tag 88 length 56
frame 1 {
texttodisplay = '';
}
frame 1 {
mochi.as2.MochiAd.showPreGameAd({'id': 'c9ca5565ec16e0e6', 'res': '640x480', 'no_bg': true});
mochi.as2.MochiServices.connect('c9ca5565ec16e0e6', root);
stop();
}
movieClip 16 {
}
movieClip 18 {
}
instance overText of movieClip 18 {
onClipEvent (enterFrame) {
this.txt.text = _root.texttodisplay;
this._x = _root._xmouse;
this._y = _root._ymouse - 16;
}
}
movieClip 1044 __Packages.mochi.as2.MochiAd {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiAd) {
var v1 = function () {};
mochi.as2.MochiAd = v1;
var v2 = v1.prototype;
v1.getVersion = function () {
return mochi.as2.MochiServices.getVersion();
};
v1.showPreGameAd = function (options) {
var v26 = {'clip': _root, 'ad_timeout': 3000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showPreloaderAd', 'color': 16747008, 'background': 16777161, 'outline': 13994812, 'no_progress_bar': false, 'ad_started': function () {
this.clip.stop();
}, 'ad_finished': function () {
this.clip.play();
}, 'ad_failed': function () {
trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software');
}, 'ad_loaded': function (width, height) {}, 'ad_skipped': function () {}, 'ad_progress': function (percent) {}};
options = mochi.as2.MochiAd._parseOptions(options, v26);
if ('c862232051e0a94e1c3609b3916ddb17'.substr(0) == 'dfeada81ac97cde83665f81c12da7def') {
options.ad_started();
options.ad_finished();
return undefined;
}
var clip = options.clip;
var v23 = 11000;
var v19 = options.ad_timeout;
if (options.skip) {
v19 = 0;
}
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!mochi.as2.MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
return undefined;
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var v14 = mochi.as2.MochiAd._getRes(options);
var v4 = v14[0];
var v13 = v14[1];
mc._x = v4 * 0.5;
mc._y = v13 * 0.5;
var chk = mc.createEmptyMovieClip('_mochiad_wait', 3);
chk._x = v4 * -0.5;
chk._y = v13 * -0.5;
var v6 = chk.createEmptyMovieClip('_mochiad_bar', 4);
if (options.no_progress_bar) {
v6._visible = false;
delete options.no_progress_bar;
} else {
v6._x = 10;
v6._y = v13 - 20;
}
var v22 = options.color;
delete options.color;
var v20 = options.background;
delete options.background;
var v24 = options.outline;
delete options.outline;
var v5 = v6.createEmptyMovieClip('_outline', 1);
v5.beginFill(v20);
v5.moveTo(0, 0);
v5.lineTo(v4 - 20, 0);
v5.lineTo(v4 - 20, 10);
v5.lineTo(0, 10);
v5.lineTo(0, 0);
v5.endFill();
var v3 = v6.createEmptyMovieClip('_inside', 2);
v3.beginFill(v22);
v3.moveTo(0, 0);
v3.lineTo(v4 - 20, 0);
v3.lineTo(v4 - 20, 10);
v3.lineTo(0, 10);
v3.lineTo(0, 0);
v3.endFill();
v3._xscale = 0;
var v7 = v6.createEmptyMovieClip('_outline', 3);
v7.lineStyle(0, v24, 100);
v7.moveTo(0, 0);
v7.lineTo(v4 - 20, 0);
v7.lineTo(v4 - 20, 10);
v7.lineTo(0, 10);
v7.lineTo(0, 0);
chk.ad_msec = v23;
chk.ad_timeout = v19;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var v2 = 100 * (1 - (getTimer() - this.fadeout_start) / this.fadeout_time);
if (v2 > 0) {
this._parent._alpha = v2;
} else {
var v3 = this._parent._parent;
mochi.as2.MochiAd.unload(v3);
delete this.onEnterFrame;
}
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var v2 = this.mc._mochiad_wait;
v2.server_control = true;
v2.started = getTimer();
v2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace('[MOCHIAD rpcTestFn] ' + s);
return s;
};
chk.onEnterFrame = function () {
var v6 = this._parent._parent;
var v11 = this._parent._mochiad_ctr;
var v5 = getTimer() - this.started;
var v3 = false;
var v4 = v6.getBytesTotal();
var v8 = v6.getBytesLoaded();
var v2 = 100 * v8 / v4;
var v10 = 100 * v5 / chk.ad_msec;
var v9 = this._mochiad_bar._inside;
var v13 = Math.min(100, Math.min(v2 || 0, v10));
v13 = Math.max(this.last_pcnt, v13);
this.last_pcnt = v13;
v9._xscale = v13;
options.ad_progress(v13);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {'id': 'hostLoadPcnt', 'pcnt': v2}, clip._mochiad._containerLCName);
if (v2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var v7 = v11.getBytesTotal();
if (v7 > 0 || typeof v7 == 'undefined') {
chk.showing = true;
chk.started = getTimer();
} else {
if (v5 > chk.ad_timeout && v2 == 100) {
options.ad_failed();
v3 = true;
}
}
}
if (v5 > chk.ad_msec) {
v3 = true;
}
if (v4 > 0 && v8 >= v4 && v3) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
};
v1.showClickAwayAd = function (options) {
var v10 = {'clip': _root, 'ad_timeout': 2000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showClickAwayAd', 'res': '300x250', 'no_bg': true, 'ad_started': function () {}, 'ad_finished': function () {}, 'ad_loaded': function (width, height) {}, 'ad_failed': function () {
trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software');
}, 'ad_skipped': function () {}};
options = mochi.as2.MochiAd._parseOptions(options, v10);
var clip = options.clip;
var v9 = options.ad_timeout;
delete options.ad_timeout;
if (!mochi.as2.MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
return undefined;
}
options.ad_started();
var v3 = clip._mochiad;
v3.onUnload = function () {
options.ad_finished();
};
var v5 = mochi.as2.MochiAd._getRes(options);
var v11 = v5[0];
var v8 = v5[1];
v3._x = v11 * 0.5;
v3._y = v8 * 0.5;
var chk = v3.createEmptyMovieClip('_mochiad_wait', 3);
chk.ad_timeout = v9;
chk.started = getTimer();
chk.showing = false;
v3.lc.adLoaded = options.ad_loaded;
v3.lc.adSkipped = options.ad_skipped;
v3.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
v3.rpcTestFn = function (s) {
trace('[MOCHIAD rpcTestFn] ' + s);
return s;
};
var v21 = false;
chk.onEnterFrame = function () {
var v5 = this._parent._mochiad_ctr;
var v4 = getTimer() - this.started;
var v2 = false;
if (!chk.showing) {
var v3 = v5.getBytesTotal();
if (v3 > 0 || typeof v3 == 'undefined') {
v2 = true;
chk.showing = true;
chk.started = getTimer();
} else {
if (v4 > chk.ad_timeout) {
options.ad_failed();
v2 = true;
}
}
}
if (v2) {
delete this.onEnterFrame;
}
};
};
v1.showInterLevelAd = function (options) {
var v13 = {'clip': _root, 'ad_timeout': 2000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showTimedAd', 'ad_started': function () {
this.clip.stop();
}, 'ad_finished': function () {
this.clip.play();
}, 'ad_failed': function () {
trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software');
}, 'ad_loaded': function (width, height) {}, 'ad_skipped': function () {}};
options = mochi.as2.MochiAd._parseOptions(options, v13);
var clip = options.clip;
var v10 = 11000;
var v12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!mochi.as2.MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
return undefined;
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var v5 = mochi.as2.MochiAd._getRes(options);
var v14 = v5[0];
var v11 = v5[1];
mc._x = v14 * 0.5;
mc._y = v11 * 0.5;
var chk = mc.createEmptyMovieClip('_mochiad_wait', 3);
chk.ad_msec = v10;
chk.ad_timeout = v12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var v2 = 100 * (1 - (getTimer() - this.fadeout_start) / this.fadeout_time);
if (v2 > 0) {
this._parent._alpha = v2;
} else {
var v3 = this._parent._parent;
mochi.as2.MochiAd.unload(v3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var v2 = this.mc._mochiad_wait;
v2.server_control = true;
v2.started = getTimer();
v2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace('[MOCHIAD rpcTestFn] ' + s);
return s;
};
chk.onEnterFrame = function () {
var v5 = this._parent._mochiad_ctr;
var v4 = getTimer() - this.started;
var v2 = false;
if (!chk.showing) {
var v3 = v5.getBytesTotal();
if (v3 > 0 || typeof v3 == 'undefined') {
chk.showing = true;
chk.started = getTimer();
} else {
if (v4 > chk.ad_timeout) {
options.ad_failed();
v2 = true;
}
}
}
if (v4 > chk.ad_msec) {
v2 = true;
}
if (v2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
};
v1.showPreloaderAd = function (options) {
trace('[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0');
mochi.as2.MochiAd.showPreGameAd(options);
};
v1.showTimedAd = function (options) {
trace('[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0');
mochi.as2.MochiAd.showInterLevelAd(options);
};
v1._allowDomains = function (server) {
var v1 = ((server.split('/'))[2].split(':'))[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain('*');
System.security.allowDomain(v1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain('*');
System.security.allowInsecureDomain(v1);
}
}
return v1;
};
v1.load = function (options) {
var v12 = {'clip': _root, 'server': 'http://x.mochiads.com/srv/1/', 'method': 'load', 'depth': 10333, 'id': '_UNKNOWN_'};
options = mochi.as2.MochiAd._parseOptions(options, v12);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = mochi.as2.MochiAd.getVersion();
var v6 = options.clip;
if (!mochi.as2.MochiAd._isNetworkAvailable()) {
return null;
}
if (v6._mochiad_loaded) {
return null;
}
var v11 = options.depth;
delete options.depth;
var mc = v6.createEmptyMovieClip('_mochiad', v11);
var v10 = mochi.as2.MochiAd._getRes(options);
options.res = v10[0] + 'x' + v10[1];
options.server += options.id;
delete options.id;
v6._mochiad_loaded = true;
if (v6._url.indexOf('http') != 0) {
trace('[MochiAd] NOTE: Security Sandbox Violation errors below are normal');
}
var v4 = mc.createEmptyMovieClip('_mochiad_ctr', 1);
for (var v7 in options) {
v4[v7] = options[v7];
}
var v9 = v4.server;
delete v4.server;
var v13 = mochi.as2.MochiAd._allowDomains(v9);
mc.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var v5 = new Object();
var v8 = ['', Math.floor((new Date()).getTime()), random(999999)].join('_');
v5.mc = mc;
v5.name = v8;
v5.hostname = v13;
v5.allowDomain = function (d) {
return true;
};
v5.allowInsecureDomain = v5.allowDomain;
v5.connect(v8);
mc.lc = v5;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
v4.lc = v8;
v4.st = getTimer();
if (!options.skip) {
v4.loadMovie(v9 + '.swf', 'POST');
}
return mc;
};
v1.unload = function (clip) {
if (typeof clip == 'undefined') {
clip = _root;
}
if (clip.clip && clip.clip._mochiad) {
clip = clip.clip;
}
if (!clip._mochiad) {
return false;
}
mochi.as2.MochiAd.containerNotify(clip, {'id': 'unload'}, clip._mochiad._containerLCName);
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return true;
};
v1._isNetworkAvailable = function () {
if (System.security) {
var v1 = System.security;
if (v1.sandboxType == 'localWithFile') {
return false;
}
}
return true;
};
v1._getRes = function (options) {
var v3 = options.clip.getBounds();
var v2 = 0;
var v1 = 0;
if (typeof options.res != 'undefined') {
var v4 = options.res.split('x');
v2 = parseFloat(v4[0]);
v1 = parseFloat(v4[1]);
} else {
v2 = v3.xMax - v3.xMin;
v1 = v3.yMax - v3.yMin;
}
if (v2 == 0 || v1 == 0) {
v2 = Stage.width;
v1 = Stage.height;
}
return [v2, v1];
};
v1._parseOptions = function (options, defaults) {
var v4 = {};
for (var v8 in defaults) {
v4[v8] = defaults[v8];
}
if (options) {
for (v8 in options) {
v4[v8] = options[v8];
}
}
if (_root.mochiad_options) {
var v5 = _root.mochiad_options.split('&');
var v2 = 0;
while (v2 < v5.length) {
var v3 = v5[v2].split('=');
v4[unescape(v3[0])] = unescape(v3[1]);
++v2;
}
}
if (v4.id == 'test') {
trace('[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!');
}
return v4;
};
v1.rpc = function (clip, callbackID, arg) {
switch (arg.id) {
case 'setValue':
mochi.as2.MochiAd.setValue(clip, arg.objectName, arg.value);
break;
case 'getValue':
var v4 = mochi.as2.MochiAd.getValue(clip, arg.objectName);
mochi.as2.MochiAd.containerRpcResult(clip, callbackID, v4, clip._mochiad._containerLCName);
break;
case 'runMethod':
var v3 = mochi.as2.MochiAd.runMethod(clip, arg.method, arg.args);
mochi.as2.MochiAd.containerRpcResult(clip, callbackID, v3, clip._mochiad._containerLCName);
break;
default:
trace('[mochiads rpc] unknown rpc id: ' + arg.id);
}
};
v1.setValue = function (base, objectName, value) {
var v2 = objectName.split('.');
var v1;
v1 = 0;
while (v1 < v2.length - 1) {
if (base[v2[v1]] == undefined || base[v2[v1]] == null) {
return undefined;
}
base = base[v2[v1]];
++v1;
}
base[v2[v1]] = value;
};
v1.getValue = function (base, objectName) {
var v2 = objectName.split('.');
var v1;
v1 = 0;
while (v1 < v2.length - 1) {
if (base[v2[v1]] == undefined || base[v2[v1]] == null) {
return undefined;
}
base = base[v2[v1]];
++v1;
}
return base[v2[v1]];
};
v1.runMethod = function (base, methodName, argsArray) {
var v2 = methodName.split('.');
var v1;
v1 = 0;
while (v1 < v2.length - 1) {
if (base[v2[v1]] == undefined || base[v2[v1]] == null) {
return undefined;
}
base = base[v2[v1]];
++v1;
}
if (typeof base[v2[v1]] == 'function') {
return base[v2[v1]].apply(base, argsArray);
} else {
return undefined;
}
};
v1.containerNotify = function (clip, args, lcName) {
var v1 = clip._mochiad._mochiad_ctr.ad.app;
if (v1.notify) {
v1.notify(args);
} else {
(new LocalConnection()).send(lcName, 'notify', args);
}
};
v1.containerRpcResult = function (clip, callbackID, val, lcName) {
var v1 = clip._mochiad._mochiad_ctr.ad.app;
if (v1.rpcResult) {
v1.rpcResult(callbackID, val);
} else {
(new LocalConnection()).send(lcName, 'rpcResult', callbackID, val);
}
};
ASSetPropFlags(mochi.as2.MochiAd.prototype, null, 1);
}
#endinitclip
}
movieClip 1045 __Packages.mochi.as2.MochiSync {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiSync) {
var v1 = function () {
this._syncContainer = {};
};
mochi.as2.MochiSync = v1;
var v2 = v1.prototype;
v2.getProp = function (name) {
return this._syncContainer[name];
};
v2.setProp = function (name, value) {
if (this._syncContainer[name] == value) {
return undefined;
}
this._syncContainer[name] = value;
mochi.as2.MochiServices.send('sync_propUpdate', {'name': name, 'value': value});
};
v2.triggerEvent = function (eventType, args) {
switch (eventType) {
case mochi.as2.MochiSync.SYNC_REQUEST:
mochi.as2.MochiServices.send('sync_syncronize', this._syncContainer);
break;
case mochi.as2.MochiSync.SYNC_PROPERTY:
this._syncContainer[args.name] = args.value;
}
};
v1.SYNC_REQUEST = 'SyncRequest';
v1.SYNC_PROPERTY = 'UpdateProperty';
ASSetPropFlags(mochi.as2.MochiSync.prototype, null, 1);
}
#endinitclip
}
movieClip 1046 __Packages.mochi.as2.MochiServices {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiServices) {
var v1 = function () {};
mochi.as2.MochiServices = v1;
var v2 = v1.prototype;
v1.__get__id = function () {
return mochi.as2.MochiServices._id;
};
v1.__get__clip = function () {
return mochi.as2.MochiServices._container;
};
v1.__get__childClip = function () {
return mochi.as2.MochiServices._clip;
};
v1.getVersion = function () {
return '3.8 as2';
};
v1.allowDomains = function (server) {
var v1 = ((server.split('/'))[2].split(':'))[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain('*');
System.security.allowDomain(v1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain('*');
System.security.allowInsecureDomain(v1);
}
}
return v1;
};
v1.__get__isNetworkAvailable = function () {
if (System.security) {
var v1 = System.security;
if (v1.sandboxType == 'localWithFile') {
return false;
}
}
return true;
};
v1.__set__comChannelName = function (val) {
if (val != undefined) {
if (val.length > 3) {
mochi.as2.MochiServices._sendChannelName = val + '_fromgame';
mochi.as2.MochiServices.initComChannels();
}
}
return mochi.as2.MochiServices.__get__comChannelName();
};
v1.__get__connected = function () {
return mochi.as2.MochiServices._connected;
};
v1.connect = function (id, clip, onError) {
mochi.as2.MochiServices.warnID(id, false);
if (!mochi.as2.MochiServices._connected && mochi.as2.MochiServices._clip == undefined) {
trace('MochiServices Connecting...');
mochi.as2.MochiServices._connecting = true;
mochi.as2.MochiServices.init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else {
if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
};
v1.disconnect = function () {
if (mochi.as2.MochiServices._connected || mochi.as2.MochiServices._connecting) {
mochi.as2.MochiServices._connected = false;
mochi.as2.MochiServices._connecting = mochi.as2.MochiServices._connected;
mochi.as2.MochiServices.flush(true);
if (mochi.as2.MochiServices._clip != undefined) {
mochi.as2.MochiServices._clip.removeMovieClip();
delete mochi.as2.MochiServices._clip;
}
mochi.as2.MochiServices._listenChannel.close();
}
};
v1.init = function (id, clip) {
mochi.as2.MochiServices._id = id;
if (clip != undefined) {
mochi.as2.MochiServices._container = clip;
} else {
mochi.as2.MochiServices._container = _root;
}
mochi.as2.MochiServices.loadCommunicator(id, mochi.as2.MochiServices._container);
};
v1.loadCommunicator = function (id, clip) {
var v6 = '_mochiservices_com_' + id;
var v5 = new MovieClipLoader();
var v3 = {};
if (mochi.as2.MochiServices._clip != null) {
return mochi.as2.MochiServices._clip;
}
if (!mochi.as2.MochiServices.__get__isNetworkAvailable()) {
return null;
}
if ((mochi.as2.MochiServices.urlOptions()).servURL) {
mochi.as2.MochiServices._servURL = (mochi.as2.MochiServices.urlOptions()).servURL;
}
var v4 = mochi.as2.MochiServices._servURL + mochi.as2.MochiServices._services;
if ((mochi.as2.MochiServices.urlOptions()).servicesURL) {
v4 = (mochi.as2.MochiServices.urlOptions()).servicesURL;
}
mochi.as2.MochiServices.allowDomains(v4);
mochi.as2.MochiServices._clip = clip.createEmptyMovieClip(v6, 10336, false);
mochi.as2.MochiServices._listenChannelName += Math.floor((new Date()).getTime()) + '_' + Math.floor(Math.random() * 99999);
mochi.as2.MochiServices.listen();
if (v3.waitInterval != null) {
clearInterval(v3.waitInterval);
}
v3.onLoadError = mochi.as2.MochiServices.loadError;
v3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
v3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
v3.startTime = getTimer();
v3.wait = function () {
if (getTimer() - this.startTime > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ['IOError']);
}
clearInterval(this.waitInterval);
}
};
v3.waitInterval = setInterval(v3, 'wait', 1000);
v5.addListener(v3);
v5.loadClip(v4 + '?listenLC=' + mochi.as2.MochiServices._listenChannelName + '&mochiad_options=' + escape(_root.mochiad_options) + '&api_version=' + mochi.as2.MochiServices.getVersion(), mochi.as2.MochiServices._clip);
mochi.as2.MochiServices._sendChannel = new LocalConnection();
mochi.as2.MochiServices._sendChannel._queue = [];
return mochi.as2.MochiServices._clip;
};
v1.loadError = function (target_mc, errorCode, httpStatus) {
trace('MochiServices could not load.');
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, [errorCode]);
};
v1.onStatus = function (infoObject) {
if (infoObject.level !== 'error') {
} else {
mochi.as2.MochiServices._connected = false;
mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName);
}
};
v1.listen = function () {
mochi.as2.MochiServices._listenChannel = new LocalConnection();
mochi.as2.MochiServices._listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
mochi.as2.MochiServices._listenChannel.allowDomain = function (d) {
return true;
};
mochi.as2.MochiServices._listenChannel.allowInsecureDomain = mochi.as2.MochiServices._listenChannel.allowDomain;
mochi.as2.MochiServices._listenChannel._nextcallbackID = 0;
mochi.as2.MochiServices._listenChannel._callbacks = {};
mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName);
trace('Waiting for MochiAds services to connect...');
};
v1.initComChannels = function () {
if (!mochi.as2.MochiServices._connected) {
mochi.as2.MochiServices._sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'handshakeDone'});
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'registerGame', 'id': mochi.as2.MochiServices._id, 'version': mochi.as2.MochiServices.getVersion()});
mochi.as2.MochiServices._listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
mochi.as2.MochiServices._listenChannel.onReceive = function (pkg) {
var v5 = pkg.callbackID;
var v4 = this._callbacks[v5];
if (!v4) {
return undefined;
}
var v2 = v4.callbackMethod;
var v3 = v4.callbackObject;
if (v3 && typeof v2 == 'string') {
v2 = v3[v2];
}
if (v2 != undefined) {
v2.apply(v3, pkg.args);
}
delete this._callbacks[v5];
};
mochi.as2.MochiServices._listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case 'events':
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case 'coins':
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
break;
case 'sync':
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
mochi.as2.MochiServices._listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ['IOError']);
};
trace('[SERVICES_API] connected!');
mochi.as2.MochiServices._connecting = false;
mochi.as2.MochiServices._connected = true;
while (mochi.as2.MochiServices._sendChannel._queue.length > 0) {
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', mochi.as2.MochiServices._sendChannel._queue.shift());
}
}
};
v1.updateCopy = function (args) {
mochi.as2.MochiServices.send('coins_updateCopy', args, null, null);
};
v1.flush = function (error) {
var v1;
var v2;
while (mochi.as2.MochiServices._sendChannel._queue.length > 0) {
v1 = mochi.as2.MochiServices._sendChannel._queue.shift();
false;
if (v1.callbackID != null) {
v2 = mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID];
}
delete mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID];
if (error) {
mochi.as2.MochiServices.handleError(v1.args, v2.callbackObject, v2.callbackMethod);
}
}
};
v1.handleError = function (args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ['NotConnected']);
}
if (args.options != null && args.options.onError != null) {
args.options.onError.apply(null, ['NotConnected']);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = 'NotConnected';
if (callbackObject != null && typeof callbackMethod == 'string') {
callbackObject[callbackMethod](args);
} else {
if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
};
v1.send = function (methodName, args, callbackObject, callbackMethod) {
if (mochi.as2.MochiServices._connected) {
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID});
} else {
if (mochi.as2.MochiServices._clip == undefined || !mochi.as2.MochiServices._connecting) {
trace('Error: MochiServices not connected. Please call MochiServices.connect(). Function: ' + methodName);
mochi.as2.MochiServices.handleError(args, callbackObject, callbackMethod);
mochi.as2.MochiServices.flush(true);
return undefined;
} else {
mochi.as2.MochiServices._sendChannel._queue.push({'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID});
}
}
mochi.as2.MochiServices._listenChannel._callbacks[mochi.as2.MochiServices._listenChannel._nextcallbackID] = {'callbackObject': callbackObject, 'callbackMethod': callbackMethod};
++mochi.as2.MochiServices._listenChannel._nextcallbackID;
};
v1.urlOptions = function () {
var v5 = {};
var v6;
if (_root._url.indexOf('mochiad_options') != -1) {
var v2 = _root._url.indexOf('mochiad_options') + 'mochiad_options'.length + 1;
v6 = _root._url.substr(v2, _root._url.length);
} else {
if (_root.mochiad_options) {
v6 = _root.mochiad_options;
}
}
if (v6) {
var v4 = _root.mochiad_options.split('&');
var v2 = 0;
while (v2 < v4.length) {
var v3 = v4[v2].split('=');
v5[unescape(v3[0])] = unescape(v3[1]);
++v2;
}
}
return v5;
};
v1.warnID = function (bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace('WARNING: ' + (leaderboard ? 'board' : 'game') + ' ID is not the appropriate length');
return undefined;
} else {
if (bid == '1e113c7239048b3f') {
if (leaderboard) {
trace('WARNING: Using testing board ID');
} else {
trace('WARNING: Using testing board ID as game ID');
}
return undefined;
} else {
if (bid == '84993a1de4031cd8') {
if (leaderboard) {
trace('WARNING: Using testing game ID as board ID');
} else {
trace('WARNING: Using testing game ID');
}
return undefined;
}
}
}
var v1 = 0;
while (v1 < bid.length) {
switch (bid.charAt(v1)) {
if (bid.charAt(v1) !== 'f') {
} else {
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
case 'a':
case 'b':
case 'c':
break;
case 'd':
case 'e':
}
default:
trace('WARNING: Board ID contains illegal characters: ' + bid);
return undefined;
}
++v1;
}
};
v1.addLinkEvent = function (url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var v2 = new Object();
v2.mav = mochi.as2.MochiServices.getVersion();
v2.swfv = btn.getSWFVersion() || 6;
v2.swfurl = btn._url;
v2.fv = System.capabilities.version;
v2.os = System.capabilities.os;
v2.lang = System.capabilities.language;
v2.scres = System.capabilities.screenResolutionX + 'x' + System.capabilities.screenResolutionY;
var s = '?';
var v3 = 0;
for (var v6 in v2) {
if (v3 != 0) {
s += '&';
}
++v3;
s = s + v6 + '=' + escape(v2[v6]);
}
if (!(mochi.as2.MochiServices.netupAttempted || mochi.as2.MochiServices._connected)) {
var ping = btn.createEmptyMovieClip('ping', 777);
var v7 = btn.createEmptyMovieClip('nettest', 778);
mochi.as2.MochiServices.netupAttempted = true;
ping.loadMovie('http://x.mochiads.com/linkping.swf?t=' + getTimer());
v7.onEnterFrame = function () {
if (ping._totalframes > 0 && ping._totalframes == ping._framesloaded) {
delete this.onEnterFrame;
} else {
if (getTimer() - t0 > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
}
};
}
var v4 = btn.createEmptyMovieClip('clk', 1001);
v4._alpha = 0;
v4.beginFill(1044735);
v4.moveTo(0, 0);
v4.lineTo(0, btn._height);
v4.lineTo(btn._width, btn._height);
v4.lineTo(btn._width, 0);
v4.lineTo(0, 0);
v4.endFill();
v4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL(url + s, '_blank');
} else {
getURL(burl, '_blank');
}
if (onClick != undefined) {
onClick();
}
};
};
v1.setContainer = function (clip) {};
v1.stayOnTop = function (clip) {};
v1._servURL = 'http://www.mochiads.com/static/lib/services/';
v1._services = 'services.swf';
v1._mochiLC = 'MochiLC.swf';
v1._listenChannelName = '__ms_';
v1._connecting = false;
v1._connected = false;
v1.netup = true;
v1.netupAttempted = false;
v1.servicesSync = new mochi.as2.MochiSync();
v1.addProperty('childClip', v1.__get__childClip, function () {});
v1.addProperty('clip', v1.__get__clip, function () {});
v1.addProperty('comChannelName', function () {}, v1.__set__comChannelName);
v1.addProperty('connected', v1.__get__connected, function () {});
v1.addProperty('id', v1.__get__id, function () {});
v1.addProperty('isNetworkAvailable', v1.__get__isNetworkAvailable, function () {});
ASSetPropFlags(mochi.as2.MochiServices.prototype, null, 1);
}
#endinitclip
}
movieClip 1047 __Packages.mochi.as2.MochiEventDispatcher {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiEventDispatcher) {
var v1 = function () {
this.eventTable = {};
};
mochi.as2.MochiEventDispatcher = v1;
var v2 = v1.prototype;
v2.buildDelegate = function (thisObject, thatObject) {
var v2 = {'thisObject': thisObject, 'thatObject': thatObject};
if (thatObject != undefined) {
var funct = (typeof thatObject == 'string') ? thisObject[thatObject] : thatObject;
v2.delegate = function (args) {
funct.call(thisObject, args);
};
return v2;
}
v2.delegate = thisObject;
return v2;
};
v2.compareDelegate = function (d_A, d_B) {
if (d_A.thisObject != d_B.thisObject || d_A.thatObject != d_B.thatObject) {
return false;
}
return true;
};
v2.addEventListener = function (event, thisObject, thatObject) {
this.removeEventListener(event, thisObject, thatObject);
this.eventTable[event].push(this.buildDelegate(thisObject, thatObject));
};
v2.removeEventListener = function (event, thisObject, thatObject) {
var v3 = this.buildDelegate(thisObject, thatObject);
if (this.eventTable[event] == undefined) {
this.eventTable[event] = [];
return undefined;
}
for (var v4 in this.eventTable[event]) {
if (!this.compareDelegate(this.eventTable[event][v4], v3)) {
continue;
}
this.eventTable[event].splice(Number(v4), 1);
}
};
v2.triggerEvent = function (event, args) {
if (this.eventTable[event] == undefined) {
return undefined;
}
for (var v4 in this.eventTable[event]) {
this.eventTable[event][v4].delegate(args);
}
};
ASSetPropFlags(mochi.as2.MochiEventDispatcher.prototype, null, 1);
}
#endinitclip
}
movieClip 1048 __Packages.mochi.as2.MochiEvents {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiEvents) {
var v1 = function () {};
mochi.as2.MochiEvents = v1;
var v2 = v1.prototype;
v1.getVersion = function () {
return mochi.as2.MochiServices.getVersion();
};
v1.startSession = function (achievementID) {
mochi.as2.MochiServices.send('events_beginSession', {'achievementID': achievementID}, null, null);
};
v1.setNotifications = function (clip, style) {
var v2 = {};
for (var v3 in style) {
v2[v3] = style[v3];
}
v2.clip = clip;
mochi.as2.MochiServices.send('events_setNotifications', v2, null, null);
};
v1.addEventListener = function (eventType, thisObject, thatObject) {
mochi.as2.MochiEvents._dispatcher.addEventListener(eventType, thisObject, thatObject);
};
v1.triggerEvent = function (eventType, args) {
mochi.as2.MochiEvents._dispatcher.triggerEvent(eventType, args);
};
v1.removeEventListener = function (eventType, thisObject, thatObject) {
mochi.as2.MochiEvents._dispatcher.removeEventListener(eventType, thisObject, thatObject);
};
v1.startPlay = function (tag) {
if (tag == undefined) {
tag = 'gameplay';
}
mochi.as2.MochiServices.send('events_setRoundID', {'tag': String(tag)}, null, null);
};
v1.endPlay = function () {
mochi.as2.MochiServices.send('events_clearRoundID', null, null, null);
};
v1.trackEvent = function (tag, value) {
mochi.as2.MochiServices.send('events_trackEvent', {'tag': tag, 'value': value}, null, null);
};
v1.ACHIEVEMENT_RECEIVED = 'AchievementReceived';
v1.ALIGN_TOP_LEFT = 'ALIGN_TL';
v1.ALIGN_TOP = 'ALIGN_T';
v1.ALIGN_TOP_RIGHT = 'ALIGN_TR';
v1.ALIGN_LEFT = 'ALIGN_L';
v1.ALIGN_CENTER = 'ALIGN_C';
v1.ALIGN_RIGHT = 'ALIGN_R';
v1.ALIGN_BOTTOM_LEFT = 'ALIGN_BL';
v1.ALIGN_BOTTOM = 'ALIGN_B';
v1.ALIGN_BOTTOM_RIGHT = 'ALIGN_BR';
v1.FORMAT_SHORT = 'ShortForm';
v1.FORMAT_LONG = 'LongForm';
v1._dispatcher = new mochi.as2.MochiEventDispatcher();
ASSetPropFlags(mochi.as2.MochiEvents.prototype, null, 1);
}
#endinitclip
}
movieClip 1049 __Packages.mochi.as2.MochiSocial {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiSocial) {
var v1 = function () {};
mochi.as2.MochiSocial = v1;
var v2 = v1.prototype;
v1.getVersion = function () {
return mochi.as2.MochiServices.getVersion();
};
v1.showLoginWidget = function (options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send('coins_showLoginWidget', {'options': options});
};
v1.hideLoginWidget = function () {
mochi.as2.MochiServices.send('coins_hideLoginWidget');
};
v1.requestLogin = function () {
mochi.as2.MochiServices.send('coins_requestLogin');
};
v1.getUserInfo = function () {
mochi.as2.MochiServices.send('coins_getUserInfo');
};
v1.saveUserProperties = function (properties) {
mochi.as2.MochiServices.send('coins_saveUserProperties', properties);
};
v1.addEventListener = function (eventType, delegate) {
mochi.as2.MochiSocial._dispatcher.addEventListener(eventType, delegate);
};
v1.triggerEvent = function (eventType, args) {
mochi.as2.MochiSocial._dispatcher.triggerEvent(eventType, args);
};
v1.removeEventListener = function (eventType, delegate) {
mochi.as2.MochiSocial._dispatcher.removeEventListener(eventType, delegate);
};
v1.LOGGED_IN = 'LoggedIn';
v1.LOGGED_OUT = 'LoggedOut';
v1.LOGIN_SHOW = 'LoginShow';
v1.LOGIN_HIDE = 'LoginHide';
v1.LOGIN_SHOWN = 'LoginShown';
v1.PROFILE_SHOW = 'ProfileShow';
v1.PROFILE_HIDE = 'ProfileHide';
v1.PROPERTIES_SAVED = 'PropertySaved';
v1.WIDGET_LOADED = 'WidgetLoaded';
v1.USER_INFO = 'UserInfo';
v1.ERROR = 'Error';
v1.IO_ERROR = 'IOError';
v1.NO_USER = 'NoUser';
v1.PROPERTIES_SIZE = 'PropertiesSize';
v1._dispatcher = new mochi.as2.MochiEventDispatcher();
ASSetPropFlags(mochi.as2.MochiSocial.prototype, null, 1);
}
#endinitclip
}
movieClip 1050 __Packages.mochi.as2.MochiScores {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiScores) {
var v1 = function () {};
mochi.as2.MochiScores = v1;
var v2 = v1.prototype;
v1.setBoardID = function (boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send('scores_setBoardID', {'boardID': boardID});
};
v1.showLeaderboard = function (options) {
options.clip = mochi.as2.MochiServices.clip;
if (options.clip != mochi.as2.MochiServices.__get__clip() || (mochi.as2.MochiServices.__get__childClip())._target == undefined) {
mochi.as2.MochiServices.disconnect();
trace('WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!');
trace('make sure MochiServices.connect is called as early in the application runtime as possible.');
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof options.name == 'object') {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else {
if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
}
var v1 = Number(options.score);
if (isNaN(v1)) {
trace('ERROR: Submitted score \'' + options.score + '\' will be rejected, score is \'Not a Number\'');
} else {
if (v1 == Number.NEGATIVE_INFINITY || v1 == Number.POSITIVE_INFINITY) {
trace('ERROR: Submitted score \'' + options.score + '\' will be rejected, score is an infinite');
} else {
if (Math.floor(v1) != v1) {
trace('WARNING: Submitted score \'' + options.score + '\' will be truncated');
}
options.score = v1;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
(mochi.as2.MochiServices.__get__clip()).stop();
}
if (options.onClose != null) {
mochi.as2.MochiScores.onClose = options.onClose;
} else {
mochi.as2.MochiScores.onClose = function () {
(mochi.as2.MochiServices.__get__clip()).play();
};
}
if (options.onError != null) {
mochi.as2.MochiScores.onError = options.onError;
} else {
mochi.as2.MochiScores.onError = mochi.as2.MochiScores.onClose;
}
if (options.boardID == null) {
if (mochi.as2.MochiScores.boardID != null) {
options.boardID = mochi.as2.MochiScores.boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace('[MochiScores] NOTE: Security Sandbox Violation errors below are normal');
mochi.as2.MochiServices.send('scores_showLeaderboard', {'options': options}, null, mochi.as2.MochiScores.doClose);
};
v1.closeLeaderboard = function () {
mochi.as2.MochiServices.send('scores_closeLeaderboard');
};
v1.getPlayerInfo = function (callbackObj, callbackMethod) {
mochi.as2.MochiServices.send('scores_getPlayerInfo', null, callbackObj, callbackMethod);
};
v1.submit = function (score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace('ERROR: Submitted score \'' + String(score) + '\' will be rejected, score is \'Not a Number\'');
} else {
if (score == Number.NEGATIVE_INFINITY || score == Number.POSITIVE_INFINITY) {
trace('ERROR: Submitted score \'' + String(score) + '\' will be rejected, score is an infinite');
} else {
if (Math.floor(score) != score) {
trace('WARNING: Submitted score \'' + String(score) + '\' will be truncated');
}
score = Number(score);
}
}
mochi.as2.MochiServices.send('scores_submit', {'score': score, 'name': name}, callbackObj, callbackMethod);
};
v1.requestList = function (callbackObj, callbackMethod) {
mochi.as2.MochiServices.send('scores_requestList', null, callbackObj, callbackMethod);
};
v1.scoresArrayToObjects = function (scores) {
var v5 = {};
var v1;
var v4;
var v2;
var v6;
for (var v8 in scores) {
if (typeof scores[v8] == 'object') {
if (scores[v8].cols != null && scores[v8].rows != null) {
v5[v8] = [];
v2 = scores[v8];
v4 = 0;
while (v4 < v2.rows.length) {
v6 = {};
v1 = 0;
while (v1 < v2.cols.length) {
v6[v2.cols[v1]] = v2.rows[v4][v1];
++v1;
}
v5[v8].push(v6);
++v4;
}
} else {
v5[v8] = {};
for (var v7 in scores[v8]) {
v5[v8][v7] = scores[v8][v7];
}
}
} else {
v5[v8] = scores[v8];
}
}
return v5;
};
v1.doClose = function (args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = 'IOError';
}
mochi.as2.MochiScores.onError.apply(null, [args.errorCode]);
} else {
mochi.as2.MochiScores.onClose.apply();
}
};
ASSetPropFlags(mochi.as2.MochiScores.prototype, null, 1);
}
#endinitclip
}
movieClip 1051 __Packages.mochi.as2.MochiDigits {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiDigits) {
var v1 = function (digit, index) {
this.Encoder = 0;
this.setValue(digit, index);
};
mochi.as2.MochiDigits = v1;
var v2 = v1.prototype;
v2.__get__value = function () {
return Number(this.toString());
};
v2.__set__value = function (v) {
this.setValue(v);
return this.__get__value();
};
v2.addValue = function (v) {
this.value += v;
};
v2.setValue = function (digit, index) {
var v3 = digit.toString();
if (index == undefined || isNaN(index)) {
index = 0;
}
this.Fragment = v3.charCodeAt(index++) ^ this.Encoder;
if (index < v3.length) {
this.Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
this.Sibling = null;
}
this.reencode();
};
v2.reencode = function () {
var v2 = int(2147483647 * Math.random());
this.Fragment ^= v2 ^ this.Encoder;
this.Encoder = v2;
};
v2.toString = function () {
var v2 = String.fromCharCode(this.Fragment ^ this.Encoder);
return (this.Sibling != null) ? v2.concat(this.Sibling.toString()) : v2;
};
v2.addProperty('value', v2.__get__value, v2.__set__value);
ASSetPropFlags(mochi.as2.MochiDigits.prototype, null, 1);
}
#endinitclip
}
movieClip 1052 __Packages.com.gskinner.sprites.CollisionDetection {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gskinner) {
_global.com.gskinner = new Object();
}
if (!_global.com.gskinner.sprites) {
_global.com.gskinner.sprites = new Object();
}
if (!_global.com.gskinner.sprites.CollisionDetection) {
var v1 = function () {};
com.gskinner.sprites.CollisionDetection = v1;
var v2 = v1.prototype;
v1.checkForCollision = function (p_clip1, p_clip2, p_alphaTolerance) {
if (p_alphaTolerance == undefined) {
p_alphaTolerance = 255;
}
var v10 = com.gskinner.sprites.CollisionDetection.getClipRect(p_clip1, _root);
var v9 = com.gskinner.sprites.CollisionDetection.getClipRect(p_clip2, _root);
if (!v10.intersects(v9)) {
return null;
}
var v4 = v10.intersection(v9);
var v6 = new flash.display.BitmapData(Math.ceil(v4.width), Math.ceil(v4.height), false);
var v3 = p_clip1.transform.matrix;
var v2 = p_clip1._parent;
while (v2 != _root) {
v3.concat(v2.transform.matrix);
v2 = v2._parent;
}
v3.tx -= v4.left;
v3.ty -= v4.top;
v6.draw(p_clip1, v3, new flash.geom.ColorTransform(1, 1, 1, 1, 255, -255, -255, p_alphaTolerance));
v3 = p_clip2.transform.matrix;
v2 = p_clip2._parent;
while (v2 != _root) {
v3.concat(v2.transform.matrix);
v2 = v2._parent;
}
v3.tx -= v4.left;
v3.ty -= v4.top;
v6.draw(p_clip2, v3, new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 255, p_alphaTolerance), 'difference');
var v5 = v6.getColorBoundsRect(4294967295.0, 4278255615.0);
v6.dispose();
if (v5.width == 0) {
return null;
}
v5.x += v4.left;
v5.y += v4.top;
return v5;
};
v1.getClipRect = function (clip, reference) {
if (reference == undefined) {
reference = clip._parent;
}
var v1 = clip.getBounds(reference);
return new flash.geom.Rectangle(v1.xMin, v1.yMin, v1.xMax - v1.xMin, v1.yMax - v1.yMin);
};
ASSetPropFlags(com.gskinner.sprites.CollisionDetection.prototype, null, 1);
}
#endinitclip
}
frame 2 {
stop();
}
movieClip 20 {
}
movieClip 21 {
}
movieClip 24 {
}
button 25 {
on (release) {
_root.texttodisplay = '';
_root.gotoAndPlay(5);
}
on (rollOver) {
_root.texttodisplay = 'CLICK HERE TO PLAY!';
}
on (rollOut) {
_root.texttodisplay = '';
}
}
movieClip 28 {
}
movieClip 29 {
frame 1 {
this._x = random(640);
this._y = random(280);
}
frame 52 {
gotoAndPlay(1);
}
}
movieClip 30 {
frame 1 {
this._x = random(640);
this._y = random(280);
}
frame 78 {
gotoAndPlay(1);
}
}
movieClip 31 {
frame 1 {
this._x = random(640);
this._y = random(280);
}
frame 106 {
gotoAndPlay(1);
}
}
movieClip 32 {
}
movieClip 34 {
frame 1 {
stop();
}
frame 46 {
stop();
}
}
frame 5 {
function levelsave() {
savefile.data.scoremultiplier = _root.scoremultiplier;
savefile.data.overallskyrats = _root.overallskyrats;
savefile.data.overallmice = _root.overallmice;
savefile.data.overallcheese = _root.overallcheese;
savefile.data.award1got = _root.award1got;
savefile.data.award2got = _root.award2got;
savefile.data.award3got = _root.award3got;
savefile.data.award4got = _root.award4got;
savefile.data.award5got = _root.award5got;
savefile.data.award6got = _root.award6got;
savefile.data.award7got = _root.award7got;
savefile.data.award8got = _root.award8got;
savefile.data.award9got = _root.award9got;
savefile.data.awardsgot = _root.awardsgot;
savefile.flush();
}
function levelinitialize() {
totalmiceshot = 0;
totalskyratsshot = 0;
totalshotstaken = 0;
scorex = 1;
accuracy = 0;
accuracytext = accuracy + '%';
bonus3available = true;
bonusamount = 500;
text4awards = '';
}
function calcaverage() {
_root.overallcheese += _root.totalcheeseshot;
_root.overallmice += _root.totalmiceshot;
_root.overallskyrats += _root.totalskyratsshot;
_root.averageaccuracy += _root.accuracy;
_root.averageaccuracytext = int(_root.averageaccuracy / _root.gamelevel) + '%';
_root.averageaccuracynum = int(_root.averageaccuracy / _root.gamelevel);
}
function checkifleveldone() {
if (_root.gamelevel == 1 && _root.totalmiceshot == 5 && _root.gamelevel1done == false) {
calcaverage();
_root.gamelevel1done = true;
gotoAndPlay(18);
}
if (_root.gamelevel == 2 && _root.totalmiceshot == 5 && _root.gamelevel2done == false) {
calcaverage();
_root.gamelevel2done = true;
gotoAndPlay(18);
}
if (_root.gamelevel == 3 && _root.totalmiceshot == 5 && _root.gamelevel3done == false) {
calcaverage();
_root.gamelevel3done = true;
gotoAndPlay(18);
}
if (_root.gamelevel == 4 && _root.totalmiceshot == 5 && _root.gamelevel4done == false) {
calcaverage();
_root.gamelevel4done = true;
gotoAndPlay(18);
}
if (_root.gamelevel == 5 && _root.totalmiceshot == 5 && _root.gamelevel5done == false) {
calcaverage();
_root.gamelevel5done = true;
gotoAndPlay(18);
}
if (_root.gamelevel == 6 && _root.totalmiceshot == 5 && _root.gamelevel6done == false) {
calcaverage();
_root.gamelevel6done = true;
gotoAndPlay(18);
}
if (_root.gamelevel == 7 && _root.totalmiceshot == 5 && _root.gamelevel7done == false) {
calcaverage();
_root.gamelevel7done = true;
gotoAndPlay(18);
}
if (_root.gamelevel == 8 && _root.totalmiceshot == 5 && _root.gamelevel8done == false) {
stopalltunes();
calcaverage();
_root.gamelevel8done = true;
gotoAndPlay(19);
}
}
function checkawards() {
if (_root.totalmiceshot == 1 && _root.award1got == false) {
_root.award1got = true;
_root.scoremultiplier += _root.multiplus;
_root.text4awards = 'AWARD - FIRST BLOOD';
_root.awardanim.gotoAndPlay('award');
++_root.awardsgot;
_root.playrandomdance();
}
if (_root.overallskyrats + _root.totalskyratsshot >= 10 && _root.award3got == false) {
_root.award3got = true;
_root.scoremultiplier += _root.multiplus;
_root.text4awards = 'AWARD - SKYRATTER';
_root.awardanim.gotoAndPlay('award');
++_root.awardsgot;
_root.playrandomdance();
}
if (_root.overallmice + _root.totalmiceshot >= 100 && _root.award6got == false) {
_root.award6got = true;
_root.scoremultiplier += _root.multiplus;
_root.text4awards = 'AWARD - MOUSEHUNTER';
_root.awardanim.gotoAndPlay('award');
++_root.awardsgot;
_root.playrandomdance();
}
if (_root.score >= 20000 && _root.award7got == false) {
_root.award7got = true;
_root.scoremultiplier += _root.multiplus;
_root.text4awards = 'AWARD - LOW HIGHSCORE';
_root.awardanim.gotoAndPlay('award');
++_root.awardsgot;
_root.playrandomdance();
}
if (_root.score >= 50000 && _root.award8got == false) {
_root.award8got = true;
_root.scoremultiplier += _root.multiplus;
_root.text4awards = 'AWARD - HIGH HIGHSCORE';
_root.awardanim.gotoAndPlay('award');
++_root.awardsgot;
_root.playrandomdance();
}
}
function addscore() {
_root.score += Math.floor(_root.mousepoints * _root.scorex * _root.scoremultiplier);
if (_root.scorex >= 1) {
++_root.scorex;
} else {
_root.scorex = 1;
}
}
function addcheesescore() {
_root.score += Math.floor(_root.cheesepoints * _root.scorex * _root.scoremultiplier);
}
function addskyratscore() {
_root.score += Math.floor(_root.skyratpoints * _root.scorex * _root.scoremultiplier);
}
function calcaccuracy() {
if (totalshotstaken > 0) {
accuracy = Math.floor((totalmiceshot / totalshotstaken) * 100);
accuracytext = accuracy + '%';
} else {
accuracy = 0;
}
}
function playrandomtune() {
randomtune = random(_root.awardsgot + 1);
trace('tune ' + randomtune);
if (randomtune <= 0) {
playtune1();
}
if (randomtune == 1) {
playtune2();
}
if (randomtune == 2) {
playtune3();
}
if (randomtune == 3) {
playtune4();
}
if (randomtune == 4) {
playtune5();
}
if (randomtune == 5) {
playtune6();
}
if (randomtune == 6) {
playtune7();
}
if (randomtune == 7) {
playtune8();
}
if (randomtune >= 8) {
playtune9();
}
}
function playtune1() {
_root.music.attachSound('weliketoparty');
_root.music.start(0, 9999);
}
function playtune2() {
_root.music.attachSound('iwannadancewithyou');
_root.music.start(0, 9999);
}
function playtune3() {
_root.music.attachSound('cheese');
_root.music.start(0, 9999);
}
function playtune4() {
_root.music.attachSound('cheeseinmymouth');
_root.music.start(0, 9999);
}
function playtune5() {
_root.music.attachSound('djstolemycheese');
_root.music.start(0, 9999);
}
function playtune6() {
_root.music.attachSound('nocheese');
_root.music.start(0, 9999);
}
function playtune7() {
_root.music.attachSound('canyoufeelthecheese');
_root.music.start(0, 9999);
}
function playtune8() {
_root.music.attachSound('eatsomecheese');
_root.music.start(0, 9999);
}
function playtune9() {
_root.music.attachSound('gayforcheese');
_root.music.start(0, 9999);
}
function playyouwon() {
_root.music.attachSound('youwon');
_root.music.start(0, 9999);
}
function stopalltunes() {
_root.music.stop();
}
function playClick() {
_root.globalSound.attachSound('click');
_root.globalSound.start();
}
function playexplode() {
_root.globalSound.attachSound('explode');
_root.globalSound.start();
}
function playshoot() {
_root.globalSound.attachSound('shoot');
_root.globalSound.start();
}
function playwhistle() {
_root.globalSound.attachSound('bomb');
_root.globalSound.start();
}
function stopwhistle() {
_root.globalSound.stop('bomb');
}
function playLaugh() {
_root.globalSound.attachSound('catlaugh');
_root.globalSound.start();
}
function playMeow() {
_root.globalSound.attachSound('catmeow');
_root.globalSound.start();
}
function mySiteLink() {
getURL('http://www.psionicgames.com', '_blank');
}
multiplus = 0.5;
totalcheeseshot = 0;
timeinseconds = 0;
Showclock = getTimer() / 1000;
texttodisplay = '';
score = 0;
gamelevel = 1;
averageaccuracynum = 0;
averageaccuracy = 0;
averageaccuracytext = '';
mousepoints = 50;
cheesepoints = 200;
skyratpoints = 500;
pigeonchance = 200;
skyratspeed = 5;
dancechance = 10;
gamelevel1done = false;
gamelevel2done = false;
gamelevel3done = false;
gamelevel4done = false;
gamelevel5done = false;
gamelevel6done = false;
gamelevel7done = false;
gamelevel8done = false;
gamelevel9done = false;
var savefile = SharedObject.getLocal('technomice');
scoremultiplier = savefile.data.scoremultiplier;
overallskyrats = savefile.data.overallskyrats;
overallmice = savefile.data.overallmice;
overallcheese = savefile.data.overallcheese;
award1got = savefile.data.award1got;
award2got = savefile.data.award2got;
award3got = savefile.data.award3got;
award4got = savefile.data.award4got;
award5got = savefile.data.award5got;
award6got = savefile.data.award6got;
award7got = savefile.data.award7got;
award8got = savefile.data.award8got;
award9got = savefile.data.award9got;
awardsgot = savefile.data.awardsgot;
if (savefile.data.overallmice == undefined) {
scoremultiplier = 0.5;
overallskyrats = 0;
overallmice = 0;
overallcheese = 0;
award1got = false;
award2got = false;
award3got = false;
award4got = false;
award5got = false;
award6got = false;
award7got = false;
award8got = false;
award9got = false;
awardsgot = 0;
}
var muted = false;
var overallvolume = 100;
var musicvolume = 100;
var music = new Sound(music_mc);
_root.music.setVolume(_root.musicvolume);
var globalSound = new Sound();
_root.globalSound.setVolume(_root.overallvolume);
var rightClick = new ContextMenu();
rightClick.hideBuiltInItems();
_root.menu = rightClick;
var mySiteLink = new ContextMenuItem('PsionicGames.com', mySiteLink);
rightClick.customItems.push(mySiteLink);
}
frame 5 {
_root.playtune7();
stop();
}
// unknown tag 88 length 67
movieClip 48 {
frame 1 {
randomphrase = random(8);
if (randomphrase <= 0) {
gotoAndStop(2);
}
if (randomphrase == 1) {
gotoAndStop(3);
}
if (randomphrase == 2) {
gotoAndStop(4);
}
if (randomphrase == 3) {
gotoAndStop(5);
}
if (randomphrase == 4) {
gotoAndStop(6);
}
if (randomphrase == 5) {
gotoAndStop(7);
}
if (randomphrase == 6) {
gotoAndStop(8);
}
if (randomphrase >= 7) {
gotoAndStop(9);
}
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
}
movieClip 423 {
frame 1 {
function playrandomdance() {
randomdancenum = Math.round(Math.random() * 3);
trace(randomdancenum);
if (randomdancenum == 0) {
gotoAndPlay(1);
}
if (randomdancenum == 1) {
gotoAndPlay(32);
}
if (randomdancenum == 2) {
gotoAndPlay(63);
}
if (randomdancenum == 3) {
gotoAndPlay(94);
}
}
function changedance() {
randomdancenum = Math.round(Math.random() * 3);
if (randomdancenum == 0) {
gotoAndPlay(1);
}
if (randomdancenum == 1) {
gotoAndPlay(32);
}
if (randomdancenum == 2) {
gotoAndPlay(63);
}
if (randomdancenum == 3) {
gotoAndPlay(94);
}
}
playrandomdance();
}
frame 31 {
gotoAndPlay(1);
changedance();
}
frame 62 {
gotoAndPlay(63);
changedance();
}
frame 93 {
gotoAndPlay(32);
changedance();
}
frame 124 {
gotoAndPlay(94);
changedance();
}
frame 125 {
_root.playMeow();
}
frame 155 {
gotoAndPlay(1);
}
frame 156 {
_root.playLaugh();
}
frame 186 {
gotoAndPlay(1);
}
}
movieClip 428 {
}
movieClip 429 {
frame 1 {
stop();
}
}
movieClip 434 {
}
button 435 {
on (release) {
_root.texttodisplay = '';
_root.timeinseconds = 0;
_root.Showclock = getTimer() / 1000;
_root.stopalltunes();
_root.gotoAndPlay(10);
}
on (rollOver) {
_root.texttodisplay = 'Start Game?';
}
on (rollOut, dragOut) {
_root.texttodisplay = '';
}
}
movieClip 438 {
}
button 439 {
on (release) {
_root.texttodisplay = '';
getURL('http://www.psionicgames.com', '_blank');
}
on (rollOver) {
_root.texttodisplay = 'PLAY MORE GAMES?';
}
on (rollOut) {
_root.texttodisplay = '';
}
}
movieClip 442 {
}
button 443 {
on (release) {
_root.texttodisplay = '';
awardspage.gotoAndPlay(2);
}
on (rollOver) {
_root.texttodisplay = 'VIEW YOUR AWARDS?';
}
on (rollOut) {
_root.texttodisplay = '';
}
}
movieClip 446 {
}
button 447 {
on (release) {
_root.texttodisplay = '';
var o = {'n': [4, 7, 3, 1, 13, 13, 4, 10, 5, 9, 13, 8, 15, 7, 2, 13], 'f': function (i, s) {
if (s.length == 16) {
return s;
}
return this.f(i + 1, s + this.n[i].toString(16));
}};
var boardID = o.f(0, '');
mochi.as2.MochiScores.showLeaderboard({'boardID': '4731dd4a59d8f72d', 'width': 640, 'height': 480, 'onClose': function () {
gotoAndStop(5);
}});
}
on (rollOver) {
_root.texttodisplay = 'View Online Scores?';
}
on (rollOut) {
_root.texttodisplay = '';
}
}
movieClip 450 {
}
button 451 {
on (release) {
if (_root.awardsgot >= 3) {
_root.texttodisplay = '';
_parent.biospage.gotoAndPlay(2);
} else {
_root.texttodisplay = 'GET 3 AWARDS TO UNLOCK!';
}
}
on (rollOver) {
if (_root.awardsgot >= 3) {
_root.texttodisplay = 'VIEW BIO\'S?';
} else {
_root.texttodisplay = 'GET 3 AWARDS TO UNLOCK!';
}
}
on (rollOut) {
_root.texttodisplay = '';
}
}
movieClip 452 {
}
button 455 {
on (rollOver) {
_root.texttodisplay = '640 x 480 pixels only.';
}
on (rollOut) {
_root.texttodisplay = '';
}
}
button 459 {
on (release) {
nextFrame();
}
on (rollOver) {
_root.texttodisplay = 'Click to Continue?';
}
on (rollOut, dragOut) {
_root.texttodisplay = '';
}
}
movieClip 462 {
frame 1 {
_root.texttodisplay = '';
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
_root.texttodisplay = '';
stop();
}
}
movieClip 465 {
}
button 467 {
on (rollOver) {
if (_root.muted == false) {
_root.texttodisplay = 'Sound Off';
} else {
_root.texttodisplay = 'Sound On';
}
}
on (rollOut, dragOut) {
_root.texttodisplay = '';
}
on (release) {
if (_root.muted == false) {
_root.muted = true;
_root.overallvolume = 0;
_root.globalSound.setVolume(_root.overallvolume);
} else {
if (_root.muted == true) {
root.playClick();
_root.muted = false;
_root.overallvolume = 100;
_root.globalSound.setVolume(_root.overallvolume);
}
}
}
}
movieClip 470 {
}
button 472 {
on (rollOver) {
_root.texttodisplay = 'Change Music?';
}
on (rollOut, dragOut) {
_root.texttodisplay = '';
}
on (release) {
_root.stopalltunes();
_root.playrandomtune();
}
}
movieClip 477 {
}
button 478 {
on (release) {
gotoAndStop(1);
}
}
movieClip 481 {
}
movieClip 484 {
}
movieClip 487 {
}
movieClip 490 {
}
movieClip 493 {
}
movieClip 496 {
}
movieClip 499 {
}
movieClip 502 {
}
movieClip 505 {
}
button 507 {
on (rollOver) {
_root.texttodisplay = 'KILL 1 MOUSE, EASY!';
}
on (rollOut, dragOut) {
_root.texttodisplay = '';
}
}
button 508 {
on (rollOver) {
_root.texttodisplay = 'COMPLETE GAME IN UNDER 6 MINUTES.';
}
on (rollOut, dragOut) {
_root.texttodisplay = '';
}
}
button 509 {
on (rollOver) {
_root.texttodisplay = 'KILL > 10 SKYRATS.';
}
on (rollOut, dragOut) {
_root.texttodisplay = '';
}
}
button 510 {
on (rollOver) {
_root.texttodisplay = 'GET ALL 8 CHEESES IN ONE GAME!';
}
on (rollOut, dragOut) {
_root.texttodisplay = '';
}
}
button 511 {
on (rollOver) {
_root.texttodisplay = 'COMPLETE WITH > 60% AVERAGE ACCURACY.';
}
on (rollOut, dragOut) {
_root.texttodisplay = '';
}
}
button 512 {
on (rollOver) {
_root.texttodisplay = 'KILL > 100 MICE.';
}
on (rollOut, dragOut) {
_root.texttodisplay = '';
}
}
button 513 {
on (rollOver) {
_root.texttodisplay = 'SCORE > 20,000.';
}
on (rollOut, dragOut) {
_root.texttodisplay = '';
}
}
button 514 {
on (rollOver) {
_root.texttodisplay = 'SCORE > 50,000.';
}
on (rollOut, dragOut) {
_root.texttodisplay = '';
}
}
button 515 {
on (rollOver) {
_root.texttodisplay = 'COMPLETE A LEVEL WITH 100% ACCURACY.';
}
on (rollOut, dragOut) {
_root.texttodisplay = '';
}
}
movieClip 516 {
frame 1 {
stop();
}
frame 2 {
stop();
}
instance of movieClip 481 {
onClipEvent (enterFrame) {
if (_root.award1got == true) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance of movieClip 484 {
onClipEvent (enterFrame) {
if (_root.award2got == true) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance of movieClip 487 {
onClipEvent (enterFrame) {
if (_root.award3got == true) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance of movieClip 490 {
onClipEvent (enterFrame) {
if (_root.award4got == true) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance of movieClip 493 {
onClipEvent (enterFrame) {
if (_root.award5got == true) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance of movieClip 496 {
onClipEvent (enterFrame) {
if (_root.award6got == true) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance of movieClip 499 {
onClipEvent (enterFrame) {
if (_root.award7got == true) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance of movieClip 502 {
onClipEvent (enterFrame) {
if (_root.award8got == true) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance of movieClip 505 {
onClipEvent (enterFrame) {
if (_root.award9got == true) {
this._visible = true;
} else {
this._visible = false;
}
}
}
}
movieClip 517 {
instance mortargun of movieClip 429 {
}
instance of movieClip 452 {
onClipEvent (enterFrame) {
if (_root.awardsgot >= 3) {
_alpha = 100;
} else {
_alpha = 50;
}
}
}
}
movieClip 533 {
frame 1 {
stop();
}
}
frame 10 {
_root.playrandomtune();
_root.levelinitialize();
stop();
}
movieClip 538 {
}
movieClip 540 {
}
movieClip 545 {
}
movieClip 920 {
frame 1 {
}
frame 1 {
function playrandomdance() {
randomdancenum = Math.round(Math.random() * _root.awardsgot);
trace(randomdancenum);
if (randomdancenum == 0) {
gotoAndPlay(2);
}
if (randomdancenum == 1) {
gotoAndPlay(22);
}
if (randomdancenum == 2) {
gotoAndPlay(43);
}
if (randomdancenum == 3) {
gotoAndPlay(64);
}
if (randomdancenum == 4) {
gotoAndPlay(85);
}
if (randomdancenum == 5) {
gotoAndPlay(106);
}
if (randomdancenum == 6) {
gotoAndPlay(127);
}
if (randomdancenum == 7) {
gotoAndPlay(148);
}
if (randomdancenum >= 8) {
gotoAndPlay(169);
}
}
function changedance() {
randomdancenum = Math.round(Math.random() * _root.awardsgot);
if (random(_root.dancechance) < 1) {
if (randomdancenum == 0) {
gotoAndPlay(2);
}
if (randomdancenum == 1) {
gotoAndPlay(22);
}
if (randomdancenum == 2) {
gotoAndPlay(43);
}
if (randomdancenum == 3) {
gotoAndPlay(64);
}
if (randomdancenum == 4) {
gotoAndPlay(85);
}
if (randomdancenum == 5) {
gotoAndPlay(106);
}
if (randomdancenum == 6) {
gotoAndPlay(127);
}
if (randomdancenum == 7) {
gotoAndPlay(148);
}
if (randomdancenum >= 8) {
gotoAndPlay(169);
}
}
}
playrandomdance();
}
frame 21 {
gotoAndPlay(2);
changedance();
}
frame 42 {
gotoAndPlay(22);
changedance();
}
frame 63 {
gotoAndPlay(43);
changedance();
}
frame 84 {
gotoAndPlay(64);
changedance();
}
frame 105 {
gotoAndPlay(85);
changedance();
}
frame 126 {
gotoAndPlay(106);
changedance();
}
frame 147 {
gotoAndPlay(127);
changedance();
}
frame 168 {
gotoAndPlay(148);
changedance();
}
frame 189 {
gotoAndPlay(169);
changedance();
}
}
movieClip 923 {
}
movieClip 926 {
}
movieClip 927 {
}
movieClip 930 {
}
movieClip 933 {
frame 1 {
stop();
}
}
movieClip 935 {
frame 1 {
if (_root.scorex == 4 && _root.bonus3available == true) {
_root.bonus3available = false;
_parent.displaybonus();
}
}
frame 2 {
gotoAndPlay(1);
}
}
movieClip 938 {
frame 1 {
stop();
}
}
movieClip 941 {
frame 1 {
stop();
}
}
movieClip 943 {
}
movieClip 947 {
}
button 950 {
on (release) {
_root.texttodisplay = '';
gotoAndStop(2);
}
on (rollOver) {
_root.texttodisplay = 'CLICK TO START.';
}
on (rollOut, dragOut) {
_root.texttodisplay = '';
}
}
movieClip 951 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 952 {
frame 1 {
function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) {
var v7 = 0;
while (v7 < explosionParticleAmount) {
var v8 = bitmapsArray[random(bitmapsArray.length)];
var v4 = flash.display.BitmapData.loadBitmap(v8);
var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth());
var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth());
v3._x = -v4.width / 2;
v3._y = -v4.height / 2;
v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never');
v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2;
v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2;
var v6 = random(particleSize);
v2._xscale = v6;
v2._yscale = v6;
v2.speed = random(speed) + speed;
v2.speedAlpha = random(speedAlpha) + speedAlpha;
v2.onEnterFrame = function () {
this._xscale += this.speed;
this._yscale += this.speed;
this._alpha -= this.speedAlpha;
if (this._alpha <= 0) {
delete this.onEnterFrame;
removeMovieClip(this);
}
};
++v7;
}
}
function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) {
var v7 = 0;
while (v7 < tempParticle_mcAmount) {
var v8 = particleBitmapsArray[random(particleBitmapsArray.length)];
var v5 = flash.display.BitmapData.loadBitmap(v8);
var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth());
var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth());
v3._x = -v5.width / 2;
v3._y = -v5.height / 2;
v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never');
v2._x = targetX;
v2._y = targetY;
v2._rotation = random(360);
v2._alpha = random(50) + 50;
v2._xscale = particleSize;
v2._yscale = particleSize;
v2.boundyLeft = target._x - tempParticle_mcRange;
v2.boundyTop = target._y - tempParticle_mcRange;
v2.boundyRight = target._x + tempParticle_mcRange;
v2.boundyBottom = target._y + tempParticle_mcRange;
v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed);
v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed);
v2.speedX *= tempParticle_mcMaxSpeed;
v2.speedY *= tempParticle_mcMaxSpeed;
v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed;
v2.onEnterFrame = function () {
this._alpha -= this.fadeSpeed;
this._x += this.speedX;
this._y += this.speedY;
if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) {
this.removeMovieClip();
}
};
++v7;
}
}
function explode(tX, tY) {
createExplosion(tX - 10, tY - 20, _root, 10, 15, 250, 3, 5);
_root.playexplode();
_root.stopwhistle();
createParticles(tX - 10, tY - 20, _root, 50, 200, 50, 5, 5);
}
var bitmapsArray;
var particleBitmapsArray;
bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png'];
particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png'];
}
frame 1 {
bullet.onEnterFrame = function () {
with (this) {
_x += xStep;
_y += yStep;
yStep += gravity;
if (_y > 490) {
_root.stopwhistle();
bullet._visible = false;
canshoot = true;
_root.calcaccuracy();
}
}
};
}
frame 1 {
function displaybonus() {
_root.score += _root.bonusamount * _root.scoremultiplier;
btext.gotoAndPlay('bonus');
}
function displayskyratbonus() {
btextskyrat.gotoAndPlay('skyrat');
}
function displaycheesebonus() {
btextcheesey.gotoAndPlay('cheesey');
}
}
frame 1 {
onMouseMove = function () {
updateAfterEvent();
xdiff = trgt._x - mortargun._x;
ydiff = trgt._y - mortargun._y;
angle = Math.atan2(ydiff, xdiff);
angle = 360 + angle * 180 / Math.PI;
if (angle < 295 && angle > 245) {
mortargun._rotation = angle;
}
};
}
frame 1 {
function shoot() {
bulletSpeed = 8;
bullet.gravity = 0.5;
xd = trgt._x - mortargun._x;
yd = trgt._y - mortargun._y;
dist = Math.sqrt(xd * xd + yd * yd);
flight = Math.ceil(dist / bulletSpeed);
bullet._x = mortargun._x;
bullet._y = mortargun._y - 10;
bullet.xStep = xd / flight;
bullet.yStep = yd / flight;
bullet.yStep -= flight * bullet.gravity / 2;
bullet._visible = true;
mortargun.gotoAndPlay('smoke');
}
function catsayno() {
catanims.gotoAndPlay(125);
}
function catsayyes() {
catanims.gotoAndPlay(156);
}
function incscorex() {
if (_root.scorex >= 1) {
++_root.scorex;
} else {
_root.scorex = 1;
_root.bonus3available = true;
}
}
canshoot = true;
howmanytokill = 5;
killed = 0;
}
instance bghit1 of movieClip 538 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200)) {
_parent.explode(_parent.bullet._x, _parent.bullet._y);
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.scorex = 1;
canshoot = true;
_root.calcaccuracy();
_parent.catsayno();
}
}
}
instance mortargun of movieClip 429 {
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_parent.explode(this._x + 45, this._y + 45);
_root.canshoot = true;
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 927 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
flying = false;
}
onClipEvent (enterFrame) {
if (flying == false && random(_root.pigeonchance) < 1) {
this._x = 700;
flying = true;
this._visible = true;
thisactive = true;
thishitable = true;
}
if (this._x > -100 && flying == true) {
this._x -= _root.skyratspeed;
} else {
this._x = 800;
flying = false;
thisactive = true;
thishitable = true;
}
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addskyratscore();
_parent.explode(this._x, this._y + 20);
_root.canshoot = true;
_parent.displayskyratbonus();
flying == false;
++_root.totalskyratsshot;
--_root.totalshotstaken;
_root.calcaccuracy();
_parent.catsayyes();
}
}
}
instance of movieClip 930 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addcheesescore();
_parent.explode(this._x, this._y);
canshoot = true;
++_root.totalcheeseshot;
--_root.totalshotstaken;
_root.calcaccuracy();
_parent.displaycheesebonus();
_parent.catsayyes();
}
}
}
instance trgt of movieClip 947 {
onClipEvent (enterFrame) {
this._x = _root._xmouse;
if (_root._ymouse <= 150) {
this._y = _root._ymouse;
}
}
onClipEvent (release) {
if (_parent.canshoot == true) {
_parent.canshoot = false;
_parent.shoot();
++_root.totalshotstaken;
_root.playshoot();
_root.playwhistle();
}
}
}
}
instance glevel1 of movieClip 952 {
onClipEvent (enterFrame) {
_root.checkawards();
_root.checkifleveldone();
}
}
movieClip 955 {
}
instance of movieClip 955 {
onClipEvent (rollOver) {
_root.texttodisplay = 'Accuracy!';
}
onClipEvent (rollOut, dragOut) {
_root.texttodisplay = '';
}
}
movieClip 957 {
}
instance of movieClip 957 {
onClipEvent (rollOver) {
_root.texttodisplay = 'SCORE!';
}
onClipEvent (rollOut, dragOut) {
_root.texttodisplay = '';
}
}
movieClip 958 {
}
instance timercode of movieClip 958 {
onClipEvent (enterFrame) {
_root.timertext.text = _root.showtime;
_root.showtimes = getTimer() / 1000 - _root.Showclock;
_root.secs = Math.floor(_root.showtimes);
_root.mins = Math.floor(_root.secs / 60);
_root.secsback = _root.secs - 60 * _root.mins;
if (_root.secsback < 10) {
_root.secsback = '0' + _root.secsback;
}
_root.mytime = _root.mins + ':' + _root.secsback;
_root.showtime = _root.mytime;
_root.timeinseconds = _root.secs;
}
}
frame 11 {
_root.playrandomtune();
_root.levelinitialize();
stop();
}
movieClip 964 {
}
movieClip 965 {
frame 1 {
function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) {
var v7 = 0;
while (v7 < explosionParticleAmount) {
var v8 = bitmapsArray[random(bitmapsArray.length)];
var v4 = flash.display.BitmapData.loadBitmap(v8);
var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth());
var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth());
v3._x = -v4.width / 2;
v3._y = -v4.height / 2;
v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never');
v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2;
v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2;
var v6 = random(particleSize);
v2._xscale = v6;
v2._yscale = v6;
v2.speed = random(speed) + speed;
v2.speedAlpha = random(speedAlpha) + speedAlpha;
v2.onEnterFrame = function () {
this._xscale += this.speed;
this._yscale += this.speed;
this._alpha -= this.speedAlpha;
if (this._alpha <= 0) {
delete this.onEnterFrame;
removeMovieClip(this);
}
};
++v7;
}
}
function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) {
var v7 = 0;
while (v7 < tempParticle_mcAmount) {
var v8 = particleBitmapsArray[random(particleBitmapsArray.length)];
var v5 = flash.display.BitmapData.loadBitmap(v8);
var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth());
var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth());
v3._x = -v5.width / 2;
v3._y = -v5.height / 2;
v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never');
v2._x = targetX;
v2._y = targetY;
v2._rotation = random(360);
v2._alpha = random(50) + 50;
v2._xscale = particleSize;
v2._yscale = particleSize;
v2.boundyLeft = target._x - tempParticle_mcRange;
v2.boundyTop = target._y - tempParticle_mcRange;
v2.boundyRight = target._x + tempParticle_mcRange;
v2.boundyBottom = target._y + tempParticle_mcRange;
v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed);
v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed);
v2.speedX *= tempParticle_mcMaxSpeed;
v2.speedY *= tempParticle_mcMaxSpeed;
v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed;
v2.onEnterFrame = function () {
this._alpha -= this.fadeSpeed;
this._x += this.speedX;
this._y += this.speedY;
if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) {
this.removeMovieClip();
}
};
++v7;
}
}
function explode(tX, tY) {
createExplosion(tX - 10, tY - 20, _root, 10, 15, 250, 3, 5);
_root.playexplode();
_root.stopwhistle();
createParticles(tX - 10, tY - 20, _root, 50, 200, 50, 5, 5);
}
var bitmapsArray;
var particleBitmapsArray;
bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png'];
particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png'];
}
frame 1 {
bullet.onEnterFrame = function () {
with (this) {
_x += xStep;
_y += yStep;
yStep += gravity;
if (_y > 490) {
_root.stopwhistle();
bullet._visible = false;
canshoot = true;
_root.calcaccuracy();
}
}
};
}
frame 1 {
function displaybonus() {
_root.score += _root.bonusamount * _root.scoremultiplier;
btext.gotoAndPlay('bonus');
}
function displayskyratbonus() {
btextskyrat.gotoAndPlay('skyrat');
}
function displaycheesebonus() {
btextcheesey.gotoAndPlay('cheesey');
}
}
frame 1 {
onMouseMove = function () {
updateAfterEvent();
xdiff = trgt._x - mortargun._x;
ydiff = trgt._y - mortargun._y;
angle = Math.atan2(ydiff, xdiff);
angle = 360 + angle * 180 / Math.PI;
if (angle < 295 && angle > 245) {
mortargun._rotation = angle;
}
};
}
frame 1 {
function shoot() {
bulletSpeed = 8;
bullet.gravity = 0.5;
xd = trgt._x - mortargun._x;
yd = trgt._y - mortargun._y;
dist = Math.sqrt(xd * xd + yd * yd);
flight = Math.ceil(dist / bulletSpeed);
bullet._x = mortargun._x;
bullet._y = mortargun._y - 10;
bullet.xStep = xd / flight;
bullet.yStep = yd / flight;
bullet.yStep -= flight * bullet.gravity / 2;
bullet._visible = true;
mortargun.gotoAndPlay('smoke');
}
function catsayno() {
catanims.gotoAndPlay(125);
}
function catsayyes() {
catanims.gotoAndPlay(156);
}
function incscorex() {
if (_root.scorex >= 1) {
++_root.scorex;
} else {
_root.scorex = 1;
_root.bonus3available = true;
}
}
canshoot = true;
howmanytokill = 5;
killed = 0;
}
instance bghit2 of movieClip 964 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200)) {
_parent.explode(_parent.bullet._x, _parent.bullet._y);
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.scorex = 1;
canshoot = true;
_root.calcaccuracy();
_parent.catsayno();
}
}
}
instance mortargun of movieClip 429 {
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_parent.explode(this._x + 45, this._y + 45);
_root.canshoot = true;
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 927 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
flying = false;
}
onClipEvent (enterFrame) {
if (flying == false && random(_root.pigeonchance) < 1) {
this._x = 700;
flying = true;
this._visible = true;
thisactive = true;
thishitable = true;
}
if (this._x > -100 && flying == true) {
this._x -= _root.skyratspeed;
} else {
this._x = 800;
flying = false;
thisactive = true;
thishitable = true;
}
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addskyratscore();
_parent.explode(this._x, this._y + 20);
_root.canshoot = true;
_parent.displayskyratbonus();
--_root.totalshotstaken;
flying == false;
++_root.totalskyratsshot;
_root.calcaccuracy();
_parent.catsayyes();
}
}
}
instance of movieClip 930 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addcheesescore();
_parent.explode(this._x, this._y);
canshoot = true;
--_root.totalshotstaken;
++_root.totalcheeseshot;
_root.calcaccuracy();
_parent.displaycheesebonus();
_parent.catsayyes();
}
}
}
instance trgt of movieClip 947 {
onClipEvent (enterFrame) {
this._x = _root._xmouse;
if (_root._ymouse <= 150) {
this._y = _root._ymouse;
}
}
onClipEvent (release) {
if (_parent.canshoot == true) {
_parent.canshoot = false;
_parent.shoot();
++_root.totalshotstaken;
_root.playshoot();
_root.playwhistle();
}
}
}
}
instance glevel2 of movieClip 965 {
onClipEvent (enterFrame) {
_root.checkawards();
_root.checkifleveldone();
}
}
frame 12 {
_root.playrandomtune();
_root.levelinitialize();
stop();
}
movieClip 970 {
}
movieClip 971 {
frame 1 {
function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) {
var v7 = 0;
while (v7 < explosionParticleAmount) {
var v8 = bitmapsArray[random(bitmapsArray.length)];
var v4 = flash.display.BitmapData.loadBitmap(v8);
var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth());
var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth());
v3._x = -v4.width / 2;
v3._y = -v4.height / 2;
v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never');
v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2;
v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2;
var v6 = random(particleSize);
v2._xscale = v6;
v2._yscale = v6;
v2.speed = random(speed) + speed;
v2.speedAlpha = random(speedAlpha) + speedAlpha;
v2.onEnterFrame = function () {
this._xscale += this.speed;
this._yscale += this.speed;
this._alpha -= this.speedAlpha;
if (this._alpha <= 0) {
delete this.onEnterFrame;
removeMovieClip(this);
}
};
++v7;
}
}
function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) {
var v7 = 0;
while (v7 < tempParticle_mcAmount) {
var v8 = particleBitmapsArray[random(particleBitmapsArray.length)];
var v5 = flash.display.BitmapData.loadBitmap(v8);
var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth());
var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth());
v3._x = -v5.width / 2;
v3._y = -v5.height / 2;
v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never');
v2._x = targetX;
v2._y = targetY;
v2._rotation = random(360);
v2._alpha = random(50) + 50;
v2._xscale = particleSize;
v2._yscale = particleSize;
v2.boundyLeft = target._x - tempParticle_mcRange;
v2.boundyTop = target._y - tempParticle_mcRange;
v2.boundyRight = target._x + tempParticle_mcRange;
v2.boundyBottom = target._y + tempParticle_mcRange;
v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed);
v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed);
v2.speedX *= tempParticle_mcMaxSpeed;
v2.speedY *= tempParticle_mcMaxSpeed;
v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed;
v2.onEnterFrame = function () {
this._alpha -= this.fadeSpeed;
this._x += this.speedX;
this._y += this.speedY;
if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) {
this.removeMovieClip();
}
};
++v7;
}
}
function explode(tX, tY) {
createExplosion(tX - 10, tY - 20, _root, 10, 15, 250, 3, 5);
_root.playexplode();
_root.stopwhistle();
createParticles(tX - 10, tY - 20, _root, 50, 200, 50, 5, 5);
}
var bitmapsArray;
var particleBitmapsArray;
bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png'];
particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png'];
}
frame 1 {
bullet.onEnterFrame = function () {
with (this) {
_x += xStep;
_y += yStep;
yStep += gravity;
if (_y > 490) {
_root.stopwhistle();
bullet._visible = false;
canshoot = true;
_root.calcaccuracy();
}
}
};
}
frame 1 {
function displaybonus() {
_root.score += _root.bonusamount * _root.scoremultiplier;
btext.gotoAndPlay('bonus');
}
function displayskyratbonus() {
btextskyrat.gotoAndPlay('skyrat');
}
function displaycheesebonus() {
btextcheesey.gotoAndPlay('cheesey');
}
}
frame 1 {
onMouseMove = function () {
updateAfterEvent();
xdiff = trgt._x - mortargun._x;
ydiff = trgt._y - mortargun._y;
angle = Math.atan2(ydiff, xdiff);
angle = 360 + angle * 180 / Math.PI;
if (angle < 295 && angle > 245) {
mortargun._rotation = angle;
}
};
}
frame 1 {
function shoot() {
bulletSpeed = 8;
bullet.gravity = 0.5;
xd = trgt._x - mortargun._x;
yd = trgt._y - mortargun._y;
dist = Math.sqrt(xd * xd + yd * yd);
flight = Math.ceil(dist / bulletSpeed);
bullet._x = mortargun._x;
bullet._y = mortargun._y - 10;
bullet.xStep = xd / flight;
bullet.yStep = yd / flight;
bullet.yStep -= flight * bullet.gravity / 2;
bullet._visible = true;
mortargun.gotoAndPlay('smoke');
}
function catsayno() {
catanims.gotoAndPlay(125);
}
function catsayyes() {
catanims.gotoAndPlay(156);
}
function incscorex() {
if (_root.scorex >= 1) {
++_root.scorex;
} else {
_root.scorex = 1;
_root.bonus3available = true;
}
}
canshoot = true;
howmanytokill = 5;
killed = 0;
}
instance bghit of movieClip 970 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200)) {
_parent.explode(_parent.bullet._x, _parent.bullet._y);
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.scorex = 1;
canshoot = true;
_root.calcaccuracy();
_parent.catsayno();
}
}
}
instance mortargun of movieClip 429 {
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_parent.explode(this._x + 45, this._y + 45);
_root.canshoot = true;
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 927 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
flying = false;
}
onClipEvent (enterFrame) {
if (flying == false && random(_root.pigeonchance) < 1) {
this._x = 700;
flying = true;
this._visible = true;
thisactive = true;
thishitable = true;
}
if (this._x > -100 && flying == true) {
this._x -= _root.skyratspeed;
} else {
this._x = 800;
flying = false;
thisactive = true;
thishitable = true;
}
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addskyratscore();
_parent.explode(this._x, this._y + 20);
_root.canshoot = true;
_parent.displayskyratbonus();
--_root.totalshotstaken;
flying == false;
++_root.totalskyratsshot;
_root.calcaccuracy();
_parent.catsayyes();
}
}
}
instance of movieClip 930 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addcheesescore();
_parent.explode(this._x, this._y);
canshoot = true;
--_root.totalshotstaken;
++_root.totalcheeseshot;
_root.calcaccuracy();
_parent.displaycheesebonus();
_parent.catsayyes();
}
}
}
instance trgt of movieClip 947 {
onClipEvent (enterFrame) {
this._x = _root._xmouse;
if (_root._ymouse <= 150) {
this._y = _root._ymouse;
}
}
onClipEvent (release) {
if (_parent.canshoot == true) {
_parent.canshoot = false;
_parent.shoot();
++_root.totalshotstaken;
_root.playshoot();
_root.playwhistle();
}
}
}
}
instance glevel3 of movieClip 971 {
onClipEvent (enterFrame) {
_root.checkawards();
_root.checkifleveldone();
}
}
frame 13 {
_root.playrandomtune();
_root.levelinitialize();
stop();
}
movieClip 976 {
}
movieClip 977 {
frame 1 {
function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) {
var v7 = 0;
while (v7 < explosionParticleAmount) {
var v8 = bitmapsArray[random(bitmapsArray.length)];
var v4 = flash.display.BitmapData.loadBitmap(v8);
var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth());
var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth());
v3._x = -v4.width / 2;
v3._y = -v4.height / 2;
v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never');
v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2;
v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2;
var v6 = random(particleSize);
v2._xscale = v6;
v2._yscale = v6;
v2.speed = random(speed) + speed;
v2.speedAlpha = random(speedAlpha) + speedAlpha;
v2.onEnterFrame = function () {
this._xscale += this.speed;
this._yscale += this.speed;
this._alpha -= this.speedAlpha;
if (this._alpha <= 0) {
delete this.onEnterFrame;
removeMovieClip(this);
}
};
++v7;
}
}
function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) {
var v7 = 0;
while (v7 < tempParticle_mcAmount) {
var v8 = particleBitmapsArray[random(particleBitmapsArray.length)];
var v5 = flash.display.BitmapData.loadBitmap(v8);
var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth());
var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth());
v3._x = -v5.width / 2;
v3._y = -v5.height / 2;
v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never');
v2._x = targetX;
v2._y = targetY;
v2._rotation = random(360);
v2._alpha = random(50) + 50;
v2._xscale = particleSize;
v2._yscale = particleSize;
v2.boundyLeft = target._x - tempParticle_mcRange;
v2.boundyTop = target._y - tempParticle_mcRange;
v2.boundyRight = target._x + tempParticle_mcRange;
v2.boundyBottom = target._y + tempParticle_mcRange;
v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed);
v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed);
v2.speedX *= tempParticle_mcMaxSpeed;
v2.speedY *= tempParticle_mcMaxSpeed;
v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed;
v2.onEnterFrame = function () {
this._alpha -= this.fadeSpeed;
this._x += this.speedX;
this._y += this.speedY;
if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) {
this.removeMovieClip();
}
};
++v7;
}
}
function explode(tX, tY) {
createExplosion(tX - 10, tY - 20, _root, 10, 15, 250, 3, 5);
_root.playexplode();
_root.stopwhistle();
createParticles(tX - 10, tY - 20, _root, 50, 200, 50, 5, 5);
}
var bitmapsArray;
var particleBitmapsArray;
bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png'];
particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png'];
}
frame 1 {
bullet.onEnterFrame = function () {
with (this) {
_x += xStep;
_y += yStep;
yStep += gravity;
if (_y > 490) {
_root.stopwhistle();
bullet._visible = false;
canshoot = true;
_root.calcaccuracy();
}
}
};
}
frame 1 {
function displaybonus() {
_root.score += _root.bonusamount * _root.scoremultiplier;
btext.gotoAndPlay('bonus');
}
function displayskyratbonus() {
btextskyrat.gotoAndPlay('skyrat');
}
function displaycheesebonus() {
btextcheesey.gotoAndPlay('cheesey');
}
}
frame 1 {
onMouseMove = function () {
updateAfterEvent();
xdiff = trgt._x - mortargun._x;
ydiff = trgt._y - mortargun._y;
angle = Math.atan2(ydiff, xdiff);
angle = 360 + angle * 180 / Math.PI;
if (angle < 295 && angle > 245) {
mortargun._rotation = angle;
}
};
}
frame 1 {
function shoot() {
bulletSpeed = 8;
bullet.gravity = 0.5;
xd = trgt._x - mortargun._x;
yd = trgt._y - mortargun._y;
dist = Math.sqrt(xd * xd + yd * yd);
flight = Math.ceil(dist / bulletSpeed);
bullet._x = mortargun._x;
bullet._y = mortargun._y - 10;
bullet.xStep = xd / flight;
bullet.yStep = yd / flight;
bullet.yStep -= flight * bullet.gravity / 2;
bullet._visible = true;
mortargun.gotoAndPlay('smoke');
}
function catsayno() {
catanims.gotoAndPlay(125);
}
function catsayyes() {
catanims.gotoAndPlay(156);
}
function incscorex() {
if (_root.scorex >= 1) {
++_root.scorex;
} else {
_root.scorex = 1;
_root.bonus3available = true;
}
}
canshoot = true;
howmanytokill = 5;
killed = 0;
}
instance bghit of movieClip 976 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200)) {
_parent.explode(_parent.bullet._x, _parent.bullet._y);
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.scorex = 1;
canshoot = true;
_root.calcaccuracy();
_parent.catsayno();
}
}
}
instance mortargun of movieClip 429 {
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_parent.explode(this._x + 45, this._y + 45);
_root.canshoot = true;
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 927 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
flying = false;
}
onClipEvent (enterFrame) {
if (flying == false && random(_root.pigeonchance) < 1) {
this._x = 700;
flying = true;
this._visible = true;
thisactive = true;
thishitable = true;
}
if (this._x > -100 && flying == true) {
this._x -= _root.skyratspeed;
} else {
this._x = 800;
flying = false;
thisactive = true;
thishitable = true;
}
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addskyratscore();
_parent.explode(this._x, this._y + 20);
_root.canshoot = true;
_parent.displayskyratbonus();
--_root.totalshotstaken;
flying == false;
++_root.totalskyratsshot;
_root.calcaccuracy();
_parent.catsayyes();
}
}
}
instance of movieClip 930 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addcheesescore();
_parent.explode(this._x, this._y);
canshoot = true;
--_root.totalshotstaken;
++_root.totalcheeseshot;
_root.calcaccuracy();
_parent.displaycheesebonus();
_parent.catsayyes();
}
}
}
instance trgt of movieClip 947 {
onClipEvent (enterFrame) {
this._x = _root._xmouse;
if (_root._ymouse <= 150) {
this._y = _root._ymouse;
}
}
onClipEvent (release) {
if (_parent.canshoot == true) {
_parent.canshoot = false;
_parent.shoot();
++_root.totalshotstaken;
_root.playshoot();
_root.playwhistle();
}
}
}
}
instance glevel4 of movieClip 977 {
onClipEvent (enterFrame) {
_root.checkawards();
_root.checkifleveldone();
}
}
frame 14 {
_root.playrandomtune();
_root.levelinitialize();
stop();
}
movieClip 982 {
}
movieClip 983 {
frame 1 {
function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) {
var v7 = 0;
while (v7 < explosionParticleAmount) {
var v8 = bitmapsArray[random(bitmapsArray.length)];
var v4 = flash.display.BitmapData.loadBitmap(v8);
var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth());
var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth());
v3._x = -v4.width / 2;
v3._y = -v4.height / 2;
v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never');
v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2;
v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2;
var v6 = random(particleSize);
v2._xscale = v6;
v2._yscale = v6;
v2.speed = random(speed) + speed;
v2.speedAlpha = random(speedAlpha) + speedAlpha;
v2.onEnterFrame = function () {
this._xscale += this.speed;
this._yscale += this.speed;
this._alpha -= this.speedAlpha;
if (this._alpha <= 0) {
delete this.onEnterFrame;
removeMovieClip(this);
}
};
++v7;
}
}
function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) {
var v7 = 0;
while (v7 < tempParticle_mcAmount) {
var v8 = particleBitmapsArray[random(particleBitmapsArray.length)];
var v5 = flash.display.BitmapData.loadBitmap(v8);
var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth());
var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth());
v3._x = -v5.width / 2;
v3._y = -v5.height / 2;
v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never');
v2._x = targetX;
v2._y = targetY;
v2._rotation = random(360);
v2._alpha = random(50) + 50;
v2._xscale = particleSize;
v2._yscale = particleSize;
v2.boundyLeft = target._x - tempParticle_mcRange;
v2.boundyTop = target._y - tempParticle_mcRange;
v2.boundyRight = target._x + tempParticle_mcRange;
v2.boundyBottom = target._y + tempParticle_mcRange;
v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed);
v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed);
v2.speedX *= tempParticle_mcMaxSpeed;
v2.speedY *= tempParticle_mcMaxSpeed;
v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed;
v2.onEnterFrame = function () {
this._alpha -= this.fadeSpeed;
this._x += this.speedX;
this._y += this.speedY;
if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) {
this.removeMovieClip();
}
};
++v7;
}
}
function explode(tX, tY) {
createExplosion(tX - 10, tY - 20, _root, 10, 15, 250, 3, 5);
_root.playexplode();
_root.stopwhistle();
createParticles(tX - 10, tY - 20, _root, 50, 200, 50, 5, 5);
}
var bitmapsArray;
var particleBitmapsArray;
bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png'];
particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png'];
}
frame 1 {
bullet.onEnterFrame = function () {
with (this) {
_x += xStep;
_y += yStep;
yStep += gravity;
if (_y > 490) {
_root.stopwhistle();
bullet._visible = false;
canshoot = true;
_root.calcaccuracy();
}
}
};
}
frame 1 {
function displaybonus() {
_root.score += _root.bonusamount * _root.scoremultiplier;
btext.gotoAndPlay('bonus');
}
function displayskyratbonus() {
btextskyrat.gotoAndPlay('skyrat');
}
function displaycheesebonus() {
btextcheesey.gotoAndPlay('cheesey');
}
}
frame 1 {
onMouseMove = function () {
updateAfterEvent();
xdiff = trgt._x - mortargun._x;
ydiff = trgt._y - mortargun._y;
angle = Math.atan2(ydiff, xdiff);
angle = 360 + angle * 180 / Math.PI;
if (angle < 295 && angle > 245) {
mortargun._rotation = angle;
}
};
}
frame 1 {
function shoot() {
bulletSpeed = 8;
bullet.gravity = 0.5;
xd = trgt._x - mortargun._x;
yd = trgt._y - mortargun._y;
dist = Math.sqrt(xd * xd + yd * yd);
flight = Math.ceil(dist / bulletSpeed);
bullet._x = mortargun._x;
bullet._y = mortargun._y - 10;
bullet.xStep = xd / flight;
bullet.yStep = yd / flight;
bullet.yStep -= flight * bullet.gravity / 2;
bullet._visible = true;
mortargun.gotoAndPlay('smoke');
}
function catsayno() {
catanims.gotoAndPlay(125);
}
function catsayyes() {
catanims.gotoAndPlay(156);
}
function incscorex() {
if (_root.scorex >= 1) {
++_root.scorex;
} else {
_root.scorex = 1;
_root.bonus3available = true;
}
}
canshoot = true;
howmanytokill = 5;
killed = 0;
}
instance bghit of movieClip 982 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200)) {
_parent.explode(_parent.bullet._x, _parent.bullet._y);
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.scorex = 1;
canshoot = true;
_root.calcaccuracy();
_parent.catsayno();
}
}
}
instance mortargun of movieClip 429 {
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_parent.explode(this._x + 45, this._y + 45);
_root.canshoot = true;
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 927 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
flying = false;
}
onClipEvent (enterFrame) {
if (flying == false && random(_root.pigeonchance) < 1) {
this._x = 700;
flying = true;
this._visible = true;
thisactive = true;
thishitable = true;
}
if (this._x > -100 && flying == true) {
this._x -= _root.skyratspeed;
} else {
this._x = 800;
flying = false;
thisactive = true;
thishitable = true;
}
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addskyratscore();
_parent.explode(this._x, this._y + 20);
_root.canshoot = true;
_parent.displayskyratbonus();
--_root.totalshotstaken;
flying == false;
++_root.totalskyratsshot;
_root.calcaccuracy();
_parent.catsayyes();
}
}
}
instance of movieClip 930 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addcheesescore();
_parent.explode(this._x, this._y);
canshoot = true;
--_root.totalshotstaken;
++_root.totalcheeseshot;
_root.calcaccuracy();
_parent.displaycheesebonus();
_parent.catsayyes();
}
}
}
instance trgt of movieClip 947 {
onClipEvent (enterFrame) {
this._x = _root._xmouse;
if (_root._ymouse <= 150) {
this._y = _root._ymouse;
}
}
onClipEvent (release) {
if (_parent.canshoot == true) {
_parent.canshoot = false;
_parent.shoot();
++_root.totalshotstaken;
_root.playshoot();
_root.playwhistle();
}
}
}
}
instance of movieClip 983 {
onClipEvent (enterFrame) {
_root.checkawards();
_root.checkifleveldone();
}
}
frame 15 {
_root.playrandomtune();
_root.levelinitialize();
stop();
}
movieClip 988 {
}
movieClip 989 {
frame 1 {
function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) {
var v7 = 0;
while (v7 < explosionParticleAmount) {
var v8 = bitmapsArray[random(bitmapsArray.length)];
var v4 = flash.display.BitmapData.loadBitmap(v8);
var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth());
var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth());
v3._x = -v4.width / 2;
v3._y = -v4.height / 2;
v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never');
v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2;
v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2;
var v6 = random(particleSize);
v2._xscale = v6;
v2._yscale = v6;
v2.speed = random(speed) + speed;
v2.speedAlpha = random(speedAlpha) + speedAlpha;
v2.onEnterFrame = function () {
this._xscale += this.speed;
this._yscale += this.speed;
this._alpha -= this.speedAlpha;
if (this._alpha <= 0) {
delete this.onEnterFrame;
removeMovieClip(this);
}
};
++v7;
}
}
function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) {
var v7 = 0;
while (v7 < tempParticle_mcAmount) {
var v8 = particleBitmapsArray[random(particleBitmapsArray.length)];
var v5 = flash.display.BitmapData.loadBitmap(v8);
var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth());
var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth());
v3._x = -v5.width / 2;
v3._y = -v5.height / 2;
v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never');
v2._x = targetX;
v2._y = targetY;
v2._rotation = random(360);
v2._alpha = random(50) + 50;
v2._xscale = particleSize;
v2._yscale = particleSize;
v2.boundyLeft = target._x - tempParticle_mcRange;
v2.boundyTop = target._y - tempParticle_mcRange;
v2.boundyRight = target._x + tempParticle_mcRange;
v2.boundyBottom = target._y + tempParticle_mcRange;
v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed);
v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed);
v2.speedX *= tempParticle_mcMaxSpeed;
v2.speedY *= tempParticle_mcMaxSpeed;
v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed;
v2.onEnterFrame = function () {
this._alpha -= this.fadeSpeed;
this._x += this.speedX;
this._y += this.speedY;
if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) {
this.removeMovieClip();
}
};
++v7;
}
}
function explode(tX, tY) {
createExplosion(tX - 10, tY - 20, _root, 10, 15, 250, 3, 5);
_root.playexplode();
_root.stopwhistle();
createParticles(tX - 10, tY - 20, _root, 50, 200, 50, 5, 5);
}
var bitmapsArray;
var particleBitmapsArray;
bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png'];
particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png'];
}
frame 1 {
bullet.onEnterFrame = function () {
with (this) {
_x += xStep;
_y += yStep;
yStep += gravity;
if (_y > 490) {
_root.stopwhistle();
bullet._visible = false;
canshoot = true;
_root.calcaccuracy();
}
}
};
}
frame 1 {
function displaybonus() {
_root.score += _root.bonusamount * _root.scoremultiplier;
btext.gotoAndPlay('bonus');
}
function displayskyratbonus() {
btextskyrat.gotoAndPlay('skyrat');
}
function displaycheesebonus() {
btextcheesey.gotoAndPlay('cheesey');
}
}
frame 1 {
onMouseMove = function () {
updateAfterEvent();
xdiff = trgt._x - mortargun._x;
ydiff = trgt._y - mortargun._y;
angle = Math.atan2(ydiff, xdiff);
angle = 360 + angle * 180 / Math.PI;
if (angle < 295 && angle > 245) {
mortargun._rotation = angle;
}
};
}
frame 1 {
function shoot() {
bulletSpeed = 8;
bullet.gravity = 0.5;
xd = trgt._x - mortargun._x;
yd = trgt._y - mortargun._y;
dist = Math.sqrt(xd * xd + yd * yd);
flight = Math.ceil(dist / bulletSpeed);
bullet._x = mortargun._x;
bullet._y = mortargun._y - 10;
bullet.xStep = xd / flight;
bullet.yStep = yd / flight;
bullet.yStep -= flight * bullet.gravity / 2;
bullet._visible = true;
mortargun.gotoAndPlay('smoke');
}
function catsayno() {
catanims.gotoAndPlay(125);
}
function catsayyes() {
catanims.gotoAndPlay(156);
}
function incscorex() {
if (_root.scorex >= 1) {
++_root.scorex;
} else {
_root.scorex = 1;
_root.bonus3available = true;
}
}
canshoot = true;
howmanytokill = 5;
killed = 0;
}
instance bghit of movieClip 988 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200)) {
_parent.explode(_parent.bullet._x, _parent.bullet._y);
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.scorex = 1;
canshoot = true;
_root.calcaccuracy();
_parent.catsayno();
}
}
}
instance mortargun of movieClip 429 {
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_parent.explode(this._x + 45, this._y + 45);
_root.canshoot = true;
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 927 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
flying = false;
}
onClipEvent (enterFrame) {
if (flying == false && random(_root.pigeonchance) < 1) {
this._x = 700;
flying = true;
this._visible = true;
thisactive = true;
thishitable = true;
}
if (this._x > -100 && flying == true) {
this._x -= _root.skyratspeed;
} else {
this._x = 800;
flying = false;
thisactive = true;
thishitable = true;
}
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addskyratscore();
_parent.explode(this._x, this._y + 20);
_root.canshoot = true;
_parent.displayskyratbonus();
--_root.totalshotstaken;
flying == false;
++_root.totalskyratsshot;
_root.calcaccuracy();
_parent.catsayyes();
}
}
}
instance of movieClip 930 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addcheesescore();
_parent.explode(this._x, this._y);
canshoot = true;
--_root.totalshotstaken;
++_root.totalcheeseshot;
_root.calcaccuracy();
_parent.displaycheesebonus();
_parent.catsayyes();
}
}
}
instance trgt of movieClip 947 {
onClipEvent (enterFrame) {
this._x = _root._xmouse;
if (_root._ymouse <= 150) {
this._y = _root._ymouse;
}
}
onClipEvent (release) {
if (_parent.canshoot == true) {
_parent.canshoot = false;
_parent.shoot();
++_root.totalshotstaken;
_root.playshoot();
_root.playwhistle();
}
}
}
}
instance of movieClip 989 {
onClipEvent (enterFrame) {
_root.checkawards();
_root.checkifleveldone();
}
}
frame 16 {
_root.playrandomtune();
_root.levelinitialize();
stop();
}
movieClip 994 {
}
movieClip 995 {
frame 1 {
function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) {
var v7 = 0;
while (v7 < explosionParticleAmount) {
var v8 = bitmapsArray[random(bitmapsArray.length)];
var v4 = flash.display.BitmapData.loadBitmap(v8);
var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth());
var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth());
v3._x = -v4.width / 2;
v3._y = -v4.height / 2;
v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never');
v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2;
v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2;
var v6 = random(particleSize);
v2._xscale = v6;
v2._yscale = v6;
v2.speed = random(speed) + speed;
v2.speedAlpha = random(speedAlpha) + speedAlpha;
v2.onEnterFrame = function () {
this._xscale += this.speed;
this._yscale += this.speed;
this._alpha -= this.speedAlpha;
if (this._alpha <= 0) {
delete this.onEnterFrame;
removeMovieClip(this);
}
};
++v7;
}
}
function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) {
var v7 = 0;
while (v7 < tempParticle_mcAmount) {
var v8 = particleBitmapsArray[random(particleBitmapsArray.length)];
var v5 = flash.display.BitmapData.loadBitmap(v8);
var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth());
var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth());
v3._x = -v5.width / 2;
v3._y = -v5.height / 2;
v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never');
v2._x = targetX;
v2._y = targetY;
v2._rotation = random(360);
v2._alpha = random(50) + 50;
v2._xscale = particleSize;
v2._yscale = particleSize;
v2.boundyLeft = target._x - tempParticle_mcRange;
v2.boundyTop = target._y - tempParticle_mcRange;
v2.boundyRight = target._x + tempParticle_mcRange;
v2.boundyBottom = target._y + tempParticle_mcRange;
v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed);
v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed);
v2.speedX *= tempParticle_mcMaxSpeed;
v2.speedY *= tempParticle_mcMaxSpeed;
v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed;
v2.onEnterFrame = function () {
this._alpha -= this.fadeSpeed;
this._x += this.speedX;
this._y += this.speedY;
if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) {
this.removeMovieClip();
}
};
++v7;
}
}
function explode(tX, tY) {
createExplosion(tX - 10, tY - 20, _root, 10, 15, 250, 3, 5);
_root.playexplode();
_root.stopwhistle();
createParticles(tX - 10, tY - 20, _root, 50, 200, 50, 5, 5);
}
var bitmapsArray;
var particleBitmapsArray;
bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png'];
particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png'];
}
frame 1 {
bullet.onEnterFrame = function () {
with (this) {
_x += xStep;
_y += yStep;
yStep += gravity;
if (_y > 490) {
_root.stopwhistle();
bullet._visible = false;
canshoot = true;
_root.calcaccuracy();
}
}
};
}
frame 1 {
function displaybonus() {
_root.score += _root.bonusamount * _root.scoremultiplier;
btext.gotoAndPlay('bonus');
}
function displayskyratbonus() {
btextskyrat.gotoAndPlay('skyrat');
}
function displaycheesebonus() {
btextcheesey.gotoAndPlay('cheesey');
}
}
frame 1 {
onMouseMove = function () {
updateAfterEvent();
xdiff = trgt._x - mortargun._x;
ydiff = trgt._y - mortargun._y;
angle = Math.atan2(ydiff, xdiff);
angle = 360 + angle * 180 / Math.PI;
if (angle < 295 && angle > 245) {
mortargun._rotation = angle;
}
};
}
frame 1 {
function shoot() {
bulletSpeed = 8;
bullet.gravity = 0.5;
xd = trgt._x - mortargun._x;
yd = trgt._y - mortargun._y;
dist = Math.sqrt(xd * xd + yd * yd);
flight = Math.ceil(dist / bulletSpeed);
bullet._x = mortargun._x;
bullet._y = mortargun._y - 10;
bullet.xStep = xd / flight;
bullet.yStep = yd / flight;
bullet.yStep -= flight * bullet.gravity / 2;
bullet._visible = true;
mortargun.gotoAndPlay('smoke');
}
function catsayno() {
catanims.gotoAndPlay(125);
}
function catsayyes() {
catanims.gotoAndPlay(156);
}
function incscorex() {
if (_root.scorex >= 1) {
++_root.scorex;
} else {
_root.scorex = 1;
_root.bonus3available = true;
}
}
canshoot = true;
howmanytokill = 5;
killed = 0;
}
instance of movieClip 994 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200)) {
_parent.explode(_parent.bullet._x, _parent.bullet._y);
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.scorex = 1;
canshoot = true;
_root.calcaccuracy();
_parent.catsayno();
}
}
}
instance mortargun of movieClip 429 {
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_parent.explode(this._x + 45, this._y + 45);
_root.canshoot = true;
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 927 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
flying = false;
}
onClipEvent (enterFrame) {
if (flying == false && random(_root.pigeonchance) < 1) {
this._x = 700;
flying = true;
this._visible = true;
thisactive = true;
thishitable = true;
}
if (this._x > -100 && flying == true) {
this._x -= _root.skyratspeed;
} else {
this._x = 800;
flying = false;
thisactive = true;
thishitable = true;
}
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addskyratscore();
_parent.explode(this._x, this._y + 20);
_root.canshoot = true;
_parent.displayskyratbonus();
--_root.totalshotstaken;
flying == false;
++_root.totalskyratsshot;
_root.calcaccuracy();
_parent.catsayyes();
}
}
}
instance of movieClip 930 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addcheesescore();
_parent.explode(this._x, this._y);
canshoot = true;
--_root.totalshotstaken;
++_root.totalcheeseshot;
_root.calcaccuracy();
_parent.displaycheesebonus();
_parent.catsayyes();
}
}
}
instance trgt of movieClip 947 {
onClipEvent (enterFrame) {
this._x = _root._xmouse;
if (_root._ymouse <= 150) {
this._y = _root._ymouse;
}
}
onClipEvent (release) {
if (_parent.canshoot == true) {
_parent.canshoot = false;
_parent.shoot();
++_root.totalshotstaken;
_root.playshoot();
_root.playwhistle();
}
}
}
}
instance of movieClip 995 {
onClipEvent (enterFrame) {
_root.checkawards();
_root.checkifleveldone();
}
}
frame 17 {
_root.playrandomtune();
_root.levelinitialize();
stop();
}
movieClip 1000 {
}
movieClip 1001 {
frame 1 {
function createExplosion(targetX, targetY, targetPath, explosionParticleAmount, explosionParticleRange, particleSize, speed, speedAlpha) {
var v7 = 0;
while (v7 < explosionParticleAmount) {
var v8 = bitmapsArray[random(bitmapsArray.length)];
var v4 = flash.display.BitmapData.loadBitmap(v8);
var v2 = targetPath.createEmptyMovieClip('main_holder' + targetPath.getNextHighestDepth(), targetPath.getNextHighestDepth());
var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth());
v3._x = -v4.width / 2;
v3._y = -v4.height / 2;
v3.attachBitmap(v4, v3.getNextHighestDepth(), 'never');
v2._x = targetX + random(explosionParticleRange) - explosionParticleRange / 2;
v2._y = targetY + random(explosionParticleRange) - explosionParticleRange / 2;
var v6 = random(particleSize);
v2._xscale = v6;
v2._yscale = v6;
v2.speed = random(speed) + speed;
v2.speedAlpha = random(speedAlpha) + speedAlpha;
v2.onEnterFrame = function () {
this._xscale += this.speed;
this._yscale += this.speed;
this._alpha -= this.speedAlpha;
if (this._alpha <= 0) {
delete this.onEnterFrame;
removeMovieClip(this);
}
};
++v7;
}
}
function createParticles(targetX, targetY, targetPath, tempParticle_mcAmount, tempParticle_mcRange, particleSize, tempParticle_mcMaxSpeed, tempParticle_mcMaxFadeSpeed) {
var v7 = 0;
while (v7 < tempParticle_mcAmount) {
var v8 = particleBitmapsArray[random(particleBitmapsArray.length)];
var v5 = flash.display.BitmapData.loadBitmap(v8);
var v2 = targetPath.createEmptyMovieClip('main_holder', targetPath.getNextHighestDepth());
var v3 = v2.createEmptyMovieClip('internal_holder', v2.getNextHighestDepth());
v3._x = -v5.width / 2;
v3._y = -v5.height / 2;
v3.attachBitmap(v5, v3.getNextHighestDepth(), 'never');
v2._x = targetX;
v2._y = targetY;
v2._rotation = random(360);
v2._alpha = random(50) + 50;
v2._xscale = particleSize;
v2._yscale = particleSize;
v2.boundyLeft = target._x - tempParticle_mcRange;
v2.boundyTop = target._y - tempParticle_mcRange;
v2.boundyRight = target._x + tempParticle_mcRange;
v2.boundyBottom = target._y + tempParticle_mcRange;
v2.speedX = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed);
v2.speedY = Math.random(tempParticle_mcMaxSpeed) - Math.random(tempParticle_mcMaxSpeed);
v2.speedX *= tempParticle_mcMaxSpeed;
v2.speedY *= tempParticle_mcMaxSpeed;
v2.fadeSpeed = Math.random(tempParticle_mcMaxFadeSpeed) * tempParticle_mcMaxFadeSpeed;
v2.onEnterFrame = function () {
this._alpha -= this.fadeSpeed;
this._x += this.speedX;
this._y += this.speedY;
if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) {
this.removeMovieClip();
}
};
++v7;
}
}
function explode(tX, tY) {
createExplosion(tX - 10, tY - 20, _root, 10, 15, 250, 3, 5);
_root.playexplode();
_root.stopwhistle();
createParticles(tX - 10, tY - 20, _root, 50, 200, 50, 5, 5);
}
var bitmapsArray;
var particleBitmapsArray;
bitmapsArray = ['effect-fire5.png', 'effect-fire6.png', 'effect-fire7.png', 'effect-fire8.png', 'effect-fire9.png'];
particleBitmapsArray = ['particle.jpg', 'particle1.png', 'particle5.png'];
}
frame 1 {
bullet.onEnterFrame = function () {
with (this) {
_x += xStep;
_y += yStep;
yStep += gravity;
if (_y > 490) {
_root.stopwhistle();
bullet._visible = false;
canshoot = true;
_root.calcaccuracy();
}
}
};
}
frame 1 {
function displaybonus() {
_root.score += _root.bonusamount * _root.scoremultiplier;
btext.gotoAndPlay('bonus');
}
function displayskyratbonus() {
btextskyrat.gotoAndPlay('skyrat');
}
function displaycheesebonus() {
btextcheesey.gotoAndPlay('cheesey');
}
}
frame 1 {
onMouseMove = function () {
updateAfterEvent();
xdiff = trgt._x - mortargun._x;
ydiff = trgt._y - mortargun._y;
angle = Math.atan2(ydiff, xdiff);
angle = 360 + angle * 180 / Math.PI;
if (angle < 295 && angle > 245) {
mortargun._rotation = angle;
}
};
}
frame 1 {
function shoot() {
bulletSpeed = 8;
bullet.gravity = 0.5;
xd = trgt._x - mortargun._x;
yd = trgt._y - mortargun._y;
dist = Math.sqrt(xd * xd + yd * yd);
flight = Math.ceil(dist / bulletSpeed);
bullet._x = mortargun._x;
bullet._y = mortargun._y - 10;
bullet.xStep = xd / flight;
bullet.yStep = yd / flight;
bullet.yStep -= flight * bullet.gravity / 2;
bullet._visible = true;
mortargun.gotoAndPlay('smoke');
}
function catsayno() {
catanims.gotoAndPlay(125);
}
function catsayyes() {
catanims.gotoAndPlay(156);
}
function incscorex() {
if (_root.scorex >= 1) {
++_root.scorex;
} else {
_root.scorex = 1;
_root.bonus3available = true;
}
}
canshoot = true;
howmanytokill = 5;
killed = 0;
}
instance bghit of movieClip 1000 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200)) {
_parent.explode(_parent.bullet._x, _parent.bullet._y);
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.scorex = 1;
canshoot = true;
_root.calcaccuracy();
_parent.catsayno();
}
}
}
instance mortargun of movieClip 429 {
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_parent.explode(this._x + 45, this._y + 45);
_root.canshoot = true;
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 920 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addscore();
_root.canshoot = true;
_parent.explode(this._x + 45, this._y + 45);
++_root.totalmiceshot;
_root.calcaccuracy();
++_root.killed;
_parent.catsayyes();
}
}
}
instance of movieClip 927 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
flying = false;
}
onClipEvent (enterFrame) {
if (flying == false && random(_root.pigeonchance) < 1) {
this._x = 700;
flying = true;
this._visible = true;
thisactive = true;
thishitable = true;
}
if (this._x > -100 && flying == true) {
this._x -= _root.skyratspeed;
} else {
this._x = 800;
flying = false;
thisactive = true;
thishitable = true;
}
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addskyratscore();
_parent.explode(this._x, this._y + 20);
_root.canshoot = true;
_parent.displayskyratbonus();
--_root.totalshotstaken;
flying == false;
++_root.totalskyratsshot;
_root.calcaccuracy();
_parent.catsayyes();
}
}
}
instance of movieClip 930 {
onClipEvent (load) {
thisactive = true;
thishitable = true;
}
onClipEvent (enterFrame) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _parent.bullet, 200) && thishitable == true) {
this._visible = false;
thishitable = false;
thisactive = false;
_parent.bullet._visible = false;
_parent.bullet._x = 800;
_parent.bullet._y = 800;
_root.addcheesescore();
_parent.explode(this._x, this._y);
canshoot = true;
--_root.totalshotstaken;
++_root.totalcheeseshot;
_root.calcaccuracy();
_parent.displaycheesebonus();
_parent.catsayyes();
}
}
}
instance trgt of movieClip 947 {
onClipEvent (enterFrame) {
this._x = _root._xmouse;
if (_root._ymouse <= 150) {
this._y = _root._ymouse;
}
}
onClipEvent (release) {
if (_parent.canshoot == true) {
_parent.canshoot = false;
_parent.shoot();
++_root.totalshotstaken;
_root.playshoot();
_root.playwhistle();
}
}
}
}
instance of movieClip 1001 {
onClipEvent (enterFrame) {
_root.checkawards();
_root.checkifleveldone();
}
}
frame 18 {
if (_root.accuracy == 100 && _root.award9got == false) {
_root.award9got = true;
_root.scoremultiplier += _root.multiplus;
_root.text4awards = 'AWARD - 100% ACCURACY';
_root.awardanim.gotoAndPlay('award');
++_root.awardsgot;
}
stop();
}
movieClip 1012 {
}
button 1013 {
on (rollOver) {
_root.texttodisplay = '\'SAVE\' AND CONTINUE?';
}
on (rollOut, dragOut) {
_root.texttodisplay = '';
}
on (release) {
_root.texttodisplay = '';
_root.levelsave();
if (_root.gamelevel == 1) {
_root.levelinitialize();
_root.stopalltunes();
_root.gamelevel = 2;
_root.gotoAndPlay(11);
}
if (_root.gamelevel == 2) {
_root.levelinitialize();
_root.stopalltunes();
_root.gamelevel = 3;
_root.gotoAndPlay(12);
}
if (_root.gamelevel == 3) {
_root.levelinitialize();
_root.stopalltunes();
_root.gamelevel = 4;
_root.gotoAndPlay(13);
}
if (_root.gamelevel == 4) {
_root.levelinitialize();
_root.stopalltunes();
_root.gamelevel = 5;
_root.gotoAndPlay(14);
}
if (_root.gamelevel == 5) {
_root.levelinitialize();
_root.stopalltunes();
_root.gamelevel = 6;
_root.gotoAndPlay(15);
}
if (_root.gamelevel == 6) {
_root.levelinitialize();
_root.stopalltunes();
_root.gamelevel = 7;
_root.gotoAndPlay(16);
}
if (_root.gamelevel == 7) {
_root.levelinitialize();
_root.stopalltunes();
_root.gamelevel = 8;
_root.gotoAndPlay(17);
}
}
}
movieClip 1022 {
}
frame 19 {
_root.playyouwon();
if (_root.timeinseconds <= 360 && _root.award2got == false) {
_root.award2got = true;
_root.scoremultiplier += _root.multiplus;
_root.text4awards = 'AWARD - SPEED FREAK!';
_root.awardanim.gotoAndPlay('award');
++_root.awardsgot;
}
if (_root.averageaccuracynum >= 60 && _root.award5got == false) {
_root.award5got = true;
_root.scoremultiplier += _root.multiplus;
_root.text4awards = 'AWARD - CRACKSHOT!';
_root.awardanim.gotoAndPlay('award');
++_root.awardsgot;
}
if (_root.totalcheeseshot >= 8 && _root.award4got == false) {
_root.award4got = true;
_root.scoremultiplier += _root.multiplus;
_root.text4awards = 'AWARD - CHEESE PLEASE!';
_root.awardanim.gotoAndPlay('award');
++_root.awardsgot;
}
stop();
}
movieClip 1025 {
}
button 1027 {
on (release) {
_root.texttodisplay = '';
_root.levelsave();
_root.stopalltunes();
_root.gotoAndPlay(5);
}
on (rollOver) {
_root.texttodisplay = '\'SAVE\' AND GO BACK TO MENU?';
}
on (rollOut, dragOut) {
_root.texttodisplay = '';
}
}
movieClip 1030 {
}
button 1031 {
on (release) {
_root.texttodisplay = '';
var o = {'n': [4, 7, 3, 1, 13, 13, 4, 10, 5, 9, 13, 8, 15, 7, 2, 13], 'f': function (i, s) {
if (s.length == 16) {
return s;
}
return this.f(i + 1, s + this.n[i].toString(16));
}};
var boardID = o.f(0, '');
mochi.as2.MochiScores.showLeaderboard({'boardID': '4731dd4a59d8f72d', 'width': 640, 'height': 480, 'score': _root.score, 'onClose': function () {
_root.stopalltunes();
_root.levelsave();
_root.gotoAndPlay(5);
}});
}
on (rollOver) {
_root.texttodisplay = 'SUBMIT YOUR HIGHSCORE?';
}
on (rollOut, dragOut) {
_root.texttodisplay = '';
}
}
movieClip 1039 {
instance timerstuff of movieClip 1025 {
onClipEvent (enterFrame) {
timertext.text = _root.showtime;
}
}
}
movieClip 1043 {
}
instance of movieClip 1043 {
onClipEvent (rollOver) {
_root.texttodisplay = 'Accuracy!';
}
onClipEvent (rollOut, dragOut) {
_root.texttodisplay = '';
}
}