Frame 1
MochiAd.showPreGameAd({id:"d8ce7ddf11b861ba", res:"550x500", background:6845841, color:788068, outline:12695210, no_bg:false});
Instance of Symbol 24 MovieClip in Frame 2
//component parameters
onClipEvent (construct) {
bOpen = false;
}
Instance of Symbol 5 MovieClip [ToolTipControl] in Frame 4
//component parameters
onClipEvent (construct) {
alpha = 100;
backgroudColor = 16777166 /* 0xFFFFCE */;
borderColor = 16777166 /* 0xFFFFCE */;
borderSize = 0;
color = 3355443 /* 0x333333 */;
curve = 4;
enabled = true;
errBackgroundColor = 13315630 /* 0xCB2E2E */;
errBorderColor = 13315630 /* 0xCB2E2E */;
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;
}
Symbol 5 MovieClip [ToolTipControl] Frame 1
#initclip 55
// 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 () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
Symbol 21 MovieClip Frame 1
function flash_loading(x, T, A) {
var _local1 = (Math.PI / T) * x;
return(A * Math.sin(_local1));
}
_level0.reserved.swapDepths(100);
_root.stop();
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
_root.menu = my_cm;
_x = (Stage.width / 2);
_y = ((Stage.height / 2) - 30);
_alpha = 0;
mLoading._alpha = 0;
var nDownload = 0;
var _nDownload = 0;
var nTimeIn = 0;
onEnterFrame = function () {
_nDownload = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_alpha < 100) {
_alpha = (_alpha + 5);
nTimeIn = getTimer();
} else {
if (nDownload < _nDownload) {
nDownload = nDownload + (random(5) + 1);
(nDownload > _nDownload) && ((nDownload = _nDownload));
}
_alpha = 100;
tTxt.text = nDownload + " %";
mLoading._alpha = Math.abs(flash_loading(getTimer() - nTimeIn, 800, 100));
}
if (nDownload == 100) {
if ((_root._mochiad instanceof MovieClip) != true) {
_root.play();
}
}
};
Symbol 893 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.6");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = 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 _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.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 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_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 _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
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.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
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 showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
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 _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
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")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
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("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _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.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
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 showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(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 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);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
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);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 894 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 switchMusic(_b) {
if (MUSIC.getVolume() != 100) {
_b && (MUSIC.setVolume(100));
return(true);
}
_b && (MUSIC.setVolume(0));
return(false);
}
static function switchSound(_b) {
if (SOUND.getVolume() != 100) {
_b && (SOUND.setVolume(100));
return(true);
}
_b && (SOUND.setVolume(0));
return(false);
}
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 _local1 = SharedObject.getLocal(GAMENAME + "_data", "/");
if (_local1.data.VERSION != VERSION) {
DEL();
_local1.data.VERSION = VERSION;
}
if (_s.length > 0) {
return(_local1.data[_s]);
}
return(_local1.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 GAMENAME = "alienabduct";
static var VERSION = "V 1.0";
static var WIDTH = Stage.width;
static var HEIGHT = Stage.height;
static var MUSIC = new Sound();
static var SOUND = new Sound();
static var URLHIGHSCORE = "http://www.freeworldgroup.com/score/score.asp";
}
Symbol 895 MovieClip [__Packages.game.POWERUP.Shield] Frame 0
class game.POWERUP.Shield extends MovieClip
{
var total_life, _life, gotoAndStop, _totalframes;
function Shield (Void) {
super();
total_life = game.Middle_Station.shield_lifeArr[game.Middle_Station.shield_lifeArr_Id];
life = (total_life);
}
function get life() {
return(_life);
}
function set life(__life) {
_life = __life;
gotoAndStop(Math.round((_life / total_life) * _totalframes));
//return(life);
}
}
Symbol 896 MovieClip [__Packages.game.Middle_Station] Frame 0
class game.Middle_Station
{
function Middle_Station () {
}
function init() {
}
static var beam_speedArr_Id = 0;
static var beam_speedArr = [20, 22.5, 25, 27.5, 30, 32.5, 35, 37.5, 40, 45];
static var human_up_speedArr_Id = 0;
static var human_up_speedArr = [4, 4.5, 5, 5.5, 6, 6.5, 7, 7.5, 8, 8.5];
static var beam_rangeArr_Id = 0;
static var beam_rangeArr = [-1500, -1700, -1900, -2100, -2300, -2500, -2700, -2900, -3100, -3300];
static var beam_electricityArr_Id = 0;
static var beam_electricityArr = [100, 150, 200, 250, 300, 350, 400, 450, 500, 550];
static var spaceship_move_stepsArr_Id = 0;
static var spaceship_move_stepsArr = [15, 13, 11, 9, 7, 5, 4, 3, 2, 1];
static var shield_lifeArr_Id = 0;
static var shield_lifeArr = [100, 150, 200, 250, 300, 350, 400, 450, 500, 550];
static var add_beam_lifeArr_Id = 0;
static var add_beam_lifeArr = [1, 1.1, 1.2, 1.4, 1.6, 1.8, 2.2, 2.75, 3.6, 5.5];
static var extra_bonuses = 0;
static var level_score = 0;
static var total_human_kidnapped_num = 0;
static var level_coins = 0;
}
Symbol 897 MovieClip [__Packages.game.SPACESHIP.Beam] Frame 0
class game.SPACESHIP.Beam extends MovieClip
{
var onMouseDown, onMouseUp, onEnterFrame, my_obj, global_obj, beam_lifebar, gamerun, the_earth, hit_point, _parent, human_out, human_inter, chongdian, alarm_mc_2, xmax_ymax, xmin_ymax, xmin_ymin, xmax_ymin, end_point, beam_back, hit_the_earth, speed, range, init_length, add_life, total_life, life, d_life, chongdian_delay, danger_tip, display_danger_time, _yscale, _alpha, getBounds, current_length, _y, _x, current_angle, end_point_x, end_point_y;
function Beam () {
super();
onMouseDown = function () {
if (this.life <= 0) {
this.display_danger_time = 60;
this.danger_tip = true;
}
if (this.life > 0) {
if (!_global.fire) {
this.life = this.life - this.d_life;
this.beam_lifebar.update();
}
_global.fire = true;
Global.playSound("xiren");
}
};
onMouseUp = function () {
};
init();
onEnterFrame = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
this.run();
};
}
function init() {
init_replace_long_name();
init_new_ones();
init_put_value_to_variable();
}
function run() {
beam_movement();
test_overstep_range();
the_beam_end_point();
run_real_time_recharged_me();
run_alarm();
}
function init_new_ones() {
my_obj = new Object();
global_obj = new Object();
beam_lifebar = new manage.LifeManage(Global.GAME.mPage.beam_lifebar, "right_to_left", this, "life", "total_life");
}
function init_replace_long_name() {
gamerun = Global.GAME.mPage.gamerun;
the_earth = Global.GAME.mPage.gamerun.the_earth;
hit_point = _parent.hit_point;
human_out = Global.GAME.mPage.gamerun.human_out;
human_inter = Global.GAME.mPage.gamerun.human_inter;
gamerun = Global.GAME.mPage.gamerun;
chongdian = gamerun.chongdian;
chongdian.gotoAndStop("common");
alarm_mc_2 = Global.GAME.mPage.alarm_mc_2;
trace(" alarm_mc_2 " + alarm_mc_2);
xmax_ymax = _root.xmax_ymax;
xmin_ymax = _root.xmin_ymax;
xmin_ymin = _root.xmin_ymin;
xmax_ymin = _root.xmax_ymin;
end_point = _root.end_point;
}
function init_put_value_to_variable() {
beam_back = false;
hit_the_earth = false;
speed = game.Middle_Station.beam_speedArr[game.Middle_Station.beam_speedArr_Id];
range = game.Middle_Station.beam_rangeArr[game.Middle_Station.beam_rangeArr_Id];
init_length = 12;
add_life = game.Middle_Station.add_beam_lifeArr[game.Middle_Station.add_beam_lifeArr_Id];
total_life = 1650;
life = total_life;
d_life = 165;
chongdian_delay = 30;
danger_tip = false;
display_danger_time = 150;
alarm_mc_2._visible = false;
}
function beam_movement() {
if (_global.fire) {
if (!hit_the_earth) {
_yscale = _yscale - (4 * speed);
}
}
}
function test_overstep_range() {
if (_yscale <= range) {
_yscale = range;
hit_the_earth = true;
if (_global.hit_beam_human_num <= 0) {
_alpha = _alpha - 5;
if (_alpha <= 0) {
_yscale = 100;
_alpha = 100;
_global.fire = false;
hit_the_earth = false;
}
}
}
}
function test_hit_the_earth() {
my_obj = {x:hit_point._x, y:hit_point._y};
_parent.localToGlobal(my_obj);
Global.GAME.mPage.gamerun.globalToLocal(my_obj);
var _local3 = my_obj.x - the_earth._x;
var _local4 = my_obj.y - the_earth._y;
if (_global.fire) {
if (Math.round((_local3 * _local3) + (_local4 * _local4)) <= Math.round(((the_earth._width / 2) - 50) * ((the_earth._width / 2) - 50))) {
}
}
}
function run_hit_point() {
if (_global.fire) {
my_obj = getBounds(_root);
if (((the_earth.hitTest(my_obj.xMin, my_obj.yMin) || (the_earth.hitTest(my_obj.xMin, my_obj.yMax))) || (the_earth.hitTest(my_obj.xMax, my_obj.yMin))) || (the_earth.hitTest(my_obj.xMax, my_obj.yMax))) {
}
}
}
function the_beam_end_point() {
if (_global.fire) {
current_length = Math.abs(init_length * (_yscale / 100));
my_obj = {x:_x, y:_y};
_parent.localToGlobal(my_obj);
current_angle = (_parent._rotation * Math.PI) / 180;
end_point_x = my_obj.x + (current_length * Math.cos(current_angle));
end_point_y = my_obj.y + (current_length * Math.sin(current_angle));
if (the_earth.hitTest(end_point_x, end_point_y, true)) {
hit_the_earth = true;
if (_global.hit_beam_human_num <= 0) {
_alpha = _alpha - 5;
if (_alpha <= 0) {
_yscale = 100;
_alpha = 100;
_global.fire = false;
hit_the_earth = false;
}
}
}
end_point._x = end_point_x;
end_point._y = end_point_y;
}
}
function run_chongdian() {
if (chongdian.hitTest(_root._xmouse, _root._ymouse, true) && (chongdian.hitTest(_parent))) {
if (life >= total_life) {
life = total_life;
beam_lifebar.update();
chongdian.gotoAndStop("common");
return(undefined);
}
chongdian.gotoAndStop("chongdian");
if ((--chongdian_delay) <= 0) {
chongdian_delay = 30;
life = life + 10;
beam_lifebar.update();
}
} else {
chongdian.gotoAndStop("common");
}
}
function run_real_time_recharged_me() {
if (!_global.fire) {
if (life >= 1650) {
life = 1650;
beam_lifebar.update();
}
life = life + add_life;
beam_lifebar.update();
}
}
function run_alarm() {
if (life <= (total_life * 0.1)) {
danger_tip = true;
}
if (life > (total_life * 0.1)) {
display_danger_time = 60;
}
if (danger_tip) {
alarm_mc_2._visible = true;
if ((--display_danger_time) <= 0) {
alarm_mc_2._visible = false;
danger_tip = false;
}
}
}
}
Symbol 898 MovieClip [__Packages.manage.LifeManage] Frame 0
class manage.LifeManage
{
var viewMc, myState, mc, life, lifeMax, lifeInit;
function LifeManage (viewMc, myState, mc, life, lifeMax) {
this.viewMc = viewMc;
this.myState = myState;
this.mc = mc;
this.life = life;
this.lifeMax = lifeMax;
this.viewMc.life_mc.setMask(this.viewMc.lifemask_mc);
lifeMCInit();
}
function lifeMCInit() {
switch (myState) {
case "right_to_left" :
lifeInit = viewMc.life_mc._x - (viewMc.lifemask_mc._width - viewMc.life_mc._width);
viewMc.lifemask_mc._x = lifeInit - ((viewMc.life_mc._width * (mc[lifeMax] - mc[life])) / mc[lifeMax]);
break;
case "left_to_right" :
lifeInit = viewMc.life_mc._x;
viewMc.lifemask_mc._x = lifeInit + ((viewMc.life_mc._width * (mc[lifeMax] - mc[life])) / mc[lifeMax]);
break;
case "up_to_down" :
lifeInit = viewMc.life_mc._y;
viewMc.lifemask_mc._y = (lifeInit + viewMc.life_mc._height) - ((mc[life] * viewMc.life_mc._height) / mc[lifeMax]);
break;
case "down_to_up" :
lifeInit = (viewMc.life_mc._y - viewMc.lifemask_mc._height) + viewMc.life_mc._height;
viewMc.lifemask_mc._y = lifeInit - (viewMc.life_mc._height - ((mc[life] * viewMc.life_mc._height) / mc[lifeMax]));
}
}
function setViewMC(mc) {
viewMc = mc;
}
function update() {
switch (myState) {
case "right_to_left" :
viewMc.lifemask_mc._x = lifeInit - ((viewMc.life_mc._width * (mc[lifeMax] - mc[life])) / mc[lifeMax]);
break;
case "left_to_right" :
viewMc.lifemask_mc._x = lifeInit + ((viewMc.life_mc._width * (mc[lifeMax] - mc[life])) / mc[lifeMax]);
break;
case "up_to_down" :
viewMc.lifemask_mc._y = (lifeInit + viewMc.life_mc._height) - ((mc[life] * viewMc.life_mc._height) / mc[lifeMax]);
break;
case "down_to_up" :
viewMc.lifemask_mc._y = lifeInit - (viewMc.life_mc._height - ((mc[life] * viewMc.life_mc._height) / mc[lifeMax]));
}
}
}
Symbol 899 MovieClip [__Packages.game.SPACESHIP.SpaceShip] Frame 0
class game.SPACESHIP.SpaceShip extends MovieClip
{
var onEnterFrame, the_earth_obj, the_earth, gamerun, _parent, shield, blood_mc, _y, _x, swapDepths, removeMovieClip, _rotation, the_earth_1, roll_gamescene_bar, chongdian, alarm_mc, my_obj, the_earth_1_obj, x_speed, steps, y_speed, chongdian_delay, total_life, life, danger_tip, display_danger_time;
function SpaceShip () {
super();
init();
onEnterFrame = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
this.run();
};
}
function run() {
the_earth_obj = {x:the_earth._x, y:the_earth._y};
gamerun.localToGlobal(the_earth_obj);
_parent.globalToLocal(the_earth_obj);
to_target(the_earth_obj.x, the_earth_obj.y);
if (!_global.fire) {
mouse_control_me();
test_hit_the_earth();
run_recharge_the_spaceship();
}
run_alarm();
}
function hurt(dlife) {
if (shield.life > 0) {
shield.life = shield.life - dlife;
blood_mc.removeMovieClip();
blood_mc = Global.GAME.mPage.attachMovie("Blood", "Blood" + Global.GAME.mPage.getNextHighestDepth(), Global.GAME.mPage.getNextHighestDepth(), {battleunit:this, _xscale:200, _yscale:150});
Global.GAME.mPage.attachMovie("missile_exploder", "missile_exploder" + Global.GAME.mPage.getNextHighestDepth(), Global.GAME.mPage.getNextHighestDepth(), {_x:_x, _y:_y});
Global.playSound("exploder_sound");
return(true);
}
if (shield.life <= 0) {
if (Global.GAME.total_lives >= 1) {
Fade.start();
Global.GAME.total_lives--;
_parent.lives_display_mc.gotoAndStop(Global.GAME.total_lives);
swapDepths(0);
gamerun._x = gamerun.gamerun_old_x;
gamerun._y = gamerun.gamerun_old_y;
_parent.attachMovie("SpaceShip_go", "spaceship", gamerun.spaceship_depth, {_x:gamerun.spaceship_old_x, _y:gamerun.spaceship_old_y});
removeMovieClip();
} else {
Global.GAME.oldlevel = gamerun.stage;
Global.GAME.nScore = gamerun.score;
Global.GAME.total_lives--;
Global.GAME.mPage.attachMovie("missile_exploder", "missile_exploder" + Global.GAME.mPage.getNextHighestDepth(), Global.GAME.mPage.getNextHighestDepth(), {_x:_x, _y:_y});
Global.playSound("exploder_sound");
_parent.lives_display_mc.gotoAndStop(Global.GAME.total_lives);
swapDepths(0);
removeMovieClip();
Global.GAME.goto("gameover");
}
}
return(true);
}
function to_target(x, y) {
var _local3 = x - _x;
var _local4 = y - _y;
var _local2 = Math.atan2(_local4, _local3);
_rotation = _local2 * a_to_r;
}
function init_replace_long_name() {
the_earth = _parent.gamerun.the_earth;
the_earth_1 = _parent.gamerun.the_earth_1;
roll_gamescene_bar = _parent.roll_gamescene_bar;
gamerun = _parent.gamerun;
chongdian = gamerun.chongdian;
alarm_mc = _parent.alarm_mc;
}
function init() {
init_replace_long_name();
init_new_ones();
init_put_value_to_variable();
}
function init_new_ones() {
my_obj = new Object();
the_earth_obj = new Object();
the_earth_1_obj = new Object();
}
function mouse_control_me() {
var _local2 = _parent._xmouse - _x;
var _local3 = _parent._ymouse - _y;
x_speed = Math.round(_local2 / steps);
y_speed = Math.round(_local3 / steps);
_x = _x + x_speed;
_y = _y + y_speed;
}
function launch_beam() {
}
function test_hit_the_earth() {
the_earth_1_obj = {x:the_earth_1._x, y:the_earth_1._y};
the_earth_1._parent.localToGlobal(the_earth_1_obj);
_parent.globalToLocal(the_earth_1_obj);
var _local2 = the_earth_1_obj.x - _x;
var _local3 = the_earth_1_obj.y - _y;
if (((_local2 * _local2) + (_local3 * _local3)) <= ((the_earth_1._width / 2) * (the_earth_1._width / 2))) {
Global.GAME.mPage.attachMovie("missile_exploder", "missile_exploder" + Global.GAME.mPage.getNextHighestDepth(), Global.GAME.mPage.getNextHighestDepth(), {_x:_x, _y:_y});
Global.playSound("exploder_sound");
if (Global.GAME.total_lives >= 1) {
Fade.start();
Global.GAME.total_lives--;
_parent.lives_display_mc.gotoAndStop(Global.GAME.total_lives);
_x = gamerun.spaceship_old_x;
_y = gamerun.spaceship_old_y;
gamerun._x = gamerun.gamerun_old_x;
gamerun._y = gamerun.gamerun_old_y;
} else {
Global.GAME.oldlevel = gamerun.stage;
Global.GAME.nScore = gamerun.score;
Global.GAME.total_lives--;
_parent.lives_display_mc.gotoAndStop(Global.GAME.total_lives);
Global.GAME.goto("gameover");
swapDepths(0);
removeMovieClip();
}
}
}
function init_put_value_to_variable() {
steps = game.Middle_Station.spaceship_move_stepsArr[game.Middle_Station.spaceship_move_stepsArr_Id];
chongdian_delay = 30;
total_life = 100;
life = total_life;
danger_tip = false;
display_danger_time = 150;
alarm_mc._visible = false;
}
function roll_game_scene() {
}
function run_recharge_the_spaceship() {
if (chongdian.hitTest(_root._xmouse, _root._ymouse, true) && (chongdian.hitTest(_parent))) {
blood_mc = Global.GAME.mPage.attachMovie("Blood", "Blood" + Global.GAME.mPage.getNextHighestDepth(), Global.GAME.mPage.getNextHighestDepth(), {battleunit:this, _xscale:200, _yscale:150});
if (shield.life >= shield.total_life) {
blood_mc.removeMovieClip();
shield.life = shield.total_life;
chongdian.gotoAndStop("common");
return(undefined);
}
chongdian.gotoAndStop("chongdian");
if ((--chongdian_delay) <= 0) {
chongdian_delay = 30;
shield.life = shield.life + 10;
}
} else {
chongdian.gotoAndStop("common");
}
}
function run_alarm() {
if (shield.life <= (shield.total_life * 0.1)) {
danger_tip = true;
}
if (shield.life > (shield.total_life * 0.1)) {
display_danger_time = 60;
}
if (danger_tip) {
alarm_mc._visible = true;
if ((--display_danger_time) <= 0) {
alarm_mc._visible = false;
danger_tip = false;
}
}
}
var r_to_a = (Math.PI/180);
var a_to_r = 57.2957795130823;
}
Symbol 900 MovieClip [__Packages.Fade] Frame 0
class Fade
{
function Fade () {
}
static function start() {
var _local10 = false;
var _local7 = Stage.width;
var _local9 = Stage.height;
var _local12 = 0;
var _local11 = 0;
var _local5 = new flash.display.BitmapData(_local7, _local9, false, nColor);
_local5.draw(_root);
var _local8 = _root.getNextHighestDepth();
var _local3 = _root.createEmptyMovieClip("mClip_root" + _local8, _local8);
var _local4 = _local3.createEmptyMovieClip("mClip_mask", 0);
var _local6 = _local3.createEmptyMovieClip("mClip_bmp", 1);
_local6.attachBitmap(_local5, 0);
_local3.nT = nInterval;
_local10 && (disableBtn(_local3));
_local3.bmpRoot = _local5;
_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 = _local7);
(_local4._height = _local9);
(_local4._x = _local12);
(_local4._y = _local11);
_local6.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 901 MovieClip [__Packages.game.HUMAN.Human] Frame 0
class game.HUMAN.Human extends MovieClip
{
var onEnterFrame, the_earth, _parent, circle_1, circle_2, beam, spaceship, end_point, gamerun, human_inter, human_out, beam_obj, spaceship_obj, me_obj, hit_obj, end_point_obj, test_beam_point_obj, coins_array, temp_me_obj, new_obj, the_earth_radius, circle_1_radius, circle_2_radius, visible_delay, up_speed, me_index, turn_way, limit_run_one_time, hit_the_beam, encircling_the_earth, in_the_spaceship, run_one_time, _visible, visible_run_one, me_speed, test_beam_point, localToGlobal, _yscale, _y, _x, hit_point, _rotation, human_the_beam_angle, swapDepths, removeMovieClip, my_coins;
function Human () {
super();
init();
onEnterFrame = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
this.run();
};
}
function init() {
init_replace_long_name();
init_new_ones();
init_put_value_to_variable();
}
function init_replace_long_name() {
the_earth = _parent._parent.the_earth;
circle_1 = _parent._parent.circle_1;
circle_2 = _parent._parent.circle_2;
beam = Global.GAME.mPage.spaceship.beam;
spaceship = Global.GAME.mPage.spaceship;
end_point = _root.end_point;
gamerun = Global.GAME.mPage.gamerun;
human_inter = _parent;
human_out = _parent;
}
function init_new_ones() {
beam_obj = new Object();
spaceship_obj = new Object();
me_obj = new Object();
hit_obj = new Object();
end_point_obj = new Object();
test_beam_point_obj = new Object();
coins_array = [20, 25, 30, 35, 40];
temp_me_obj = new Object();
new_obj = new Object();
}
function init_put_value_to_variable() {
put_value_to_variable_father();
put_value_to_variable_son();
}
function put_value_to_variable_father() {
the_earth_radius = the_earth._width / 2;
circle_1_radius = circle_1._width / 2;
circle_2_radius = circle_2._width / 2;
visible_delay = 15;
up_speed = game.Middle_Station.human_up_speedArr[game.Middle_Station.human_up_speedArr_Id];
if (_parent._name == "human_inter") {
COMMON_USE.CommonUse_Move.angle_array.push(COMMON_USE.CommonUse_Data.between_AB_angle(circle_1, this));
} else if (_parent._name == "human_out") {
COMMON_USE.CommonUse_Move.angle_array.push(COMMON_USE.CommonUse_Data.between_AB_angle(circle_2, this));
}
me_index = COMMON_USE.CommonUse_Move.angle_array.length - 1;
turn_way = false;
limit_run_one_time = false;
hit_the_beam = false;
encircling_the_earth = true;
in_the_spaceship = false;
run_one_time = true;
_visible = false;
visible_run_one = false;
}
function put_value_to_variable_son() {
}
function run() {
if (!visible_run_one) {
if ((--visible_delay) <= 0) {
_visible = true;
visible_run_one = false;
}
}
if (encircling_the_earth) {
run_cirle_movement();
run_visible();
run_AI();
}
run_hit_the_beam();
}
function run_cirle_movement() {
if (_parent._name == "human_inter") {
COMMON_USE.CommonUse_Move.several_cirles_movement(circle_1._x, circle_1._y, circle_1_radius, me_index, me_speed, this);
COMMON_USE.CommonUse_Move.B_rotate_to_A(circle_1, this);
} else if (_parent._name == "human_out") {
COMMON_USE.CommonUse_Move.several_cirles_movement(circle_2._x, circle_2._y, circle_2_radius, me_index, me_speed, this);
COMMON_USE.CommonUse_Move.B_rotate_to_A(circle_2, this);
}
}
function run_AI() {
spaceship_obj = {x:spaceship._x, y:spaceship._y};
Global.GAME.mPage.localToGlobal(spaceship_obj);
_parent.globalToLocal(spaceship_obj);
if (_visible) {
if (beam.hit_the_earth) {
test_beam_point_obj = {x:test_beam_point._x, y:test_beam_point._y};
localToGlobal(test_beam_point_obj);
if (beam.hitTest(test_beam_point_obj.x, test_beam_point_obj.y, true) && (!limit_run_one_time)) {
limit_run_one_time = true;
turn_way = true;
}
} else {
limit_run_one_time = false;
}
if (turn_way) {
turn_way = !turn_way;
me_speed = me_speed * -1;
_yscale = _yscale * -1;
}
}
}
function run_visible() {
me_obj = {x:_x, y:_y};
_parent.localToGlobal(me_obj);
if ((((me_obj.x >= Stage.width) || (me_obj.x <= 0)) || (me_obj.y >= Stage.height)) || (me_obj.y <= 0)) {
_visible = false;
} else {
_visible = true;
}
}
function run_hit_the_beam() {
if (_global.fire) {
hit_obj = {x:hit_point._x, y:hit_point._y};
localToGlobal(hit_obj);
if ((beam.hitTest(hit_obj.x, hit_obj.y, true) && (!hit_the_beam)) && (beam._alpha >= 15)) {
_global.hit_beam_human_num = _global.hit_beam_human_num + 1;
if (_global.hit_beam_human_num == 2) {
_global.catch_two = true;
_global.catch_three = false;
} else if (_global.hit_beam_human_num == 3) {
_global.catch_two = false;
_global.catch_three = true;
}
_global.kidnapping = true;
encircling_the_earth = false;
hit_the_beam = true;
end_point_obj = {x:end_point._x, y:end_point._y};
_parent.globalToLocal(end_point_obj);
_x = end_point_obj.x;
_y = end_point_obj.y;
_rotation = spaceship._rotation;
}
if (hit_the_beam) {
human_the_beam_angle = beam.current_angle;
var _local4 = up_speed * Math.cos(human_the_beam_angle);
var _local3 = up_speed * Math.sin(human_the_beam_angle);
_x = _x - _local4;
_y = _y - _local3;
if (spaceship.hit_point.hitTest(hit_obj.x, hit_obj.y, true)) {
in_the_spaceship = true;
_visible = false;
exterior_game_element();
if (run_one_time) {
run_one_time = false;
_global.hit_beam_human_num = _global.hit_beam_human_num - 1;
}
}
}
if (in_the_spaceship) {
swapDepths(0);
removeMovieClip();
}
}
}
function exterior_game_element() {
if ((!_global.catch_two) && (!_global.catch_three)) {
gamerun.coins = gamerun.coins + my_coins;
gamerun.score = gamerun.score + Math.round(my_coins * 1.2);
gamerun.level_score = gamerun.level_score + Math.round(my_coins * 1.2);
gamerun.level_coins = gamerun.level_coins + my_coins;
gamerun.level_human_num++;
trace(" gamerun.level_human_num " + gamerun.level_human_num);
game.Middle_Station.total_human_kidnapped_num++;
Global.GAME.mPage.attachMovie("num_mc", "num_mc" + Global.GAME.mPage.getNextHighestDepth(), Global.GAME.mPage.getNextHighestDepth(), {_x:spaceship._x + 10, _y:spaceship._y - 30, txt:my_coins});
}
if (_global.catch_two && (!_global.catch_three)) {
gamerun.coins = gamerun.coins + (my_coins * 2);
gamerun.score = gamerun.score + Math.round(my_coins * 2.4);
gamerun.level_score = gamerun.level_score + Math.round(my_coins * 2.4);
gamerun.level_coins = gamerun.level_coins + (my_coins * 2);
gamerun.level_human_num++;
trace(" gamerun.level_human_num " + gamerun.level_human_num);
game.Middle_Station.total_human_kidnapped_num++;
Global.GAME.mPage.attachMovie("num_mc_2", "num_mc_2" + Global.GAME.mPage.getNextHighestDepth(), Global.GAME.mPage.getNextHighestDepth(), {_x:spaceship._x, _y:spaceship._y - 30, txt:my_coins});
}
if (_global.catch_three && (!_global.catch_two)) {
gamerun.coins = gamerun.coins + (my_coins * 3);
gamerun.score = gamerun.score + Math.round(my_coins * 3.6);
gamerun.level_score = gamerun.level_score + Math.round(my_coins * 3.6);
gamerun.level_coins = gamerun.level_coins + (my_coins * 3);
gamerun.level_human_num++;
game.Middle_Station.total_human_kidnapped_num++;
trace(" gamerun.level_human_num " + gamerun.level_human_num);
Global.GAME.mPage.attachMovie("num_mc_3", "num_mc_3" + Global.GAME.mPage.getNextHighestDepth(), Global.GAME.mPage.getNextHighestDepth(), {_x:spaceship._x, _y:spaceship._y - 30, txt:my_coins});
}
_global.be_kidnapped_human_num--;
}
}
Symbol 902 MovieClip [__Packages.COMMON_USE.CommonUse_Move] Frame 0
class COMMON_USE.CommonUse_Move extends MovieClip
{
static var angle, angle_array;
function CommonUse_Move () {
super();
}
static function single_cirle_movement(centerX, centerY, radius, speed, who) {
who._x = centerX + (Math.cos(angle) * radius);
who._y = centerY + (Math.sin(angle) * radius);
}
static function several_cirles_movement(centerX, centerY, radius, i, speed, who) {
who._x = centerX + (Math.cos(angle_array[i]) * radius);
who._y = centerY + (Math.sin(angle_array[i]) * radius);
angle_array[i] = angle_array[i] + speed;
}
static function B_rotate_to_A(A, B) {
var _local2 = Math.atan2(A._y - B._y, A._x - B._x);
B._rotation = _local2 * 57.2957795130823;
}
}
Symbol 903 MovieClip [__Packages.COMMON_USE.CommonUse_Data] Frame 0
class COMMON_USE.CommonUse_Data
{
static var a_to_r, r_to_a;
function CommonUse_Data () {
init();
}
function init() {
init_new_ones();
init_put_value_to_variable();
}
function init_replace_long_name() {
}
function init_new_ones() {
}
function init_put_value_to_variable() {
a_to_r = (Math.PI/180);
r_to_a = 57.2957795130823;
}
static function radian_to_angle(r) {
return(r * r_to_a);
}
static function angle_to_radian(a) {
return(a * a_to_r);
}
static function between_AB_angle(A, B) {
return(Math.atan2(A._y - B._y, A._x - B._x));
}
}
Symbol 904 MovieClip [__Packages.game.HUMAN.Woman] Frame 0
class game.HUMAN.Woman extends game.HUMAN.Human
{
var coins_array_Id, my_coins, coins_array, me_speed;
function Woman () {
super();
}
function put_value_to_variable_son() {
coins_array_Id = 1;
my_coins = coins_array[coins_array_Id];
me_speed = 0.005;
}
}
Symbol 905 MovieClip [__Packages.game.Roll_GameScene_Bar] Frame 0
class game.Roll_GameScene_Bar extends MovieClip
{
var onEnterFrame, gamerun, _parent, spaceship, the_earth, mc, roll_speed, spaceship_obj, hitTest, xroll_speed, two_angle, yroll_speed;
function Roll_GameScene_Bar () {
super();
init();
onEnterFrame = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
this.run();
};
}
function init() {
init_replace_long_name();
init_put_value_to_variable();
init_new_ones();
}
function init_replace_long_name() {
gamerun = _parent.gamerun;
spaceship = _parent.spaceship;
the_earth = gamerun.the_earth;
mc = _parent.mc;
}
function init_put_value_to_variable() {
roll_speed = 5;
}
function init_new_ones() {
spaceship_obj = new Object();
}
function run() {
if (_global.fire) {
return(undefined);
}
if (hitTest(_root._xmouse, _root._ymouse, true)) {
do_two_angle();
xroll_speed = roll_speed * Math.cos(two_angle);
yroll_speed = roll_speed * Math.sin(two_angle);
gamerun._x = gamerun._x - xroll_speed;
gamerun._y = gamerun._y - yroll_speed;
if (gamerun._x <= -10) {
gamerun._x = -10;
} else if (gamerun._x >= 628) {
gamerun._x = 628;
}
if (gamerun._y >= 40) {
gamerun._y = 40;
} else if (gamerun._y <= -639) {
gamerun._y = -639;
}
}
}
function do_two_angle() {
var _local2 = spaceship._x - mc._x;
var _local3 = spaceship._y - mc._y;
two_angle = Math.atan2(_local3, _local2);
}
function key_roll_gamescene() {
if (Key.isDown(65)) {
gamerun._x = gamerun._x + 10;
} else if (Key.isDown(68)) {
gamerun._x = gamerun._x - 10;
} else if (Key.isDown(87)) {
gamerun._y = gamerun._y + 10;
} else if (Key.isDown(83)) {
gamerun._y = gamerun._y - 10;
}
}
}
Symbol 906 MovieClip [__Packages.game.SHOP.Shop_Goods_Button_2] Frame 0
class game.SHOP.Shop_Goods_Button_2 extends MovieClip
{
var _parent, onEnterFrame, colorfulArr, filters, greyArr, onErrorPress, next_level, _name, old_lv, pic, price_Array, price_Array_Id, price;
function Shop_Goods_Button_2 () {
super();
init();
_parent.display_property.gotoAndStop("main_page");
onEnterFrame = function () {
this.lv = this.old_lv;
this.control_pic_color();
};
}
function init() {
init_filter();
init_put_value_to_variable();
init_number();
goods_price();
buying_goods();
}
function init_filter() {
colorfulArr = filters.slice();
greyArr = filters.slice();
greyArr.push(new flash.filters.ColorMatrixFilter([0.3, 0.59, 0.11, 0, 0, 0.3, 0.59, 0.11, 0, 0, 0.3, 0.59, 0.11, 0, 0, 0, 0, 0, 1, 0]));
onErrorPress = function (Void) {
trace("\u975E\u6CD5\u70B9\u51FB");
};
}
function init_new() {
next_level = _parent.next_level;
}
function init_put_value_to_variable() {
switch (_name) {
case "buy_beam_speed" :
old_lv = Global.GAME.buy_beam_speed_lv;
break;
case "buy_beam_range" :
trace(" Global.GAME.buy_beam_range_lv " + Global.GAME.buy_beam_range_lv);
old_lv = Global.GAME.buy_beam_range_lv;
trace(" old_lv " + old_lv);
break;
case "buy_beam_electricity" :
old_lv = Global.GAME.buy_add_beam_life_lv;
break;
case "buy_spaceship_speed" :
old_lv = Global.GAME.buy_spaceship_speed_lv;
break;
case "buy_spaceship_shield" :
old_lv = Global.GAME.buy_spaceship_shield_lv;
}
}
function bought_goods() {
switch (_name) {
case "buy_beam_speed" :
Global.GAME.buy_beam_speed_lv = old_lv;
game.Middle_Station.beam_speedArr_Id++;
game.Middle_Station.human_up_speedArr_Id++;
break;
case "buy_beam_range" :
Global.GAME.buy_beam_range_lv = old_lv;
game.Middle_Station.beam_rangeArr_Id++;
break;
case "buy_beam_electricity" :
Global.GAME.buy_add_beam_life_lv = old_lv;
game.Middle_Station.add_beam_lifeArr_Id++;
break;
case "buy_spaceship_speed" :
Global.GAME.buy_spaceship_speed_lv = old_lv;
game.Middle_Station.spaceship_move_stepsArr_Id++;
break;
case "buy_spaceship_shield" :
Global.GAME.buy_spaceship_shield_lv = old_lv;
game.Middle_Station.shield_lifeArr_Id++;
}
}
function goods_price() {
switch (_name) {
case "buy_beam_speed" :
pic.gotoAndStop("beam_speed");
switch (_global.difficulty) {
case "easy" :
price_Array = [100, 120, 160, 220, 300, 400, 520, 640, 800, 980, 1080];
break;
case "normal" :
price_Array = [200, 220, 260, 320, 400, 500, 620, 740, 900, 1080, 1180];
break;
case "hard" :
price_Array = [300, 320, 360, 420, 500, 600, 720, 840, 1000, 1180, 1380];
}
price_Array_Id = old_lv;
price = price_Array[price_Array_Id];
break;
case "buy_beam_range" :
pic.gotoAndStop("beam_range");
switch (_global.difficulty) {
case "easy" :
price_Array = [100, 120, 160, 220, 300, 400, 520, 640, 800, 980, 1080];
break;
case "normal" :
price_Array = [200, 220, 260, 320, 400, 500, 620, 740, 900, 1080, 1180];
break;
case "hard" :
price_Array = [300, 320, 360, 420, 500, 600, 720, 840, 1000, 1180, 1380];
}
price_Array_Id = old_lv;
price = price_Array[price_Array_Id];
break;
case "buy_beam_electricity" :
pic.gotoAndStop("beam_electricity");
switch (_global.difficulty) {
case "easy" :
price_Array = [100, 120, 160, 220, 300, 400, 520, 640, 800, 980, 1080];
break;
case "normal" :
price_Array = [200, 220, 260, 320, 400, 500, 620, 740, 900, 1080, 1180];
break;
case "hard" :
price_Array = [300, 320, 360, 420, 500, 600, 720, 840, 1000, 1180, 1380];
}
price_Array_Id = old_lv;
price = price_Array[price_Array_Id];
break;
case "buy_spaceship_speed" :
pic.gotoAndStop("spaceship_speed");
switch (_global.difficulty) {
case "easy" :
price_Array = [100, 120, 160, 220, 300, 400, 520, 640, 800, 980, 1080];
break;
case "normal" :
price_Array = [200, 220, 260, 320, 400, 500, 620, 740, 900, 1080, 1180];
break;
case "hard" :
price_Array = [300, 320, 360, 420, 500, 600, 720, 840, 1000, 1180, 1380];
}
price_Array_Id = old_lv;
price = price_Array[price_Array_Id];
break;
case "buy_spaceship_shield" :
pic.gotoAndStop("spaceship_shield");
switch (_global.difficulty) {
case "easy" :
price_Array = [100, 120, 160, 220, 300, 400, 520, 640, 800, 980, 1080];
break;
case "normal" :
price_Array = [200, 220, 260, 320, 400, 500, 620, 740, 900, 1080, 1180];
break;
case "hard" :
price_Array = [300, 320, 360, 420, 500, 600, 720, 840, 1000, 1180, 1380];
}
price_Array_Id = old_lv;
price = price_Array[price_Array_Id];
}
}
function buying_goods() {
pic.onPress = function () {
this.price_Array_Id = this._parent.old_lv;
this._parent.price = this._parent.price_Array[this.price_Array_Id];
if ((Global.GAME.nCoins >= this._parent.price) && (this._parent.old_lv < 9)) {
Global.GAME.nCoins = Global.GAME.nCoins - this._parent.price;
this._parent.old_lv++;
this._parent.bought_goods();
this.price_Array_Id = this._parent.old_lv;
this._parent.price = this._parent.price_Array[this.price_Array_Id];
}
};
pic.onRollOver = function () {
switch (this._parent._name) {
case "buy_beam_speed" :
this._parent._parent.display_property.gotoAndStop("beam_speed");
break;
case "buy_beam_range" :
this._parent._parent.display_property.gotoAndStop("beam_range");
break;
case "buy_beam_electricity" :
this._parent._parent.display_property.gotoAndStop("beam_electricity");
break;
case "buy_spaceship_speed" :
this._parent._parent.display_property.gotoAndStop("spaceship_speed");
break;
case "buy_spaceship_shield" :
this._parent._parent.display_property.gotoAndStop("spaceship_shield");
}
};
_parent.ground.onRollOver = function () {
this.useHandCursor = false;
this._parent.display_property.gotoAndStop("main_page");
};
}
function init_number() {
}
function control_pic_color() {
if ((Global.GAME.nCoins >= price) && (old_lv < 9)) {
filters = colorfulArr;
} else {
filters = greyArr;
}
}
}
Symbol 907 MovieClip [__Packages.page.Page] Frame 0
class page.Page extends MovieClip
{
var removeMovieClip, attachMovie, getNextHighestDepth;
function Page () {
super();
}
function remove() {
removeMovieClip();
}
function addMenu_btn() {
return(attachMovie("common.Btn", "btMenu", getNextHighestDepth(), {_x:Global.WIDTH - 20, _y:getY(), sTxt:"MENU", sAutoSize:"right"}));
}
static function getX(_n) {
if (_n < 5) {
return(Global.WIDTH / 2);
}
return(20);
}
static function getY(_n) {
if (isNaN(_n)) {
return(Global.HEIGHT - nY_end);
}
if (_n == 0) {
return(nY_title);
}
return((_n * nDy_btn) + nY_title);
}
static var nY_title = 50;
static var nY_end = 50;
static var nDy_btn = 50;
}
Symbol 908 MovieClip [__Packages.page.Page_Upgrade_Store] Frame 0
class page.Page_Upgrade_Store extends page.Page
{
var next_level, previous_money, interest_rate, interest_earned, onEnterFrame, _parent, current_money;
function Page_Upgrade_Store () {
super();
next_level.onPress = function () {
Global.GAME.nextLevel();
};
next_level.gotoAndStop("common");
next_level.onRollOver = function () {
this.gotoAndStop("roll_over");
};
next_level.onRollOut = function () {
this.gotoAndStop("common");
};
previous_money.num = game.Middle_Station.level_coins;
switch (_global.difficulty) {
case "easy" :
interest_rate.num = "3%";
interest_earned.num = game.Middle_Station.level_coins * 0.03;
Global.GAME.nCoins = Global.GAME.nCoins + (game.Middle_Station.level_coins * 0.03);
break;
case "normal" :
interest_rate.num = "2%";
interest_earned.num = game.Middle_Station.level_coins * 0.02;
Global.GAME.nCoins = Global.GAME.nCoins + (game.Middle_Station.level_coins * 0.02);
break;
case "hard" :
interest_rate.num = "1%";
interest_earned.num = game.Middle_Station.level_coins * 0.01;
Global.GAME.nCoins = Global.GAME.nCoins + (game.Middle_Station.level_coins * 0.01);
}
onEnterFrame = function () {
this.test_coins();
};
}
function TEST() {
if (Key.isDown(37)) {
Global.GAME.nCoins = Global.GAME.nCoins - 50;
_parent.coins = Global.GAME.nCoins;
} else if (Key.isDown(39)) {
Global.GAME.nCoins = Global.GAME.nCoins + 50;
_parent.coins = Global.GAME.nCoins;
}
}
function test_coins() {
current_money.num = Global.GAME.nCoins;
}
}
Symbol 909 MovieClip [__Packages.game.HUMAN.Oldster] Frame 0
class game.HUMAN.Oldster extends game.HUMAN.Human
{
var coins_array_Id, my_coins, coins_array, me_speed;
function Oldster () {
super();
}
function put_value_to_variable_son() {
coins_array_Id = 0;
my_coins = coins_array[coins_array_Id];
me_speed = 0.004;
}
}
Symbol 910 MovieClip [__Packages.game.HUMAN.Fat_Man] Frame 0
class game.HUMAN.Fat_Man extends game.HUMAN.Human
{
var coins_array_Id, my_coins, coins_array, me_speed;
function Fat_Man () {
super();
}
function put_value_to_variable_son() {
coins_array_Id = 2;
my_coins = coins_array[coins_array_Id];
me_speed = 0.008;
}
}
Symbol 911 MovieClip [__Packages.game.HUMAN.Black_Fat_Man] Frame 0
class game.HUMAN.Black_Fat_Man extends game.HUMAN.Human
{
var coins_array_Id, my_coins, coins_array, me_speed;
function Black_Fat_Man () {
super();
}
function put_value_to_variable_son() {
coins_array_Id = 2;
my_coins = coins_array[coins_array_Id];
me_speed = 0.008;
}
}
Symbol 912 MovieClip [__Packages.game.HUMAN.Mliddlelife_Man] Frame 0
class game.HUMAN.Mliddlelife_Man extends game.HUMAN.Human
{
var coins_array_Id, my_coins, coins_array, me_speed;
function Mliddlelife_Man () {
super();
}
function put_value_to_variable_son() {
coins_array_Id = 3;
my_coins = coins_array[coins_array_Id];
me_speed = 0.015;
}
}
Symbol 913 MovieClip [__Packages.game.POWERUP.MISSILE.Missile] Frame 0
class game.POWERUP.MISSILE.Missile extends MovieClip
{
var onEnterFrame, top_obj, top, localToGlobal, spaceship, power, type_id, _parent, old_rotation, old_y, old_x, swapDepths, removeMovieClip, guided_missile, gamerun, _x, _y, _rotation, launched, _visible, fly_time;
function Missile () {
super();
init_father();
onEnterFrame = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
this.run();
};
}
function run() {
hit_spaceship();
remove_me();
}
function init_father() {
init_new_ones_father();
init_replace_long_name_father();
init_put_value_to_variable();
}
function init_new_ones_father() {
top_obj = new Object();
}
function hit_spaceship() {
top_obj = {x:top._x, y:top._y};
localToGlobal(top_obj);
if (spaceship.hit_point.hitTest(top_obj.x, top_obj.y)) {
spaceship.hurt(power);
switch (type_id) {
case "guided_missile" :
_parent.attachMovie("single_guided_missile", "single_guided_missile" + _parent.getNextHighestDepth(), _parent.getNextHighestDepth(), {_x:old_x, _y:old_y, _rotation:old_rotation});
break;
case "vertical_missile" :
_parent.attachMovie("vertical_missile", "vertical_missile" + _parent.getNextHighestDepth(), _parent.getNextHighestDepth(), {_x:old_x, _y:old_y, _rotation:old_rotation});
}
_root.attachMovie("missile_exploder", "missile_exploder" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:top_obj.x, _y:top_obj.y});
Global.playSound("exploder_sound");
swapDepths(0);
removeMovieClip();
}
}
function init_replace_long_name_father() {
spaceship = Global.GAME.mPage.spaceship;
guided_missile = Global.GAME.mPage.gamerun.guided_missile;
gamerun = Global.GAME.mPage.gamerun;
}
function init_put_value_to_variable() {
power = 25;
old_x = _x;
old_y = _y;
old_rotation = _rotation;
launched = false;
_visible = false;
}
function remove_me() {
if ((--fly_time) <= 0) {
swapDepths(0);
switch (type_id) {
case "guided_missile" :
_parent.attachMovie("single_guided_missile", "single_guided_missile" + _parent.getNextHighestDepth(), _parent.getNextHighestDepth(), {_x:old_x, _y:old_y, _rotation:old_rotation});
break;
case "vertical_missile" :
_parent.attachMovie("vertical_missile", "vertical_missile" + _parent.getNextHighestDepth(), _parent.getNextHighestDepth(), {_x:old_x, _y:old_y, _rotation:old_rotation});
}
_root.attachMovie("missile_exploder", "missile_exploder" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:top_obj.x, _y:top_obj.y});
Global.playSound("exploder_sound");
removeMovieClip();
}
}
}
Symbol 914 MovieClip [__Packages.game.POWERUP.MISSILE.Vertical_Missile] Frame 0
class game.POWERUP.MISSILE.Vertical_Missile extends game.POWERUP.MISSILE.Missile
{
var huhu, _parent, fly_time, onEnterFrame, spaceship_obj, launch_missile, type_id, gamerun, speed, launch_delay, spaceship, xdis, _x, ydis, _y, dis, _visible, angle, _rotation, vx, vy;
function Vertical_Missile () {
super();
init_me();
huhu = _parent.huhu;
fly_time = 120;
onEnterFrame = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
this.run_1();
};
}
function init_me() {
init_new_ones_me();
init_put_value_to_variable_me();
}
function init_new_ones_me() {
spaceship_obj = new Object();
}
function init_put_value_to_variable_me() {
launch_missile = false;
type_id = "vertical_missile";
if (((gamerun.stage == 1) || (gamerun.stage == 2)) || (gamerun.stage == 3)) {
speed = 4;
} else if (((gamerun.stage == 4) || (gamerun.stage == 5)) || (gamerun.stage == 6)) {
speed = 5;
} else if ((((gamerun.stage == 7) || (gamerun.stage == 8)) || (gamerun.stage == 9)) || (gamerun.stage == 10)) {
speed = 6;
}
launch_delay = 20;
}
function run_1() {
if (launch_missile) {
super.run();
if ((--launch_delay) <= 0) {
launch_me();
}
} else {
test_spaceship();
}
}
function test_spaceship() {
spaceship_obj = {x:spaceship._x, y:spaceship._y};
spaceship._parent.localToGlobal(spaceship_obj);
_parent.globalToLocal(spaceship_obj);
xdis = _x - spaceship_obj.x;
ydis = _y - spaceship_obj.y;
dis = (xdis * xdis) + (ydis * ydis);
if (Math.abs(dis) <= 90000) {
launch_missile = true;
_visible = true;
}
}
function launch_me() {
angle = _rotation * (Math.PI/180);
vx = speed * Math.cos(angle);
vy = speed * Math.sin(angle);
_x = _x + vx;
_y = _y + vy;
}
var meme = 60;
}
Symbol 915 MovieClip [__Packages.game.POWERUP.MISSILE.Guided_Missile_DifferentTimeLine] Frame 0
class game.POWERUP.MISSILE.Guided_Missile_DifferentTimeLine extends game.POWERUP.MISSILE.Missile
{
var target, gamerun, fly_time, M_speed, onEnterFrame, target_obj, lauch_missile, launch_delay, type_id, _parent, _x, _y, P, top, localToGlobal, _rotation, _visible;
function Guided_Missile_DifferentTimeLine () {
super();
init();
target = Global.GAME.mPage.spaceship;
if (((gamerun.stage == 1) || (gamerun.stage == 2)) || (gamerun.stage == 3)) {
fly_time = 60;
M_speed = 2;
} else if ((((gamerun.stage == 4) || (gamerun.stage == 5)) || (gamerun.stage == 6)) || (gamerun.stage == 7)) {
fly_time = 90;
M_speed = 3;
} else if (((gamerun.stage == 8) || (gamerun.stage == 9)) || (gamerun.stage == 10)) {
fly_time = 120;
M_speed = 4;
}
onEnterFrame = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
this.run();
};
}
function init() {
target_obj = new Object();
lauch_missile = false;
launch_delay = 15;
type_id = "guided_missile";
}
function run() {
if (lauch_missile) {
super.run();
if ((--launch_delay) <= 0) {
launch_me();
}
} else {
test_the_spaceship();
}
}
function launch_me() {
tempNum++;
target_obj = {x:target._x, y:target._y};
target._parent.localToGlobal(target_obj);
_parent.globalToLocal(target_obj);
if (tempNum == 15) {
if (stepAngle == 2) {
if ((Math.abs(target_obj.x - _x) > (radius * 2)) || (Math.abs(target_obj.y - _y) > (radius * 2))) {
stepAngle = 3;
}
} else if ((Math.abs(target_obj.x - _x) < 30) || (Math.abs(target_obj.y - _y) < 30)) {
stepAngle = 2;
}
tempNum = 0;
}
P = new Object();
P.x = top._x;
P.y = top._y;
localToGlobal(P);
_parent.globalToLocal(P);
var _local5 = P.x - _x;
var _local4 = P.y - _y;
var _local7 = target_obj.x - P.x;
var _local6 = target_obj.y - P.y;
var _local2 = (Math.atan2(_local6, _local7) * 180) / Math.PI;
_local2 = ((_local2 <= 0) ? (Math.abs(360 + _local2)) : (_local2));
var _local3 = ((_rotation < 0) ? (360 + _rotation) : (_rotation));
if (Math.abs(_local3 - _local2) > stepAngle) {
if ((_local2 - _local3) > 180) {
_local3 = _local3 + (-stepAngle);
} else {
_local3 = _local3 + (((_local2 < _local3) && ((_local3 - _local2) < 180)) ? (-stepAngle) : (stepAngle));
}
_rotation = _local3;
}
_x = _x + ((_local5 * M_speed) / 10);
_y = _y + ((_local4 * M_speed) / 10);
}
function test_the_spaceship() {
target_obj = {x:target._x, y:target._y};
target._parent.localToGlobal(target_obj);
_parent.globalToLocal(target_obj);
var _local2 = target_obj.x - _x;
var _local3 = target_obj.y - _y;
var _local4 = (_local2 * _local2) + (_local3 * _local3);
if (_local4 <= 90000) {
_visible = true;
lauch_missile = true;
}
}
function this_remove() {
}
var stepAngle = 3;
var tempNum = 0;
var radius = 100;
var delay = 60;
}
Symbol 916 MovieClip [__Packages.game.HUMAN.Black_Man] Frame 0
class game.HUMAN.Black_Man extends game.HUMAN.Human
{
var coins_array_Id, my_coins, coins_array, me_speed;
function Black_Man () {
super();
}
function put_value_to_variable_son() {
coins_array_Id = 4;
my_coins = coins_array[coins_array_Id];
me_speed = 0.02;
}
}
Symbol 917 MovieClip [__Packages.game.GameRun] Frame 0
class game.GameRun extends MovieClip
{
var onEnterFrame, alarm_animation, level_complete_one, gotoAndStop, time_count, old_ge_minute, old_ge_second, old_shi_second, level_score, level_coins, level_human_num, easy_human_num_array, normal_human_num_array, hard_human_num_array, gamerun_old_x, _x, gamerun_old_y, _y, spaceship_old_x, spaceship, spaceship_old_y, spaceship_depth, score_mc, coins_mc, stage_mc, time_mc, display_gameing, guided_missile, lives_display_mc, _parent, human_id, game_human_num, _score, _coins, _stage, level_complete_coins, level_bonuses;
function GameRun () {
super();
init();
set_difficult(_global.difficulty);
onEnterFrame = function () {
if (Global.GAME.mPage.bPause) {
return(undefined);
}
this.run();
};
}
function init() {
COMMON_USE.CommonUse_Move.angle_array = new Array();
init_replace_long_name();
init_put_value_to_variable();
}
function init_new_ones() {
}
function init_put_value_to_variable() {
_global.fire = false;
_global.kidnapping = false;
alarm_animation._visible = false;
_global.catch_two = false;
_global.catch_three = false;
level_complete_one = false;
_global.hit_beam_human_num = 0;
stage = (1);
coins = (Global.GAME.nCoins);
score = (Global.GAME.nScore);
stage = (Global.GAME.oldlevel);
gotoAndStop(stage);
time_count = 30;
old_ge_minute = 1;
old_ge_second = 0;
old_shi_second = 0;
level_score = 0;
level_coins = 0;
level_human_num = 0;
easy_human_num_array = [10, 11, 12, 13, 14, 15, 16, 17, 18, 19];
normal_human_num_array = [15, 16, 17, 18, 19, 20, 21, 22, 23, 24];
hard_human_num_array = [20, 21, 22, 23, 24, 25, 26, 27, 28, 29];
gamerun_old_x = _x;
gamerun_old_y = _y;
spaceship_old_x = spaceship._x;
spaceship_old_y = spaceship._y;
spaceship_depth = spaceship.getDepth();
}
function init_replace_long_name() {
score_mc = Global.GAME.mPage.score_mc;
coins_mc = Global.GAME.mPage.coins_mc;
stage_mc = Global.GAME.mPage.stage_mc;
time_mc = Global.GAME.mPage.time_mc;
alarm_animation = Global.GAME.mPage.alarm_animation;
display_gameing = Global.GAME.mPage.display_gameing;
guided_missile = Global.GAME.mPage.gamerun.guided_missile;
lives_display_mc = _parent.lives_display_mc;
lives_display_mc.gotoAndStop(Global.GAME.total_lives);
spaceship = _parent.spaceship;
}
function set_difficult(difficult) {
human_id = stage - 1;
switch (difficult) {
case "easy" :
_global.be_kidnapped_human_num = easy_human_num_array[human_id];
game_human_num = _global.be_kidnapped_human_num;
display_gameing.target_human_num = game_human_num;
break;
case "normal" :
_global.be_kidnapped_human_num = normal_human_num_array[human_id];
game_human_num = _global.be_kidnapped_human_num;
display_gameing.target_human_num = game_human_num;
break;
case "hard" :
_global.be_kidnapped_human_num = hard_human_num_array[human_id];
game_human_num = _global.be_kidnapped_human_num;
display_gameing.target_human_num = game_human_num;
}
}
function get score() {
return(_score);
}
function set score(__score) {
_score = __score;
score_mc.num = _score;
//return(score);
}
function get coins() {
return(_coins);
}
function set coins(__coins) {
_coins = __coins;
coins_mc.num = _coins;
//return(coins);
}
function get stage() {
return(_stage);
}
function set stage(__stage) {
_stage = __stage;
stage_mc.num = _stage;
//return(stage);
}
function run() {
coins_mc.num = coins;
stage_mc.num = stage;
score_mc.num = score;
test_level_complete();
time_counter();
display_gameing.current_human_num = level_human_num;
if (_global.hit_beam_human_num == 0) {
_global.catch_two = false;
_global.catch_three = false;
}
}
function test_level_complete() {
if ((_global.be_kidnapped_human_num <= 0) && (!level_complete_one)) {
level_complete_one = true;
level_complete_coins = level_coins;
}
if (Global.GAME.total_lives <= 0) {
Global.GAME.nScore = score;
Global.GAME.goto("gameover");
}
if (((old_shi_second == 0) && (old_ge_minute == 0)) && (old_ge_second == 0)) {
if (_global.be_kidnapped_human_num <= 0) {
game.Middle_Station.level_coins = level_coins;
level_bonuses = level_coins - level_complete_coins;
game.Middle_Station.extra_bonuses = level_bonuses;
game.Middle_Station.level_score = level_score;
Global.GAME.nScore = score;
Global.GAME.nCoins = coins;
if (stage <= 9) {
Global.GAME.goto("Level_Win_Animation");
} else {
Global.GAME.goto("gamewin");
}
} else if (Global.GAME.total_lives >= 1) {
Global.GAME.nScore = score;
Global.GAME.goto("gameover_1");
}
}
}
function time_counter() {
time_mc.ge_second = old_ge_second;
time_mc.shi_second = old_shi_second;
time_mc.ge_minute = old_ge_minute;
time_count--;
if (time_count <= 0) {
time_count = 30;
if (old_ge_second == 0) {
if ((old_shi_second == 0) && (old_ge_minute == 0)) {
old_ge_second = 0;
}
old_ge_second = 9;
if (old_shi_second == 0) {
old_shi_second = 5;
old_ge_minute--;
} else {
old_shi_second--;
}
} else {
old_ge_second--;
}
}
if (((old_ge_minute == 0) && (old_shi_second == 1)) && (old_ge_second == 0)) {
alarm_animation._visible = true;
}
}
}
Symbol 918 MovieClip [__Packages.Game] Frame 0
class Game extends MovieClip
{
var _visible, _x, _y, mLogo, mPage, attachMovie, getNextHighestDepth, oldlevel;
function Game () {
super();
}
function get nScore() {
return(__nScore);
}
function set nScore(_nScore) {
__nScore = int(_nScore);
(__nScore < 0) && ((__nScore = 0));
//return(nScore);
}
function get nCoins() {
return(__nCoins);
}
function set nCoins(_nCoins) {
__nCoins = int(_nCoins);
(__nCoins < 0) && ((__nCoins = 0));
//return(nCoins);
}
function inFrame() {
_root.stop();
stopAllSounds();
_visible = false;
_x = (_y = 0);
clearAllMc(_root);
clearAllMc(this);
Global.GAME = this;
Global.SOUND = new Sound(this);
Global.MUSIC = new Sound(_root.createEmptyMovieClip("mMusic", _root.getNextHighestDepth()));
Global.playMusic("sdMusic", 0, 99999);
mLogo._xscale = (mLogo._yscale = 80);
mLogo._x = int((Global.WIDTH - mLogo._width) - 10);
mLogo._y = 10;
mLogo.swapDepths(1);
goto("menu");
_visible = true;
}
function goto(_s) {
if (mPage._name != _s) {
Fade.start();
mPage.remove();
mPage = attachMovie("page.Page_" + _s, _s, 0);
if (_s == "playing") {
mLogo.enabled = false;
} else {
mLogo.enabled = true;
}
}
}
function firstPlay() {
attachMovie("common.PopUp", "PopUp_saveing", getNextHighestDepth(), {sFrame:"message", aSt:["Loading..."], _nTime:40, onEnterFrame:function () {
this._nTime--;
if (this._nTime <= 0) {
Global.SAVE(1, "nTimes_play");
Global.GAME.goto("help");
this.remove();
}
}});
}
function newGame() {
game.Middle_Station.total_human_kidnapped_num = 0;
total_lives = 3;
nScore = (0);
nCoins = (0);
oldlevel = 1;
buy_beam_speed_lv = 0;
buy_beam_range_lv = 0;
buy_add_beam_life_lv = 0;
buy_spaceship_speed_lv = 0;
buy_spaceship_shield_lv = 0;
game.Middle_Station.beam_speedArr_Id = 0;
game.Middle_Station.human_up_speedArr_Id = 0;
game.Middle_Station.beam_rangeArr_Id = 0;
game.Middle_Station.beam_electricityArr_Id = 0;
game.Middle_Station.spaceship_move_stepsArr_Id = 0;
game.Middle_Station.shield_lifeArr_Id = 0;
bGameEnd = false;
goto("Set_Difficulty");
}
function loadGame() {
bGameEnd = false;
attachMovie("common.PopUp", "PopUp_loading", getNextHighestDepth(), {sFrame:"message", aSt:["loading..."], _nTime:40, onEnterFrame:function () {
this._nTime--;
if (this._nTime <= 0) {
this.remove();
}
}});
}
function saveGame() {
attachMovie("common.PopUp", "PopUp_saveing", getNextHighestDepth(), {sFrame:"message", aSt:["Saving game..."], _nTime:40, onEnterFrame:function () {
this._nTime--;
if (this._nTime <= 0) {
this.remove();
}
}});
}
function nextLevel() {
bGameEnd = false;
Global.GAME.oldlevel++;
goto("playing");
}
function tryAgain() {
nScore = nScore * 0.7;
bGameEnd = false;
goto("playing");
}
function gameWin() {
if (!bGameEnd) {
bGameEnd = true;
if (nLevel >= 10) {
goto("gamewin");
} else {
goto("nextlevel");
}
}
}
function gameOver() {
if (!bGameEnd) {
bGameEnd = true;
goto("gameover");
}
}
function clearAllMc(_m) {
for (var _local2 in _m) {
_m[_local2].removeMovieClip();
}
}
var __nScore = 0;
var __nCoins = 0;
var bGameEnd = false;
var nLevel = 0;
var buy_beam_speed_lv = 0;
var buy_beam_range_lv = 0;
var buy_add_beam_life_lv = 0;
var buy_spaceship_speed_lv = 0;
var buy_spaceship_shield_lv = 0;
var total_lives = 3;
}
Symbol 919 MovieClip [__Packages.common.PopUp] Frame 0
class common.PopUp extends MovieClip
{
var _visible, sFrame, attachMovie, aSt, nextFrame, nWidth, bt_N, bt_Y, tT_0, nHeight, tT_2, tT_1, bt_LOW, bt_MEDIUM, bt_HIGH, bt_BEST, mFlag_q, _x, _y, stop, swapDepths, _parent, removeMovieClip, bt_X, mBar, createEmptyMovieClip;
function PopUp () {
super();
_visible = false;
}
function init() {
switch (sFrame) {
case "y_n" :
attachMovie("common.Btn", "bt_X", 10, {sTxt:"X", sAutoSize:"right", bMask:true});
attachMovie("common.Btn", "bt_Y", 9, {sTxt:((aSt[1] == undefined) ? "YES" : (aSt[1]))});
attachMovie("common.Btn", "bt_N", 8, {sTxt:((aSt[2] == undefined) ? "NO" : (aSt[2])), sAutoSize:"right"});
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", sAutoSize:"right", bMask:true});
attachMovie("common.Btn", "bt_Y", 9, {sTxt:((aSt[1] == undefined) ? "OK" : (aSt[1])), sAutoSize:"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", sAutoSize:"right", bMask:true});
attachMovie("common.Btn", "bt_Y", 9, {sTxt:"SUBMIT", sAutoSize:"center"});
attachMovie("common.Txt", "tT_0", 8, {sTxt:"NAME:"});
attachMovie("common.Txt", "tT_1", 7, {sTxt:"SCORE: " + ((aSt[1] == undefined) ? 0 : (int(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) ? "Message" : (aSt[0])), sAlign:"center"});
break;
case "quality" :
attachMovie("common.Btn", "bt_X", 10, {sTxt:"X", sAutoSize:"right", bMask:true});
attachMovie("mFlag_q", "mFlag_q", 9);
attachMovie("common.Txt", "tT_0", 8, {sTxt:"QUALITY", sAlign:"center"});
attachMovie("common.Btn", "bt_LOW", 7, {sTxt:"LOW", sAutoSize:"center"});
attachMovie("common.Btn", "bt_MEDIUM", 6, {sTxt:"MEDIUM", sAutoSize:"center"});
attachMovie("common.Btn", "bt_HIGH", 5, {sTxt:"HIGH", sAutoSize:"center"});
attachMovie("common.Btn", "bt_BEST", 4, {sTxt:"BEST", sAutoSize:"center"});
break;
default :
remove();
}
nextFrame();
}
function inShow() {
switch (sFrame) {
case "y_n" :
nWidth = int(Math.max(nWidth_max, (bt_Y._width + bt_N._width) + (nOffset_x * 3)));
bt_Y._x = int((((-nWidth) / 2) + nOffset_x) + nBorder);
bt_N._x = int(((nWidth / 2) - nOffset_x) - nBorder);
tT_0.tTxt._width = nWidth - nOffset_x;
tT_0.replace();
tT_0._x = (-tT_0.tTxt.textWidth) / 2;
nHeight = int(Math.max(nHeight_max, tT_0.tTxt.textHeight + (nOffset_y * 3)));
bt_Y._y = (bt_N._y = int(((nHeight / 2) - nOffset_y) - nBorder));
tT_0._y = -int((nOffset_y / 2) + (tT_0.tTxt.textHeight / 2));
bt_Y.press = function () {
if (this._parent.callBack(true)) {
this._parent.remove();
}
};
bt_N.press = function () {
this._parent.callBack(false);
this._parent.remove();
};
break;
case "ok" :
nWidth = nWidth_max;
tT_0.tTxt._width = nWidth - nOffset_x;
tT_0.replace();
tT_0._x = (-tT_0.tTxt.textWidth) / 2;
nHeight = int(Math.max(nHeight_max, tT_0.tTxt.textHeight + (nOffset_y * 3)));
bt_Y._y = int(((nHeight / 2) - nOffset_y) - nBorder);
tT_0._y = -int((nOffset_y / 2) + (tT_0.tTxt.textHeight / 2));
bt_Y.press = function () {
this._parent.callBack(true);
this._parent.remove();
};
break;
case "submit" :
nWidth = int(Math.max(nWidth_max, (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_y * 5);
bt_Y._y = int(((nHeight / 2) - nOffset_y) - nBorder);
tT_0._y = int(((-nHeight) / 2) + nOffset_y);
tT_1._y = int(((-nHeight) / 2) + (nOffset_y * 2));
tT_2._y = int(((-nHeight) / 2) + nOffset_y);
bt_Y.press = function () {
this._parent.SUBMIT(this._parent.tT_2.tTxt.text, int(this._parent.aSt[1]));
};
break;
case "message" :
nWidth = nWidth_max;
tT_0.tTxt._width = nWidth - nOffset_x;
tT_0.replace();
nHeight = int(Math.max(nHeight_max, tT_0.tTxt.textHeight + (nOffset_y * 2)));
tT_0._y = -int((nOffset_y / 2) + (tT_0.tTxt.textHeight / 2));
break;
case "quality" :
nWidth = tT_0.tTxt.textWidth + (2 * nOffset_x);
nHeight = int(Math.max(nHeight_max, (5 * tT_0.tTxt.textHeight) + (nOffset_y * 4.5)));
tT_0._y = -2 * nOffset_y;
bt_LOW._y = -nOffset_y;
bt_MEDIUM._y = 0;
bt_HIGH._y = nOffset_y;
bt_BEST._y = 2 * nOffset_y;
this["bt_" + _root._quality].bGray = true;
mFlag_q._y = this["bt_" + _root._quality]._y + int(this["bt_" + _root._quality].tTxt._height / 2);
bt_LOW.press = (bt_MEDIUM.press = (bt_HIGH.press = (bt_BEST.press = function (_b) {
if (!_b) {
_root._quality = this.sTxt;
}
this._parent.callBack(true);
this._parent.remove();
})));
}
if (_x == 0) {
(_x = Stage.width / 2);
(_y = Stage.height / 2);
}
adjustXY();
x_btn(nWidth, nHeight);
setBar(nWidth, nHeight, bDrag);
enabledFor(bScreen);
stop();
_visible = true;
}
function callBack() {
return(true);
}
function remove() {
swapDepths(_parent.getNextHighestDepth());
removeMovieClip();
}
function adjustXY() {
var _local3 = nWidth / 2;
var _local2 = nHeight / 2;
var _local5 = s_b(_x, _local3, Stage.width - _local3);
var _local4 = s_b(_y, _local2, Stage.height - _local2);
if (_local5 != 0) {
_x = ((_local5 > 0) ? (Stage.width - _local3) : (_local3));
}
if (_local4 != 0) {
_y = ((_local4 > 0) ? (Stage.height - _local2) : (_local2));
}
}
static function s_b(n, a, b) {
if ((a < n) && (n < b)) {
return(0);
}
if (n <= a) {
return(-1);
}
return(1);
}
function x_btn(_nW, _nH) {
bt_X._x = int(_nW / 2) - common.Btn.nBorder;
bt_X._y = int((-_nH) / 2);
bt_X.press = function () {
this._parent.callBack(false);
this._parent.remove();
};
}
function setBar(_nW, _nH, _b) {
mBar._x = (-_nW) / 2;
mBar._y = (-_nH) / 2;
mBar._width = _nW;
mBar._height = _nH;
if (_b) {
mBar.useHandCursor = false;
mBar.onPress = function () {
this._parent.startDrag(false, this._width / 2, this._height / 2, Stage.width - (this._width / 2), Stage.height - (this._height / 2));
};
mBar.onRelease = (mBar.onReleaseOutside = function () {
this._parent.stopDrag();
});
}
}
function enabledFor(_b) {
if (_b) {
var _local3 = createEmptyMovieClip("_mEnabled", -16384);
_local3.enabled = false;
_local3.hitArea = _root;
_local3.onPress = null;
}
}
function SUBMIT(_s, _n) {
var _local3 = _parent.getNextHighestDepth();
if (_s.length > 0) {
var _local4 = new LoadVars();
var _local5 = new LoadVars();
_local4.game = Global.GAMENAME;
trace((((("\u4E0A\u4F20\u9AD8\u5206--\u6E38\u620F\u540D\uFF1A" + Global.GAMENAME) + "--\u7528\u6237\u540D\uFF1A") + _s) + "--\u5206\u6570\uFF1A") + _n);
_local4.score = _n;
_local4.name = _s;
_local4.sendAndLoad(Global.URLHIGHSCORE, _local5, "POST");
_local5.onLoad = function () {
common.PopUp.SUBMITEND();
};
_global._mSending = _parent.attachMovie("common.PopUp", "PopUp" + _local3, _local3, {sFrame:"message", aSt:["SENDING..."]});
remove();
} else {
_parent.attachMovie("common.PopUp", "PopUp" + _local3, _local3, {sFrame:"ok", aSt:["ENTER A NAME PLEASE!"]});
}
}
static function SUBMITEND() {
var _local3 = _global._mSending._parent;
_global._mSending.remove();
var _local2 = _local3.getNextHighestDepth();
_local3.attachMovie("common.PopUp", "PopUp" + _local2, _local2, {sFrame:"ok", aSt:["VIEW HIGHSCORE?"], callBack:function (_b) {
if (_b) {
Global.VIEWSCORE();
}
return(true);
}});
}
static var nOffset_x = 40;
static var nOffset_y = 40;
static var nWidth_max = 300;
static var nHeight_max = 50;
static var nBorder = 10;
var bScreen = true;
var bDrag = true;
}
Symbol 920 MovieClip [__Packages.common.Btn] Frame 0
class common.Btn extends MovieClip
{
static var nDw;
var onRollOver, onDragOut, onRollOut, onPress, onReleaseOutside, onRelease, __bGray, gotoAndStop, __bIn, __bDown, tTxt, mBar, 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 sAutoSize() {
return(__sAutoSize);
}
function set sAutoSize(_sAutoSize) {
__sAutoSize = _sAutoSize;
//return(sAutoSize);
}
function get sTxt() {
return(__sTxt);
}
function set sTxt(_sTxt) {
__sTxt = _sTxt;
gotoAndStop("reset");
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 = (sTxt);
bGray = (bGray);
}
function replace() {
var _local2;
if (bIn && (bDown)) {
_local2 = "down";
} else if (bIn || (bDown)) {
_local2 = "over";
} else {
_local2 = "up";
}
gotoAndStop(_local2);
tTxt.autoSize = true;
if (__sAutoSize == "right") {
tTxt._x = -int(tTxt._width);
} else if (__sAutoSize == "center") {
tTxt._x = -int(tTxt._width / 2);
} else {
tTxt._x = 0;
}
if (mBar == undefined) {
hitArea = tTxt;
mBar._visible = false;
} else {
mBar.gotoAndStop(_local2);
if (nWidth > 0) {
mBar._height = int(tTxt._height);
mBar._width = nWidth;
mBar._x = (-nWidth) / 2;
} else {
if (isNaN(nDw)) {
nDw = int(tTxt._width - tTxt.textWidth) - 1;
}
mBar._width = tTxt.textWidth + (nBorder * 2);
mBar._x = (tTxt._x + nDw) - nBorder;
if (bMask) {
mBar._y = 0;
mBar._height = int(tTxt._height);
hitArea = tTxt;
mBar.setMask(tTxt);
} else {
mBar._y = 0;
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 __sAutoSize = "left";
var bMask = true;
var __sTxt = "BUTTON";
}
Symbol 921 MovieClip [__Packages.common.Txt] Frame 0
class common.Txt extends MovieClip
{
var obFormat, filters, tTxt, obCustom, sVariable, __sTxt;
function Txt () {
super();
obFormat = new TextFormat();
obFormat.align = sAlign;
obFormat.size = nSize;
obFormat.color = nColor;
}
function init(_sTxt) {
if (_sTxt != "undefined") {
sTxt = (_sTxt);
} else {
sTxt = (sTxt);
}
filters = tTxt.filters.slice();
tTxt.filters = null;
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));
}
function get sTxt() {
return(__sTxt);
}
function set sTxt(_sTxt) {
__sTxt = _sTxt;
tTxt.text = __sTxt;
replace();
//return(sTxt);
}
function replace() {
if (obCustom._height <= 0) {
tTxt.autoSize = sAlign;
}
if (sAlign == "right") {
tTxt._x = -Math.floor(tTxt._width);
} else if (sAlign == "center") {
tTxt._x = -Math.floor(tTxt._width / 2);
} else {
tTxt._x = 0;
}
tTxt.setTextFormat(obFormat);
}
var nColor = 16777215;
var nSize = 20;
var sAlign = "left";
}
Symbol 922 MovieClip [__Packages.page.Page_menu] Frame 0
class page.Page_menu extends page.Page
{
var _parent, attachMovie, getNextHighestDepth, btCredits, btCopyright, btVersion, btPlay, btHelp, btHighScore, btDownload, btMoreGame, btAddGame;
function Page_menu () {
super();
_parent.mLogo._visible = true;
}
function init() {
var _local3 = new Array("btPlay", "btHelp", "btHighScore", "btDownload", "btMoreGame", "btAddGame");
var _local4 = "right";
var _local5 = 35;
var _local7 = Global.WIDTH - 20;
var _local6 = 250;
var _local2 = 0;
while (_local2 < _local3.length) {
this[_local3[_local2]] = attachMovie("common.Btn", _local3[_local2], getNextHighestDepth(), {sTxt:aButtons_label[_local2], sAutoSize:_local4, _x:_local7, _y:_local6 + (_local2 * _local5)});
this[_local3[_local2]]._visible = false;
trace((this[_local3[_local2]]._x + " , ") + this[_local3[_local2]]._y);
_local2++;
}
btCredits = attachMovie("common.Btn_c&c&v", "btCredits", getNextHighestDepth(), {sTxt:"Credits", sAutoSize:"right", _x:Global.WIDTH, _y:Global.HEIGHT - 20});
btCopyright = attachMovie("common.Btn_c&c&v", "btCopyright", getNextHighestDepth(), {sTxt:"Copyright 2009 freeworldgroup.com", sAutoSize:"left", _y:Global.HEIGHT - 20});
btVersion = attachMovie("common.Btn_c&c&v", "btVersion", getNextHighestDepth(), {sTxt:Global.VERSION, sAutoSize:"left"});
}
function inFrame() {
init();
btPlay.press = function () {
if (Global.LOAD("nTimes_play") > 0) {
Global.GAME.newGame();
} else {
Global.GAME.firstPlay();
}
};
btHelp.press = function () {
if (Global.LOAD("nTimes_play") > 0) {
Global.GAME.goto("help");
} else {
Global.GAME.firstPlay();
}
};
btHighScore.press = function () {
Global.VIEWSCORE();
};
btDownload.press = function () {
Global.DOWNLOAD();
};
btMoreGame.press = function () {
Global.FWGURL();
};
btAddGame.press = function () {
Global.ADDGAME();
};
btCopyright.press = function () {
Global.FWGURL();
};
btCredits.press = function () {
Global.GAME.goto("credits");
};
}
static var aButtons_label = new Array("PLAY GAME", "INSTRUCTIONS", "VIEW HIGHSCORES", "DOWNLOAD GAMES", "MORE ONLINE GAMES", "ADD THIS GAME TO YOUR SITE");
}
Symbol 923 MovieClip [__Packages.page.Page_beginani] Frame 0
class page.Page_beginani extends page.Page
{
var _parent;
function Page_beginani () {
super();
_parent.mLogo._visible = false;
}
}
Symbol 924 MovieClip [__Packages.page.Page_playing] Frame 0
class page.Page_playing extends page.Page
{
var kPause, btMenu, addMenu_btn, btQ, attachMovie, getNextHighestDepth, btS, btM, mSetting, bPause, mClip;
function Page_playing () {
super();
init();
}
function init() {
kPause = new common.MyKey(80);
btMenu = addMenu_btn();
btMenu._x = btMenu._x + 11;
var _local2 = 5;
btQ = attachMovie("common.Btn", "btQ", getNextHighestDepth(), {_x:(btMenu._x - btMenu._width) - _local2, _y:btMenu._y, sTxt:"Q", sAutoSize:"right"});
btS = attachMovie("common.Btn", "btS", getNextHighestDepth(), {_x:(btQ._x - btQ._width) - _local2, _y:btMenu._y, sTxt:"S", sAutoSize:"right"});
btM = attachMovie("common.Btn", "btM", getNextHighestDepth(), {_x:(btS._x - btS._width) - _local2, _y:btMenu._y, sTxt:"M", sAutoSize:"right"});
btQ._visible = false;
btM._visible = false;
btS._visible = false;
btMenu._visible = false;
}
function inFrame() {
btQ.toolTip = "Quality: " + _root._quality;
btQ.press = function () {
Global.GAME.mPage.bPause = true;
Global.GAME.mPage.attachMovie("common.PopUp", "mSetting", Global.GAME.mPage.getNextHighestDepth(), {sFrame:"quality", callBack:function () {
Global.GAME.mPage.btQ.toolTip = "Quality: " + _root._quality;
Global.GAME.mPage.bPause = false;
}});
};
btM.bGray = Global.switchMusic();
btM.toolTip = "Music: " + (btM.bGray ? "Off" : "On");
Global.GAME.mPage.smSwitch(btM, btM.bGray);
btM.press = function () {
this.bGray = !Global.switchMusic(true);
this.toolTip = "Music: " + (this.bGray ? "Off" : "On");
Global.GAME.mPage.smSwitch(this, this.bGray);
};
btS.bGray = Global.switchSound();
btS.toolTip = "Sound: " + (btS.bGray ? "Off" : "On");
Global.GAME.mPage.smSwitch(btS, btS.bGray);
btS.press = function () {
this.bGray = !Global.switchSound(true);
this.toolTip = "Sound: " + (this.bGray ? "Off" : "On");
Global.GAME.mPage.smSwitch(this, this.bGray);
};
btMenu.toolTip = "Menu(Pause)";
kPause.onDown = (btMenu.press = function () {
Global.GAME.mPage.setting();
});
}
function smSwitch(_m, _b) {
if (_b) {
_m.attachMovie("mSwitch", "mSwitch", _m.getNextHighestDepth());
_m.mSwitch._x = _m.tTxt._x + int(_m.tTxt._width / 2);
_m.mSwitch._y = _m.tTxt._y + int(_m.tTxt._height / 2);
} else {
_m.mSwitch.removeMovieClip();
}
}
function setting(_n) {
if (mSetting._name == undefined) {
bPause = true;
attachMovie("common.PopUp", "mSetting", getNextHighestDepth(), {sFrame:"y_n", aSt:["QUIT TO MENU?"], callBack:function (_b) {
if (_b) {
Global.GAME.goto("menu");
} else {
Global.GAME.mPage.bPause = false;
}
return(true);
}});
} else {
mSetting.callBack(false);
mSetting.remove();
}
}
function onEnterFrame() {
kPause.run();
if (bPause) {
return(undefined);
}
mClip.run();
}
}
Symbol 925 MovieClip [__Packages.common.MyKey] Frame 0
class common.MyKey
{
var nTime, nDelay, bHold, bDouble, nKey, sKey, hold, nNow, onDown, onUp, unHold;
function MyKey (_nKey) {
nTime = 0;
nDelay = 400;
bHold = false;
bDouble = false;
nKey = _nKey;
sKey = String.fromCharCode(nKey).toUpperCase();
}
function run() {
if (Key.isDown(nKey)) {
if (bHold) {
hold(bDouble);
nNow = (bDouble ? 4 : 3);
} else {
bHold = true;
if ((getTimer() - nTime) < nDelay) {
bDouble = true;
} else {
nTime = getTimer();
}
onDown(bDouble);
nNow = (bDouble ? 2 : 1);
}
} else if (bHold) {
bHold = false;
onUp(bDouble);
if (bDouble) {
nTime = 0;
bDouble = false;
nNow = -2;
} else {
nNow = -1;
}
} else {
unHold();
nNow = 0;
}
return(nNow);
}
}
Symbol 926 MovieClip [__Packages.page.Page_nextlevel] Frame 0
class page.Page_nextlevel extends page.Page
{
var tTitle, attachMovie, getNextHighestDepth, tScore, btSubmit, btPlay, btMenu, addMenu_btn;
function Page_nextlevel () {
super();
init();
}
function init() {
tTitle = attachMovie("common.Txt", "tTitle", getNextHighestDepth(), {_x:page.Page.getX(0), _y:page.Page.getY(0), sTxt:"LEVEL COMPLETE", sAlign:"center", nSize:40});
tScore = attachMovie("common.Txt", "tScore", getNextHighestDepth(), {_x:page.Page.getX(1), _y:page.Page.getY(1), sTxt:"SCORE: " + Global.GAME.nScore, sAlign:"center", nSize:30});
btSubmit = attachMovie("common.Btn", "btSubmit", getNextHighestDepth(), {_x:page.Page.getX(2), _y:page.Page.getY(2), sTxt:"SUBMIT SCORE", sAutoSize:"center", _visible:Global.GAME.nScore != 0});
btPlay = attachMovie("common.Btn", "btPlay", getNextHighestDepth(), {_x:page.Page.getX(3), _y:page.Page.getY(3), sTxt:"CONTINUE", sAutoSize:"center"});
btMenu = addMenu_btn();
}
function inFrame() {
btSubmit.press = function () {
Global.GAME.mPage.attachMovie("common.PopUp", "PopUp_submit", Global.GAME.mPage.getNextHighestDepth(), {sFrame:"submit", aSt:["", Global.GAME.nScore]});
this._visible = false;
};
btPlay.press = function () {
Global.GAME.nextLevel();
};
btMenu.press = function () {
Global.GAME.goto("menu");
};
}
}
Symbol 927 MovieClip [__Packages.page.Page_gamewin] Frame 0
class page.Page_gamewin extends page.Page
{
var tScore, attachMovie, getNextHighestDepth, btSubmit, btDownload, btMoreGame, btAddGame, btMenu, addMenu_btn;
function Page_gamewin () {
super();
}
function init() {
tScore = attachMovie("common.Txt", "tScore", getNextHighestDepth(), {_x:page.Page.getX(1), _y:page.Page.getY(1) + 35, sTxt:"SCORE: " + Global.GAME.nScore, sAlign:"center", nSize:30});
btSubmit = attachMovie("common.Btn", "btSubmit", getNextHighestDepth(), {_x:page.Page.getX(2), _y:page.Page.getY(2) + 35, sTxt:"SUBMIT SCORE", sAutoSize:"center", _visible:Global.GAME.nScore != 0});
btDownload = attachMovie("common.Btn", "btDownload", getNextHighestDepth(), {_x:page.Page.getX(5), _y:page.Page.getY(5), sTxt:page.Page_menu.aButtons_label[3], sAutoSize:"left"});
btMoreGame = attachMovie("common.Btn", "btMoreGame", getNextHighestDepth(), {_x:page.Page.getX(6), _y:page.Page.getY(6), sTxt:page.Page_menu.aButtons_label[4], sAutoSize:"left"});
btAddGame = attachMovie("common.Btn", "btAddGame", getNextHighestDepth(), {_x:page.Page.getX(7), _y:page.Page.getY(7), sTxt:page.Page_menu.aButtons_label[5], sAutoSize:"left"});
btMenu = addMenu_btn();
}
function inFrame() {
init();
btSubmit.press = function () {
Global.GAME.mPage.attachMovie("common.PopUp", "PopUp_submit", Global.GAME.mPage.getNextHighestDepth(), {sFrame:"submit", aSt:["", Global.GAME.nScore]});
this._visible = false;
};
btMenu.press = function () {
Global.GAME.goto("menu");
};
btDownload.press = function () {
Global.DOWNLOAD();
};
btMoreGame.press = function () {
Global.FWGURL();
};
btAddGame.press = function () {
Global.ADDGAME();
};
}
}
Symbol 928 MovieClip [__Packages.page.Page_gameover] Frame 0
class page.Page_gameover extends page.Page
{
var tScore, attachMovie, getNextHighestDepth, btSubmit, bt_play_others, btDownload, btAddGame, btMenu, addMenu_btn, btPlay, btMoreGame;
function Page_gameover () {
super();
}
function init() {
tScore = attachMovie("common.Txt", "tScore", getNextHighestDepth(), {_x:page.Page.getX(1), _y:page.Page.getY(1) + 60, sTxt:"SCORE: " + Global.GAME.nScore, sAlign:"center", nSize:30});
btSubmit = attachMovie("common.Btn", "btSubmit", getNextHighestDepth(), {_x:page.Page.getX(2), _y:page.Page.getY(2) + 60, sTxt:"SUBMIT SCORE", sAutoSize:"center", _visible:Global.GAME.nScore != 0});
bt_play_others = attachMovie("common.Btn", "bt_play_others", getNextHighestDepth(), {_x:page.Page.getX(5), _y:page.Page.getY(5), sTxt:"PLAY KILL ME", sAutoSize:"left"});
btDownload = attachMovie("common.Btn", "btDownload", getNextHighestDepth(), {_x:page.Page.getX(5), _y:page.Page.getY(6), sTxt:page.Page_menu.aButtons_label[3], sAutoSize:"left"});
btAddGame = attachMovie("common.Btn", "btAddGame", getNextHighestDepth(), {_x:page.Page.getX(7), _y:page.Page.getY(7), sTxt:page.Page_menu.aButtons_label[5], sAutoSize:"left"});
btMenu = addMenu_btn();
}
function inFrame() {
init();
btSubmit.press = function () {
Global.GAME.mPage.attachMovie("common.PopUp", "PopUp_submit", Global.GAME.mPage.getNextHighestDepth(), {sFrame:"submit", aSt:["", Global.GAME.nScore]});
this._visible = false;
};
bt_play_others.press = function () {
this.getURL("http://www.freeworldgroup.com/games8/gameindex/killme.htm", "_blank");
};
btPlay.press = function () {
Global.GAME.tryAgain();
};
btMenu.press = function () {
Global.GAME.goto("menu");
};
btDownload.press = function () {
Global.DOWNLOAD();
};
btMoreGame.press = function () {
Global.FWGURL();
};
btAddGame.press = function () {
Global.ADDGAME();
};
}
}
Symbol 929 MovieClip [__Packages.page.Page_gameover_1] Frame 0
class page.Page_gameover_1 extends page.Page
{
var tScore, attachMovie, getNextHighestDepth, btSubmit, btPlay, bt_play_others, btDownload, btAddGame, btMenu, addMenu_btn, btMoreGame;
function Page_gameover_1 () {
super();
}
function init() {
tScore = attachMovie("common.Txt", "tScore", getNextHighestDepth(), {_x:page.Page.getX(1), _y:page.Page.getY(1) + 60, sTxt:"SCORE: " + Global.GAME.nScore, sAlign:"center", nSize:30});
btSubmit = attachMovie("common.Btn", "btSubmit", getNextHighestDepth(), {_x:page.Page.getX(2), _y:page.Page.getY(2) + 60, sTxt:"SUBMIT SCORE", sAutoSize:"center", _visible:Global.GAME.nScore != 0});
btPlay = attachMovie("common.Btn", "btPlay", getNextHighestDepth(), {_x:page.Page.getX(3), _y:page.Page.getY(3) + 60, sTxt:"CONTINUE", sAutoSize:"center"});
bt_play_others = attachMovie("common.Btn", "bt_play_others", getNextHighestDepth(), {_x:page.Page.getX(5), _y:page.Page.getY(5), sTxt:"PLAY KILL ME", sAutoSize:"left"});
btDownload = attachMovie("common.Btn", "btDownload", getNextHighestDepth(), {_x:page.Page.getX(5), _y:page.Page.getY(6), sTxt:page.Page_menu.aButtons_label[3], sAutoSize:"left"});
btAddGame = attachMovie("common.Btn", "btAddGame", getNextHighestDepth(), {_x:page.Page.getX(7), _y:page.Page.getY(7), sTxt:page.Page_menu.aButtons_label[5], sAutoSize:"left"});
btMenu = addMenu_btn();
}
function inFrame() {
init();
btSubmit.press = function () {
Global.GAME.mPage.attachMovie("common.PopUp", "PopUp_submit", Global.GAME.mPage.getNextHighestDepth(), {sFrame:"submit", aSt:["", Global.GAME.nScore]});
this._visible = false;
};
bt_play_others.press = function () {
this.getURL("http://www.freeworldgroup.com/games8/gameindex/killme.htm", "_blank");
};
btPlay.press = function () {
Global.GAME.tryAgain();
};
btMenu.press = function () {
Global.GAME.goto("menu");
};
btDownload.press = function () {
Global.DOWNLOAD();
};
btMoreGame.press = function () {
Global.FWGURL();
};
btAddGame.press = function () {
Global.ADDGAME();
};
}
}
Symbol 930 MovieClip [__Packages.page.Page_help] Frame 0
class page.Page_help extends page.Page
{
var tTitle, attachMovie, getNextHighestDepth, btMenu, addMenu_btn, btBack, btNext, btPlay, mClip;
function Page_help () {
super();
init();
}
function init() {
tTitle = attachMovie("common.Txt", "tTitle", getNextHighestDepth(), {_x:Global.WIDTH / 2, _y:page.Page.nY_title, sTxt:page.Page_menu.aButtons_label[1], sAlign:"center", nSize:40});
btMenu = addMenu_btn();
var _local2 = Global.WIDTH - btMenu._x;
var _local3 = int((Global.WIDTH / 9) * 2);
btBack = attachMovie("common.Btn", "btBack", getNextHighestDepth(), {_x:_local2, _y:btMenu._y, sTxt:"BACK", sAutoSize:"left"});
btNext = attachMovie("common.Btn", "btNext", getNextHighestDepth(), {_x:_local3 + _local2, _y:btMenu._y, sTxt:"NEXT", sAutoSize:"left"});
btPlay = attachMovie("common.Btn", "btPlay", getNextHighestDepth(), {_x:(_local3 * 2) + _local2, _y:btMenu._y, sTxt:"SKIP", sAutoSize:"left"});
}
function inFrame() {
btBack.press = function () {
this._parent.inStep(-1);
};
btNext.press = function () {
this._parent.inStep(1);
};
btPlay.press = function () {
Global.GAME.newGame();
};
btMenu.press = function () {
Global.GAME.goto("menu");
};
mClip.stop();
inStep(-1);
}
function inStep(_n) {
Fade.start();
if (_n > 0) {
mClip.nextFrame();
} else {
mClip.prevFrame();
}
if (mClip._currentframe == 1) {
btBack._visible = false;
} else if (mClip._currentframe == mClip._totalframes) {
btNext._visible = false;
btPlay.sTxt = "PLAY";
} else {
btBack._visible = (btNext._visible = true);
btPlay.sTxt = "SKIP";
}
}
}
Symbol 931 MovieClip [__Packages.page.Page_credits] Frame 0
class page.Page_credits extends page.Page
{
var tTitle, attachMovie, getNextHighestDepth, tInfo, btMenu, addMenu_btn;
function Page_credits () {
super();
init();
}
function init() {
tTitle = attachMovie("common.Txt", "tTitle", getNextHighestDepth(), {_x:Global.WIDTH / 2, _y:page.Page.nY_title, sTxt:"MUSIC CREDITS", sAlign:"center", nSize:40});
tInfo = attachMovie("common.Txt", "tInfo", getNextHighestDepth(), {_x:Global.WIDTH / 2, _y:int(Global.HEIGHT / 3), sAlign:"center", nSize:30});
btMenu = addMenu_btn();
}
function inFrame() {
tInfo.sTxt = "Retro Pico -full version\n\nBy Winterwind-NS";
btMenu.press = function () {
Global.GAME.goto("menu");
};
}
}
Symbol 932 MovieClip [__Packages.game.Set_Difficulty_Button] Frame 0
class game.Set_Difficulty_Button extends MovieClip
{
var gotoAndStop, onRollOver, onRollOut, _name, text, onPress;
function Set_Difficulty_Button () {
super();
init();
gotoAndStop("common");
onRollOver = function () {
this.gotoAndStop("roll_over");
};
onRollOut = function () {
this.gotoAndStop("common");
};
}
function init() {
switch (_name) {
case "easy_button" :
text = "EASY";
break;
case "medium_button" :
text = "NORMAL";
break;
case "hard_button" :
text = "HARD";
}
init_on_press();
}
function init_on_press() {
onPress = function () {
switch (this._name) {
case "easy_button" :
_global.difficulty = "easy";
Global.GAME.goto("playing");
break;
case "medium_button" :
_global.difficulty = "normal";
Global.GAME.goto("playing");
break;
case "hard_button" :
_global.difficulty = "hard";
Global.GAME.goto("playing");
}
};
}
}
Symbol 933 MovieClip [__Packages.page.Page_Set_Difficulty] Frame 0
class page.Page_Set_Difficulty extends page.Page
{
var menu;
function Page_Set_Difficulty () {
super();
menu.onPress = function () {
Global.GAME.goto("menu");
};
menu.gotoAndStop("common");
menu.onRollOver = function () {
this.gotoAndStop("roll_over");
};
menu.onRollOut = function () {
this.gotoAndStop("common");
};
}
}
Symbol 934 MovieClip [__Packages.Blood] Frame 0
class Blood extends MovieClip
{
var delayTime, _xscale, onEnterFrame, battleunit, swapDepths, removeMovieClip, _x, _y, gotoAndStop;
function Blood (Void) {
super();
delayTime = 20;
_xscale = 60;
onEnterFrame = function () {
this.run();
};
}
function run(Void) {
if (((battleunit._name == undefined) || (battleunit._visible == false)) || ((--delayTime) <= 0)) {
swapDepths(0);
removeMovieClip();
return(undefined);
}
_x = battleunit._x - 15;
_y = battleunit._y - 55;
gotoAndStop(Math.round(100 * (battleunit.shield.life / battleunit.shield.total_life)) + 1);
}
}
Symbol 935 MovieClip [__Packages.page.Page_Level_Win_Animation] Frame 0
class page.Page_Level_Win_Animation extends page.Page
{
var game_shop, next_level, total_human_num, level_score, bonuses, total_score;
function Page_Level_Win_Animation () {
super();
game_shop.onPress = function () {
Global.GAME.goto("Upgrade_Store");
};
game_shop.gotoAndStop("common");
game_shop.onRollOver = function () {
this.gotoAndStop("roll_over");
};
game_shop.onRollOut = function () {
this.gotoAndStop("common");
};
next_level.onPress = function () {
Global.GAME.nextLevel();
};
next_level.gotoAndStop("common");
next_level.onRollOver = function () {
this.gotoAndStop("roll_over");
};
next_level.onRollOut = function () {
this.gotoAndStop("common");
};
total_human_num.num = game.Middle_Station.total_human_kidnapped_num;
level_score.num = game.Middle_Station.level_score;
bonuses.num = game.Middle_Station.extra_bonuses;
trace(" Middle_Station.extra_bonuses " + game.Middle_Station.extra_bonuses);
total_score.num = Global.GAME.nScore;
}
}
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 52 MovieClip Frame 1
_root.stop();
Symbol 52 MovieClip Frame 256
stop();
onEnterFrame = function () {
if (_alpha <= 0) {
_parent.play();
delete onEnterFrame;
} else {
_alpha = (_alpha - 90);
}
};
Symbol 202 MovieClip Frame 696
stop();
Symbol 224 MovieClip [page.Page_Level_Win_Animation] Frame 1
#initclip 88
Object.registerClass("page.Page_Level_Win_Animation", page.Page_Level_Win_Animation);
#endinitclip
Symbol 227 MovieClip [shield] Frame 1
#initclip 56
Object.registerClass("shield", game.POWERUP.Shield);
#endinitclip
Symbol 229 MovieClip [beam] Frame 1
#initclip 57
Object.registerClass("beam", game.SPACESHIP.Beam);
#endinitclip
Symbol 240 MovieClip [SpaceShip_go] Frame 1
#initclip 58
Object.registerClass("SpaceShip_go", game.SPACESHIP.SpaceShip);
#endinitclip
Symbol 259 MovieClip [woman_run] Frame 1
#initclip 59
Object.registerClass("woman_run", game.HUMAN.Woman);
#endinitclip
Symbol 263 MovieClip [Roll_GameScene_Bar] Frame 1
#initclip 60
Object.registerClass("Roll_GameScene_Bar", game.Roll_GameScene_Bar);
#endinitclip
Symbol 280 MovieClip [Shop_Goods_Button_2] Frame 1
#initclip 61
Object.registerClass("Shop_Goods_Button_2", game.SHOP.Shop_Goods_Button_2);
#endinitclip
Symbol 325 MovieClip [page.Page_Upgrade_Store] Frame 1
#initclip 62
Object.registerClass("page.Page_Upgrade_Store", page.Page_Upgrade_Store);
#endinitclip
Symbol 358 MovieClip [oldster] Frame 1
#initclip 63
Object.registerClass("oldster", game.HUMAN.Oldster);
#endinitclip
Symbol 364 MovieClip [fat_man_run] Frame 1
#initclip 64
Object.registerClass("fat_man_run", game.HUMAN.Fat_Man);
#endinitclip
Symbol 375 MovieClip [black_fat_man] Frame 1
#initclip 65
Object.registerClass("black_fat_man", game.HUMAN.Black_Fat_Man);
#endinitclip
Symbol 389 MovieClip [middlelife_man] Frame 1
#initclip 66
Object.registerClass("middlelife_man", game.HUMAN.Mliddlelife_Man);
#endinitclip
Symbol 428 MovieClip [vertical_missile] Frame 1
#initclip 67
Object.registerClass("vertical_missile", game.POWERUP.MISSILE.Vertical_Missile);
#endinitclip
Symbol 444 MovieClip [single_guided_missile] Frame 1
#initclip 68
Object.registerClass("single_guided_missile", game.POWERUP.MISSILE.Guided_Missile_DifferentTimeLine);
#endinitclip
Symbol 463 MovieClip [black_man_run] Frame 1
#initclip 69
Object.registerClass("black_man_run", game.HUMAN.Black_Man);
#endinitclip
Symbol 502 MovieClip [gamerun] Frame 1
#initclip 70
Object.registerClass("gamerun", game.GameRun);
#endinitclip
NONO._visible = false;
Symbol 503 MovieClip [Game] Frame 1
#initclip 71
Object.registerClass("Game", Game);
#endinitclip
this.inFrame();
Symbol 511 MovieClip [common.PopUp] Frame 1
#initclip 72
Object.registerClass("common.PopUp", common.PopUp);
#endinitclip
this.init();
Symbol 511 MovieClip [common.PopUp] Frame 2
this.inShow();
Symbol 514 MovieClip [common.Btn_c&c&v] Frame 1
#initclip 73
Object.registerClass("common.Btn_c&c&v", 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 517 MovieClip [common.Btn] Frame 1
#initclip 74
Object.registerClass("common.Btn", common.Btn);
#endinitclip
this.init();
Symbol 519 MovieClip [common.Txt] Frame 1
#initclip 75
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 574 Button
on (press) {
getURL ("http://www.freeworldgroup.com/games8/gameindex/killme.htm", "_blank");
}
Symbol 581 MovieClip Frame 34
stop();
btPlay_mc.onRelease = function () {
trace(this);
this._parent._parent._parent._parent._parent.logo_mc.menu.btPlay.press();
};
btHelp_mc.onRelease = function () {
this._parent._parent._parent._parent._parent.logo_mc.menu.btHelp.press();
};
btHighScore_mc.onRelease = function () {
this._parent._parent._parent._parent._parent.logo_mc.menu.btHighScore.press();
};
btDownload_mc.onRelease = function () {
this._parent._parent._parent._parent._parent.logo_mc.menu.btDownload.press();
};
btMoreGame_mc.onRelease = function () {
trace(this._parent._parent._parent._parent._parent.logo_mc);
this._parent._parent._parent._parent._parent.logo_mc.menu.btMoreGame.press();
};
btAddGame_mc.onRelease = function () {
this._parent._parent._parent._parent._parent.logo_mc.menu.btAddGame.press();
};
Symbol 582 MovieClip Frame 268
Global.GAME.goto("menu");
Symbol 582 MovieClip Frame 269
this._parent.inFrame();
Symbol 584 MovieClip [page.Page_menu] Frame 1
#initclip 76
Object.registerClass("page.Page_menu", page.Page_menu);
#endinitclip
beginani.gotoAndStop(269);
Symbol 585 MovieClip [page.Page_beginani] Frame 1
#initclip 77
Object.registerClass("page.Page_beginani", page.Page_beginani);
#endinitclip
Symbol 639 MovieClip Frame 1
stop();
Symbol 641 MovieClip Frame 1
stop();
Symbol 643 MovieClip Frame 1
stop();
Symbol 647 MovieClip Frame 1
stop();
Symbol 663 MovieClip [page.Page_playing] Frame 1
#initclip 78
Object.registerClass("page.Page_playing", page.Page_playing);
#endinitclip
this.inFrame();
_root._quality = "medium";
btq.onRelease = function () {
this._parent.btQ.press();
};
btm.gotoAndStop(_root.btm);
btm.onRelease = function () {
if (this._currentframe == 1) {
this.gotoAndStop(2);
_root.btm = 2;
} else {
this.gotoAndStop(1);
_root.btm = 1;
}
this._parent.btM.press();
};
bts.onRelease = function () {
if (this._currentframe == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
this._parent.btS.press();
};
btmenu.onRelease = function () {
this._parent.btMenu.press();
};
btp.onRelease = function () {
if (this._currentframe == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
Global.GAME.mPage.bPause = !Global.GAME.mPage.bPause;
};
Symbol 664 MovieClip [page.Page_nextlevel] Frame 1
#initclip 79
Object.registerClass("page.Page_nextlevel", page.Page_nextlevel);
#endinitclip
this.inFrame();
Symbol 698 MovieClip Frame 42
stop();
this._parent.inFrame();
Symbol 699 MovieClip [page.Page_gamewin] Frame 1
#initclip 80
Object.registerClass("page.Page_gamewin", page.Page_gamewin);
#endinitclip
Symbol 722 MovieClip Frame 138
stop();
this._parent.inFrame();
Symbol 724 MovieClip [page.Page_gameover] Frame 1
#initclip 81
Object.registerClass("page.Page_gameover", page.Page_gameover);
#endinitclip
Symbol 725 MovieClip [page.Page_gameover_1] Frame 1
#initclip 82
Object.registerClass("page.Page_gameover_1", page.Page_gameover_1);
#endinitclip
Symbol 791 MovieClip [page.Page_help] Frame 1
#initclip 83
Object.registerClass("page.Page_help", page.Page_help);
#endinitclip
this.inFrame();
Symbol 814 MovieClip [page.Page_credits] Frame 1
#initclip 84
Object.registerClass("page.Page_credits", page.Page_credits);
#endinitclip
this.inFrame();
Symbol 817 MovieClip [难度按钮] Frame 1
#initclip 85
Object.registerClass("\u96BE\u5EA6\u6309\u94AE", game.Set_Difficulty_Button);
#endinitclip
Symbol 839 MovieClip [page.Page_Set_Difficulty] Frame 1
#initclip 86
Object.registerClass("page.Page_Set_Difficulty", page.Page_Set_Difficulty);
#endinitclip
Symbol 844 MovieClip [Blood] Frame 1
#initclip 87
Object.registerClass("Blood", Blood);
#endinitclip
Symbol 847 MovieClip [num_mc] Frame 16
this.removeMovieClip();
Symbol 861 MovieClip Frame 22
this._parent.swapDepths(0);
this._parent.removeMovieClip();
Symbol 867 MovieClip [num_mc_2] Frame 16
this.removeMovieClip();
Symbol 871 MovieClip [num_mc_3] Frame 16
this.removeMovieClip();
Symbol 875 MovieClip Frame 1
stop();
Instance of Symbol 511 MovieClip [common.PopUp] in Symbol 875 MovieClip Frame 12
//component parameters
onClipEvent (construct) {
sFrame = "ok";
}
Instance of Symbol 514 MovieClip [common.Btn_c&c&v] in Symbol 875 MovieClip Frame 13
//component parameters
onClipEvent (construct) {
sTxt = "BUTTON";
sAutoSize = "left";
nWidth = 0;
}
Instance of Symbol 517 MovieClip [common.Btn] in Symbol 875 MovieClip Frame 14
//component parameters
onClipEvent (construct) {
sTxt = "BUTTON";
sAutoSize = "left";
nWidth = 0;
}
Instance of Symbol 519 MovieClip [common.Txt] in Symbol 875 MovieClip Frame 15
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
nSize = 20;
nColor = 16777215 /* 0xFFFFFF */;
sAlign = "left";
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;
}