Combined Code
// unknown tag 88 length 99
// unknown tag 88 length 68
movieClip 5 fps {
frame 1 {
updatecount = 0;
fps = 50;
var timeinit = new Date();
var lasttime = timeinit.getMilliseconds();
onEnterFrame = function () {
++updatecount;
if (updatecount > 10) {
updatecount = 0;
fps2 = Math.round(fps);
_root.qualswitch(fps2);
}
var v2 = new Date();
timepassed = v2.getMilliseconds() - lasttime >= 0 ? v2.getMilliseconds() - lasttime : 1000 + (v2.getMilliseconds() - lasttime);
fps = Math.round(10000 / timepassed) / 10;
lasttime = v2.getMilliseconds();
};
}
}
movieClip 9 {
}
// unknown tag 88 length 115
movieClip 15 {
}
button 18 {
on (press) {
getURL('http://coolbuddy.com/?from=zombytes', '_blank');
}
}
movieClip 19 {
}
movieClip 23 {
frame 1 {
stop();
}
frame 3 {
_root.gamepause = 1;
}
frame 24 {
}
frame 36 {
stop();
}
frame 57 {
_root.gamepause = 0;
}
}
movieClip 26 {
}
movieClip 27 {
frame 1 {
stop();
}
}
movieClip 30 {
}
movieClip 32 {
frame 1 {
stop();
}
}
movieClip 37 {
}
movieClip 38 {
frame 1 {
stop();
}
}
movieClip 40 {
frame 1 {
stop();
}
}
movieClip 41 {
frame 1 {
stop();
}
frame 150 {
if (mepause == 1) {
stop();
}
}
}
movieClip 45 {
frame 1 {
stop();
}
}
movieClip 48 {
}
movieClip 52 {
}
movieClip 53 {
}
movieClip 56 {
frame 1 {
stop();
}
}
movieClip 65 {
frame 1 {
stop();
}
}
movieClip 67 {
frame 1 {
stop();
}
frame 19 {
stop();
}
frame 29 {
stop();
}
frame 40 {
stop();
}
frame 50 {
stop();
}
frame 60 {
stop();
}
}
movieClip 75 {
frame 1 {
stop();
}
frame 13 {
gotoAndStop(1);
}
}
movieClip 76 {
}
movieClip 86 {
}
movieClip 87 {
frame 21 {
gotoAndPlay(1);
}
}
movieClip 88 {
frame 1 {
stop();
}
}
movieClip 91 {
}
movieClip 93 {
}
button 97 {
on (press) {
fx12 = new Sound(zoop);
fx12.attachSound('sfxswitch1');
fx12.stop('sfxswitch1');
fx12.start(0, 1);
_parent.menu1.gotoAndPlay('on');
_root.tools.pausemenu.gotoAndPlay('on');
}
}
button 99 {
on (press) {
fx12 = new Sound(zoop);
fx12.attachSound('sfxswitch1');
fx12.stop('sfxswitch1');
fx12.start(0, 1);
_parent.menu1.gotoAndPlay('off');
_root.tools.pausemenu.gotoAndPlay('off');
}
}
button 103 {
on (press) {
fx12 = new Sound(zoop);
fx12.attachSound('sfxswitch1');
fx12.stop('sfxswitch1');
fx12.start(0, 1);
play();
}
}
// unknown tag 88 length 69
movieClip 109 {
frame 1 {
stop();
if (_root.settingqual == 1) {
this.gotoAndStop(2);
} else {
if (_quality == 'LOW') {
this.gotoAndStop(3);
}
if (_quality == 'MEDIUM') {
this.gotoAndStop(4);
}
if (_quality == 'HIGH') {
this.gotoAndStop(5);
}
}
}
frame 2 {
_quality = 'high';
_root.settingqual = 1;
stop();
}
frame 3 {
_quality = 'LOW';
_root.settingqual = 0;
stop();
}
frame 4 {
_quality = 'MEDIUM';
stop();
}
frame 5 {
_quality = 'HIGH';
stop();
}
frame 6 {
gotoAndStop(2);
}
}
button 112 {
on (press) {
_root.helpbar.play();
}
}
movieClip 113 {
}
movieClip 116 {
frame 1 {
stop();
}
frame 12 {
Selection.setFocus(_root.tools.menu1.modcodes);
}
frame 12 {
stop();
}
frame 13 {
if (_root.helpbar._currentframe == 10) {
_root.helpbar.gotoAndPlay(11);
}
}
}
movieClip 119 {
}
movieClip 120 pickupitem3 {
frame 1 {
stop();
}
frame 17 {
stop();
}
}
movieClip 127 {
}
movieClip 128 {
frame 44 {
++_parent.time.text;
}
}
movieClip 132 {
}
movieClip 133 {
}
movieClip 134 {
frame 10 {
stop();
}
}
movieClip 136 {
}
movieClip 137 {
}
movieClip 141 {
}
movieClip 142 {
}
movieClip 144 {
frame 1 {
stop();
}
}
movieClip 148 {
frame 1 {
var main = new Sound(_root);
main.setVolume(100);
}
frame 2 {
var main = new Sound(_root);
main.setVolume(29);
}
frame 3 {
var main = new Sound(_root);
main.setVolume(0);
}
frame 4 {
gotoAndStop(1);
}
}
button 150 {
on (press) {
mutelogo.gotoAndStop(mutelogo._currentframe + 1);
}
}
movieClip 151 {
}
button 154 {
on (press) {
_root.tools.pausemenu.play();
}
}
button 156 {
on (press) {
play();
}
}
movieClip 158 {
frame 1 {
stop();
var main = new Sound(_root.musicbox);
main.setVolume(100);
}
frame 2 {
stop();
var main = new Sound(_root.musicbox);
main.setVolume(0);
}
}
button 160 {
on (press) {
_global.mover = 'menu';
_root.play();
}
}
movieClip 161 {
instance of movieClip 109 {
onClipEvent (load) {
if (_quality == 'low') {
this.gotoAndStop(1);
}
if (_quality == 'medium') {
this.gotoAndStop(2);
}
if (_quality == 'high') {
this.gotoAndStop(3);
}
}
}
}
movieClip 162 tools {
}
movieClip 165 {
}
movieClip 167 {
frame 1 {
stop();
}
}
movieClip 170 {
}
movieClip 172 {
}
movieClip 174 pickupitem7 {
instance of movieClip 167 {
onClipEvent (load) {
if (_global.pmode == 1) {
this.gotoAndStop('noshow');
}
}
}
frame 7 {
stop();
}
frame 76 {
++_root.lvlcount2;
}
frame 93 {
stop();
}
}
movieClip 176 {
}
movieClip 177 {
}
movieClip 179 pickupitem6 {
frame 1 {
stop();
}
frame 17 {
stop();
}
}
movieClip 185 {
}
movieClip 186 {
}
movieClip 192 {
}
movieClip 195 pickupitem5 {
frame 1 {
stop();
}
frame 17 {
stop();
}
}
movieClip 197 pickupitem4 {
frame 1 {
stop();
}
frame 17 {
stop();
}
}
movieClip 201 {
}
movieClip 202 {
frame 1 {
stop();
}
}
movieClip 205 pickupitem2 {
frame 1 {
stop();
}
frame 17 {
stop();
}
}
movieClip 206 {
}
movieClip 207 {
}
movieClip 208 {
}
movieClip 210 {
}
movieClip 211 {
}
movieClip 212 {
}
movieClip 213 {
frame 59 {
gotoAndPlay(1);
}
}
movieClip 214 powerups {
frame 1 {
stop();
}
}
movieClip 221 {
frame 107 {
stop();
}
}
movieClip 222 {
frame 1 {
stop();
}
}
movieClip 229 aliens {
frame 1 {
stop();
}
frame 21 {
stop();
}
frame 21 {
this.removeMovieClip();
}
}
movieClip 235 {
frame 1 {
stop();
}
}
movieClip 236 jets {
frame 20 {
stop();
}
}
movieClip 240 {
}
movieClip 259 bullet1 {
frame 1 {
stop();
}
frame 10 {
stop();
}
frame 20 {
stop();
}
frame 27 {
stop();
}
frame 35 {
tail_color.gotoAndStop(random(5));
}
frame 46 {
stop();
}
frame 71 {
stop();
}
frame 99 {
stop();
}
frame 127 {
stop();
}
frame 158 {
stop();
}
}
movieClip 261 pickupitem1 {
frame 1 {
stop();
}
frame 17 {
stop();
}
}
movieClip 262 {
}
movieClip 263 {
frame 1 {
stop();
}
}
movieClip 264 {
}
movieClip 265 {
frame 19 {
gotoAndPlay(1);
}
}
movieClip 266 {
}
movieClip 267 {
frame 39 {
gotoAndPlay(1);
}
}
movieClip 268 {
}
movieClip 269 {
frame 59 {
gotoAndPlay(1);
}
}
movieClip 270 life {
frame 1 {
stop();
}
}
movieClip 273 {
}
movieClip 274 star {
frame 1 {
stop();
}
}
movieClip 275 load_dots {
frame 1 {
stop();
}
}
frame 1 {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = '__mochibot__';
mbc = 'mochibot.com';
g = _global ? _global : _level0._root;
if (g[mb + swfid]) {
return g[mb + swfid];
}
s = System.security;
x = mc._root.getSWFVersion;
fv = x ? mc.getSWFVersion() : (_global ? 6 : 5);
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == 'localWithFile') {
return null;
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = (fv == 5) ? /:$version : System.capabilities.version;
u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : '');
lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv);
g[mb + 'level'] = lv;
if (fv == 5) {
res = '_level' + lv;
if (!eval(res)) {
loadMovieNum(u, lv);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
Stage.showMenu = false;
__com_mochibot__('278a3f18', this, 10301, true);
mochi.as2.MochiServices.connect('06aa06c7191b25f8');
var CPMStarContentSpotID = '9912Q3F23411F';
System.security.allowDomain('server.cpmstar.com');
adBox.loadMovie('http://server.cpmstar.com/adviewas2.swf?contentspotid=' + CPMStarContentSpotID);
}
movieClip 278 {
}
movieClip 280 {
}
movieClip 633 __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 634 __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 '4.1.2 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) {
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else {
if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
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);
}
};
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()) {
mochi.as2.MochiServices.onError('NotConnected');
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('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(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 'services':
mochi.as2.MochiServices.triggerEvent(pkg.event, pkg.args);
break;
case 'events':
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case 'coins':
mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case 'social':
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
}
};
mochi.as2.MochiServices._listenChannel.onError = function () {
mochi.as2.MochiServices.onError('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.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('NotConnected');
}
if (args.options != null && args.options.onError != null) {
args.options.onError('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':
break;
case 'b':
case 'c':
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://link.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.addEventListener = function (eventType, thisObject, thatObject) {
mochi.as2.MochiServices._dispatcher.addEventListener(eventType, thisObject, thatObject);
};
v1.triggerEvent = function (eventType, args) {
mochi.as2.MochiServices._dispatcher.triggerEvent(eventType, args);
};
v1.removeEventListener = function (eventType, thisObject, thatObject) {
mochi.as2.MochiServices._dispatcher.removeEventListener(eventType, thisObject, thatObject);
};
v1.CONNECTED = 'onConnected';
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._dispatcher = new mochi.as2.MochiEventDispatcher();
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 635 __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.getAchievements = function (properties) {
mochi.as2.MochiServices.send('events_getAchievements', properties);
};
v1.unlockAchievement = function (properties) {
mochi.as2.MochiServices.send('events_unlockAchievement', properties);
};
v1.startSession = function (achievementID) {
mochi.as2.MochiServices.send('events_beginSession', {'achievementID': achievementID}, null, null);
};
v1.showAwards = function (options) {
mochi.as2.MochiServices.send('events_showAwards', options, null, null);
};
v1.setNotifications = function (style) {
mochi.as2.MochiServices.send('events_setNotifications', style, 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.ACHIEVEMENTS_OWNED = 'AchievementOwned';
v1.ACHIEVEMENT_NEW = 'AchievementReceived';
v1.GAME_ACHIEVEMENTS = 'GameAchievements';
v1.ERROR = 'Error';
v1.IO_ERROR = 'IOError';
v1.IO_PENDING = 'IOPending';
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.FORMAT_NONE = 'NoForm';
v1._dispatcher = new mochi.as2.MochiEventDispatcher();
ASSetPropFlags(mochi.as2.MochiEvents.prototype, null, 1);
}
#endinitclip
}
movieClip 636 __Packages.mochi.as2.MochiCoins {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiCoins) {
var v1 = function () {};
mochi.as2.MochiCoins = v1;
var v2 = v1.prototype;
v1.getVersion = function () {
return mochi.as2.MochiServices.getVersion();
};
v1.showStore = function (options) {
mochi.as2.MochiServices.send('coins_showStore', {'options': options}, null, null);
};
v1.showItem = function (options) {
if (options == undefined || typeof options.item != 'string') {
trace('ERROR: showItem call must pass an Object with an item key');
return undefined;
}
mochi.as2.MochiServices.send('coins_showItem', {'options': options}, null, null);
};
v1.showVideo = function (options) {
if (options == undefined || typeof options.item != 'string') {
trace('ERROR: showVideo call must pass an Object with an item key');
return undefined;
}
mochi.as2.MochiServices.send('coins_showVideo', {'options': options}, null, null);
};
v1.getStoreItems = function () {
mochi.as2.MochiServices.send('coins_getStoreItems');
};
v1.requestFunding = function (properties) {
mochi.as2.MochiServices.send('social_requestFunding', properties);
};
v1.addEventListener = function (eventType, delegate) {
mochi.as2.MochiCoins._dispatcher.addEventListener(eventType, delegate);
};
v1.triggerEvent = function (eventType, args) {
mochi.as2.MochiCoins._dispatcher.triggerEvent(eventType, args);
};
v1.removeEventListener = function (eventType, delegate) {
mochi.as2.MochiCoins._dispatcher.removeEventListener(eventType, delegate);
};
v1.STORE_SHOW = 'StoreShow';
v1.STORE_HIDE = 'StoreHide';
v1.ITEM_OWNED = 'ItemOwned';
v1.ITEM_NEW = 'ItemNew';
v1.STORE_ITEMS = 'StoreItems';
v1.ERROR = 'Error';
v1.IO_ERROR = 'IOError';
v1.NO_USER = 'NoUser';
v1._dispatcher = new mochi.as2.MochiEventDispatcher();
ASSetPropFlags(mochi.as2.MochiCoins.prototype, null, 1);
}
#endinitclip
}
movieClip 637 __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('social_showLoginWidget', {'options': options});
};
v1.hideLoginWidget = function () {
mochi.as2.MochiServices.send('social_hideLoginWidget');
};
v1.requestLogin = function (properties) {
mochi.as2.MochiServices.send('social_requestLogin', properties);
};
v1.getFriendsList = function (properties) {
mochi.as2.MochiServices.send('social_getFriendsList', properties);
};
v1.showProfile = function (options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send('social_showProfile', options);
};
v1.postToStream = function (properties) {
mochi.as2.MochiServices.send('social_postToStream', properties);
};
v1.inviteFriends = function (properties) {
mochi.as2.MochiServices.send('social_inviteFriends', properties);
};
v1.requestFan = function (properties) {
mochi.as2.MochiServices.send('social_requestFan', properties);
};
v1.saveUserProperties = function (properties) {
mochi.as2.MochiServices.send('social_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.FRIEND_LIST = 'FriendsList';
v1.PROFILE_DATA = 'ProfileData';
v1.GAMEPLAY_DATA = 'GameplayData';
v1.ACTION_CANCELED = 'onCancel';
v1.ACTION_COMPLETE = 'onComplete';
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 638 __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()).stop();
};
}
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 639 __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
}
frame 2 {
logo1.swapDepths(90300);
details1.swapDepths(90320);
coollogo.swapDepths(90323);
hotty.swapDepths(90324);
newgame1 = 1;
}
movieClip 285 {
}
movieClip 287 {
frame 1 {
stop();
}
}
movieClip 288 {
}
frame 3 {
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
_root.loadBar.gotoAndStop(Math.round(getPercent * 100));
_root.txtloader.text = Math.round(getPercent * 100) + '%';
if (bytes_loaded == bytes_total) {
_root.gotoAndStop('nomenu');
}
}
frame 4 {
gotoAndPlay(3);
}
frame 5 {
logo1.removeMovieClip();
details1.removeMovieClip();
playbutton.swapDepths(90340);
}
movieClip 291 {
}
movieClip 292 {
frame 1 {
stop();
}
instance of movieClip 291 {
onClipEvent (press) {
_parent.play();
_root.musicbox.gotoAndStop('main');
}
}
frame 17 {
_root.play();
stop();
}
}
frame 6 {
playbutton.removeMovieClip();
adBox.removeMovieClip();
adholder.removeMovieClip();
coollogo.removeMovieClip();
hotty.removeMovieClip();
}
frame 8 {
_root.dotdynamic = 2;
stop();
}
movieClip 295 {
}
movieClip 297 {
}
movieClip 301 {
}
movieClip 303 {
}
movieClip 305 {
}
movieClip 307 {
}
movieClip 309 {
frame 298 {
_root.play();
}
}
frame 9 {
i = 1;
while (i <= 120) {
_root['star' + i].removeMovieClip();
++i;
}
_root.loadBar.removeMovieClip();
_root.details1.removeMovieClip();
coins = 0;
_root.stat_engine = 1;
_root.stat_guns = 1;
_root.stat_money = 0;
_root.stat_kills = 0;
_root.stat_hits = 0;
_root.stat_shots = 0;
_root.stat_round = 0;
_root.r_kills[0] = 0;
_root.r_coins[0] = 0;
_root.tutorial = 1;
var guns = [2000, 100000, 0, 0, 0, 0];
var gunstate = [2000, 1, 1, 1, 1, 1];
var weaponspeed = [2000, -10, 0, 0, 0, 0];
var gundammage = [2000, 3, 6, 10, 10, 10];
_root.bullgrade = 1;
var bullcolor = [1, 'b1', 'b2', 'b3', 'b4', 'b5', 'b6'];
_root.dammage = 10;
_root.grademine1 = 0;
_root.grademine2 = 0;
_root.grademine3 = 0;
_root.gradegun1 = 0;
_root.gradegun2 = 0;
_root.gradegun3 = 0;
_root.gradegun4 = 0;
_root.gradegun5 = 0;
_root.gunscount = 2;
stop();
}
movieClip 318 {
frame 104 {
stop();
}
}
button 320 {
on (press) {
getURL('http://coolbuddy.com/?from=zombytes', '_blank');
}
}
movieClip 326 {
frame 431 {
_root.play();
}
}
frame 10 {
function removethings() {
ui1.removeMovieClip();
man1.removeMovieClip();
manlegs.removeMovieClip();
combobox.removeMovieClip();
life.removeMovieClip();
i = 0;
while (i <= 60) {
_root['star' + i].removeMovieClip();
_root['bull' + i].removeMovieClip();
_root['aliens' + i].removeMovieClip();
_root['pickup' + i].removeMovieClip();
_root['star' + i].removeMovieClip();
++i;
}
}
removethings();
menuopeny.removeMovieClip();
menu1.removeMovieClip();
tools.removeMovieClip();
logo1.removeMovieClip();
details1.removeMovieClip();
adBox.removeMovieClip();
adholder.removeMovieClip();
stop();
}
movieClip 337 {
frame 1 {
stop();
}
frame 40 {
gotoAndStop(1);
}
frame 65 {
gotoAndStop(1);
}
frame 100 {
gotoAndStop(1);
}
frame 152 {
gotoAndStop(1);
}
}
instance back of movieClip 337 {
onClipEvent (load) {
countyme = 0;
randy = 1;
}
onClipEvent (enterFrame) {
++countyme;
if (countyme == 50) {
countyme = 0;
if (randy == 1) {
randy = 2;
this.gotoAndPlay('invi');
_root.title1.play();
}
randy = random(3);
}
}
}
movieClip 339 {
}
instance spiral of movieClip 339 {
onClipEvent (enterFrame) {
this._rotation += 1;
}
}
movieClip 341 {
}
movieClip 347 {
}
movieClip 348 {
frame 1 {
stop();
}
}
movieClip 349 {
}
button 356 {
on (press) {
_root.kills = 0;
_root.coins = 0;
_root.play();
}
}
button 362 {
on (press) {
getURL('http://coolbuddy.com/?from=zombytes', '_blank');
}
}
movieClip 368 {
frame 1 {
stop();
}
}
frame 14 {
function onMouseDown() {
if (gamepause == 0) {
checkweapon();
dir = Math.atan2(_root.man1._y - _root._ymouse, _root.man1._x - _root._xmouse);
myDegrees = Math.round(dir * 180 / Math.PI);
if (gunscount == 1) {
_root.bullfire(weapon, weaponspeed[weapon], gundammage[weapon], myDegrees);
}
if (gunscount == 2) {
_root.bullfire(weapon, weaponspeed[weapon], gundammage[weapon], myDegrees - 10);
_root.bullfire(weapon, weaponspeed[weapon], gundammage[weapon], myDegrees + 10);
}
getweapondisplay(4);
mousedown = 1;
}
}
function onMouseUp() {
mousedown = 0;
}
function onEnterFrame() {
keys2();
if (gamepause == 0) {
point();
if (die == 0) {
keys();
repeatshoot();
if (tutorial == 0) {
lvlcountfun();
} else {
lvlcountlearn();
}
}
delay1();
update();
movetracks();
tracks();
bullgo();
trailloop();
shake();
}
}
function delay1() {
++delay1count;
if (delay1count > 25) {
delay1count = 0;
delay1up = 1;
}
}
function openweapon(www) {}
function nextweapon(www, www2) {
trace(www + ' = ' + guns[www] + ' = ' + gunstate[www]);
if (guns[www2] > 0) {
_root.tools['w' + www2].gotoAndPlay('off');
} else {
if (gunstate[www2] == 0) {
_root.tools['w' + www2].gotoAndPlay('none');
}
if (gunstate[www2] == 1) {
gunstate[www2] = 0;
_root.tools['w' + www2].gotoAndPlay('remove');
}
}
if (guns[www] > 0) {
_root.tools['w' + www].gotoAndPlay('on');
} else {
if (gunstate[www] == 0) {
_root.tools['w' + www].gotoAndPlay('none');
}
if (gunstate[www] == 1) {
gunstate[www] = 0;
_root.tools['w' + www].gotoAndPlay('remove');
}
lastweapon = weapon;
++weapon;
if (weapon > 5) {
weapon = 1;
}
nextweapon(weapon, lastweapon);
}
}
function keys2() {
if (Key.isDown(32)) {
if (spacekey == 0) {
lastweapon = weapon;
++weapon;
if (weapon > 5) {
weapon = 1;
}
weaponspeed[weapon];
nextweapon(weapon, lastweapon);
openweapon(weapon);
spacekey = 1;
}
} else {
spacekey = 0;
}
if (Key.isDown(74)) {
if (lvlcount == 0) {
_root.tutorial = 0;
_root.back.gotoAndPlay('nuke');
_root.musicbox.gotoAndPlay('main');
_root.tools.prom.mepause = 0;
_root.tools.prom.play();
lvlcount2 = 10;
kills = 0;
lvlcount = 1;
_root.godie();
}
}
if (Key.isDown(27)) {
_root.tools.pausemenu.play();
_root.tools.menu1.play();
}
if (gamepause == 1) {
if (Key.isDown(13)) {
switch (_root.tools.menu1.modcodes.text) {
case 'dalai_lama':
_root.tools.modalert.modalertin.modtext.text = 'You are the dalai lama! : Extreme dammage!';
_root.tools.menu1.modcodes.text = ':ACTIVATED:';
_root.tools.modalert.gotoAndPlay(2);
cheat_dammage = 1000;
cheat_speed = 2;
cheat_acc = 0.5;
health = 1000;
case 'tesla':
_root.tools.modalert.modalertin.modtext.text = 'You are the Tesla! : High Voltage!';
_root.tools.menu1.modcodes.text = ':ACTIVATED:';
_root.tools.modalert.gotoAndPlay(2);
invion();
invicount = 10000000000.0;
break;
case 'die':
_root.tools.modalert.modalertin.modtext.text = 'Self Destruction Active!';
_root.tools.menu1.modcodes.text = ':ACTIVATED:';
_root.tools.modalert.gotoAndPlay(2);
_root.godie();
break;
case 'sub_prime':
_root.stat_money += 2000;
}
}
}
}
function lvltut() {
tools.timey.text = 0;
switch (lvlcount2) {
case 0:
pickup(7, 650, 100, 1);
lvlcount2 = 3;
_root.tools.prom.mepause = 1;
_root.tools.prom.prom.promtext.text = 'Move your ship to the area shown.';
_root.tools.prom.play();
break;
case 4:
pickup(7, 200, 350, 1);
lvlcount2 = 5;
_root.tools.prom.mepause = 0;
_root.tools.prom.play();
break;
case 6:
alienmake(20, 0, 0, 5, 1, 1, 100, 100);
_root.tools.prom.prom.promtext.text = 'Use your mouse to shoot the target.';
_root.tools.prom.mepause = 1;
_root.tools.prom.prom.promicon.gotoAndStop(2);
_root.tools.prom.play();
lvlcount2 = 7;
break;
case 8:
alienmake(20, 0, 0, 5, 1, 1, 400, 300);
lvlcount2 = 9;
break;
case 10:
alienmake(20, 0, 0, 5, 1, 1, 300, 100);
lvlcount2 = 11;
_root.tools.prom.mepause = 0;
_root.tools.prom.play();
break;
case 12:
kills = 0;
alienmake(20, 0, 2, 5, 1, 0, 300, 100);
alienmake(20, 0, 2, 5, 1, 0, 300, 100);
alienmake(20, 0, 2, 5, 1, 0, 300, 100);
_root.tools.prom.prom.promtext.text = 'Can you hit moving targets?';
_root.tools.prom.mepause = 0;
_root.tools.prom.prom.promicon.gotoAndStop(2);
_root.tools.prom.play();
lvlcount2 = 13;
break;
case 16:
alienmake(20, 0, 0, 30, 1, 1, 250, 100);
_root.tools.prom.prom.promtext.text = 'Destroy the target to start the game!';
_root.tools.prom.mepause = 1;
_root.tools.prom.prom.promicon.gotoAndStop(2);
_root.tools.prom.prom.gotoAndStop(2);
_root.tools.prom.play();
lvlcount2 = 17;
break;
case 18:
_root.tutorial = 0;
_root.back.gotoAndPlay('nuke');
_root.musicbox.gotoAndPlay('main');
_root.tools.prom.mepause = 0;
_root.tools.prom.play();
lvlcount2 = 10;
kills = 0;
}
}
function shake() {
if (shakeit == 1) {
++shakecount;
switch (shakecount) {
case 1:
_root._x += 1;
break;
case 2:
_root._y += 1;
break;
case 3:
_root._x -= 2;
break;
case 4:
_root._y -= 2;
break;
case 5:
_root._x += 1;
break;
case 6:
_root._y += 1;
break;
case 7:
shakeit = 0;
shakecount = 0;
}
}
}
function shake2() {
if (shakeit == 1) {
++shakecount;
switch (shakecount) {
case 1:
_root._x += 3;
break;
case 2:
_root._y += 3;
break;
case 3:
_root._x -= 6;
break;
case 4:
_root._y -= 6;
break;
case 5:
_root._x += 3;
break;
case 6:
_root._y += 3;
break;
case 7:
shakeit = 0;
shakecount = 0;
}
}
}
function lvlcountfun() {
++lvlwait;
if (lvlwait > 50) {
lvlwait = 0;
++lvlcount;
levelmod();
}
}
function lvlcountlearn() {
++lvlwait;
if (lvlwait > 50) {
lvlwait = 0;
lvltut();
}
}
function trailloop() {
++trailcount;
if (trailcount > 1) {
++trailnum;
if (trailnum > trailnummax) {
trailnum = 0;
}
a = _root['jets' + trailnum];
a.tail_color.gotoAndStop(1);
if (invi == 1) {
randy = random(6) + 1;
a.tail_color.gotoAndStop(randy);
}
a._x = man1._x;
a._y = man1._y;
a.gotoAndPlay(1);
}
}
function bullgo() {
d = bulls.length - 1;
while (d >= 0) {
bull = bulls[d];
bull._x += bull.xSpeed;
bull._y += bull.ySpeed;
++tencount;
if (tencount > 10) {
tencount = 0;
m = Math.sqrt(Math.pow(_root.man1._x - bull._x, 2) + Math.pow(_root.man1._y - bull._y, 2));
if (m > 500) {
bull.removeMovieClip();
bulls.splice(d, 1);
}
}
--d;
}
}
function movetracks() {
fast1 = Math.sqrt(mexspeed + meyspeed);
tracks2 = 6;
e = 2;
while (e >= 0) {
d = tracks2 - 1;
while (d >= 0) {
_root.manlegs['track' + e]['track' + d]._y -= fast1 / 10;
if (_root.manlegs['track' + e]['track' + d]._y < -10) {
_root.manlegs['track' + e]['track' + d]._y = 18;
}
if (_root.manlegs['track' + e]['track' + d]._y > 19) {
_root.manlegs['track' + e]['track' + d]._y = -8;
}
--d;
}
--e;
}
}
function point() {
myRadians = Math.atan2(man1._y - _root._ymouse, man1._x - _root._xmouse);
myDegrees = Math.round(myRadians * 180 / Math.PI);
man1._rotation = myDegrees - 90;
}
function tracks() {
myRadians = Math.atan2(meyspeed, mexspeed);
myDegrees = Math.round(myRadians * 180 / Math.PI);
manlegs._rotation = myDegrees - 90;
}
function update() {
man1._x += mexspeed;
man1._y += meyspeed;
manlegs._x = man1._x;
manlegs._y = man1._y;
life._x = man1._x;
life._y = man1._y;
powerups._x = man1._x;
powerups._y = man1._y;
combobox._x -= mexspeed;
combobox._y -= meyspeed;
i = 0;
while (i <= 20) {
a = _root['star' + i];
a._x -= mexspeed + a.xspeed;
a._y -= meyspeed + a.yspeed;
e = _root['bull' + i];
e._x -= mexspeed - e.xSpeed;
e._y -= meyspeed - e.ySpeed;
++i;
}
t = 0;
while (t <= 30) {
s2 = _root['aliens' + t];
s2._x -= mexspeed;
s2._y -= meyspeed;
if (s2.meactive == 1) {
if (die == 0) {
if (_root['aliens' + i].scared < 100) {
hey = random(3) + 1;
sfx.gotoAndPlay('hurt' + hey);
back.gotoAndPlay('hurt1');
s2.play();
s2.meactive = 0;
shakeit = 1;
++kills;
++_root.stat_kills;
killcheck(s2._x, s2._y);
health -= s2.dammage - pickpowerup * powerupmulti;
if (pickpowerup > 0) {
--pickpowerup;
}
life.gotoAndStop(health + 1);
if (health < 0) {
godie();
}
}
}
}
++t;
}
i = 0;
while (i <= 20) {
e = _root['jets' + i];
e._x -= mexspeed;
e._y -= meyspeed;
p2 = _root['pick' + i];
p2._x -= mexspeed;
p2._y -= meyspeed;
p = _root['pick' + i].hotspot;
b = _root['bull' + i].hotspot;
b2 = _root['bull' + i];
t = 0;
while (t <= 30) {
s = _root['aliens' + t].hotspot;
s2 = _root['aliens' + t];
if (p2.meactive == 1) {
if (p.hitTest(man1.hotspot)) {
p2.play();
p2.meactive = 0;
pickuptype(p2.meid);
}
}
if (s.hitTest(b)) {
s2.health -= b2.dammage + cheat_dammage;
b2.gotoAndPlay('end' + b2.meid);
b2.xSpeed = 0;
b2.ySpeed = 0;
++_root.stat_hits;
if (s2.health < 0) {
s2.health = 100;
++_root.lvlcount2;
s2.play();
s2.meactive = 0;
shakeit = 1;
++kills;
++_root.stat_kills;
hey = random(3) + 1;
_root.sfx.gotoAndPlay('boom' + hey);
killcheck(s2._x, s2._y);
pickupgen();
if (s2.meid == 5) {
popgen(s2.meid, s2._x, s2._y, s2._rotation);
}
}
}
++t;
}
++i;
}
}
function popgen(alientype, possx, possy, possr) {
if (alientype !== 5) {
} else {
alienmake(7, 1, 6, 12, 20, 1, possx, possy);
alienmake(7, 1, 6, 12, -20, 1, possx, possy);
alienmake(7, 1, 6, 14, 30, 1, possx, possy);
alienmake(7, 1, 6, 14, -30, 1, possx, possy);
}
}
function pickupgen() {
if (lvlcount > 3) {
if (health == 0) {
hey = random(2) + 1;
if (hey == 1) {
pickup(1, s2._x, s2._y, 0);
}
}
if (health == 1) {
hey = random(3) + 1;
if (hey == 1) {
pickup(1, s2._x, s2._y, 0);
}
}
if (health == 2) {
hey = random(4) + 1;
if (hey == 1) {
pickup(1, s2._x, s2._y, 0);
}
}
if (health == 3) {
hey = random(9) + 1;
if (hey == 1) {
pickup(1, s2._x, s2._y, 0);
}
}
if (health > 1) {
hey = random(9) + 1;
if (hey == 1) {
pickup(2, s2._x, s2._y, 20);
}
}
if (health > 1) {
hey = random(3) + 1;
if (hey == 1) {
pickup(3, s2._x, s2._y, -30);
}
}
hey = random(3) + 1;
if (hey == 1) {
pickup(3, s2._x, s2._y, -30);
}
if (health > 2) {
hey = random(22) + 1;
if (hey == 1) {
pickup(4, s2._x, s2._y, -10);
}
}
if (health > 2) {
hey = random(2) + 1;
}
if (lvlcount > 25) {
hey = random(20) + 1;
if (hey == 1) {
pickup(5, s2._x, s2._y, 10);
}
}
}
}
function pickuptype(picktype) {
switch (picktype) {
case 1:
if (health < healthmax) {
health += healthpickup;
}
life.gotoAndStop(health + 1);
break;
case 2:
if (pickpowerup < pickpowerupmax) {
pickpowerup += 1;
}
powerups.gotoAndStop(pickpowerup + 1);
break;
case 3:
randy = random(3) + 1;
_root.sfx.gotoAndPlay('coin' + randy);
coins += 1;
_root.stat_money += 1;
_root.tools.coins.text = coins;
break;
case 4:
nuke();
break;
case 5:
invion();
break;
case 6:
}
}
function nuke() {
manlegs.gotoAndPlay('nuke');
back.gotoAndPlay('nuke');
t = 0;
while (t <= 30) {
s2 = _root['aliens' + t];
s2.play();
s2.meactive = 0;
shakeit = 1;
++t;
}
}
function invion() {
invi = 1;
invicount = 5;
hyperspeed = 10;
manlegs.player.gotoAndStop(2);
back.gotoAndPlay('invistart');
extrafast = extrafastconst;
}
function godie() {
die = 1;
man1._alpha = 0;
_root.manlegs.gotoAndPlay('die');
life._alpha = 0;
powerups._alpha = 0;
menuopeny.gotoAndPlay('end');
xspeed = 0;
yspeed = 0;
i = 1;
while (i <= 30) {
duplicateMovieClip(_root.jets, 'jets' + i, 400 + i);
a = _root['jets' + i];
a._x = -1000;
a._y = -1000;
a.gotoAndPlay(1);
++i;
}
if (_root.settingqual == 1) {
_quality = 'HIGH';
}
}
function keys() {
keyonx = 0;
keyony = 0;
if (Key.isDown(38) || Key.isDown(87)) {
keyony = 1;
if (meyspeed > -mamexspeed - modspeed - cheat_speed - extrafast) {
meyspeed -= acc + cheat_acc;
}
}
if (Key.isDown(40) || Key.isDown(83)) {
keyony = 1;
if (meyspeed < mamexspeed + modspeed + cheat_speed + extrafast) {
meyspeed += acc + cheat_acc;
}
}
if (Key.isDown(37) || Key.isDown(65)) {
keyonx = 1;
if (mexspeed > -mamexspeed - modspeed - cheat_speed - extrafast) {
mexspeed -= acc + cheat_acc;
}
}
if (Key.isDown(39) || Key.isDown(68)) {
keyonx = 1;
if (mexspeed < mamexspeed + modspeed + cheat_speed + extrafast) {
mexspeed += acc + cheat_acc;
}
}
if (keyonx == 0) {
mexspeed /= 1.1;
}
if (keyony == 0) {
meyspeed /= 1.1;
}
}
function bullfire(type, bullspeed, dammage, mydir) {
if (die == 0) {
_root.man1.play();
hey = random(3) + 1;
_root.soundbox.gotoAndPlay('s' + hey);
++depthb;
if (depthb > 20) {
depthb = 0;
}
++_root.stat_shots;
duplicateMovieClip(_root.bullet1, 'bull' + depthb, 500 + depthb);
bull = _root['bull' + depthb];
bull.meid = type;
if (type == 1) {
type = bullcolor[bullgrade];
}
trace(type);
bull.gotoAndStop(type);
hey = random(5) + 2;
bull._x = man1._x;
bull._y = man1._y;
bull._rotation = 0;
bull.xSpeed = Math.cos(dir) * bullspeed;
bull.ySpeed = Math.sin(dir) * bullspeed;
bull.meactive = 1;
bull.dammage = dammage;
bull.lifecount = 0;
}
}
function repeatshoot() {
++firespeed;
firerate = firespeedconst - pickpowerup * powerupmulti;
if (firespeed > firerate) {
firespeed = 0;
if (mousedown == 1) {
dir = Math.atan2(_root.man1._y - _root._ymouse, _root.man1._x - _root._xmouse);
myDegrees = Math.round(dir * 180 / Math.PI);
if (_root.gunscount == 1) {
_root.bullfire(weapon, weaponspeed[weapon], gundammage[weapon], myDegrees);
}
if (_root.gunscount == 2) {
_root.bullfire(weapon, weaponspeed[weapon], gundammage[weapon], myDegrees - 10);
_root.bullfire(weapon, weaponspeed[weapon], gundammage[weapon], myDegrees + 10);
}
hey = random(3) + 1;
_root.soundbox.gotoAndPlay('s' + hey);
}
}
}
function aliengenerator(alientype) {
switch (alientype) {
case 0:
break;
case 1:
alienmake(1, 1, 3, 5, 1, 0, 0, 0);
break;
case 2:
alienmake(2, 1, 5, 9, 1, 0, 0, 0);
break;
case 3:
alienmake(2, 1, 5, 9, 2, 0, 0, 0);
break;
case 4:
randy = 20 - (random(40) + 1);
alienmake(3, 1, 5, 12, randy, 0, 0, 0);
break;
case 5:
alienmake(4, 1, 5, 14, 20, 0, 0, 0);
break;
case 6:
alienmake(5, 1, 5, 7, 45, 0, 0, 0);
break;
case 10:
randy = 20 - (random(40) + 1);
alienmake(3, 1, 5, 12, randy, 0, 0, 0);
randy = 20 - (random(40) + 1);
alienmake(3, 1, 5, 12, randy, 0, 0, 0);
randy = 20 - (random(40) + 1);
alienmake(3, 1, 5, 12, randy, 0, 0, 0);
}
}
function levelmod() {
aliengenerator(agentype);
if (agentype > 2) {
_root.aliengenerator(2);
}
if (agentype > 3) {
_root.aliengenerator(agentype);
}
tools.timey.text = lvlcount;
if (invi == 1) {
--invicount;
if (invicount < 0) {
invi = 0;
invicount = 0;
manlegs.player.gotoAndStop(1);
extrafast = 0;
}
if (invicount == 1) {
manlegs.player.gotoAndStop(3);
hyperspeed = 0;
}
}
switch (lvlcount) {
break;
case 0:
case 3:
alienmake(1, 1, 3, 5, 1, 0, 0, 0);
break;
break;
case 6:
case 10:
dotspeed = 9;
i = 1;
while (i <= 20) {
a = _root['star' + i];
a.speed1 = dotspeed;
++i;
}
agentype = 1;
break;
case 26:
dotspeed = 9;
dottype = 'spike';
agentype = 0;
alienmake(7, 1, 6, 12, -20, 0, 0, 0);
alienmake(5, 1, 5, 7, 0, 0, 0, 0);
break;
case 30:
dotspeed = 9;
dottype = 'spike';
agentype = 2;
break;
case 40:
dotspeed = 16;
dottype = 'spike';
agentype = 3;
break;
case 56:
modspeed = 1;
dotspeed = 35;
i = 1;
while (i <= 20) {
a = _root['star' + i];
a.speed1 = dotspeed;
++i;
}
dottype = 'spike';
agentype = 5;
rotdynamic = 120;
break;
case 50:
dotspeed = 25;
i = 1;
while (i <= 20) {
a = _root['star' + i];
a.speed1 = dotspeed;
++i;
}
dottype = 'spike';
agentype = 4;
break;
case 60:
modspeed = 1;
dotspeed = 30;
i = 1;
while (i <= 20) {
a = _root['star' + i];
a.speed1 = dotspeed;
++i;
}
dottype = 'spike';
agentype = 4;
rotdynamic = 20;
break;
case 65:
modspeed = 1;
dotspeed = 14;
i = 1;
while (i <= 20) {
a = _root['star' + i];
a.speed1 = dotspeed;
++i;
}
dottype = 'spike';
agentype = 2;
rotdynamic = 20;
break;
case 70:
modspeed = 1;
dotspeed = 30;
i = 1;
while (i <= 20) {
a = _root['star' + i];
a.speed1 = dotspeed;
++i;
}
dottype = 'spike';
agentype = 10;
rotdynamic = 20;
case 80:
modspeed = 1;
dotspeed = 20;
i = 1;
while (i <= 20) {
a = _root['star' + i];
a.speed1 = dotspeed;
++i;
}
dottype = 'spike';
agentype = 2;
rotdynamic = 20;
case 90:
modspeed = 1;
dotspeed = 30;
i = 1;
while (i <= 20) {
a = _root['star' + i];
a.speed1 = dotspeed;
++i;
}
dottype = 'spike';
agentype = 10;
rotdynamic = 20;
}
}
function alienmake(shiptype, dammage, speed1, health, randir, poss, possx, possy) {
++aliencount;
if (aliencount > 30) {
aliencount = 0;
}
myalien = attachMovie('aliens', 'aliens' + aliencount, 1300 + aliencount);
myalien.meid = shiptype;
myalien.stype.gotoAndStop(myalien.meid);
if (poss == 0) {
poo = random(360);
mex = man1._x + Math.cos(Math.PI * poo / 180) * 1000;
mey = man1._y + Math.sin(Math.PI * poo / 180) * 1000;
myalien._x = mex;
myalien._y = mey;
} else {
myalien._x = possx;
myalien._y = possy;
}
dir = Math.atan2(_root.man1._y - _root._ymouse, _root.man1._x - _root._xmouse);
myDegrees = Math.round(dir * 180 / Math.PI);
myalien._rotation = myDegrees;
myalien.meactive = 1;
myalien.health = health;
myalien.dammage = dammage;
myalien.lifecount = 0;
myalien.speed1 = speed1;
myalien.stype = shiptype;
myalien.stype.gotoAndStop(myalien.shiptype);
myalien.onEnterFrame = function () {
if (gamepause == 0) {
if (this.meactive == 1) {
this.dir = Math.atan2(_root.man1._y - this._y, _root.man1._x - this._x);
this.myDegrees = Math.round(this.dir * 180 / Math.PI);
this._rotation = this.myDegrees;
this.rads = this.dir * 3.141593 / 180;
myRadians = Math.atan2(this._y - _root.man1._y, this._x - _root.man1._x);
xleg = this._x - _root.man1._x;
yleg = this._y - _root.man1._y;
scared = Math.sqrt(xleg * xleg + yleg * yleg);
if (scared > 340) {
this._x += Math.cos(Math.PI * this._rotation / 180) * (this.speed1 * 2);
this._y += Math.sin(Math.PI * this._rotation / 180) * (this.speed1 * 2);
} else {
this._x += Math.cos(Math.PI * (this._rotation + randir) / 180) * (this.speed1 + _root.hyperspeed);
this._y += Math.sin(Math.PI * (this._rotation + randir) / 180) * (this.speed1 + _root.hyperspeed);
}
if (_root.die == 0) {
if (scared < 20) {
++_root.lvlcount2;
this.meactive = 0;
_root.shakeit = 1;
++_root.kills;
++_root.stat_kills;
_root.killcheck(s2._x, s2._y);
if (invi == 0) {
_root.hey = random(3) + 1;
_root.sfx.gotoAndPlay('hurt' + hey);
_root.back.gotoAndPlay('hurt1');
_root.health -= this.dammage;
_root.life.gotoAndStop(_root.health + 1);
if (_root.health < 0) {
_root.godie();
}
} else {
_root.hey = random(3) + 1;
_root.soundbox.gotoAndPlay('invi' + hey);
back.gotoAndPlay('invi');
}
this.play();
}
}
}
}
};
}
function pickup(type, xloc, yloc, pickrot) {
++pickupcount;
if (pickupcount > 20) {
pickupcount = 0;
}
mypickup = attachMovie('pickupitem' + type, 'pick' + pickupcount, 1100 + pickupcount);
mypickup.meid = type;
poo = random(360);
mypickup.meactive = 1;
mypickup.speed1 = -8;
mypickup._x += xloc;
mypickup._y += yloc;
mypickup.dir = Math.atan2(_root.man1._y - this._y, _root.man1._x - this._x);
mypickup.myDegrees = Math.round(this.dir * 180 / Math.PI);
if (pickrot == 0) {
mypickup._rotation = this.myDegrees;
} else {
mypickup._rotation = 0;
}
mypickup.speedx = Math.cos(Math.PI * mypickup._rotation / 180) * mypickup.speed1;
mypickup.speedy = Math.sin(Math.PI * mypickup._rotation / 180) * mypickup.speed1;
mypickup.stype.gotoAndStop(mypickup.shiptype);
mypickup.onEnterFrame = function () {
if (this.meactive == 1) {
this._x += this.speedx;
this._y += this.speedy;
this.speedx *= 0.9;
this.speedy *= 0.9;
}
};
}
function killcheck(xspot, yspot) {
_root.tools.kills.text = kills;
switch (kills) {
case 5:
_root.combobox._x = xspot;
_root.combobox._y = yspot;
_root.combobox.gotoAndPlay('5kills');
_global.score += 25;
d = 1;
_global['achieve' + d] = 2;
break;
case 10:
_root.combobox._x = xspot;
_root.combobox._y = yspot;
_root.combobox.gotoAndPlay('10kills');
_global.score += 50;
d = 2;
_global['achieve' + d] = 2;
break;
case 50:
_root.combobox._x = xspot;
_root.combobox._y = yspot;
_root.combobox.gotoAndPlay('50kills');
_global.score += 250;
d = 3;
_global['achieve' + d] = 2;
break;
case 100:
_root.combobox._x = xspot;
_root.combobox._y = yspot;
_root.combobox.gotoAndPlay('100kills');
_global.score += 500;
d = 4;
_global['achieve' + d] = 2;
break;
case 200:
_root.combobox._x = xspot;
_root.combobox._y = yspot;
_root.combobox.gotoAndPlay('200kills');
_global.score += 1000;
d = 5;
_global['achieve' + d] = 2;
}
}
function qualswitch(fps) {
if (_root.settingqual == 1) {
if (_root.die == 0) {
if (_quality == 'LOW') {
if (fps < 30) {
}
}
if (_quality == 'MEDIUM') {
if (fps < 30) {
_quality = 'LOW';
_root.tools.perf.play();
}
}
if (_quality == 'HIGH') {
if (fps < 30) {
_quality = 'MEDIUM';
_root.tools.perf.play();
}
}
}
}
}
trace(frog[1]);
trace(_root[animal][1]);
trace(this[animal][1]);
weapon = 1;
lastweapon = 0;
gamepause = 0;
settingqual = 1;
cheat_on = 0;
cheat_gunspeed = 0;
cheat_dammage = 0;
cheat_health = 0;
cheat_speed = 0;
cheat_acc = 0;
update();
xspeed = 0;
yspeed = 0;
health = 0;
healthmax = 3;
healthpickup = 1;
pickpowerup = 0;
pickpowerupmax = 3;
++stat_round;
life.gotoAndStop(health);
invi = 0;
die = 0;
acc = 0.6;
mamexspeed = 3;
modspeed = 0;
extrafast = 0;
extrafastconst = 2.5;
mexspeed = 0;
meyspeed = 0;
kills = 0;
agentype = 1;
chars = new Array(100);
_root.particleCount = 0;
pickupcount = 0;
firespeedconst = 7;
powerupmulti = 1;
firespeed = 0;
aliencount = 0;
sa;
lvlcount = 0;
lvlcount2 = 0;
lvlwait = 0;
depthb = 1000;
depthconstb = 1000;
trailcount = 0;
trailnum = 0;
trailnummax = 20;
bullspeed = -8;
hyperspeed = 0;
shakeit = 0;
shakecount = 0;
bulls = new Array(35);
alienarray = new Array(35);
alienshort = 10000;
_root.tools.w1.wtab.gotoAndPlay(1);
_root.tools.w2.wtab.gotoAndPlay(2);
_root.tools.w3.wtab.gotoAndPlay(3);
_root.tools.w4.wtab.gotoAndPlay(4);
_root.tools.w5.wtab.gotoAndPlay(5);
getweapondisplay(1);
getweapondisplay(2);
getweapondisplay(3);
getweapondisplay(4);
getweapondisplay(5);
tools.swapDepths(9040);
life.swapDepths(9006);
ui1.swapDepths(9030);
man1.swapDepths(9020);
manlegs.swapDepths(9010);
combobox.swapDepths(9005);
menuopeny.swapDepths(9000);
dotspeed = 0;
dottype = 'circle';
dotdynamic = 1;
rotdynamic = 0;
delay1count = 0;
delay1up = 1;
spacekey = 0;
i = 1;
while (i <= 20) {
duplicateMovieClip(_root.star, 'star' + i, 300 + i);
a = _root['star' + i];
a._x = random(800) - 100;
a._y = random(700) - 100;
a.star = 80 + random(20);
a._xscale = 0;
a._yscale = 0;
a.xspeed = 0;
a.yspeed = 0;
a.speed1 = dotspeed;
a.onEnterFrame = function () {
if (mestart == 0) {
this.dir = Math.atan2(_root.man1._y - this._y, _root.man1._x - this._x);
this.myDegrees = Math.round(this.dir * 180 / Math.PI);
this._rotation = this.myDegrees;
this.rads = this.dir * 3.141593 / 180;
myRadians = Math.atan2(this._y - _root.man1._y, this._x - _root.man1._x);
xleg = this._x - _root.man1._x;
yleg = this._y - _root.man1._y;
scared = Math.sqrt(xleg * xleg + yleg * yleg);
this._xscale = scared * dotdynamic;
this._yscale = scared * dotdynamic;
if (scared > 340) {
this._x += Math.cos(Math.PI * (this._rotation + rotdynamic) / 180) * (this.speed1 * 2);
this._y += Math.sin(Math.PI * (this._rotation + rotdynamic) / 180) * (this.speed1 * 2);
} else {
this._x += Math.cos(Math.PI * (this._rotation + rotdynamic) / 180) * this.speed1;
this._y += Math.sin(Math.PI * (this._rotation + rotdynamic) / 180) * this.speed1;
}
if (scared < 40) {
this._xscale = 0;
this._yscale = 0;
poo2 = random(100);
poo = random(360);
mex = man1._x + (Math.cos(Math.PI * poo / 180) * 600 + poo2);
mey = man1._y + (Math.sin(Math.PI * poo / 180) * 600 + poo2);
this._x = mex;
this._y = mey;
this.gotoAndStop(dottype);
}
if (scared > 1000) {
this._xscale = 0;
this._yscale = 0;
poo2 = random(100);
poo = random(360);
mex = man1._x + Math.cos(Math.PI * poo / 180) * 50;
mey = man1._y + Math.sin(Math.PI * poo / 180) * 50;
this._x = mex;
this._y = mey;
this.gotoAndStop(dottype);
}
} else {
if (a._xscale < a.star) {
++a._xscale;
}
if (a._yscale < a.star) {
++a._yscale;
} else {
mestart = 0;
}
}
};
++i;
}
i = 1;
while (i <= 30) {
duplicateMovieClip(_root.jets, 'jets' + i, 400 + i);
a = _root['jets' + i];
a._x = -1000;
a._y = -1000;
a.gotoAndPlay(1);
++i;
}
stop();
dammage = 2;
}
movieClip 373 {
frame 7 {
stop();
}
frame 16 {
stop();
}
}
movieClip 386 {
frame 10 {
gotoAndPlay('walk');
}
frame 35 {
gotoAndStop('walk');
}
frame 78 {
stop();
}
frame 78 {
this.removeMovieClip();
}
}
movieClip 389 {
frame 1 {
stop();
}
}
movieClip 404 {
}
movieClip 405 {
}
movieClip 407 {
frame 1 {
stop();
}
frame 14 {
stop();
}
frame 19 {
stop();
}
frame 24 {
stop();
}
frame 29 {
stop();
}
frame 34 {
stop();
}
frame 48 {
stop();
}
frame 53 {
stop();
}
frame 58 {
stop();
}
frame 72 {
stop();
}
frame 77 {
stop();
}
frame 82 {
stop();
}
frame 94 {
stop();
}
frame 115 {
stop();
}
frame 140 {
stop();
}
frame 155 {
stop();
}
frame 168 {
stop();
}
frame 183 {
stop();
}
frame 212 {
stop();
}
}
movieClip 409 {
}
movieClip 412 {
}
movieClip 417 {
}
movieClip 425 {
frame 1 {
stop();
}
}
movieClip 431 {
frame 1 {
stop();
}
frame 29 {
stop();
}
frame 68 {
stop();
}
frame 110 {
stop();
}
frame 176 {
stop();
}
frame 181 {
kills.gotoAndStop(2);
}
frame 228 {
stop();
}
frame 231 {
kills.gotoAndStop(3);
}
frame 278 {
stop();
}
frame 283 {
kills.gotoAndStop(4);
}
frame 335 {
stop();
}
frame 347 {
kills.gotoAndStop(5);
}
frame 395 {
stop();
}
}
movieClip 435 {
}
movieClip 444 {
}
movieClip 447 {
}
movieClip 451 {
}
movieClip 453 {
}
button 458 {
on (press) {
_root.gotoAndStop('menu');
}
}
button 459 {
on (press) {
_root.last_kills = _root.kills;
_root.last_coins = _root.coins;
_root.kills = 0;
_root.coins = 0;
_root.stat_hits = 0;
_root.stat_shots = 0;
_parent.play();
}
}
movieClip 461 {
}
button 465 {
on (press) {
getURL('http://www.facebook.com/pages/Coolbuddy-Games/177306910591', '_blank');
}
}
button 469 {
on (press) {
gotoAndStop('credits');
}
}
button 471 {
on (press) {
_root.play();
_parent.play();
}
}
button 475 {
on (press) {
gotoAndStop('up');
}
}
button 477 {
on (press) {
gotoAndStop('score');
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.connect('06aa06c7191b25f8', _parent);
var o = {'n': [6, 7, 11, 10, 2, 13, 9, 9, 4, 5, 7, 15, 11, 10, 0, 6], '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': boardID, 'score': _root.finalscore});
}
}
movieClip 501 {
}
movieClip 503 {
}
button 506 {
on (rollOver) {
gotoAndPlay('on');
bubble.bubtext.text = mytext;
}
on (rollOut) {
gotoAndPlay('off');
}
}
movieClip 509 {
}
movieClip 510 {
frame 1 {
stop();
}
frame 17 {
stop();
}
frame 30 {
gotoAndStop(1);
}
}
movieClip 513 {
}
movieClip 515 {
}
movieClip 520 {
frame 1 {
stop();
}
}
movieClip 522 {
}
movieClip 524 {
}
movieClip 526 {
}
movieClip 528 {
}
movieClip 530 {
}
movieClip 532 {
}
button 535 {
on (press) {
gotoAndStop('stat');
}
}
movieClip 538 {
}
movieClip 541 {
}
movieClip 545 {
}
movieClip 546 {
frame 1 {
stop();
}
instance buyme of movieClip 541 {
onClipEvent (rollOver) {
gotoAndPlay('on');
bubble.bubtext.text = 'asdf';
}
onClipEvent (rollOut) {
gotoAndPlay('off');
}
}
frame 17 {
stop();
}
frame 30 {
gotoAndStop(1);
}
}
movieClip 550 {
frame 1 {
stop();
}
}
movieClip 556 {
}
movieClip 559 {
frame 1 {
stop();
}
instance bubblebox of movieClip 546 {
onClipEvent (load) {
mytext = 'Unlimted Mines';
mycost = '60';
}
}
}
movieClip 562 {
frame 1 {
stop();
}
}
movieClip 563 {
frame 1 {
stop();
}
instance bubblebox of movieClip 546 {
onClipEvent (load) {
mytext = 'Unlimted Mines';
mycost = '60';
}
}
}
movieClip 564 {
frame 1 {
stop();
}
instance bubblebox of movieClip 546 {
onClipEvent (load) {
mytext = 'Unlimted Mines';
mycost = '60';
}
}
}
movieClip 567 {
frame 1 {
stop();
}
instance bubblebox of movieClip 546 {
onClipEvent (load) {
mytext = 'Unlimted Mines';
mycost = '60';
}
}
}
movieClip 568 {
frame 1 {
stop();
}
instance bubblebox of movieClip 546 {
onClipEvent (load) {
mytext = 'Unlimted Mines';
mycost = '60';
}
}
instance buyme of movieClip 541 {
onClipEvent (rollOver) {
bubblebox.gotoAndPlay('on');
bubblebox.bubble.bubtext.text = mytext;
}
onClipEvent (rollOut) {
bubblebox.gotoAndPlay('off');
}
}
}
movieClip 569 {
frame 1 {
stop();
}
instance bubblebox of movieClip 546 {
onClipEvent (load) {
mytext = 'Unlimted Mines';
mycost = '60';
}
}
}
movieClip 571 {
}
movieClip 572 {
frame 1 {
stop();
}
instance bubblebox of movieClip 546 {
onClipEvent (load) {
mytext = 'Unlimted Mines';
mycost = '60';
}
}
}
movieClip 573 {
frame 1 {
stop();
}
frame 17 {
stop();
}
frame 30 {
gotoAndStop(1);
}
}
movieClip 576 {
frame 1 {
stop();
}
instance bubblebox of movieClip 546 {
onClipEvent (load) {
mytext = 'Unlimted Mines';
mycost = '60';
}
}
}
button 582 {
on (press) {
getURL('https://twitter.com/jjaywallace', _blank);
}
}
movieClip 588 {
}
button 594 {
on (release) {
gamename = 'nog';
buttonloc = 'buy';
domain_parts = _url.split('://');
real_domain = domain_parts[1].split('/');
linkurl = 'http://jjwallace.info/blog/buy-games/?utm_source=' + real_domain[0] + '&utm_medium=flashgame&utm_content=' + buttonloc + '&utm_campaign=' + gamename;
getURL(linkurl, '_blank');
}
}
movieClip 596 {
}
button 600 {
on (release) {
gamename = 'zombytes';
buttonloc = 'buy';
domain_parts = _url.split('://');
real_domain = domain_parts[1].split('/');
linkurl = 'http://jjwallace.info/blog/download-games/?utm_source=' + real_domain[0] + '&utm_medium=flashgame&utm_content=' + buttonloc + '&utm_campaign=' + gamename;
getURL(linkurl, '_blank');
}
}
movieClip 604 {
}
movieClip 606 {
frame 1 {
stop();
}
}
movieClip 607 {
}
movieClip 608 {
}
movieClip 610 {
}
movieClip 611 {
frame 1 {
stop();
}
}
movieClip 620 {
frame 1 {
coins.text = _root.coins;
kills.text = _root.kills;
totalmoney.text = _root.stat_money;
totalkills.text = _root.stat_kills;
_root.r_kills[_root.stat_round] = _root.kills;
_root.r_coins[_root.stat_round] = _root.coins;
acct.text = Math.floor((_root.stat_hits / _root.stat_shots) * 100) + '%';
shots.text = _root.stat_hits + '/' + _root.stat_shots;
timealive.text = _root.lvlcount;
Ci = _root.coins;
Ki = _root.kills;
Ti = _root.lvlcount;
Ai = _root.stat_hits / _root.stat_shots;
coinst.text = '+' + Ci * 600;
coinstt.text = Ci * 600;
killst.text = '+' + Ki * 125;
killstt.text = Ci * 600 + Ki * 125;
timet.text = '+' + (1 + Ti * 0.001);
timett.text = (Ci * 600 + Ki * 125) * (1 + Ti * 0.001);
acct.text = '*' + Math.floor(1 + Ai);
acctt.text = Math.floor((Ci * 600 + Ki * 125) * (1 + Ti * 0.001) * (1 + Ai));
_root.finalscore = Math.floor((Ci * 600 + Ki * 125) * (1 + Ti * 0.001) * (1 + Ai));
finalscore.text = _root.finalscore;
if (_root.stat_round == 1) {
impk = 100;
impc = 100;
} else {
impk = Math.floor((_root.last_kills / _root.kills) * 100);
impc = Math.floor((_root.last_coins / _root.coins) * 100);
}
if (impk >= 100) {
improkills.textColor = 10092288;
improkills.text = impk + '%';
} else {
impk = impk;
improkills.textColor = 16724736;
improkills.text = impk + '%';
}
if (impc >= 100) {
improcoins.textColor = 10092288;
improcoins.text = impc + '%';
} else {
impc = impc;
improcoins.textColor = 16724736;
improcoins.text = impc + '%';
}
randy = random(9) + 1;
switch (randy) {
case 1:
errorbox.text = 'ERROR_PLAYER_NOT_FOUND';
break;
case 2:
errorbox.text = 'ERROR_TOO_MANY_ZOMBYTES';
break;
case 3:
errorbox.text = 'ERROR_NOT_ENOUGH_MEMORY';
break;
case 4:
errorbox.text = 'ERROR_BAD_ENVIRONMENT';
break;
case 5:
errorbox.text = 'ERROR_INVALID_STATE';
break;
case 6:
errorbox.text = 'ERROR_LIFE_FAULT';
break;
case 7:
errorbox.text = 'ERROR_HEALTH_BUFFER_EXCEEDED';
break;
case 8:
errorbox.text = 'ERROR_INVALID_STATE';
break;
case 9:
errorbox.text = 'ERROR_PLAYER_EMPTY';
}
i = 1;
while (i <= 60) {
++i;
}
stop();
}
instance of movieClip 461 {
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_parent.play();
_root.score('nog', 50);
}
if (_global.pmode == 2) {
if (_root.player.hitTest(this)) {
_parent.play();
_root.score('nog', 50);
}
}
}
}
instance bubblebox of movieClip 510 {
onClipEvent (load) {
mytext = 'Coins Collected.';
}
}
instance bubblebox of movieClip 510 {
onClipEvent (load) {
mytext = 'Zombytes Killed.';
}
}
instance bubblebox of movieClip 510 {
onClipEvent (load) {
mytext = 'Time Survived.';
}
}
instance bubblebox of movieClip 510 {
onClipEvent (load) {
mytext = 'Accuracy of Shots.';
}
}
instance bubblebox of movieClip 510 {
onClipEvent (load) {
mytext = 'Total Coins Collect.';
}
}
instance bubblebox of movieClip 510 {
onClipEvent (load) {
mytext = 'Total kills made.';
}
}
frame 22 {
totalmoney.text = _root.stat_money;
totalkills.text = _root.stat_kills;
engine.gotoAndStop(1);
guns.gotoAndStop(2);
misc.gotoAndStop(3);
c = 10;
while (c >= 0) {
if (c < stat_engine) {
_root.menuopeny.diemenu.engine['u' + c] = 2;
}
if (c == stat_engine) {
_root.menuopeny.diemenu.engine['u' + c] = 3;
}
--c;
}
stop();
}
instance of movieClip 559 {
onClipEvent (load) {
mytext = 'Regular Gun';
mycost = 0;
}
onClipEvent (rollOver) {
_parent.tooltip1.gotoAndPlay('on');
_parent.tooltip1.bubble.bubtext.text = mytext;
_parent.tooltip1.bubble.coins.text = mycost;
_parent.tooltip1._x = this._x - 45;
_parent.tooltip1._y = this._y - 35;
}
onClipEvent (rollOut) {
_parent.tooltip1.gotoAndPlay('off');
}
}
instance gun1 of movieClip 562 {
onClipEvent (load) {
mytext = 'Double Strength Cannon';
mycost = 25;
if (_root.gradegun1 == 1) {
var c = new Color(this);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
var c = new Color(_parent.arrow2);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
var c = new Color(_parent.arrow2_1);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
} else {}
}
onClipEvent (press) {
if (_root.gradegun1 == 0) {
if (_root.stat_money >= mycost) {
trace('buy');
var c = new Color(this);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
var c = new Color(_parent.arrow2);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
var c = new Color(_parent.arrow2_1);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
_parent.arrow2.setTransform(trans);
_parent.arrow2_1.setTransform(trans);
_root.gradegun1 = 1;
_root.dammage = 15;
_root.bullgrade = 2;
} else {
trace('broke');
}
}
}
onClipEvent (rollOver) {
_parent.tooltip1.gotoAndPlay('on');
_parent.tooltip1.bubble.bubtext.text = mytext;
_parent.tooltip1.bubble.coins.text = mycost;
_parent.tooltip1._x = this._x - 45;
_parent.tooltip1._y = this._y - 35;
}
onClipEvent (rollOut) {
_parent.tooltip1.gotoAndPlay('off');
}
}
instance gun2 of movieClip 563 {
onClipEvent (load) {
mytext = 'Tripple Strength Cannon';
mycost = 25;
if (_root.gradegun2 == 1) {
var c = new Color(this);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
var c = new Color(_parent.arrow3);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
var c = new Color(_parent.arrow3_1);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
} else {}
}
onClipEvent (press) {
if (_root.gradegun2 == 0) {
if (_root.stat_money >= mycost) {
if (_root.gradegun1 == 1) {
trace('buy');
var c = new Color(this);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
var c = new Color(_parent.arrow3);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
var c = new Color(_parent.arrow3_1);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
var c = new Color(_parent.cb);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
_parent.arrow2.setTransform(trans);
_parent.arrow2_1.setTransform(trans);
_root.gradegun2 = 1;
_root.dammage = 20;
_root.bullgrade = 3;
} else {
trace('order');
}
} else {
trace('broke');
}
}
}
onClipEvent (rollOver) {
_parent.tooltip1.gotoAndPlay('on');
_parent.tooltip1.bubble.bubtext.text = mytext;
_parent.tooltip1.bubble.coins.text = mycost;
_parent.tooltip1._x = this._x - 45;
_parent.tooltip1._y = this._y - 35;
}
onClipEvent (rollOut) {
_parent.tooltip1.gotoAndPlay('off');
}
}
instance gun3 of movieClip 564 {
onClipEvent (load) {
mytext = 'Tripple Strength Cannon';
mycost = 50;
if (_root.gradegun3 == 1) {
var c = new Color(this);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
var c = new Color(_parent.arrow4);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
} else {}
}
onClipEvent (press) {
if (_root.gradegun3 == 0) {
if (_root.stat_money >= mycost) {
if (_root.gradegun2 == 1) {
trace('buy');
var c = new Color(this);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
var c = new Color(_parent.arrow4);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
_parent.arrow2.setTransform(trans);
_parent.arrow2_1.setTransform(trans);
_root.gradegun3 = 1;
_root.dammage = 25;
_root.bullgrade = 4;
} else {
trace('order');
}
} else {
trace('broke');
}
}
}
onClipEvent (rollOver) {
_parent.tooltip1.gotoAndPlay('on');
_parent.tooltip1.bubble.bubtext.text = mytext;
_parent.tooltip1.bubble.coins.text = mycost;
_parent.tooltip1._x = this._x - 45;
_parent.tooltip1._y = this._y - 35;
}
onClipEvent (rollOut) {
_parent.tooltip1.gotoAndPlay('off');
}
}
instance gun4 of movieClip 567 {
onClipEvent (load) {
mytext = 'Tripple Strength Cannon';
mycost = 100;
if (_root.gradegun4 == 1) {
var c = new Color(this);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
var c = new Color(_parent.arrow3);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
var c = new Color(_parent.arrow3_1);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
} else {}
}
onClipEvent (press) {
if (_root.gradegun4 == 0) {
if (_root.stat_money >= mycost) {
if (_root.gradegun3 == 1) {
trace('buy');
var c = new Color(this);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
var c = new Color(_parent.arrow3);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
var c = new Color(_parent.arrow3_1);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
_parent.arrow2.setTransform(trans);
_parent.arrow2_1.setTransform(trans);
_root.gradegun4 = 1;
_root.dammage = 30;
_root.bullgrade = 5;
} else {
trace('order');
}
} else {
trace('broke');
}
}
}
onClipEvent (rollOver) {
_parent.tooltip1.gotoAndPlay('on');
_parent.tooltip1.bubble.bubtext.text = mytext;
_parent.tooltip1.bubble.coins.text = mycost;
_parent.tooltip1._x = this._x - 45;
_parent.tooltip1._y = this._y - 35;
}
onClipEvent (rollOut) {
_parent.tooltip1.gotoAndPlay('off');
}
}
instance mines1 of movieClip 568 {
onClipEvent (load) {
mytext = 'Mine Drop (spacebar) switch weapons';
mycost = 35;
if (_root.grademine1 == 1) {
var c = new Color(this);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
var c = new Color(_parent.arrow2_2);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
} else {}
}
onClipEvent (press) {
if (_root.grademine1 == 0) {
if (_root.stat_money >= mycost) {
if (_root.gradegun1 == 1) {
trace('buy');
var c = new Color(this);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
var c = new Color(_parent.arrow2_2);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
_parent.arrow2.setTransform(trans);
_parent.arrow2_1.setTransform(trans);
_root.grademine1 = 1;
_root.guns[3] = 10000000000.0;
_root.gundammage[3] = 5;
} else {
trace('order');
}
} else {
trace('broke');
}
}
}
onClipEvent (rollOver) {
_parent.tooltip1.gotoAndPlay('on');
_parent.tooltip1.bubble.bubtext.text = mytext;
_parent.tooltip1.bubble.coins.text = mycost;
_parent.tooltip1._x = this._x - 45;
_parent.tooltip1._y = this._y - 35;
}
onClipEvent (rollOut) {
_parent.tooltip1.gotoAndPlay('off');
}
}
instance of movieClip 569 {
onClipEvent (load) {
mytext = 'Double Strength Mines';
mycost = 25;
if (_root.grademine2 == 1) {
var c = new Color(this);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
var c = new Color(_parent.arrow2_3);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
} else {}
}
onClipEvent (press) {
if (_root.grademine2 == 0) {
if (_root.stat_money >= mycost) {
if (_root.grademine1 == 1) {
trace('buy');
var c = new Color(this);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
var c = new Color(_parent.arrow2_3);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
_parent.arrow2.setTransform(trans);
_parent.arrow2_1.setTransform(trans);
_root.grademine2 = 2;
_root.guns[3] = 10000000000.0;
_root.gundammage[3] = 10;
} else {
trace('order');
}
} else {
trace('broke');
}
}
}
onClipEvent (rollOver) {
_parent.tooltip1.gotoAndPlay('on');
_parent.tooltip1.bubble.bubtext.text = mytext;
_parent.tooltip1.bubble.coins.text = mycost;
_parent.tooltip1._x = this._x - 45;
_parent.tooltip1._y = this._y - 35;
}
onClipEvent (rollOut) {
_parent.tooltip1.gotoAndPlay('off');
}
}
instance of movieClip 572 {
onClipEvent (load) {
mytext = 'Tripple Strength Mines';
mycost = 25;
if (_root.grademine3 == 1) {
var c = new Color(this);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
var c = new Color(_parent.arrow2_3);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
} else {}
}
onClipEvent (press) {
if (_root.grademine3 == 0) {
if (_root.stat_money >= mycost) {
if (_root.grademine2 == 1) {
trace('buy');
var c = new Color(this);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
var c = new Color(_parent.arrow2_3);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
_parent.arrow2.setTransform(trans);
_parent.arrow2_1.setTransform(trans);
_root.grademine3 = 2;
_root.guns[3] = 10000000000.0;
_root.gundammage[3] = 20;
} else {
trace('order');
}
} else {
trace('broke');
}
}
}
onClipEvent (rollOver) {
_parent.tooltip1.gotoAndPlay('on');
_parent.tooltip1.bubble.bubtext.text = mytext;
_parent.tooltip1.bubble.coins.text = mycost;
_parent.tooltip1._x = this._x - 45;
_parent.tooltip1._y = this._y - 35;
}
onClipEvent (rollOut) {
_parent.tooltip1.gotoAndPlay('off');
}
}
instance tooltip1 of movieClip 573 {
onClipEvent (load) {
}
}
instance cb of movieClip 576 {
onClipEvent (load) {
mytext = 'Coolbuddy';
mycost = 50;
if (_root.gradegun3 == 1) {
var c = new Color(this);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
var c = new Color(_parent.arrow4);
var trans = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0'};
c.setTransform(trans);
} else {}
}
onClipEvent (press) {
getURL('http://coolbuddy.com/?from=zombytes', '_blank');
}
onClipEvent (rollOver) {
_parent.tooltip1.gotoAndPlay('on');
_parent.tooltip1.bubble.bubtext.text = mytext;
_parent.tooltip1.bubble.coins.text = mycost;
_parent.tooltip1._x = this._x - 45;
_parent.tooltip1._y = this._y - 35;
}
onClipEvent (rollOut) {
_parent.tooltip1.gotoAndPlay('off');
}
}
instance of movieClip 461 {
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_parent.play();
_root.score('nog', 50);
}
if (_global.pmode == 2) {
if (_root.player.hitTest(this)) {
_parent.play();
_root.score('nog', 50);
}
}
}
}
}
movieClip 625 {
frame 38 {
stop();
}
frame 144 {
i = 0;
while (i <= 10) {
_root.menuopeny.diemenu['ach' + i].gotoAndStop(num);
++i;
}
}
frame 183 {
stop();
}
frame 199 {
this.gotoAndPlay('startme');
_root.play();
}
}
movieClip 632 {
frame 1 {
stop();
}
frame 19 {
stop();
}
frame 29 {
stop();
}
frame 39 {
stop();
}
frame 55 {
stop();
}
frame 60 {
stop();
}
frame 65 {
stop();
}
frame 79 {
stop();
}
frame 84 {
stop();
}
frame 89 {
stop();
}
frame 106 {
stop();
}
frame 111 {
stop();
}
frame 116 {
stop();
}
frame 121 {
stop();
}
frame 126 {
stop();
}
frame 135 {
stop();
}
frame 156 {
stop();
}
frame 181 {
stop();
}
frame 196 {
stop();
}
frame 209 {
stop();
}
frame 224 {
stop();
}
frame 253 {
stop();
}
}
instance tools of movieClip 162 tools {
onClipEvent (load) {
_root.menuopeny.swapDepths(1000009);
_root.tools.swapDepths(1000000);
_root.finalscore.swapDepths(1000001);
}
}
frame 15 {
function removethings() {
ui1.removeMovieClip();
man1.removeMovieClip();
manlegs.removeMovieClip();
combobox.removeMovieClip();
life.removeMovieClip();
i = 0;
while (i <= 60) {
_root['star' + i].removeMovieClip();
_root['bull' + i].removeMovieClip();
_root['aliens' + i].removeMovieClip();
_root['pickup' + i].removeMovieClip();
_root['star' + i].removeMovieClip();
++i;
}
}
removethings();
}
frame 18 {
stopAllSounds();
_root.musicbox.gotoAndPlay('main');
}
frame 18 {
menu1.swapDepths(9940);
}
frame 19 {
menuopeny.removeMovieClip();
menu1.removeMovieClip();
tools.removeMovieClip();
gotoAndStop('game');
}