Frame 1
MochiAd.showPreGameAd({id:"b218f7a3ba048ff2", res:"800x600"});
Instance of Symbol 24 MovieClip in Frame 2
//component parameters
onClipEvent (construct) {
bOpen = false;
}
Instance of Symbol 5 MovieClip [ToolTipControl] in Frame 3
//component parameters
onClipEvent (construct) {
alpha = 100;
backgroudColor = 16763904 /* 0xFFCC00 */;
borderColor = 0;
borderSize = 2;
color = 0;
curve = 4;
enabled = true;
errBackgroundColor = 16776960 /* 0xFFFF00 */;
errBorderColor = 16711680 /* 0xFF0000 */;
errColor = 16777215 /* 0xFFFFFF */;
errFontSize = 12;
fontSize = 12;
isFollow = true;
isHtml = false;
isMouseDrag = false;
paddingBottom = 2;
paddingLeft = 5;
paddingRight = 5;
paddingTop = 2;
parent = "root";
shadowAlpha = 0.5;
shadowAngle = 80;
shadowBlurX = 7;
shadowBlurY = 5;
shadowColor = 3355443 /* 0x333333 */;
shadowDistance = 3;
shadowStrength = 1;
showTime = 0.1;
}
Instance of Symbol 47 MovieClip in Frame 3
//component parameters
onClipEvent (construct) {
bOpen = true;
}
Symbol 5 MovieClip [ToolTipControl] Frame 1
#initclip 46
// swfAction0xFC hexdata 0x03,0x00 // Unknown action
function \u0001\u0002() {
return(2686);
}
var \x01 = (-1902 + \x01\x02());
// swfAction0x03 // Unknown action
#endinitclip
Symbol 19 MovieClip Frame 1
onPress = function () {
Global.FWGURL();
};
this.cacheAsBitmap = true;
Symbol 21 MovieClip Frame 1
function flash_loading(x, T, A) {
var _local1 = (Math.PI / T) * x;
return(A * Math.sin(_local1));
}
_root.stop();
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
_root.menu = my_cm;
_x = (Stage.width / 2);
_y = ((Stage.height / 2) - 30);
mLogo._alpha = 0;
mLoading._alpha = 0;
var nDownload;
var sDownload = "";
onEnterFrame = function () {
nDownload = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (nDownload == 100) {
if ((_root._mochiad instanceof MovieClip) != true) {
_root.play();
}
}
if (mLogo._alpha < 100) {
mLogo._alpha = mLogo._alpha + 5;
} else {
mLogo._alpha = 100;
sDownload = nDownload + " %";
mLoading._alpha = Math.abs(flash_loading(getTimer(), 800, 100));
}
};
Symbol 902 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.3");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] 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) {
}};
options = _parseOptions(options, _local27);
if ("5cc6f7dfb67f2f08341c831480f7c2a7".length == 0) {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] 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) {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
}
Symbol 903 MovieClip [__Packages.Global] Frame 0
class Global
{
function Global () {
}
static function playSound(_s) {
SOUND.attachSound(_s);
SOUND.start();
}
static function playMusic(_s, _n1, _n2) {
MUSIC.stop();
MUSIC.attachSound(_s);
MUSIC.start(_n1, _n2);
}
static function volumeMusic(_b) {
if (MUSIC.getVolume() != 100) {
_b && (MUSIC.setVolume(100));
return(true);
}
_b && (MUSIC.setVolume(0));
return(false);
}
static function volumeSound(_b) {
if (SOUND.getVolume() != 100) {
_b && (SOUND.setVolume(100));
return(true);
}
_b && (SOUND.setVolume(0));
return(false);
}
static function SUBMIT(_s, _n) {
if (_s.length > 0) {
var _local1 = new LoadVars();
var _local2 = new LoadVars();
_local1.game = GAMENAME;
trace((("\u7528\u6237\uFF1A" + _s) + " \u4E0A\u4F20\u5206\u6570\uFF1A") + _n);
_local1.score = _n;
_local1.name = _s;
_local1.sendAndLoad("http://www.freeworldgroup.com/score/score.asp", _local2, "POST");
_local2.onLoad = function () {
Global.SUBMITEND();
};
return(true);
}
return(false);
}
static function SUBMITEND() {
}
static function SAVE(_ob, _s) {
var _local1 = SharedObject.getLocal(GAMENAME + "_data", "/");
if (_s.length > 0) {
_local1.data[_s] = _ob;
} else {
_local1.data.game = _ob;
}
_local1.flush();
}
static function LOAD(_s) {
var _local2 = SharedObject.getLocal(GAMENAME + "_data", "/");
if (_local2.data.VISON != _global.VISON) {
DEL();
_local2.data.VISON = _global.VISON;
}
if (_s.length > 0) {
return(_local2.data[_s]);
}
return(_local2.data.game);
}
static function DEL() {
var _local1 = SharedObject.getLocal(GAMENAME + "_data", "/");
_local1.clear();
}
static function VIEWSCORE() {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=" + GAMENAME, "_blank");
}
static function FWGURL() {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
static function ADDGAME() {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
}
static function DOWNLOAD() {
getURL ("http://www.ifungames.com", "_blank");
}
static var MUSIC = new Sound();
static var SOUND = new Sound();
static var obTemp = new Object();
static var GAMENAME = "stick_bang";
static var WIDTH = Stage.width;
static var HEIGHT = Stage.height;
}
Symbol 904 MovieClip [__Packages.Exp] Frame 0
class Exp
{
var mc, mHit, nRadian, nPower, totalPiece, onFinish;
function Exp (_mc, _m2) {
mc = _mc;
mHit = _m2;
nRadian = mc.nRadian;
nPower = mc.nPower;
mc.filters = null;
mc.exp = this;
mc._rotation = 0;
totalPiece = 0;
mc.stop();
mc.onEnterFrame = function () {
delete this.onEnterFrame;
this.exp.init();
};
}
function init(Void) {
var _local2;
var _local6 = 1;
for (var _local7 in mc) {
_local2 = mc[_local7];
if (_local2._parent != mc) {
continue;
}
totalPiece++;
_local2.swapDepths(_local6++);
_local2.nPower = nPower * (Math.random() + 0.2);
_local2.vx = _local2.nPower * Math.cos((nRadian + Math.random()) - 0.5);
_local2.vy = _local2.nPower * Math.sin((nRadian + Math.random()) - 0.5);
_local2.va = 10 - (Math.random() * 21);
if (mc._s != undefined) {
_local2._xscale = (_local2._yscale = 60);
}
_local2.onEnterFrame = function () {
if (this.bBlood) {
this._rotation = Math.atan2(this.vy, this.vx) * Common.a2r;
} else {
this._rotation = this._rotation + this.va;
}
this.vy = this.vy + game.Main.G;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
var _local2 = {x:_x, y:_y};
this.localToGlobal(_local2);
if ((_local2.y > 600) || (this._alpha <= 0)) {
this._parent.exp.delPiece();
this.removeMovieClip();
} else if (this.bHit) {
this._alpha = this._alpha - 10;
} else if (game.Main.hitGround(_local2.x, _local2.y, this._parent.exp.mHit)) {
this.vy = this.vy * -0.3;
this.vx = this.vx * 0.8;
this.bHit = true;
}
};
}
}
function delPiece(Void) {
if ((--totalPiece) <= 0) {
mc.removeMovieClip();
onFinish();
}
}
}
Symbol 905 MovieClip [__Packages.Common] Frame 0
class Common
{
function Common () {
}
static function enabledFor(_b, _m, _mHit, _nDepth) {
(_m == undefined) && (_m = _root);
(_mHit == undefined) && (_mHit = _root);
(_nDepth == undefined) && (_nDepth = _m.getNextHighestDepth());
if (_b) {
_m.createEmptyMovieClip("_mEnabled", _nDepth);
_m._mEnabled.enabled = false;
_m._mEnabled.hitArea = _mHit;
_m._mEnabled.onPress = function () {
};
updateAfterEvent();
} else {
_m._mEnabled.removeMovieClip();
updateAfterEvent();
}
}
static function changeQ() {
switch (_root._quality) {
case "LOW" :
_root._quality = "MEDIUM";
return("MED");
case "MEDIUM" :
_root._quality = "HIGH";
break;
case "HIGH" :
_root._quality = "BEST";
break;
case "BEST" :
_root._quality = "LOW";
}
return(_root._quality);
}
static function getBmdHitRect(bg, obj) {
var _local2 = getContainBmd(bg, obj, 10, 10);
_root.attachBitmap(_local2, 0);
return(_local2.getColorBoundsRect(4294967295, 4278190080));
}
static function getContainBmd(bg, obj, bm1, bm2) {
var _local1 = obj.getBounds(obj);
var _local3 = new flash.geom.Rectangle(_local1.xMin, _local1.yMin, _local1.xMax - _local1.xMin, _local1.yMax - _local1.yMin);
var _local4 = new flash.display.BitmapData(_local3.width, _local3.height, true, 0);
var _local6 = bg.transform.concatenatedMatrix;
var _local2 = new flash.geom.Matrix(1, 0, 0, 1, -_local3.x, -_local3.y);
_local4.draw(obj, _local2, null, bm1);
_local2.tx = _local2.tx * -1;
_local2.ty = _local2.ty * -1;
var _local7 = obj.transform.concatenatedMatrix;
_local2.concat(_local7);
_local2.invert();
_local6.concat(_local2);
_local4.draw(bg, _local6, null, bm2);
return(_local4);
}
static function wink(_m, _T, _n) {
_m.nTemp_time = 0;
(_m.nT = _T);
(_m.nN = _n);
_m.onEnterFrame = function () {
this.nTemp_time++;
this._alpha = 100 - Common.trigonometric(this.nTemp_time, this.nT, 100);
if (this.nTemp_time >= (this.nN * this.nT)) {
this.winkEnd();
this._alpha = 100;
delete this.onEnterFrame;
delete this.nTemp_time;
delete this.nN;
delete this.nT;
}
};
}
static function addClip(_sId, _sName, _m, oBject, _nDepth) {
(_nDepth == undefined) && (_nDepth = _m.getNextHighestDepth());
(_sName == undefined) && (_sName = _sId);
return(_m.attachMovie(_sId, _sName + _nDepth, _nDepth, oBject));
}
static function clearAllClip(_m, _bAll) {
for (var _local3 in _m) {
if (_bAll) {
_m[_local3].swapDepths(0);
}
_m[_local3].removeMovieClip();
}
}
static function removeFixMc(mc) {
mc.swapDepths(mc._parent.getNextHighestDepth());
mc.removeMovieClip();
}
static function localToLocal(p, mc1, mc2) {
mc1.localToGlobal(p);
mc2.globalToLocal(p);
}
static function np(_n) {
(_n == undefined) && (_n = 1);
return(((random(2) > 0) ? (_n) : (-_n)));
}
static function rdm_2(a, b) {
return((Math.random() * (b - a)) + a);
}
static function rdm_0(a, l) {
return((a - (Math.random() * l)) + (l / 2));
}
static function rdm_a(a1, a2, A) {
var _local3 = 0;
var _local5 = Math.random();
var _local4 = 0;
var _local2 = A.concat();
for (var _local6 in _local2) {
var _local1 = 0;
while (_local1 < Number(_local6)) {
_local2[_local6] = _local2[_local6] + _local2[_local1];
_local1++;
}
(_local3 < _local2[_local6]) && (_local3 = _local2[_local6]);
_local2[_local6] = _local2[_local6] / _local3;
if (_local5 >= _local2[_local6]) {
_local4 = Number(_local6) + 1;
break;
}
}
return(a1 + ((_local4 * (a2 - a1)) / (_local2.length - 1)));
}
static function formatNumber(_n, _nMin, _nMax) {
if (_n < _nMin) {
_n = _nMin;
} else if (_n > _nMax) {
_n = _nMax;
}
return(_n);
}
static function disorder(arr) {
var _local5 = arr.length;
var _local1 = 0;
while (_local1 < _local5) {
var _local3 = random(_local5);
var _local4 = arr[_local1];
arr[_local1] = arr[_local3];
arr[_local3] = _local4;
_local1++;
}
}
static function removeArray(_a, _ai) {
for (var _local2 in _a) {
if (_a[_local2] == _ai) {
_a.splice(int(_local2), 1);
return(-1);
}
}
return(((_local2 == undefined) ? 0 : 1));
}
static function forIn(_a, _s, _b, _ob) {
var _local2 = [];
for (var _local5 in _a) {
if (((_a[_local5] == undefined) || (!_a[_local5][_s](_ob))) && (_b)) {
_local2.push(_local5);
}
}
if (_b) {
for (var _local5 in _local2) {
_a.splice(int(_local2[_local5]), 1);
}
}
}
static function distance(x0, y0, xt, yt) {
return(Math.sqrt(Math.pow(xt - x0, 2) + Math.pow(yt - y0, 2)));
}
static function side_min(x0, y0, xt, yt) {
return(Math.min(Math.abs(xt - x0), Math.abs(yt - y0)));
}
static function side_max(x0, y0, xt, yt) {
return(Math.max(Math.abs(xt - x0), Math.abs(yt - y0)));
}
static function rFloor(r) {
if (r >= Math.PI) {
r = r - (Math.PI*2);
}
if (r <= -3.14159265358979) {
r = r + (Math.PI*2);
}
return(r);
}
static function rFloor_n(r) {
if (r >= 180) {
r = r - 360;
}
if (r <= -180) {
r = r + 360;
}
return(r);
}
static function s_b(n, a, b) {
if ((a < n) && (n < b)) {
return(0);
}
if (n <= a) {
return(-1);
}
return(1);
}
static function vpNum(_n, _t) {
(_t == undefined) && (_t = 1);
if (_n == 0) {
return(0);
}
if (_n > 0) {
return(_t);
}
return(-_t);
}
static function formatTime(_n) {
var _local3;
var _local4;
var _local2;
if (_n < 60) {
_local3 = 0;
_local4 = _local3;
_local2 = _n;
} else if (_n < 3600) {
_local3 = 0;
_local4 = Math.floor(_n / 60);
_local2 = _n % 60;
} else {
_local3 = Math.floor(_n / 3600);
_local4 = Math.floor(_n / 60) % 60;
_local2 = _n % 60;
}
var _local5 = ((_local3 < 10) ? ("0" + _local3) : (_local3));
var _local7 = ((_local4 < 10) ? ("0" + _local4) : (_local4));
var _local6 = ((_local2 < 10) ? ("0" + _local2) : (_local2));
return((((_local5 + ":") + _local7) + ":") + _local6);
}
static function trigonometric(x, T, A) {
var _local1 = (Math.PI / T) * x;
return(A * Math.sin(_local1));
}
static function linearCycle(x, T, r) {
var _local1 = T / 2;
x = x % T;
if (x > _local1) {
return((1 - ((x % _local1) / _local1)) * r);
}
if (x < _local1) {
return(((x % _local1) / _local1) * r);
}
return(r);
}
static function getRadian(_m1, _m2) {
if (_m1._parent == _m2._parent) {
return(Math.atan2(_m1._y - _m2._y, _m1._x - _m2._x));
}
}
static function parabolaSpeed(x0, y0, xt, yt, nR, nG) {
var _local1 = xt - x0;
var _local2 = yt - y0;
return(Math.sqrt((((nG * _local1) / (Math.tan(nR) - (_local2 / _local1))) / Math.pow(Math.cos(nR), 2)) / 2));
}
static function parabolaRot(x0, y0, xt, yt, nV, nG) {
var _local5 = xt - x0;
var _local7 = yt - y0;
var _local2 = ((nG * _local5) * _local5) / ((2 * nV) * nV);
var _local1 = _local5;
var _local6 = _local2 - _local7;
var _local4 = (_local1 * _local1) - ((4 * _local2) * _local6);
if (_local4 < 0) {
return(undefined);
}
var _local3 = new Object();
if (_local5 > 0) {
_local3.x1 = Math.atan(((-_local1) - Math.sqrt(_local4)) / (2 * _local2));
_local3.x2 = Math.atan(((-_local1) + Math.sqrt(_local4)) / (2 * _local2));
} else {
_local3.x1 = Math.atan(((-_local1) - Math.sqrt(_local4)) / (2 * _local2)) - Math.PI;
_local3.x2 = Math.atan(((-_local1) + Math.sqrt(_local4)) / (2 * _local2)) - Math.PI;
}
return(_local3);
}
static function crossPoint(x0, y0, xt, yt, _mHit, _nMin) {
isNaN(_nMin) && (_nMin = 1);
var _local3 = false;
var _local4 = int(distance(x0, y0, xt, yt));
var _local12;
var _local11;
_local12 = ((xt - x0) / _local4) * _nMin;
_local11 = ((yt - y0) / _local4) * _nMin;
var _local5 = 0;
while ((!_local3) && ((_local5++) < _local4)) {
x0 = x0 + _local12;
y0 = y0 + _local11;
_local3 = _mHit.hitTest(x0, y0, true);
}
return({x:x0, y:y0, bHit:_local3});
}
static function closePoint(x0, y0, xt, yt, _mHit, _nMin) {
isNaN(_nMin) && (_nMin = 0.5);
var _local6 = false;
var _local5 = 1;
var _local12;
var _local11;
var _local8 = 0;
while ((side_max(x0, y0, xt, yt) > _nMin) && ((_local8++) < 100)) {
_local12 = (x0 + xt) / 2;
_local11 = (y0 + yt) / 2;
_local5 = (_mHit.hitTest(_local12, _local11, true) ? (_local6 = true-1) : 1);
if (_local5 > 0) {
x0 = _local12;
y0 = _local11;
} else {
xt = _local12;
yt = _local11;
}
}
return({x:x0, y:y0, bHit:_local6});
}
static function deepObjectCopy(obj) {
if ((((typeof(obj) != "object") || (obj instanceof Button)) || (obj instanceof TextField)) || (obj instanceof MovieClip)) {
return(obj);
}
var _local3;
if (obj instanceof Boolean) {
_local3 = new Boolean(Boolean.prototype.valueOf.call(obj));
} else if (obj instanceof Number) {
_local3 = new Number(Number.prototype.valueOf.call(obj));
} else if (obj instanceof String) {
_local3 = new String(String.prototype.valueOf.call(obj));
} else if (obj.__constructor__) {
if (typeof(obj.clone) == "function") {
_local3 = obj.clone();
if (_local3.__proto__ == obj.__proto__) {
return(_local3);
}
}
_local3 = new obj.__constructor__();
} else if (obj instanceof Array) {
_local3 = [];
} else {
_local3 = {};
}
for (var _local4 in obj) {
if (obj.hasOwnProperty(_local4)) {
_local3[_local4] = arguments.callee(obj[_local4]);
}
}
return(_local3);
}
static var a2r = 57.2957795130823;
}
Symbol 906 MovieClip [__Packages.game.Main] Frame 0
class game.Main extends MovieClip
{
static var obF;
var nTime, nTime_th, _x, _y, __nScore, __bPause, gotoAndStop, attachMovie, getNextHighestDepth, btMoreGame, btAddGame, btDownload, btHighScore, btPlay, btHelp, mClip, nLevel, onEnterFrame, aPlayer_b_level, aPlayer_b, aGround, aFly, aEnemy, aPlayer, mDelay, player;
function Main () {
super();
stopAllSounds();
_root.stop();
Common.clearAllClip(_root);
Common.clearAllClip(this);
Global.GAME = this;
Global.MUSIC = new Sound(_root.createEmptyMovieClip("mMusic", _root.getNextHighestDepth()));
Global.SOUND = new Sound(this);
Global.obTemp.matrix = new flash.geom.Matrix();
Global.obTemp.colorTf = new flash.geom.ColorTransform();
nScore = (0);
nTime = 0;
nTime_th = 0;
_x = (_y = 0);
Global.playMusic("sdMusic", 0, 9999);
}
function get nScore() {
return(__nScore);
}
function set nScore(_nScore) {
__nScore = int(_nScore);
(__nScore < 0) && ((__nScore = 0));
//return(nScore);
}
function get bPause() {
return(__bPause);
}
function set bPause(_bPause) {
if (__bPause != _bPause) {
__bPause = _bPause;
(__bPause ? (pause()) : (run()));
}
//return(bPause);
}
function init() {
Fade_2.start();
gotoAndStop("menu");
}
function inMenu() {
bPause = (true);
Common.clearAllClip(this);
var _local3 = new Array("btPlay", "btHelp", "btHighScore", "btDownload", "btMoreGame", "btAddGame");
var _local8 = "right";
var _local9 = 40;
var _local11 = Global.WIDTH - 20;
var _local10 = 220;
var _local2 = 0;
while (_local2 < _local3.length) {
attachMovie("common.Btn", _local3[_local2], getNextHighestDepth(), {sTxt:aButtons_label[_local2], autoSize:_local8, _x:_local11, _y:_local10 + (_local2 * _local9)});
_local2++;
}
btMoreGame.press = function () {
Global.FWGURL();
};
btAddGame.press = function () {
Global.ADDGAME();
};
btDownload.press = function () {
Global.DOWNLOAD();
};
btHighScore.press = function () {
Global.VIEWSCORE();
};
btPlay.press = function () {
if (Global.LOAD() != undefined) {
Fade_2.start();
Global.GAME.gotoAndStop("loading");
} else {
Global.SAVE(true);
Fade_2.start();
Global.GAME.gotoAndStop("help");
}
};
btHelp.press = function () {
Fade_2.start();
Global.GAME.gotoAndStop("help");
};
}
function inCredits() {
bPause = (true);
Common.clearAllClip(this);
Common.addClip("common.Btn", "Btn", this, {_x:Global.WIDTH / 2, _y:50, sTxt:"MUSIC CREDITS", autoSize:"center", _xscale:300, _yscale:300, enabled:false});
addMenu_btn();
}
function inHelp() {
bPause = (false);
Common.clearAllClip(this);
Common.addClip("common.Btn", "Btn", this, {_x:Global.WIDTH / 2, _y:50, sTxt:aButtons_label[1], autoSize:"center", _xscale:300, _yscale:300, enabled:false});
addMenu_btn();
}
function inSetting() {
bPause = (true);
Common.clearAllClip(this);
addMenu_btn();
}
function inLoading() {
bPause = (true);
gotoAndStop("playing");
setLevel();
}
function inPlaying() {
Common.clearAllClip(this);
(mClip._x = 0);
(mClip._y = 0);
mClip.mGround.gotoAndStop(nLevel);
drawGround(mClip.mGround);
mClip.createEmptyMovieClip("mUnit", 1);
mClip.mUnit._visible = false;
addPlayer();
var _local2 = 0;
while (_local2 < (int(nLevel / 4) + 1)) {
if ((((nLevel == 4) || (nLevel == 7)) || (nLevel == 7)) && (_local2 == 0)) {
addEnemy(1);
} else {
addEnemy();
}
_local2++;
}
trace("\u5269\u4F59:" + nRemain);
trace("\u73B0\u6709:" + nHave);
bPause = (false);
}
function inNextLevel() {
bPause = (true);
Common.clearAllClip(this);
Common.addClip("common.Btn", "Btn", this, {_x:Global.WIDTH / 2, _y:50, sTxt:"LEVEL COMPLETE", autoSize:"center", _xscale:300, _yscale:300, enabled:false});
Common.addClip("common.Btn", "Btn", this, {_x:Global.WIDTH / 2, _y:150, sTxt:"SCORE: " + nScore, autoSize:"center", _xscale:200, _yscale:200, enabled:false});
Common.addClip("common.Btn", "Btn", this, {_x:Global.WIDTH / 2, _y:250, sTxt:"SUBMIT SCORE", autoSize:"center", press:function () {
Common.addClip("common.PopUp", "PopUp", _root, {sFrame:"submit", aSt:["", Global.GAME.nScore]});
this._visible = false;
}});
Common.addClip("common.Btn", "Btn", this, {_x:Global.WIDTH / 2, _y:300, sTxt:"CONTINUE", autoSize:"center", press:function () {
Fade_2.start();
Global.GAME.nLevel++;
Global.GAME.gotoAndStop("shop");
}});
Common.addClip("common.Btn", "Btn", this, {_x:Global.WIDTH / 2, _y:400, sTxt:"MENU", autoSize:"center", press:function () {
Fade_2.start();
Global.GAME.gotoAndStop("menu");
}});
}
function inGameOver() {
bPause = (true);
Common.clearAllClip(this);
Common.addClip("common.Btn", "Btn", this, {_x:Global.WIDTH / 2, _y:50, sTxt:"GAME OVER!", autoSize:"center", _xscale:300, _yscale:300, enabled:false});
Common.addClip("common.Btn", "Btn", this, {_x:Global.WIDTH / 2, _y:150, sTxt:"SCORE: " + nScore, autoSize:"center", _xscale:200, _yscale:200, enabled:false});
Common.addClip("common.Btn", "Btn", this, {_x:Global.WIDTH / 2, _y:250, sTxt:"SUBMIT SCORE", autoSize:"center", press:function () {
Common.addClip("common.PopUp", "PopUp", _root, {sFrame:"submit", aSt:["", Global.GAME.nScore]});
this._visible = false;
}});
Common.addClip("common.Btn", "Btn", this, {_x:Global.WIDTH / 2, _y:300, sTxt:"CONTINUE", autoSize:"center", press:function () {
Fade_2.start();
Global.GAME.gotoAndStop("loading");
}});
Common.addClip("common.Btn", "Btn", this, {_x:Global.WIDTH / 2, _y:350, sTxt:"RESTART", autoSize:"center", press:function () {
Global.GAME.nPlayer_money = 0;
Global.GAME.nScore = 0;
Global.GAME.nLevel = undefined;
Fade_2.start();
Global.GAME.gotoAndStop("loading");
}});
Common.addClip("common.Btn", "Btn", this, {_x:50, _y:400, sTxt:"MENU", autoSize:"left", press:function () {
Fade_2.start();
Global.GAME.gotoAndStop("menu");
}});
Common.addClip("common.Btn", "Btn", this, {_x:50, _y:450, sTxt:aButtons_label[3], autoSize:"left", press:function () {
Global.DOWNLOAD();
}});
Common.addClip("common.Btn", "Btn", this, {_x:50, _y:500, sTxt:aButtons_label[4], autoSize:"left", press:function () {
Global.FWGURL();
}});
Common.addClip("common.Btn", "Btn", this, {_x:50, _y:550, sTxt:aButtons_label[5], autoSize:"left", press:function () {
Global.ADDGAME();
}});
}
function inShop() {
bPause = (true);
Common.clearAllClip(this);
}
function inGameWin() {
bPause = (false);
Common.clearAllClip(this);
Common.addClip("common.Btn", "Btn", this, {_x:Global.WIDTH / 2, _y:50, sTxt:"YOU WIN!", autoSize:"center", _xscale:300, _yscale:300, enabled:false});
Common.addClip("common.Btn", "Btn", this, {_x:Global.WIDTH / 2, _y:150, sTxt:"SCORE: " + nScore, autoSize:"center", _xscale:200, _yscale:200, enabled:false});
Common.addClip("common.Btn", "Btn", this, {_x:Global.WIDTH / 2, _y:250, sTxt:"SUBMIT SCORE", autoSize:"center", press:function () {
Common.addClip("common.PopUp", "PopUp", _root, {sFrame:"submit", aSt:["", Global.GAME.nScore]});
this._visible = false;
}});
Common.addClip("common.Btn", "Btn", this, {_x:Global.WIDTH / 2, _y:400, sTxt:"MENU", autoSize:"center", press:function () {
Fade_2.start();
Global.GAME.gotoAndStop("menu");
}});
Common.addClip("common.Btn", "Btn", this, {_x:Global.WIDTH / 2, _y:450, sTxt:aButtons_label[3], autoSize:"center", press:function () {
Global.DOWNLOAD();
}});
Common.addClip("common.Btn", "Btn", this, {_x:Global.WIDTH / 2, _y:500, sTxt:aButtons_label[4], autoSize:"center", press:function () {
Global.FWGURL();
}});
Common.addClip("common.Btn", "Btn", this, {_x:Global.WIDTH / 2, _y:550, sTxt:aButtons_label[5], autoSize:"center", press:function () {
Global.ADDGAME();
}});
}
function addMenu_btn() {
Common.addClip("common.Btn", "Btn", this, {_x:Global.WIDTH - 50, _y:Global.HEIGHT - 50, sTxt:"MENU", autoSize:"right", press:function () {
Fade_2.start();
Global.GAME.gotoAndStop("menu");
}});
}
function run() {
onEnterFrame = function () {
Global.GAME.step();
};
}
function pause() {
delete onEnterFrame;
}
function step_time() {
nTime++;
}
function step() {
nTime_th++;
}
function setLevel() {
if (nLevel == undefined) {
nLevel = 1;
aPlayer_b_level = [null, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aPlayer_b = [null, 99999, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2];
}
(aGround = []);
(aFly = []);
(aEnemy = []);
(aPlayer = []);
obF = {x:0, y:0};
nRemain = int((nLevel - 1) / 2) + 1;
nHave = 0;
}
function overDelay(_n) {
if (mDelay.nType == undefined) {
mDelay.play();
mDelay.nType = _n;
}
}
function addEnemy(_n) {
if (nRemain > 0) {
if ((_n > 0) || ((nLevel > 5) && (random(100) > 50))) {
var _local5 = Common.addClip("game.Man_flight", "Man_flight", mClip, {_x:400, _y:0});
} else {
var _local5 = Common.addClip("game.Catapult", "Catapult", mClip, {nId:2, _x:(random((Global.WIDTH / 2) - 50) + (Global.WIDTH / 2)) + 50, _y:0, ctrl:new game.Ai()});
}
var _local2 = [];
var _local3 = 0;
while (_local3 < 15) {
_local2[_local3] = int(nLevel / 4);
_local3++;
}
_local5.aLevel = _local2.concat();
_local3 = 1;
while (_local3 < 15) {
if (_local3 == 1) {
_local2[_local3] = 99999 /* 0x01869F */;
} else if (((_local3 != 6) && (_local3 != 8)) && (_local3 <= nLevel)) {
_local2[_local3] = nLevel * 2;
} else {
_local2[_local3] = 0;
}
_local3++;
}
_local3 = 0;
while (_local3 < nLevel) {
var _local4 = random(14) + 1;
_local2[_local4] = _local2[_local4] + (random(6) + 1);
_local3++;
}
_local5.aBullet = _local2.concat();
nRemain--;
nHave++;
}
}
function addPlayer(x, y) {
player = Common.addClip("game.Catapult", "Catapult", mClip, {nId:1, _x:((x == undefined) ? (random((Global.WIDTH / 2) - 50) + 50) : (x)), _y:((y == undefined) ? 0 : (y)), ctrl:new game.Human()});
player.aLevel = aPlayer_b_level.concat();
player.aBullet = aPlayer_b.concat();
}
function buyWeapon(_n) {
if (nPlayer_money < aWeapon_cost[_n]) {
Common.addClip("common.PopUp", "PopUp", this, {sFrame:"ok", aSt:["You don't have enough money!"]});
return(undefined);
}
if (aPlayer_b[_n] >= aWeapon_num_max[_n]) {
Common.addClip("common.PopUp", "PopUp", this, {sFrame:"ok", aSt:["Maximum number of units for this weapon reached!"]});
return(undefined);
}
nPlayer_money = nPlayer_money - aWeapon_cost[_n];
aPlayer_b[_n]++;
}
function upWeapon(_n) {
if (nPlayer_money < aWeapon_level[_n]) {
Common.addClip("common.PopUp", "PopUp", this, {sFrame:"ok", aSt:["You don't have enough money!"]});
return(undefined);
}
if (aPlayer_b_level[_n] >= aWeapon_level_max[_n]) {
Common.addClip("common.PopUp", "PopUp", this, {sFrame:"ok", aSt:["No more upgrades available!"]});
return(undefined);
}
nPlayer_money = nPlayer_money - aWeapon_level[_n];
aPlayer_b_level[_n]++;
}
function drawGround(_m) {
var _local4 = new flash.display.BitmapData(Global.WIDTH, Global.HEIGHT - 60, true, 0);
_local4.draw(_m);
var _local1 = "mGround";
var _local2 = _m._parent;
var _local5 = _m.filters;
_m.swapDepths(0);
_m.removeMovieClip();
_local2.createEmptyMovieClip(_local1, 0);
_local2[_local1].attachBitmap(_local4, 0);
_local2[_local1].bmp = _local4;
_local2[_local1].filters = _local5;
return(_local2[_local1]);
}
static function adjustRadian(x, y, _nRadian, _nRadius, _mHit) {
var _local2 = Math.cos(_nRadian) * _nRadius;
var _local1 = Math.sin(_nRadian) * _nRadius;
Global.obTemp.obr = crossPoint(x + _local1, y - _local2, x + _local2, y + _local1, _mHit);
Global.obTemp.obl = crossPoint(x + _local1, y - _local2, x - _local2, y - _local1, _mHit);
if (!Global.obTemp.obr.bHit) {
Global.obTemp.obr = crossPoint(x + _local2, y + _local1, x - _local1, y + _local2, _mHit);
}
if (!Global.obTemp.obl.bHit) {
Global.obTemp.obl = crossPoint(x - _local2, y - _local1, x - _local1, y + _local2, _mHit);
}
_nRadian = Math.atan2(Global.obTemp.obr.y - Global.obTemp.obl.y, Global.obTemp.obr.x - Global.obTemp.obl.x);
_local2 = Math.cos(_nRadian) * _nRadius;
_local1 = Math.sin(_nRadian) * _nRadius;
return([_nRadian, _local2, _local1]);
}
static function crossPoint(x0, y0, xt, yt, _mHit, _nMin) {
isNaN(_nMin) && (_nMin = 1);
var _local3 = false;
var _local4 = int(Common.distance(x0, y0, xt, yt));
var _local12;
var _local11;
_local12 = ((xt - x0) / _local4) * _nMin;
_local11 = ((yt - y0) / _local4) * _nMin;
xt = x0;
yt = y0;
var _local5 = 0;
while ((!_local3) && ((_local5++) < _local4)) {
x0 = x0 + _local12;
y0 = y0 + _local11;
_local3 = hitGround(x0, y0, _mHit);
}
(!_local3) && (x0 = xty0 = yt);
return({x:x0, y:y0, bHit:_local3});
}
static function closePoint(x0, y0, xt, yt, _mHit, _nMin) {
isNaN(_nMin) && (_nMin = 0.5);
var _local6 = false;
var _local5 = 1;
var _local12;
var _local11;
var _local8 = 0;
while ((Common.side_max(x0, y0, xt, yt) > _nMin) && ((_local8++) < 100)) {
_local12 = (x0 + xt) / 2;
_local11 = (y0 + yt) / 2;
_local5 = (hitGround(_local12, _local11, _mHit) ? (_local6 = true-1) : 1);
if (_local5 > 0) {
x0 = _local12;
y0 = _local11;
} else {
xt = _local12;
yt = _local11;
}
}
return({x:x0, y:y0, bHit:_local6});
}
static function hitGround(x, y, _m) {
Global.obTemp.x = x;
Global.obTemp.y = y;
_m.globalToLocal(Global.obTemp);
return(_m.bmp.getPixel32(Math.round(Global.obTemp.x), Math.round(Global.obTemp.y)) != 0);
}
static function paintGround(_mObj, _mGround) {
Global.obTemp.matrix.tx = _mObj._x - _mGround._x;
Global.obTemp.matrix.ty = _mObj._y - _mGround._y;
_mGround.bmp.draw(_mObj, Global.obTemp.matrix, Global.obTemp.colorTf, 12);
}
function onMouseDown() {
}
var aButtons_label = new Array("PLAY GAME", "INSTRUCTIONS", "VIEW HIGHSCORES", "DOWNLOAD GAMES", "MORE ONLINE GAMES", "ADD THIS GAME TO YOUR SITE");
static var G = 0.5;
var nRemain = 0;
var nHave = 0;
var nPlayer_money = 0;
var nPlayer_money_back = 0;
var aWeapon_cost = [null, 0, 300, 150, 260, 280, 180, 200, 210, 240, 250, 400, 300, 550, 450];
var aWeapon_level_max = [null, 0, 2, 2, 2, 2, 2, 0, 0, 0, 0, 2, 2, 0, 0];
var aWeapon_num_max = [null, 20, 6, 10, 6, 6, 4, 4, 10, 4, 4, 5, 6, 5, 3];
var aWeapon_level = [null, 500, 400, 400, 420, 450, 470, 460, 400, 500, 460, 800, 700, 600, 800];
var sInfo = [null, "Suicide Bomber - small explosion area.", "Rocket Man - big explosion area and more damage.", "Digger - digs a vertical hole in the ground.", "Timed bomber - will walk a certain distance before exploding.", "Ripper Rocker - stickman will explode into several pieces mid-air.", "Elite Stickman - will parachute into any territory and shoot at the ground.", "Strong Man - will push the enemy out of position.", "Stabber Bagger - will stab to death any on-ground enemy weapons.", "Fly Tumbler - will slow down enemy attack by irritating them.", "The Ice Man - spreads ice on the ground hindering enemy movement.", "Burnie Burnie - this dude will burn an area of ground where he lands.", "Freezoid - will stop enemy for a small amount of time.", "Repair Man - will repair some of the damage you have endured.", "Brella Smella - will protect you from enemy fire for a bit."];
}
Symbol 907 MovieClip [__Packages.Fade_2] Frame 0
class Fade_2
{
function Fade_2 () {
}
static function start(_ob) {
var _local21 = false;
var _local18 = Stage.width;
var _local19 = Stage.height;
var _local23 = 0;
var _local22 = 0;
for (var _local14 in _ob) {
Fade_2[_local14] = _ob[_local14];
}
var _local15 = new flash.display.BitmapData(_local18, _local19, false, nColor);
_local15.draw(_root);
var _local16 = _root.createEmptyMovieClip("mClip_root" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
var _local10 = _local16.createEmptyMovieClip("mClip_mask", 0);
var _local17 = _local16.createEmptyMovieClip("mClip_bmp", 1);
_local17.attachBitmap(_local15, 0);
_local21 && (disableBtn(_local16));
_local10.bmpRoot = _local15;
_local10.nFinish = nLine_x * nLine_y;
_local10.isFinish = function () {
this.nFinish--;
if (this.nFinish <= 0) {
this.bmpRoot.dispose();
Fade_2.end();
this.removeMovieClip();
}
};
if (!(0 === 0)) {
} else {
var _local7 = random(2);
var _local9 = 10;
var _local8 = 10;
var _local5 = 0;
var _local3 = 0;
var _local20 = random(4);
var _local13 = "animation_" + _local20;
var _local12 = getRdm(_local20);
var _local4 = 0;
while (_local4 < _local10.nFinish) {
var _local6 = Fade_2[_local13](_local10, "m_", nInterval + (_local4 / 2), _local12);
if (_local4 < ((_local5 + nLine_x) - ((2 * _local3) + 1))) {
_local6._x = ((nLine_x - ((((_local3 + _local5) + nLine_x) - ((2 * _local3) + 1)) - _local4)) - 1) * _local9;
_local6._y = (_local7 ? ((nLine_y - _local3) - 1) : (_local3)) * _local8;
} else if (_local4 < (((_local5 + nLine_x) + nLine_y) - (2 * ((2 * _local3) + 1)))) {
_local6._x = ((nLine_x - _local3) - 1) * _local9;
_local6._y = (_local7 ? (((((_local3 + _local5) + nLine_x) + nLine_y) - (2 * ((2 * _local3) + 1))) - _local4) : ((nLine_y - (((((_local3 + _local5) + nLine_x) + nLine_y) - (2 * ((2 * _local3) + 1))) - _local4)) - 1)) * _local8;
} else if (_local4 < (((_local5 + (2 * (nLine_x - ((2 * _local3) + 1)))) + nLine_y) - ((2 * _local3) + 1))) {
_local6._x = (((((_local3 + _local5) + (2 * (nLine_x - ((2 * _local3) + 1)))) + nLine_y) - ((2 * _local3) + 1)) - _local4) * _local9;
_local6._y = (_local7 ? (_local3) : ((nLine_y - _local3) - 1)) * _local8;
} else {
_local6._x = _local3 * _local9;
_local6._y = (_local7 ? ((nLine_y - (((_local3 + _local5) + (2 * ((nLine_x + nLine_y) - (2 * ((2 * _local3) + 1))))) - _local4)) - 1) : (((_local3 + _local5) + (2 * ((nLine_x + nLine_y) - (2 * ((2 * _local3) + 1))))) - _local4)) * _local8;
if (_local4 == ((_local5 + (2 * ((nLine_x + nLine_y) - (2 * ((2 * _local3) + 1))))) - 1)) {
_local5 = _local5 + (2 * ((nLine_x + nLine_y) - (2 * ((2 * _local3) + 1))));
_local3++;
}
}
_local4++;
}
}
(_local10._width = _local18);
(_local10._height = _local19);
(_local10._x = _local23);
(_local10._y = _local22);
_local17.setMask(_local10);
}
static function adjustXY(_m) {
}
static function end() {
}
static function getRdm(_n) {
switch (_n) {
case 0 :
case 3 :
return(random(2));
case 1 :
return(random(9));
case 2 :
return(random(5));
}
}
static function animation_0(_m, _s, _nT, _nRdm, _nDelay) {
var _local3 = _m.getNextHighestDepth();
var _local2 = _m.createEmptyMovieClip(_s + _local3, _local3);
_local2.nRdm = (isNaN(_nRdm) ? (random(2)) : (_nRdm));
_local2.nTime = (isNaN(_nDelay) ? 0 : (_nDelay));
_local2.nT = _nT;
createClip("m_", _local2, 0, 0);
createClip("m_", _local2, 0, 1, {_x:10, _y:10, _rotation:180});
_local2.onEnterFrame = function () {
this.nTime++;
if (this.nTime >= int(this.nT / 2)) {
this._parent.isFinish();
delete this.onEnterFrame;
this.removeMovieClip();
} else if (this.nTime >= 0) {
this.nTemp = 50 - Fade_2.trigonometric(this.nTime, this.nT, 50);
if (this.nRdm > 0) {
this.m_0._yscale = (this.m_1._yscale = this.nTemp);
} else {
this.m_0._xscale = (this.m_1._xscale = this.nTemp);
}
}
};
return(_local2);
}
static function animation_1(_m, _s, _nT, _nRdm, _nDelay) {
var _local3 = _m.getNextHighestDepth();
var _local2 = _m.createEmptyMovieClip(_s + _local3, _local3);
_local2.nRdm = (isNaN(_nRdm) ? (random(9)) : (_nRdm));
_local2.nRdm_1 = _local2.nRdm % 3;
_local2.nRdm_2 = int(_local2.nRdm / 3);
_local2.nTime = (isNaN(_nDelay) ? 0 : (_nDelay));
_local2.nT = _nT;
_local2.m_0 = createClip("m_", _local2, 1, 0, {_x:5, _y:5});
_local2.onEnterFrame = function () {
this.nTime++;
if (this.nTime >= (this.nT / 2)) {
this._parent.isFinish();
delete this.onEnterFrame;
this.removeMovieClip();
} else if (this.nTime >= 0) {
this.nTemp = 100 - Fade_2.trigonometric(this.nTime, this.nT, 100);
switch (this.nRdm_1) {
case 0 :
(this.m_0._xscale = 150);
(this.m_0._yscale = this.nTemp);
break;
case 1 :
(this.m_0._xscale = this.nTemp);
(this.m_0._yscale = 150);
break;
case 2 :
this.m_0._xscale = (this.m_0._yscale = this.nTemp);
}
if (this.nRdm_2 == 2) {
this.m_0._rotation = Fade_2.trigonometric(this.nTime, this.nT, -180);
} else if (this.nRdm_2 == 1) {
this.m_0._rotation = Fade_2.trigonometric(this.nTime, this.nT, 180);
}
}
};
return(_local2);
}
static function animation_2(_m, _s, _nT, _nRdm, _nDelay) {
var _local3 = _m.getNextHighestDepth();
var _local2 = _m.createEmptyMovieClip(_s + _local3, _local3);
_local2.nRdm = (isNaN(_nRdm) ? (random(5)) : (_nRdm));
_local2.nTime = (isNaN(_nDelay) ? 0 : (_nDelay));
_local2.nT = _nT;
_local2.m_0 = createClip("m_", _local2, 2, 0);
_local2.m_1 = createClip("m_", _local2, 2, 1, {_x:10, _y:10, _rotation:180});
_local2.onEnterFrame = function () {
this.nTime++;
if (this.nTime >= (this.nT / 2)) {
this._parent.isFinish();
delete this.onEnterFrame;
this.removeMovieClip();
} else if (this.nTime >= 0) {
this.nTemp = 100 - Fade_2.trigonometric(this.nTime, this.nT, 100);
switch (this.nRdm) {
case 0 :
this.m_0._yscale = (this.m_1._yscale = this.nTemp);
break;
case 1 :
this.m_0._xscale = (this.m_1._yscale = this.nTemp);
break;
case 2 :
this.m_0._yscale = (this.m_1._xscale = this.nTemp);
break;
case 3 :
this.m_0._xscale = (this.m_1._xscale = this.nTemp);
break;
case 4 :
this.m_0._xscale = (this.m_1._xscale = this.nTemp);
this.m_0._yscale = (this.m_1._yscale = this.nTemp);
}
}
};
return(_local2);
}
static function animation_3(_m, _s, _nT, _nRdm, _nDelay) {
var _local3 = _m.getNextHighestDepth();
var _local2 = _m.createEmptyMovieClip(_s + _local3, _local3);
_local2.nRdm = (isNaN(_nRdm) ? (random(2)) : (_nRdm));
_local2.nTime = (isNaN(_nDelay) ? 0 : (_nDelay));
_local2.nT = _nT;
_local2.m_0 = createClip("m_", _local2, 2, 0);
_local2.m_1 = createClip("m_", _local2, 2, 1, {_x:10, _y:10, _rotation:180});
_local2.m_2 = createClip("m_", _local2, 2, 2, {_x:0, _y:10, _rotation:-90});
_local2.m_3 = createClip("m_", _local2, 2, 3, {_x:10, _y:0, _rotation:90});
_local2.onEnterFrame = function () {
this.nTime++;
if (this.nTime >= (this.nT / 2)) {
this._parent.isFinish();
delete this.onEnterFrame;
this.removeMovieClip();
} else if (this.nTime >= 0) {
this.nTemp = 100 - Fade_2.trigonometric(this.nTime, this.nT, 100);
if (this.nRdm > 0) {
this.m_0._yscale = (this.m_1._yscale = (this.m_2._yscale = (this.m_3._yscale = this.nTemp)));
} else {
this.m_0._xscale = (this.m_1._xscale = (this.m_2._xscale = (this.m_3._xscale = this.nTemp)));
}
}
};
return(_local2);
}
static function disableBtn(_m) {
_m.onPress = null;
_m.enabled = false;
_m.hitArea = _root;
}
static function trigonometric(x, T, A, P) {
var _local2 = 0;
var _local1 = (Math.PI / T) * x;
if (!isNaN(P)) {
_local2 = P - _local1;
}
return(A * Math.sin(_local1 + _local2));
}
static function createClip(_s, _m, _nType, _nDepth, _ob) {
isNaN(_nDepth) && (_nDepth = _m.getNextHighestDepth());
isNaN(_nType) && (_nType = 0);
_m.createEmptyMovieClip(_s + _nDepth, _nDepth);
_m[_s + _nDepth].beginFill(0);
switch (_nType) {
case 0 :
_m[_s + _nDepth].lineTo(10, 0);
_m[_s + _nDepth].lineTo(10, 10);
_m[_s + _nDepth].lineTo(0, 10);
_m[_s + _nDepth].lineTo(0, 0);
break;
case 1 :
_m[_s + _nDepth].moveTo(-5, -5);
_m[_s + _nDepth].lineTo(-5, 5);
_m[_s + _nDepth].lineTo(5, 5);
_m[_s + _nDepth].lineTo(5, -5);
_m[_s + _nDepth].lineTo(-5, -5);
break;
case 2 :
_m[_s + _nDepth].lineTo(10, 0);
_m[_s + _nDepth].lineTo(0, 10);
_m[_s + _nDepth].lineTo(0, 0);
break;
}
_m[_s + _nDepth].endFill();
for (var _local5 in _ob) {
_m[_s + _nDepth][_local5] = _ob[_local5];
}
return(_m[_s + _nDepth]);
}
static var nColor = 0;
static var nInterval = 15;
static var nLine_x = 10;
static var nLine_y = 10;
}
Symbol 908 MovieClip [__Packages.game.Ai] Frame 0
class game.Ai
{
var target, obj, __nRadian_fire, nDir, aCk, nPower;
function Ai () {
target = Global.GAME.player;
}
function setOwner(_o) {
obj = _o;
}
function get nRadian_fire() {
return(__nRadian_fire);
}
function set nRadian_fire(_nRadian_fire) {
__nRadian_fire = _nRadian_fire;
if (target._x > obj._x) {
obj.nDir = 1;
} else {
obj.nDir = -1;
}
var _local2 = __nRadian_fire * Common.a2r;
//return(nRadian_fire);
}
function move() {
if ((Global.GAME.nTime_th % 50) == 0) {
fire();
}
if ((bFire && (obj.bCtrl)) && (nTime > 0)) {
obj.moveDir(nDir * obj.nSpeed);
nTime--;
} else {
obj.moveDir(0);
walk();
}
}
function walk() {
if ((nTime == 0) && (random(100) > 95)) {
nTime = undefined;
aCk = [];
var _local2 = Common.addClip("game.Man_test", "Man_test", Global.GAME.mClip, {nTime:20, owner:this, _x:obj._x, _y:obj._y, nRadian:obj.nRadian, nDir:1, nSpeed:obj.nSpeed, nRadius:obj.nRadius, nRadian_max:obj.nRadian_max});
var _local3 = Common.addClip("game.Man_test", "Man_test", Global.GAME.mClip, {nTime:20, owner:this, _x:obj._x, _y:obj._y, nRadian:obj.nRadian, nDir:-1, nSpeed:obj.nSpeed, nRadius:obj.nRadius, nRadian_max:obj.nRadian_max});
_local3.canWalk = (_local2.canWalk = function (_b) {
if (_b) {
this.owner.isOk(this.nDir);
} else {
this.owner.isOk(0);
}
});
}
}
function isOk(_n) {
aCk.push(_n);
if (aCk.length >= 2) {
if ((aCk[0] != 0) && (aCk[1] != 0)) {
nTime = 20;
nDir = aCk[random(aCk.length)];
} else if (aCk[0] != aCk[1]) {
nTime = 20;
nDir = ((aCk[0] != 0) ? (aCk[0]) : (aCk[1]));
} else {
nTime = 0;
}
}
}
function resetBar() {
bFire = true;
}
function fire() {
getWeapon();
if (obj.nWeapon_type == 13) {
obj.repair();
return(undefined);
}
if ((((obj.nWeapon_type > 13) || (obj.nWeapon_type == 8)) || (obj.nWeapon_type < 1)) || (obj.nWeapon_type == undefined)) {
obj.nWeapon_type == 1;
}
if (((target._name != undefined) && (bFire)) && (obj.canFire())) {
getRadian_fire();
getPower();
obj.nRadian_fire = nRadian_fire;
obj.nPower = nPower;
bFire = false;
obj.mClip.mBody_0.play();
}
}
function getWeapon() {
if ((obj.nHealth < 80) && (obj.aBullet[i] > 0)) {
obj.nWeapon_type = 13;
} else {
var _local2 = [];
for (var i in obj.aBullet) {
if (obj.aBullet[i] > 0) {
_local2.push(int(i));
}
}
obj.nWeapon_type = _local2[random(_local2.length)];
}
(obj.nWeapon_type == 10) && ((obj.nWeapon_type = 1));
}
function getPower() {
nPower = Common.parabolaSpeed(target._x, target._y, obj._x + obj.pt_fire.x, obj._y + obj.pt_fire.y, obj.getRadian_sum(nRadian_fire), game.Main.G);
if (isNaN(nPower) || (nPower > nPower_max)) {
nPower = nPower_max;
}
}
function getRadian_fire() {
var _local2 = Common.getRadian(target, obj);
nRadian_fire = (obj.getRadian_fire(Common.rFloor(_local2 + (Math.random() * Common.rFloor(-1.5707963267949 - _local2)))));
}
var nPower_max = 25;
var bFire = true;
var nTime = 0;
}
Symbol 909 MovieClip [__Packages.game.Human] Frame 0
class game.Human
{
var obj, mBar, __nRadian_fire, __nPower, nRadian;
function Human () {
nPower = (0);
nRadian_fire = (0);
_global.human = this;
Global.GAME.mPress.onPress = function () {
_global.human.fire();
};
Global.GAME.mPress.onRollOver = function () {
Global.GAME.mBar_weapon.mShow.outShow();
};
}
function setOwner(_o) {
obj = _o;
mBar = obj.mClip.mBody_0.attachMovie("mBar_fire", "mBar", 10, {_x:obj.pt_fire.x, _y:obj.pt_fire.y});
resetAllbar();
nMoney = (int(Global.GAME.nPlayer_money));
}
function get nMoney() {
return(__nMoney);
}
function set nMoney(_nMoney) {
__nMoney = _nMoney;
Global.GAME.mBar_weapon.t_money.sTxt = "$: " + __nMoney;
//return(nMoney);
}
function get nRadian_fire() {
return(__nRadian_fire);
}
function set nRadian_fire(_nRadian_fire) {
__nRadian_fire = _nRadian_fire;
if (obj.mClip.mBody_0._xmouse < 0) {
obj.nDir = -obj.nDir;
}
var _local2 = __nRadian_fire * Common.a2r;
obj.mClip.mBody_0._rotation = _local2 / 4;
mBar._rotation = (_local2 - obj.mClip.mBody_0._rotation) + (obj.nDir * obj.mClip._rotation);
obj.mClip.mBody_0.mHead._rotation = obj.mClip.mBody_0._rotation;
//return(nRadian_fire);
}
function get nPower() {
return(__nPower);
}
function set nPower(_nPower) {
__nPower = Common.formatNumber(_nPower, 0, nPower_max);
mBar.mClip._xscale = (__nPower / nPower_max) * 100;
mBar.mClip_2._x = (mBar.mClip._xscale / 2) + 10;
mBar.mClip_2.mClip._xscale = obj.nDir * 100;
mBar.mClip_2.mClip.t.sTxt = int(mBar.mClip._xscale) + "%";
//return(nPower);
}
function move() {
moveBar();
if (obj.bCtrl) {
if (Key.isDown(39)) {
obj.moveDir(obj.nSpeed);
} else if (Key.isDown(37)) {
obj.moveDir(-obj.nSpeed);
} else {
obj.moveDir(0);
}
}
if (Key.isDown(38)) {
} else if (Key.isDown(40)) {
}
}
function moveBar() {
if (mBar._visible) {
Global.obTemp.x = obj.pt_fire.x;
Global.obTemp.y = obj.pt_fire.y;
obj.mClip.mBody_0.localToGlobal(Global.obTemp);
var _local4 = _root._xmouse - Global.obTemp.x;
var _local3 = _root._ymouse - Global.obTemp.y;
nRadian = Math.atan2(_local3, _local4);
nRadian_fire = (obj.getRadian_fire(nRadian));
nPower = (Math.sqrt((_local4 * _local4) + (_local3 * _local3)) / 4);
}
}
function fireEnd() {
resetBar_weapon();
}
function resetBar_weapon() {
var _local2;
for (var _local3 in obj.aBullet) {
if (int(_local3) == 1) {
_local2 = "x\u221E";
} else {
_local2 = "x " + obj.aBullet[_local3];
}
Global.GAME.mBar_weapon["t_" + _local3].sTxt = _local2;
}
}
function reload() {
}
function resetAllbar() {
resetBar_weapon();
for (var _local2 in obj.aReload_now) {
Global.GAME.mBar_weapon["mBar_" + _local2].mClip._xscale = (obj.aReload_now[_local2] / game.Catapult.aReload_cost[_local2]) * 100;
}
}
function resetBar() {
mBar._visible = true;
}
function fire() {
if (obj.canFire() && (mBar._visible)) {
obj.nRadian_fire = nRadian_fire;
obj.nPower = nPower;
mBar._visible = false;
obj.mClip.mBody_0.play();
}
}
var nPower_max = 25;
var __nMoney = 0;
}
Symbol 910 MovieClip [__Packages.game.Obj_2] Frame 0
class game.Obj_2 extends MovieClip
{
var pt_0, pt_temp, obSpeed, mGround, mHit, _y, _x, localToGlobal, standing, _parent, mClip, nRadian_max, fallEnd, falling, walking, fallBegin, bFall_d, removeMovieClip;
function Obj_2 () {
super();
pt_0 = {};
pt_temp = {};
obSpeed = {x:0, y:1};
Global.GAME.aGround.push(this);
mGround = Global.GAME.mClip.mGround;
}
function init() {
mHit = Common.addClip("mHit_2", "mHit_2", Global.GAME.mClip.mUnit, {_x:_x, _y:_y, _width:nRadius * 2, _height:nRadius_h * 2});
}
function move() {
if ((obSpeed.x != 0) || (obSpeed.y != 0)) {
(pt_0.x = obSpeed.x);
(pt_0.y = obSpeed.y);
localToGlobal(pt_0);
(bFall ? (fall()) : (walk()));
moveClip();
} else {
standing();
}
}
function moveClip() {
(Global.obTemp.x = pt_0.x);
(Global.obTemp.y = pt_0.y);
_parent.globalToLocal(Global.obTemp);
(_x = Global.obTemp.x);
(_y = Global.obTemp.y);
moveHit();
}
function moveHit() {
(mHit._x = _x);
(mHit._y = _y);
mHit._rotation = mClip._rotation;
}
function moveDir(_n) {
if (!bFall) {
if (_n != 0) {
nDir_walk = ((_n > 0) ? 1 : -1);
if ((nRadian * nDir_walk) > (-nRadian_max)) {
var _local2;
_local2 = Math.abs(_n);
if (_n > 0) {
obSpeed.x = Math.cos(nRadian) * _local2;
obSpeed.y = Math.sin(nRadian) * _local2;
} else {
obSpeed.x = (-Math.cos(nRadian)) * _local2;
obSpeed.y = (-Math.sin(nRadian)) * _local2;
}
return(true);
}
}
obSpeed.x = 0;
obSpeed.y = 0;
}
return(false);
}
function fall() {
pt_temp = game.Main.crossPoint(pt_0.x - obSpeed.x, pt_0.y - obSpeed.y, pt_0.x, pt_0.y, mGround);
if (pt_temp.bHit) {
pt_0 = game.Main.closePoint(pt_0.x - obSpeed.x, pt_0.y - obSpeed.y, pt_temp.x, pt_temp.y, mGround);
bFall = false;
fallEnd();
obSpeed.y = 0;
obSpeed.x = 0;
} else {
obSpeed.y = obSpeed.y + game.Main.G;
falling();
if (pt_0.y > 600) {
remove();
}
}
}
function walk() {
pt_temp = game.Main.crossPoint(pt_0.x + nOffset_y, pt_0.y - nOffset_x, pt_0.x - nOffset_y, pt_0.y + nOffset_x, mGround);
if (pt_temp.bHit) {
pt_0 = game.Main.closePoint(pt_0.x + nOffset_y, pt_0.y - nOffset_x, pt_temp.x, pt_temp.y, mGround);
walking();
return(undefined);
}
obSpeed.y = 1;
obSpeed.x = 0;
bFall = true;
fallBegin();
}
function rightRadian() {
var _local2 = game.Main.adjustRadian(pt_0.x, pt_0.y, nRadian, nRadius, mGround);
nRadian = _local2[0];
if ((!bFall_d) && ((nRadian * nDir_walk) > 1.5)) {
obSpeed.y = 1;
obSpeed.x = 0;
pt_0.x = pt_0.x + (nDir_walk * 2);
bFall = true;
fallBegin();
}
nOffset_x = _local2[1];
nOffset_y = _local2[2];
}
function ckFall() {
pt_temp = game.Main.crossPoint(pt_0.x, pt_0.y - nDepthStep_max, pt_0.x, pt_0.y + nDepthStep_max, mGround);
if (pt_temp.bHit) {
rightRadian();
return(false);
}
obSpeed.y = 1;
obSpeed.x = 0;
bFall = true;
fallBegin();
return(true);
}
function remove() {
Common.removeArray(Global.GAME.aGround, this);
mHit.removeMovieClip();
removeMovieClip();
}
static var nDepthStep_max = 10;
var nRadius = 10;
var nRadius_h = 10;
var nRadian = 0;
var nOffset_x = 0;
var nOffset_y = 0;
var bFall = true;
var nSpeed = 5;
var nDir_walk = 0;
}
Symbol 911 MovieClip [__Packages.game.Catapult] Frame 0
class game.Catapult extends game.Obj_2
{
var nSpeed, nRadius, nRadius_h, nRadian_max, pt_fire, gotoAndStop, nId, ctrl, __nDir, mClip, __nHealth, mBar_info, nDir_walk, move, nRadian_fire, aBullet, pt_temp, mBullet, nPower, aLevel, mBar_reload, nRadian, _y, _x, obSpeed, bFall_fist;
function Catapult () {
super();
nSpeed = 2;
nRadius = 15;
nRadius_h = 17;
nRadian_max = 1.2;
pt_fire = {x:10, y:-30};
}
function init() {
super.init();
gotoAndStop(nId + 1);
isNaN(nDir) && (nDir = (1));
nHealth = (nHealth_max);
ctrl.setOwner(this);
}
function get nDir() {
return(__nDir);
}
function set nDir(_nDir) {
if (__nDir != _nDir) {
__nDir = _nDir;
mClip._xscale = __nDir * 100;
}
//return(nDir);
}
function get nHealth() {
return(__nHealth);
}
function set nHealth(_nHealth) {
__nHealth = int(Common.formatNumber(_nHealth, 0, nHealth_max));
mBar_info.mClip._xscale = (__nHealth / nHealth_max) * 100;
if (__nHealth <= 0) {
death();
}
//return(nHealth);
}
function moveDir(_n) {
var _local3 = super.moveDir(_n);
if (_local3) {
if ((_n * nDir) > 0) {
mClip.gotoAndStop(2);
} else {
mClip.gotoAndStop(3);
}
} else {
mClip.gotoAndStop(1);
}
return(_local3);
}
function mustmove() {
moveDir(nDir_walk * nSpeed);
}
function onEnterFrame() {
if (!Global.GAME.bPause) {
if ((Global.GAME.nTime_th % 5) == 0) {
reload();
}
move();
ctrl.move();
}
}
function fire() {
var _local2 = getRadian_sum(nRadian_fire);
nReload_now = nReload_max;
nReloae_re = aReload_cost[nWeapon_type];
aBullet[nWeapon_type]--;
(pt_temp.x = pt_fire.x);
(pt_temp.y = pt_fire.y);
mClip.mBody_0.localToGlobal(pt_temp);
mBullet = Common.addClip("game.Weapon_fall", "Weapon_fall", Global.GAME.mClip, {nLevel:aLevel[nWeapon_type], nDir:nDir, nId:nWeapon_type, _x:pt_temp.x, _y:pt_temp.y, obSpeed:{x:Math.cos(_local2) * nPower, y:Math.sin(_local2) * nPower}});
ctrl.fireEnd(mBullet);
}
function reload() {
if (nReload_now > 0) {
nReload_now = nReload_now - nReloae_re;
(nReload_now < 0) && ((nReload_now = 0));
mBar_reload.mClip._xscale = (nReload_now / nReload_max) * 100;
}
ctrl.reload();
}
function canFire() {
if (ctrl instanceof game.Human) {
if ((aBullet[nWeapon_type] <= 0) && (_global.mPop._name == undefined)) {
_global.mPop = Common.addClip("mPop", null, Global.GAME, {_x:10, _y:500, sTxt:"No ammunition!"});
}
}
return((nReload_now <= 0) && (aBullet[nWeapon_type] > 0));
}
function getRadian_sum(_nRadian) {
var _local2 = ((nDir > 0) ? (nRadian) : (nRadian - Math.PI)) + (nDir * _nRadian);
return(_local2);
}
function getRadian_fire(_nRadian) {
var _local2 = (_nRadian - ((nDir > 0) ? (nRadian) : (nRadian - Math.PI))) / nDir;
_local2 = Common.rFloor(_local2);
return(_local2);
}
function beHit(_n, _m, _n2) {
nHealth = nHealth - _n;
if (ctrl instanceof game.Ai) {
Global.GAME.player.ctrl.nMoney = Global.GAME.player.ctrl.nMoney + int((_n * 8) + (_n2 * 4));
}
}
function death() {
Common.addClip("mExp_body_boss_" + nId, null, Global.GAME.mClip, {_x:_x, _y:_y, nRadian:nRadian - (Math.PI/2), nPower:15});
remove();
}
function falling() {
rightRadian(nRadian * 0.8);
}
function fallEnd() {
rightRadian();
if ((obSpeed.y > 10) && (bFall_fist)) {
nHealth = nHealth - (obSpeed.y * 3);
}
bFall_fist = true;
}
function walking() {
rightRadian();
}
function repair() {
if (aBullet[13] > 0) {
aBullet[13]--;
mBullet = Common.addClip("game.Man_rep", "Man_rep", Global.GAME.mClip, {nLevel:aLevel[13], nRadian:nRadian, target:this, nDir:-nDir, _x:_x, _y:_y});
ctrl.fireEnd(mBullet);
} else if (ctrl instanceof game.Human) {
if ((aBullet[13] <= 0) && (_global.mPop._name == undefined)) {
_global.mPop = Common.addClip("mPop", null, Global.GAME, {_x:10, _y:500, sTxt:"No ammunition!"});
}
}
}
function defence() {
if (aBullet[14] > 0) {
aBullet[14]--;
mBullet = Common.addClip("game.Man_umbrella", "Man_umbrella", Global.GAME.mClip, {nLevel:aLevel[14], nRadian:nRadian, target:this, nDir:nDir, _x:_x, _y:_y});
ctrl.fireEnd(mBullet);
} else if (ctrl instanceof game.Human) {
if ((aBullet[14] <= 0) && (_global.mPop._name == undefined)) {
_global.mPop = Common.addClip("mPop", null, Global.GAME, {_x:10, _y:500, sTxt:"No ammunition!"});
}
}
}
function rightRadian(_n) {
if (_n != undefined) {
nRadian = _n;
} else {
super.rightRadian();
}
mClip._rotation = (nRadian * Common.a2r) / 2;
}
function remove() {
if (ctrl instanceof game.Ai) {
Global.GAME.nHave--;
Global.GAME.addEnemy();
if (Global.GAME.nHave <= 0) {
if (Global.GAME.nLevel >= 12) {
Global.GAME.overDelay(2);
Global.GAME.nScore = ((Global.GAME.player.ctrl.nMoney * Global.GAME.nLevel) / 4) + Global.GAME.nScore;
} else {
Global.GAME.aPlayer_b_level = Global.GAME.player.aLevel.concat();
Global.GAME.aPlayer_b = Global.GAME.player.aBullet.concat();
Global.GAME.nPlayer_money = Global.GAME.player.ctrl.nMoney + (500 * Math.min(5, Global.GAME.nLevel));
Global.GAME.overDelay(1);
Global.GAME.nScore = ((Global.GAME.player.ctrl.nMoney * Global.GAME.nLevel) / 4) + Global.GAME.nScore;
}
}
} else {
Global.GAME.overDelay(0);
Global.GAME.nScore = (((Global.GAME.player.ctrl.nMoney * Global.GAME.nLevel) / 4) + Global.GAME.nScore) * 0.8;
}
super.remove();
}
static var aReload_cost = [null, 10, 4, 6, 5, 4, 5, 8, 7, 6, 6, 3, 4, 4, 8];
static var nReload_max = 120;
var nReload_now = 0;
var nReloae_re = 1;
var nWeapon_type = 1;
var bCtrl = true;
var nHealth_max = 300;
}
Symbol 912 MovieClip [__Packages.Fade] Frame 0
class Fade
{
function Fade () {
}
static function start(_ob) {
var _local11 = false;
var _local9 = Stage.width;
var _local10 = Stage.height;
var _local13 = 0;
var _local12 = 0;
for (var _local6 in _ob) {
Fade[_local6] = _ob[_local6];
}
var _local7 = new flash.display.BitmapData(_local9, _local10, false, nColor);
_local7.draw(_root);
var _local3 = _root.createEmptyMovieClip("mClip_root" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
var _local4 = _local3.createEmptyMovieClip("mClip_mask", 0);
var _local8 = _local3.createEmptyMovieClip("mClip_bmp", 1);
_local8.attachBitmap(_local7, 0);
_local3.nT = nInterval;
_local11 && (disableBtn(_local3));
_local3.bmpRoot = _local7;
_local3.nTime = 0;
_local3.finish = function () {
this.bmpRoot.dispose();
this.removeMovieClip();
};
_local3.switchDepth = function () {
if (this.getDepth() != (_root.getNextHighestDepth() - 1)) {
this.swapDepths(_root.getNextHighestDepth() - 1);
}
};
switch (random(4)) {
case 0 :
_local3.nRdm = random(2);
_local3.m_0 = createClip("m_", _local4, 0, 0);
_local3.m_1 = createClip("m_", _local4, 0, 1, {_x:10, _y:10, _rotation:180});
_local3.onEnterFrame = function () {
this.nTime++;
this.nTemp = 50 - Fade.trigonometric(this.nTime, this.nT, 50);
if (this.nRdm > 0) {
this.m_0._yscale = (this.m_1._yscale = this.nTemp);
} else {
this.m_0._xscale = (this.m_1._xscale = this.nTemp);
}
if (this.nTime == (this.nT / 2)) {
this.finish();
}
this.switchDepth();
};
break;
case 1 :
_local3.nRdm = random(3);
_local3.nRdm_2 = random(4);
_local3.m_0 = createClip("m_", _local4, 1, 0, {_x:5, _y:5});
_local3.onEnterFrame = function () {
this.nTime++;
this.nTemp = 100 - Fade.trigonometric(this.nTime, this.nT, 100);
switch (this.nRdm) {
case 0 :
(this.m_0._xscale = 150);
(this.m_0._yscale = this.nTemp);
break;
case 1 :
(this.m_0._xscale = this.nTemp);
(this.m_0._yscale = 150);
break;
case 2 :
this.m_0._xscale = (this.m_0._yscale = this.nTemp);
}
if (this.nRdm_2 == 3) {
this.m_0._rotation = 180 - Fade.trigonometric(this.nTime, this.nT, 180);
} else if (this.nRdm_2 == 2) {
this.m_0._rotation = Fade.trigonometric(this.nTime, this.nT, 180);
}
if (this.nTime == (this.nT / 2)) {
this.finish();
}
this.switchDepth();
};
break;
case 2 :
_local3.nRdm = random(5);
_local3.m_0 = createClip("m_", _local4, 2, 0);
_local3.m_1 = createClip("m_", _local4, 2, 1, {_x:10, _y:10, _rotation:180});
_local3.onEnterFrame = function () {
this.nTime++;
this.nTemp = 100 - Fade.trigonometric(this.nTime, this.nT, 100);
switch (this.nRdm) {
case 0 :
this.m_0._yscale = (this.m_1._yscale = this.nTemp);
break;
case 1 :
this.m_0._xscale = (this.m_1._yscale = this.nTemp);
break;
case 2 :
this.m_0._yscale = (this.m_1._xscale = this.nTemp);
break;
case 3 :
this.m_0._xscale = (this.m_1._xscale = this.nTemp);
break;
case 4 :
this.m_0._xscale = (this.m_1._xscale = this.nTemp);
this.m_0._yscale = (this.m_1._yscale = this.nTemp);
}
if (this.nTime == (this.nT / 2)) {
this.finish();
}
this.switchDepth();
};
break;
case 3 :
_local3.nRdm = random(2);
_local3.m_0 = createClip("m_", _local4, 2, 0);
_local3.m_1 = createClip("m_", _local4, 2, 1, {_x:10, _y:10, _rotation:180});
_local3.m_2 = createClip("m_", _local4, 2, 2, {_x:0, _y:10, _rotation:-90});
_local3.m_3 = createClip("m_", _local4, 2, 3, {_x:10, _y:0, _rotation:90});
_local3.onEnterFrame = function () {
this.nTime++;
this.nTemp = 100 - Fade.trigonometric(this.nTime, this.nT, 100);
if (this.nRdm > 0) {
this.m_0._yscale = (this.m_1._yscale = (this.m_2._yscale = (this.m_3._yscale = this.nTemp)));
} else {
this.m_0._xscale = (this.m_1._xscale = (this.m_2._xscale = (this.m_3._xscale = this.nTemp)));
}
if (this.nTime == (this.nT / 2)) {
this.finish();
}
this.switchDepth();
};
break;
}
(_local4._width = _local9);
(_local4._height = _local10);
(_local4._x = _local13);
(_local4._y = _local12);
_local8.setMask(_local4);
}
static function disableBtn(_m) {
_m.onPress = null;
_m.enabled = false;
_m.hitArea = _root;
}
static function trigonometric(x, T, A, P) {
var _local2 = 0;
var _local1 = (Math.PI / T) * x;
if (!isNaN(P)) {
_local2 = P - _local1;
}
return(A * Math.sin(_local1 + _local2));
}
static function createClip(_s, _m, _nType, _nDepth, _ob) {
isNaN(_nDepth) && (_nDepth = _m.getNextHighestDepth());
isNaN(_nType) && (_nType = 0);
_m.createEmptyMovieClip(_s + _nDepth, _nDepth);
_m[_s + _nDepth].beginFill(0);
switch (_nType) {
case 0 :
_m[_s + _nDepth].lineTo(10, 0);
_m[_s + _nDepth].lineTo(10, 10);
_m[_s + _nDepth].lineTo(0, 10);
_m[_s + _nDepth].lineTo(0, 0);
break;
case 1 :
_m[_s + _nDepth].moveTo(-5, -5);
_m[_s + _nDepth].lineTo(-5, 5);
_m[_s + _nDepth].lineTo(5, 5);
_m[_s + _nDepth].lineTo(5, -5);
_m[_s + _nDepth].lineTo(-5, -5);
break;
case 2 :
_m[_s + _nDepth].lineTo(10, 0);
_m[_s + _nDepth].lineTo(0, 10);
_m[_s + _nDepth].lineTo(0, 0);
break;
}
_m[_s + _nDepth].endFill();
for (var _local5 in _ob) {
_m[_s + _nDepth][_local5] = _ob[_local5];
}
return(_m[_s + _nDepth]);
}
static var nColor = 0;
static var nInterval = 20;
}
Symbol 913 MovieClip [__Packages.game.Man_fire] Frame 0
class game.Man_fire extends game.Obj_2
{
var nSpeed, nRadius, nTime, nLevel, nRadian_max, bFall_d, mHit, move, bFall, moveDir, nDir, _y, _x, aTarget, remove, rightRadian;
function Man_fire () {
super();
nSpeed = 2;
nRadius = 10;
nTime = 20 + (int(nLevel) * 5);
nRadian_max = 4;
bFall_d = true;
}
function init() {
super.init();
mHit.removeMovieClip();
}
function onEnterFrame() {
if (!Global.GAME.bPause) {
move();
move();
if (nTime > 0) {
nTime--;
if (!bFall) {
moveDir(nDir * nSpeed);
}
if ((nTime % 5) == 0) {
Common.addClip("Man_fire.mClip", "Fire", Global.GAME.mClip, {_xscale:-100 * nDir, _x:_x, _y:_y});
var _local2 = new game.Obj_hurt(_x, _y, 30, 30 + (int(nLevel) * 10), aTarget);
_local2.ckHit();
}
} else {
remove();
}
}
}
function fallBegin() {
remove();
}
function fallEnd() {
rightRadian();
}
function walking() {
rightRadian();
}
}
Symbol 914 MovieClip [__Packages.game.Obj_hurt] Frame 0
class game.Obj_hurt
{
var x, y, nRadius, nPower, aTarget, onHit;
function Obj_hurt (x0, y0, _nRadius, _nPower, _aTarget) {
(x = x0);
(y = y0);
nRadius = _nRadius;
nPower = _nPower;
aTarget = _aTarget;
}
function ckHit() {
for (var _local2 in Global.GAME.aFly) {
ckT(Global.GAME.aFly[_local2]);
}
for (var _local2 in aTarget) {
ckT(aTarget[_local2]);
}
remove();
}
function ckT(_t) {
var _local4 = Common.distance(_t._x + int(_t.nOffset_y), _t._y - int(_t.nOffset_x), x, y);
if (_local4 < (nRadius + _t.nRadius)) {
var _local3 = 1 - (_local4 / (nRadius + _t.nRadius));
onHit(_t, ((_t._x > x) ? (_local3) : (-_local3)));
_t.beHit(nPower * _local3, this, _local3);
}
}
function remove() {
for (var _local2 in this) {
delete this[_local2];
}
}
}
Symbol 915 MovieClip [__Packages.game.Man_ice] Frame 0
class game.Man_ice extends game.Obj_2
{
var nSpeed, nRadius, nTime, nLevel, nRadian_max, bFall_d, mHit, move, bFall, moveDir, nDir, _y, _x, nRadian, aTarget, remove, rightRadian;
function Man_ice () {
super();
nSpeed = 2;
nRadius = 10;
nTime = 20 + (int(nLevel) * 5);
nRadian_max = 4;
bFall_d = true;
}
function init() {
super.init();
mHit.removeMovieClip();
}
function onEnterFrame() {
if (!Global.GAME.bPause) {
move();
move();
if (nTime > 0) {
nTime--;
if (!bFall) {
moveDir(nDir * nSpeed);
}
if ((nTime % 5) == 0) {
Common.addClip("Man_ice.mClip", "Ice", Global.GAME.mClip, {_xscale:100 * nDir, _rotation:nRadian * Common.a2r, _x:_x, _y:_y});
var _local3 = new game.Obj_hurt(_x, _y, 30, 30 + (int(nLevel) * 5), aTarget);
_local3.onHit = function (_m) {
if ((_m instanceof game.Catapult) && (_m.mClip.mIce._name == undefined)) {
var _local3 = _m.mClip.attachMovie("mIce", "mIce", 0);
_local3.nTime = 100 + (int(this.nLevel) * 30);
_local3.mTarget = _m;
_m.moveDir(0);
_m.bCtrl = false;
_local3.onEnterFrame = function () {
if (this.nTime > 0) {
this.nTime--;
} else {
this.mTarget.bCtrl = true;
this.removeMovieClip();
}
};
}
};
_local3.ckHit();
}
} else {
remove();
}
}
}
function fallBegin() {
remove();
}
function fallEnd() {
rightRadian();
}
function walking() {
rightRadian();
}
}
Symbol 916 MovieClip [__Packages.game.Man_test] Frame 0
class game.Man_test extends game.Obj_2
{
var move, bFall, pt_0, moveDir, nSpeed, nDir, canWalk, remove, nTime, bFalled, rightRadian;
function Man_test () {
super();
}
function init() {
}
function onEnterFrame() {
if (!Global.GAME.bPause) {
move();
if (!bFall) {
if ((Common.s_b(pt_0.x, 50, Global.WIDTH - 50) != 0) || (!moveDir(nDir * nSpeed))) {
canWalk(false);
remove();
return(undefined);
}
if (nTime > 0) {
nTime--;
} else {
canWalk(true);
remove();
}
}
}
}
function fallBegin() {
bFalled = true;
}
function fallEnd() {
rightRadian();
if (bFalled) {
canWalk(true);
}
}
function walking() {
rightRadian();
}
}
Symbol 917 MovieClip [__Packages.game.Ice_ground] Frame 0
class game.Ice_ground extends game.Obj_2
{
var nSpeed, nRadius, nRadius_h, mClip, nRadian_max, bFall_d, aTarget, move, _x, _y, nRadian, remove, rightRadian;
function Ice_ground () {
super();
nSpeed = 3;
nRadius = 5;
nRadius_h = 5;
mClip._rotation = random(360);
nRadian_max = 4;
bFall_d = true;
aTarget = Global.GAME.aGround;
}
function onEnterFrame() {
if (!Global.GAME.bPause) {
move();
if ((Global.GAME.nTime_th % 2) == 0) {
for (var _local2 in aTarget) {
if (aTarget[_local2] instanceof game.Catapult) {
ckHit(aTarget[_local2]);
}
}
}
}
}
function ckHit(_t) {
if (((_t._x - _x) / nDir) > 0) {
var _local3 = Common.distance(_t._x, _t._y, _x, _y);
if (_local3 < (nRadius * 3)) {
_t.mustmove();
}
}
}
function beHit() {
Common.addClip("mExp_body_5", null, Global.GAME.mClip, {_x:_x, _y:_y, nRadian:nRadian - (Math.PI/2), nPower:10});
remove();
}
function fallEnd() {
rightRadian();
}
var nDir = 1;
}
Symbol 918 MovieClip [__Packages.game.Man_timebomb] Frame 0
class game.Man_timebomb extends game.Obj_2
{
var nSpeed, nRadius, nTime, nRadian_max, __nDir, mClip, bFall, moveDir, move, aTarget, _x, _y, sd_this, nRadian, nLevel, remove, rightRadian;
function Man_timebomb () {
super();
nSpeed = 2;
nRadius = 10;
nTime = 120;
nRadian_max = 1.2;
}
function get nDir() {
return(__nDir);
}
function set nDir(_nDir) {
if (__nDir != _nDir) {
__nDir = _nDir;
mClip._xscale = __nDir * 100;
}
//return(nDir);
}
function onEnterFrame() {
if (!Global.GAME.bPause) {
if (nTime < 0) {
fire();
return(undefined);
}
nTime--;
if (!bFall) {
if (!moveDir(nDir * nSpeed)) {
nDir = (-nDir);
}
ckHit();
}
move();
}
}
function ckHit() {
for (var _local3 in aTarget) {
if (aTarget[_local3] == this) {
continue;
}
var _local2 = Common.distance(aTarget[_local3]._x, aTarget[_local3]._y, _x, _y);
if (_local2 < nRadius) {
fire();
}
}
}
function fire() {
sd_this.stop();
Global.playSound("sd_explosion");
Common.removeArray(Global.GAME.aGround, this);
Common.addClip("mExp_body_0", null, Global.GAME.mClip, {_x:_x, _y:_y, nRadian:nRadian - (Math.PI/2), nPower:10});
Common.addClip("game.Obj_paint", "Obj_paint", Global.GAME.mClip, {nRadius:60, _x:_x, _y:_y});
Common.addClip("mExp_3", null, Global.GAME.mClip, {_x:_x, _y:_y, _rotation:random(360)});
var _local2 = new game.Obj_hurt(_x, _y, 40 + (int(nLevel) * 15), 40 + (int(nLevel) * 15), aTarget);
_local2.ckHit();
remove();
}
function beHit() {
fire();
}
function falling() {
setRotation(nRadian * 0.9);
}
function fallEnd() {
setRotation();
}
function walking() {
setRotation();
}
function setRotation(_n) {
if (_n != undefined) {
nRadian = _n;
} else {
rightRadian();
}
mClip._rotation = nRadian * Common.a2r;
}
}
Symbol 919 MovieClip [__Packages.game.Man_ice2] Frame 0
class game.Man_ice2 extends game.Obj_2
{
var nSpeed, nRadius, nRadian_max, nTime, bFall_d, __nDir, mClip, remove, bFall, moveDir, nRadian, _y, _x, move, rightRadian;
function Man_ice2 () {
super();
nSpeed = 2;
nRadius = 10;
nRadian_max = 4;
nTime = 90;
bFall_d = true;
}
function get nDir() {
return(__nDir);
}
function set nDir(_nDir) {
if (__nDir != _nDir) {
__nDir = _nDir;
mClip._xscale = __nDir * 100;
}
//return(nDir);
}
function onEnterFrame() {
if (!Global.GAME.bPause) {
if (nTime < 0) {
remove();
return(undefined);
}
nTime--;
if (!bFall) {
if (!moveDir(nDir * nSpeed)) {
nDir = (-nDir);
}
if ((nTime % 5) == 0) {
Common.addClip("game.Ice_ground", "Ice_ground", Global.GAME.mClip, {nDir:nDir, _x:_x, _y:_y, nRadian:nRadian});
}
}
move();
}
}
function beKill() {
onEnterFrame = function () {
if (Math.abs(this._rotation) > 90) {
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
this.remove();
}
} else {
this._rotation = this._rotation + (this.nDir * 3);
}
};
}
function beHit() {
Common.addClip("mExp_body_6", null, Global.GAME.mClip, {_x:_x, _y:_y, nRadian:nRadian - (Math.PI/2), nPower:10});
remove();
}
function falling() {
setRotation(nRadian * 0.9);
}
function fallEnd() {
setRotation();
}
function walking() {
setRotation();
}
function setRotation(_n) {
if (_n != undefined) {
nRadian = _n;
} else {
rightRadian();
}
mClip._rotation = nRadian * Common.a2r;
}
}
Symbol 920 MovieClip [__Packages.game.Man_dig] Frame 0
class game.Man_dig extends game.Obj_2
{
var nSpeed, nRadius, nTime, nLevel, nRadian_max, __nDir, mClip, move, _y, _x, nRadian, remove, rightRadian;
function Man_dig () {
super();
nSpeed = 2;
nRadius = 10;
nTime = 6 + (int(nLevel) * 2);
nRadian_max = 1.2;
}
function get nDir() {
return(__nDir);
}
function set nDir(_nDir) {
if (__nDir != _nDir) {
__nDir = _nDir;
mClip._xscale = __nDir * 100;
}
//return(nDir);
}
function onEnterFrame() {
if (!Global.GAME.bPause) {
move();
} else {
mClip.mClip.play();
}
}
function dig(_m) {
if (Global.GAME.bPause) {
_m.stop();
} else {
if (nTime < 0) {
mClip.gotoAndStop("death");
onEnterFrame = null;
return(undefined);
}
nTime--;
if ((nTime % 2) == 0) {
mClip.gotoAndStop(2);
Common.addClip("game.Obj_paint", "Obj_paint", Global.GAME.mClip, {nRadius:60, _x:_x, _y:_y});
}
}
}
function beKill() {
onEnterFrame = function () {
if (Math.abs(this._rotation) > 90) {
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
this.remove();
}
} else {
this._rotation = this._rotation + (this.nDir * 3);
}
};
}
function beHit() {
Common.addClip("mExp_body_2", null, Global.GAME.mClip, {_x:_x, _y:_y, nRadian:nRadian - (Math.PI/2), nPower:10});
remove();
}
function falling() {
setRotation(nRadian * 0.9);
}
function fallEnd() {
setRotation();
}
function setRotation(_n) {
if (_n != undefined) {
nRadian = _n;
} else {
rightRadian();
}
mClip._rotation = nRadian * Common.a2r;
}
}
Symbol 921 MovieClip [__Packages.game.Man_killer] Frame 0
class game.Man_killer extends game.Obj_2
{
var nSpeed, nRadius, nRadian_max, __nDir, mClip, bFall, target, moveDir, move, aTarget, _x, _y, nRadian, remove, rightRadian;
function Man_killer () {
super();
nSpeed = 3;
nRadius = 10;
nRadian_max = 1.2;
}
function get nDir() {
return(__nDir);
}
function set nDir(_nDir) {
if (__nDir != _nDir) {
__nDir = _nDir;
mClip._xscale = __nDir * 100;
}
//return(nDir);
}
function onEnterFrame() {
if (!Global.GAME.bPause) {
if ((!bFall) && (target == undefined)) {
if (!moveDir(nDir * nSpeed)) {
nDir = (-nDir);
}
ckHit();
}
move();
}
}
function beKill() {
onEnterFrame = function () {
if (Math.abs(this._rotation) > 90) {
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
this.remove();
}
} else {
this._rotation = this._rotation + (this.nDir * 3);
}
};
}
function ckHit() {
for (var _local3 in aTarget) {
if (aTarget[_local3] == this) {
continue;
}
if ((((((nDir > 0) ? (aTarget[_local3]._x > _x) : (aTarget[_local3]._x < _x)) && (!(aTarget[_local3] instanceof game.Catapult))) && (!(aTarget[_local3] instanceof game.Ice_ground))) && (!(aTarget[_local3] instanceof game.Man_parachute))) && (!(aTarget[_local3] instanceof game.Man_timebomb))) {
var _local2 = Common.distance(aTarget[_local3]._x, aTarget[_local3]._y, _x, _y);
if (_local2 < nRadius) {
mClip.gotoAndStop(2);
moveDir(0);
target = aTarget[_local3];
target.__nTime = 0;
target.onEnterFrame = function () {
this.__nTime++;
if (this.__nTime > 36) {
this.remove();
}
};
target.mClip.gotoAndStop("kill");
aTarget.splice(int(_local3), 1);
}
}
}
}
function beHit() {
Common.addClip("mExp_body_0", null, Global.GAME.mClip, {_x:_x, _y:_y, nRadian:nRadian - (Math.PI/2), nPower:10});
remove();
}
function falling() {
setRotation(nRadian * 0.9);
}
function fallEnd() {
setRotation();
}
function walking() {
setRotation();
}
function setRotation(_n) {
if (_n != undefined) {
nRadian = _n;
} else {
rightRadian();
}
mClip._rotation = nRadian * Common.a2r;
}
}
Symbol 922 MovieClip [__Packages.game.Man_parachute] Frame 0
class game.Man_parachute extends game.Obj_2
{
var nSpeed, nRadius, __nDir, mClip, move, nRadian, _y, _x, remove, rightRadian;
function Man_parachute () {
super();
nSpeed = 0;
nRadius = 10;
}
function get nDir() {
return(__nDir);
}
function set nDir(_nDir) {
if (__nDir != _nDir) {
__nDir = _nDir;
mClip._xscale = __nDir * 100;
}
//return(nDir);
}
function onEnterFrame() {
if (!Global.GAME.bPause) {
move();
}
}
function beHit() {
Common.addClip("mExp_body_1", null, Global.GAME.mClip, {_x:_x, _y:_y, nRadian:nRadian - (Math.PI/2), nPower:10});
remove();
}
function falling() {
setRotation(nRadian * 0.9);
}
function fallEnd() {
setRotation();
}
function walking() {
setRotation();
}
function setRotation(_n) {
if (_n != undefined) {
nRadian = _n;
} else {
rightRadian();
}
mClip._rotation = nRadian * Common.a2r;
}
}
Symbol 923 MovieClip [__Packages.game.Man_push] Frame 0
class game.Man_push extends game.Obj_2
{
var nSpeed, nRadius, nTime, nLevel, nRadian_max, aHit, __nDir, mClip, bFall, moveDir, move, aTarget, _x, _y, nRadian, rightRadian;
function Man_push () {
super();
nSpeed = 2;
nRadius = 10;
nTime = 90 + (int(nLevel) * 30);
nRadian_max = 1.2;
aHit = [];
}
function get nDir() {
return(__nDir);
}
function set nDir(_nDir) {
if (__nDir != _nDir) {
__nDir = _nDir;
mClip._xscale = __nDir * 100;
}
//return(nDir);
}
function onEnterFrame() {
if (!Global.GAME.bPause) {
if (!bFall) {
if (nTime < 0) {
mClip.gotoAndStop("death");
onEnterFrame = null;
reHit();
return(undefined);
}
nTime--;
if (!moveDir(nDir * nSpeed)) {
nDir = (-nDir);
}
ckHit();
}
move();
}
}
function ckHit() {
for (var _local3 in aTarget) {
if (aTarget[_local3] == this) {
continue;
}
if (aTarget[_local3] instanceof game.Catapult) {
var _local2 = Common.distance(aTarget[_local3]._x, aTarget[_local3]._y, _x, _y);
if (_local2 < nRadius) {
aHit.push(aTarget[_local3]);
}
}
}
for (var _local3 in aHit) {
mClip.gotoAndStop(2);
aHit[_local3].bCtrl = false;
aHit[_local3].moveDir(nDir * nSpeed);
}
}
function beKill() {
reHit();
onEnterFrame = function () {
if (Math.abs(this._rotation) > 90) {
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
this.remove();
}
} else {
this._rotation = this._rotation + (this.nDir * 3);
}
};
}
function beHit() {
Common.addClip("mExp_body_3", null, Global.GAME.mClip, {_x:_x, _y:_y, nRadian:nRadian - (Math.PI/2), nPower:10});
remove();
}
function falling() {
setRotation(nRadian * 0.9);
}
function fallEnd() {
setRotation();
}
function walking() {
setRotation();
}
function setRotation(_n) {
if (_n != undefined) {
nRadian = _n;
} else {
rightRadian();
}
mClip._rotation = nRadian * Common.a2r;
}
function reHit() {
for (var _local2 in aHit) {
aHit[_local2].bCtrl = true;
if (!aHit[_local2].bFall) {
aHit[_local2].moveDir(0);
}
}
}
function remove() {
reHit();
super.remove();
}
}
Symbol 924 MovieClip [__Packages.game.Man_stop] Frame 0
class game.Man_stop extends game.Obj_2
{
var nSpeed, nRadius, nRadian_max, __nDir, mClip, move, bFall, target, moveDir, obSpeed, _x, _y, aTarget, nSpeed_target, nRadian;
function Man_stop () {
super();
nSpeed = 3;
nRadius = 10;
nRadian_max = 1.2;
}
function get nDir() {
return(__nDir);
}
function set nDir(_nDir) {
if (__nDir != _nDir) {
__nDir = _nDir;
mClip._xscale = __nDir * 100;
}
//return(nDir);
}
function onEnterFrame() {
if (!Global.GAME.bPause) {
move();
if ((!bFall) && (target == undefined)) {
if (!moveDir(nDir * nSpeed)) {
nDir = (-nDir);
}
ckHit();
} else if (target != undefined) {
(obSpeed.x = target.obSpeed.x);
(obSpeed.y = target.obSpeed.y);
_x = target._x;
_y = target._y;
}
}
}
function beKill() {
onEnterFrame = function () {
if (Math.abs(this._rotation) > 90) {
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
this.remove();
}
} else {
this._rotation = this._rotation + (this.nDir * 3);
}
};
}
function ckHit() {
for (var _local3 in aTarget) {
if (aTarget[_local3] == this) {
continue;
}
if (aTarget[_local3] instanceof game.Catapult) {
var _local2 = Common.distance(aTarget[_local3]._x, aTarget[_local3]._y, _x, _y);
if (_local2 < nRadius) {
mClip.gotoAndStop(2);
target = aTarget[_local3];
nSpeed_target = target.nSpeed;
target.nSpeed = target.nSpeed * 0.3;
break;
}
}
}
}
function beHit() {
Common.addClip("mExp_body_0", null, Global.GAME.mClip, {_x:_x, _y:_y, nRadian:nRadian - (Math.PI/2), nPower:10});
remove();
}
function falling() {
rightRadian(nRadian * 0.9);
}
function fallEnd() {
rightRadian();
}
function walking() {
rightRadian();
}
function rightRadian(_n) {
if (_n != undefined) {
nRadian = _n;
} else {
super.rightRadian();
}
mClip._rotation = nRadian * Common.a2r;
}
function remove() {
target.nSpeed = nSpeed_target;
super.remove();
}
}
Symbol 925 MovieClip [__Packages.game.Man_rep] Frame 0
class game.Man_rep extends game.Obj_2
{
var nRadius, nRadian_max, nPower, nLevel, bFall_d, nTime, __nDir, mClip, target, move, nRadian, _y, _x, rightRadian;
function Man_rep () {
super();
nRadius = 10;
nRadian_max = 4;
nPower = 30 + (int(nLevel) * 10);
bFall_d = true;
nTime = 30 + (int(nLevel) * 10);
}
function get nDir() {
return(__nDir);
}
function set nDir(_nDir) {
if (__nDir != _nDir) {
__nDir = _nDir;
mClip._xscale = __nDir * 100;
}
//return(nDir);
}
function init() {
super.init();
target.bCtrl = false;
target.moveDir(0);
}
function onEnterFrame() {
if (nTime < 0) {
reHit();
remove();
return(undefined);
}
if ((nTime % 10) == 0) {
target.nHealth = target.nHealth + nPower;
}
nTime--;
move();
}
function beKill() {
reHit();
onEnterFrame = function () {
if (Math.abs(this._rotation) > 90) {
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
this.remove();
}
} else {
this._rotation = this._rotation + (this.nDir * 3);
}
};
}
function reHit() {
target.bCtrl = true;
if (!target.bFall) {
target.moveDir(0);
}
}
function beHit() {
Common.addClip("mExp_body_7", null, Global.GAME.mClip, {_x:_x, _y:_y, nRadian:nRadian - (Math.PI/2), nPower:10});
remove();
}
function falling() {
setRotation(nRadian * 0.9);
}
function fallEnd() {
setRotation();
}
function walking() {
setRotation();
}
function setRotation(_n) {
if (_n != undefined) {
nRadian = _n;
} else {
rightRadian();
}
mClip._rotation = nRadian * Common.a2r;
}
function remove() {
reHit();
super.remove();
}
}
Symbol 926 MovieClip [__Packages.game.Man_umbrella] Frame 0
class game.Man_umbrella extends game.Obj_2
{
var nRadius, nRadian_max, bFall_d, nTime, nLevel, mHit, nRadius_h, _y, _x, __nDir, mClip, remove, target, obSpeed, move, nRadian;
function Man_umbrella () {
super();
nRadius = 10;
nRadian_max = 4;
bFall_d = true;
nTime = 210 + (int(nLevel) * 50);
}
function init() {
mHit = Common.addClip("mHit_3", "mHit_3", Global.GAME.mClip.mUnit, {_x:_x, _y:_y, _width:nRadius * 6, _height:nRadius_h * 3});
}
function get nDir() {
return(__nDir);
}
function set nDir(_nDir) {
if (__nDir != _nDir) {
__nDir = _nDir;
mClip._xscale = __nDir * 100;
}
//return(nDir);
}
function onEnterFrame() {
if (!Global.GAME.bPause) {
if (nTime < 0) {
remove();
return(undefined);
}
(obSpeed.x = target.obSpeed.x);
(obSpeed.y = target.obSpeed.y);
_x = target._x;
_y = target._y;
nTime--;
move();
}
}
function beKill() {
onEnterFrame = function () {
if (Math.abs(this._rotation) > 90) {
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
this.remove();
}
} else {
this._rotation = this._rotation + (this.nDir * 3);
}
};
}
function falling() {
rightRadian(nRadian * 0.9);
}
function fallEnd() {
rightRadian();
}
function walking() {
rightRadian();
}
function rightRadian(_n) {
if (_n != undefined) {
nRadian = _n;
} else {
super.rightRadian();
}
mClip._rotation = nRadian * Common.a2r;
}
}
Symbol 927 MovieClip [__Packages.game.Obj] Frame 0
class game.Obj extends MovieClip
{
var pt_0, mGround, mUnit, obSpeed, localToGlobal, nDir, mClip, _parent, _x, _y, fallEnd, pt_temp_2, pt_temp, removeMovieClip;
function Obj () {
super();
pt_0 = {};
}
function init() {
mGround = Global.GAME.mClip.mGround;
mUnit = Global.GAME.mClip.mUnit;
}
function move() {
(pt_0.x = obSpeed.x);
(pt_0.y = obSpeed.y);
localToGlobal(pt_0);
falling();
moveClip();
mClip._yscale = nDir * 100;
}
function moveClip() {
(Global.obTemp.x = pt_0.x);
(Global.obTemp.y = pt_0.y);
_parent.globalToLocal(Global.obTemp);
(_x = Global.obTemp.x);
(_y = Global.obTemp.y);
}
function setRadian() {
nRadian = Math.atan2(obSpeed.y, obSpeed.x);
}
function falling() {
if ((pt_0.y > Global.HEIGHT) || (Common.s_b(pt_0.x, 0, Global.WIDTH))) {
moveClip();
fallEnd();
return(false);
}
pt_temp_2 = Common.crossPoint(pt_0.x - obSpeed.x, pt_0.y - obSpeed.y, pt_0.x, pt_0.y, mUnit);
if (pt_temp_2.bHit) {
(pt_0.x = pt_temp_2.x);
(pt_0.y = pt_temp_2.y);
moveClip();
fallEnd();
return(false);
}
pt_temp = game.Main.crossPoint(pt_0.x - obSpeed.x, pt_0.y - obSpeed.y, pt_0.x, pt_0.y, mGround);
if (pt_temp.bHit) {
(pt_0.x = pt_temp.x);
(pt_0.y = pt_temp.y);
moveClip();
fallEnd();
return(false);
}
obSpeed.y = obSpeed.y + game.Main.G;
return(true);
}
function remove() {
removeMovieClip();
}
var nRadian = 0;
}
Symbol 928 MovieClip [__Packages.game.Weapon_fall] Frame 0
class game.Weapon_fall extends game.Obj
{
var obCustom, gotoAndStop, nPower_did, nLevel, nPower_hurt, mClip, _c, _s, setRadian, nRadian, move, _y, _x, obSpeed, remove, pt_0, mGround;
function Weapon_fall () {
super();
obCustom = {};
}
function init() {
super.init();
gotoAndStop(nId + 1);
switch (nId) {
case 1 :
nPower_did = 50 + (int(nLevel) * 5);
nPower_hurt = 30 + (int(nLevel) * 10);
break;
case 2 :
Global.playSound("sd_shoot_05");
nPower_did = 80 + (int(nLevel) * 15);
nPower_hurt = 40 + (int(nLevel) * 15);
break;
case 5 :
nPower_did = 50;
nPower_hurt = 30;
obCustom.nTime = 30;
break;
case 6 :
obCustom.nTime = 20;
break;
case 21 :
mClip.gotoAndStop(_c);
nPower_hurt = 30 + (int(nLevel) * 10);
break;
case 23 :
Global.playSound("sd_shoot_13");
nPower_hurt = 20 + (int(nLevel) * 10);
}
if (_s != undefined) {
mClip._xscale = (mClip._yscale = _s);
}
setRadian();
mClip._rotation = nRadian * Common.a2r;
}
function onEnterFrame() {
if (!Global.GAME.bPause) {
move();
setRadian();
mClip._rotation = nRadian * Common.a2r;
switch (nId) {
case 2 :
if ((Global.GAME.nTime_th % 2) == 0) {
Common.addClip("mSmock", null, Global.GAME.mClip, {_x:_x, _y:_y, _rotation:random(360)});
}
break;
case 5 :
if ((Global.GAME.nTime_th % 2) == 0) {
Common.addClip("mSmock_5", null, Global.GAME.mClip, {_x:_x, _y:_y, _rotation:random(360)});
}
if (obCustom.nTime > 0) {
obCustom.nTime--;
} else {
Global.playSound("sd_explosion");
Common.addClip("mExp_3", null, Global.GAME.mClip, {_x:_x, _y:_y, _rotation:random(360)});
var _local5 = Math.sqrt((obSpeed.x * obSpeed.x) + (obSpeed.y * obSpeed.y));
var _local2 = -2;
while (_local2 < (3 + int(nLevel))) {
var _local3 = (_local5 + 3) * ((Math.random() / 2) + 0.5);
Common.addClip("game.Weapon_fall", "Weapon_fall", Global.GAME.mClip, {nLevel:nLevel, _c:_local2 + 3, nId:21, _x:_x, _y:_y, obSpeed:{x:_local3 * Math.cos((nRadian + Math.random()) - 0.5), y:_local3 * Math.sin((nRadian + Math.random()) - 0.5)}});
_local2++;
}
remove();
}
break;
case 6 :
if (obCustom.nTime > 0) {
obCustom.nTime--;
} else {
Common.addClip("game.Weapon_fall", "Weapon_fall", Global.GAME.mClip, {nLevel:nLevel, nId:22, _x:_x, _y:_y, obSpeed:{x:obSpeed.x, y:obSpeed.y}});
remove();
}
break;
case 12 :
if ((Global.GAME.nTime_th % 2) == 0) {
Common.addClip("mSmock_ice", null, Global.GAME.mClip, {_x:_x, _y:_y, _rotation:random(360)});
}
break;
case 22 :
obSpeed.x = obSpeed.x * 0.9;
(obSpeed.y > 2) && ((obSpeed.y = 2));
if ((Global.GAME.nTime_th % 10) != 0) {
break;
}
Common.addClip("game.Weapon_fall", "Weapon_fall", Global.GAME.mClip, {nLevel:nLevel, nRadian:nRadian, nId:23, _x:_x, _y:_y, obSpeed:{x:15 * Math.cos(nRadian + ((Math.random() - 0.5) / 2)), y:15 * Math.sin(nRadian + ((Math.random() - 0.5) / 2))}});
}
}
}
function getSpeed_sum() {
return(Common.distance(0, 0, obSpeed.x, obSpeed.y));
}
function fallEnd() {
nRadian = game.Main.adjustRadian(pt_0.x, pt_0.y, nRadian - (Math.PI/2), 10, mGround)[0];
switch (nId) {
case 1 :
Global.playSound("sd_explosion");
Common.addClip("mExp_body_0", null, Global.GAME.mClip, {_x:_x, _y:_y, nRadian:nRadian - (Math.PI/2), nPower:10});
Common.addClip("game.Obj_paint", "Obj_paint", Global.GAME.mClip, {nRadius:nPower_did, _x:_x, _y:_y});
Common.addClip("mExp_3", null, Global.GAME.mClip, {_x:_x, _y:_y, _rotation:random(360), _xscale:60, _yscale:60});
var _local9 = new game.Obj_hurt(_x, _y, nPower_did / 2, nPower_hurt, Global.GAME.aGround);
_local9.ckHit();
break;
case 2 :
Global.playSound("sd_big_explosion");
Common.addClip("mExp_body_0", null, Global.GAME.mClip, {_s:_s, _x:_x, _y:_y, nRadian:nRadian - (Math.PI/2), nPower:12});
Common.addClip("game.Obj_paint", "Obj_paint", Global.GAME.mClip, {nRadius:nPower_did, _x:_x, _y:_y});
Common.addClip("mExp_3", null, Global.GAME.mClip, {_x:_x, _y:_y, _rotation:random(360)});
_local9 = new game.Obj_hurt(_x, _y, nPower_did / 2, nPower_hurt, Global.GAME.aGround);
_local9.ckHit();
break;
case 3 :
Common.addClip("game.Man_dig", "Man_dig", Global.GAME.mClip, {nLevel:nLevel, nRadian:nRadian, nDir:((obSpeed.x > 0) ? 1 : -1), _x:_x, _y:_y});
break;
case 4 :
var _local6 = Common.addClip("game.Man_timebomb", "Man_timebomb", Global.GAME.mClip, {nLevel:nLevel, nRadian:nRadian, aTarget:Global.GAME.aGround, nDir:((obSpeed.x > 0) ? 1 : -1), _x:_x, _y:_y});
var _local7 = new Sound(_local6);
_local7.attachSound("sd_clock");
_local7.start();
_local6.sd_this = _local7;
break;
case 5 :
Global.playSound("sd_explosion");
Common.addClip("game.Obj_paint", "Obj_paint", Global.GAME.mClip, {nRadius:nPower_did, _x:_x, _y:_y});
Common.addClip("mExp_3", null, Global.GAME.mClip, {_x:_x, _y:_y, _rotation:random(360)});
_local9 = new game.Obj_hurt(_x, _y, nPower_did / 2, nPower_hurt, Global.GAME.aGround);
_local9.ckHit();
nRadian = nRadian - (Math.PI/2);
var _local2 = -2;
while (_local2 < (3 + int(nLevel))) {
var _local12 = 12 * (Math.random() + 0.3);
Common.addClip("game.Weapon_fall", "Weapon_fall", Global.GAME.mClip, {nLevel:nLevel, nRadian:nRadian, _c:_local2 + 3, nId:21, _x:_x, _y:_y, obSpeed:{x:_local12 * Math.cos((nRadian + Math.random()) - 0.5), y:_local12 * Math.sin((nRadian + Math.random()) - 0.5)}});
_local2++;
}
break;
case 6 :
Common.addClip("game.Man_parachute", "Man_parachute", Global.GAME.mClip, {nRadian:nRadian, nDir:((obSpeed.x > 0) ? 1 : -1), _x:_x, _y:_y});
break;
case 7 :
Common.addClip("game.Man_push", "Man_push", Global.GAME.mClip, {nLevel:nLevel, nRadian:nRadian, aTarget:Global.GAME.aGround, nDir:((obSpeed.x > 0) ? 1 : -1), _x:_x, _y:_y});
break;
case 8 :
Common.addClip("game.Man_killer", "Man_killer", Global.GAME.mClip, {nLevel:nLevel, nRadian:nRadian, aTarget:Global.GAME.aGround, nDir:((obSpeed.x > 0) ? 1 : -1), _x:_x, _y:_y});
break;
case 9 :
Common.addClip("game.Man_stop", "Man_stop", Global.GAME.mClip, {nLevel:nLevel, nRadian:nRadian, aTarget:Global.GAME.aGround, nDir:((obSpeed.x > 0) ? 1 : -1), _x:_x, _y:_y});
break;
case 10 :
Common.addClip("game.Man_ice2", "Man_ice2", Global.GAME.mClip, {nLevel:nLevel, nRadian:nRadian, nDir:((obSpeed.x > 0) ? 1 : -1), _x:_x, _y:_y});
break;
case 11 :
Global.playSound("sd_fire");
Common.addClip("mExp_body_0", null, Global.GAME.mClip, {_x:_x, _y:_y, nRadian:nRadian - (Math.PI/2), nPower:5});
_local9 = new game.Obj_hurt(_x, _y, 30, 20, Global.GAME.aGround);
_local9.ckHit();
Common.addClip("game.Man_fire", "Man_fire", Global.GAME.mClip, {nLevel:nLevel, nRadian:nRadian, nDir:1, aTarget:Global.GAME.aGround, _x:_x, _y:_y});
Common.addClip("game.Man_fire", "Man_fire", Global.GAME.mClip, {nLevel:nLevel, nRadian:nRadian, nDir:-1, aTarget:Global.GAME.aGround, _x:_x, _y:_y});
break;
case 12 :
Global.playSound("sd_ice");
_local9 = new game.Obj_hurt(_x, _y, 30, 20, Global.GAME.aGround);
_local9.ckHit();
Common.addClip("game.Man_ice", "Man_ice", Global.GAME.mClip, {nLevel:nLevel, nRadian:nRadian, nDir:1, aTarget:Global.GAME.aGround, _x:_x, _y:_y});
Common.addClip("game.Man_ice", "Man_ice", Global.GAME.mClip, {nLevel:nLevel, nRadian:nRadian, nDir:-1, aTarget:Global.GAME.aGround, _x:_x, _y:_y});
break;
case 21 :
Global.playSound("sd_explosion");
Common.addClip("mExp_2", null, Global.GAME.mClip, {_x:_x, _y:_y, _rotation:random(360)});
_local9 = new game.Obj_hurt(_x, _y, 30, nPower_hurt, Global.GAME.aGround);
_local9.ckHit();
break;
case 22 :
Common.addClip("game.Man_parachute", "Man_parachute", Global.GAME.mClip, {nRadian:nRadian, nDir:((obSpeed.x > 0) ? 1 : -1), _x:_x, _y:_y});
break;
case 23 :
Global.playSound("sd_hit_07");
_local9 = new game.Obj_hurt(_x, _y, 30, nPower_hurt, Global.GAME.aGround);
_local9.ckHit();
var _local8 = Global.GAME.mClip.getNextHighestDepth();
_local6 = Global.GAME.mClip.createEmptyMovieClip("Exp" + _local8, _local8);
(_local6._x = _x);
(_local6._y = _y);
_local6.nRadian = nRadian - (Math.PI/2);
_local6.nPower = 8;
new Exp_2(_local6, Global.GAME.mClip.mGround);
}
remove();
}
function getTarget_killer(_a) {
var _local2 = [];
for (var _local3 in _a) {
if (((_a[_local3] instanceof game.Man_dig) || (_a[_local3] instanceof game.Man_push)) || (_a[_local3] instanceof game.Man_killer)) {
_local2.push(_a[_local3]);
}
}
return(_local2);
}
var nId = 1;
}
Symbol 929 MovieClip [__Packages.Exp_2] Frame 0
class Exp_2
{
var mc, mHit, nRadian, nPower, totalPiece, onFinish;
function Exp_2 (_mc, _m2) {
mc = _mc;
mHit = _m2;
nRadian = mc.nRadian;
nPower = mc.nPower;
mc.filters = null;
mc.exp = this;
mc._rotation = 0;
totalPiece = 0;
mc.stop();
var _local2 = 0;
while (_local2 < 3) {
mc.attachMovie("mSpark", "mSpark" + _local2, _local2);
_local2++;
}
mc.onEnterFrame = function () {
delete this.onEnterFrame;
this.exp.init();
};
}
function init(Void) {
var _local2;
var _local3 = 1;
for (var _local4 in mc) {
_local2 = mc[_local4];
if (_local2._parent != mc) {
continue;
}
totalPiece++;
_local2.swapDepths(_local3++);
_local2.nPower = nPower * (Math.random() + 0.2);
_local2.vx = _local2.nPower * Math.cos((nRadian + Math.random()) - 0.5);
_local2.vy = _local2.nPower * Math.sin((nRadian + Math.random()) - 0.5);
_local2.va = 10 - (Math.random() * 21);
_local2.onEnterFrame = function () {
this._rotation = Math.atan2(this.vy, this.vx) * Common.a2r;
this.mClip._xscale = Math.sqrt((this.vy * this.vy) + (this.vx * this.vx)) * 10;
this.vy = this.vy + game.Main.G;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
};
}
}
function delPiece(Void) {
if ((--totalPiece) <= 0) {
mc.removeMovieClip();
onFinish();
}
}
}
Symbol 930 MovieClip [__Packages.game.Obj_paint] Frame 0
class game.Obj_paint extends MovieClip
{
var aTarget, nRadius, mClip, nRadius_h, nRadian, _y, _x, removeMovieClip;
function Obj_paint () {
super();
aTarget = Global.GAME.aGround;
mClip._width = nRadius;
mClip._height = ((nRadius_h == undefined) ? (nRadius) : (nRadius_h));
mClip._rotation = nRadian * Common.a2r;
}
function init() {
if (((nRadius != undefined) && (Common.s_b(_y, 0, Global.HEIGHT) == 0)) && (Common.s_b(_x, 0, Global.WIDTH) == 0)) {
game.Main.paintGround(this, Global.GAME.mClip.mGround);
for (var _local2 in aTarget) {
aTarget[_local2].ckFall();
}
}
remove();
}
function ckHit(_o) {
var _local3 = Common.distance(_x, _y, _o._x, _o._y);
return(_local3 < (nRadius + _o.nRadius));
}
function remove() {
for (var _local2 in this) {
delete this[_local2];
}
removeMovieClip();
}
}
Symbol 931 MovieClip [__Packages.common.Txt] Frame 0
class common.Txt extends MovieClip
{
var obFormat, mAni, filters, tTxt, obCustom, sVariable, __sTxt, _obFormat;
function Txt () {
super();
obFormat = new TextFormat();
obFormat.align = "left";
}
function init(_sTxt) {
if (_sTxt != "undefined") {
sTxt = (_sTxt);
}
if (mAni == undefined) {
filters = tTxt.filters;
tTxt.filters = null;
delete tTxt.filters;
} else {
mAni.setMask(tTxt);
}
if (obCustom.bCustom) {
for (var _local2 in obCustom) {
if ((_local2 != "bCustom") && (obCustom[_local2] != undefined)) {
tTxt[_local2] = obCustom[_local2];
}
}
if (tTxt.type == "input") {
Selection.setFocus(tTxt);
tTxt.owner = this;
tTxt.onChanged = function () {
this.owner.sTxt = this.text;
};
}
}
(sVariable.length > 0) && ((tTxt.variable = sVariable));
replace();
}
function get sTxt() {
return(__sTxt);
}
function set sTxt(_sTxt) {
__sTxt = _sTxt;
tTxt.text = __sTxt;
replace();
//return(sTxt);
}
function replace() {
for (var _local2 in _obFormat) {
obFormat[_local2] = _obFormat[_local2];
}
if (obCustom._height <= 0) {
tTxt.autoSize = obFormat.align;
}
if (obFormat.align == "right") {
tTxt._x = -Math.floor(tTxt._width);
} else if (obFormat.align == "center") {
tTxt._x = -Math.floor(tTxt._width / 2);
} else {
tTxt._x = 0;
}
tTxt.setTextFormat(obFormat);
if (mAni != undefined) {
mAni._width = tTxt._width + 5;
mAni._height = int(tTxt._height) + 5;
mAni._x = tTxt._x;
}
}
}
Symbol 932 MovieClip [__Packages.common.Btn] Frame 0
class common.Btn extends MovieClip
{
static var nDw;
var onRollOver, onDragOut, onRollOut, onPress, onReleaseOutside, onRelease, __bGray, __sTxt, __bIn, __bDown, gotoAndStop, mBar, tTxt, hitArea, nWidth;
function Btn () {
super();
onRollOver = function () {
this.bIn = true;
};
onDragOut = (onRollOut = function () {
this.bIn = false;
});
onPress = function () {
this.bDown = true;
};
onReleaseOutside = (onRelease = function () {
this.bDown = false;
});
}
function get bGray() {
return(__bGray);
}
function set bGray(_bGray) {
if (__bGray != _bGray) {
__bGray = _bGray;
gray(this, __bGray);
}
//return(bGray);
}
function get sTxt() {
return(__sTxt);
}
function set sTxt(_sTxt) {
__sTxt = _sTxt;
replace();
//return(sTxt);
}
function get bIn() {
return(__bIn);
}
function set bIn(_bIn) {
if (__bIn != _bIn) {
(__bIn ? (rollOut(bGray)) : (rollOver(bGray)));
__bIn = _bIn;
replace();
}
//return(bIn);
}
function get bDown() {
return(__bDown);
}
function set bDown(_bDown) {
if (__bDown != _bDown) {
(__bDown ? (release(bGray)) : (press(bGray)));
__bDown = _bDown;
replace();
}
//return(bDown);
}
function init(_sTxt) {
bGray = (bGray);
if (_sTxt != "undefined") {
sTxt = (_sTxt);
}
replace();
}
function replace() {
var _local2;
if (bIn && (bDown)) {
_local2 = "down";
} else if (bIn || (bDown)) {
_local2 = "over";
} else {
_local2 = "up";
}
gotoAndStop(_local2);
mBar.gotoAndStop(_local2);
tTxt.autoSize = true;
if (autoSize == "right") {
tTxt._x = -int(tTxt._width);
} else if (autoSize == "center") {
tTxt._x = -int(tTxt._width / 2);
} else {
tTxt._x = 0;
}
if (!bBar) {
hitArea = tTxt;
mBar._visible = false;
} else if (nWidth > 0) {
mBar._height = int(tTxt._height);
mBar._width = nWidth;
mBar._x = ((-nWidth) / 2) + 2;
} else {
if (isNaN(nDw)) {
nDw = int(tTxt._width - tTxt.textWidth);
}
mBar._width = tTxt.textWidth + (nBorder * 2);
mBar._x = (tTxt._x + nDw) - nBorder;
if (bMask) {
mBar._height = int(tTxt.textHeight) - 15;
mBar._y = 11;
hitArea = tTxt;
mBar.setMask(tTxt);
} else {
mBar._height = int(tTxt._height);
hitArea = mBar;
}
}
}
static function gray(_m, _b) {
if (_b) {
_m.filters = [new flash.filters.ColorMatrixFilter([0.308600038290024, 0.609399974346161, 0.0820000022649765, 0, 0, 0.308600008487701, 0.609399974346161, 0.0820000022649765, 0, 0, 0.308600008487701, 0.609399974346161, 0.0820000246167183, 0, 0, 0, 0, 0, 1, 0])];
} else {
_m.filters = [];
}
}
function press(_b) {
}
function release(_b) {
}
function rollOver(_b) {
}
function rollOut(_b) {
}
static var nBorder = 10;
var autoSize = "left";
var bBar = true;
var bMask = true;
}
Symbol 933 MovieClip [__Packages.common.PopUp] Frame 0
class common.PopUp extends MovieClip
{
var _y, _x, sFrame, attachMovie, aSt, gotoAndStop, nWidth, bt_N, bt_Y, tT_0, nHeight, tT_2, tT_1, mBar, stop, removeMovieClip, bt_X;
function PopUp () {
super();
}
function init() {
if (_y == 0) {
_x = Global.WIDTH / 2;
_y = Global.HEIGHT / 2;
}
if (bScreen) {
Common.enabledFor(true, this, _root, -16384);
} else {
Common.enabledFor(true, this, this, -16384);
}
switch (sFrame) {
case "y_n" :
attachMovie("common.Btn", "bt_X", 10, {sTxt:"X", autoSize:"right"});
attachMovie("common.Btn", "bt_Y", 9, {sTxt:((aSt[1] == undefined) ? "YES" : (aSt[1])), autoSize:"right"});
attachMovie("common.Btn", "bt_N", 8, {sTxt:((aSt[2] == undefined) ? "NO" : (aSt[2]))});
attachMovie("common.Txt", "tT_0", 7, {sTxt:((aSt[0] == undefined) ? "TXT" : (aSt[0])), obCustom:{bCustom:true, multiline:true, wordWrap:true}});
break;
case "ok" :
attachMovie("common.Btn", "bt_X", 10, {sTxt:"X", autoSize:"right"});
attachMovie("common.Btn", "bt_Y", 9, {sTxt:((aSt[1] == undefined) ? "OK" : (aSt[1])), autoSize:"center"});
attachMovie("common.Txt", "tT_0", 7, {sTxt:((aSt[0] == undefined) ? "TXT" : (aSt[0])), obCustom:{bCustom:true, multiline:true, wordWrap:true}});
break;
case "submit" :
attachMovie("common.Btn", "bt_X", 10, {sTxt:"X", autoSize:"right"});
attachMovie("common.Btn", "bt_Y", 9, {sTxt:"SUBMIT", autoSize:"center"});
attachMovie("common.Txt", "tT_0", 8, {sTxt:"NAME:"});
attachMovie("common.Txt", "tT_1", 7, {sTxt:"SCORE: " + ((aSt[1] == undefined) ? 0 : (aSt[1]))});
attachMovie("common.Txt", "tT_2", 6, {sTxt:((aSt[0] == undefined) ? "YOUR NAME" : (aSt[0])), obCustom:{bCustom:true, type:"input", selectable:true, maxChars:9, restrict:"^ ", border:true, borderColor:16777215}});
break;
case "message" :
attachMovie("common.Txt", "tT_0", 10, {sTxt:((aSt[0] == undefined) ? "TXT" : (aSt[0])), _obFormat:{align:"center"}});
break;
case "input" :
attachMovie("common.Btn", "bt_X", 10, {sTxt:"X", autoSize:"right"});
attachMovie("common.Btn", "bt_Y", 9, {sTxt:((aSt[1] == undefined) ? "OK" : (aSt[1])), autoSize:"center"});
attachMovie("common.Txt", "tT_0", 8, {sTxt:((aSt[0] == undefined) ? "TXT" : (aSt[0])), _obFormat:{align:"center"}, obCustom:{bCustom:true, multiline:true, wordWrap:true}});
attachMovie("common.Txt", "tT_1", 7, {sTxt:((aSt[2] == undefined) ? "YOUR NAME" : (aSt[2])), _obFormat:{align:"center"}, obCustom:{bCustom:true, type:"input", selectable:true, maxChars:9, restrict:"^ ", border:true, borderColor:0}});
break;
}
gotoAndStop(2);
}
function inFrame() {
switch (sFrame) {
case "y_n" :
nWidth = int(Math.max(nWidth_s, (bt_Y._width + bt_N._width) + (nOffset_x * 3)));
bt_Y._x = int(-nOffset_x);
bt_N._x = int(nOffset_x);
tT_0.tTxt._width = nWidth - nOffset_x;
tT_0.replace();
tT_0._x = (-tT_0.tTxt.textWidth) / 2;
nHeight = int(Math.max(nHeight_s, tT_0.tTxt.textHeight + (nOffset_x * 3)));
bt_Y._y = (bt_N._y = int(((nHeight / 2) - nOffset_x) - nBorder));
tT_0._y = -int((nOffset_x / 2) + (tT_0.tTxt.textHeight / 2));
bt_Y.press = function () {
if (this._parent.rtFun(true)) {
this._parent.remove();
}
};
bt_N.press = function () {
if (this._parent.rtFun(false)) {
this._parent.remove();
}
};
break;
case "ok" :
nWidth = nWidth_s;
tT_0.tTxt._width = nWidth - nOffset_x;
tT_0.replace();
tT_0._x = (-tT_0.tTxt.textWidth) / 2;
nHeight = int(Math.max(nHeight_s, tT_0.tTxt.textHeight + (nOffset_x * 3)));
bt_Y._y = int(((nHeight / 2) - nOffset_x) - nBorder);
tT_0._y = -int((nOffset_x / 2) + (tT_0.tTxt.textHeight / 2));
bt_Y.press = function () {
if (this._parent.rtFun(true)) {
this._parent.remove();
}
};
break;
case "submit" :
nWidth = int(Math.max(nWidth_s, (tT_1.tTxt.textWidth + tT_2.tTxt.textWidth) + (nOffset_x * 2)));
tT_0._x = (tT_1._x = int(((-nWidth) / 2) + nOffset_x));
tT_2._x = (tT_0._x + tT_0.tTxt.textWidth) + 15;
nHeight = int(nOffset_x * 5);
bt_Y._y = int(((-nHeight) / 2) + (nOffset_x * 3));
tT_0._y = int(((-nHeight) / 2) + nOffset_x);
tT_1._y = int(((-nHeight) / 2) + (nOffset_x * 2));
tT_2._y = int(((-nHeight) / 2) + nOffset_x);
bt_Y.press = function () {
var _local3 = this._parent.tT_2.tTxt.text;
if (_local3.length > 0) {
Global.SUBMIT(_local3, this._parent.aSt[1]);
Global.mTemp = _root.attachMovie("common.PopUp", "PopUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {sFrame:"message", aSt:["SENDING..."]});
Global.SUBMITEND = function () {
Global.mTemp.remove();
_root.attachMovie("common.PopUp", "PopUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {sFrame:"ok", aSt:["VIEW HIGHSCORE?"], rtFun:function (_b) {
if (_b) {
Global.VIEWSCORE();
}
return(true);
}});
};
this._parent.remove();
} else {
_root.attachMovie("common.PopUp", "PopUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {sFrame:"ok", aSt:["ENTER A NAME PLEASE!"]});
}
};
break;
case "message" :
nWidth = nWidth_s;
tT_0.tTxt._width = nWidth - nOffset_x;
tT_0.replace();
nHeight = int(Math.max(nHeight_s, tT_0.tTxt.textHeight + (nOffset_x * 2)));
tT_0._y = -int((nOffset_x / 2) + (tT_0.tTxt.textHeight / 2));
break;
case "input" :
nWidth = nWidth_s;
tT_0.tTxt._width = nWidth - nOffset_x;
tT_0.replace();
nHeight = int(nOffset_x * 6);
tT_0._y = -int(nOffset_x + (tT_0.tTxt.textHeight / 2));
tT_1._y = (tT_0._y + tT_0.tTxt.textHeight) + (nOffset_x / 2);
bt_Y._y = int((nHeight / 2) - nOffset_x);
bt_Y.press = function () {
var _local3 = this._parent.tT_1.tTxt.text;
if (((_local3.length > 0) && (_local3 != false)) && (_local3 != "false")) {
this._parent.rtFun(_local3);
this._parent.remove();
} else {
_root.attachMovie("common.PopUp", "PopUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {sFrame:"ok", aSt:["ENTER A NAME PLEASE!"]});
}
};
break;
}
x_btn();
mBar._width = nWidth;
mBar._height = nHeight;
mBar._x = (-nWidth) / 2;
mBar._y = (-nHeight) / 2;
stop();
}
function rtFun(_b) {
return(true);
}
function remove() {
removeMovieClip();
}
function x_btn() {
bt_X._x = (int(nWidth / 2) - common.Btn.nBorder) - nBorder;
bt_X._y = int((-nHeight) / 2) + nBorder;
bt_X.press = function () {
this._parent.rtFun(false);
this._parent.remove();
};
}
static var nOffset_x = 40;
static var nWidth_s = 320;
static var nHeight_s = 120;
static var nBorder = 10;
var bScreen = true;
}
Symbol 934 MovieClip [__Packages.game.Obj_fly] Frame 0
class game.Obj_fly extends MovieClip
{
var pt_0, pt_t, pt_temp, obSpeed, mGround, mHit, _y, _x, localToGlobal, _parent, mClip, nTime, walking, removeMovieClip;
function Obj_fly () {
super();
pt_0 = {};
pt_t = {};
pt_temp = {};
obSpeed = {x:nSpeed, y:0};
Global.GAME.aFly.push(this);
mGround = Global.GAME.mClip.mGround;
}
function init() {
mHit = Common.addClip("mHit", "mHit_1", Global.GAME.mClip.mUnit, {_x:_x, _y:_y, _width:nRadius * 2, _height:nRadius_h * 2});
}
function move() {
(pt_0.x = obSpeed.x);
(pt_0.y = obSpeed.y);
localToGlobal(pt_0);
walk();
moveClip();
}
function moveClip() {
(Global.obTemp.x = pt_0.x);
(Global.obTemp.y = pt_0.y);
_parent.globalToLocal(Global.obTemp);
(_x = Global.obTemp.x);
(_y = Global.obTemp.y);
moveHit();
}
function moveHit() {
(mHit._x = _x);
(mHit._y = _y);
mHit._rotation = mClip._rotation;
}
function moveDir() {
obSpeed.x = Math.cos(nRadian) * nSpeed;
obSpeed.y = Math.sin(nRadian) * nSpeed;
nRadian = Common.rFloor(nRadian);
nDir = ((Math.abs(nRadian) > (Math.PI/2)) ? -1 : 1);
mClip._yscale = nDir * 100;
mClip._rotation = nRadian * Common.a2r;
}
function walk() {
if ((nTime < 100) && (Common.side_max(pt_0.x, pt_0.y, pt_t.x, pt_t.y) > nSpeed)) {
var _local2 = Common.rFloor(Math.atan2(pt_t.y - pt_0.y, pt_t.x - pt_0.x) - nRadian);
if (Math.abs(_local2) > nRadian_off) {
_local2 = Common.vpNum(_local2, nRadian_off);
}
nRadian = Common.rFloor(nRadian + _local2);
moveDir();
walking();
nTime++;
} else {
changePt();
}
}
function isIn() {
return(game.Main.hitGround(pt_0.x, pt_0.y, mGround));
}
function changePt() {
pt_t.x = random(Global.WIDTH);
pt_t.y = random(Global.HEIGHT / 2) + 50;
nTime = 0;
}
function remove() {
Common.removeArray(Global.GAME.aFly, this);
mHit.removeMovieClip();
removeMovieClip();
}
var nRadius = 10;
var nRadius_h = 10;
var nRadian = 0;
var nRadian_off = 0.05;
var nSpeed = 2.5;
var nDir = 1;
}
Symbol 935 MovieClip [__Packages.game.Man_flight] Frame 0
class game.Man_flight extends game.Obj_fly
{
var nRadius, nRadius_h, pt_fire, target, aBullet, __nHealth, mBar_info, mHit, _x, remove, _y, isIn, nDir, move, nRadian_fire, pt_temp, mClip, nPower, nRadian;
function Man_flight () {
super();
nRadius = 20;
nRadius_h = 20;
pt_fire = {x:50, y:0};
target = Global.GAME.player;
aBullet[1] = aBullet[1] + 100;
}
function init() {
super.init();
nHealth = (nHealth_max);
}
function get nHealth() {
return(__nHealth);
}
function set nHealth(_nHealth) {
__nHealth = int(Common.formatNumber(_nHealth, 0, nHealth_max));
mBar_info.mClip._xscale = (__nHealth / nHealth_max) * 100;
if (__nHealth <= 0) {
death();
}
//return(nHealth);
}
function onEnterFrame() {
if (!Global.GAME.bPause) {
if ((mHit._name == undefined) || (Math.abs(mHit._x - _x) > 50)) {
remove();
return(undefined);
}
if ((Global.GAME.nTime_th % 10) == 0) {
Common.addClip("mSmock", null, Global.GAME.mClip, {_x:_x, _y:_y, _rotation:random(360)});
}
if ((Global.GAME.nTime_th % 5) == 0) {
reload();
}
if ((((target._name != undefined) && (canFire())) && (!isIn())) && ((nDir / (target._x - _x)) > 0)) {
fire();
}
move();
}
}
function getWeapon() {
var _local2 = [];
for (var _local3 in aBullet) {
if (aBullet[_local3] > 0) {
_local2.push(int(_local3));
}
}
nWeapon_type = _local2[random(_local2.length)];
if ((((nWeapon_type > 9) || (nWeapon_type == 8)) || (nWeapon_type < 1)) || (nWeapon_type == undefined)) {
nWeapon_type = 1;
}
}
function fire() {
getWeapon();
nRadian_fire = getRadian_fire(Common.getRadian(target, this) - (nDir * (Math.random() + 0.3)));
getPower();
var _local2 = getRadian_sum(nRadian_fire);
nReload_now = nReload_max;
nReloae_re = aReload_cost[nWeapon_type];
aBullet[nWeapon_type]--;
(pt_temp.x = pt_fire.x);
(pt_temp.y = pt_fire.y);
mClip.localToGlobal(pt_temp);
Common.addClip("game.Weapon_fall", "Weapon_fall", Global.GAME.mClip, {nDir:nDir, nId:nWeapon_type, _x:pt_temp.x, _y:pt_temp.y, obSpeed:{x:Math.cos(_local2) * nPower, y:Math.sin(_local2) * nPower}});
}
function reload() {
if (nReload_now > 0) {
nReload_now = nReload_now - (int(nReloae_re) + 1);
(nReload_now < 0) && ((nReload_now = 0));
}
}
function canFire() {
return((nReload_now <= 0) && (aBullet[nWeapon_type] > 0));
}
function getRadian_sum(_nRadian) {
var _local2 = ((nDir > 0) ? (nRadian) : (nRadian - Math.PI)) + (nDir * _nRadian);
return(_local2);
}
function getRadian_fire(_nRadian) {
var _local2 = (_nRadian - ((nDir > 0) ? (nRadian) : (nRadian - Math.PI))) / nDir;
_local2 = Common.rFloor(_local2);
return(_local2);
}
function getPower() {
nPower = Common.parabolaSpeed(target._x, target._y, _x, _y, getRadian_sum(nRadian_fire), game.Main.G) - (Math.random() * 3);
if (isNaN(nPower) || (nPower > nPower_max)) {
nPower = nPower_max;
}
}
function beHit(_n, _m, _n2) {
Global.GAME.player.ctrl.nMoney = Global.GAME.player.ctrl.nMoney + int((_n * 8) + (_n2 * 4));
nHealth = nHealth - _n;
}
function death() {
Common.addClip("mExp_body_4", null, Global.GAME.mClip, {_x:_x, _y:_y, nRadian:-1.5707963267949, nPower:10});
Common.addClip("mExp_3", null, Global.GAME.mClip, {_x:_x, _y:_y, _rotation:random(360)});
Global.GAME.nHave--;
Global.GAME.addEnemy();
if (Global.GAME.nHave <= 0) {
if (Global.GAME.nLevel >= 12) {
Global.GAME.overDelay(2);
Global.GAME.nScore = ((Global.GAME.player.ctrl.nMoney * Global.GAME.nLevel) / 4) + Global.GAME.nScore;
} else {
Global.GAME.aPlayer_b_level = Global.GAME.player.aLevel.concat();
Global.GAME.aPlayer_b = Global.GAME.player.aBullet.concat();
Global.GAME.nPlayer_money = Global.GAME.player.ctrl.nMoney;
Global.GAME.overDelay(1);
Global.GAME.nScore = ((Global.GAME.player.ctrl.nMoney * Global.GAME.nLevel) / 4) + Global.GAME.nScore;
}
}
remove();
}
static var aReload_cost = [null, 10, 4, 6, 5, 4, 5, 8, 7, 6, 6, 3, 4, 4, 4];
static var nReload_max = 120;
var nReload_now = 0;
var nReloae_re = 1;
var nWeapon_type = 1;
var nPower_max = 25;
var nHealth_max = 100;
}
Symbol 1 MovieClip [__Packages.hjw.view.controls.ToolTipControl] Frame 0
!!!ERROR
Symbol 6 MovieClip [__Packages.hjw.lang.Runnable] Frame 0
!!!ERROR
Symbol 7 MovieClip [__Packages.hjw.lang.Thread] Frame 0
!!!ERROR
Symbol 8 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
!!!ERROR
Symbol 9 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
!!!ERROR
Symbol 10 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
!!!ERROR
Symbol 11 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
!!!ERROR
Symbol 12 MovieClip [__Packages.mx.core.UIObject] Frame 0
!!!ERROR
Symbol 13 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
!!!ERROR
Symbol 14 MovieClip [__Packages.hjw.view.controls.ToolTip] Frame 0
!!!ERROR
Symbol 15 MovieClip [__Packages.hjw.view.controls.ToolTipManager] Frame 0
!!!ERROR
Symbol 24 MovieClip Frame 1
function isIn(domainName) {
return(((isInUrlFront(domainName) || (isInUrlFront("http://" + domainName))) || (isInUrlFront("http://www." + domainName))) || (isInUrlFront("www." + domainName)));
}
function isInUrlFront(str) {
var _local1 = _url;
_local1.toLowerCase();
str.toLowerCase();
return(_local1.indexOf(str) == 0);
}
_x = (Stage.width / 2);
_y = (Stage.height / 2);
this._visible = false;
if (((!bOpen) || (isIn("freeworldgroup.com"))) || (isIn("ifungames.com"))) {
_root.play();
} else {
this._visible = true;
_root.stop();
}
Symbol 47 MovieClip Frame 1
_x = (Stage.width / 2);
_y = (Stage.height / 2);
if (bOpen) {
_root.stop();
onPress = function () {
Global.FWGURL();
};
} else {
this._visible = false;
}
Symbol 47 MovieClip Frame 114
stop();
onEnterFrame = function () {
if (_alpha <= 0) {
_parent.play();
delete onEnterFrame;
} else {
_alpha = (_alpha - 5);
}
};
Symbol 71 MovieClip [game.Man_flight] Frame 1
#initclip 67
Object.registerClass("game.Man_flight", game.Man_flight);
#endinitclip
this.init();
Symbol 78 MovieClip [mExp_body_0] Frame 1
new Exp(this, Global.GAME.mClip.mGround);
Symbol 83 MovieClip [mExp_body_1] Frame 1
new Exp(this, Global.GAME.mClip.mGround);
Symbol 90 MovieClip [mExp_body_2] Frame 1
new Exp(this, Global.GAME.mClip.mGround);
Symbol 97 MovieClip [mExp_body_3] Frame 1
new Exp(this, Global.GAME.mClip.mGround);
Symbol 98 MovieClip [mExp_body_4] Frame 1
new Exp(this, Global.GAME.mClip.mGround);
Symbol 101 MovieClip [mExp_body_5] Frame 1
new Exp(this, Global.GAME.mClip.mGround);
Symbol 111 MovieClip [mExp_body_6] Frame 1
new Exp(this, Global.GAME.mClip.mGround);
Symbol 124 MovieClip [mExp_body_7] Frame 1
new Exp(this, Global.GAME.mClip.mGround);
Symbol 139 MovieClip [mExp_body_boss_1] Frame 1
new Exp(this, Global.GAME.mClip.mGround);
Symbol 160 MovieClip [mExp_body_boss_2] Frame 1
new Exp(this, Global.GAME.mClip.mGround);
Symbol 161 MovieClip [mSmock_ice] Frame 18
stop();
this.removeMovieClip();
Symbol 164 MovieClip [mSmock_1] Frame 18
stop();
this.removeMovieClip();
Symbol 211 MovieClip Frame 22
stop();
_parent.end();
Symbol 212 MovieClip [mExp_1] Frame 1
function end() {
this.removeMovieClip();
}
Symbol 235 MovieClip Frame 12
stop();
_parent.end();
Symbol 236 MovieClip [mExp_2] Frame 1
function end() {
this.removeMovieClip();
}
Symbol 291 MovieClip Frame 28
stop();
_parent.end();
Symbol 292 MovieClip [mExp_3] Frame 1
function end() {
this.removeMovieClip();
}
Symbol 326 MovieClip [Man_fire.mClip] Frame 20
stop();
this.removeMovieClip();
Symbol 349 MovieClip Frame 20
stop();
this.removeMovieClip();
Symbol 351 MovieClip [game.Man_fire] Frame 1
#initclip 47
Object.registerClass("game.Man_fire", game.Man_fire);
#endinitclip
this.init();
Symbol 352 MovieClip [game.Man_ice] Frame 1
#initclip 48
Object.registerClass("game.Man_ice", game.Man_ice);
#endinitclip
this.init();
Symbol 353 MovieClip [game.Man_test] Frame 1
#initclip 49
Object.registerClass("game.Man_test", game.Man_test);
#endinitclip
this.init();
Symbol 354 MovieClip [game.Ice_ground] Frame 1
#initclip 50
Object.registerClass("game.Ice_ground", game.Ice_ground);
#endinitclip
this.init();
Symbol 361 MovieClip [game.Man_timebomb] Frame 1
#initclip 51
Object.registerClass("game.Man_timebomb", game.Man_timebomb);
#endinitclip
this.init();
Symbol 364 MovieClip Frame 1
stop();
Symbol 365 MovieClip [game.Man_ice2] Frame 1
#initclip 52
Object.registerClass("game.Man_ice2", game.Man_ice2);
#endinitclip
this.init();
Symbol 370 MovieClip Frame 35
_parent._parent.dig(this);
Symbol 371 MovieClip Frame 79
_parent.gotoAndStop(1);
Symbol 384 MovieClip Frame 32
stop();
_parent._parent.onEnterFrame = function () {
if (this._alpha <= 0) {
this.remove();
}
this._alpha = this._alpha - 10;
};
Symbol 385 MovieClip Frame 1
stop();
Symbol 386 MovieClip [game.Man_dig] Frame 1
#initclip 53
Object.registerClass("game.Man_dig", game.Man_dig);
#endinitclip
this.init();
Symbol 397 MovieClip Frame 22
_parent._parent.target.beKill();
Symbol 397 MovieClip Frame 35
if (_parent._name == "mClip") {
_parent.gotoAndStop(1);
}
Symbol 398 MovieClip Frame 1
stop();
_parent.target = undefined;
Symbol 399 MovieClip [game.Man_killer] Frame 1
#initclip 54
Object.registerClass("game.Man_killer", game.Man_killer);
#endinitclip
this.init();
Symbol 416 MovieClip Frame 24
stop();
Symbol 419 MovieClip Frame 75
stop();
_parent._parent.onEnterFrame = function () {
if (this._alpha <= 0) {
this.remove();
}
this._alpha = this._alpha - 10;
};
Symbol 421 MovieClip [game.Man_parachute] Frame 1
#initclip 55
Object.registerClass("game.Man_parachute", game.Man_parachute);
#endinitclip
this.init();
Symbol 435 MovieClip Frame 56
stop();
_parent._parent.onEnterFrame = function () {
if (this._alpha <= 0) {
this.remove();
}
this._alpha = this._alpha - 10;
};
Symbol 436 MovieClip Frame 1
stop();
Symbol 437 MovieClip [game.Man_push] Frame 1
#initclip 56
Object.registerClass("game.Man_push", game.Man_push);
#endinitclip
this.init();
Symbol 446 MovieClip Frame 1
stop();
Symbol 447 MovieClip [game.Man_stop] Frame 1
#initclip 57
Object.registerClass("game.Man_stop", game.Man_stop);
#endinitclip
this.init();
Symbol 448 MovieClip Frame 21
gotoAndPlay (12);
Symbol 449 MovieClip Frame 1
stop();
Symbol 450 MovieClip [game.Man_rep] Frame 1
#initclip 58
Object.registerClass("game.Man_rep", game.Man_rep);
#endinitclip
this.init();
Symbol 456 MovieClip Frame 1
stop();
Symbol 457 MovieClip [game.Man_umbrella] Frame 1
#initclip 59
Object.registerClass("game.Man_umbrella", game.Man_umbrella);
#endinitclip
this.init();
Symbol 508 MovieClip Frame 12
stop();
onEnterFrame = function () {
_rotation = (Common.trigonometric(getTimer(), 1200, 12) + int(_nOff));
};
Symbol 512 MovieClip Frame 4
stop();
Symbol 513 MovieClip [game.Weapon_fall] Frame 1
#initclip 60
Object.registerClass("game.Weapon_fall", game.Weapon_fall);
#endinitclip
this.init();
Symbol 515 MovieClip [game.Obj_paint] Frame 1
#initclip 61
Object.registerClass("game.Obj_paint", game.Obj_paint);
#endinitclip
this.init();
Symbol 517 MovieClip Frame 1
stop();
_parent._parent.ctrl.resetBar();
Symbol 517 MovieClip Frame 12
_parent._parent.fire();
Symbol 521 MovieClip Frame 1
stop();
Symbol 523 MovieClip Frame 1
stop();
_parent._parent.ctrl.resetBar();
Symbol 523 MovieClip Frame 12
_parent._parent.fire();
Symbol 540 MovieClip Frame 1
stop();
Symbol 541 MovieClip [game.Catapult] Frame 1
#initclip 62
Object.registerClass("game.Catapult", game.Catapult);
#endinitclip
this.init();
Symbol 606 MovieClip Frame 1
function replace() {
var _local1;
if (bIn && (bDown)) {
_local1 = "Down";
} else if (bIn || (bDown)) {
_local1 = "Over";
} else {
_local1 = "Up";
}
gotoAndStop(_local1);
tTxt.autoSize = (bLeft ? "left" : "right");
if (tTxt.autoSize == "right") {
tTxt._x = -Math.floor(tTxt._width);
} else {
tTxt._x = 0;
}
}
var aWord = new Array("V 1.0", "Copyright 2008 freeworldgroup.com", "Credits");
var sTxt;
var bTop;
var bLeft;
var bIn = false;
var bDown = false;
var onpress;
var onrelease;
switch (sSelect) {
case "visonNumber" :
sTxt = aWord[0];
break;
case "copyright" :
sTxt = aWord[1];
break;
case "credits" :
sTxt = aWord[2];
}
if (bTop) {
_y = 0;
} else {
_y = ((Global.HEIGHT - tTxt.textHeight) - 5);
}
if (bLeft) {
_x = 0;
} else {
_x = Global.WIDTH;
}
onRollOver = function () {
bIn = true;
replace();
};
onDragOut = (onRollOut = function () {
bIn = false;
replace();
});
onPress = function () {
bDown = true;
replace();
onpress();
};
onReleaseOutside = (onRelease = function () {
bDown = false;
replace();
onrelease();
});
replace();
hitArea = tTxt;
Symbol 607 MovieClip Frame 1
_y = 0;
_x = 0;
Instance of Symbol 606 MovieClip in Symbol 607 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
sSelect = "visonNumber";
bTop = true;
bLeft = true;
}
Instance of Symbol 606 MovieClip in Symbol 607 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
sSelect = "credits";
bTop = false;
bLeft = false;
}
on (press) {
Fade.start();
Global.GAME.gotoAndStop("credits");
}
Instance of Symbol 606 MovieClip in Symbol 607 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
sSelect = "copyright";
bTop = false;
bLeft = true;
}
on (press) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 609 MovieClip [common.Txt] Frame 1
#initclip 63
Object.registerClass("common.Txt", common.Txt);
#endinitclip
var sTemp = typeof(eval (_sTxt));
if (sTemp == "function") {
_sTxt = eval (_sTxt)();
} else if ((sTemp == "string") || (sTemp == "number")) {
_sTxt = eval (_sTxt);
} else {
_sTxt = String(_sTxt);
}
delete sTemp;
this.init(_sTxt);
Symbol 620 MovieClip [common.Btn] Frame 1
#initclip 64
Object.registerClass("common.Btn", common.Btn);
#endinitclip
var sTemp = typeof(eval (_sTxt));
if (sTemp == "function") {
_sTxt = eval (_sTxt)();
} else if ((sTemp == "string") || (sTemp == "number")) {
_sTxt = eval (_sTxt);
} else {
_sTxt = String(_sTxt);
}
delete sTemp;
this.init(_sTxt);
Symbol 654 MovieClip Frame 1
gotoAndStop (35);
Symbol 654 MovieClip Frame 36
gotoAndStop (2);
Symbol 663 MovieClip Frame 1
stop();
Instance of Symbol 620 MovieClip [common.Btn] in Symbol 663 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "NEXT";
autoSize = "left";
nWidth = 0;
}
on (press) {
_parent.nextFrame();
}
Instance of Symbol 620 MovieClip [common.Btn] in Symbol 663 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "SKIP";
autoSize = "left";
nWidth = 0;
}
on (press) {
Fade_2.start();
Global.GAME.gotoAndStop("loading");
}
Instance of Symbol 620 MovieClip [common.Btn] in Symbol 663 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
_sTxt = "BACK";
autoSize = "left";
nWidth = 0;
}
on (press) {
_parent.prevFrame();
}
Symbol 663 MovieClip Frame 3
Common.removeFixMc(Global.GAME.mClip.mGround);
Common.clearAllClip(this);
delete onEnterFrame;
Symbol 663 MovieClip Frame 4
function fire() {
var _local2 = Common.rdm_0((Math.PI/2), 0.6);
var _local3 = random(10) + 15;
Common.addClip("game.Weapon_fall", "Weapon_fall", this, {nDir:1, nId:random(12) + 1, _x:random(400) + 200, _y:200, obSpeed:{x:Math.cos(_local2) * _local3, y:Math.sin(_local2) * _local3}});
}
Global.GAME.drawGround(mGround1);
Global.GAME.aGround = [];
var nTime = 0;
onEnterFrame = function () {
nTime++;
if (((nTime % 10) == 0) && (random(100) > 80)) {
fire();
}
};
Symbol 663 MovieClip Frame 5
Common.removeFixMc(Global.GAME.mClip.mGround);
Global.GAME.player.remove();
Common.clearAllClip(this);
delete onEnterFrame;
Symbol 663 MovieClip Frame 6
Global.GAME.aPlayer_b = [null, 99999];
Global.GAME.player.remove();
Global.GAME.drawGround(mGround1);
Global.GAME.addPlayer(400, 380);
delete onEnterFrame;
Symbol 663 MovieClip Frame 7
Global.GAME.player.remove();
var nTime = 0;
var nDir = 1;
mC2._xscale = -100;
Common.removeFixMc(Global.GAME.mClip.mGround);
onEnterFrame = function () {
if (nDir > 0) {
mC.nextFrame();
} else {
mC.prevFrame();
}
nTime++;
if (nTime > 100) {
nTime = 0;
nDir = -nDir;
mC2._xscale = (-nDir) * 100;
}
};
Symbol 663 MovieClip Frame 8
delete onEnterFrame;
Instance of Symbol 620 MovieClip [common.Btn] in Symbol 663 MovieClip Frame 8
//component parameters
onClipEvent (construct) {
_sTxt = "PLAY";
autoSize = "left";
nWidth = 0;
}
on (press) {
Fade_2.start();
Global.GAME.gotoAndStop("loading");
}
Symbol 730 MovieClip Frame 1
stop();
Symbol 786 MovieClip Frame 1
stop();
Instance of Symbol 736 MovieClip in Symbol 786 MovieClip Frame 2
onClipEvent (load) {
var nXnow = _x;
var nYnow = _y;
}
onClipEvent (enterFrame) {
_x = (nXnow + random(4));
_y = (nYnow + random(4));
}
Instance of Symbol 737 MovieClip in Symbol 786 MovieClip Frame 5
onClipEvent (load) {
var nXnow = _x;
var nYnow = _y;
}
onClipEvent (enterFrame) {
_x = (nXnow + random(3));
_y = (nYnow + random(3));
}
Instance of Symbol 508 MovieClip in Symbol 786 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop(_totalframes);
_nOff = 90;
}
Instance of Symbol 738 MovieClip in Symbol 786 MovieClip Frame 9
onClipEvent (load) {
var nXnow = _x;
var nYnow = _y;
}
onClipEvent (enterFrame) {
_x = (nXnow + random(2));
_y = (nYnow + random(2));
}
Instance of Symbol 739 MovieClip in Symbol 786 MovieClip Frame 11
onClipEvent (load) {
var nXnow = _x;
var nYnow = _y;
}
onClipEvent (enterFrame) {
_x = (nXnow + random(3));
_y = (nYnow + random(3));
}
Symbol 787 MovieClip Frame 1
function inShow(_n) {
_visible = true;
mClip.gotoAndStop(_n);
onEnterFrame = function () {
_x = (_x + (((x0 - nL) - _x) / 2));
if (Math.abs((x0 - nL) - _x) < 1) {
_x = (x0 - nL);
delete onEnterFrame;
}
};
}
function endShow() {
_visible = false;
}
function outShow() {
onEnterFrame = function () {
_x = (_x + ((x0 - _x) / 2));
if (Math.abs(x0 - _x) < 1) {
_x = x0;
endShow();
delete onEnterFrame;
}
};
}
var bPause;
var bRun = false;
var x0 = _x;
var nL = (_width + 40);
Symbol 788 MovieClip Frame 1
var i = 1;
while (i < 15) {
this["bt_" + i].nWeapon_type = i;
this["bt_" + i].toolTip = Global.GAME.sInfo[i];
this["bt_" + i].onPress = function () {
this._parent.mBar_select._x = this._x + 15;
Global.GAME.player.nWeapon_type = this.nWeapon_type;
};
this["bt_" + i].onRollOver = function () {
this._parent.mShow.inShow(this.nWeapon_type);
};
i++;
}
bt_13.onPress = function () {
Global.GAME.player.repair();
};
bt_14.onPress = function () {
Global.GAME.player.defence();
};
var sTxt = ("Level: " + Global.GAME.nLevel);
var bPress;
onEnterFrame = function () {
if (Key.isDown(80)) {
if (!bPress) {
Global.GAME.bPause = !Global.GAME.bPause;
if (Global.GAME.bPause) {
_global.mAAA = Common.addClip("common.PopUp", "PopUp", Global.GAME, {sFrame:"ok", aSt:["GAME PAUSED!", "press 'p' to continue"], rtFun:function () {
Global.GAME.bPause = false;
return(true);
}});
} else {
_global.mAAA.remove();
}
bPress = true;
}
} else {
bPress = false;
}
};
Instance of Symbol 609 MovieClip [common.Txt] "t_1" in Symbol 788 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_2" in Symbol 788 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_3" in Symbol 788 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_4" in Symbol 788 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_5" in Symbol 788 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_6" in Symbol 788 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_7" in Symbol 788 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_8" in Symbol 788 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_9" in Symbol 788 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_11" in Symbol 788 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_10" in Symbol 788 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_12" in Symbol 788 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_13" in Symbol 788 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_money" in Symbol 788 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 30;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 620 MovieClip [common.Btn] in Symbol 788 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "MENU";
autoSize = "right";
nWidth = 0;
}
onClipEvent (load) {
this.toolTip = "Quit To Menu";
}
on (press) {
Global.GAME.bPause = true;
Common.addClip("common.PopUp", "PopUp", Global.GAME, {sFrame:"y_n", aSt:["Quit To Menu?"], rtFun:function (_b) {
if (_b) {
Fade_2.start();
Global.GAME.gotoAndStop("menu");
} else {
Global.GAME.bPause = false;
}
return(true);
}});
}
Instance of Symbol 620 MovieClip [common.Btn] in Symbol 788 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "S";
autoSize = "right";
nWidth = 0;
}
onClipEvent (load) {
this.bGray = Global.volumeSound();
if (this.bGray) {
this.toolTip = "Sound: Off";
} else {
this.toolTip = "Sound: On";
}
}
on (press) {
this.bGray = !Global.volumeSound(true);
if (this.bGray) {
this.toolTip = "Sound: Off";
} else {
this.toolTip = "Sound: On";
}
}
Instance of Symbol 620 MovieClip [common.Btn] in Symbol 788 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "M";
autoSize = "right";
nWidth = 0;
}
onClipEvent (load) {
this.bGray = Global.volumeMusic();
if (this.bGray) {
this.toolTip = "Music: Off";
} else {
this.toolTip = "Music: On";
}
}
on (press) {
this.bGray = !Global.volumeMusic(true);
if (this.bGray) {
this.toolTip = "Music: Off";
} else {
this.toolTip = "Music: On";
}
}
Instance of Symbol 620 MovieClip [common.Btn] in Symbol 788 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "Q";
autoSize = "right";
nWidth = 0;
}
onClipEvent (load) {
this.toolTip = "Quality: " + _root._quality;
}
on (press) {
this.toolTip = "Quality: " + Common.changeQ();
}
Instance of Symbol 620 MovieClip [common.Btn] in Symbol 788 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "P";
autoSize = "right";
nWidth = 0;
}
onClipEvent (load) {
this.toolTip = "Pause Game";
}
on (press) {
Global.GAME.bPause = true;
_global.mAAA = Common.addClip("common.PopUp", "PopUp", Global.GAME, {sFrame:"ok", aSt:["GAME PAUSED!", "press 'p' to continue"], rtFun:function () {
Global.GAME.bPause = false;
return(true);
}});
}
Instance of Symbol 609 MovieClip [common.Txt] in Symbol 788 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "";
sVariable = "_parent.sTxt";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 30;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_14" in Symbol 788 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Symbol 790 MovieClip Frame 1
stop();
Symbol 790 MovieClip Frame 40
if (this.nType == 0) {
Global.GAME.gotoAndStop("gameover");
} else if (this.nType == 1) {
Global.GAME.gotoAndStop("nextlevel");
} else if (this.nType == 2) {
Global.GAME.gotoAndStop("gamewin");
}
Symbol 792 MovieClip Frame 1
Common.enabledFor(true, this, _root, -16384);
Instance of Symbol 609 MovieClip [common.Txt] "tTxt" in Symbol 792 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "";
sVariable = "";
obCustom = {};
obCustom.bCustom = true;
obCustom._width = 420;
obCustom._height = 140;
obCustom.multiline = true;
obCustom.wordWrap = true;
obCustom.type = "";
obCustom.maxChars = "";
obCustom.restrict = "";
obCustom.selectable = "";
obCustom.border = "";
obCustom.borderColor = "";
obCustom.background = "";
obCustom.backgroundColor = "";
obCustom.html = "";
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 30;
_obFormat.color = "0xffffff";
}
Instance of Symbol 620 MovieClip [common.Btn] "mClose" in Symbol 792 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "CLOSE";
autoSize = "center";
nWidth = 0;
}
Instance of Symbol 620 MovieClip [common.Btn] "mUp" in Symbol 792 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "UPGRADE";
autoSize = "center";
nWidth = 0;
}
Instance of Symbol 620 MovieClip [common.Btn] "mBuy" in Symbol 792 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "BUY";
autoSize = "center";
nWidth = 0;
}
Instance of Symbol 609 MovieClip [common.Txt] in Symbol 792 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "BUY AND UPGRADE";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom._height = 0;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 50;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_money" in Symbol 792 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom._height = 0;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "right";
_obFormat.size = 50;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_1" in Symbol 792 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_2" in Symbol 792 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_3" in Symbol 792 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_4" in Symbol 792 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_5" in Symbol 792 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_6" in Symbol 792 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_7" in Symbol 792 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_8" in Symbol 792 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_9" in Symbol 792 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_11" in Symbol 792 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_10" in Symbol 792 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_12" in Symbol 792 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_13" in Symbol 792 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Instance of Symbol 609 MovieClip [common.Txt] "t_14" in Symbol 792 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0xffcc00";
}
Symbol 792 MovieClip Frame 2
function info(_n) {
if (_n == undefined) {
_n = mSelect.i;
}
mShow.gotoAndStop(_n);
var _local2 = Global.GAME.aWeapon_cost[_n];
var _local3 = Global.GAME.aWeapon_level[_n];
if (_local2 == 0) {
_local2 = "N/A";
}
if (Global.GAME.aPlayer_b_level[_n] >= Global.GAME.aWeapon_level_max[_n]) {
_local3 = "N/A";
}
var _local4 = ((("cost: $ " + _local2) + " upgrade cost: $ ") + _local3) + newline;
_local4 = _local4 + Global.GAME.sInfo[_n];
tTxt.sTxt = _local4;
}
function reset() {
var _local3;
var _local2 = 0;
while (_local2 < 15) {
_local3 = ("LV " + (Global.GAME.aPlayer_b_level[_local2] + 1)) + newline;
if (_local2 == 1) {
_local3 = _local3 + "x\u221E";
} else {
_local3 = _local3 + ("x " + Global.GAME.aPlayer_b[_local2]);
}
this["t_" + _local2].sTxt = _local3;
_local2++;
}
t_money.sTxt = "$: " + Global.GAME.nPlayer_money;
}
reset();
var i = 1;
while (i < 15) {
this["bt_" + i].i = i;
this["bt_" + i].onPress = function () {
this._parent.mSelect = this;
this._parent.mBar_select._x = this._x;
this._parent.mBar_select._y = this._y;
};
this["bt_" + i].onRollOver = function () {
this._parent.info(this.i);
};
i++;
}
var mSelect = this.bt_1;
bt_back.onRollOver = function () {
this._parent.info();
};
bt_back.useHandCursor = false;
mClose.press = function () {
Fade_2.start();
Global.GAME.gotoAndStop("loading");
};
mBuy.press = function () {
Global.GAME.buyWeapon(this._parent.mSelect.i);
this._parent.reset();
};
mUp.press = function () {
Global.GAME.upWeapon(this._parent.mSelect.i);
this._parent.reset();
};
stop();
Symbol 814 MovieClip Frame 47
_parent.fire();
Symbol 833 MovieClip Frame 1
function fire() {
nRadian = (-random(0.523598775598299)) - 0.523598775598299;
nPower = random(10) + 15;
Common.addClip("game.Weapon_fall", "Weapon_fall", this, {_s:200, nDir:1, nId:2, _x:190, _y:450, obSpeed:{x:Math.cos(nRadian) * nPower, y:Math.sin(nRadian) * nPower}});
}
this.createEmptyMovieClip("mGround", 0);
Global.GAME.drawGround(mGround);
Symbol 834 MovieClip [game.Main] Frame 1
#initclip 65
Object.registerClass("game.Main", game.Main);
#endinitclip
this.init();
Symbol 834 MovieClip [game.Main] Frame 6
this.inMenu();
Symbol 834 MovieClip [game.Main] Frame 11
this.inCredits();
Instance of Symbol 609 MovieClip [common.Txt] in Symbol 834 MovieClip [game.Main] Frame 11
//component parameters
onClipEvent (construct) {
_sTxt = "Cartoon Heroes Happy Version";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom._height = 0;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 40;
_obFormat.color = "0xffffff";
}
Instance of Symbol 609 MovieClip [common.Txt] in Symbol 834 MovieClip [game.Main] Frame 11
//component parameters
onClipEvent (construct) {
_sTxt = "by DJ_XBrav";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom._height = 0;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 40;
_obFormat.color = "0xffffff";
}
Symbol 834 MovieClip [game.Main] Frame 16
this.inHelp();
Instance of Symbol 166 MovieClip [mHit] "mPress" in Symbol 834 MovieClip [game.Main] Frame 16
onClipEvent (load) {
hitArea = _root;
useHandCursor = false;
}
Symbol 834 MovieClip [game.Main] Frame 21
this.inSetting();
Symbol 834 MovieClip [game.Main] Frame 26
this.inLoading();
Instance of Symbol 166 MovieClip [mHit] "mPress" in Symbol 834 MovieClip [game.Main] Frame 26
onClipEvent (load) {
hitArea = _root;
useHandCursor = false;
}
Symbol 834 MovieClip [game.Main] Frame 31
this.inPlaying();
Symbol 834 MovieClip [game.Main] Frame 36
this.inNextLevel();
Symbol 834 MovieClip [game.Main] Frame 41
this.inShop();
Symbol 834 MovieClip [game.Main] Frame 46
this.inGameWin();
Symbol 834 MovieClip [game.Main] Frame 51
this.inGameOver();
Symbol 835 MovieClip [common.PopUp] Frame 1
#initclip 66
Object.registerClass("common.PopUp", common.PopUp);
#endinitclip
this.init();
Instance of Symbol 611 MovieClip "mBar" in Symbol 835 MovieClip [common.PopUp] Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
on (keyPress "<Space>") {
_parent.rtFun();
_parent.remove();
}
Symbol 835 MovieClip [common.PopUp] Frame 2
this.inFrame();
Instance of Symbol 609 MovieClip [common.Txt] "t" in Symbol 839 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "center";
_obFormat.size = 18;
_obFormat.color = "0xffffff";
}
Symbol 884 MovieClip [mSmock] Frame 25
stop();
this.removeMovieClip();
Symbol 885 MovieClip [mSmock_5] Frame 16
stop();
this.removeMovieClip();
Symbol 889 MovieClip Frame 18
_parent.end();
Symbol 890 MovieClip [mSpark] Frame 1
function end() {
_parent.exp.delPiece();
this.removeMovieClip();
}
Symbol 891 MovieClip [mPop] Frame 1
var sTxt;
var nTime;
if (nTime == undefined) {
nTime = 50;
}
onEnterFrame = function () {
if (nTime == 0) {
play();
delete onEnterFrame;
} else {
nTime--;
}
};
Instance of Symbol 609 MovieClip [common.Txt] in Symbol 891 MovieClip [mPop] Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "";
sVariable = "_parent.sTxt";
obCustom = {};
obCustom.bCustom = true;
obCustom._width = "";
obCustom.multiline = "";
obCustom.wordWrap = "";
obCustom.type = "";
obCustom.maxChars = "";
obCustom.restrict = "";
obCustom.selectable = "";
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = "";
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 30;
_obFormat.color = "0xffffff";
}
Symbol 891 MovieClip [mPop] Frame 6
stop();
Instance of Symbol 609 MovieClip [common.Txt] in Symbol 891 MovieClip [mPop] Frame 6
//component parameters
onClipEvent (construct) {
_sTxt = "";
sVariable = "_parent.sTxt";
obCustom = {};
obCustom.bCustom = true;
obCustom._width = "";
obCustom.multiline = "";
obCustom.wordWrap = "";
obCustom.type = "";
obCustom.maxChars = "";
obCustom.restrict = "";
obCustom.selectable = "";
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 30;
_obFormat.color = "0xffffff";
}
Symbol 891 MovieClip [mPop] Frame 11
rtFun();
this.removeMovieClip();
Symbol 901 MovieClip Frame 1
stop();
Instance of Symbol 620 MovieClip [common.Btn] in Symbol 901 MovieClip Frame 42
//component parameters
onClipEvent (construct) {
_sTxt = "BUTTON";
autoSize = "left";
nWidth = 0;
}
Instance of Symbol 609 MovieClip [common.Txt] in Symbol 901 MovieClip Frame 43
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
obCustom._width = 100;
obCustom._height = 0;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 20;
_obFormat.color = "0x000000";
}