Frame 1
function fwAd_onClickStartBtn() {
trace("start game");
nextFrame();
}
Stage.showMenu = true;
Stage.align = "left";
fscommand ("trapallkeys", true);
System.security.allowDomain("*");
System.security.allowInsecureDomain("*");
_quality = "MEDIUM";
stopAllSounds();
var This = this;
FWAd_AS2.showAd({container:this, x:0, y:0, wid:480, hei:640, starPoolID:"13381", starSubPoolID:"8", adType:"loading", onClickStartBtn:fwAd_onClickStartBtn});
This.onEnterFrame = function () {
pc = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
T.text = ("Loading... " + int(pc)) + "%";
if (pc >= 100) {
delete This.onEnterFrame;
}
};
stop();
Frame 2
function updata($name, $stage, $score) {
var _local1 = 0;
while (_local1 < 13) {
if ($score >= mySo.data.score[_local1][2]) {
mySo.data.score[_local1] = [$name, $stage, $score];
mySo.data.page = int(_local1 / 14);
mySo.flush();
break;
}
_local1++;
}
}
function delSO() {
mySo.clear();
gotoAndPlay (1);
}
delete This.onEnterFrame;
This.createEmptyMovieClip("RootAdsMc", 789).loadMovie("http://www.cqwkcn.com/myads/as2.swf?r=" + random(99999));
stop();
var mySo = SharedObject.getLocal("_apaqi_war_");
mySo.data.page = 0;
if (mySo.data.score == undefined) {
mySo.data.score = new Array();
var i = 0;
while (i < 13) {
mySo.data.score[i] = ["Computer_" + i, 8 - int(i / 10), 12000 - (i * 1000)];
i++;
}
mySo.flush();
}
var vivaMenu = new ContextMenu();
vivaMenu.hideBuiltInItems();
vivaMenu.customItems.push(new ContextMenuItem("Clear Save Data", delSO));
_root.menu = vivaMenu;
var BGM = new Sound(this);
var rootMask = this.createEmptyMovieClip("RootMask", 789);
rootMask.beginFill(0, 100);
rootMask.moveTo(0, 0);
rootMask.lineTo(0, 640);
rootMask.lineTo(480, 640);
rootMask.lineTo(480, 0);
rootMask.lineTo(0, 0);
rootMask.endFill();
this.setMask(rootMask);
var Input_Key = [87, 83, 65, 68, 74, 75];
var Stage_Finish = 0;
var Map_Speed_Array = [2, 2, 3, 3];
var Life = 5;
var Born = 3;
var Score = 0;
var Power = [0, 0, 0, -1];
Frame 3
stop();
BGM.setVolume(50);
mc.select = false;
mc.life = 5;
mc.born = 3;
mc.power = [0, 0, 0, -1];
mc.key = new as2.Ikey(Input_Key, 30);
mc.inputs = [Input_Key[0], Input_Key[0], Input_Key[1], Input_Key[1], Input_Key[2], Input_Key[2], Input_Key[3], Input_Key[3], Input_Key[5]];
mc.setter = function ($a) {
var _local1 = 0;
while (_local1 < mc.inputs.length) {
if (mc.inputs[_local1] != $a[_local1]) {
return(undefined);
}
_local1++;
}
var _local3 = new Sound(mc);
_local3.attachSound("getsomething");
_local3.start();
mc.life = 30;
mc.born = 99;
mc.power = [4, 2, 3, 2];
mc.select = true;
};
mc.sec = 0;
mc.onEnterFrame = function () {
this.sec++;
if (this.sec > 3000) {
delete this.onEnterFrame;
gotoAndStop ("score");
return(undefined);
}
this.key.getter(this.setter);
};
Frame 4
stop();
Frame 5
stop();
BGM.setVolume(100);
Frame 6
if (Stage_Finish > 7) {
nextFrame();
} else {
prevFrame();
}
Frame 7
stop();
Frame 8
if (Input_Key[0] == 87) {
T0.textColor = 10092288 /* 0x99FF00 */;
T1.textColor = 10066329 /* 0x999999 */;
} else {
T1.textColor = 10092288 /* 0x99FF00 */;
T0.textColor = 10066329 /* 0x999999 */;
}
stop();
Frame 9
function getID($n) {
return((($n < 10) ? ("00" + $n) : ((($n < 100) ? ("0" + $n) : ($n)))));
}
function listAll() {
T0.textColor = ((pn > 0) ? 16777215 : 8947848);
T1.textColor = ((pn < 6) ? 16777215 : 8947848);
idT.text = "";
nameT.text = "";
stageT.text = "";
scoreT.text = "";
idT.html = true;
nameT.html = true;
stageT.html = true;
scoreT.html = true;
var _local2 = 0;
while (_local2 < 13) {
var _local1 = _local2;
idT.htmlText = idT.htmlText + (getID(_local1 + 1) + newline);
nameT.htmlText = nameT.htmlText + (mySo.data.score[_local1][0] + newline);
stageT.htmlText = stageT.htmlText + (("Stage-0" + mySo.data.score[_local1][1]) + newline);
scoreT.htmlText = scoreT.htmlText + (mySo.data.score[_local1][2] + newline);
_local2++;
}
}
var pn = mySo.data.page;
listAll();
mc.sec = 0;
mc.onEnterFrame = function () {
this.sec++;
if (this.sec > 3000) {
delete this.onEnterFrame;
gotoAndStop ("menu");
return(undefined);
}
};
Symbol 45 MovieClip [FWAd_AS2] Frame 1
#initclip 4
Object.registerClass("FWAd_AS2", FWAd_AS2);
#endinitclip
Symbol 126 Button
on (release) {
getURL ("http://www.freegameswow.com", "_blank");
}
Symbol 127 MovieClip Frame 1
Symbol 127 MovieClip Frame 36
stop();
Symbol 1069 MovieClip [__Packages.FWAd_AS2] Frame 0
class FWAd_AS2 extends MovieClip
{
static var xx, yy, wid, hei, id, ifIsLoadingAdShowStartBtn, noShowLogo, noShowForbidden, onClickStartBtn, fwAd, frameworkLoader, lc, loadFrameworkSuccess, loadFrameworkFailed, frameworkInitFinished, loadGameCompleted, restLoadFrameworkTimes, xml, newsLoader, newsMcl, news_lc, lc_sendName, lc_connName, canNotShowAd, onLoadXML;
var adValues, _FWAd, createEmptyMovieClip, getNextHighestDepth, mcl, loadingBar, loadingBar_bar, onEnterFrame, removeMovieClip, _parent, swapDepths, _visible, _x;
function FWAd_AS2 () {
super();
xx = adValues.x;
yy = adValues.y;
wid = adValues.wid;
hei = adValues.hei;
id = adValues.id;
adType = adValues.adType;
ifIsLoadingAdShowStartBtn = adValues.ifIsLoadingAdShowStartBtn;
noShowLogo = adValues.noShowLogo;
noShowForbidden = adValues.noShowForbidden;
if (adValues.onClickCloseBtn) {
onClickStartBtn = adValues.onClickCloseBtn;
} else {
onClickStartBtn = adValues.onClickStartBtn;
}
fwAd = this;
_FWAd = FWAd_AS2;
frameworkLoader = null;
lc = null;
loadFrameworkSuccess = false;
loadFrameworkFailed = false;
frameworkInitFinished = false;
System.security.allowDomain(swfDomain);
System.security.allowInsecureDomain(swfDomain);
fscommand ("showMenu", "false");
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
_root.menu = my_cm;
fscommand ("trapallkeys", "true");
loadGameCompleted = _root.getBytesLoaded() == _root.getBytesTotal();
frameworkLoader = createEmptyMovieClip("frameworkLoader", getNextHighestDepth());
frameworkLoader.createEmptyMovieClip("content", frameworkLoader.getNextHighestDepth());
mcl = new MovieClipLoader();
mcl.onLoadInit = function () {
FWAd_AS2.fwAd.loadFrameworkComplete();
};
mcl.onLoadError = function () {
FWAd_AS2.fwAd.loadFrameworkError();
};
restLoadFrameworkTimes = loadFrameworkTimes;
loadFramework();
var txt_sp = createEmptyMovieClip("txt_sp", getNextHighestDepth());
var DropShadowFilterClassName = "flash.filters.DropShadowFilter";
var DropShadowFilterClass = eval (DropShadowFilterClassName);
if (DropShadowFilterClass) {
txt_sp.filters = [new DropShadowFilterClass(0, 0, 0, 1, 2, 2, 4)];
}
var loadingBar_hei = 8;
var loadingBar_x = 10;
var loadingBar_wid = (wid - (2 * loadingBar_x));
loadingBar = createEmptyMovieClip("loadingBar", getNextHighestDepth());
loadingBar._x = loadingBar_x;
loadingBar._y = (hei - loadingBar_hei) - 6;
var loadingBar_bottom = loadingBar.createEmptyMovieClip("loadingBar_bottom", loadingBar.getNextHighestDepth());
loadingBar_bar = loadingBar.createEmptyMovieClip("loadingBar_bar", loadingBar.getNextHighestDepth());
var loadingBar_line = loadingBar.createEmptyMovieClip("loadingBar_line", loadingBar.getNextHighestDepth());
loadingBar_bottom.clear();
loadingBar_bottom.beginFill(3355443);
loadingBar_bottom.moveTo(0, 0);
loadingBar_bottom.lineTo(loadingBar_wid, 0);
loadingBar_bottom.lineTo(loadingBar_wid, loadingBar_hei);
loadingBar_bottom.lineTo(0, loadingBar_hei);
loadingBar_bottom.lineTo(0, 0);
loadingBar_bottom.endFill();
loadingBar_bar.clear();
var MatrixClassName = "flash.geom.Matrix";
var MatrixClass = eval (MatrixClassName);
if (MatrixClass) {
loadingBar_bar.beginGradientFill("linear", [16777215, 16750950], [100, 100], [63, 255], new MatrixClass(0.006, 0, 0, 1, 0, 0));
} else {
loadingBar_bar.beginFill(16750950);
}
loadingBar_bar._rotation = 90;
loadingBar_bar.moveTo(0, -loadingBar_wid);
loadingBar_bar.lineTo(loadingBar_hei, -loadingBar_wid);
loadingBar_bar.lineTo(loadingBar_hei, 0);
loadingBar_bar.lineTo(0, 0);
loadingBar_bar.lineTo(0, -loadingBar_wid);
loadingBar_bar.endFill();
loadingBar_line.clear();
loadingBar_line.lineStyle(1, 6710886);
loadingBar_line.moveTo(0, 0);
loadingBar_line.lineTo(loadingBar_wid, 0);
loadingBar_line.lineTo(loadingBar_wid, loadingBar_hei);
loadingBar_line.lineTo(0, loadingBar_hei);
loadingBar_line.lineTo(0, 0);
loadingBar_line.endFill();
loadingBar_bar._width = 1;
loadingBar_bar._xscale = 100;
switch (adType) {
case AD_TYPE_LOADING :
break;
default :
loadingBar._visible = false;
}
if (loadGameCompleted) {
loadingBar._visible = false;
} else {
loadingBar.onEnterFrame = function () {
FWAd_AS2.fwAd.loadGameProgress();
};
}
}
static function getParam(paramName) {
if (xml) {
return(String(xml.firstChild.attributes[paramName]));
}
trace("xml\u672A\u52A0\u8F7D\u5B8C\u6BD5, \u6216xml\u52A0\u8F7D\u5931\u8D25");
return(null);
}
static function showNews(_newsValues) {
clearInterval(checkNewsFirstInitIntervalId);
newsValues.wid = wid;
for (var _local3 in _newsValues) {
newsValues[_local3] = _newsValues[_local3];
}
if (newsValues.id) {
} else {
newsValues.id = id + "_news";
}
var _local4 = newsValues.container || _root;
if (_local4) {
newsLoader = _local4.createEmptyMovieClip("newsLoader", _local4.getNextHighestDepth());
newsLoader.createEmptyMovieClip("content", newsLoader.getNextHighestDepth());
newsLoader.x = newsValues.x;
newsLoader.y = newsValues.y;
newsMcl = new MovieClipLoader();
newsMcl.onLoadInit = function () {
FWAd_AS2.loadNewsComplete();
};
newsMcl.loadClip(newsSWFPath, newsLoader.content);
} else {
trace("\u672A\u6307\u5B9A\u5BB9\u5668,\u8BF7\u6539\u6210\u4F8B\u5982: FWAd_AS2.showNews({container:_root}");
}
news_lc = new LocalConnection();
}
static function loadNewsComplete() {
clearInterval(checkNewsFirstInitIntervalId);
checkNewsFirstInitIntervalId = setInterval(checkNewsFirstInit, 100);
}
static function checkNewsFirstInit() {
var _local1 = Math.round(newsLoader.getBounds(newsLoader).xMin / 10);
if (_local1 < -1000) {
clearInterval(checkNewsFirstInitIntervalId);
news_lc.send("_News" + _local1, "that2this", "newsValues", newsValues);
}
}
static function showAd(_adValues) {
var _local6 = {x:xx, y:yy, wid:wid, hei:hei, id:id, adType:AD_TYPE_CONTAINER};
for (var _local3 in _adValues) {
_local6[_local3] = _adValues[_local3];
}
if (_adValues) {
if (_adValues.starPoolID && (_adValues.starSubPoolID)) {
_local6.id = (_adValues.starPoolID + newline) + _adValues.starSubPoolID;
}
}
var _local4 = _local6.container || _root;
if (_local4) {
if (_local6.adType == AD_TYPE_LOADING) {
if (hasLoadOnce) {
trace("\u7F13\u51B2\u5E7F\u544A\u4E0D\u5141\u8BB8\u77ED\u65F6\u95F4\u5185\u91CD\u590D\u521D\u59CB\u5316");
return(undefined);
}
hasLoadOnce = true;
}
} else {
trace("\u672A\u6307\u5B9A\u5BB9\u5668,\u8BF7\u6539\u6210\u4F8B\u5982: FWAd_AS2.showAd({container:_root}");
return(undefined);
}
_local4.attachMovie("FWAd_AS2", "fwAd", _local4.getNextHighestDepth(), {adValues:_local6});
}
function loadFramework() {
mcl.loadClip(frameworkSWFPath, frameworkLoader.content);
_global.clearTimeout(timeoutId);
timeoutId = _global.setTimeout(loadFrameworkTimeout, loadFrameworkTimeoutTime * 1000);
}
function loadGameProgress() {
switch (adType) {
case AD_TYPE_LOADING :
var _local3 = _root.getBytesLoaded() / _root.getBytesTotal();
loadingBar_bar._xscale = 100;
loadingBar_bar._yscale = _local3 * 100;
if (_local3 >= 1) {
loadingBar.onEnterFrame = null;
loadGameComplete();
}
break;
default :
loadingBar.onEnterFrame = null;
}
}
function loadGameComplete() {
hasLoadOnce = false;
loadGameCompleted = true;
loadingBar._visible = false;
checkLoadGameCompleteAndTryStart();
if (frameworkInitFinished) {
lc.send(lc_sendName, "that2this", "loadGameCompleted");
}
}
function loadFrameworkComplete() {
onEnterFrame = checkFrameworkFirstInit;
}
function checkFrameworkFirstInit() {
var _local4 = Math.round(frameworkLoader.getBounds(frameworkLoader).xMin / 10);
if (_local4 < -1000) {
onEnterFrame = null;
lc_connName = "_FWAd" + _local4;
lc_sendName = "_Framework" + _local4;
lc = new LocalConnection();
lc.allowDomain = function () {
return(true);
};
lc.allowInsecureDomain = function () {
return(true);
};
lc.onStatus = function () {
var _local2 = arguments[0];
if (!(_local2.level === "error")) {
} else {
trace("lc error");
}
};
lc.connect(lc_connName);
lc.that2this = function () {
FWAd_AS2.fwAd.Framework2FWAd.apply(FWAd_AS2.fwAd, arguments);
};
_global.clearTimeout(timeoutId);
loadFrameworkSuccess = true;
checkLoadGameCompleteAndTryStart();
}
}
function loadFrameworkTimeout() {
trace("loadFrameworkTimeout");
fwAd.loadFrameworkError();
}
function loadFrameworkError() {
trace("\u5269\u4F59\u5C1D\u8BD5\u52A0\u8F7D\u6B21\u6570:" + restLoadFrameworkTimes);
_global.clearTimeout(timeoutId);
if ((--restLoadFrameworkTimes) < 0) {
loadFrameworkFailed = true;
checkLoadGameCompleteAndTryStart();
} else {
mcl.uploadClip();
loadFramework();
}
}
function Framework2FWAd() {
switch (arguments[0]) {
case "initFinished" :
frameworkInitFinished = true;
lc.send(lc_sendName, "that2this", "confirmInitFinished", getFWAdValuesByNameArr(arguments.slice(1)));
break;
case "clickStartBtn" :
clickStartBtn();
break;
case "canNotShowAd" :
case "noId" :
canNotShowAd = true;
checkLoadGameCompleteAndTryStart();
break;
case "xml" :
xml = new XML(arguments[1]);
onLoadXML();
}
}
function getFWAdValuesByNameArr(nameArr) {
var _local3 = new Object();
for (var _local4 in nameArr) {
var _local1 = nameArr[_local4];
_local3[_local1] = FWAd_AS2[_local1];
}
return(_local3);
}
function checkLoadGameCompleteAndTryStart() {
if (loadGameCompleted) {
if (loadFrameworkFailed) {
trace("\u52A0\u8F7D framework \u5931\u8D25");
if (ifLoadFrameworkErrorCanPlayGame || (checkIsOurDomain())) {
trace("\u81EA\u52A8\u8DF3\u5230\u6E38\u620F");
clickStartBtn();
} else {
trace("\u4E0D\u81EA\u52A8\u8DF3\u5230\u6E38\u620F");
}
} else if (canNotShowAd) {
if (checkIsOurDomain()) {
clickStartBtn();
}
}
}
}
function checkIsOurDomain() {
if (_root._url) {
var _local2 = _root._url.toLowerCase();
return((((_local2.indexOf(".youyouwin.com/") > 0) || (_local2.indexOf(".7k7k.com/") > 0)) || (_local2.indexOf(".flash8.net/") > 0)) || (_local2.indexOf("file:///") == 0));
}
return(true);
}
function clickStartBtn() {
if (onClickStartBtn != null) {
onClickStartBtn();
onClickStartBtn = null;
}
removeMovieClip();
var _local4 = new Array();
for (var _local5 in _parent) {
var _local3 = _parent[_local5];
if (_local3 instanceof MovieClip) {
var _local2 = _local3.getDepth();
if (_local2 >= 0) {
_local4[_local2] = true;
}
}
}
var _local2 = 65535;
while (_local2 >= 0) {
if (_local4[_local2]) {
} else {
swapDepths(_local2);
break;
}
_local2--;
}
removeMovieClip();
_visible = false;
_x = -10000;
}
function closeAd() {
clickStartBtn();
}
static var ifLoadFrameworkErrorCanPlayGame = true;
static var loadFrameworkTimeoutTime = 8;
static var loadFrameworkTimes = 2;
static var ifAdFailCanPlayGame = true;
static var ifAddCallBackErrorCanPlayGame = false;
static var swfDomain = "www.freegameswow.com";
static var swfFolder = ("http://" + swfDomain) + "/fgAds/";
static var frameworkSWFPath = swfFolder + "Framework.swf";
static var newsSWFPath = swfFolder + "News.swf";
static var AD_TYPE_LOADING = "loading";
static var AD_TYPE_CONTAINER = "container";
static var adType = AD_TYPE_LOADING;
static var hasLoadOnce = false;
static var newsValues = {x:0, y:0};
static var checkNewsFirstInitIntervalId = -1;
var timeoutId = -1;
}
Symbol 1070 MovieClip [__Packages.as2.Ilib] Frame 0
class as2.Ilib
{
function Ilib () {
}
static function newTdEffect($target, $name, $depth, $image, $dx, $dy, $wframe, $hframe, $interval, $loop) {
var _local2 = $target.createEmptyMovieClip($name, $depth);
_local2.lrposition = 0;
_local2.udposition = 0;
_local2.clocker = 0;
_local2.loop = $loop;
_local2.interval = $interval;
_local2.wframe = $wframe;
_local2.hframe = $hframe;
_local2.image = $image;
_local2.width = _local2.image.width / _local2.wframe;
_local2.height = _local2.image.height / _local2.hframe;
_local2.cxx = ((-_local2.width) / 2) + $dx;
_local2.cyy = ((-_local2.height) / 2) + $dy;
_local2.createEmptyMovieClip("effectmc", 0);
_local2.effectmc._x = _local2.cxx;
_local2.effectmc._y = _local2.cyy;
loadImage(_local2.effectmc, cutImage(_local2.image, 0, 0, _local2.width, _local2.height));
_local2.animation = function () {
this.clocker++;
if (this.clocker > this.interval) {
if (this.lrposition == (this.wframe - 1)) {
this.lrposition = 0;
if (this.udposition < (this.hframe - 1)) {
this.udposition++;
} else if (this.loop) {
this.udposition = 0;
} else {
removeMovieClip(this);
}
} else {
this.lrposition++;
}
if (this.effectmc != null) {
removeMovieClip(this.effectmc);
}
this.createEmptyMovieClip("effectmc", 0);
this.effectmc._x = this.cxx;
this.effectmc._y = this.cyy;
as2.Ilib.loadImage(this.effectmc, as2.Ilib.cutImage(this.image, this.lrposition * this.width, this.udposition * this.height, this.width, this.height));
this.clocker = 0;
}
};
return(_local2);
}
static function newSound($target, $name, $link, $load, $loop) {
$target.gs = (($target.gs == undefined) ? 0 : (Number($target.gs) + 1));
$target[$name] = new Sound($target.createEmptyMovieClip("mc_" + $target.gs, $target.gs));
if ($load) {
$target[$name].loadSound($link, true);
} else {
$target[$name].attachSound($link, true);
}
if ($loop == 0) {
$target[$name].onSoundComplete = function () {
this.start();
};
$target[$name].start();
} else {
$target[$name].start(0, $loop);
}
return($target[$name]);
}
static function setValue($array, $value, $number) {
var _local3 = 30;
var _local4 = Math.floor(Math.random() * _local3);
var _local2 = Math.floor(Math.random() * _local3);
while (_local4 == _local2) {
_local2 = Math.floor(Math.random() * _local3);
}
var _local1 = Math.floor(Math.random() * _local3);
while ((_local4 == _local1) || (_local2 == _local1)) {
_local1 = Math.floor(Math.random() * _local3);
}
var _local5 = $value + $number;
_local5 = (isNaN(_local5) ? 0 : (_local5));
var _local7 = Math.floor((Math.random() * _local5) / 2);
var _local6 = Math.floor((Math.random() * _local5) / 2);
var _local8 = (_local5 - _local7) - _local6;
$array[_local4] = _local7;
$array[_local2] = _local6;
$array[_local1] = _local8;
return([_local4, _local2, _local1]);
}
static function getValue($array, $id) {
var _local4 = 0;
var _local1 = 0;
while (_local1 < $id.length) {
_local4 = _local4 + (($array[$id[_local1]] == undefined) ? 0 : ($array[$id[_local1]]));
_local1++;
}
return(_local4);
}
static function getChar($number) {
return(String.fromCharCode(int($number)));
}
static function getCode($string) {
return($string.charCodeAt(0));
}
static function objChange($object) {
return($object.mathCode == mathObject($object));
}
static function reLoad() {
getURL ("javascript:window.location.reload();");
}
static function getHttp() {
return(flash.external.ExternalInterface.call("window.location.href.toString"));
}
static function setWindow($window, $showmenu, $center, $trapallkeys, $usecodepage, $hquality) {
Stage.scaleMode = ($window ? "noScale" : "showAll");
Stage.showMenu = $showmenu;
Stage.align = ($center ? "T" : "TL");
fscommand ("trapallkeys", $trapallkeys);
System.security.allowDomain("*");
System.security.allowInsecureDomain("*");
System.useCodepage = $usecodepage;
_quality = ($hquality ? "HIGH" : "MEDIUM");
}
static function systemMenu($array) {
var _local4 = new ContextMenu();
_local4.hideBuiltInItems();
var _local2 = 0;
while (_local2 < $array.length) {
_local4.customItems.push(new ContextMenuItem($array[_local2].title, $array[_local2].func));
_local2++;
}
_root.menu = _local4;
}
static function setSO($name) {
return(SharedObject.getLocal($name));
}
static function varText($target, $htmltext, $x, $y) {
var _local2 = $target;
if ((_local2.T == null) || (_local2.T == undefined)) {
_local2.createTextField("T", 0, 0, 0, 0, 0);
}
_local2.T.selectable = false;
_local2.T.autoSize = "left";
_local2.T.html = true;
_local2.T.htmlText = $htmltext;
_local2.T._width = _local2.T.textWidth + 5;
_local2.T._height = _local2.T.textHeight + 5;
_local2.T._x = (-_local2.T._width) / 2;
_local2.T._y = (-_local2.T._height) / 2;
_local2._x = $x + (_local2.T._width / 2);
_local2._y = $y;
_local2.tim = 30;
_local2._xscale = (_local2._yscale = 0);
_local2.filters = [setGlows(0, 100, 3, 3, 3, 1, false)];
_local2.fun = function () {
if (this._xscale < 130) {
this._xscale = (this._yscale = this._xscale + 30);
} else {
this._xscale = (this._yscale = 130);
}
if (this.tim > 0) {
this.tim--;
this._y--;
} else {
removeMovieClip(this);
}
};
return(_local2);
}
static function varsLoader($file, $onData, $onLoad) {
var _local1 = new LoadVars();
_local1.onData = $onData;
_local1.onLoad = $onLoad;
_local1.load($file);
return(_local1);
}
static function clipLoader($target, $file, $onLoadError, $onLoadProgress, $onLoadComplete) {
var _local2 = new MovieClipLoader();
var _local1 = new Object();
_local2.addListener(_local1);
_local1.onLoadError = $onLoadError;
_local1.onLoadProgress = $onLoadProgress;
_local1.onLoadComplete = $onLoadComplete;
_local2.loadClip($file, $target);
return(_local2);
}
static function setMatrix($target, $r, $g, $b) {
var _local2 = new Color($target);
var _local1 = {rb:$r, gb:$g, bb:$b};
_local2.setTransform(_local1);
_local2 = null;
}
static function setShadow($distance, $angle, $color, $alpha, $blurX, $blurY, $strong, $quality, $inner, $knockout) {
return(new flash.filters.DropShadowFilter($distance, $angle, $color, $alpha / 100, $blurX, $blurY, $strong, $quality, $inner, $knockout, false));
}
static function setBevel($size, $angle, $hcolor, $halpha, $lcolor, $lalpha, $blurX, $blurY, $strong, $quality, $knockout) {
return(new flash.filters.BevelFilter($size, $angle, $hcolor, $halpha / 100, $lcolor, $lalpha / 100, $blurX, $blurY, $strong, $quality, "inner", $knockout));
}
static function setBlurs($blurX, $blurY, $quality) {
return(new flash.filters.BlurFilter($blurX, $blurY, $quality));
}
static function setGlows($color, $alpha, $blurX, $blurY, $strong, $quality, $inner) {
return(new flash.filters.GlowFilter($color, $alpha / 100, $blurX, $blurY, $strong, $quality, $inner, false));
}
static function setColors($sxz, $bhd) {
var _local19 = (Math.min(180, Math.max(-180, $sxz)) / 180) * Math.PI;
var _local3 = Math.cos(_local19);
var _local2 = Math.sin(_local19);
var _local5 = 0.213;
var _local4 = 0.715;
var _local6 = 0.072;
var _local14 = (_local5 + (_local3 * (1 - _local5))) + (_local2 * (-_local5));
var _local18 = (_local4 + (_local3 * (-_local4))) + (_local2 * (-_local4));
var _local12 = (_local6 + (_local3 * (-_local6))) + (_local2 * (1 - _local6));
var _local13 = (_local5 + (_local3 * (-_local5))) + (_local2 * 0.143);
var _local17 = (_local4 + (_local3 * (1 - _local4))) + (_local2 * 0.14);
var _local8 = (_local6 + (_local3 * (-_local6))) + (_local2 * -0.283);
var _local9 = (_local5 + (_local3 * (-_local5))) + (_local2 * (-(1 - _local5)));
var _local16 = (_local4 + (_local3 * (-_local4))) + (_local2 * _local4);
var _local7 = (_local6 + (_local3 * (1 - _local6))) + (_local2 * _local6);
var _local20 = [_local14, _local18, _local12, 0, 0, _local13, _local17, _local8, 0, 0, _local9, _local16, _local7, 0, 0, 0, 0, 0, 1, 0];
var _local1 = int((100 + $bhd) / 10) / 10;
var _local10 = 0.3086;
var _local15 = 0.6094;
var _local11 = 0.082;
_local14 = ((1 - _local1) * _local10) + _local1;
_local18 = (1 - _local1) * _local15;
_local12 = (1 - _local1) * _local11;
_local13 = (1 - _local1) * _local10;
_local17 = ((1 - _local1) * _local15) + _local1;
_local8 = (1 - _local1) * _local11;
_local9 = (1 - _local1) * _local10;
_local16 = (1 - _local1) * _local15;
_local7 = ((1 - _local1) * _local11) + _local1;
var _local21 = [_local14, _local18, _local12, 0, 0, _local13, _local17, _local8, 0, 0, _local9, _local16, _local7, 0, 0, 0, 0, 0, 1, 0];
return([new flash.filters.ColorMatrixFilter(_local20), new flash.filters.ColorMatrixFilter(_local21)]);
}
static function getImage($link) {
return(flash.display.BitmapData.loadBitmap($link));
}
static function attachImage($target, $load, $name, $depth, $x, $y) {
var _local1 = $target.createEmptyMovieClip($name, $depth);
_local1._x = $x;
_local1._y = $y;
loadImage(_local1, ((typeof($load) == "string") ? (getImage($load)) : ($load)));
return(_local1);
}
static function loadImage($target, $data) {
$target.attachBitmap($data, 0, "always", true);
}
static function drawImage($target, $width, $height) {
var _local1 = new flash.display.BitmapData($width, $height, true, 0);
_local1.draw($target);
return(_local1);
}
static function cutImage($data, $sx, $sy, $width, $height) {
var _local1 = new flash.display.BitmapData($width, $height, true, 0);
_local1.copyPixels($data, new flash.geom.Rectangle($sx, $sy, $width, $height), new flash.geom.Point(0, 0));
return(_local1);
}
static function copyArray($array) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < $array.length) {
if (((typeof($array[_local1]) == "string") || (typeof($array[_local1]) == "number")) || (typeof($array[_local1]) == "boolean")) {
_local3[_local1] = $array[_local1];
} else if ($array[_local1] instanceof Array) {
_local3[_local1] = copyArray($array[_local1]);
} else if ($array[_local1] instanceof Object) {
_local3[_local1] = copyObject($array[_local1]);
}
_local1++;
}
return(_local3);
}
static function copyObject($object) {
var _local2 = new Object();
for (var _local3 in $object) {
if (((typeof($object[_local3]) == "string") || (typeof($object[_local3]) == "number")) || (typeof($object[_local3]) == "boolean")) {
_local2[_local3] = $object[_local3];
} else if ($object[_local3] instanceof Array) {
_local2[_local3] = copyArray($object[_local3]);
} else if ($object[_local3] instanceof Object) {
_local2[_local3] = copyObject($object[_local3]);
}
}
return(_local2);
}
static function mathArray($array) {
var _local4 = 1.123456789;
var _local3 = 1;
var _local1 = 0;
while (_local1 < $array.length) {
if ($array[_local1] == "") {
_local3 = 1.123456789;
} else if (typeof($array[_local1]) == "number") {
_local3 = $array[_local1];
} else if ($array[_local1] instanceof Array) {
_local3 = mathArray($array[_local1]);
} else if ($array[_local1] instanceof Object) {
_local3 = mathObject($array[_local1]);
} else if ($array[_local1] instanceof MovieClip) {
_local3 = toMath($array[_local1]._name);
} else if (($array[_local1] instanceof String) && (String($array[_local1]).length > 0)) {
_local3 = mathArray(String($array[_local1]).split(""));
} else {
_local3 = String($array[_local1]).charCodeAt(0);
}
if (typeof($array[_local1]) == "number") {
_local4 = _local4 + (_local3 / _local4);
} else {
switch (_local1 % 2) {
case 0 :
_local4 = _local4 * _local3;
break;
case 1 :
_local4 = _local4 / _local3;
}
}
_local1++;
}
return(_local4);
}
static function mathObject($object) {
var _local2 = new Array();
for (var _local3 in $object) {
_local2.push((_local3 + ":") + $object[_local3]);
}
return(toMath(_local2.toString()));
}
static function notRepeat($array) {
var _local1 = new Array();
var _local3 = 0;
var _local2 = 0;
var _local5 = true;
_local3 = 0;
while (_local3 < $array.length) {
if ($array[_local3] instanceof MovieClip) {
_local5 = true;
_local2 = 0;
while (_local2 < _local1.length) {
if ((_local1[_local2] instanceof MovieClip) && ($array[_local3] == _local1[_local2])) {
_local5 = false;
break;
}
_local2++;
}
if (_local5) {
_local1.push($array[_local3]);
}
} else if ($array[_local3] instanceof Array) {
_local5 = true;
_local2 = 0;
while (_local2 < _local1.length) {
if ((_local1[_local2] instanceof Array) && (mathArray($array[_local3]) == mathArray(_local1[_local2]))) {
_local5 = false;
break;
}
_local2++;
}
if (_local5) {
_local1.push(copyArray($array[_local3]));
}
} else if ($array[_local3] instanceof Object) {
_local5 = true;
_local2 = 0;
while (_local2 < _local1.length) {
if ((_local1[_local2] instanceof Object) && (mathObject($array[_local3]) == mathObject(_local1[_local2]))) {
_local5 = false;
break;
}
_local2++;
}
if (_local5) {
_local1.push(copyObject($array[_local3]));
}
} else if (_local1.join("-").indexOf($array[_local3].toString()) == -1) {
_local1.push($array[_local3]);
}
_local3++;
}
while ($array.length > 0) {
$array.pop();
}
_local3 = 0;
while (_local3 < _local1.length) {
if (_local1[_local3] instanceof MovieClip) {
$array.push(_local1[_local3]);
} else if (_local1[_local3] instanceof Array) {
$array.push(copyArray(_local1[_local3]));
} else if (_local1[_local3] instanceof Object) {
$array.push(copyObject(_local1[_local3]));
} else {
$array.push(_local1[_local3]);
}
_local3++;
}
_local1 = null;
}
static function addInArray($array, $target, $id) {
if ($id == 0) {
$array.unshift($target);
} else if ($id == $array.length) {
$array.push($target);
} else {
var _local1 = $array.length;
while (_local1 > $id) {
$array[_local1] = $array[_local1 - 1];
_local1--;
}
$array[$id] = $target;
}
}
static function changeArray($array, $a, $b) {
var _local2 = $array[$a];
$array[$a] = $array[$b];
$array[$b] = _local2;
}
static function sortArray($array, $perty, $elevator) {
if ((($perty == null) || ($perty == "")) || ($perty == undefined)) {
if (typeof($array[0]) == "number") {
$array.sort(Array.NUMERIC);
} else {
$array.sort(Array.CASEINSENSITIVE);
}
} else {
if ($array[0] instanceof Array) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < $array.length) {
_local3[_local2] = {prop:$array[_local2][$perty], target:copyArray($array[_local2])};
_local2++;
}
sortArray(_local3, "prop", $elevator);
while ($array.length > 0) {
$array.pop();
}
_local2 = 0;
while (_local2 < _local3.length) {
$array[_local2] = copyArray(_local3[_local2].target);
_local2++;
}
_local3 = null;
return(undefined);
}
if ($array[0] instanceof MovieClip) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < $array.length) {
_local3[_local2] = {prop:$array[_local2][$perty], target:$array[_local2]};
_local2++;
}
sortArray(_local3, "prop", $elevator);
while ($array.length > 0) {
$array.pop();
}
_local2 = 0;
while (_local2 < _local3.length) {
$array[_local2] = _local3[_local2].target;
_local2++;
}
_local3 = null;
return(undefined);
}
if (typeof($array[0][$perty]) == "number") {
$array.sortOn($perty, Array.NUMERIC);
} else {
$array.sortOn($perty, Array.CASEINSENSITIVE);
}
}
if ($elevator) {
$array.reverse();
}
}
static function getShortRoad($array, $sy, $sx, $ey, $ex, $value, $four) {
var _local12 = 1;
var _local2 = 1;
var _local3 = 0;
var _local4 = 0;
var _local7 = 0;
var _local6 = 0;
var _local13 = $array.length;
var _local11 = $array[0].length;
if (((((((($sx < 0) || ($sy < 0)) || ($ex < 0)) || ($ey < 0)) || ($sx >= _local11)) || ($sy >= _local13)) || ($ex >= _local11)) || ($ey >= _local13)) {
return(new Array());
}
var _local5 = 0;
var _local10 = 0;
var _local17 = false;
var _local9;
if ($four) {
_local9 = new Array([1, 0], [0, 1], [-1, 0], [0, -1]);
} else {
_local9 = new Array([1, 0], [1, 1], [0, 1], [-1, 1], [-1, 0], [-1, -1], [0, -1], [1, -1]);
}
var _local1 = new Array();
var _local8 = new Array();
var _local16 = new Array();
_local7 = 0;
while (_local7 < _local13) {
_local8[_local7] = new Array();
_local6 = 0;
while (_local6 < _local11) {
_local8[_local7][_local6] = (($array[_local7][_local6] == $value) ? 0 : 1);
_local6++;
}
_local7++;
}
_local8[$sy][$sx] = 0;
_local8[$ey][$ex] = 0;
_local1[1] = [$ex, $ey, 1, 0];
while (_local1[_local2] != undefined) {
_local5 = 0;
while (_local5 < _local9.length) {
_local3 = _local1[_local2][0] + _local9[_local5][0];
_local4 = _local1[_local2][1] + _local9[_local5][1];
if ((((_local3 > -1) && (_local3 < _local11)) && (_local4 > -1)) && (_local4 < _local13)) {
if (_local8[_local4][_local3] == 0) {
_local12++;
_local1[_local12] = [_local3, _local4, _local1[_local2][2] + 1, _local2];
_local8[_local4][_local3] = 1;
}
}
_local5++;
}
if ((_local1[_local2][0] == $sx) && (_local1[_local2][1] == $sy)) {
_local17 = true;
_local10 = _local2;
break;
}
_local2++;
}
if (_local17) {
while (_local10 > 0) {
_local16.push([_local1[_local10][1], _local1[_local10][0]]);
_local10 = _local1[_local10][3];
}
_local9 = null;
_local1 = null;
_local8 = null;
return(_local16);
}
_local9 = null;
_local1 = null;
_local8 = null;
_local16 = null;
return(new Array());
}
static function getMoveRoad($array, $syx, $value, $long, $four) {
var _local7 = new Array();
var _local6 = 0;
while (_local6 < $array.length) {
_local7[_local6] = new Array();
var _local5 = 0;
while (_local5 < $array[_local6].length) {
_local7[_local6][_local5] = $array[_local6][_local5];
_local5++;
}
_local6++;
}
var _local8 = [$syx];
var _local2 = ($four ? ([[-1, 0], [1, 0], [0, -1], [0, 1]]) : ([[-1, 0], [1, 0], [0, -1], [0, 1], [-1, -1], [-1, 1], [1, -1], [1, 1]]));
var _local12 = 0;
while (_local12 < _local8.length) {
var _local4 = _local8[_local12][0];
var _local3 = _local8[_local12][1];
var _local1 = 0;
while (_local1 < _local2.length) {
var _local9 = ((_local4 + _local2[_local1][0]) >= 0) && ((_local4 + _local2[_local1][0]) < _local7.length);
var _local13 = ((_local3 + _local2[_local1][1]) >= 0) && ((_local3 + _local2[_local1][1]) < _local7[0].length);
if (_local9 && (_local13)) {
var _local11 = _local8.join("-");
var _local10 = ((_local4 + _local2[_local1][0]) + ",") + (_local3 + _local2[_local1][1]);
if ((_local11.indexOf(_local10) == -1) && (_local7[_local4 + _local2[_local1][0]][_local3 + _local2[_local1][1]] == $value)) {
_local8.push([_local4 + _local2[_local1][0], _local3 + _local2[_local1][1]]);
}
}
_local1++;
}
_local7[_local4][_local3] = $value + 1;
if (_local8.length >= $long) {
break;
}
_local12++;
}
_local7 = null;
_local2 = null;
return(_local8);
}
static function getAngleFrame($angle) {
if (($angle > 22.5) && ($angle < 67.5)) {
return(2);
}
if (($angle > 67.5) && ($angle < 112.5)) {
return(1);
}
if (($angle > 112.5) && ($angle < 157.5)) {
return(8);
}
if (($angle > 157.5) || ($angle <= -157.5)) {
return(7);
}
if (($angle > -157.5) && ($angle <= -112.5)) {
return(6);
}
if (($angle > -112.5) && ($angle <= -67.5)) {
return(5);
}
if (($angle > -67.5) && ($angle <= -22.5)) {
return(4);
}
if (($angle > -22.5) && ($angle < 22.5)) {
return(3);
}
return(1);
}
static function getSpeedFrame($spx, $spy) {
if ($spx == 0) {
return((($spy < 0) ? 5 : 1));
}
if ($spy == 0) {
return((($spx < 0) ? 7 : 3));
}
if ($spx > 0) {
return((($spy < 0) ? 4 : 2));
}
return((($spy < 0) ? 6 : 8));
}
static function getAngleSpeed($rotation, $angle) {
var _local4 = (isNaN($angle) ? 0 : ($angle));
var _local1 = $rotation + _local4;
var _local3 = Math.cos((_local1 * Math.PI) / 180);
var _local2 = Math.sin((_local1 * Math.PI) / 180);
return([_local3, _local2]);
}
static function getObjectAngle($this, $com) {
return((Math.atan2($com._y - $this._y, $com._x - $this._x) * 180) / Math.PI);
}
static function getObjectSpeed($this, $com, $angle) {
var _local4 = (isNaN($angle) ? 0 : ($angle));
var _local1 = getObjectAngle($this, $com) + _local4;
var _local3 = Math.cos((_local1 * Math.PI) / 180);
var _local2 = Math.sin((_local1 * Math.PI) / 180);
return([_local3, _local2]);
}
static function getPointLong($pointX, $pointY) {
return(Math.floor(Math.sqrt(Math.pow($pointX, 2) + Math.pow($pointY, 2))));
}
static function getPointAngle($pointY, $pointX) {
return((Math.atan2($pointY, $pointX) * 180) / Math.PI);
}
static function getPointSpeed($pointY, $pointX, $angle) {
var _local4 = (isNaN($angle) ? 0 : ($angle));
var _local1 = getPointAngle($pointY, $pointX) + _local4;
var _local3 = Math.cos((_local1 * Math.PI) / 180);
var _local2 = Math.sin((_local1 * Math.PI) / 180);
return([_local3, _local2]);
}
static function getObjectLong($this, $com) {
return(Math.floor(Math.sqrt(Math.pow($this._x - $com._x, 2) + Math.pow($this._y - $com._y, 2))));
}
static function getExplv($exp, $lv) {
var _local2 = $exp;
var _local1 = 0;
while (_local1 <= $lv) {
_local2 = ((_local2 * _local1) / ($lv * 1.123456789)) + (_local1 * $exp);
_local1++;
}
return((isNaN(_local2) ? 0 : (Math.floor(_local2))));
}
static function getNegative($number) {
return((((Math.floor(Math.random() * 99) % 2) == 0) ? (-Math.abs($number)) : (Math.abs($number))));
}
static function getBinary($string, $nowBinary, $newBinary) {
var _local1 = parseInt($string, $nowBinary);
return(_local1.toString($newBinary));
}
static function toMath($data) {
var _local3 = 1;
var _local2 = $data.split("");
var _local1 = 0;
while (_local1 < _local2.length) {
switch (_local1 % 2) {
case 0 :
_local3 = _local3 * _local2[_local1].charCodeAt(0);
break;
case 1 :
_local3 = _local3 / _local2[_local1].charCodeAt(0);
}
_local1++;
}
_local2 = null;
return(_local3);
}
static function toWrite($data) {
var _local2 = $data.split("");
var _local1 = 0;
while (_local1 < _local2.length) {
_local2[_local1] = _local2[_local1].charCodeAt(0).toString(32);
_local1++;
}
var _local3 = _local2.join(" ");
_local2 = null;
return(_local3);
}
static function toRead($data) {
var _local2 = $data.split(" ");
var _local1 = 0;
while (_local1 < _local2.length) {
_local2[_local1] = String.fromCharCode(getBinary(_local2[_local1], 32, 10));
_local1++;
}
var _local3 = _local2.join("");
_local2 = null;
return(_local3);
}
}
Symbol 1071 MovieClip [__Packages.as2.Ikey] Frame 0
class as2.Ikey
{
var cd, no, tim, key, pres, input, mo;
function Ikey ($key, $time) {
cd = 0;
no = 0;
tim = ((($time == undefined) || ($time == null)) ? 8 : ($time));
key = ((($key == undefined) || ($key == null)) ? ([87, 83, 65, 68, 74, 75, 76, 85, 73, 79]) : ($key));
pres = [true, true, true, true, true, true, true, true, true, true];
input = new Array();
}
function getkey() {
return(key);
}
function getter($function) {
if (cd > 0) {
cd--;
} else if (input.length > 0) {
input = new Array();
}
if (((((Key.isDown(key[4]) && (Key.isDown(key[5]))) && (Key.isDown(key[6]))) && (pres[4])) && (pres[5])) && (pres[6])) {
$function([key[4], key[5], key[6]]);
pres[4] = false;
pres[5] = false;
pres[6] = false;
return(undefined);
}
if (((((Key.isDown(key[7]) && (Key.isDown(key[8]))) && (Key.isDown(key[9]))) && (pres[7])) && (pres[8])) && (pres[9])) {
$function([key[7], key[8], key[9]]);
pres[7] = false;
pres[8] = false;
pres[9] = false;
return(undefined);
}
no = 4;
while (no < pres.length) {
mo = 4;
while (mo < pres.length) {
if (((((no != mo) && (Key.isDown(key[no]))) && (Key.isDown(key[mo]))) && (pres[no])) && (pres[mo])) {
$function([key[no], key[mo]]);
pres[no] = false;
pres[mo] = false;
return(undefined);
}
mo++;
}
no++;
}
no = 0;
while (no < pres.length) {
if (Key.isDown(key[no]) && (pres[no])) {
input.push(key[no]);
if (no > 3) {
if (input.length > 1) {
$function(input);
}
input = new Array();
}
cd = tim;
pres[no] = false;
return(undefined);
}
no++;
}
no = 0;
while (no < pres.length) {
if (!Key.isDown(key[no])) {
pres[no] = true;
}
no++;
}
}
}
Symbol 206 MovieClip Frame 1
_rotation = random(360);
Symbol 243 MovieClip Frame 1
_rotation = random(360);
Symbol 252 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 3
_parent.act = false;
Symbol 252 MovieClip Frame 4
this._name = "mmc";
Symbol 262 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 3
_parent.act = false;
Symbol 262 MovieClip Frame 4
this._name = "mmc";
Symbol 269 MovieClip Frame 1
gotoAndStop(random(_totalframes) + 1);
Symbol 274 MovieClip Frame 1
stop();
Symbol 274 MovieClip Frame 3
this._name = "mmc";
Symbol 283 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 4
this._name = "mmc";
Symbol 292 MovieClip Frame 1
stop();
Symbol 292 MovieClip Frame 4
this._name = "mmc";
Symbol 295 MovieClip Frame 1
var radius = 55;
Symbol 298 MovieClip Frame 1
_rotation = random(360);
Symbol 326 MovieClip [PaoE] Frame 1
var radius = 33;
Symbol 327 MovieClip [ComB0] Frame 1
var act = true;
Symbol 329 MovieClip [PaoA] Frame 1
var radius = 35;
Symbol 330 MovieClip [ComB1] Frame 1
var act = true;
Symbol 331 MovieClip [ComB2] Frame 1
var act = true;
Symbol 332 MovieClip [ComB3] Frame 1
var act = true;
Symbol 336 MovieClip [ComB7] Frame 1
var act = true;
Symbol 485 MovieClip [Boom Sound] Frame 1
gotoAndStop(random(3) + 2);
Symbol 485 MovieClip [Boom Sound] Frame 2
removeMovieClip(this);
Symbol 485 MovieClip [Boom Sound] Frame 3
removeMovieClip(this);
Symbol 485 MovieClip [Boom Sound] Frame 4
removeMovieClip(this);
Symbol 591 MovieClip [Shot_A] Frame 1
stop();
Symbol 593 MovieClip [Shot_B] Frame 1
stop();
Symbol 595 MovieClip [Shot_C] Frame 1
stop();
Symbol 602 MovieClip Frame 1
function loadMapA($target) {
var _local3 = $target.createEmptyMovieClip("m" + gs, gs++);
var _local2 = as2.Ilib.attachImage(_local3, "Land_A" + random(4), "land", 0, 0, 0);
var _local1 = 1;
while (_local1 < 26) {
as2.Ilib.attachImage(_local2, "Obs_A" + (random(6) + 3), "obs" + _local1, _local1, random(50) * 10, _local1 * 16);
_local1++;
}
_local1 = 26;
while (_local1 < 39) {
as2.Ilib.attachImage(_local2, "Obs_A" + random(3), "obs" + _local1, _local1, random(50) * 10, (_local1 - 26) * 30);
_local1++;
}
$target.dat.push(as2.Ilib.drawImage(_local2, 480, 501));
removeMovieClip(_local2);
removeMovieClip(_local3);
}
function loadMapB($target, $x, $y) {
var _local3 = $target.createEmptyMovieClip("m" + gs, gs++);
var _local2 = as2.Ilib.attachImage(_local3, "Land_B", "land", 0, 0, 0);
var _local1 = 1;
while (_local1 < 7) {
as2.Ilib.attachImage(_local2, "Obs_B" + random(2), "obs" + _local1, _local1, random(50) * 10, _local1 * 80);
_local1++;
}
_local1 = 7;
while (_local1 < 25) {
as2.Ilib.attachImage(_local2, "Obs_B" + (random(6) + 4), "obs" + _local1, _local1, random(50) * 10, (_local1 - 6) * 23);
_local1++;
}
_local1 = 25;
while (_local1 < 30) {
as2.Ilib.attachImage(_local2, "Obs_B" + (random(2) + 2), "obs" + _local1, _local1, random(50) * 10, (_local1 - 25) * 60);
_local1++;
}
$target.dat.push(as2.Ilib.drawImage(_local2, 480, 500));
removeMovieClip(_local2);
removeMovieClip(_local3);
}
function loadMapC($target, $x, $y) {
var _local3 = $target.createEmptyMovieClip("m" + gs, gs++);
var _local2 = as2.Ilib.attachImage(_local3, "Land_C", "land", 0, 0, 0);
var _local1 = 1;
while (_local1 < 20) {
as2.Ilib.attachImage(_local2, "Obs_C" + (random(6) + 2), "obs" + _local1, _local1, random(50) * 10, _local1 * 23);
_local1++;
}
_local1 = 20;
while (_local1 < 30) {
as2.Ilib.attachImage(_local2, "Obs_C" + random(2), "obs" + _local1, _local1, random(50) * 10, (_local1 - 20) * 40);
_local1++;
}
$target.dat.push(as2.Ilib.drawImage(_local2, 480, 501));
removeMovieClip(_local2);
removeMovieClip(_local3);
}
function loadMapD($target, $x, $y) {
var _local3 = $target.createEmptyMovieClip("m" + gs, gs++);
var _local2 = as2.Ilib.attachImage(_local3, "Land_D" + random(4), "land", 0, 0, 0);
var _local1 = 1;
while (_local1 < 8) {
as2.Ilib.attachImage(_local2, "Obs_D" + random(2), "obs" + _local1, _local1, random(50) * 10, _local1 * 60);
_local1++;
}
_local1 = 8;
while (_local1 < 20) {
as2.Ilib.attachImage(_local2, "Obs_D" + (random(6) + 2), "obs" + _local1, _local1, random(50) * 10, (_local1 - 8) * 30);
_local1++;
}
$target.dat.push(as2.Ilib.drawImage(_local2, 480, 501));
removeMovieClip(_local2);
removeMovieClip(_local3);
}
function formatMap() {
myMap.dat = new Array();
myMap.dno = int(Map_Lenght / 2);
var _local3 = 0;
while (_local3 < Map_Lenght) {
switch (Map_Select) {
case 3 :
loadMapA(myMap);
break;
case 2 :
loadMapB(myMap);
break;
case 0 :
loadMapC(myMap);
break;
case 1 :
loadMapD(myMap);
}
_local3++;
}
myMap.arr = new Array();
myMap.arr.push(as2.Ilib.attachImage(myMap, myMap.dat[myMap.dno], "mc" + gs, gs++, 0, 140));
myMap.arr.push(as2.Ilib.attachImage(myMap, myMap.dat[myMap.dno], "mc" + gs, gs++, 0, -360));
myMap.fun = function () {
if ((this.arr.length > 2) && (this.arr[this.arr.length - 2]._y >= 140)) {
removeMovieClip(this.arr[0]);
this.arr.shift();
} else if ((this.arr.length > 1) && (this.arr[this.arr.length - 1]._y >= 0)) {
this.arr.push(as2.Ilib.attachImage(this, this.dat[this.dno], "mc" + gs, gs++, 0, -500));
this.dno = ((this.dno < (Map_Lenght - 1)) ? (this.dno + 1) : 0);
}
var _local2 = 0;
while (_local2 < this.arr.length) {
this.arr[_local2]._y = this.arr[_local2]._y + Map_Speed;
_local2++;
}
};
}
var This = this;
var gs = 1000;
var ts = 0;
var Finish = false;
var Lose = false;
var Map_Select = (_parent.Stage_Finish % 4);
var Map_Lenght = 8;
var Map_Speed = _parent.Map_Speed_Array[Map_Select];
This.createEmptyMovieClip("myMap", 1);
formatMap();
function setMatrix($target) {
var _local2 = $target.createEmptyMovieClip("col", 11);
if ($target.mc == null) {
as2.Ilib.setMatrix($target, 100, 100, 100);
_local2.wmc = $target;
} else {
as2.Ilib.setMatrix($target.mc, 100, 100, 100);
_local2.wmc = $target.mc;
}
_local2.tim = 2;
_local2.fun = function () {
if (this.tim > 0) {
this.tim--;
} else {
as2.Ilib.setMatrix(this.wmc, 0, 0, 0);
removeMovieClip(this);
}
};
}
function getCom() {
var _local1 = new Array();
for (var _local2 in myCom) {
if ((myCom[_local2].hp > 0) && (myCom[_local2].mc != null)) {
_local1.push(myCom[_local2]);
}
}
if (_local1.length == 0) {
return(null);
}
return(_local1[_local1.length - 1]);
}
function newShot($load, $x, $y, $angle, $hurt) {
var _local2 = myShot.attachMovie($load, "s" + gs, gs++, {_x:$x, _y:$y});
_local2._rotation = $angle;
_local2.hurt = $hurt;
_local2.fun = function () {
if ((((this._x < 0) || (this._x > 480)) || (this._y < 0)) || (this._y > 640)) {
removeMovieClip(this);
} else {
this._x = this._x + this.spx;
this._y = this._y + this.spy;
if (this.funx != undefined) {
this.funx();
}
}
};
return(_local2);
}
function Com_Shot_A($target, $load, $speed, $hurt, $x, $y) {
if ((((P1.hp <= 0) || (P1 == null)) || (P1.hp == undefined)) || (Finish)) {
return(undefined);
}
var _local2 = as2.Ilib.getPointSpeed(P1._y - $target._y, P1._x - $target._x, 0);
var _local1 = newShot($load, $target._x + $x, $target._y + $y, 0, $hurt);
_local1.boom = $load + "x";
_local1.com = true;
_local1.spx = _local2[0] * $speed;
_local1.spy = _local2[1] * $speed;
}
function Com_Shot_S($load, $x, $y, $many, $angle, $hurt, $rotation, $speed) {
if ((((P1.hp <= 0) || (P1 == null)) || (P1.hp == undefined)) || (Finish)) {
return(undefined);
}
var _local2 = 0;
while (_local2 < $many) {
var _local5 = _local2 - int($many / 2);
var _local4 = (_local5 * $angle) + $rotation;
var _local1 = newShot($load, $x, $y, _local4, $hurt);
_local1.boom = $load + "x";
_local1.com = true;
var _local3 = as2.Ilib.getAngleSpeed(_local1._rotation, 0);
_local1.spx = _local3[0] * $speed;
_local1.spy = _local3[1] * $speed;
_local2++;
}
}
function Player_Shot_A() {
P1.attachMovie("Sparte", "Sparte", 1, {_x:0, _y:-33});
var _local2 = newShot("Shot_S0", P1._x, P1._y, P1._rotation, (Shut_Lv * 4) + 2);
_local2._alpha = 30;
_local2._xscale = 100 + (Shut_Lv * 50);
_local2._yscale = _local2._xscale;
var _local3 = as2.Ilib.getAngleSpeed(_local2._rotation, -90);
_local2.spx = _local3[0] * 10;
_local2.spy = _local3[1] * 10;
_local2._x = _local2._x + (_local2.spx * 8);
_local2._y = _local2._y + (_local2.spy * 8);
_local2.funx = function () {
if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
};
}
function Player_Shot_B() {
if (P1.shutL == undefined) {
P1.shutL = 0;
}
if (P1.shutR == undefined) {
P1.shutR = 0;
}
if (P1.shutLR == undefined) {
P1.shutLR = true;
}
var _local2 = newShot("Shot_S1", P1._x, P1._y, P1._rotation, (Shut_Lv * 2) + 1);
var _local3 = as2.Ilib.getAngleSpeed(_local2._rotation, -90);
var _local4 = as2.Ilib.getAngleSpeed(_local2._rotation, 0);
_local2._alpha = 0;
_local2._xscale = 100 + (Shut_Lv * 50);
_local2._yscale = _local2._xscale;
_local2.spx = _local3[0] * 10;
_local2.spy = _local3[1] * 10;
_local2._x = _local2._x + ((_local4[0] * 11) + P1.shutL);
_local2._y = _local2._y + ((_local4[1] * 11) + P1.shutL);
_local2.funx = function () {
if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
};
_local2 = newShot("Shot_S1", P1._x, P1._y, P1._rotation, (Shut_Lv * 2) + 1);
_local3 = as2.Ilib.getAngleSpeed(_local2._rotation, -90);
_local2._alpha = 0;
_local2._xscale = 100 + (Shut_Lv * 50);
_local2._yscale = _local2._xscale;
_local2.spx = _local3[0] * 10;
_local2.spy = _local3[1] * 10;
_local2._x = _local2._x - ((_local4[0] * 11) + P1.shutR);
_local2._y = _local2._y - ((_local4[1] * 11) + P1.shutR);
_local2.funx = function () {
if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
};
if (P1.shutLR) {
if (P1.shutL < 4) {
P1.shutL = P1.shutL + 1;
P1.shutR = P1.shutR + 1;
} else {
P1.shutLR = false;
}
} else if (P1.shutL > 0) {
P1.shutL = P1.shutL - 1;
P1.shutR = P1.shutR - 1;
} else {
P1.shutLR = true;
}
}
function Player_Shot_C($load, $lv, $angle) {
var _local6 = int(2 + Shut_Lv);
var _local7 = int(_local6 / 2);
var _local3 = 0;
while (_local3 < _local6) {
var _local5 = (_local3 - _local7) * 2;
var _local2 = newShot("Shot_S2", P1._x, P1._y, _local5, (Shut_Lv / 2) + 1);
_local2._alpha = 30;
_local2._xscale = 100 + (Shut_Lv * 50);
_local2._yscale = _local2._xscale;
var _local4 = as2.Ilib.getAngleSpeed((((_local6 % 2) == 0) ? (_local2._rotation + 3) : (_local2._rotation)), _local5 - 90);
_local2.spx = _local4[0] * 10;
_local2.spy = _local4[1] * 10;
_local2._x = _local2._x + (_local2.spx * 8);
_local2._y = _local2._y + (_local2.spy * 8);
_local2.funx = function () {
if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
};
_local3++;
}
}
function Player_Dan_A() {
var _local3 = as2.Ilib.getAngleSpeed(P1._rotation, 0);
var _local5 = 2 + (Dan_Lv * 2);
var _local4 = 0;
while (_local4 < _local5) {
var _local2 = newShot("Shot_A", P1._x, P1._y, P1._rotation, 3);
_local2.wait = 30;
_local2.mxy = as2.Ilib.getAngleSpeed(_local2._rotation, -90);
if ((_local4 % 2) == 0) {
_local2._x = _local2._x + (_local3[0] * 18);
_local2._y = _local2._y + (_local3[1] * 18);
_local2.spx = ((_local3[0] * _local4) + _local3[0]) / 5;
_local2.spy = _local3[1];
} else {
_local2._x = _local2._x - (_local3[0] * 18);
_local2._y = _local2._y - (_local3[1] * 18);
_local2.spx = (-((_local3[0] * _local4) + _local3[0])) / 5;
_local2.spy = -_local3[1];
}
_local2.funx = function () {
if (this.wait > 0) {
this.wait--;
} else if ((this.mxy[0] != this.spx) || (this.mxy[1] != this.spy)) {
this.nextFrame();
this.spx = this.mxy[0] * 10;
this.spy = this.mxy[1] * 10;
}
};
_local4++;
}
}
function Player_Dan_B() {
var _local3 = as2.Ilib.getAngleSpeed(P1._rotation, 0);
var _local2 = newShot("Shot_B", P1._x, P1._y, P1._rotation, 6);
_local2.wait = 15;
_local2.mxy = as2.Ilib.getAngleSpeed(_local2._rotation, -90);
if (P1.lor) {
_local2._x = _local2._x + (_local3[0] * 18);
_local2._y = _local2._y + (_local3[1] * 18);
_local2.spx = _local3[0] * 2;
_local2.spy = _local3[1] * 2;
P1.lor = false;
} else {
_local2._x = _local2._x - (_local3[0] * 18);
_local2._y = _local2._y - (_local3[1] * 18);
_local2.spx = (-_local3[0]) * 2;
_local2.spy = (-_local3[1]) * 2;
P1.lor = true;
}
_local2.funx = function () {
if (this.wait > 0) {
this.wait--;
} else if ((this.mxy[0] != this.spx) || (this.mxy[1] != this.spy)) {
this.nextFrame();
this.spx = this.mxy[0] * 10;
this.spy = this.mxy[1] * 10;
}
};
}
function Player_Dan_C() {
var _local3 = newShot("Shot_C", P1._x, P1._y, P1._rotation - 90, 5);
_local3.wait = 10;
_local3.wmc = null;
_local3.rot = 0;
_local3.mxy = new Array();
var _local4 = as2.Ilib.getAngleSpeed(0, 0);
if (P1.lor) {
_local3._x = _local3._x + (_local4[0] * 18);
_local3._y = _local3._y + (_local4[1] * 18);
_local3.spx = _local4[0] * 2;
_local3.spy = _local4[1] * 2;
P1.lor = false;
} else {
_local3._x = _local3._x - (_local4[0] * 18);
_local3._y = _local3._y - (_local4[1] * 18);
_local3.spx = (-_local4[0]) * 2;
_local3.spy = (-_local4[1]) * 2;
P1.lor = true;
}
_local3.funx = function () {
if (this.wait > 0) {
this.wait--;
} else if (this._currentframe < 2) {
this.nextFrame();
this.mxy = as2.Ilib.getAngleSpeed(this._rotation, -90);
this.spx = this.mxy[0] * 10;
this.spy = this.mxy[1] * 10;
this.wmc = getCom();
if (this.wmc == null) {
this.spx = 0;
this.spy = -8;
}
} else if (this.wmc.hp > 0) {
this.rot = as2.Ilib.getObjectAngle(this, this.wmc);
var _local2 = 0;
while (_local2 < 8) {
if (this._rotation < this.rot) {
this._rotation = this._rotation + 1;
} else if (this._rotation > this.rot) {
this._rotation = this._rotation - 1;
}
_local2++;
}
this.mxy = as2.Ilib.getAngleSpeed(this._rotation, 0);
this.spx = this.mxy[0] * 8;
this.spy = this.mxy[1] * 8;
} else {
this.wmc = getCom();
}
};
}
This.createEmptyMovieClip("myShot", 8);
myShot.fun = function () {
for (var _local2 in this) {
if (this != this[_local2]) {
this[_local2].fun();
if (this[_local2].com && (P1.hit.hitTest(this[_local2]._x, this[_local2]._y, true))) {
setMatrix(P1);
P1.hp = P1.hp - this[_local2].hurt;
removeMovieClip(this[_local2]);
}
}
}
};
var KeyUp = _parent.Input_Key[0];
var KeyDown = _parent.Input_Key[1];
var KeyLeft = _parent.Input_Key[2];
var KeyRight = _parent.Input_Key[3];
var KeyFire = _parent.Input_Key[4];
var KeyBorn = _parent.Input_Key[5];
var XY_Move = [[-1, 0], [-1, 0], [0, -1], [0, -1], [0, 1], [0, 1], [1, 0], [1, 0], [0, 0]];
var AN_Move = [false, 0];
var X_Move = [30, 450];
var Y_Move = [30, 600];
var X_Speed = 5;
var Y_Speed = 5;
var R_Angle = 0;
var Shut_Lv = _parent.Power[0];
var Shut_Type = _parent.Power[1];
var Dan_Lv = _parent.Power[2];
var Dan_Type = _parent.Power[3];
var B_Times = [3, 3, 3, 3, 3, 3, 3, 10];
_parent.Born = B_Times[_parent.Stage_Finish];
This.attachMovie("Player", "P1", 5, {_x:240, _y:680});
P1.hpmax = 10;
P1.hp = P1.hpmax;
P1.xymovefun = function () {
if (AN_Move[0]) {
This._x = XY_Move[AN_Move[1]][0];
This._y = XY_Move[AN_Move[1]][1];
AN_Move[1]++;
if (AN_Move[1] >= XY_Move.length) {
AN_Move = [false, 0];
}
}
};
P1.movefun = function () {
if (Key.isDown(KeyUp) && (this._y > Y_Move[0])) {
this._y = this._y - Y_Speed;
} else if (Key.isDown(KeyDown) && (this._y < Y_Move[1])) {
this._y = this._y + Y_Speed;
}
if (Key.isDown(KeyLeft) && (this._x > X_Move[0])) {
this._x = this._x - X_Speed;
this._rotation = ((this._rotation > (-R_Angle)) ? (this._rotation - 1) : (-R_Angle));
} else if (Key.isDown(KeyRight) && (this._x < X_Move[1])) {
this._x = this._x + X_Speed;
this._rotation = ((this._rotation < R_Angle) ? (this._rotation + 1) : (R_Angle));
}
if ((!Key.isDown(KeyLeft)) && (!Key.isDown(KeyRight))) {
this._rotation = ((this._rotation < 0) ? (this._rotation + 1) : (((this._rotation > 0) ? (this._rotation - 1) : 0)));
}
P1x.func();
};
P1.shutfun = function () {
this.danstep++;
switch (Shut_Type) {
case 0 :
if ((this.danstep % 4) == 0) {
Player_Shot_A();
}
break;
case 1 :
if ((this.danstep % 6) == 0) {
Player_Shot_B();
}
break;
case 2 :
if ((this.danstep % 8) != 0) {
break;
}
Player_Shot_C();
}
switch (Dan_Type) {
case 0 :
if ((this.danstep % 30) == 0) {
Player_Dan_A();
}
break;
case 1 :
var _local2 = 20 - (Dan_Lv * 5);
if ((this.danstep % _local2) == 0) {
Player_Dan_B();
}
break;
case 2 :
_local2 = 25 - (Dan_Lv * 5);
if ((this.danstep % _local2) != 0) {
break;
}
Player_Dan_C();
}
};
P1.bornfun = function () {
if ((_parent.Born > 0) && (PlaneBoomAll.act)) {
PlaneBoomAll.bormfun();
_parent.Born--;
}
};
P1.unshut = true;
P1.firekeep = 0;
P1.danstep = 0;
P1.act = false;
P1.attackfun = function () {
if (Key.isDown(KeyBorn) && (this.unshut)) {
this.bornfun();
this.unshut = false;
}
if (Key.isDown(KeyFire) && (this.unshut)) {
while (this.firekeep < 30) {
this.firekeep = this.firekeep + 30;
}
this.unshut = false;
}
if ((!Key.isDown(KeyBorn)) && (!Key.isDown(KeyFire))) {
this.unshut = true;
}
if (this.firekeep > 0) {
this.shutfun();
this.firekeep--;
}
AN_Move[0] = this.firekeep > 0;
};
P1.spartefun = function () {
if ((this.Sparte != null) && (this.Sparte._currentframe >= this.Sparte._totalframes)) {
removeMovieClip(this.Sparte);
}
if (this.col != null) {
this.col.fun();
}
};
P1.opfun = function () {
if (this._y > 500) {
this._alpha = 50;
this._y = this._y - 3;
} else {
this.hp = this.hpmax;
this._alpha = 100;
this.act = true;
}
P1x.func();
};
P1.fun = function () {
if (Finish && (!Lose)) {
if (this._y > -80) {
this._y = this._y - 5;
} else if (!this.over) {
This.attachMovie("StageComplete", "StageComplete", 99);
this.over = true;
}
P1x.func();
} else if (this.act) {
if (this.hp > 0) {
this.movefun();
this.attackfun();
this.spartefun();
this.xymovefun();
} else {
Ilib.setMatrix(this, 0, 0, 0);
loadBoom(this, "Boom2");
var _local4 = 0;
while (_local4 < Shut_Lv) {
loadTool(this, "ToolA");
_local4++;
}
var _local3 = 0;
while (_local3 < Dan_Lv) {
loadTool(this, "ToolB");
_local3++;
}
Shut_Lv = 0;
Shut_Type = 0;
Dan_Type = -1;
if (_parent.Life > 0) {
_parent.Born = B_Times[_parent.Stage_Finish];
_parent.Life--;
} else {
GameOver();
}
if (this.Sparte != null) {
removeMovieClip(this.Sparte);
}
this.firekeep = 0;
this.act = false;
this._x = 240;
this._y = 880;
}
} else if (!Finish) {
this.opfun();
}
};
This.attachMovie("Playerx", "P1x", 6, {_x:P1._x, _y:P1._y});
P1x.func = function () {
this._rotation = this._rotation + 36;
this._x = P1._x;
this._y = P1._y;
};
This.createEmptyMovieClip("PlaneBoomAll", 9);
PlaneBoomAll.setBoom = function ($id, $x, $y) {
this.attachMovie("Boom Sound", "aud" + id, 40 + $id);
var _local3 = this.attachMovie("Boom2", "sb" + $id, $id, {_x:$x, _y:$y});
_local3.fun = function () {
this._y = this._y + Map_Speed;
if (this._currentframe >= this._totalframes) {
removeMovieClip(this);
} else {
this.nextFrame();
for (var _local2 in myCom) {
if (((myCom != myCom[_local2]) && (myCom[_local2].hp > 0)) && (this.hitTest(myCom[_local2]))) {
myCom[_local2].hp--;
}
}
}
};
};
PlaneBoomAll.setbormfun = function ($id, $x, $y) {
var _local2 = this.attachMovie("PlaneX1", "b" + $id, $id, {_x:$x, _y:$y});
_local2.id = $id;
_local2.fun = function () {
if (this._xscale > 30) {
this._xscale--;
this._yscale = this._xscale;
} else {
PlaneBoomAll.setBoom(this.id, this._x, this._y);
}
};
};
PlaneBoomAll.act = true;
PlaneBoomAll.bormfun = function () {
PlaneBoomAll.act = false;
var _local3 = 0;
while (_local3 < 12) {
var _local2 = this.attachMovie("PlaneX0", "m" + _local3, 20 + _local3, {_x:_local3 * 40, _y:640 + (random(30) * 10)});
_local2._visible = (_local3 % 2) == 0;
_local2.id = _local3;
_local2.setborm = (random(31) * 20) + 20;
_local2.act = true;
_local2.fun = function () {
if (this._y > -80) {
this._y = this._y - 8;
if ((this._y < this.setborm) && (this.act)) {
PlaneBoomAll.setbormfun(this.id, this._x, this._y);
this.act = false;
}
for (var _local2 in myShot) {
if (((myShot != myShot[_local2]) && (myShot[_local2].com)) && (this.hitTest(myShot[_local2]))) {
removeMovieClip(myShot[_local2]);
}
}
} else {
if (this.id == 11) {
PlaneBoomAll.act = true;
}
removeMovieClip(this);
}
};
_local3++;
}
};
PlaneBoomAll.fun = function () {
for (var _local2 in this) {
if (this != this[_local2]) {
this[_local2].fun();
}
}
};
function GameFinish() {
Finish = true;
}
function GameOver() {
if (!Lose) {
Lose = true;
Finish = true;
This.attachMovie("StageLose", "StageLose", 99);
}
}
function getTool($tool, $type) {
var _local2 = new Sound(myCom);
_local2.attachSound("getsomething");
_local2.start();
switch ($tool) {
case "ToolA" :
if (Shut_Type != $type) {
Shut_Lv = ((Shut_Lv > 0) ? (Shut_Lv - 1) : 0);
} else {
Shut_Lv = ((Shut_Lv < 4) ? (Shut_Lv + 1) : 4);
}
Shut_Type = $type;
break;
case "ToolB" :
if (Dan_Type != $type) {
Dan_Lv = ((Dan_Lv > 0) ? (Dan_Lv - 1) : 0);
} else {
Dan_Lv = ((Dan_Lv < 3) ? (Dan_Lv + 1) : 3);
}
Dan_Type = $type;
break;
case "ToolC" :
(((random(9) % 4) == 0) ? ((P1.hp = 10)) : ((((random(9) % 6) == 0) ? (_parent.Life++) : (_parent.Born++))));
}
}
function loadTool($target, $load) {
var _local2 = myTool.attachMovie($load, "tol" + gs, gs++, {_x:$target._x, _y:$target._y});
_local2.tool = $load;
_local2.rot = random(360);
_local2.fun = function () {
this.rot++;
var _local2 = as2.Ilib.getAngleSpeed(this.rot);
this._x = this._x + _local2[0];
this._y = this._y + _local2[1];
this._y = this._y + 0.5;
if (this._y > 680) {
removeMovieClip(this);
}
if (P1.hitTest(this._x, this._y, true)) {
getTool(this.tool, this.typ);
removeMovieClip(this);
}
};
}
function loadBoom($target, $load) {
myCom.attachMovie("Boom Sound", "sou" + gs, gs++);
var _local2 = myCom.attachMovie($load, "bom" + gs, gs++, {_x:$target._x, _y:$target._y});
_local2.fun = function () {
this._y = this._y + Map_Speed;
if (this._currentframe >= this._totalframes) {
removeMovieClip(this);
} else {
this.nextFrame();
}
};
return(_local2);
}
function loadRunner($target, $load, $depth, $road, $angle, $speed) {
var _local2 = $target.attachMovie($load, "mc" + $depth, $depth);
_local2.move_road = $road;
_local2.move_rno = 0;
_local2.move_ang = $angle;
_local2.move_sp = $speed;
_local2.move_t = 0;
_local2._x = _local2.move_road[_local2.move_rno][0];
_local2._y = _local2.move_road[_local2.move_rno][1];
var _local4 = _local2.move_road[_local2.move_rno + 1][0] - _local2._x;
var _local3 = _local2.move_road[_local2.move_rno + 1][1] - _local2._y;
_local2.move_p = as2.Ilib.getPointLong(_local4, _local3) / _local2.move_sp;
_local2.move_spx = _local4 / _local2.move_p;
_local2.move_spy = _local3 / _local2.move_p;
_local2._rotation = as2.Ilib.getPointAngle(_local3, _local4) + _local2.move_ang;
_local2.movefun = function () {
if (this.move_t < this.move_p) {
this._x = this._x + this.move_spx;
this._y = this._y + this.move_spy;
this.move_t++;
} else {
this.move_t = 0;
this.move_rno++;
if (this.move_rno >= this.move_road.length) {
removeMovieClip(this);
} else {
this.move_p = as2.Ilib.getPointLong(this.move_road[this.move_rno + 1][0] - this._x, this.move_road[this.move_rno + 1][1] - this._y) / this.move_sp;
this.move_spx = (this.move_road[this.move_rno + 1][0] - this._x) / this.move_p;
this.move_spy = (this.move_road[this.move_rno + 1][1] - this._y) / this.move_p;
this._rotation = as2.Ilib.getPointAngle(this.move_road[this.move_rno + 1][1] - this._y, this.move_road[this.move_rno + 1][0] - this._x) + this.move_ang;
}
}
};
return(_local2);
}
function loadBoss($load, $depth, $rotation, $x, $y, $hp, $boom) {
var _local3 = myCom.attachMovie($load, "mc" + $depth, $depth);
_local3._rotation = $rotation;
_local3._x = $x;
_local3._y = $y;
_local3.hp = $hp;
_local3.boom = $boom;
_local3.act = false;
_local3.wait = random(300) + 150;
_local3.mxy = new Array();
_local3.movefun = function () {
if (this.act) {
if (this.wait > 0) {
this.wait--;
} else {
this.wait = random(300) + 150;
this.mxy = [(random(41) * 10) + 40, (random(31) * 10) + 40];
}
this._x = this._x + ((this._x < this.mxy[0]) ? 0.5 : (((this._x > this.mxy[0]) ? -0.5 : 0)));
this._y = this._y + ((this._y < this.mxy[1]) ? 0.5 : (((this._y > this.mxy[1]) ? -0.5 : 0)));
} else if (this._y < 200) {
this._y++;
} else {
this.act = true;
}
};
_local3.fan = new Array();
_local3.die = 180;
_local3.fun = function () {
this.hp = (isNaN(this.hp) ? 6 : (this.hp));
if (this.hp > 0) {
this.movefun();
if (this.col != null) {
this.col.fun();
}
var _local2 = 0;
while (_local2 < this.fan.length) {
this.fan[_local2].funx();
_local2++;
}
} else if (this.die > 0) {
if ((this.die % 15) == 0) {
var _local3 = loadBoom(this, this.boom);
_local3._xscale = (_local3._yscale = 150);
_local3._x = this._x + (random(50) * (random(3) - 1));
_local3._y = this._y + (random(50) * (random(3) - 1));
}
this.die--;
} else {
var _local2 = 0;
while (_local2 < this.fan.length) {
this.fan[_local2].hp = 0;
this.fan[_local2].funx();
_local2++;
}
GameFinish();
var _local3 = loadBoom(this, this.boom);
_local3._xscale = (_local3._yscale = 200);
if (this.tool != null) {
loadTool(this, this.tool);
}
removeMovieClip(this);
}
};
return(_local3);
}
function loadBossX($load, $depth, $rotation, $x, $y, $hp, $boom, $master) {
var _local3 = myCom.attachMovie($load, "mc" + $depth, $depth);
_local3._rotation = $rotation;
_local3._x = $x;
_local3._y = $y;
_local3.hp = $hp;
_local3.boom = $boom;
_local3.master = $master;
_local3.xx = _local3._x - _local3.master._x;
_local3.yy = _local3._y - _local3.master._y;
_local3.fan = new Array();
_local3.funx = function () {
this.hp = (isNaN(this.hp) ? 6 : (this.hp));
if (this.hp > 0) {
if (this.col != null) {
this.col.fun();
}
this._x = this.master._x + this.xx;
this._y = this.master._y + this.yy;
var _local2 = 0;
while (_local2 < this.fan.length) {
this.fan[_local2].funx();
_local2++;
}
} else {
var _local3 = loadBoom(this, this.boom);
_local3._xscale = (_local3._yscale = 200);
if (this.tool != null) {
loadTool(this, this.tool);
}
removeMovieClip(this);
}
};
return(_local3);
}
function loadPao($target, $load, $depth, $rotation, $x, $y, $radius, $shotload, $shutwait, $shotmany, $shottimes, $shotstep, $shotangle, $shutrotation, $shotspeed, $shothurt, $airotation, $sound) {
var _local2 = $target.attachMovie($load, "mc" + $depth, $depth);
_local2._rotation = $rotation;
_local2._x = $x;
_local2._y = $y;
_local2.radius = $radius;
_local2.shot = $shotload;
_local2.tim = $shutwait;
_local2.many = $shotmany;
_local2.times = $shottimes;
_local2.step = $shotstep;
_local2.ang = $shotangle;
_local2.rota = $shutrotation;
_local2.speed = $shotspeed;
_local2.hurt = $shothurt;
_local2.airota = $airotation;
_local2.sec = 0;
_local2.mnum = 0;
_local2.msec = 0;
_local2.aud = new Sound(_local2);
_local2.aud.attachSound($sound);
_local2.funx = function () {
if (this.airota) {
this._rotation = as2.Ilib.getObjectAngle(this._parent, P1) - this._parent._rotation;
}
this.sec++;
if ((this.sec > this.tim) && (P1.hp > 0)) {
this.msec++;
if ((this.msec % this.step) == 0) {
if (this.airota) {
this.rota = this._rotation;
}
this.aud.start();
var _local2 = as2.Ilib.getAngleSpeed(this.rota, 0);
Com_Shot_S(this.shot, (this._parent._x + this._x) + (_local2[0] * this.radius), (this._parent._y + this._y) + (_local2[1] * this.radius), this.many, this.ang, this.hurt, this.rota, this.speed);
this.mnum++;
if (this.mnum >= this.times) {
this.mnum = 0;
this.msec = 0;
this.sec = 0;
}
}
}
};
return(_local2);
}
function loadComA($load, $road, $angle, $speed, $hp, $boom, $shotload, $shutwait, $shotspeed, $shothurt) {
var _local2 = loadRunner(myCom, $load, gs++, $road, $angle, $speed);
_local2.hp = $hp;
_local2.boom = $boom;
_local2.sec = 0;
_local2.tim = $shutwait;
_local2.shot = $shotload;
_local2.speed = $shotspeed;
_local2.hurt = $shothurt;
_local2.fun = function () {
this.hp = (isNaN(this.hp) ? 6 : (this.hp));
if (this.hp > 0) {
this.movefun();
this.mcx._rotation = this.mcx._rotation + 36;
if (this.col != null) {
this.col.fun();
}
this.sec++;
if ((this.sec > this.tim) && (P1.hp > 0)) {
Com_Shot_A(this, this.shot, this.speed, this.hurt, 0, 0);
this.sec = 0;
}
} else {
loadBoom(this, this.boom);
if (this.tool != null) {
loadTool(this, this.tool);
}
removeMovieClip(this);
}
};
return(_local2);
}
function loadComB($load, $depth, $spx, $spy, $x, $y, $rotation, $hp, $boom, $shotload, $shutwait, $shotmany, $shotstep, $shotspeed, $shothurt) {
var _local2 = myCom.attachMovie($load, "mc" + $depth, $depth, {_x:$x, _y:$y});
_local2._rotation = $rotation;
_local2.sec = 0;
_local2.hp = $hp;
_local2.boom = $boom;
_local2.spx = $spx;
_local2.spy = $spy;
_local2.tim = $shutwait;
_local2.shot = $shotload;
_local2.speed = $shotspeed;
_local2.hurt = $shothurt;
_local2.many = $shotmany;
_local2.step = $shotstep;
_local2.mnum = 0;
_local2.msec = 0;
_local2.fun = function () {
this.hp = (isNaN(this.hp) ? 6 : (this.hp));
if (this.hp > 0) {
this._x = this._x + this.spx;
this._y = this._y + this.spy;
if ((((this._x <= -40) || (this._x >= 520)) || (this._y <= -40)) || (this._y >= 680)) {
removeMovieClip(this);
} else {
this.mcx._rotation = this.mcx._rotation + 36;
if (this.col != null) {
this.col.fun();
}
this.sec++;
if ((this.sec > this.tim) && (P1.hp > 0)) {
this.msec++;
if ((this.msec % this.step) == 0) {
Com_Shot_A(this, this.shot, this.speed, this.hurt, 0, 0);
this.mnum++;
if (this.mnum >= this.many) {
this.msec = 0;
this.mnum = 0;
this.sec = 0;
}
}
}
}
} else {
loadBoom(this, this.boom);
if (this.tool != null) {
loadTool(this, this.tool);
}
removeMovieClip(this);
}
};
return(_local2);
}
function loadComC($load, $depth, $spx, $spy, $x, $y, $rotation, $hp, $boom, $shotload, $shutwait, $shotmany, $shottimes, $shotstep, $shotangle, $shutrotation, $shotspeed, $shothurt, $airotation) {
var _local2 = myCom.attachMovie($load, "mc" + $depth, $depth, {_x:$x, _y:$y});
_local2._rotation = $rotation;
_local2.sec = 0;
_local2.hp = $hp;
_local2.boom = $boom;
_local2.spx = $spx;
_local2.spy = $spy;
_local2.tim = $shutwait;
_local2.shot = $shotload;
_local2.speed = $shotspeed;
_local2.hurt = $shothurt;
_local2.many = $shotmany;
_local2.ang = $shotangle;
_local2.airota = $airotation;
_local2.rota = $shutrotation;
_local2.step = $shotstep;
_local2.times = $shottimes;
_local2.mnum = 0;
_local2.msec = 0;
_local2.fun = function () {
this.hp = (isNaN(this.hp) ? 6 : (this.hp));
if (this.hp > 0) {
this._x = this._x + this.spx;
this._y = this._y + this.spy;
if ((((this._x <= -40) || (this._x >= 520)) || (this._y <= -40)) || (this._y >= 680)) {
removeMovieClip(this);
} else {
this.mcx._rotation = this.mcx._rotation + 36;
if (this.col != null) {
this.col.fun();
}
this.sec++;
if ((this.sec > this.tim) && (P1.hp > 0)) {
this.msec++;
if ((this.msec % this.step) == 0) {
if (this.airota) {
this.rota = as2.Ilib.getObjectAngle(this, P1);
}
Com_Shot_S(this.shot, this._x, this._y, this.many, this.ang, this.hurt, this.rota, this.speed);
this.mnum++;
if (this.mnum >= this.times) {
this.mnum = 0;
this.msec = 0;
this.sec = 0;
}
}
}
}
} else {
loadBoom(this, this.boom);
if (this.tool != null) {
loadTool(this, this.tool);
}
removeMovieClip(this);
}
};
return(_local2);
}
function loadComD($load, $depth, $x, $y, $hp, $boom, $shotload, $shutwait, $shotmany, $shottimes, $shotstep, $shotangle, $shutrotation, $shotspeed, $shothurt, $airotation) {
var _local2 = myCom.attachMovie($load, "mc" + $depth, $depth, {_x:$x, _y:$y});
_local2.hpmax = $hp;
_local2.hp = _local2.hpmax;
_local2.boom = $boom;
_local2.tim = $shutwait;
_local2.shot = $shotload;
_local2.speed = $shotspeed;
_local2.hurt = $shothurt;
_local2.many = $shotmany;
_local2.ang = $shotangle;
_local2.airota = $airotation;
_local2.rota = $shutrotation;
_local2.step = $shotstep;
_local2.times = $shottimes;
_local2.sec = 0;
_local2.mnum = 0;
_local2.msec = 0;
_local2.radius = 0;
_local2.pao._rotation = 90;
_local2.movefun = function () {
this._y = this._y + Map_Speed;
if (this._y > 680) {
removeMovieClip(this);
}
};
_local2.paofun = function () {
if (this.pao != null) {
this.radius = this.pao.radius;
if (this.airota) {
this.pao._rotation = as2.Ilib.getObjectAngle(this, P1);
}
}
};
_local2.fun = function () {
this.hp = (isNaN(this.hp) ? 6 : (this.hp));
if (this.hp > 0) {
this.movefun();
this.paofun();
if (this.col != null) {
this.col.fun();
}
if (this.act) {
this.sec++;
if ((this.sec > this.tim) && (P1.hp > 0)) {
this.msec++;
if ((this.msec % this.step) == 0) {
if (this.airota) {
this.rota = as2.Ilib.getObjectAngle(this, P1);
}
var _local2 = as2.Ilib.getAngleSpeed(this.rota);
Com_Shot_S(this.shot, this._x + (_local2[0] * this.radius), this._y + (_local2[1] * this.radius), this.many, this.ang, this.hurt, this.rota, this.speed);
this.mnum++;
if (this.mnum >= this.times) {
this.mnum = 0;
this.msec = 0;
this.sec = 0;
}
}
}
} else {
as2.Ilib.setMatrix(this.mmc, 0, 0, 0);
}
} else {
loadBoom(this, this.boom);
if (this.tool != null) {
loadTool(this, this.tool);
}
if (this.mc._currentframe < this.mc._totalframes) {
this.mc.nextFrame();
this.hp = this.hpmax;
} else {
removeMovieClip(this);
}
}
};
return(_local2);
}
This.createEmptyMovieClip("myTool", 7);
myTool.fun = function () {
for (var _local2 in this) {
if (this != this[_local2]) {
this[_local2].fun();
}
}
};
This.createEmptyMovieClip("myCom", 4);
myCom.fun = function () {
for (var _local2 in this) {
if (this != this[_local2]) {
this[_local2].fun();
this.hitfun(this[_local2]);
}
}
};
myCom.hitfun = function ($target) {
for (var _local3 in myShot) {
if (((myShot[_local3] != myShot) && (!myShot[_local3].com)) && ($target.mc.hitTest(myShot[_local3]._x, myShot[_local3]._y, true))) {
setMatrix($target);
$target.hp = $target.hp - myShot[_local3].hurt;
_parent.Score = _parent.Score + 10;
removeMovieClip(myShot[_local3]);
break;
}
}
};
var Road = new Array();
Road[Road.length] = [[-30, 128], [268, 128], [314, 129], [340, 132], [358, 136], [372, 143], [385, 153], [397, 166], [406, 180], [412, 198], [416, 236], [416, 275], [413, 306], [406, 334], [394, 357], [377, 374], [351, 388], [313, 395], [264, 397], [-32, 397]];
Road[Road.length] = [[501, 110], [189, 110], [147, 112], [116, 115], [88, 121], [70, 129], [59, 141], [48, 161], [42, 182], [40, 198], [38, 226], [38, 260], [41, 281], [48, 300], [57, 317], [68, 334], [87, 353], [108, 367], [131, 376], [163, 383], [191, 386], [215, 386], [505, 386]];
Road[Road.length] = [[501, -23], [205, 180], [140, 230], [102, 272], [81, 312], [72, 362], [71, 420], [71, 668]];
Road[Road.length] = [[-43, 18], [287, 157], [336, 188], [372, 218], [387, 244], [400, 285], [410, 330], [412, 368], [412, 649], [413, 684]];
Road[Road.length] = [[67, 666], [67, 224], [71, 190], [78, 165], [92, 144], [105, 128], [121, 112], [142, 102], [161, 97], [181, 91], [203, 90], [245, 90], [295, 90], [329, 94], [348, 102], [366, 114], [382, 128], [394, 147], [408, 169], [415, 192], [417, 220], [419, 255], [419, 669]];
Road[Road.length] = [[417, 661], [417, 227], [413, 188], [400, 153], [385, 130], [364, 115], [320, 99], [278, 92], [193, 91], [138, 100], [107, 114], [72, 136], [51, 160], [41, 198], [35, 238], [35, 663]];
Road[Road.length] = [[-35, 542], [59, 303], [90, 227], [111, 184], [132, 150], [165, 122], [202, 103], [251, 96], [300, 96], [331, 106], [362, 123], [385, 148], [402, 178], [414, 207], [420, 236], [424, 272], [421, 316], [416, 346], [394, 371], [351, 396], [309, 407], [277, 405], [231, 400], [201, 386], [167, 364], [143, 338], [125, 304], [117, 265], [116, 227], [127, 186], [150, 154], [190, 134], [248, 119], [318, 113], [370, 115], [525, 129]];
Road[Road.length] = [[522, 494], [405, 228], [371, 175], [335, 145], [294, 130], [245, 119], [206, 116], [167, 120], [125, 132], [100, 148], [82, 171], [72, 196], [67, 231], [65, 277], [78, 312], [93, 343], [114, 363], [155, 380], [193, 384], [228, 385], [262, 384], [292, 373], [320, 354], [337, 322], [349, 277], [352, 236], [344, 198], [322, 170], [286, 149], [241, 139], [173, 135], [124, 134], [-40, 146]];
Road[Road.length] = [[102, -26], [97, 26], [91, 69], [85, 99], [82, 127], [84, 159], [95, 180], [109, 208], [118, 237], [123, 267], [117, 295], [96, 341], [87, 375], [90, 418], [99, 454], [114, 483], [116, 505], [110, 538], [102, 568], [96, 584], [96, 608], [101, 627], [100, 666], [100, 685]];
Road[Road.length] = [[398, -42], [409, 18], [423, 59], [428, 93], [430, 115], [426, 139], [413, 167], [402, 190], [397, 218], [397, 251], [403, 289], [416, 327], [423, 358], [425, 382], [421, 399], [413, 423], [409, 436], [400, 468], [400, 486], [402, 512], [408, 542], [419, 573], [427, 598], [429, 625], [423, 654], [415, 684]];
Road[Road.length] = [[56, -28], [56, 252], [56, 282], [60, 307], [68, 333], [83, 365], [98, 391], [116, 407], [141, 420], [172, 432], [207, 438], [252, 438], [281, 435], [319, 434], [360, 421], [383, 408], [400, 385], [413, 360], [428, 326], [434, 297], [440, 250], [442, 190], [435, -51]];
Road[Road.length] = [[432, -36], [432, 322], [425, 369], [412, 399], [390, 419], [365, 434], [341, 441], [283, 449], [240, 446], [183, 441], [135, 426], [105, 408], [78, 371], [66, 323], [62, 274], [62, -32]];
Road[Road.length] = [[116, -34], [117, 320], [108, 359], [94, 394], [71, 431], [50, 460], [11, 499], [-31, 552]];
Road[Road.length] = [[348, -44], [348, 281], [349, 317], [354, 352], [360, 373], [372, 391], [388, 416], [414, 441], [448, 463], [480, 480], [534, 505]];
Road[Road.length] = [[25, -27], [547, 653]];
Road[Road.length] = [[523, -33], [-62, 654]];
Road[Road.length] = [[-46, 96], [530, 96]];
Road[Road.length] = [[524, 200], [-41, 200]];
Road[Road.length] = [[-48, 102], [107, 104], [141, 107], [166, 115], [187, 129], [201, 146], [213, 165], [226, 194], [236, 228], [243, 261], [246, 294], [246, 332], [238, 378], [206, 413], [163, 449], [119, 465], [60, 487], [6, 496], [-48, 496]];
Road[Road.length] = [[531, 94], [381, 98], [328, 106], [289, 123], [253, 150], [228, 187], [216, 222], [210, 265], [212, 310], [226, 351], [250, 384], [272, 392], [327, 409], [394, 414], [437, 416], [487, 417], [538, 417]];
Road[Road.length] = [[-32, 557], [17, 520], [44, 490], [59, 459], [73, 405], [81, 349], [89, 298], [89, 251], [93, 203], [94, 173], [94, 167], [94, 162], [94, 161], [94, 158], [94, 155], [94, 151], [94, 148], [94, 143], [94, 140], [94, 137], [94, 136], [95, 133], [94, 129], [94, 125], [94, 122], [94, 116], [94, 108], [94, 102], [94, 95], [94, 90], [94, 86], [94, 75], [96, 62], [96, -36]];
Road[Road.length] = [[537, 556], [436, 438], [424, 412], [419, 391], [411, 338], [405, 300], [405, 269], [404, 224], [405, 214], [405, 208], [405, 204], [405, 200], [405, 195], [405, 192], [405, 188], [405, 183], [405, 177], [404, 172], [404, 165], [404, 159], [405, 152], [405, 145], [407, -38]];
Road[Road.length] = [[-39, 98], [232, 98], [265, 99], [305, 108], [341, 124], [364, 141], [384, 165], [396, 193], [403, 226], [406, 253], [404, 283], [393, 311], [360, 329], [326, 336], [285, 337], [252, 330], [234, 314], [228, 286], [234, 254], [252, 222], [280, 192], [315, 160], [355, 122], [383, 84], [416, 48], [458, 12], [504, -18], [530, -35]];
Road[Road.length] = [[522, 119], [150, 119], [125, 121], [89, 130], [71, 146], [58, 173], [60, 205], [72, 234], [100, 262], [143, 282], [200, 291], [246, 287], [264, 259], [277, 216], [278, 179], [268, 144], [254, 101], [241, 67], [231, 41], [210, -13], [201, -34], [196, -47]];
Road[Road.length] = [[-39, 174], [65, 174], [98, 169], [120, 158], [146, 139], [171, 116], [203, 102], [242, 102], [304, 107], [332, 124], [375, 170], [397, 211], [405, 261], [405, 322], [386, 359], [332, 390], [262, 400], [190, 400], [145, 377], [112, 325], [113, 244], [154, 180], [250, 117], [357, 84], [478, 60], [533, 53]];
Road[Road.length] = [[537, 191], [377, 191], [339, 184], [292, 161], [222, 137], [160, 136], [112, 147], [89, 180], [81, 218], [79, 278], [97, 325], [137, 368], [210, 388], [290, 386], [356, 354], [377, 278], [356, 202], [270, 166], [129, 105], [26, 88], [-63, 84]];
Road[Road.length] = [[106, -19], [106, 356], [111, 379], [126, 403], [148, 423], [188, 455], [203, 474], [210, 501], [212, 545], [212, 599], [212, 689]];
Road[Road.length] = [[356, -51], [356, 344], [355, 371], [347, 394], [327, 418], [304, 443], [289, 461], [278, 476], [272, 502], [270, 534], [267, 594], [269, 636], [267, 668], [267, 686]];
Road[Road.length] = [[-12, 443], [37, 306], [55, 261], [73, 235], [104, 214], [128, 210], [158, 212], [176, 223], [193, 244], [198, 277], [201, 319], [201, 683]];
Road[Road.length] = [[517, 438], [444, 270], [413, 218], [373, 195], [330, 187], [291, 190], [269, 200], [247, 220], [230, 250], [220, 296], [219, 341], [219, 683]];
Road[Road.length] = [[-17, 69], [324, 69], [344, 71], [361, 80], [382, 95], [400, 113], [411, 133], [416, 159], [419, 187], [415, 214], [400, 240], [380, 257], [353, 267], [337, 268], [46, 268], [35, 272], [12, 286], [4, 310], [-14, 347], [-12, 382], [10, 433], [31, 440], [105, 452], [346, 451], [375, 455], [392, 465], [410, 481], [423, 506], [425, 541], [417, 559], [382, 583], [308, 609], [206, 608], [-56, 608]];
Road[Road.length] = [[511, 90], [160, 89], [117, 91], [93, 99], [68, 109], [58, 135], [42, 185], [51, 219], [68, 254], [119, 291], [372, 289], [411, 304], [426, 347], [425, 399], [390, 430], [307, 443], [212, 443], [84, 443], [26, 473], [2, 534], [25, 575], [76, 603], [216, 611], [403, 605], [546, 607]];
Road[Road.length] = [[235, -36], [231, 36], [221, 63], [201, 99], [195, 127], [194, 159], [211, 195], [232, 228], [247, 263], [254, 299], [253, 334], [243, 359], [223, 389], [206, 414], [189, 439], [177, 477], [177, 506], [201, 590], [224, 607], [240, 637], [241, 655], [242, 683]];
function getLandCom() {
var _local2 = new Array();
_local2[0] = [0, 1, 2, 5, 6, 7];
_local2[1] = [0, 1, 4, 7];
_local2[2] = [0, 1, 3, 4, 7];
_local2[3] = [0, 1, 2, 5, 6, 7];
var _local3 = _parent.Stage_Finish % 4;
var _local4 = "ComB" + _local2[_local3][random(_local2[_local3].length)];
return(_local4);
}
function Select_Boss($id) {
this[("Stage_" + $id) + "_Boss"]();
}
function Stage_0_Boss() {
var _local2 = loadBoss("Boss1", gs++, 0, 240, -39, 1000, "Boom1");
_local2.mcx.funx = function () {
this._rotation = this._rotation + 36;
};
_local2.fan.push(_local2.mcx);
_local2.fan.push(loadPao(_local2, "PaoX", 0, 0, -20, 40, 0, "Shot_4", 120, 1, 3, 15, 0, 90, 6, 1, false, "shot5"));
_local2.fan.push(loadPao(_local2, "PaoX", 1, 0, 20, 40, 0, "Shot_4", 120, 1, 3, 15, 0, 90, 6, 1, false, "shot5"));
_local2.fan.push(loadPao(_local2, "PaoX", 2, 0, -40, 10, 0, "Shot_2", 240, 3, 3, 20, 10, 90, 4, 1, true, "shot4"));
_local2.fan.push(loadPao(_local2, "PaoX", 3, 0, 40, 10, 0, "Shot_2", 240, 3, 3, 20, 10, 90, 4, 1, true, "shot3"));
_local2.fan.push(loadPao(_local2, "PaoX", 4, 0, 0, 0, 0, "Shot_3", 300, 25, 3, 30, 14.4, 0, 4, 1, false, "shot1"));
_local2.fan.push(loadPao(_local2, "PaoX", 5, 0, 0, 65, 0, "Shot_1", 180, 1, 4, 5, 0, 90, 6, 1, true, "shot0"));
}
function Stage_1_Boss() {
var _local1 = loadBoss("Boss0", gs++, 0, 240, -39, 1500, "Boom1");
_local1.fan.push(loadPao(_local1, "PaoA", 0, 0, 0, -55, 40, "Shot_3", 200, 3, 3, 15, 5, 90, 5, 1, true, "shot5"));
_local1.fan.push(loadPao(_local1, "PaoX", 1, 0, 0, 0, 0, "Shot_2", 300, 25, 3, 50, 14.4, 0, 4, 1, false, "shot1"));
_local1.fan.push(loadPao(_local1, "PaoX", 2, 0, 0, 0, 0, "Shot_1", 450, 25, 5, 20, 14.4, 0, 5, 1, false, "shot0"));
_local1.fan.push(loadPao(_local1, "PaoX", 4, 0, -50, 30, 0, "Shot_4", 240, 1, 2, 20, 10, 90, 4, 1, true, "shot4"));
_local1.fan.push(loadPao(_local1, "PaoX", 5, 0, 50, 30, 0, "Shot_4", 240, 1, 2, 20, 10, 90, 4, 1, true, "shot3"));
_local1.fan.push(loadPao(_local1, "PaoX", 6, 0, -50, 50, 0, "Shot_4", 270, 1, 2, 20, 10, 90, 4, 1, true, "shot4"));
_local1.fan.push(loadPao(_local1, "PaoX", 7, 0, 50, 50, 0, "Shot_4", 270, 1, 2, 20, 10, 90, 4, 1, true, "shot3"));
_local1.fan.push(loadPao(_local1, "PaoX", 8, 0, -50, 70, 0, "Shot_4", 300, 1, 2, 20, 10, 90, 4, 1, true, "shot4"));
_local1.fan.push(loadPao(_local1, "PaoX", 9, 0, 50, 70, 0, "Shot_4", 300, 1, 2, 20, 10, 90, 4, 1, true, "shot3"));
}
function Stage_2_Boss() {
var _local1 = loadBoss("Boss5", gs++, 0, 240, -39, 1500, "Boom1");
_local1.fan.push(_local1.mcx);
var _local2 = loadBossX("Boss5x", gs++, 0, _local1._x - 60, _local1._y, 500, "Boom2", _local1);
_local2.fan.push(loadPao(_local2, "PaoX", 0, 0, 0, 0, 0, "Shot_3", 120, 1, 3, 15, 0, 90, 4, 1, true, "shot3"));
_local2.fan.push(loadPao(_local2, "PaoX", 1, 0, 0, 0, 0, "Shot_0", 175, 11, 3, 20, 15, 90, 4, 1, false, "shot0"));
_local1.fan.push(_local2);
var _local3 = loadBossX("Boss5xx", gs++, 0, _local1._x, _local1._y + 30, 500, "Boom2", _local1);
_local3.fan.push(loadPao(_local3, "PaoX", 0, 0, 0, 0, 0, "Shot_4", 150, 3, 3, 30, 10, 90, 4, 1, true, "shot5"));
_local3.fan.push(loadPao(_local3, "PaoX", 1, 0, 0, 0, 0, "Shot_1", 225, 11, 3, 20, 20, 90, 4, 1, false, "shot1"));
_local1.fan.push(_local3);
var _local4 = loadBossX("Boss5x", gs++, 0, _local1._x + 60, _local1._y, 500, "Boom2", _local1);
_local2.fan.push(loadPao(_local4, "PaoX", 0, 0, 0, 0, 0, "Shot_3", 120, 1, 3, 15, 0, 90, 4, 1, true, "shot3"));
_local2.fan.push(loadPao(_local4, "PaoX", 1, 0, 0, 0, 0, "Shot_0", 175, 11, 3, 20, 15, 90, 4, 1, false, "shot0"));
_local1.fan.push(_local4);
_local1.fan.push(loadPao(_local1, "PaoX", 1, 0, 0, 0, 0, "Shot_2", 300, 25, 3, 20, 14.4, 90, 5, 1, false, "shot4"));
}
function Stage_3_Boss() {
var _local2 = loadBoss("Boss3", gs++, 0, 240, -39, 2000, "Boom1");
_local2.mcx.funx = function () {
this._rotation = this._rotation + 36;
};
_local2.fan.push(_local2.mcx);
var _local4 = loadBossX("Boss3x", gs++, 0, _local2._x - 60, _local2._y - 3, 500, "Boom2", _local2);
_local4.fan.push(loadPao(_local4, "PaoB", 0, 0, 0, 0, 20, "Shot_3", 150, 2, 2, 20, 5, 90, 4, 1, true, "shot3"));
_local4.fan.push(loadPao(_local4, "PaoX", 1, 0, 0, 0, 20, "Shot_0", 220, 3, 3, 30, 10, 90, 5, 1, true, "shot1"));
_local2.fan.push(_local4);
var _local3 = loadBossX("Boss3x", gs++, 0, _local2._x + 60, _local2._y - 3, 500, "Boom2", _local2);
_local3.fan.push(loadPao(_local3, "PaoB", 0, 0, 0, 0, 20, "Shot_3", 150, 2, 2, 20, 5, 90, 4, 1, true, "shot3"));
_local3.fan.push(loadPao(_local3, "PaoX", 1, 0, 0, 0, 20, "Shot_0", 220, 3, 3, 30, 10, 90, 5, 1, true, "shot0"));
_local2.fan.push(loadPao(_local2, "PaoX", 1, 0, 0, 30, 0, "Shot_2", 300, 25, 5, 20, 14.4, 90, 5, 1, false, "shot4"));
_local2.fan.push(loadPao(_local2, "PaoX", 2, 0, 0, 30, 0, "Shot_4", 180, 3, 3, 10, 10, 90, 6, 1, true, "shot5"));
_local2.fan.push(_local3);
}
function Stage_4_Boss() {
var _local2 = loadBoss("Boss4", gs++, 0, 240, -39, 2000, "Boom1");
_local2.mcx.funx = function () {
this._rotation = this._rotation + 36;
};
_local2.fan.push(_local2.mcx);
_local2.fan.push(loadPao(_local2, "PaoB", 1, 0, 0, 0, 20, "Shot_1", 120, 2, 3, 30, 5, 90, 4, 1, true, "shot5"));
_local2.fan.push(loadPao(_local2, "PaoX", 2, 0, 0, 0, 0, "Shot_2", 175, 25, 6, 20, 14.4, 0, 5, 1, false, "shot3"));
_local2.fan.push(loadPao(_local2, "PaoX", 3, 0, 0, -80, 0, "Shot_4", 300, 25, 6, 20, 14.4, 0, 5, 1, false, "shot4"));
var _local4 = loadBossX("Boss4x", gs++, 0, _local2._x - 60, _local2._y - 10, 1000, "Boom2", _local2);
_local4.fan.push(loadPao(_local4, "PaoX", 1, 0, 0, 0, 0, "Shot_0", 150, 25, 2, 15, 14.4, 90, 5, 1, false, "shot0"));
_local4.fan.push(loadPao(_local4, "PaoD", 2, 0, 0, 0, 55, "Shot_3", 230, 1, 3, 10, 3, 90, 6, 1, true, "shot2"));
_local2.fan.push(_local4);
var _local3 = loadBossX("Boss4xx", gs++, 0, _local2._x + 60, _local2._y - 10, 1000, "Boom2", _local2);
_local3.fan.push(loadPao(_local3, "PaoX", 1, 0, 0, 0, 0, "Shot_1", 150, 25, 2, 15, 14.4, 90, 5, 1, false, "shot1"));
_local3.fan.push(loadPao(_local3, "PaoD", 2, 0, 0, 0, 55, "Shot_3", 230, 1, 3, 10, 3, 90, 6, 1, true, "shot2"));
_local2.fan.push(_local3);
}
function Stage_5_Boss() {
var _local1 = loadBoss("Boss0", gs++, 0, 240, -39, 2000, "Boom1");
_local1.fan.push(loadPao(_local1, "PaoA", 0, 0, 0, -60, 40, "Shot_2", 150, 3, 3, 10, 5, 90, 5, 1, true, "shot5"));
_local1.fan.push(loadPao(_local1, "PaoX", 1, 0, 0, 0, 0, "Shot_3", 300, 25, 3, 30, 14.4, 0, 4, 1, false, "shot4"));
_local1.fan.push(loadPao(_local1, "PaoX", 2, 0, -50, 30, 0, "Shot_4", 240, 1, 2, 20, 10, 90, 4, 1, true, "shot4"));
_local1.fan.push(loadPao(_local1, "PaoX", 3, 0, 50, 30, 0, "Shot_4", 240, 1, 2, 20, 10, 90, 4, 1, true, "shot3"));
_local1.fan.push(loadPao(_local1, "PaoX", 4, 0, -50, 50, 0, "Shot_4", 270, 1, 2, 20, 10, 90, 4, 1, true, "shot4"));
_local1.fan.push(loadPao(_local1, "PaoX", 5, 0, 50, 50, 0, "Shot_4", 270, 1, 2, 20, 10, 90, 4, 1, true, "shot3"));
_local1.fan.push(loadPao(_local1, "PaoX", 6, 0, -50, 70, 0, "Shot_4", 300, 1, 2, 20, 10, 90, 4, 1, true, "shot4"));
_local1.fan.push(loadPao(_local1, "PaoX", 7, 0, 50, 70, 0, "Shot_4", 300, 1, 2, 20, 10, 90, 4, 1, true, "shot3"));
var _local3 = loadBossX("Boss0x", gs++, 0, _local1._x - 80, _local1._y, 1000, "Boom2", _local1);
_local3.fan.push(loadPao(_local3, "PaoB", 0, 0, 0, 0, 20, "Shot_3", 120, 2, 2, 15, 3, 90, 4, 1, true, "shot4"));
_local3.fan.push(loadPao(_local3, "PaoX", 1, 0, 0, 0, 0, "Shot_0", 235, 25, 2, 20, 14.4, 90, 5, 1, false, "shot0"));
_local1.fan.push(_local3);
var _local2 = loadBossX("Boss0x", gs++, 0, _local1._x + 80, _local1._y, 1000, "Boom2", _local1);
_local2.fan.push(loadPao(_local2, "PaoB", 0, 0, 0, 0, 20, "Shot_3", 120, 2, 2, 15, 3, 90, 4, 1, true, "shot3"));
_local2.fan.push(loadPao(_local2, "PaoX", 1, 0, 0, 0, 0, "Shot_1", 235, 25, 2, 20, 14.4, 90, 5, 1, false, "shot1"));
_local1.fan.push(_local2);
}
function Stage_6_Boss() {
var _local1 = loadBoss("Boss2", gs++, 0, 240, -39, 3000, "Boom1");
_local1.fan.push(loadPao(_local1, "PaoB", 0, 0, 0, 0, 30, "Shot_1", 300, 2, 2, 10, 5, 90, 4, 1, true, "shot3"));
_local1.fan.push(loadPao(_local1, "PaoX", 1, 0, 0, 135, 0, "Shot_4", 300, 3, 3, 15, 5, 90, 4, 1, false, "shot5"));
_local1.fan.push(loadPao(_local1, "PaoX", 2, 0, 0, 150, 0, "Shot_3", 250, 3, 3, 20, 5, 90, 4, 1, true, "shot2"));
_local1.fan.push(loadPao(_local1, "PaoX", 3, 0, 0, -40, 0, "Shot_2", 360, 25, 3, 30, 14.4, 0, 4, 1, false, "shot4"));
var _local3 = loadBossX("Boss2x", gs++, 0, _local1._x - 80, _local1._y - 10, 1000, "Boom2", _local1);
_local3.fan.push(loadPao(_local3, "PaoC", 0, 0, 0, 0, 80, "Shot_3", 220, 2, 2, 15, 3, 90, 6, 1, true, "shot1"));
_local3.fan.push(loadPao(_local3, "PaoX", 1, 0, 0, 0, 0, "Shot_0", 235, 25, 3, 25, 14.4, 90, 5, 1, false, "shot4"));
_local1.fan.push(_local3);
var _local2 = loadBossX("Boss2xx", gs++, 0, _local1._x + 80, _local1._y - 10, 1000, "Boom2", _local1);
_local2.fan.push(loadPao(_local2, "PaoC", 0, 0, 0, 0, 80, "Shot_3", 220, 2, 2, 15, 3, 90, 6, 1, true, "shot0"));
_local2.fan.push(loadPao(_local2, "PaoX", 1, 0, 0, 0, 0, "Shot_1", 235, 25, 3, 25, 14.4, 90, 5, 1, false, "shot4"));
_local1.fan.push(_local2);
}
function Stage_7_Boss() {
var _local1 = loadBoss("Boss6", gs++, 0, 240, -39, 5000, "Boom2");
_local1.fan.push(loadPao(_local1, "PaoX", 0, 0, -96, -8, 0, "Shot_2", 150, 2, 4, 10, 10, 90, 6, 1, false, "shot5"));
_local1.fan.push(loadPao(_local1, "PaoX", 1, 0, 96, -8, 0, "Shot_2", 150, 2, 4, 10, 10, 90, 6, 1, false, "shot5"));
_local1.fan.push(loadPao(_local1, "PaoX", 2, 0, -150, -12, 0, "Shot_3", 220, 11, 5, 20, 5, 90, 4, 1, false, "shot3"));
_local1.fan.push(loadPao(_local1, "PaoX", 3, 0, 150, -12, 0, "Shot_3", 220, 11, 5, 20, 5, 90, 4, 1, false, "shot3"));
_local1.fan.push(loadPao(_local1, "PaoX", 4, 0, 0, 100, 0, "Shot_4", 220, 11, 3, 20, 20, 90, 5, 1, false, "shot2"));
_local1.fan.push(loadPao(_local1, "PaoX", 5, 0, -50, 0, 0, "Shot_0", 300, 25, 5, 15, 14.4, 0, 5, 1, false, "shot0"));
_local1.fan.push(loadPao(_local1, "PaoX", 6, 0, 50, 0, 0, "Shot_1", 300, 25, 5, 15, 14.4, 0, 5, 1, false, "shot1"));
_local1.fan.push(loadPao(_local1, "PaoX", 7, 0, 0, 0, 0, "Shot_2", 500, 25, 5, 30, 14.4, 0, 5, 1, false, "shot4"));
}
var Com_Object;
var List_id;
var Com_List = new Array();
var l = 0;
while (l < 8) {
List_id = Com_List.length;
Com_List[List_id] = new Array();
if (_parent.Stage_Finish >= 0) {
(Com_Object = {tim:500, step:300, typs:"D", com:"", road:0, spx:0, spy:Map_Speed, many:999, speed:Map_Speed, hp:20 + (l * 2), boom:"Boom2", shot:"", wait:100 - (l * 10), num:3, times:3, sstep:30, ang:10, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
}
(Com_Object = {tim:300 - (_parent.Stage_Finish * 20), step:30, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_0", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:600 - (_parent.Stage_Finish * 20), step:30, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_1", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:900 - (_parent.Stage_Finish * 20), step:30, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_0", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:1200 - (_parent.Stage_Finish * 20), step:60, typs:"B", com:"ComA" + random(22), road:0, spx:0, spy:3, many:10, speed:1.5, hp:12 + (l * 2), boom:"Boom1", shot:"Shot_0", wait:100 - (l * 10), num:3, times:2, sstep:30, ang:10, ssp:3, hurt:1, ai:false, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:1500 - (_parent.Stage_Finish * 20), step:40, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_1", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:1800 - (_parent.Stage_Finish * 20), step:40, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_1", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:2100 - (_parent.Stage_Finish * 20), step:60, typs:"B", com:"ComA" + random(22), road:0, spx:0, spy:3, many:10, speed:1.5, hp:12 + (l * 2), boom:"Boom1", shot:"Shot_0", wait:100 - (l * 10), num:3, times:3, sstep:30, ang:10, ssp:3, hurt:1, ai:false, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:2400 - (_parent.Stage_Finish * 20), step:60, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_1", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:2700 - (_parent.Stage_Finish * 20), step:60, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_0", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:3000 - (_parent.Stage_Finish * 20), step:100, typs:"C", com:"ComA" + random(22), road:0, spx:0, spy:3, many:10, speed:2, hp:12 + (l * 2), boom:"Boom1", shot:"Shot_0", wait:100 - (l * 10), num:3, times:2, sstep:30, ang:10, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:3300 - (_parent.Stage_Finish * 20), step:80, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_0", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:3600 - (_parent.Stage_Finish * 20), step:80, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_1", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:3900 - (_parent.Stage_Finish * 20), step:100, typs:"C", com:"ComA" + random(22), road:0, spx:0, spy:3, many:10, speed:2, hp:12 + (l * 2), boom:"Boom1", shot:"Shot_0", wait:100 - (l * 10), num:3, times:3, sstep:30, ang:10, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:4200 - (_parent.Stage_Finish * 20), step:30, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_1", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:4500 - (_parent.Stage_Finish * 20), step:30, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_0", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:4800 - (_parent.Stage_Finish * 20), step:60, typs:"B", com:"ComA" + random(22), road:0, spx:0, spy:3, many:10, speed:1.5, hp:12 + (l * 2), boom:"Boom1", shot:"Shot_0", wait:100 - (l * 10), num:3, times:2, sstep:30, ang:10, ssp:3, hurt:1, ai:false, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:5100 - (_parent.Stage_Finish * 20), step:40, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_0", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:5400 - (_parent.Stage_Finish * 20), step:40, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_1", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:5700 - (_parent.Stage_Finish * 20), step:60, typs:"B", com:"ComA" + random(22), road:0, spx:0, spy:3, many:10, speed:1.5, hp:12 + (l * 2), boom:"Boom1", shot:"Shot_0", wait:100 - (l * 10), num:3, times:3, sstep:30, ang:10, ssp:3, hurt:1, ai:false, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:6000 - (_parent.Stage_Finish * 20), step:60, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_1", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:6300 - (_parent.Stage_Finish * 20), step:60, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_0", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:6600 - (_parent.Stage_Finish * 20), step:100, typs:"C", com:"ComA" + random(22), road:0, spx:0, spy:3, many:10, speed:2, hp:12 + (l * 2), boom:"Boom1", shot:"Shot_0", wait:100 - (l * 10), num:3, times:2, sstep:30, ang:10, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:6900 - (_parent.Stage_Finish * 20), step:80, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_0", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:7200 - (_parent.Stage_Finish * 20), step:80, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_1", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:7500 - (_parent.Stage_Finish * 20), step:100, typs:"C", com:"ComA" + random(22), road:0, spx:0, spy:3, many:10, speed:2, hp:12 + (l * 2), boom:"Boom1", shot:"Shot_0", wait:100 - (l * 10), num:3, times:3, sstep:30, ang:10, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:7800 - (_parent.Stage_Finish * 20), step:30, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_1", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:8100 - (_parent.Stage_Finish * 20), step:30, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_0", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:8400 - (_parent.Stage_Finish * 20), step:120, typs:"B", com:"ComA" + random(22), road:0, spx:0, spy:3, many:10, speed:1.5, hp:12 + (l * 2), boom:"Boom1", shot:"Shot_0", wait:100 - (l * 10), num:3, times:2, sstep:30, ang:10, ssp:3, hurt:1, ai:false, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:8700 - (_parent.Stage_Finish * 20), step:40, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_1", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:9000 - (_parent.Stage_Finish * 20), step:40, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_0", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:9300 - (_parent.Stage_Finish * 20), step:40, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_1", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:9600 - (_parent.Stage_Finish * 20), step:60, typs:"B", com:"ComA" + random(22), road:0, spx:0, spy:3, many:10, speed:2, hp:12 + (l * 2), boom:"Boom1", shot:"Shot_0", wait:100 - (l * 10), num:3, times:3, sstep:30, ang:10, ssp:3, hurt:1, ai:false, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:9900 - (_parent.Stage_Finish * 20), step:60, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_0", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:10200 - (_parent.Stage_Finish * 20), step:60, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_1", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:10500 - (_parent.Stage_Finish * 20), step:60, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_0", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:10800 - (_parent.Stage_Finish * 20), step:100, typs:"C", com:"ComA" + random(22), road:0, spx:0, spy:3, many:10, speed:1.5, hp:12 + (l * 2), boom:"Boom1", shot:"Shot_0", wait:100 - (l * 10), num:3, times:2, sstep:30, ang:10, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:11100 - (_parent.Stage_Finish * 20), step:80, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_1", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:11400 - (_parent.Stage_Finish * 20), step:80, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_0", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:11700 - (_parent.Stage_Finish * 20), step:80, typs:"A", com:"ComA" + random(22), road:random(Road.length), spx:0, spy:0, many:5, speed:3, hp:2 + l, boom:"Boom1", shot:"Shot_1", wait:100 - (l * 10), num:1, times:1, sstep:30, ang:5, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:12000 - (_parent.Stage_Finish * 20), step:100, typs:"C", com:"ComA" + random(22), road:0, spx:0, spy:3, many:10, speed:2, hp:12 + (l * 2), boom:"Boom1", shot:"Shot_0", wait:100 - (l * 10), num:3, times:3, sstep:30, ang:10, ssp:3, hurt:1, ai:true, boss:-1, more:false});
Com_List[List_id].push(Com_Object);
(Com_Object = {tim:12500 - (_parent.Stage_Finish * 20), step:1, typs:"BOSS", com:"", road:0, spx:0, spy:0, many:0, speed:0, hp:0, boom:"", shot:"", wait:0, num:0, times:0, sstep:0, ang:0, ssp:0, hurt:0, ai:false, boss:l, more:false});
Com_List[List_id].push(Com_Object);
l++;
}
This.createEmptyMovieClip("myAct", 3);
myAct.tim = 0;
myAct.act = true;
myAct.sad = (_parent.Stage_Finish / 3) + 1;
myAct.sad = ((myAct.sad < 1) ? 1 : (((myAct.sad > 2) ? 2 : (myAct.sad))));
myAct.fun = function () {
if ((!Finish) && (this.act)) {
this.tim = this.tim + this.sad;
var _local5 = Com_List[_parent.Stage_Finish].length;
var _local4 = 0;
while (_local4 < _local5) {
var _local3 = Com_List[_parent.Stage_Finish][_local4];
if (_local3.sec == undefined) {
_local3.sec = 0;
}
if (this.tim > _local3.tim) {
if ((_local3.sec % _local3.step) == 0) {
switch (_local3.typs) {
case "A" :
if (_local3.many > 0) {
_local3.many--;
loadComA(_local3.com, Road[_local3.road], 0, _local3.speed, _local3.hp, _local3.boom, _local3.shot, _local3.wait, _local3.ssp, _local3.hurt);
}
break;
case "B" :
if (_local3.many > 0) {
_local3.many--;
loadComB(_local3.com, gs++, _local3.spx, _local3.spy, (random(43) * 10) + 30, -39, 90, _local3.hp, _local3.boom, _local3.shot, _local3.wait, _local3.times, _local3.sstep, _local3.ssp, _local3.hurt).tool = (((random(49) % 28) == 0) ? "ToolC" : ((((random(19) % 18) == 0) ? "ToolB" : ((((random(9) % 8) == 0) ? "ToolA" : null)))));
}
break;
case "C" :
if (_local3.many > 0) {
_local3.many--;
loadComC(_local3.com, gs++, _local3.spx, _local3.spy, (random(43) * 10) + 30, -39, 90, _local3.hp, _local3.boom, _local3.shot, _local3.wait, _local3.num, _local3.times, _local3.sstep, _local3.ang, 90, _local3.ssp, _local3.hurt, _local3.ai).tool = (((random(49) % 28) == 0) ? "ToolC" : ((((random(19) % 18) == 0) ? "ToolB" : ((((random(9) % 8) == 0) ? "ToolA" : null)))));
}
break;
case "D" :
if (_local3.many > 0) {
_local3.many--;
loadComD(getLandCom(), ts++, (random(87) * 5) + 30, -50, _local3.hp, _local3.boom, "Shot_" + random(2), _local3.wait, _local3.num, _local3.times, _local3.sstep, _local3.ang, 90, _local3.ssp, _local3.hurt, _local3.ai);
}
break;
case "BOSS" :
if (_local3.boss < 0) {
break;
}
attachMovie("BossWarWarning", "BossWarWarning", 123).id = _local3.boss;
this.act = _local3.more;
_local3.boss = -1;
}
}
_local3.sec++;
}
_local4++;
}
}
};
This.attachMovie("Health", "Health", 19);
Health.sT.text = "0" + (_parent.Stage_Finish + 1);
Health.fun = function () {
this.Bar._xscale = P1.hp * 10;
((this.Bar._xscale < 0) ? ((this.Bar._xscale = 0)) : null);
};
This.attachMovie("Stage Title", "StageTitle", 81);
This.onEnterFrame = function () {
for (var _local2 in this) {
if (this != this[_local2]) {
this[_local2].fun();
}
}
};
Symbol 658 MovieClip Frame 1
var tim = 0;
var stp = 5;
this.onEnterFrame = function () {
tim++;
if ((tim % stp) == 0) {
T.text = string.substr(0, sno);
if (sno < string.length) {
sno++;
}
}
};
this.onMouseDown = function () {
if (sno < string.length) {
sno = string.length;
} else {
T.text = "";
_parent.play();
}
};
Symbol 666 MovieClip Frame 1
var r = 0;
this.onEnterFrame = function () {
_rotation = (_rotation + r);
r = ((r < 30) ? (r + 0.01) : (r));
};
Symbol 668 MovieClip Frame 1
var string = "Airwolf\uFF0CAll ready!\n1.2.3.....\nLighting system is normal\uFF0Cso are the engine\uFF0Cthe weapons system!\nthe power system\uFF0Cand the radar system...\n\nAll ready......\n ";
var sno = 0;
var tim = 0;
var stp = 5;
this.onEnterFrame = function () {
tim++;
if ((tim % stp) == 0) {
T.text = string.substr(0, sno);
if (sno < string.length) {
sno++;
}
}
};
Symbol 678 MovieClip Frame 1
var string = "All ready!\n\nAirwolf requests to fly!\n\n ";
var sno = 0;
var tim = 0;
var stp = 5;
this.onEnterFrame = function () {
tim++;
if ((tim % stp) == 0) {
T.text = string.substr(0, sno);
if (sno < string.length) {
sno++;
}
}
};
Symbol 679 MovieClip Frame 1
this.onEnterFrame = function () {
_rotation = (_rotation + 10);
};
Symbol 682 MovieClip Frame 1
if (_parent._parent.Stage_Finish == 0) {
var string = "Allowed to take off!\n\nRemember to attack the enemy heavily!\n\n ";
} else if ((_parent._parent.Stage_Finish == 2) || (_parent._parent.Stage_Finish == 4)) {
var string = "Allowed to take off!\n\nRemember, when there is no bullet suppy, you need to choose the same to upgrade the bullets!\n\n ";
} else if (_parent._parent.Stage_Finish == 7) {
var string = "Allowed to take off!\n\nRemember we have increased your bomb order by 10 times, so you can use more order to bomb them!\n\n ";
}
var sno = 0;
var tim = 0;
var stp = 5;
this.onEnterFrame = function () {
tim++;
if ((tim % stp) == 0) {
T.text = string.substr(0, sno);
if (sno < string.length) {
sno++;
}
}
};
Symbol 685 MovieClip Frame 1
this.onEnterFrame = function () {
_rotation = (_rotation + 30);
};
Symbol 689 MovieClip Frame 231
stop();
if (_parent.Stage_Finish == 0) {
mc.string = "Pilot: \nReport from Airwolf! Need your command, sir!";
} else if (_parent.Stage_Finish == 2) {
nextFrame();
} else if (_parent.Stage_Finish == 4) {
mc.string = "Pilot: \nSir! Our radar finds a large quantity of unidentified object! My Airwolf is in perfect state. I request to attack!";
} else if (_parent.Stage_Finish == 7) {
nextFrame();
}
mc.sno = 0;
Symbol 689 MovieClip Frame 232
stop();
if (_parent.Stage_Finish == 0) {
mc.string = "Executive: \nGood! Our satellite found that in front here there is a terrorist camp, you must destroy them all!";
} else if (_parent.Stage_Finish == 2) {
mc.string = "Executive: \nWell performed! There are a large number of the enemies appeared again. I hope you can destroy them completely!";
} else if (_parent.Stage_Finish == 4) {
mc.string = "Executive: \nPermit to attack. I hope you can destroy them all!";
} else if (_parent.Stage_Finish == 7) {
mc.string = "Executive: \nAirwolf, the most critical moment has come! A fearless flying warship is coming which is an invincible military force . we now have no chance of winning! ";
}
mc.sno = 0;
mc._x = 304;
Symbol 689 MovieClip Frame 233
stop();
if ((_parent.Stage_Finish == 0) || (_parent.Stage_Finish == 2)) {
mc.string = "Pilot:\nYes, sir!";
} else if (_parent.Stage_Finish == 4) {
play();
} else if (_parent.Stage_Finish == 7) {
mc.string = "Pilot:\nYes, My Airwolf can accomplish this impossible task! Go Airwolf!";
}
mc.sno = 0;
mc._x = 94;
Symbol 689 MovieClip Frame 234
play();
Symbol 689 MovieClip Frame 2048
_parent.play();
Symbol 734 MovieClip [BossWarWarning] Frame 1
play();
Symbol 734 MovieClip [BossWarWarning] Frame 300
stop();
_parent.Select_Boss(id);
removeMovieClip(this);
Symbol 745 Button
on (press) {
_parent._parent.gotoAndStop("menu");
}
Symbol 747 Button
on (press) {
_parent._parent.Power = [_parent.Shut_Lv, _parent.Shut_Type, _parent.Dan_Lv, _parent.Dan_Type];
_parent._parent.Stage_Finish++;
if (((_parent._parent.Stage_Finish == 2) || (_parent._parent.Stage_Finish == 4)) || (_parent._parent.Stage_Finish == 7)) {
_parent._parent.prevFrame();
} else {
_parent._parent.nextFrame();
}
}
Symbol 751 MovieClip Frame 1
stop();
_visible = false;
Symbol 751 MovieClip Frame 2
B.onPress = function () {
getURL ("http://ddt.qq937.com/1/index.html?cid=1209776982&oid=183491", "blank");
};
ggMc.loadMovie("http://uimg.unionli.com/flash/bj4399/300x250ddt.swf");
Symbol 751 MovieClip Frame 3
B.onPress = function () {
getURL ("http://frxz.qq937.com/1/index.html?cid=1209776981&oid=183491", "blank");
};
ggMc.loadMovie("http://uimg.unionli.com/flash/bj4399/300x250frxz.swf");
Symbol 751 MovieClip Frame 4
B.onPress = function () {
getURL ("http://asqx.qq937.com/1/index.html?cid=1209776978&oid=183491", "blank");
};
ggMc.loadMovie("http://uimg.unionli.com/flash/bj4399/300x250asqx.swf");
Symbol 751 MovieClip Frame 5
B.onPress = function () {
getURL ("http://mhxx.qq937.com/1/index.html?cid=1209776980&oid=183491", "blank");
};
ggMc.loadMovie("http://uimg.unionli.com/flash/bj4399/300x250mhxx.swf");
Symbol 751 MovieClip Frame 6
B.onPress = function () {
getURL ("http://yjjh.qq937.com/1/index.html?cid=1209776977&oid=183491", "blank");
};
ggMc.loadMovie("http://uimg.unionli.com/flash/bj4399/300x250yjjh.swf");
Symbol 753 MovieClip [StageComplete] Frame 1
stop();
Symbol 756 Button
on (press) {
nextFrame();
}
Symbol 757 Button
on (press) {
_parent._parent.Life = 5;
_parent._parent.nextFrame();
}
Symbol 760 Button
on (press) {
_parent._parent.updata(nT.text, _parent._parent.Stage_Finish, _parent._parent.Score);
_parent._parent.gotoAndStop("score");
}
Symbol 762 MovieClip [StageLose] Frame 1
stop();
Symbol 762 MovieClip [StageLose] Frame 2
stop();
Symbol 769 MovieClip [ToolA] Frame 1
typ = 0;
Symbol 769 MovieClip [ToolA] Frame 121
typ = 1;
Symbol 769 MovieClip [ToolA] Frame 241
typ = 2;
Symbol 776 MovieClip [ToolB] Frame 1
typ = 0;
Symbol 776 MovieClip [ToolB] Frame 121
typ = 1;
Symbol 776 MovieClip [ToolB] Frame 241
typ = 2;
Symbol 830 MovieClip Frame 1
T.text = "STAGE - 0" + (_parent._parent._parent.Stage_Finish + 1);
Symbol 832 MovieClip [Stage Title] Frame 1
play();
Symbol 832 MovieClip [Stage Title] Frame 220
removeMovieClip(this);
Symbol 837 MovieClip Frame 1
stop();
Instance of Symbol 844 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 12);
}
Instance of Symbol 846 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 10);
}
Instance of Symbol 848 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 10);
}
Instance of Symbol 850 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 12);
}
Instance of Symbol 852 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 10);
}
Instance of Symbol 854 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 11);
}
Instance of Symbol 856 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 12);
}
Instance of Symbol 858 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 11);
}
Instance of Symbol 860 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 12);
}
Instance of Symbol 862 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 13);
}
Instance of Symbol 864 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 13);
}
Instance of Symbol 866 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 11);
}
Instance of Symbol 868 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 11);
}
Instance of Symbol 870 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 10);
}
Instance of Symbol 872 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 10);
}
Instance of Symbol 874 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 10);
}
Instance of Symbol 876 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 10);
}
Instance of Symbol 878 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 10);
}
Instance of Symbol 880 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 10);
}
Instance of Symbol 882 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 10);
}
Instance of Symbol 884 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 11);
}
Instance of Symbol 886 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 10);
}
Instance of Symbol 888 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 10);
}
Instance of Symbol 890 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 10);
}
Symbol 893 Button
on (release) {
getURL ("http://www.cdlgame.com", "_blank");
}
Symbol 1012 MovieClip Frame 560
_parent.nextFrame();
Symbol 1014 Button
on (release) {
Stage_Finish = 0;
Life = mc.life;
Born = mc.born;
Score = 0;
Power = mc.power;
if (mc.select) {
var i = 0;
while (i < 8) {
if (Key.isDown(49 + i)) {
Stage_Finish = i;
}
i++;
}
}
nextFrame();
}
Symbol 1015 Button
on (press) {
getURL ("http://www.freegameswow.com", "_blank");
}
Symbol 1016 Button
on (press) {
gotoAndStop ("config");
}
Symbol 1017 Button
on (press) {
team._visible = true;
}
Symbol 1024 Button
on (release) {
getURL ("http://www.cdlgame.com", "_blank");
}
Symbol 1031 Button
on (release) {
getURL ("http://www.freegameswow.com", "_blank");
}
Symbol 1034 Button
on (release) {
getURL ("http://www.twitter.com/freegameswow", "_blank");
}
Symbol 1038 Button
on (release) {
getURL ("http://www.facebook.com/freegameswow", "_blank");
}
Symbol 1040 Button
on (press) {
_visible = false;
}
Symbol 1044 MovieClip Frame 1
_visible = false;
_x = 0;
Symbol 1048 Button
on (press) {
nextFrame();
}
Symbol 1051 Button
on (press) {
gotoAndStop ("menu");
}
Symbol 1052 Button
on (press) {
updata(nT.text, Stage_Finish, Score);
gotoAndStop ("score");
}
Symbol 1055 Button
on (press) {
gotoAndStop ("menu");
}
Symbol 1060 Button
on (press) {
Input_Key = [87, 83, 65, 68, 74, 75];
T0.textColor = 10092288 /* 0x99FF00 */;
T1.textColor = 10066329 /* 0x999999 */;
}
Symbol 1061 Button
on (press) {
Input_Key = [38, 40, 37, 39, 90, 88];
T1.textColor = 10092288 /* 0x99FF00 */;
T0.textColor = 10066329 /* 0x999999 */;
}