Frame 1
stop();
_root.preloader_mc.play_btn._visible = false;
var CPMStarPoolID = 13381;
var CPMStarSubPoolID = 9;
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID);
Instance of Symbol 1518 MovieClip in Frame 9
on (release) {
var url = "http://www.freegameswow.com";
getURL (url, "_blank");
}
Frame 244
var gameHandler = GameHandler.getInstance();
stop();
Symbol 1 MovieClip [FWAd_AS2] Frame 1
#initclip 47
Object.registerClass("FWAd_AS2", FWAd_AS2);
#endinitclip
Symbol 18 MovieClip Frame 1
a = _root.getBytesLoaded();
b = _root.getBytesTotal();
loaded = int((a / b) * 100);
this.loading_bar.gotoAndStop(loaded);
this.aText = "Bytes loaded: " + a;
this.bText = "Total Bytes: " + b;
this.loading = ("Loading: " + loaded) + "%";
if (!time) {
time = 1;
} else {
time++;
}
trace(time);
Symbol 18 MovieClip Frame 2
if (a == b) {
if (time >= 30) {
_root.preloader_mc.play_btn._visible = true;
}
} else {
gotoAndPlay (1);
}
Symbol 26 Button
on (release) {
_root.gotoAndPlay("present");
}
Symbol 72 MovieClip Frame 236
stop();
Instance of Symbol 79 MovieClip in Symbol 109 MovieClip [headMenu] Frame 1
on (release) {
var url = "http://www.freegameswow.com";
getURL (url, "_blank");
}
Symbol 119 MovieClip [rounds] Frame 1
stop();
Symbol 119 MovieClip [rounds] Frame 2
stop();
Symbol 119 MovieClip [rounds] Frame 3
stop();
Symbol 119 MovieClip [rounds] Frame 4
stop();
Symbol 119 MovieClip [rounds] Frame 5
stop();
Symbol 119 MovieClip [rounds] Frame 6
stop();
Symbol 119 MovieClip [rounds] Frame 7
stop();
Symbol 119 MovieClip [rounds] Frame 8
stop();
Symbol 119 MovieClip [rounds] Frame 9
stop();
Symbol 123 MovieClip [readyFight] Frame 65
state = FrameName.SWAPPER_CLOSED;
Symbol 123 MovieClip [readyFight] Frame 75
state = FrameName.SWAPPER_OPEN;
stop();
Symbol 128 MovieClip [ko] Frame 55
state = FrameName.SWAPPER_CLOSED;
Symbol 128 MovieClip [ko] Frame 58
state = FrameName.SWAPPER_OPEN;
stop();
Symbol 133 MovieClip [swapper] Frame 8
state = FrameName.SWAPPER_CLOSED;
Symbol 133 MovieClip [swapper] Frame 18
state = FrameName.SWAPPER_OPEN;
stop();
Symbol 143 MovieClip [vsScreen] Frame 16
state = FrameName.SWAPPER_CLOSED;
Symbol 143 MovieClip [vsScreen] Frame 37
state = FrameName.SWAPPER_OPEN;
stop();
Symbol 149 MovieClip [winScreen] Frame 33
state = FrameName.SWAPPER_CLOSED;
Symbol 149 MovieClip [winScreen] Frame 55
state = FrameName.SWAPPER_OPEN;
stop();
Symbol 171 MovieClip [continueScreen] Frame 215
state = FrameName.SWAPPER_CLOSED;
Symbol 171 MovieClip [continueScreen] Frame 232
state = FrameName.SWAPPER_OPEN;
stop();
Symbol 174 MovieClip [gameoverScreen] Frame 68
state = FrameName.SWAPPER_CLOSED;
Symbol 174 MovieClip [gameoverScreen] Frame 109
state = FrameName.SWAPPER_OPEN;
stop();
Symbol 177 MovieClip [deuceScreen] Frame 24
state = FrameName.SWAPPER_CLOSED;
Symbol 177 MovieClip [deuceScreen] Frame 50
state = FrameName.SWAPPER_OPEN;
stop();
Symbol 202 MovieClip Frame 1
stop();
Symbol 228 Button
on (release) {
var url = "http://www.freegameswow.com";
getURL (url, "_blank");
}
Symbol 240 MovieClip Frame 1
stop();
Symbol 240 MovieClip Frame 83
stop();
Symbol 248 MovieClip Frame 1
stop();
Symbol 1525 MovieClip [__Packages.FrameName] Frame 0
class FrameName
{
function FrameName () {
}
static var FORWARD = "forward";
static var BACK = "back";
static var RUN = "run";
static var RUN_ATTACK_HAND = "run_attack_hand";
static var RUN_ATTACK_LEG = "run_attack_leg";
static var STAND = "stand";
static var STAND_COVER = "stand_cover";
static var STAND_ATTACK_HAND_WEAK = "stand_attack_hand_weak";
static var STAND_ATTACK_HAND_NORMAL = "stand_attack_hand_normal";
static var STAND_ATTACK_HAND_HEAVY = "stand_attack_hand_heavy";
static var STAND_ATTACK_LEG_WEAK = "stand_attack_leg_weak";
static var STAND_ATTACK_LEG_NORMAL = "stand_attack_leg_normal";
static var STAND_ATTACK_LEG_HEAVY = "stand_attack_leg_heavy";
static var STAND_BEATTACKED_HAND_WEAK = "stand_beAttacked_hand_weak";
static var STAND_BEATTACKED_HAND_NORMAL = "stand_beAttacked_hand_normal";
static var STAND_BEATTACKED_HAND_HEAVY = "stand_beAttacked_hand_heavy";
static var STAND_BEATTACKED_LEG_WEAK = "stand_beAttacked_leg_weak";
static var STAND_BEATTACKED_LEG_NORMAL = "stand_beAttacked_leg_normal";
static var STAND_BEATTACKED_LEG_HEAVY = "stand_beAttacked_leg_heavy";
static var JUMP = "jump";
static var JUMP_FORWARD = "jump_forward";
static var JUMP_BACK = "jump_back";
static var JUMP_COVER = "jump_cover";
static var JUMP_ATTACK_HAND_WEAK = "jump_attack_hand_weak";
static var JUMP_ATTACK_HAND_NORMAL = "jump_attack_hand_normal";
static var JUMP_ATTACK_HAND_HEAVY = "jump_attack_hand_heavy";
static var JUMP_ATTACK_LEG_WEAK = "jump_attack_leg_weak";
static var JUMP_ATTACK_LEG_NORMAL = "jump_attack_leg_normal";
static var JUMP_ATTACK_LEG_HEAVY = "jump_attack_leg_heavy";
static var JUMP_BEATTACKED_HAND_WEAK = "jump_beAttacked_hand_weak";
static var JUMP_BEATTACKED_HAND_NORMAL = "jump_beAttacked_hand_normal";
static var JUMP_BEATTACKED_HAND_HEAVY = "jump_beAttacked_hand_heavy";
static var JUMP_BEATTACKED_LEG_WEAK = "jump_beAttacked_leg_weak";
static var JUMP_BEATTACKED_LEG_NORMAL = "jump_beAttacked_leg_normal";
static var JUMP_BEATTACKED_LEG_HEAVY = "jump_beAttacked_leg_heavy";
static var CROUCH = "crouch";
static var CROUCH_FORWARD = "crouch_forward";
static var CROUCH_BACK = "crouch_back";
static var CROUCH_COVER = "crouch_cover";
static var CROUCH_ATTACK_HAND_WEAK = "crouch_attack_hand_weak";
static var CROUCH_ATTACK_HAND_NORMAL = "crouch_attack_hand_normal";
static var CROUCH_ATTACK_HAND_HEAVY = "crouch_attack_hand_heavy";
static var CROUCH_ATTACK_LEG_WEAK = "crouch_attack_leg_weak";
static var CROUCH_ATTACK_LEG_NORMAL = "crouch_attack_leg_normal";
static var CROUCH_ATTACK_LEG_HEAVY = "crouch_attack_leg_heavy";
static var CROUCH_BEATTACKED_HAND_WEAK = "crouch_beAttacked_hand_weak";
static var CROUCH_BEATTACKED_HAND_NORMAL = "crouch_beAttacked_hand_normal";
static var CROUCH_BEATTACKED_HAND_HEAVY = "crouch_beAttacked_hand_heavy";
static var CROUCH_BEATTACKED_LEG_WEAK = "crouch_beAttacked_leg_weak";
static var CROUCH_BEATTACKED_LEG_NORMAL = "crouch_beAttacked_leg_normal";
static var CROUCH_BEATTACKED_LEG_HEAVY = "crouch_beAttacked_leg_heavy";
static var SKILL_1_ATTACK = "skill_1_attack";
static var SKILL_2_ATTACK = "skill_2_attack";
static var SKILL_3_ATTACK = "skill_3_attack";
static var SKILL_1_BEATTACKED = "skill_1_beAttacked";
static var SKILL_2_BEATTACKED = "skill_2_beAttacked";
static var SKILL_3_BEATTACKED = "skill_3_beAttacked";
static var SKILL_BULLET_1_ATTACK = "skill_bullet_1_attack";
static var SKILL_BULLET_1_BEATTACKED = "skill_bullet_1_beAttacked";
static var SKILL_BULLET_2_ATTACK = "skill_bullet_2_attack";
static var SKILL_BULLET_2_BEATTACKED = "skill_bullet_2_beAttacked";
static var SKILL_BULLET_3_ATTACK = "skill_bullet_3_attack";
static var SKILL_BULLET_3_BEATTACKED = "skill_bullet_3_beAttacked";
static var SKILL_KILL_1_ATTACK = "skill_kill_1_attack";
static var SKILL_KILL_1_BEATTACKED = "skill_kill_1_beAttacked";
static var SKILL_KILL_2_ATTACK = "skill_kill_2_attack";
static var SKILL_KILL_2_BEATTACKED = "skill_kill_2_beAttacked";
static var BEATTACKED_DIE = "beAttacked_die";
static var SLEEP = "sleep";
static var SLEEP_CAN_STAND = "sleep_canStand";
static var DEAD = "dead";
static var BULLET_NORMAL = "bullet_normal";
static var BULLET_BLAST = "bullet_blast";
static var BULLET_END = "bullet_end";
static var STAGE_SHAKE = "stage_shake";
static var CHARACTER_SCREEN_P1SELECTTEXT = "p1";
static var CHARACTER_SCREEN_P2SELECTTEXT = "p2";
static var SWAPPER_CLOSED = "closed";
static var SWAPPER_OPEN = "open";
static var SWAPPER_NULL = "nothings";
}
Symbol 1526 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, hasLoadOnce, 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];
}
var _local4 = _local6.container || _root;
if (_local4) {
if (_local6.adType == AD_TYPE_LOADING) {
if (hasLoadOnce) {
trace("\u7F13\u51B2\u5E7F\u544A\u4E0D\u5141\u8BB8\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() {
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 = "flashcfg.youyouwin.com";
static var swfFolder = ("http://" + swfDomain) + "/";
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 newsValues = {x:0, y:0};
static var checkNewsFirstInitIntervalId = -1;
var timeoutId = -1;
}
Symbol 1527 MovieClip [__Packages.State] Frame 0
class State extends FrameName
{
function State () {
super();
}
static function isConstrain(_edgeState) {
if ((_edgeState == EDGE_LEFT_CONSTRAIN) || (_edgeState == EDGE_RIGHT_CONSTRAIN)) {
return(true);
}
return(false);
}
static function isSameSide(_direction, _edgeState) {
if (((_direction == McLoader.DIRECTION_RIGHT) && (_edgeState.indexOf("_RIGHT") > 0)) || ((_direction == McLoader.DIRECTION_LEFT) && (_edgeState.indexOf("_LEFT") > 0))) {
return(true);
}
return(false);
}
static function reachStageEdge(_edgeState) {
if ((_edgeState == STAGE_EDGE_REACH_LEFT) || (_edgeState == STAGE_EDGE_REACH_RIGHT)) {
return(true);
}
return(false);
}
static function controllable(_state) {
if (((((_state.indexOf("_cover") > 0) || (_state.indexOf("_attack") > 0)) || (_state.indexOf("beAttacked") >= 0)) || ((_state.indexOf("sleep") >= 0) && (_state.indexOf("sleep_canStand") < 0))) || (_state.indexOf("dead") >= 0)) {
return(false);
}
return(true);
}
static function assailable(_state) {
if (_state.indexOf("_cover") > 0) {
return(false);
}
return(true);
}
static function underCover(_state) {
if (((_state == FrameName.STAND_COVER) || (_state == FrameName.CROUCH_COVER)) || (_state == FrameName.JUMP_COVER)) {
return(true);
}
return(false);
}
static function canShakeStage(_state) {
if ((_state.indexOf("skill") >= 0) || (_state.indexOf("die") >= 0)) {
return(true);
}
return(false);
}
static function addHitFlyArray(_state) {
if (!isHitFly(_state)) {
hitFlyStateArray.push(_state);
}
}
static function setHitFlyState() {
addHitFlyArray(FrameName.SKILL_1_BEATTACKED);
addHitFlyArray(FrameName.SKILL_2_BEATTACKED);
addHitFlyArray(FrameName.SKILL_3_BEATTACKED);
addHitFlyArray(FrameName.SKILL_BULLET_1_BEATTACKED);
addHitFlyArray(FrameName.SKILL_BULLET_2_BEATTACKED);
addHitFlyArray(FrameName.SKILL_BULLET_3_BEATTACKED);
addHitFlyArray(FrameName.SKILL_KILL_1_BEATTACKED);
addHitFlyArray(FrameName.CROUCH_BEATTACKED_HAND_WEAK);
addHitFlyArray(FrameName.CROUCH_BEATTACKED_HAND_NORMAL);
addHitFlyArray(FrameName.CROUCH_BEATTACKED_HAND_HEAVY);
addHitFlyArray(FrameName.CROUCH_BEATTACKED_LEG_WEAK);
addHitFlyArray(FrameName.CROUCH_BEATTACKED_LEG_NORMAL);
addHitFlyArray(FrameName.CROUCH_BEATTACKED_LEG_HEAVY);
addHitFlyArray(FrameName.JUMP_BEATTACKED_HAND_WEAK);
addHitFlyArray(FrameName.JUMP_BEATTACKED_HAND_NORMAL);
addHitFlyArray(FrameName.JUMP_BEATTACKED_HAND_HEAVY);
addHitFlyArray(FrameName.JUMP_BEATTACKED_LEG_WEAK);
addHitFlyArray(FrameName.JUMP_BEATTACKED_LEG_NORMAL);
addHitFlyArray(FrameName.JUMP_BEATTACKED_LEG_HEAVY);
addHitFlyArray(FrameName.BEATTACKED_DIE);
}
static function isHitFly(_state) {
var _local1 = 0;
while (_local1 < hitFlyStateArray.length) {
if (hitFlyStateArray[_local1] == _state) {
return(true);
}
_local1++;
}
return(false);
}
static function isHit(_state) {
if (isHitFly(_state)) {
return(false);
}
if (_state.indexOf("beAttacked") >= 0) {
return(true);
}
return(false);
}
static function isAttacked(_state) {
if (Utils.isNull(_state)) {
return(false);
}
if (_state.indexOf("beAttacked") >= 0) {
return(true);
}
return(false);
}
static function isWeak(_state) {
if (_state.indexOf("weak") >= 0) {
return(true);
}
return(false);
}
static function isNormal(_state) {
if (_state.indexOf("normal") >= 0) {
return(true);
}
return(false);
}
static function isHeavy(_state) {
if (_state.indexOf("heavy") >= 0) {
return(true);
}
return(false);
}
static function isJumping(_state) {
if (((((_state == FrameName.JUMP) || (_state == FrameName.JUMP_FORWARD)) || (_state == FrameName.JUMP_BACK)) || (_state == FrameName.JUMP_COVER)) || (_state.indexOf("jump_attack_") == 0)) {
return(true);
}
return(false);
}
static function canChangeDirection(_state) {
if ((((_state == FrameName.STAND) || (_state == FrameName.STAND_COVER)) || (_state == FrameName.CROUCH)) || (_state == FrameName.CROUCH_COVER)) {
return(true);
}
return(false);
}
static function isCrouch(_state) {
if (_state.indexOf("crouch") >= 0) {
return(true);
}
return(false);
}
static function isAttacking(_state) {
if (_state.indexOf("_attack") > 0) {
return(true);
}
return(false);
}
static function isSkillAttack(_state) {
if ((_state.indexOf("skill_") >= 0) && (_state.indexOf("_attack") > 0)) {
return(true);
}
return(false);
}
static function isMoving(_state) {
if ((_state == FrameName.FORWARD) || (_state == FrameName.BACK)) {
return(true);
}
return(false);
}
static function isMortality(_state, _mortality) {
if (((_state == FrameName.SKILL_KILL_1_ATTACK) || (_state == FrameName.SKILL_KILL_2_ATTACK)) && (_mortality)) {
return(true);
}
return(false);
}
static var hitFlyStateArray = new Array();
static var EDGE_REACH_LEFT = "EDGE_REACH_LEFT";
static var EDGE_REACH_RIGHT = "EDGE_REACH_RIGHT";
static var EDGE_NOT_REACH = "EDGE_NOT_REACH";
static var EDGE_LEFT_CONSTRAIN = "EDGE_LEFT_CONSTRAIN";
static var EDGE_RIGHT_CONSTRAIN = "EDGE_RIGHT_CONSTRAIN";
static var STAGE_EDGE_REACH_LEFT = "STAGE_EDGE_REACH_LEFT";
static var STAGE_EDGE_REACH_RIGHT = "STAGE_EDGE_REACH_RIGHT";
static var STAGE_EDGE_NOT_REACH = "STAGE_EDGE_NOT_REACH";
static var BODY_REACH = "BODY_REACH";
static var BODY_NOT_REACH = "BODY_NOT_REACH";
}
Symbol 1528 MovieClip [__Packages.McLoader] Frame 0
class McLoader
{
var direction, srcName, orgWidth;
function McLoader (parentMc, _srcName, posX, posY, newName) {
if (Utils.isNull(parentMc)) {
trace("McLoader: parentMc is null");
return;
}
if (Utils.isNull(_srcName)) {
trace("McLoader: srcName is null");
return;
}
if (Utils.isNull(posX)) {
posX = 0;
}
if (Utils.isNull(posY)) {
posY = 0;
}
if (Utils.isNull(newName)) {
newName = _srcName + (defaultNewNameCounter++);
}
direction = DIRECTION_RIGHT;
srcName = _srcName;
loadMc(parentMc, srcName, posX, posY, newName);
}
function unloadMc() {
removeMovieClip(mc);
mc = null;
}
function loadMc(parentMc, srcName, posX, posY, newName) {
parentMc.attachMovie(srcName, newName, parentMc.getNextHighestDepth(), {_x:posX, _y:posY});
mc = parentMc[newName];
orgWidth = mc._width;
}
function setX(__x) {
if (Utils.isNull(__x)) {
trace("McLoader: __x is null");
__x = 0;
}
mc._x = __x;
}
function setY(__y) {
if (Utils.isNull(__y)) {
trace("McLoader: __y is null");
__y = 0;
}
mc._y = __y;
}
function getX() {
return(mc._x);
}
function getY() {
return(mc._y);
}
function setWidth(_w) {
if (Utils.isNull(_w)) {
trace("McLoader: _w is null");
_w = 0;
}
mc._width = _w;
}
function setHeight(_h) {
if (Utils.isNull(_h)) {
trace("McLoader: _h is null");
_h = 0;
}
mc._height = _h;
}
function getWidth() {
return(mc._width);
}
function getOrgWidth() {
return(orgWidth);
}
function getHeight() {
return(mc._height);
}
function getDirection() {
return(direction);
}
function reverseMc() {
mc._xscale = mc._xscale * -1;
direction = direction * -1;
}
function getState() {
return(mc.state);
}
function setGlobalPoint(_p) {
mc._parent.globalToLocal(_p);
mc._x = _p.x;
mc._y = _p.y;
}
function getGlobalPoint() {
var _local2 = new flash.geom.Point(mc._x, mc._y);
mc._parent.localToGlobal(_local2);
return(_local2);
}
function setGlobalX(__x) {
var _local2 = new flash.geom.Point(__x, 0);
mc._parent.globalToLocal(_local2);
mc._x = _local2.x;
}
function getGlobalX() {
var _local2 = new flash.geom.Point(mc._x, mc._y);
mc._parent.localToGlobal(_local2);
return(_local2.x);
}
var mc = null;
static var DIRECTION_RIGHT = 1;
static var DIRECTION_LEFT = -1;
static var defaultNewNameCounter = 0;
}
Symbol 1529 MovieClip [__Packages.Utils] Frame 0
class Utils
{
function Utils () {
}
static function isNull(obj) {
if ((typeof(obj) == "undefined") || (obj == null)) {
return(true);
}
return(false);
}
static function getRandom(max) {
return(Math.round(((max * Math.random()) * 100) / 100));
}
static function submitScore(_score) {
if (_root.username == undefined) {
_root.username = "Guest";
}
sendScore(_score);
}
static function sendScore(_score) {
if (_score < 0) {
_score = 0;
}
var _local2 = new LoadVars();
var _local3 = new LoadVars();
_local2.user_id = _root.user_id;
_local2.game_id = _root.game_id;
_local2.score = _score;
_local3.onLoad = function (success) {
if (success) {
}
};
if (_root.username == undefined) {
_local2.sendAndLoad((("addscore.php?username=Guset&game_id=" + _root.game_id) + "&score=") + _score, _local3);
} else {
_local2.sendAndLoad((((("addscore.php?username=" + _root.username) + "&game_id=") + _root.game_id) + "&score=") + _score, _local3);
}
}
}
Symbol 1530 MovieClip [__Packages.Actions] Frame 0
class Actions extends McLoader
{
var direction, moveHandler, BULLET_SPEED_WEAK, BULLET_SPEED_NORMAL, BULLET_SPEED_HEAVY, BULLET_DELAY_WEAK, BULLET_DELAY_NORMAL, BULLET_DELAY_HEAVY, canLaunchKill, mortality, bullets, unloadMc, mc, srcName;
function Actions (parentMc, _srcName) {
super(parentMc, _srcName);
stand();
direction = McLoader.DIRECTION_RIGHT;
moveHandler = new MoveHandler(this);
BULLET_SPEED_WEAK = 16;
BULLET_SPEED_NORMAL = 26;
BULLET_SPEED_HEAVY = 36;
BULLET_DELAY_WEAK = 4;
BULLET_DELAY_NORMAL = 6;
BULLET_DELAY_HEAVY = 8;
canLaunchKill = CANT_LAUNCH;
mortality = false;
bullets = new Array();
}
function unloadBullets() {
var _local2 = 0;
while (_local2 < bullets.length) {
bullets[_local2].unloadMc();
bullets[_local2].unloadEvent();
_local2++;
}
}
function pauseBullets() {
var _local2 = 0;
while (_local2 < bullets.length) {
bullets[_local2].isPause = true;
_local2++;
}
}
function continueBullets() {
var _local2 = 0;
while (_local2 < bullets.length) {
bullets[_local2].isPause = false;
_local2++;
}
}
function unloadAll() {
unloadMc();
unloadBullets();
moveHandler.unloadEvent();
}
function cover() {
mc.state = FrameName.STAND_COVER;
mc.gotoAndPlay(FrameName.STAND_COVER);
moveHandler.noMove();
}
function forward() {
mc.state = FrameName.FORWARD;
mc.gotoAndStop(FrameName.FORWARD);
moveHandler.forward();
}
function backForward() {
moveHandler.backForward();
}
function back() {
mc.state = FrameName.BACK;
mc.gotoAndStop(FrameName.BACK);
moveHandler.back();
}
function noMove() {
moveHandler.noMove();
}
function stand() {
mc.state = FrameName.STAND;
mc.gotoAndStop(FrameName.STAND);
moveHandler.noMove();
}
function stand_attack_hand_weak() {
mc.state = FrameName.STAND_ATTACK_HAND_WEAK;
mc.gotoAndPlay(FrameName.STAND_ATTACK_HAND_WEAK);
moveHandler.noMove();
}
function stand_attack_hand_normal() {
mc.state = FrameName.STAND_ATTACK_HAND_NORMAL;
mc.gotoAndPlay(FrameName.STAND_ATTACK_HAND_NORMAL);
moveHandler.noMove();
}
function stand_attack_hand_heavy() {
mc.state = FrameName.STAND_ATTACK_HAND_HEAVY;
mc.gotoAndPlay(FrameName.STAND_ATTACK_HAND_HEAVY);
moveHandler.noMove();
}
function stand_attack_leg_weak() {
mc.state = FrameName.STAND_ATTACK_LEG_WEAK;
mc.gotoAndPlay(FrameName.STAND_ATTACK_LEG_WEAK);
moveHandler.noMove();
}
function stand_attack_leg_normal() {
mc.state = FrameName.STAND_ATTACK_LEG_NORMAL;
mc.gotoAndPlay(FrameName.STAND_ATTACK_LEG_NORMAL);
moveHandler.noMove();
}
function stand_attack_leg_heavy() {
mc.state = FrameName.STAND_ATTACK_LEG_HEAVY;
mc.gotoAndPlay(FrameName.STAND_ATTACK_LEG_HEAVY);
moveHandler.noMove();
}
function stand_beAttacked_hand_weak(_direction) {
mc.state = FrameName.STAND_BEATTACKED_HAND_WEAK;
mc.gotoAndPlay(FrameName.STAND_BEATTACKED_HAND_WEAK);
moveHandler.stand_beAttacked_hand_weak(_direction);
}
function stand_beAttacked_hand_normal(_direction) {
mc.state = FrameName.STAND_BEATTACKED_HAND_NORMAL;
mc.gotoAndPlay(FrameName.STAND_BEATTACKED_HAND_NORMAL);
moveHandler.stand_beAttacked_hand_normal(_direction);
}
function stand_beAttacked_hand_heavy(_direction) {
mc.state = FrameName.STAND_BEATTACKED_HAND_HEAVY;
mc.gotoAndPlay(FrameName.STAND_BEATTACKED_HAND_HEAVY);
moveHandler.stand_beAttacked_hand_heavy(_direction);
}
function stand_beAttacked_leg_weak(_direction) {
mc.state = FrameName.STAND_BEATTACKED_LEG_WEAK;
mc.gotoAndPlay(FrameName.STAND_BEATTACKED_LEG_WEAK);
moveHandler.stand_beAttacked_leg_weak(_direction);
}
function stand_beAttacked_leg_normal(_direction) {
mc.state = FrameName.STAND_BEATTACKED_LEG_NORMAL;
mc.gotoAndPlay(FrameName.STAND_BEATTACKED_LEG_NORMAL);
moveHandler.stand_beAttacked_leg_normal(_direction);
}
function stand_beAttacked_leg_heavy(_direction) {
mc.state = FrameName.STAND_BEATTACKED_LEG_HEAVY;
mc.gotoAndPlay(FrameName.STAND_BEATTACKED_LEG_HEAVY);
moveHandler.stand_beAttacked_leg_heavy(_direction);
}
function crouch() {
mc.state = FrameName.CROUCH;
mc.gotoAndStop(FrameName.CROUCH);
moveHandler.noMove();
}
function crouch_forward() {
mc.state = FrameName.CROUCH_FORWARD;
mc.gotoAndStop(FrameName.CROUCH);
moveHandler.noMove();
}
function crouch_back() {
mc.state = FrameName.CROUCH_BACK;
mc.gotoAndStop(FrameName.CROUCH);
moveHandler.noMove();
}
function crouch_cover() {
mc.state = FrameName.CROUCH_COVER;
mc.gotoAndStop(FrameName.CROUCH_COVER);
moveHandler.noMove();
}
function crouch_attack_hand_weak() {
mc.state = FrameName.CROUCH_ATTACK_HAND_WEAK;
mc.gotoAndPlay(FrameName.CROUCH_ATTACK_HAND_WEAK);
}
function crouch_attack_hand_normal() {
mc.state = FrameName.CROUCH_ATTACK_HAND_NORMAL;
mc.gotoAndPlay(FrameName.CROUCH_ATTACK_HAND_NORMAL);
}
function crouch_attack_hand_heavy() {
mc.state = FrameName.CROUCH_ATTACK_HAND_HEAVY;
mc.gotoAndPlay(FrameName.CROUCH_ATTACK_HAND_HEAVY);
}
function crouch_attack_leg_weak() {
mc.state = FrameName.CROUCH_ATTACK_LEG_WEAK;
mc.gotoAndPlay(FrameName.CROUCH_ATTACK_LEG_WEAK);
}
function crouch_attack_leg_normal() {
mc.state = FrameName.CROUCH_ATTACK_LEG_NORMAL;
mc.gotoAndPlay(FrameName.CROUCH_ATTACK_LEG_NORMAL);
}
function crouch_attack_leg_heavy() {
mc.state = FrameName.CROUCH_ATTACK_LEG_HEAVY;
mc.gotoAndPlay(FrameName.CROUCH_ATTACK_LEG_HEAVY);
}
function crouch_beAttacked_hand_weak(_direction) {
mc.state = FrameName.CROUCH_BEATTACKED_HAND_WEAK;
mc.gotoAndPlay(FrameName.CROUCH_BEATTACKED_HAND_WEAK);
moveHandler.crouch_beAttacked_hand_weak(_direction);
}
function crouch_beAttacked_hand_normal(_direction) {
mc.state = FrameName.CROUCH_BEATTACKED_HAND_NORMAL;
mc.gotoAndPlay(FrameName.CROUCH_BEATTACKED_HAND_NORMAL);
moveHandler.crouch_beAttacked_hand_normal(_direction);
}
function crouch_beAttacked_hand_heavy(_direction) {
mc.state = FrameName.CROUCH_BEATTACKED_HAND_HEAVY;
mc.gotoAndPlay(FrameName.CROUCH_BEATTACKED_HAND_HEAVY);
moveHandler.crouch_beAttacked_hand_heavy(_direction);
}
function crouch_beAttacked_leg_weak(_direction) {
mc.state = FrameName.CROUCH_BEATTACKED_LEG_WEAK;
mc.gotoAndPlay(FrameName.CROUCH_BEATTACKED_LEG_WEAK);
moveHandler.crouch_beAttacked_leg_weak(_direction);
}
function crouch_beAttacked_leg_normal(_direction) {
mc.state = FrameName.CROUCH_BEATTACKED_LEG_NORMAL;
mc.gotoAndPlay(FrameName.CROUCH_BEATTACKED_LEG_NORMAL);
moveHandler.crouch_beAttacked_leg_normal(_direction);
}
function crouch_beAttacked_leg_heavy(_direction) {
mc.state = FrameName.CROUCH_BEATTACKED_LEG_HEAVY;
mc.gotoAndPlay(FrameName.CROUCH_BEATTACKED_LEG_HEAVY);
moveHandler.crouch_beAttacked_leg_heavy(_direction);
}
function jump() {
mc.state = FrameName.JUMP;
mc.gotoAndPlay(FrameName.JUMP);
moveHandler.jump();
}
function jump_forward() {
mc.state = FrameName.JUMP_FORWARD;
mc.gotoAndPlay(FrameName.JUMP_FORWARD);
moveHandler.jump_forward();
}
function jump_back() {
mc.state = FrameName.JUMP_BACK;
mc.gotoAndPlay(FrameName.JUMP_BACK);
moveHandler.jump_back();
}
function jump_attack_hand_weak() {
mc.state = FrameName.JUMP_ATTACK_HAND_WEAK;
mc.gotoAndPlay(FrameName.JUMP_ATTACK_HAND_WEAK);
}
function jump_attack_hand_normal() {
mc.state = FrameName.JUMP_ATTACK_HAND_NORMAL;
mc.gotoAndPlay(FrameName.JUMP_ATTACK_HAND_NORMAL);
}
function jump_attack_hand_heavy() {
mc.state = FrameName.JUMP_ATTACK_HAND_HEAVY;
mc.gotoAndPlay(FrameName.JUMP_ATTACK_HAND_HEAVY);
}
function jump_attack_leg_weak() {
mc.state = FrameName.JUMP_ATTACK_LEG_WEAK;
mc.gotoAndPlay(FrameName.JUMP_ATTACK_LEG_WEAK);
}
function jump_attack_leg_normal() {
mc.state = FrameName.JUMP_ATTACK_LEG_NORMAL;
mc.gotoAndPlay(FrameName.JUMP_ATTACK_LEG_NORMAL);
}
function jump_attack_leg_heavy() {
mc.state = FrameName.JUMP_ATTACK_LEG_HEAVY;
mc.gotoAndPlay(FrameName.JUMP_ATTACK_LEG_HEAVY);
}
function jump_beAttacked_hand_weak(_direction) {
mc.state = FrameName.JUMP_BEATTACKED_HAND_WEAK;
mc.gotoAndPlay(FrameName.STAND_BEATTACKED_HAND_WEAK);
moveHandler.jump_beAttacked_hand_weak(_direction);
}
function jump_beAttacked_hand_normal(_direction) {
mc.state = FrameName.JUMP_BEATTACKED_HAND_NORMAL;
mc.gotoAndPlay(FrameName.STAND_BEATTACKED_HAND_NORMAL);
moveHandler.jump_beAttacked_hand_normal(_direction);
}
function jump_beAttacked_hand_heavy(_direction) {
mc.state = FrameName.JUMP_BEATTACKED_HAND_HEAVY;
mc.gotoAndPlay(FrameName.STAND_BEATTACKED_HAND_HEAVY);
moveHandler.jump_beAttacked_hand_heavy(_direction);
}
function jump_beAttacked_leg_weak(_direction) {
mc.state = FrameName.JUMP_BEATTACKED_LEG_WEAK;
mc.gotoAndPlay(FrameName.STAND_BEATTACKED_LEG_WEAK);
moveHandler.jump_beAttacked_leg_weak(_direction);
}
function jump_beAttacked_leg_normal(_direction) {
mc.state = FrameName.JUMP_BEATTACKED_LEG_NORMAL;
mc.gotoAndPlay(FrameName.STAND_BEATTACKED_LEG_NORMAL);
moveHandler.jump_beAttacked_leg_normal(_direction);
}
function jump_beAttacked_leg_heavy(_direction) {
mc.state = FrameName.JUMP_BEATTACKED_LEG_HEAVY;
mc.gotoAndPlay(FrameName.STAND_BEATTACKED_LEG_HEAVY);
moveHandler.jump_beAttacked_leg_heavy(_direction);
}
function skill_1_attack() {
mc.state = FrameName.SKILL_1_ATTACK;
mc.gotoAndPlay(FrameName.SKILL_1_ATTACK);
moveHandler.noMove();
}
function skill_2_attack() {
mc.state = FrameName.SKILL_2_ATTACK;
mc.gotoAndPlay(FrameName.SKILL_2_ATTACK);
moveHandler.noMove();
}
function skill_3_attack() {
mc.state = FrameName.SKILL_3_ATTACK;
mc.gotoAndPlay(FrameName.SKILL_3_ATTACK);
moveHandler.noMove();
}
function skill_1_beAttacked(_direction) {
mc.state = FrameName.SKILL_1_BEATTACKED;
mc.gotoAndPlay(FrameName.SKILL_1_BEATTACKED);
moveHandler.skill_1_beAttacked(_direction);
}
function skill_2_beAttacked(_direction) {
mc.state = FrameName.SKILL_2_BEATTACKED;
mc.gotoAndPlay(FrameName.SKILL_2_BEATTACKED);
moveHandler.skill_2_beAttacked(_direction);
}
function skill_3_beAttacked(_direction) {
mc.state = FrameName.SKILL_3_BEATTACKED;
mc.gotoAndPlay(FrameName.SKILL_3_BEATTACKED);
moveHandler.skill_3_beAttacked(_direction);
}
function bulletsEnabled() {
var _local2 = 0;
while (_local2 < bullets.length) {
if (bullets[_local2].enable) {
return(_local2);
}
_local2++;
}
return(-1);
}
function skill_bullet_1_attack() {
var _local2 = bulletsEnabled();
if (_local2 < 0) {
mc.state = FrameName.SKILL_BULLET_1_ATTACK;
mc.gotoAndPlay(FrameName.SKILL_BULLET_1_ATTACK);
moveHandler.noMove();
bullets[0].build(direction, BULLET_SPEED_WEAK, BULLET_DELAY_WEAK, mc._x, mc._y);
}
}
function skill_bullet_1_beAttacked(_direction) {
mc.state = FrameName.SKILL_BULLET_1_BEATTACKED;
mc.gotoAndPlay(FrameName.SKILL_BULLET_1_BEATTACKED);
moveHandler.skill_bullet_1_beAttacked(_direction);
}
function skill_bullet_2_attack() {
var _local2 = bulletsEnabled();
if (_local2 < 0) {
mc.state = FrameName.SKILL_BULLET_2_ATTACK;
mc.gotoAndPlay(FrameName.SKILL_BULLET_2_ATTACK);
moveHandler.noMove();
bullets[1].build(direction, BULLET_SPEED_NORMAL, BULLET_DELAY_NORMAL, mc._x, mc._y);
}
}
function skill_bullet_2_beAttacked(_direction) {
skill_bullet_1_beAttacked(_direction);
}
function skill_bullet_3_attack() {
var _local2 = bulletsEnabled();
if (_local2 < 0) {
mc.state = FrameName.SKILL_BULLET_3_ATTACK;
mc.gotoAndPlay(FrameName.SKILL_BULLET_3_ATTACK);
moveHandler.noMove();
bullets[2].build(direction, BULLET_SPEED_HEAVY, BULLET_DELAY_HEAVY, mc._x, mc._y);
}
}
function skill_bullet_3_beAttacked(_direction) {
skill_bullet_1_beAttacked(_direction);
}
function skill_kill_1_attack() {
if (canLaunchKill == CAN_LAUNCH) {
mc.state = FrameName.SKILL_KILL_1_ATTACK;
mc.gotoAndPlay(FrameName.SKILL_KILL_1_ATTACK);
moveHandler.noMove();
canLaunchKill = HAVE_LAUNCHED;
RevengeBg.getInstance().setBg(srcName);
RevengeBg.getInstance().setDirection(direction);
RevengeBg.getInstance().setX(mc._x);
RevengeBg.getInstance().showIt();
}
}
function skill_kill_1_beAttacked(_direction) {
mc.state = FrameName.SKILL_KILL_1_BEATTACKED;
mc.gotoAndPlay(FrameName.SKILL_KILL_1_BEATTACKED);
moveHandler.skill_kill_1_beAttacked(_direction);
}
function skill_kill_2_attack() {
if (canLaunchKill == CAN_LAUNCH) {
mc.state = FrameName.SKILL_KILL_2_ATTACK;
mc.gotoAndPlay(FrameName.SKILL_KILL_2_ATTACK);
moveHandler.noMove();
canLaunchKill = HAVE_LAUNCHED;
RevengeBg.getInstance().setBg(srcName);
RevengeBg.getInstance().setDirection(direction);
RevengeBg.getInstance().setX(mc._x);
RevengeBg.getInstance().showIt();
}
}
function skill_kill_2_beAttacked(_direction) {
mc.state = FrameName.SKILL_KILL_2_BEATTACKED;
mc.gotoAndPlay(FrameName.SKILL_KILL_2_BEATTACKED);
moveHandler.skill_kill_2_beAttacked(_direction);
}
function die(_direction) {
mc.state = FrameName.BEATTACKED_DIE;
mc.gotoAndPlay(FrameName.BEATTACKED_DIE);
moveHandler.die(_direction);
}
function dead() {
mc.state = FrameName.DEAD;
mc.gotoAndPlay(FrameName.DEAD);
}
function sleep() {
mc.state = FrameName.SLEEP;
mc.gotoAndPlay(FrameName.SLEEP);
}
static var CANT_LAUNCH = 0;
static var CAN_LAUNCH = 1;
static var HAVE_LAUNCHED = 2;
}
Symbol 1531 MovieClip [__Packages.MoveHandler] Frame 0
class MoveHandler
{
static var G, G_SLOW;
var actions, mc, stageGround, enable, vx, vy, vc, VX_FORWARD, VX_BACK, VX_FLY_WEAK, VX_FLY_NORMAL, VX_FLY_HEAVY, VX_FLY_DIE, VY_JUMP, VY_FLY_WEAK, VY_FLY_NORMAL, VY_FLY_HEAVY, VY_FLY_DIE, VC_WEAK, VC_NORMAL, VC_HEAVY, VC_SKILL_WEAK, VC_SKILL_NORMAL, VC_SKILL_HEAVY, g, debug, eventMc;
function MoveHandler (_a) {
actions = _a;
mc = actions.mc;
stageGround = StageGround.getInstance();
enable = true;
vx = (vy = (vc = 0));
VX_FORWARD = 15;
VX_BACK = 15;
VX_FLY_WEAK = 10;
VX_FLY_NORMAL = 20;
VX_FLY_HEAVY = 30;
VX_FLY_DIE = 10;
VY_JUMP = -60;
VY_FLY_WEAK = -20;
VY_FLY_NORMAL = -40;
VY_FLY_HEAVY = -60;
VY_FLY_DIE = -30;
VC_WEAK = 2;
VC_NORMAL = 3;
VC_HEAVY = 4;
VC_SKILL_WEAK = 3;
VC_SKILL_NORMAL = 5;
VC_SKILL_HEAVY = 10;
G = 10;
G_SLOW = 2;
g = G;
debug = false;
loadEvent();
}
function unloadEvent() {
eventMc.onEnterFrame = null;
removeMovieClip(eventMc);
}
function loadEvent() {
var instance = this;
var _local3 = _root.getNextHighestDepth();
eventMc = _root.createEmptyMovieClip("moveHandler" + _local3, _local3);
eventMc.onEnterFrame = function () {
if (!instance.enable) {
return(undefined);
}
instance.process();
};
}
function process() {
if (vy != 0) {
mc._y = mc._y + vy;
}
if (((!State.isHitFly(mc.state)) && (!State.isJumping(mc.state))) && (!State.controllable(mc.state))) {
if (vc != 0) {
vc--;
} else {
vx = 0;
if (State.isHit(mc.state)) {
actions.stand();
}
}
}
if (mc._y > StageGround.y_stand) {
mc._y = StageGround.y_stand;
vy = 0;
if (State.isHitFly(mc.state)) {
vx = 0;
if (State.canShakeStage(mc.state)) {
stageGround.shake();
}
if (mc.state == FrameName.BEATTACKED_DIE) {
actions.dead();
} else {
actions.sleep();
}
} else {
actions.stand();
}
} else if (mc._y < StageGround.y_stand) {
vy = vy + g;
}
if (vx != 0) {
if (State.isConstrain(mc.edgeState)) {
if ((!isGoToBack()) && (!State.isSameSide(actions.getDirection(), mc.edgeState))) {
mc._x = mc._x + vx;
}
} else {
if (mc.bodyState == State.BODY_REACH) {
if (State.reachStageEdge(mc.edgeState)) {
if (isGoToBack() && (State.isSameSide(actions.getDirection(), mc.edgeState))) {
mc._x = mc._x + vx;
}
} else if (isGoToBack()) {
mc._x = mc._x + vx;
}
} else if (mc.edgeState == State.STAGE_EDGE_REACH_LEFT) {
if (isGoToBack() && (actions.direction == McLoader.DIRECTION_RIGHT)) {
} else if ((!isGoToBack()) && (actions.direction == McLoader.DIRECTION_LEFT)) {
} else {
mc._x = mc._x + vx;
}
} else if (mc.edgeState == State.STAGE_EDGE_REACH_RIGHT) {
if (isGoToBack() && (actions.direction == McLoader.DIRECTION_LEFT)) {
} else if ((!isGoToBack()) && (actions.direction == McLoader.DIRECTION_RIGHT)) {
} else {
mc._x = mc._x + vx;
}
} else {
mc._x = mc._x + vx;
}
if (mc.edgeState == State.EDGE_REACH_LEFT) {
stageGround.mc._x = stageGround.mc._x + Math.abs(vx);
} else if (mc.edgeState == State.EDGE_REACH_RIGHT) {
stageGround.mc._x = stageGround.mc._x - Math.abs(vx);
}
}
}
resetPlayerAtEdge();
resetStageEdge();
}
function resetPlayerAtEdge() {
var _local2 = actions.getGlobalX();
var _local3 = mc.beAttackedArea._width / 2;
if (_local2 > (Stage.width - _local3)) {
_local2 = Stage.width - _local3;
} else if (_local2 < _local3) {
_local2 = _local3;
}
actions.setGlobalX(_local2);
}
function resetStageEdge() {
if ((stageGround.mc._x + stageGround.getOrgWidth()) < Stage.width) {
stageGround.mc._x = Stage.width - stageGround.getOrgWidth();
} else if (stageGround.mc._x > 0) {
stageGround.mc._x = 0;
}
}
function isGoToBack() {
if ((vx * actions.getDirection()) < 0) {
return(true);
}
return(false);
}
function revampDirection(_direction) {
if (_direction == actions.getDirection()) {
vx = -vx;
}
}
function forward() {
vx = VX_FORWARD * actions.getDirection();
}
function backForward() {
mc._x = mc._x - (VX_FORWARD * actions.getDirection());
}
function back() {
vx = (-VX_BACK) * actions.getDirection();
}
function noMove() {
vx = 0;
}
function jump() {
vy = VY_JUMP;
}
function jump_forward() {
vx = VX_FORWARD * actions.getDirection();
vy = VY_JUMP;
}
function jump_back() {
vx = (-VX_BACK) * actions.getDirection();
vy = VY_JUMP;
}
function forward_weak_distance() {
vx = VX_FORWARD * actions.getDirection();
vc = VC_SKILL_WEAK;
}
function forward_normal_distance() {
vx = VX_FORWARD * actions.getDirection();
vc = VC_SKILL_NORMAL;
}
function forward_long_distance() {
vx = VX_FORWARD * actions.getDirection();
vc = VC_SKILL_HEAVY;
}
function stand_beAttacked_hand_weak(_direction) {
if (State.isHitFly(mc.state)) {
vy = VY_FLY_HEAVY;
} else {
vc = VC_WEAK;
}
vx = (-VX_FLY_WEAK) * actions.getDirection();
revampDirection(_direction);
}
function stand_beAttacked_hand_normal(_direction) {
if (State.isHitFly(mc.state)) {
vy = VY_FLY_HEAVY;
} else {
vc = VC_NORMAL;
}
vx = (-VX_FLY_NORMAL) * actions.getDirection();
revampDirection(_direction);
}
function stand_beAttacked_hand_heavy(_direction) {
if (State.isHitFly(mc.state)) {
vy = VY_FLY_HEAVY;
} else {
vc = VC_HEAVY;
}
vx = (-VX_FLY_HEAVY) * actions.getDirection();
revampDirection(_direction);
}
function stand_beAttacked_leg_weak(_direction) {
stand_beAttacked_hand_weak(_direction);
}
function stand_beAttacked_leg_normal(_direction) {
stand_beAttacked_hand_normal(_direction);
}
function stand_beAttacked_leg_heavy(_direction) {
stand_beAttacked_hand_heavy(_direction);
}
function crouch_beAttacked_hand_weak(_direction) {
if (State.isHitFly(mc.state)) {
vy = VY_FLY_NORMAL;
} else {
vc = VC_NORMAL;
}
vx = (-VX_FLY_NORMAL) * actions.getDirection();
revampDirection(_direction);
}
function crouch_beAttacked_hand_normal(_direction) {
crouch_beAttacked_hand_weak(_direction);
}
function crouch_beAttacked_hand_heavy(_direction) {
crouch_beAttacked_hand_weak(_direction);
}
function crouch_beAttacked_leg_weak(_direction) {
crouch_beAttacked_hand_weak(_direction);
}
function crouch_beAttacked_leg_normal(_direction) {
crouch_beAttacked_hand_weak(_direction);
}
function crouch_beAttacked_leg_heavy(_direction) {
crouch_beAttacked_hand_weak(_direction);
}
function jump_beAttacked_hand_weak(_direction) {
if (State.isJumping(mc.state)) {
crouch_beAttacked_hand_weak(_direction);
} else {
stand_beAttacked_hand_weak(_direction);
}
}
function jump_beAttacked_hand_normal(_direction) {
if (State.isJumping(mc.state)) {
crouch_beAttacked_hand_normal(_direction);
} else {
stand_beAttacked_hand_normal(_direction);
}
}
function jump_beAttacked_hand_heavy(_direction) {
if (State.isJumping(mc.state)) {
crouch_beAttacked_hand_heavy(_direction);
} else {
stand_beAttacked_hand_heavy(_direction);
}
}
function jump_beAttacked_leg_weak(_direction) {
if (State.isJumping(mc.state)) {
crouch_beAttacked_leg_weak(_direction);
} else {
stand_beAttacked_leg_weak(_direction);
}
}
function jump_beAttacked_leg_normal(_direction) {
if (State.isJumping(mc.state)) {
crouch_beAttacked_leg_normal(_direction);
} else {
stand_beAttacked_leg_normal(_direction);
}
}
function jump_beAttacked_leg_heavy(_direction) {
if (State.isJumping(mc.state)) {
crouch_beAttacked_leg_heavy(_direction);
} else {
stand_beAttacked_leg_heavy(_direction);
}
}
function skill_1_beAttacked(_direction) {
if (State.isHitFly(mc.state)) {
vy = VY_FLY_HEAVY;
} else {
vc = VC_HEAVY;
}
vx = (-VX_FLY_HEAVY) * actions.getDirection();
revampDirection(_direction);
}
function skill_2_beAttacked(_direction) {
if (State.isHitFly(mc.state)) {
vy = VY_FLY_HEAVY;
} else {
vc = VC_HEAVY;
}
vx = (-VX_FLY_HEAVY) * actions.getDirection();
revampDirection(_direction);
}
function skill_3_beAttacked(_direction) {
revampDirection(_direction);
}
function skill_bullet_1_beAttacked(_direction) {
if (State.isHitFly(mc.state)) {
vy = VY_FLY_HEAVY;
} else {
vc = VC_HEAVY;
}
vx = (-VX_FLY_HEAVY) * actions.getDirection();
revampDirection(_direction);
}
function skill_bullet_2_beAttacked(_direction) {
if (State.isHitFly(mc.state)) {
vy = VY_FLY_HEAVY;
} else {
vc = VC_HEAVY;
}
vx = (-VX_FLY_HEAVY) * actions.getDirection();
revampDirection(_direction);
}
function skill_bullet_3_beAttacked(_direction) {
if (State.isHitFly(mc.state)) {
vy = VY_FLY_HEAVY;
} else {
vc = VC_HEAVY;
}
vx = (-VX_FLY_HEAVY) * actions.getDirection();
revampDirection(_direction);
}
function skill_kill_1_beAttacked(_direction) {
if (State.isHitFly(mc.state)) {
vy = VY_FLY_NORMAL;
} else {
vc = VC_HEAVY;
}
vx = (-VX_FLY_HEAVY) * actions.getDirection();
revampDirection(_direction);
}
function skill_kill_2_beAttacked(_direction) {
skill_3_beAttacked(_direction);
}
function die(_direction) {
vy = VY_FLY_DIE;
vc = 0;
vx = (-VX_FLY_DIE) * actions.getDirection();
revampDirection(_direction);
g = G_SLOW;
}
}
Symbol 1532 MovieClip [__Packages.StageGround] Frame 0
class StageGround extends McLoader
{
static var stageGround;
var mc;
function StageGround (parentMc) {
super(parentMc, LinkName.STAGE_GROUND);
mc._x = (Stage.width - mc._width) / 2;
mc._visible = false;
}
static function getInstance() {
if (Utils.isNull(stageGround)) {
trace("StageGround: new an instance");
stageGround = new StageGround(_root);
}
return(stageGround);
}
function unloadMc() {
super.unloadMc();
stageGround = null;
}
function shake() {
mc.gotoAndPlay(FrameName.STAGE_SHAKE);
}
function setBg(num) {
mc.bg.gotoAndStop(num);
}
static var y_stand = 380;
}
Symbol 1533 MovieClip [__Packages.LinkName] Frame 0
class LinkName
{
function LinkName () {
}
static var PEOPLE_ACTOR1 = "actor1";
static var PEOPLE_ACTOR2 = "actor2";
static var PEOPLE_ACTOR3 = "actor3";
static var ITEM_INFOBAR = "infoBar";
static var ITEM_ROUNDS = "rounds";
static var MENU_HEAD = "headMenu";
static var STAGE_GROUND = "stageGround";
static var FOREGROUND = "foreground";
static var REVENGE_BG = "revengeScreen";
static var SCREEN_MENU = "menuScreen";
static var SCREEN_VS = "vsScreen";
static var SCREEN_CHARACTER = "characterScreen";
static var SCREEN_WIN = "winScreen";
static var SCREEN_DEUCE = "deuceScreen";
static var SCREEN_CONTINUE = "continueScreen";
static var SCREEN_ALL_CLEAR = "allClearScreen";
static var SCREEN_PAUSE = "pauseScreen";
static var SCREEN_GAMEOVER = "gameoverScreen";
static var SWAPPER = "swapper";
static var TEXTEFFECT_READYFIGHT = "readyFight";
static var TEXTEFFECT_KO = "ko";
}
Symbol 1534 MovieClip [__Packages.RevengeBg] Frame 0
class RevengeBg extends McLoader
{
static var revengeBg;
var mc, direction, reverseMc;
function RevengeBg (parentMc) {
super(parentMc, LinkName.REVENGE_BG);
mc._visible = false;
}
static function getInstance() {
if (Utils.isNull(revengeBg)) {
trace("RevengeBg: new an instance");
revengeBg = new RevengeBg(StageGround.getInstance().mc.bg);
}
return(revengeBg);
}
function unloadMc() {
super.unloadMc();
revengeBg = null;
}
function setBg(frameName) {
mc.bg.gotoAndStop(frameName);
}
function setDirection(_direction) {
if (_direction != direction) {
reverseMc();
}
}
function setX(xx) {
mc._x = xx;
}
function showIt() {
mc.gotoAndPlay(1);
mc._visible = true;
trace("show it: " + mc._currentframe);
}
}
Symbol 1535 MovieClip [__Packages.GameHandler] Frame 0
class GameHandler
{
static var gameHandler;
var allCharacters, pauseScreen, headMenu, readyFight, ko, swapper, menuScreen, competitors, characterScreen, p1Selected, currentCPU, continueCounter, p1score, p2score, cpuLevel, vsScreen, winScreen, deuceScreen, round, winners, battle, p1Name, p1isCPU, p2Name, p2isCPU, looser, winner, allClearScreen, continueScreen, gameoverScreen;
function GameHandler () {
allCharacters = new Array(LinkName.PEOPLE_ACTOR1, LinkName.PEOPLE_ACTOR2, LinkName.PEOPLE_ACTOR3);
loadMenuScreen();
loadCharacterScreen();
loadVSScreen();
loadSwapper();
loadWinScreen();
loadDeuceScreen();
loadContinueScreen();
loadAllClearScreen();
loadPauseScreen();
loadGameoverScreen();
loadHeadMenu();
loadTextEffect();
showMenuScreen();
}
static function getInstance() {
if (Utils.isNull(gameHandler)) {
trace("GameHandler: new an instance");
gameHandler = new GameHandler();
}
return(gameHandler);
}
function loadPauseScreen() {
pauseScreen = new PauseScreen(this);
}
function showPauseScreen() {
if (StageGround.getInstance().mc.getDepth() > pauseScreen.mc.getDepth()) {
pauseScreen.mc.swapDepths(StageGround.getInstance().mc);
}
pauseScreen.mc._visible = true;
}
function hidePauseScreen() {
pauseScreen.mc._visible = false;
}
function loadHeadMenu() {
headMenu = new HeadMenu(this);
}
function showHeadMenu() {
headMenu.reset();
if (StageGround.getInstance().mc.getDepth() > headMenu.mc.getDepth()) {
headMenu.mc.swapDepths(StageGround.getInstance().mc);
}
headMenu.mc._visible = true;
}
function hideHeadMenu() {
headMenu.mc._visible = false;
}
function loadTextEffect() {
readyFight = new ReadyFight();
ko = new KO();
}
function hideTextEffect() {
readyFight.mc._visible = false;
ko.mc._visible = false;
}
function loadSwapper() {
swapper = new Swapper();
}
function hideSwapper() {
swapper.mc._visible = false;
}
function loadMenuScreen() {
menuScreen = new MenuScreen();
var instance = this;
menuScreen.onStart = function () {
instance.p1isCPU = false;
instance.p2Name = instance.competitors[instance.currentCPU++];
instance.p2isCPU = true;
instance.prepareShowCharacterScreen();
};
menuScreen.onStartVS = function () {
instance.p1isCPU = false;
instance.p2isCPU = false;
instance.prepareShowCharacterScreen();
};
}
function showMenuScreen() {
menuScreen.mc._visible = true;
Sounds.nextMusic();
}
function hideMenuScreen() {
menuScreen.mc._visible = false;
}
function setCompetitors(_selected) {
competitors = new Array();
var _local2 = 0;
while (_local2 < allCharacters.length) {
if (allCharacters[_local2] != _selected) {
competitors.push(allCharacters[_local2]);
}
_local2++;
}
trace(competitors);
}
function loadCharacterScreen() {
characterScreen = new CharacterScreen();
var instance = this;
characterScreen.onCharacterSelect = function (_selected) {
if (instance.p1Selected) {
instance.p2Name = _selected;
instance.prepareLoadBattle_newBattle();
} else if (instance.p2isCPU) {
instance.p1Name = _selected;
instance.setCompetitors(instance.p1Name);
instance.p2Name = instance.competitors[instance.currentCPU];
instance.prepareLoadBattle_newBattle();
} else {
instance.p1Name = _selected;
instance.p1Selected = true;
instance.prepareShowP2SelectScreen();
}
};
characterScreen.onMenuClick = function () {
instance.hideCharacterScreen();
instance.showMenuScreen();
};
}
function prepareShowCharacterScreen() {
var instance = this;
swapper.onClosed = function () {
instance.hideAllClearScreen();
instance.hideMenuScreen();
instance.showCharacterScreen();
instance.characterScreen.selectP1();
};
swapper.launch();
}
function prepareShowP2SelectScreen() {
var instance = this;
swapper.onClosed = function () {
instance.characterScreen.selectP2();
};
swapper.launch();
}
function showCharacterScreen() {
p1Selected = false;
currentCPU = 0;
continueCounter = 1;
p1score = 0;
p2score = 0;
cpuLevel = CPUHandler.LEVEL_5;
characterScreen.mc._visible = true;
Sounds.nextMusic(5);
}
function hideCharacterScreen() {
characterScreen.mc._visible = false;
}
function loadVSScreen() {
vsScreen = new VSScreen();
}
function loadWinScreen() {
winScreen = new WinScreen();
}
function hideWinScreen() {
winScreen.mc._visible = false;
}
function loadDeuceScreen() {
deuceScreen = new DeuceScreen();
}
function prepareLoadBattle_newBattle() {
trace("prepareLoadBattle in new battle");
round = 1;
winners = new Array();
if (cpuLevel < CPUHandler.LEVEL_MAX) {
cpuLevel++;
}
trace((("cpuLevel = " + cpuLevel) + ", LEVEL_MAX = ") + CPUHandler.LEVEL_MAX);
battle = new Battle(p1Name, p1isCPU, p1score, p2Name, p2isCPU, p2score, round);
battle.setCPULevel(cpuLevel);
var instance = this;
vsScreen.onClosed = function () {
instance.hideCharacterScreen();
instance.showHeadMenu();
instance.showBattle();
instance.hideTextEffect();
instance.prepareFight();
};
vsScreen.launch(p1Name, p2Name);
}
function prepareLoadBattle_sameBattle() {
trace("prepareLoadBattle in same battle, cpu level = " + cpuLevel);
unloadBattle();
round++;
battle = new Battle(p1Name, p1isCPU, p1score, p2Name, p2isCPU, p2score, round);
battle.setCPULevel(cpuLevel);
hideCharacterScreen();
showHeadMenu();
showBattle();
hideTextEffect();
prepareFight();
swapper.mc.swapDepths(_root.getNextHighestDepth());
}
function unloadBattle() {
battle.unloadBattle();
hideHeadMenu();
}
function showBattle() {
battle.showBattle();
Sounds.nextMusic();
}
function prepareFight() {
var instance = this;
readyFight.onClosed = function () {
instance.battle.fight();
};
readyFight.launch();
}
function prepareLoadNextScreen(_string) {
trace("winner is " + _string);
trace((battle.p1.getScore() + ", ") + battle.p2.getScore());
p1score = battle.p1.getScore();
p2score = battle.p2.getScore();
var instance = this;
var swapperScreen;
if (_string == LinkName.SCREEN_DEUCE) {
deuceScreen.onClosed = function () {
instance.prepareLoadBattle_sameBattle();
};
swapperScreen = deuceScreen;
} else {
winners.unshift(_string);
if (_string == p1Name) {
looser = p2Name;
} else {
looser = p1Name;
}
if (winners.length == 1) {
swapper.onClosed = function () {
instance.prepareLoadBattle_sameBattle();
};
swapperScreen = swapper;
} else if (winners.length == 2) {
if (winners[0] == winners[1]) {
winner = winners[0];
swapperScreen = judgeWinner(winners[0]);
} else {
swapper.onClosed = function () {
instance.prepareLoadBattle_sameBattle();
};
swapperScreen = swapper;
}
} else if (winners.length == 3) {
if ((winners[0] == winners[1]) || (winners[0] == winners[2])) {
winner = winners[0];
swapperScreen = judgeWinner(winners[0]);
} else {
trace("should not be print");
}
}
}
ko.onClosed = function () {
swapperScreen.launch(instance.winner);
};
ko.launch();
}
function judgeWinner(winner) {
var instance = this;
if ((!p1isCPU) && (!p2isCPU)) {
winScreen.onClosed = function () {
instance.unloadBattle();
instance.prepareShowCharacterScreen();
};
} else if (((winner == p1Name) && (p1isCPU)) || ((winner == p2Name) && (p2isCPU))) {
winScreen.onClosed = function () {
if (instance.continueCounter > instance.CONTINUE_COUNTER_MAX) {
instance.prepareShowGameoverScreen();
} else {
instance.prepareShowContinueScreen();
}
};
} else if ((++currentCPU) >= competitors.length) {
winScreen.onClosed = function () {
instance.hideTextEffect();
instance.prepareShowAllClearScreen();
};
} else {
if (winner == p1Name) {
p2Name = competitors[currentCPU];
p2isCPU = true;
}
winScreen.onClosed = function () {
instance.unloadBattle();
instance.prepareLoadBattle_newBattle();
};
}
return(winScreen);
}
function prepareShowAllClearScreen() {
var instance = this;
swapper.onClosed = function () {
instance.hideWinScreen();
instance.unloadBattle();
instance.showAllClearScreen();
};
swapper.launch();
}
function loadAllClearScreen() {
allClearScreen = new AllClearScreen();
var instance = this;
allClearScreen.onReStart = function () {
instance.hideAllClearScreen();
instance.showMenuScreen();
};
}
function showAllClearScreen() {
allClearScreen.mc._visible = true;
allClearScreen.mc.endingMovie.gotoAndPlay(2);
Sounds.nextMusic(6);
}
function hideAllClearScreen() {
allClearScreen.mc._visible = false;
}
function prepareShowContinueScreen() {
var instance = this;
continueScreen.onClosed = function () {
instance.prepareShowGameoverScreen();
};
continueScreen.onClick = function () {
instance.p1score = 0;
instance.p2score = 0;
this.mc.gotoAndStop(this.mc._totalframes);
instance.continueCounter++;
instance.unloadBattle();
instance.prepareLoadBattle_newBattle();
};
continueScreen.launch(looser);
continueScreen.setCounter(CONTINUE_COUNTER_MAX - continueCounter);
Sounds.nextMusic();
}
function loadContinueScreen() {
continueScreen = new ContinueScreen();
}
function prepareShowGameoverScreen() {
var instance = this;
gameoverScreen.onClosed = function () {
instance.unloadBattle();
instance.showMenuScreen();
};
gameoverScreen.launch();
}
function loadGameoverScreen() {
gameoverScreen = new GameoverScreen();
}
var CONTINUE_COUNTER_MAX = 3;
static var firstPlay = true;
}
Symbol 1536 MovieClip [__Packages.MenuScreen] Frame 0
class MenuScreen extends McLoader
{
var mc;
function MenuScreen () {
super(_root, LinkName.SCREEN_MENU);
loadEvent();
mc._visible = false;
mc.credits._visible = false;
mc.help._visible = false;
setBg(1 + Utils.getRandom(2));
}
function loadEvent() {
var instance = this;
mc.btn_start.onRelease = function () {
instance.onStart();
};
mc.btn_start_vs.onRelease = function () {
instance.onStartVS();
};
mc.btn_credits.onRelease = function () {
getURL ("http://www.wannarelax.com", "_blank");
};
mc.btn_help.onRelease = function () {
instance.mc.help._visible = true;
};
mc.help.onRelease = function () {
instance.mc.help._visible = false;
};
}
function onStart() {
}
function onStartVS() {
}
function setBg(num) {
mc.menuBg.gotoAndStop(num);
}
}
Symbol 1537 MovieClip [__Packages.CharacterScreen] Frame 0
class CharacterScreen extends McLoader
{
var mc, mouseOverCharacterName, head1, head2, head3;
function CharacterScreen () {
super(_root, LinkName.SCREEN_CHARACTER);
loadAllHeads();
mc._visible = false;
mouseOverCharacterName = "prepareCharacter1";
}
function loadAllHeads() {
head1 = new Head(mc.mc.actor1, LinkName.PEOPLE_ACTOR1);
head2 = new Head(mc.mc.actor2, LinkName.PEOPLE_ACTOR2);
head3 = new Head(mc.mc.actor3, LinkName.PEOPLE_ACTOR3);
loadEvent();
}
function selectP1() {
mc.mc.p1p2SelectText.gotoAndStop(FrameName.CHARACTER_SCREEN_P1SELECTTEXT);
}
function selectP2() {
mc.mc.p1p2SelectText.gotoAndStop(FrameName.CHARACTER_SCREEN_P2SELECTTEXT);
}
function loadEvent() {
var instance = this;
mc.mc.btn_menu.onRelease = function () {
instance.onMenuClick();
};
mc.mc.actor1.selectBtn.onRelease = function () {
instance.onCharacterSelect(instance.head1.characterName);
};
mc.mc.actor1.selectBtn.onRollOver = function () {
instance.mc.mc.prepareCharacter.attachMovie(instance.head1.characterName, this.mouseOverCharacterName, 99);
instance.mouseOverCharacter = instance.mc.mc.prepareCharacter[this.mouseOverCharacterName];
instance.mouseOverCharacter.gotoAndStop(FrameName.STAND);
};
mc.mc.actor2.selectBtn.onRelease = function () {
instance.onCharacterSelect(instance.head2.characterName);
};
mc.mc.actor2.selectBtn.onRollOver = function () {
instance.mc.mc.prepareCharacter.attachMovie(instance.head2.characterName, this.mouseOverCharacterName, 99);
instance.mouseOverCharacter = instance.mc.mc.prepareCharacter[this.mouseOverCharacterName];
instance.mouseOverCharacter.gotoAndStop(FrameName.STAND);
};
mc.mc.actor3.selectBtn.onRelease = function () {
instance.onCharacterSelect(instance.head3.characterName);
};
mc.mc.actor3.selectBtn.onRollOver = function () {
instance.mc.mc.prepareCharacter.attachMovie(instance.head3.characterName, this.mouseOverCharacterName, 99);
instance.mouseOverCharacter = instance.mc.mc.prepareCharacter[this.mouseOverCharacterName];
instance.mouseOverCharacter.gotoAndStop(FrameName.STAND);
};
}
function onCharacterSelect(_selected) {
}
function onMenuClick() {
}
}
Symbol 1538 MovieClip [__Packages.Head] Frame 0
class Head extends McLoader
{
var characterName;
function Head (parentMc, _characterName) {
super(parentMc, _characterName + "Head", 0, 0);
characterName = _characterName;
}
}
Symbol 1539 MovieClip [__Packages.VSScreen] Frame 0
class VSScreen extends McLoader
{
var mc, p1Name, p2Name, head1, head2, unloadMc;
function VSScreen () {
super(_root, LinkName.SCREEN_VS);
loadEvent();
mc._visible = false;
mc.stop();
}
function init() {
super(_root, LinkName.SCREEN_VS);
loadEvent();
}
function loadEvent() {
var instance = this;
mc.onEnterFrame = function () {
if (this.state == FrameName.SWAPPER_CLOSED) {
instance.onClosed();
instance.mc.onEnterFrame = null;
}
};
if ((!Utils.isNull(p1Name)) && (!Utils.isNull(p2Name))) {
head1 = new Head(mc.mc1.headBar, p1Name);
head2 = new Head(mc.mc2.headBar, p2Name);
}
}
function onClosed() {
}
function launch(_p1n, _p2n) {
p1Name = _p1n;
p2Name = _p2n;
if (!Utils.isNull(mc)) {
unloadMc();
init();
}
mc._visible = true;
}
}
Symbol 1540 MovieClip [__Packages.WinScreen] Frame 0
class WinScreen extends McLoader
{
var mc, pName, head, unloadMc;
function WinScreen () {
super(_root, LinkName.SCREEN_WIN);
loadEvent();
mc._visible = false;
}
function init() {
super(_root, LinkName.SCREEN_WIN);
loadEvent();
}
function loadEvent() {
var instance = this;
mc.onEnterFrame = function () {
if (this.state == FrameName.SWAPPER_CLOSED) {
instance.onClosed();
instance.mc.onEnterFrame = null;
}
};
if (!Utils.isNull(pName)) {
head = new Head(mc.mc1.headBar, pName);
}
}
function onClosed() {
}
function launch(_pn) {
trace("win screen launch");
pName = _pn;
if (!Utils.isNull(mc)) {
unloadMc();
init();
}
mc._visible = true;
}
}
Symbol 1541 MovieClip [__Packages.DeuceScreen] Frame 0
class DeuceScreen extends McLoader
{
var mc, unloadMc;
function DeuceScreen () {
super(_root, LinkName.SCREEN_DEUCE);
loadEvent();
mc._visible = false;
}
function init() {
super(_root, LinkName.SCREEN_DEUCE);
loadEvent();
}
function loadEvent() {
var instance = this;
mc.onEnterFrame = function () {
if (this.state == FrameName.SWAPPER_CLOSED) {
instance.onClosed();
instance.mc.onEnterFrame = null;
}
};
}
function onClosed() {
}
function launch() {
trace("deuce screen launch");
if (!Utils.isNull(mc)) {
unloadMc();
init();
}
mc._visible = true;
}
}
Symbol 1542 MovieClip [__Packages.ContinueScreen] Frame 0
class ContinueScreen extends McLoader
{
var mc, pName, head, unloadMc;
function ContinueScreen () {
super(_root, LinkName.SCREEN_CONTINUE);
mc.gotoAndStop(mc._totalframes);
loadEvent();
mc._visible = false;
}
function init() {
super(_root, LinkName.SCREEN_CONTINUE);
loadEvent();
}
function loadEvent() {
var instance = this;
mc.onEnterFrame = function () {
if (this.state == FrameName.SWAPPER_CLOSED) {
instance.onClosed();
instance.mc.onEnterFrame = null;
}
};
mc.mc1.btn_continue.onRelease = function () {
instance.onClick();
};
if (!Utils.isNull(pName)) {
head = new Head(mc.mc1.headBar, pName);
}
}
function onClick() {
}
function onClosed() {
}
function launch(_pn) {
trace("continue screen launch, looser is " + _pn);
pName = _pn;
if (!Utils.isNull(mc)) {
unloadMc();
init();
}
mc._visible = true;
}
function setCounter(_c) {
mc.mc1.counterBar.counter = _c;
}
}
Symbol 1543 MovieClip [__Packages.AllClearScreen] Frame 0
class AllClearScreen extends McLoader
{
var mc;
function AllClearScreen () {
super(_root, LinkName.SCREEN_ALL_CLEAR);
loadEvent();
mc._visible = false;
}
function loadEvent() {
var instance = this;
mc.btn_restart.onRelease = function () {
instance.onReStart();
};
}
function onReStart() {
}
}
Symbol 1544 MovieClip [__Packages.PauseScreen] Frame 0
class PauseScreen extends McLoader
{
var gameHandler, mc;
function PauseScreen (_gh) {
super(_root, LinkName.SCREEN_PAUSE);
gameHandler = _gh;
mc._x = (Stage.width - mc._width) / 2;
mc._y = (Stage.height - mc._height) / 2;
mc._visible = false;
loadEvent();
}
function loadEvent() {
var instance = this;
mc.onRelease = function () {
instance.gameHandler.battle.continueMc();
instance.gameHandler.headMenu.mc.btn_pause._visible = true;
instance.gameHandler.headMenu.mc.btn_continue._visible = false;
this._visible = false;
};
}
}
Symbol 1545 MovieClip [__Packages.GameoverScreen] Frame 0
class GameoverScreen extends McLoader
{
var mc, unloadMc;
function GameoverScreen () {
super(_root, LinkName.SCREEN_GAMEOVER);
loadEvent();
mc._visible = false;
}
function init() {
super(_root, LinkName.SCREEN_GAMEOVER);
loadEvent();
}
function loadEvent() {
var instance = this;
mc.onEnterFrame = function () {
if (this.state == FrameName.SWAPPER_CLOSED) {
instance.onClosed();
instance.mc.onEnterFrame = null;
}
};
}
function onClosed() {
}
function launch() {
if (!Utils.isNull(mc)) {
unloadMc();
init();
}
mc._visible = true;
}
}
Symbol 1546 MovieClip [__Packages.HeadMenu] Frame 0
class HeadMenu extends McLoader
{
var gameHandler, mc;
function HeadMenu (_gh) {
super(_root, LinkName.MENU_HEAD);
gameHandler = _gh;
mc._visible = false;
mc.screen_howToPlay._visible = false;
loadEvent();
}
function loadEvent() {
mc.btn_continue._visible = false;
var instance = this;
mc.btn_toMenu.onRelease = function () {
instance.gameHandler.swapper.onClosed = function () {
instance.gameHandler.unloadBattle();
instance.gameHandler.showMenuScreen();
instance.gameHandler.hideTextEffect();
instance.gameHandler.hidePauseScreen();
instance.reset();
};
instance.gameHandler.swapper.launch();
};
mc.btn_pause.onRelease = function () {
instance.gameHandler.battle.pauseMc();
instance.gameHandler.headMenu.mc.btn_continue._visible = true;
this._visible = false;
instance.gameHandler.showPauseScreen();
};
mc.btn_continue.onRelease = function () {
instance.gameHandler.battle.continueMc();
instance.gameHandler.headMenu.mc.btn_pause._visible = true;
this._visible = false;
instance.gameHandler.hidePauseScreen();
};
mc.btn_howToPlay.onRelease = function () {
instance.gameHandler.battle.pauseMc();
instance.gameHandler.headMenu.mc.screen_howToPlay._visible = true;
};
mc.screen_howToPlay.onRelease = function () {
instance.gameHandler.battle.continueMc();
instance.gameHandler.headMenu.mc.screen_howToPlay._visible = false;
};
}
function reset() {
mc.btn_pause._visible = true;
mc.btn_continue._visible = false;
}
function firstPlay() {
mc.btn_howToPlay.gotoAndPlay(1);
}
}
Symbol 1547 MovieClip [__Packages.Swapper] Frame 0
class Swapper extends McLoader
{
var mc, unloadMc;
function Swapper () {
super(_root, LinkName.SWAPPER);
loadEvent();
mc._visible = false;
}
function init() {
super(_root, LinkName.SWAPPER);
loadEvent();
}
function loadEvent() {
var instance = this;
mc.onEnterFrame = function () {
if (this.state == FrameName.SWAPPER_CLOSED) {
instance.onClosed();
instance.mc.onEnterFrame = null;
}
};
}
function onClosed() {
}
function launch() {
if (!Utils.isNull(mc)) {
unloadMc();
init();
}
mc._visible = true;
}
}
Symbol 1548 MovieClip [__Packages.ReadyFight] Frame 0
class ReadyFight extends McLoader
{
var mc, unloadMc;
function ReadyFight () {
super(_root, LinkName.TEXTEFFECT_READYFIGHT);
loadEvent();
mc._visible = false;
}
function init() {
super(_root, LinkName.TEXTEFFECT_READYFIGHT);
loadEvent();
}
function loadEvent() {
var instance = this;
mc.onEnterFrame = function () {
if (this.state == FrameName.SWAPPER_CLOSED) {
instance.onClosed();
instance.mc.onEnterFrame = null;
}
};
}
function onClosed() {
}
function launch() {
if (!Utils.isNull(mc)) {
unloadMc();
init();
}
mc._x = (Stage.width - mc._width) / 2;
mc._y = (Stage.height - mc._height) / 2;
mc._visible = true;
if (GameHandler.firstPlay) {
GameHandler.firstPlay = false;
GameHandler.getInstance().headMenu.firstPlay();
}
}
}
Symbol 1549 MovieClip [__Packages.KO] Frame 0
class KO extends McLoader
{
var mc, unloadMc;
function KO () {
super(_root, LinkName.TEXTEFFECT_KO);
loadEvent();
mc._visible = false;
}
function init() {
super(_root, LinkName.TEXTEFFECT_KO);
loadEvent();
}
function loadEvent() {
var instance = this;
mc.onEnterFrame = function () {
if (this.state == FrameName.SWAPPER_CLOSED) {
instance.onClosed();
instance.mc.onEnterFrame = null;
}
};
}
function onClosed() {
}
function launch() {
if (!Utils.isNull(mc)) {
unloadMc();
init();
}
mc._x = (Stage.width - mc._width) / 2;
mc._y = (Stage.height - mc._height) / 2;
mc._visible = true;
}
}
Symbol 1550 MovieClip [__Packages.Battle] Frame 0
class Battle
{
var p1isCPU, p2isCPU, rounds, p1, p2, stageGround, foreground, hitTestHandler, revengeBg;
function Battle (p1Name, _p1isCPU, p1score, p2Name, _p2isCPU, p2score, _round) {
p1isCPU = _p1isCPU;
p2isCPU = _p2isCPU;
State.setHitFlyState();
createStageGround();
createRevengeBg();
rounds = new Rounds();
rounds.setRound(_round);
if (_p1isCPU && (_p2isCPU)) {
p1 = new P1(p1Name, true, p1score);
p2 = new P2(p2Name, true, p2score);
p1.setCompetitor(p2);
p2.setCompetitor(p1);
} else if (_p1isCPU) {
p1 = new P1(p1Name, true, p1score);
p2 = new P2(p2Name, false, p2score);
p1.setCompetitor(p2);
} else if (_p2isCPU) {
p1 = new P1(p1Name, false, p1score);
p2 = new P2(p2Name, true, p2score);
p2.setCompetitor(p1);
} else {
p1 = new P1(p1Name, false, p1score);
p2 = new P2(p2Name, false, p2score);
}
createHitTest(p1, p2);
if (p2.getName() == LinkName.PEOPLE_ACTOR1) {
stageGround.setBg(1);
} else if (p2.getName() == LinkName.PEOPLE_ACTOR2) {
stageGround.setBg(2);
} else if (p2.getName() == LinkName.PEOPLE_ACTOR3) {
stageGround.setBg(3);
}
}
function createForeground() {
foreground = new McLoader(_root, LinkName.FOREGROUND);
}
function setCPULevel(_l) {
if (p1isCPU) {
p1.setCPULevel(_l);
} else if (p2isCPU) {
p2.setCPULevel(_l);
} else {
trace("Error: no people is CPU");
}
}
function pauseMc() {
p1.pauseMc();
p2.pauseMc();
hitTestHandler.enable = false;
}
function continueMc() {
p1.continueMc();
p2.continueMc();
hitTestHandler.enable = true;
}
function unloadBattle() {
hitTestHandler.unloadEvent();
p1.unloadAll();
p2.unloadAll();
stageGround.unloadMc();
revengeBg.unloadMc();
rounds.unloadMc();
foreground.unloadMc();
}
function showBattle() {
stageGround.mc._visible = true;
revengeBg.mc._visible = false;
rounds.mc._visible = true;
p1.showAll();
p2.showAll();
}
function fight() {
p1.setEnable(true);
p2.setEnable(true);
hitTestHandler.enable = true;
}
function createHitTest(_p1, _p2) {
hitTestHandler = new HitTestHandler(_p1, _p2);
}
function createStageGround() {
stageGround = StageGround.getInstance();
}
function createRevengeBg() {
revengeBg = RevengeBg.getInstance();
}
}
Symbol 1551 MovieClip [__Packages.P] Frame 0
interface P
{
}
Symbol 1552 MovieClip [__Packages.InfoBar] Frame 0
class InfoBar extends McLoader
{
var actions, blood, mc, score, head, cName, energy;
function InfoBar (_a) {
super(_root, LinkName.ITEM_INFOBAR, 0, Y);
actions = _a;
blood = new Blood(mc);
score = new Score(mc);
head = new Head(mc.headBar, actions.srcName);
cName = new Name(mc.nameBar, actions.srcName);
mc._visible = false;
energy = 1;
}
function getScore() {
return(score.score);
}
function setScore(_s) {
score.setScore(_s);
}
function scoreAdd(_state) {
score.add(_state);
}
function bloodSub(_direction) {
var _local2 = actions.getState();
addEnergy();
if (!blood.sub(_local2)) {
actions.die(_direction);
}
}
function addEnergy() {
if (energy < ENERGY_MAX) {
energy++;
head.mc.gotoAndStop(energy);
if ((energy == ENERGY_MAX) && (actions.canLaunchKill == Actions.CANT_LAUNCH)) {
actions.canLaunchKill = Actions.CAN_LAUNCH;
}
}
}
function energyReset() {
energy = 1;
head.mc.gotoAndStop(energy);
actions.canLaunchKill = Actions.CANT_LAUNCH;
}
function reverseMc() {
super.reverseMc();
mc.scoreBar._xscale = mc.scoreBar._xscale * -1;
mc.nameBar._xscale = mc.nameBar._xscale * -1;
}
var ENERGY_MAX = 7;
var Y = 20;
}
Symbol 1553 MovieClip [__Packages.Blood] Frame 0
class Blood
{
static var BLOOD_WEAK, BLOOD_NORMAL, BLOOD_HEAVY, BLOOD_SKILL_1, BLOOD_SKILL_2, BLOOD_SKILL_3, BLOOD_SKILL_BULLET_1, BLOOD_SKILL_BULLET_2, BLOOD_SKILL_BULLET_3, BLOOD_SKILL_KILL_1, BLOOD_FULL;
var mc, blood;
function Blood (_mc) {
mc = _mc;
BLOOD_WEAK = 20;
BLOOD_NORMAL = 30;
BLOOD_HEAVY = 50;
BLOOD_SKILL_1 = 60;
BLOOD_SKILL_2 = 100;
BLOOD_SKILL_3 = 30;
BLOOD_SKILL_BULLET_1 = 30;
BLOOD_SKILL_BULLET_2 = 60;
BLOOD_SKILL_BULLET_3 = 90;
BLOOD_SKILL_KILL_1 = 100;
BLOOD_FULL = 2500;
blood = BLOOD_FULL;
updateDisplay();
}
function updateDisplay() {
var _local3 = mc.bloodBar.blood_full._width;
var _local2 = blood / BLOOD_FULL;
mc.bloodBar.blood._width = _local2 * _local3;
}
function checkBlood() {
if (blood <= 0) {
return(FrameName.DEAD);
}
return("");
}
function sub(_state) {
if (Utils.isNull(_state)) {
} else if (State.isWeak(_state)) {
blood = blood - BLOOD_WEAK;
} else if (State.isNormal(_state)) {
blood = blood - BLOOD_NORMAL;
} else if (State.isHeavy(_state)) {
blood = blood - BLOOD_HEAVY;
} else if (_state == FrameName.SKILL_1_BEATTACKED) {
blood = blood - BLOOD_SKILL_1;
} else if (_state == FrameName.SKILL_2_BEATTACKED) {
blood = blood - BLOOD_SKILL_2;
} else if (_state == FrameName.SKILL_3_BEATTACKED) {
blood = blood - BLOOD_SKILL_3;
} else if (_state == FrameName.SKILL_BULLET_1_BEATTACKED) {
blood = blood - BLOOD_SKILL_BULLET_1;
} else if (_state == FrameName.SKILL_BULLET_2_BEATTACKED) {
blood = blood - BLOOD_SKILL_BULLET_2;
} else if (_state == FrameName.SKILL_BULLET_3_BEATTACKED) {
blood = blood - BLOOD_SKILL_BULLET_3;
} else if (_state == FrameName.SKILL_KILL_1_BEATTACKED) {
blood = blood - BLOOD_SKILL_KILL_1;
}
if (blood < 0) {
blood = 0;
}
updateDisplay();
var _local3 = checkBlood();
if (_local3 == FrameName.DEAD) {
return(false);
}
return(true);
}
function add(_state) {
}
}
Symbol 1554 MovieClip [__Packages.Score] Frame 0
class Score
{
static var SCORE_WEAK, SCORE_NORMAL, SCORE_HEAVY, SCORE_SKILL_1, SCORE_SKILL_2, SCORE_SKILL_3, SCORE_SKILL_BULLET_1, SCORE_SKILL_BULLET_2, SCORE_SKILL_BULLET_3, SCORE_SKILL_KILL_1, SCORE_DIE;
var mc, score;
function Score (_mc) {
mc = _mc;
SCORE_WEAK = 10;
SCORE_NORMAL = 20;
SCORE_HEAVY = 30;
SCORE_SKILL_1 = 40;
SCORE_SKILL_2 = 50;
SCORE_SKILL_3 = 60;
SCORE_SKILL_BULLET_1 = 30;
SCORE_SKILL_BULLET_2 = 40;
SCORE_SKILL_BULLET_3 = 50;
SCORE_SKILL_KILL_1 = 80;
SCORE_DIE = 200;
score = 0;
updateDisplay();
}
function setScore(_s) {
score = _s;
updateDisplay();
}
function updateDisplay() {
mc.scoreBar.score = score;
}
function checkScore() {
if (score >= 0) {
}
}
function add(_state) {
if (Utils.isNull(_state)) {
} else if (State.isWeak(_state)) {
score = score + SCORE_WEAK;
} else if (State.isNormal(_state)) {
score = score + SCORE_NORMAL;
} else if (State.isHeavy(_state)) {
score = score + SCORE_HEAVY;
} else if (_state == FrameName.SKILL_1_BEATTACKED) {
score = score + SCORE_SKILL_1;
} else if (_state == FrameName.SKILL_2_BEATTACKED) {
score = score + SCORE_SKILL_2;
} else if (_state == FrameName.SKILL_3_BEATTACKED) {
score = score + SCORE_SKILL_3;
} else if (_state == FrameName.SKILL_BULLET_1_BEATTACKED) {
score = score + SCORE_SKILL_BULLET_1;
} else if (_state == FrameName.SKILL_BULLET_2_BEATTACKED) {
score = score + SCORE_SKILL_BULLET_2;
} else if (_state == FrameName.SKILL_BULLET_3_BEATTACKED) {
score = score + SCORE_SKILL_BULLET_3;
} else if (_state == FrameName.SKILL_KILL_1_BEATTACKED) {
score = score + SCORE_SKILL_KILL_1;
} else if (_state == FrameName.BEATTACKED_DIE) {
score = score + SCORE_DIE;
} else {
trace("Error: no this state: " + _state);
}
checkScore();
updateDisplay();
}
function sub() {
}
}
Symbol 1555 MovieClip [__Packages.Name] Frame 0
class Name extends McLoader
{
function Name (parentMc, _characterName) {
super(parentMc, _characterName + "Name");
}
}
Symbol 1556 MovieClip [__Packages.HitTestHandler] Frame 0
class HitTestHandler
{
var stageGround, p1, p2, p1a, p2a, enable, eventMc, p2x, p1x;
function HitTestHandler (_p1, _p2) {
stageGround = StageGround.getInstance();
p1 = _p1;
p2 = _p2;
p1a = p1.getActions();
p2a = p2.getActions();
enable = false;
loadEvent();
}
function unloadEvent() {
eventMc.onEnterFrame = null;
removeMovieClip(eventMc);
}
function loadEvent() {
var instance = this;
var _local3 = _root.getNextHighestDepth();
eventMc = _root.createEmptyMovieClip("hitTestHandlerMc" + _local3, _local3);
eventMc.onEnterFrame = function () {
if (!instance.enable) {
return(undefined);
}
if ((instance.p1.actions.mc.state == FrameName.DEAD) && (instance.p2.actions.mc.state == FrameName.DEAD)) {
instance.enable = false;
GameHandler.getInstance().prepareLoadNextScreen(LinkName.SCREEN_DEUCE);
} else if (instance.p1.actions.mc.state == FrameName.DEAD) {
trace("p1 win");
instance.enable = false;
GameHandler.getInstance().prepareLoadNextScreen(instance.p2.getName());
} else if (instance.p2.actions.mc.state == FrameName.DEAD) {
trace("p2 win");
instance.enable = false;
GameHandler.getInstance().prepareLoadNextScreen(instance.p1.getName());
}
instance.p1x = instance.p1a.mc._x;
instance.p2x = instance.p2a.mc._x;
instance.bulletHitTest(instance.p1, instance.p2);
instance.bulletHitTest(instance.p2, instance.p1);
instance.doCoverTest(instance.p1, instance.p2);
instance.doCoverTest(instance.p2, instance.p1);
instance.doAttackHitTest(instance.p1, instance.p2);
instance.doAttackHitTest(instance.p2, instance.p1);
instance.doBodyHitTest();
instance.doDirectionTest();
instance.edgeHitTest(instance.p1);
instance.edgeHitTest(instance.p2);
instance.edgeConstrainTest();
instance.checkMaxAttackRestore(instance.p1);
instance.checkMaxAttackRestore(instance.p2);
};
}
function checkMaxAttackRestore(_p) {
if (_p.getActions().canLaunchKill == Actions.HAVE_LAUNCHED) {
_p.getInfoBar().energyReset();
}
}
function bulletHitTest(attacker, beAttacker) {
var _local4 = attacker.getActions();
var _local1 = beAttacker.getActions();
var _local3;
var _local6 = State.assailable(_local1.getState());
var _local5 = 0;
while (_local5 < _local4.bullets.length) {
_local3 = _local4.bullets[_local5];
if (_local3.enable) {
if (_local1.getState() == FrameName.BACK) {
_local1.cover();
} else if (_local1.getState() == FrameName.CROUCH_BACK) {
_local1.crouch_cover();
}
if (_local3.mc.attackArea.hitTest(_local1.mc.beAttackedArea)) {
_local3.blast();
if (_local6) {
switch (_local5) {
case 0 :
_local1.skill_bullet_1_beAttacked(_local4.direction);
break;
case 1 :
_local1.skill_bullet_2_beAttacked(_local4.direction);
break;
case 2 :
_local1.skill_bullet_3_beAttacked(_local4.direction);
}
beAttacker.getInfoBar().bloodSub(_local4.direction);
attacker.getInfoBar().scoreAdd(_local1.getState());
} else {
Sounds.play("cover");
}
} else {
var _local2 = 0;
while (_local2 < _local1.bullets.length) {
if (_local3.mc.attackArea.hitTest(_local1.bullets[_local2].mc.attackArea)) {
_local3.blast();
_local1.bullets[_local2].blast();
Sounds.play("cover");
}
_local2++;
}
}
}
_local5++;
}
if ((_local4.bulletsEnabled() < 0) && (!State.isAttacking(_local4.getState()))) {
if (_local1.getState() == FrameName.CROUCH_COVER) {
_local1.crouch();
} else if (_local1.getState() == FrameName.STAND_COVER) {
_local1.stand();
}
}
}
function doCoverTest(attacker, beAttacker) {
var _local2 = attacker.getActions();
var _local1 = beAttacker.getActions();
if (State.isAttacking(_local2.getState())) {
if (_local1.getState() == FrameName.BACK) {
_local1.cover();
} else if (_local1.getState() == FrameName.CROUCH_BACK) {
_local1.crouch_cover();
}
} else if (_local2.bulletsEnabled() < 0) {
if (_local1.getState() == FrameName.CROUCH_COVER) {
_local1.crouch();
} else if (_local1.getState() == FrameName.STAND_COVER) {
_local1.stand();
}
}
}
function doAttackHitTest(attacker, beAttacker) {
var _local1 = attacker.getActions();
var _local2 = beAttacker.getActions();
var _local3 = _local1.mc.attackArea.hitTest(_local2.mc.beAttackedArea);
if (!_local3) {
return(undefined);
}
if (((!State.isMortality(_local1.getState(), _local1.mortality)) && (State.isCrouch(_local1.getState()))) && (_local2.getState() == FrameName.CROUCH_COVER)) {
Sounds.play("cover");
} else if (((!State.isMortality(_local1.getState(), _local1.mortality)) && (!State.isCrouch(_local1.getState()))) && (State.underCover(_local2.getState()))) {
Sounds.play("cover");
} else {
switch (_local1.getState()) {
case FrameName.STAND_ATTACK_HAND_WEAK :
_local2.stand_beAttacked_hand_weak(_local1.direction);
_local1.moveHandler.backForward();
break;
case FrameName.STAND_ATTACK_HAND_NORMAL :
_local2.stand_beAttacked_hand_normal(_local1.direction);
_local1.moveHandler.backForward();
break;
case FrameName.STAND_ATTACK_HAND_HEAVY :
_local2.stand_beAttacked_hand_heavy(_local1.direction);
_local1.moveHandler.backForward();
break;
case FrameName.STAND_ATTACK_LEG_WEAK :
_local2.stand_beAttacked_leg_weak(_local1.direction);
_local1.moveHandler.backForward();
break;
case FrameName.STAND_ATTACK_LEG_NORMAL :
_local2.stand_beAttacked_leg_normal(_local1.direction);
_local1.moveHandler.backForward();
break;
case FrameName.STAND_ATTACK_LEG_HEAVY :
_local2.stand_beAttacked_leg_heavy(_local1.direction);
_local1.moveHandler.backForward();
break;
case FrameName.JUMP_ATTACK_HAND_WEAK :
_local2.jump_beAttacked_hand_weak(_local1.direction);
break;
case FrameName.JUMP_ATTACK_HAND_NORMAL :
_local2.jump_beAttacked_hand_normal(_local1.direction);
break;
case FrameName.JUMP_ATTACK_HAND_HEAVY :
_local2.jump_beAttacked_hand_heavy(_local1.direction);
break;
case FrameName.JUMP_ATTACK_LEG_WEAK :
_local2.jump_beAttacked_leg_weak(_local1.direction);
break;
case FrameName.JUMP_ATTACK_LEG_NORMAL :
_local2.jump_beAttacked_leg_normal(_local1.direction);
break;
case FrameName.JUMP_ATTACK_LEG_HEAVY :
_local2.jump_beAttacked_leg_heavy(_local1.direction);
break;
case FrameName.CROUCH_ATTACK_HAND_WEAK :
_local2.crouch_beAttacked_hand_weak(_local1.direction);
_local1.moveHandler.backForward();
break;
case FrameName.CROUCH_ATTACK_HAND_NORMAL :
_local2.crouch_beAttacked_hand_normal(_local1.direction);
_local1.moveHandler.backForward();
break;
case FrameName.CROUCH_ATTACK_HAND_HEAVY :
_local2.crouch_beAttacked_hand_heavy(_local1.direction);
_local1.moveHandler.backForward();
break;
case FrameName.CROUCH_ATTACK_LEG_WEAK :
_local2.crouch_beAttacked_leg_weak(_local1.direction);
_local1.moveHandler.backForward();
break;
case FrameName.CROUCH_ATTACK_LEG_NORMAL :
_local2.crouch_beAttacked_leg_normal(_local1.direction);
_local1.moveHandler.backForward();
break;
case FrameName.CROUCH_ATTACK_LEG_HEAVY :
_local2.crouch_beAttacked_leg_heavy(_local1.direction);
_local1.moveHandler.backForward();
break;
case FrameName.SKILL_1_ATTACK :
_local2.skill_1_beAttacked(_local1.direction);
break;
case FrameName.SKILL_2_ATTACK :
_local2.skill_2_beAttacked(_local1.direction);
break;
case FrameName.SKILL_3_ATTACK :
_local2.skill_3_beAttacked(_local1.direction);
break;
case FrameName.SKILL_KILL_1_ATTACK :
_local2.skill_kill_1_beAttacked(_local1.direction);
break;
case FrameName.SKILL_KILL_2_ATTACK :
_local2.skill_kill_2_beAttacked(_local1.direction);
}
beAttacker.getInfoBar().bloodSub(_local1.direction);
attacker.getInfoBar().scoreAdd(_local2.getState());
}
}
function doBodyHitTest() {
var _local2 = p1a.mc.beAttackedArea.hitTest(p2a.mc.beAttackedArea);
if (_local2) {
p1a.mc.bodyState = State.BODY_REACH;
p2a.mc.bodyState = State.BODY_REACH;
} else {
p1a.mc.bodyState = State.BODY_NOT_REACH;
p2a.mc.bodyState = State.BODY_NOT_REACH;
}
}
function doDirectionTest() {
if (p1x > p2x) {
if (p1a.getDirection() == McLoader.DIRECTION_RIGHT) {
if (State.canChangeDirection(p1a.getState())) {
p1a.reverseMc();
}
}
if (p2a.getDirection() == McLoader.DIRECTION_LEFT) {
if (State.canChangeDirection(p2a.getState())) {
p2a.reverseMc();
}
}
} else if (p1x <= p2x) {
if (p1a.getDirection() == McLoader.DIRECTION_LEFT) {
if (State.canChangeDirection(p1a.getState())) {
p1a.reverseMc();
}
}
if (p2a.getDirection() == McLoader.DIRECTION_RIGHT) {
if (State.canChangeDirection(p2a.getState())) {
p2a.reverseMc();
}
}
}
}
function edgeHitTest(p) {
var _local2 = p.getActions();
var _local3 = _local2.getGlobalX();
var _local4 = _local2.mc.beAttackedArea._width / 2;
var _local5 = 1;
if (_local3 >= (Stage.width - _local4)) {
if (((stageGround.mc._x + stageGround.getOrgWidth()) - _local5) <= Stage.width) {
_local2.mc.edgeState = State.STAGE_EDGE_REACH_RIGHT;
} else {
_local2.mc.edgeState = State.EDGE_REACH_RIGHT;
}
} else if (_local3 <= _local4) {
if (stageGround.mc._x >= 0) {
_local2.mc.edgeState = State.STAGE_EDGE_REACH_LEFT;
} else {
_local2.mc.edgeState = State.EDGE_REACH_LEFT;
}
} else {
_local2.mc.edgeState = State.EDGE_NOT_REACH;
}
}
function edgeConstrainTest() {
if ((((p1a.mc.edgeState == State.EDGE_REACH_RIGHT) && (p2a.mc.edgeState == State.EDGE_REACH_LEFT)) || ((p1a.mc.edgeState == State.STAGE_EDGE_REACH_RIGHT) && (p2a.mc.edgeState == State.EDGE_REACH_LEFT))) || ((p1a.mc.edgeState == State.EDGE_REACH_RIGHT) && (p2a.mc.edgeState == State.STAGE_EDGE_REACH_LEFT))) {
p1a.mc.edgeState = State.EDGE_RIGHT_CONSTRAIN;
p2a.mc.edgeState = State.EDGE_LEFT_CONSTRAIN;
} else if ((((p2a.mc.edgeState == State.EDGE_REACH_RIGHT) && (p1a.mc.edgeState == State.EDGE_REACH_LEFT)) || ((p2a.mc.edgeState == State.STAGE_EDGE_REACH_RIGHT) && (p1a.mc.edgeState == State.EDGE_REACH_LEFT))) || ((p2a.mc.edgeState == State.EDGE_REACH_RIGHT) && (p1a.mc.edgeState == State.STAGE_EDGE_REACH_LEFT))) {
p1a.mc.edgeState = State.EDGE_LEFT_CONSTRAIN;
p2a.mc.edgeState = State.EDGE_RIGHT_CONSTRAIN;
}
}
function isNear() {
var _local2 = Math.abs(p1x - p2x);
if (_local2 < 100) {
return(true);
}
return(false);
}
}
Symbol 1557 MovieClip [__Packages.Bullet] Frame 0
class Bullet extends McLoader
{
var enable, isPause, direction, actions, reverseMc, speed, delay, mc, getGlobalX, eventMc;
function Bullet (parentMc, _srcName, _a) {
super(parentMc, _srcName);
disable();
enable = false;
isPause = false;
direction = McLoader.DIRECTION_RIGHT;
actions = _a;
loadEvent();
}
function build(_direction, _speed, _delay, __x, __y) {
if ((direction * _direction) < 0) {
reverseMc();
}
speed = _speed;
delay = _delay;
enableBullet(__x, __y);
}
function enableBullet(__x, __y) {
trace("Bullet: enable bullet");
mc._visible = true;
mc._x = __x;
mc._y = __y;
mc.gotoAndStop(1);
enable = true;
mc.state = FrameName.BULLET_NORMAL;
}
function outOfStage() {
var _local2 = getGlobalX();
var _local3 = 15;
if ((_local2 > (Stage.width + _local3)) || (_local2 < (-_local3))) {
return(true);
}
return(false);
}
function blast() {
speed = 0;
mc.state = FrameName.BULLET_BLAST;
mc.gotoAndPlay(FrameName.BULLET_BLAST);
}
function disable() {
mc._visible = false;
mc._x = -999;
mc._y = -999;
mc.state = FrameName.BULLET_END;
mc.stop();
enable = false;
}
function process() {
if ((mc.state == FrameName.BULLET_END) || (outOfStage())) {
disable();
return(undefined);
}
if (mc.state == FrameName.BULLET_NORMAL) {
mc._x = mc._x + (speed * direction);
}
}
function unloadEvent() {
eventMc.onEnterFrame = null;
removeMovieClip(eventMc);
}
function loadEvent() {
var instance = this;
var _local3 = _root.getNextHighestDepth();
eventMc = _root.createEmptyMovieClip("bullet" + _local3, _local3);
eventMc.onEnterFrame = function () {
if (instance.isPause) {
return(undefined);
}
if (!instance.enable) {
return(undefined);
}
if (State.isAttacked(instance.actions.getState()) && (instance.delay > 0)) {
trace("Bullet: disable");
instance.disable();
return(undefined);
}
instance.delay--;
if (instance.delay > 0) {
return(undefined);
}
if (instance.delay == 0) {
instance.mc.play();
}
if (Utils.isNull(instance.mc)) {
trace("Bullet: isNull");
return(undefined);
}
if (((instance.speed == 0) && (instance.mc.state != FrameName.BULLET_BLAST)) && (instance.mc.state != FrameName.BULLET_END)) {
trace("Bullet: blast");
instance.blast();
}
instance.process();
};
}
}
Symbol 1558 MovieClip [__Packages.Sounds] Frame 0
class Sounds
{
static var musicNum;
function Sounds () {
}
static function play(soundName) {
sound.attachSound(soundName);
sound.start();
}
static function nextMusic(_num) {
if (Utils.isNull(musicNum)) {
musicNum = Utils.getRandom(4) + 1;
}
var _local1 = 1;
if (Utils.isNull(_num)) {
musicNum = (musicNum % 5) + 1;
_local1 = musicNum;
} else {
_local1 = _num;
}
sound.stop();
sound.attachSound("music" + _local1);
sound.start(0, 999);
}
static var sound = new Sound(_root);
}
Symbol 1559 MovieClip [__Packages.Rounds] Frame 0
class Rounds extends McLoader
{
var mc;
function Rounds () {
super(_root, LinkName.ITEM_ROUNDS, 0, 100);
mc._x = (Stage.width - mc._width) / 2;
mc._visible = false;
}
function setRound(_r) {
mc.gotoAndStop(_r);
}
}
Symbol 1560 MovieClip [__Packages.P1] Frame 0
class P1 implements P
{
var characterName, actions, infoBar, controlHandler, pHandler;
function P1 (peopleName, isCPU, _score) {
characterName = peopleName;
actions = createActions(peopleName);
actions.setGlobalX(PEOPLE_X);
actions.setY(StageGround.y_stand);
infoBar = new InfoBar(actions);
infoBar.setX(INFO_X);
infoBar.setScore(_score);
controlHandler = new ControlHandler(actions);
if (isCPU) {
pHandler = new CPUHandler(controlHandler);
} else {
pHandler = new KeyControlHandler_v2(controlHandler);
loadControlKey();
}
}
function setCPULevel(_l) {
pHandler.setAILevel(_l);
}
function getScore() {
return(infoBar.getScore());
}
function pauseMc() {
actions.moveHandler.enable = false;
actions.pauseBullets();
pHandler.enable = false;
}
function continueMc() {
actions.moveHandler.enable = true;
actions.continueBullets();
pHandler.enable = true;
}
function getName() {
return(characterName);
}
function unloadAll() {
actions.unloadAll();
infoBar.unloadMc();
pHandler.unloadEvent();
}
function showAll() {
infoBar.mc._visible = true;
}
function setEnable(_b) {
pHandler.enable = _b;
}
function setCompetitor(_p) {
pHandler.setCompetitor(_p.getActions());
}
function getActions() {
return(actions);
}
function getInfoBar() {
return(infoBar);
}
function createActions(peopleName) {
var _local1;
switch (peopleName) {
case LinkName.PEOPLE_ACTOR1 :
_local1 = new Actor1Actions();
break;
case LinkName.PEOPLE_ACTOR2 :
_local1 = new Actor2Actions();
break;
case LinkName.PEOPLE_ACTOR3 :
_local1 = new Actor3Actions();
}
return(_local1);
}
function loadControlKey() {
var _local2;
_local2 = new Array();
_local2.push(VK.W);
_local2.push(VK.S);
_local2.push(VK.A);
_local2.push(VK.D);
pHandler.addDirectionKey(_local2);
pHandler.addSingleKey(VK.X);
pHandler.addSingleKey(VK.J);
pHandler.addSingleKey(VK.K);
pHandler.addSingleKey(VK.L);
pHandler.addSingleKey(VK.U);
pHandler.addSingleKey(VK.I);
pHandler.addSingleKey(VK.O);
_local2 = new Array();
_local2.push(VK.A);
_local2.push(VK.D);
_local2.push(VK.A);
_local2.push(VK.D);
_local2.push(VK.L);
pHandler.addOrderKey(_local2);
_local2 = new Array();
_local2.push(VK.A);
_local2.push(VK.D);
_local2.push(VK.A);
_local2.push(VK.D);
_local2.push(VK.K);
pHandler.addOrderKey(_local2);
_local2 = new Array();
_local2.push(VK.A);
_local2.push(VK.D);
_local2.push(VK.J);
pHandler.addOrderKey(_local2);
_local2 = new Array();
_local2.push(VK.A);
_local2.push(VK.D);
_local2.push(VK.K);
pHandler.addOrderKey(_local2);
_local2 = new Array();
_local2.push(VK.A);
_local2.push(VK.D);
_local2.push(VK.L);
pHandler.addOrderKey(_local2);
_local2 = new Array();
_local2.push(VK.D);
_local2.push(VK.A);
_local2.push(VK.D);
_local2.push(VK.A);
_local2.push(VK.L);
pHandler.addOrderKey(_local2);
_local2 = new Array();
_local2.push(VK.D);
_local2.push(VK.A);
_local2.push(VK.D);
_local2.push(VK.A);
_local2.push(VK.K);
pHandler.addOrderKey(_local2);
_local2 = new Array();
_local2.push(VK.D);
_local2.push(VK.A);
_local2.push(VK.J);
pHandler.addOrderKey(_local2);
_local2 = new Array();
_local2.push(VK.D);
_local2.push(VK.A);
_local2.push(VK.K);
pHandler.addOrderKey(_local2);
_local2 = new Array();
_local2.push(VK.D);
_local2.push(VK.A);
_local2.push(VK.L);
pHandler.addOrderKey(_local2);
}
var PEOPLE_X = 200;
var INFO_X = 10;
}
Symbol 1561 MovieClip [__Packages.ControlAdapter] Frame 0
interface ControlAdapter
{
}
Symbol 1562 MovieClip [__Packages.ControlHandler] Frame 0
class ControlHandler implements ControlAdapter
{
var actions;
function ControlHandler (_a) {
actions = _a;
}
function getActions() {
return(actions);
}
function singleKey(i) {
if (State.controllable(actions.getState())) {
if (State.isCrouch(actions.getState())) {
switch (i) {
case 1 :
actions.crouch_attack_hand_weak();
break;
case 2 :
actions.crouch_attack_hand_normal();
break;
case 3 :
actions.crouch_attack_hand_heavy();
break;
case 4 :
actions.crouch_attack_leg_weak();
break;
case 5 :
actions.crouch_attack_leg_normal();
break;
case 6 :
actions.crouch_attack_leg_heavy();
}
} else if (State.isJumping(actions.getState())) {
switch (i) {
case 1 :
actions.jump_attack_hand_weak();
break;
case 2 :
actions.jump_attack_hand_normal();
break;
case 3 :
actions.jump_attack_hand_heavy();
break;
case 4 :
actions.jump_attack_leg_weak();
break;
case 5 :
actions.jump_attack_leg_normal();
break;
case 6 :
actions.jump_attack_leg_heavy();
}
} else {
switch (i) {
case 0 :
actions.cover();
break;
case 1 :
actions.stand_attack_hand_weak();
break;
case 2 :
actions.stand_attack_hand_normal();
break;
case 3 :
actions.stand_attack_hand_heavy();
break;
case 4 :
actions.stand_attack_leg_weak();
break;
case 5 :
actions.stand_attack_leg_normal();
break;
case 6 :
actions.stand_attack_leg_heavy();
}
}
}
}
function twoKey(i) {
}
function threeKey(i) {
}
function fourKey(i) {
}
function orderKey(i) {
if (State.controllable(actions.getState())) {
if (State.isCrouch(actions.getState())) {
} else if (State.isJumping(actions.getState())) {
} else {
switch (i) {
case 0 :
actions.skill_kill_1_attack();
break;
case 1 :
actions.skill_kill_2_attack();
break;
case 2 :
actions.skill_1_attack();
break;
case 3 :
actions.skill_2_attack();
break;
case 4 :
actions.skill_3_attack();
break;
case 5 :
actions.skill_kill_1_attack();
break;
case 6 :
actions.skill_kill_2_attack();
break;
case 7 :
actions.skill_1_attack();
break;
case 8 :
actions.skill_2_attack();
break;
case 9 :
actions.skill_3_attack();
}
}
}
}
function up() {
if (State.controllable(actions.getState()) && (!State.isJumping(actions.getState()))) {
actions.jump();
}
}
function down() {
if (State.controllable(actions.getState()) && (!State.isJumping(actions.getState()))) {
actions.crouch();
actions.mc.downKeyUp = false;
}
}
function left() {
if (State.controllable(actions.getState()) && (!State.isJumping(actions.getState()))) {
if (actions.direction == McLoader.DIRECTION_LEFT) {
actions.forward();
} else {
actions.back();
}
}
}
function right() {
if (State.controllable(actions.getState()) && (!State.isJumping(actions.getState()))) {
if (actions.getDirection() == McLoader.DIRECTION_RIGHT) {
actions.forward();
} else {
actions.back();
}
}
}
function leftUp() {
if (State.controllable(actions.getState()) && (!State.isJumping(actions.getState()))) {
if (actions.getDirection() == McLoader.DIRECTION_LEFT) {
actions.jump_forward();
} else {
actions.jump_back();
}
}
}
function rightUp() {
if (State.controllable(actions.getState()) && (!State.isJumping(actions.getState()))) {
if (actions.getDirection() == McLoader.DIRECTION_RIGHT) {
actions.jump_forward();
} else {
actions.jump_back();
}
}
}
function rightDown() {
if (State.controllable(actions.getState()) && (!State.isJumping(actions.getState()))) {
if (actions.getDirection() == McLoader.DIRECTION_RIGHT) {
actions.crouch_forward();
} else {
actions.crouch_back();
}
actions.mc.downKeyUp = false;
}
}
function leftDown() {
if (State.controllable(actions.getState()) && (!State.isJumping(actions.getState()))) {
if (actions.getDirection() == McLoader.DIRECTION_LEFT) {
actions.crouch_forward();
} else {
actions.crouch_back();
}
actions.mc.downKeyUp = false;
}
}
function keyUp() {
if (((!State.isHitFly(actions.getState())) && (!State.isJumping(actions.getState()))) && (!State.isSkillAttack(actions.getState()))) {
actions.noMove();
}
}
function keyUp_up() {
}
function keyUp_down() {
if (actions.getState() == FrameName.CROUCH) {
actions.stand();
} else {
actions.mc.downKeyUp = true;
}
}
function keyUp_left() {
if (State.isMoving(actions.getState()) || (actions.getState().indexOf("cover") >= 0)) {
actions.stand();
}
}
function keyUp_right() {
if (State.isMoving(actions.getState()) || (actions.getState().indexOf("cover") >= 0)) {
actions.stand();
}
}
function singleKeyUp(i) {
if (State.underCover(actions.getState())) {
if (!(i === 0)) {
} else {
trace("\u53D6\u6D88\u9632\u5FA1");
actions.stand();
}
}
}
function run_left() {
}
function run_right() {
}
}
Symbol 1563 MovieClip [__Packages.CPUHandler] Frame 0
class CPUHandler extends ControlHandler
{
var debug, enable, setIntervalId, intervalTime, ATTACKABLE_DISTANCE, COVER_HOLD_TIME, level, controlAdapter, actions, cpuController, competitor, tem, bulletNum, rand;
function CPUHandler (c) {
super();
debug = false;
enable = false;
setIntervalId = -1;
intervalTime = 200;
ATTACKABLE_DISTANCE = 100;
COVER_HOLD_TIME = 2;
level = LEVEL_1;
if (Utils.isNull(c)) {
trace("CPUHandler: ControlAdapter is null");
return;
}
controlAdapter = c;
actions = controlAdapter.getActions();
cpuController = new CPUController(controlAdapter, actions);
loadEvent();
}
function setCompetitor(_p) {
competitor = _p;
}
function setDebug(_b) {
debug = _b;
}
function getActions() {
return(controlAdapter.getActions());
}
function unloadEvent() {
clearInterval(setIntervalId);
}
function loadEvent() {
setIntervalId = setInterval(this, "runAI", intervalTime);
}
function getRandom(max) {
return(Math.round(((max * Math.random()) * 100) / 100));
}
function runAI() {
if (!enable) {
return(undefined);
}
simpleAI();
}
function setAILevel(_l) {
level = _l;
}
function randomDefend_forBullet() {
tem = getRandom(6);
switch (tem) {
case 0 :
doOthers();
break;
case 1 :
case 2 :
cpuController.cancelCover();
cpuController.skill_1_attack();
break;
case 3 :
case 4 :
cpuController.takeCover();
break;
case 5 :
case 6 :
cpuController.cancelCover();
cpuController.jumpForward();
}
}
function randomDefend() {
tem = getRandom(6);
switch (tem) {
case 0 :
doOthers();
break;
case 1 :
cpuController.cancelCover();
randomAttack();
break;
case 2 :
case 3 :
if (isBulletNear()) {
cpuController.cancelCover();
cpuController.jumpForward();
}
break;
case 4 :
case 5 :
case 6 :
cpuController.takeCover();
}
}
function randomAttack() {
switch (getRandom(10)) {
case 0 :
doOthers();
break;
case 1 :
cpuController.attack_hand_weak();
break;
case 2 :
cpuController.attack_leg_weak();
break;
case 3 :
cpuController.attack_hand_normal();
break;
case 4 :
cpuController.attack_leg_normal();
break;
case 5 :
cpuController.attack_leg_heavy();
break;
case 6 :
cpuController.attack_hand_heavy();
break;
case 7 :
case 8 :
case 9 :
case 10 :
randomSkillAttack();
}
}
function randomSkillAttack() {
switch (getRandom(5)) {
case 0 :
doOthers();
break;
case 1 :
cpuController.skill_1_attack();
break;
case 2 :
cpuController.skill_2_attack();
break;
case 3 :
cpuController.skill_3_attack();
break;
case 4 :
cpuController.skill_kill_1_attack();
break;
case 5 :
cpuController.skill_kill_2_attack();
}
}
function doOthers() {
randomAction();
}
function simpleAI() {
if (Utils.isNull(competitor)) {
return(undefined);
}
bulletNum = competitor.bulletsEnabled();
if (bulletNum >= 0) {
randomDefend_forBullet();
} else if (State.isAttacking(competitor.mc.state)) {
randomDefend();
} else if (isNear()) {
randomAttack();
} else {
switch (getRandom(10)) {
case 0 :
doOthers();
break;
case 1 :
cpuController.jumpBack();
break;
case 2 :
cpuController.back();
break;
case 3 :
case 4 :
cpuController.skill_1_attack();
break;
case 5 :
case 6 :
case 7 :
cpuController.forward();
break;
case 8 :
case 9 :
case 10 :
cpuController.jumpForward();
}
}
}
function randomAction() {
rand = getRandom(17);
switch (rand) {
case 0 :
cpuController.forward();
break;
case 1 :
cpuController.back();
break;
case 2 :
cpuController.takeCover();
break;
case 3 :
cpuController.cancelCover();
break;
case 4 :
cpuController.jump();
break;
case 5 :
cpuController.jumpForward();
break;
case 6 :
cpuController.jumpBack();
break;
case 7 :
cpuController.attack_hand_weak();
break;
case 8 :
cpuController.attack_hand_normal();
break;
case 9 :
cpuController.attack_hand_heavy();
break;
case 10 :
cpuController.attack_leg_weak();
break;
case 11 :
cpuController.attack_leg_normal();
break;
case 12 :
cpuController.attack_leg_heavy();
break;
case 13 :
cpuController.skill_1_attack();
break;
case 14 :
cpuController.skill_2_attack();
break;
case 15 :
cpuController.skill_3_attack();
break;
case 16 :
cpuController.skill_kill_1_attack();
break;
case 17 :
cpuController.skill_kill_2_attack();
}
}
function isBulletNear() {
var _local2 = Math.abs(actions.mc._x - competitor.bullets[bulletNum].mc._x);
if (_local2 < 400) {
return(true);
}
return(false);
}
function isNear() {
var _local2 = Math.abs(actions.mc._x - competitor.mc._x);
if (_local2 < ATTACKABLE_DISTANCE) {
return(true);
}
return(false);
}
static var LEVEL_0 = 0;
static var LEVEL_1 = 1;
static var LEVEL_2 = 2;
static var LEVEL_3 = 3;
static var LEVEL_4 = 4;
static var LEVEL_5 = 5;
static var LEVEL_6 = 6;
static var LEVEL_7 = 7;
static var LEVEL_MAX = 7;
}
Symbol 1564 MovieClip [__Packages.CPUController] Frame 0
class CPUController
{
var controlAdapter, actions;
function CPUController (_c, _a) {
controlAdapter = _c;
actions = _a;
}
function forward() {
if (actions.direction == McLoader.DIRECTION_LEFT) {
controlAdapter.left();
} else {
controlAdapter.right();
}
}
function back() {
if (actions.direction == McLoader.DIRECTION_RIGHT) {
controlAdapter.left();
} else {
controlAdapter.right();
}
}
function takeCover() {
controlAdapter.singleKey(0);
}
function cancelCover() {
if (State.underCover(actions.getState())) {
actions.mc.state = FrameName.STAND;
}
}
function jump() {
controlAdapter.up();
}
function jumpForward() {
if (actions.direction == McLoader.DIRECTION_LEFT) {
controlAdapter.leftUp();
} else {
controlAdapter.rightUp();
}
}
function jumpBack() {
if (actions.direction == McLoader.DIRECTION_RIGHT) {
controlAdapter.leftUp();
} else {
controlAdapter.rightUp();
}
}
function attack_hand_weak() {
controlAdapter.singleKey(1);
}
function attack_hand_normal() {
controlAdapter.singleKey(2);
}
function attack_hand_heavy() {
controlAdapter.singleKey(3);
}
function attack_leg_weak() {
controlAdapter.singleKey(4);
}
function attack_leg_normal() {
controlAdapter.singleKey(5);
}
function attack_leg_heavy() {
controlAdapter.singleKey(6);
}
function skill_1_attack() {
controlAdapter.orderKey(0);
}
function skill_2_attack() {
controlAdapter.orderKey(1);
}
function skill_3_attack() {
controlAdapter.orderKey(2);
}
function skill_kill_1_attack() {
controlAdapter.orderKey(3);
}
function skill_kill_2_attack() {
controlAdapter.orderKey(4);
}
}
Symbol 1565 MovieClip [__Packages.KeyControlHandler_v2] Frame 0
class KeyControlHandler_v2
{
var controlAdapter, twiceFlag, key_once, sameTime, setIntervalId, keyArray, keyCode, debug, enable, directionKeyArray, singleKeyArray, twoKeyArray, threeKeyArray, fourKeyArray, orderKeyArray, keyListener, eventMc;
function KeyControlHandler_v2 (c) {
if (Utils.isNull(c)) {
trace("KeyControlHandler: ControlAdapter is null");
return;
}
controlAdapter = c;
twiceFlag = 0;
key_once = -1;
sameTime = 0;
setIntervalId = 0;
keyArray = new Array(6);
keyCode = -1;
debug = false;
enable = false;
directionKeyArray = new Array();
singleKeyArray = new Array();
twoKeyArray = new Array();
threeKeyArray = new Array();
fourKeyArray = new Array();
orderKeyArray = new Array();
loadEvent();
}
function unloadEvent() {
Key.removeListener(keyListener);
eventMc.onEnterFrame = null;
removeMovieClip(eventMc);
}
function setDebug(_b) {
debug = _b;
}
function addDirectionKey(_keyArray) {
directionKeyArray.push(_keyArray);
}
function addSingleKey(_key) {
singleKeyArray.push(_key);
}
function addTwoKey(_keyArray) {
twoKeyArray.push(_keyArray);
}
function addThreeKey(_keyArray) {
threeKeyArray.push(_keyArray);
}
function addFourKey(_keyArray) {
fourKeyArray.push(_keyArray);
}
function addOrderKey(_keyArray) {
orderKeyArray.push(_keyArray);
}
function isOwnKeys() {
var _local3 = 0;
while (_local3 < directionKeyArray.length) {
var _local2 = 0;
while (_local2 < directionKeyArray[_local3].length) {
if (keyCode == directionKeyArray[_local3][_local2]) {
return(true);
}
_local2++;
}
_local3++;
}
_local3 = 0;
while (_local3 < singleKeyArray.length) {
if (keyCode == singleKeyArray[_local3]) {
return(true);
}
_local3++;
}
_local3 = 0;
while (_local3 < twoKeyArray.length) {
var _local2 = 0;
while (_local2 < twoKeyArray[_local3].length) {
if (keyCode == twoKeyArray[_local3][_local2]) {
return(true);
}
_local2++;
}
_local3++;
}
_local3 = 0;
while (_local3 < threeKeyArray.length) {
var _local2 = 0;
while (_local2 < threeKeyArray[_local3].length) {
if (keyCode == threeKeyArray[_local3][_local2]) {
return(true);
}
_local2++;
}
_local3++;
}
_local3 = 0;
while (_local3 < fourKeyArray.length) {
var _local2 = 0;
while (_local2 < fourKeyArray[_local3].length) {
if (keyCode == fourKeyArray[_local3][_local2]) {
return(true);
}
_local2++;
}
_local3++;
}
_local3 = 0;
while (_local3 < orderKeyArray.length) {
var _local2 = 0;
while (_local2 < orderKeyArray[_local3].length) {
if (keyCode == orderKeyArray[_local3][_local2]) {
return(true);
}
_local2++;
}
_local3++;
}
return(false);
}
function loadEvent() {
var instance = this;
var _local5 = _root.getNextHighestDepth();
eventMc = _root.createEmptyMovieClip("keyControlHandlerMc" + _local5, _local5);
eventMc.onEnterFrame = function () {
if (!instance.enable) {
return(undefined);
}
var _local1 = 0;
while (_local1 < instance.directionKeyArray.length) {
instance.directionKey(instance.directionKeyArray[_local1][0], instance.directionKeyArray[_local1][1], instance.directionKeyArray[_local1][2], instance.directionKeyArray[_local1][3]);
_local1++;
}
_local1 = 0;
while (_local1 < instance.singleKeyArray.length) {
if (instance.singleKey(instance.singleKeyArray[_local1])) {
if (!instance.KeyDown()) {
instance.keyArray = instance.myPush(instance.keyArray, instance.singleKeyArray[_local1]);
if (!instance.KeyDown()) {
instance.controlAdapter.singleKey(_local1);
}
}
}
_local1++;
}
};
keyListener = new Object();
keyListener.onKeyDown = function () {
if (!instance.enable) {
return(undefined);
}
instance.keyCode = Key.getCode();
instance.keyArray = instance.myPush(instance.keyArray, instance.keyCode);
if (!instance.isOwnKeys()) {
return(undefined);
}
clearInterval(instance.setIntervalId);
if (((instance.twiceFlag == 1) && (instance.sameTime == 1)) && (instance.key_once == instance.keyCode)) {
instance.twiceKey(instance.keyCode);
} else {
instance.clearIntervalId();
}
};
keyListener.onKeyUp = function () {
if (!instance.enable) {
return(undefined);
}
instance.controlAdapter.keyUp();
var _local2 = Key.getCode();
if (((instance.twiceFlag = (++instance.twiceFlag) % 2)) == 1) {
instance.key_once = _local2;
instance.sameTime = 1;
clearInterval(instance.setIntervalId);
instance.setIntervalId = setInterval(instance, "clearIntervalId", 100);
} else {
instance.clearIntervalId();
}
switch (_local2) {
case instance.directionKeyArray[0][0] :
instance.controlAdapter.keyUp_up();
break;
case instance.directionKeyArray[0][1] :
instance.controlAdapter.keyUp_down();
break;
case instance.directionKeyArray[0][2] :
instance.controlAdapter.keyUp_left();
break;
case instance.directionKeyArray[0][3] :
instance.controlAdapter.keyUp_right();
break;
default :
var _local1 = 0;
for(;;){
if (_local1 >= instance.singleKeyArray.length) {
break;
}
if (_local2 == instance.singleKeyArray[_local1]) {
instance.controlAdapter.singleKeyUp(_local1);
break;
}
_local1++;
};
}
clearInterval(instance.setTimeoutId_orderKey);
instance.setTimeoutId_orderKey = setInterval(instance, "clearOrderKey", 300);
};
Key.addListener(keyListener);
}
function clearOrderKey() {
keyArray = new Array(6);
clearInterval(setTimeoutId_orderKey);
}
function clearIntervalId() {
clearInterval(setIntervalId);
sameTime = 0;
key_once = -1;
twiceFlag = 0;
}
function twiceKey(theKeyCode) {
if (theKeyCode == directionKeyArray[0][3]) {
if (debug) {
trace("\u5411\u53F3\u8DD1");
}
controlAdapter.run_right();
} else if (theKeyCode == directionKeyArray[0][2]) {
if (debug) {
trace("\u5411\u5DE6\u8DD1");
}
controlAdapter.run_left();
}
}
function directionKey(key_Up, key_Down, key_Left, key_Right) {
if (!((twiceFlag == 1) && (sameTime == 1))) {
if (Key.isDown(key_Up)) {
if (Key.isDown(key_Right)) {
if (debug) {
trace("\u6309\u4E0B\u4E86\u2191\u2192\u7EC4\u5408\u952E");
}
controlAdapter.rightUp();
} else if (Key.isDown(key_Left)) {
if (debug) {
trace("\u6309\u4E0B\u4E86\u2190\u2191\u7EC4\u5408\u952E");
}
controlAdapter.leftUp();
} else {
if (debug) {
trace("\u6309\u4E0B\u4E86\u2191\u952E");
}
controlAdapter.up();
}
} else if (Key.isDown(key_Down)) {
if (Key.isDown(key_Right)) {
if (debug) {
trace("\u6309\u4E0B\u4E86\u2193\u2192\u7EC4\u5408\u952E");
}
controlAdapter.rightDown();
} else if (Key.isDown(key_Left)) {
if (debug) {
trace("\u6309\u4E0B\u4E86\u2190\u2193\u7EC4\u5408\u952E");
}
controlAdapter.leftDown();
} else {
if (debug) {
trace("\u6309\u4E0B\u4E86\u2193\u952E");
}
controlAdapter.down();
}
} else if (Key.isDown(key_Left)) {
if (debug) {
trace("\u6309\u4E0B\u4E86\u2190\u952E");
}
controlAdapter.left();
} else if (Key.isDown(key_Right)) {
if (debug) {
trace("\u6309\u4E0B\u4E86\u2192\u952E");
}
controlAdapter.right();
}
}
}
function singleKey(theKeyCode) {
if (Key.isDown(theKeyCode)) {
return(true);
}
return(false);
}
function twoKey(theKeyCode1, theKeyCode2) {
if (Key.isDown(theKeyCode1) && (Key.isDown(theKeyCode2))) {
return(true);
}
return(false);
}
function threeKey(theKeyCode1, theKeyCode2, theKeyCode3) {
if ((Key.isDown(theKeyCode1) && (Key.isDown(theKeyCode2))) && (Key.isDown(theKeyCode3))) {
return(true);
}
return(false);
}
function fourKey(theKeyCode1, theKeyCode2, theKeyCode3, theKeyCode4) {
if (((Key.isDown(theKeyCode1) && (Key.isDown(theKeyCode2))) && (Key.isDown(theKeyCode3))) && (Key.isDown(theKeyCode4))) {
return(true);
}
return(false);
}
function isOrderKey() {
var _local2 = 0;
while (_local2 < orderKeyArray.length) {
if (orderKeyCheck(orderKeyArray[_local2])) {
if (debug) {
trace("\u8FDE\u7EED\u6309\u952E");
}
return(_local2);
}
_local2++;
}
return(-1);
}
function orderKeyCheck(_orderKeyArray) {
var _local3 = _orderKeyArray.length;
var _local4 = keyArray.length;
var _local2 = 1;
while (_local2 <= _local3) {
if (_orderKeyArray[_local3 - _local2] != keyArray[_local4 - _local2]) {
return(false);
}
_local2++;
}
return(true);
}
function KeyDown() {
var _local2 = isOrderKey();
if (_local2 != -1) {
controlAdapter.orderKey(_local2);
return(true);
}
return(false);
}
function myPush(theArray, theVar) {
var _local1 = 0;
while (_local1 <= (theArray.length - 1)) {
theArray[_local1] = theArray[_local1 + 1];
_local1++;
}
theArray[_local1 - 1] = theVar;
return(theArray);
}
function getActions() {
return(controlAdapter.getActions());
}
var syn = false;
var setTimeoutId_orderKey = 0;
}
Symbol 1566 MovieClip [__Packages.Actor1Actions] Frame 0
class Actor1Actions extends Actions
{
var bullets, mc, srcName, mortality, skill_bullet_1_attack, moveHandler, bulletsEnabled, direction, BULLET_DELAY_WEAK, skill_3_beAttacked;
function Actor1Actions () {
super(StageGround.getInstance().mc.bg, LinkName.PEOPLE_ACTOR1);
trace("created actor1");
bullets.push(new Bullet(mc._parent, srcName + "Bullet1", this));
bullets.push(new Bullet(mc._parent, srcName + "Bullet2", this));
mortality = true;
}
function skill_1_attack() {
skill_bullet_1_attack();
}
function skill_2_attack() {
mc.state = FrameName.SKILL_2_ATTACK;
mc.gotoAndPlay(FrameName.SKILL_2_ATTACK);
moveHandler.noMove();
}
function skill_3_attack() {
skill_bullet_2_attack();
}
function skill_bullet_2_attack() {
var _local2 = bulletsEnabled();
if (_local2 < 0) {
mc.state = FrameName.SKILL_BULLET_2_ATTACK;
mc.gotoAndPlay(FrameName.SKILL_BULLET_2_ATTACK);
moveHandler.noMove();
bullets[1].build(direction, 1, BULLET_DELAY_WEAK, mc._x, mc._y);
}
}
function skill_kill_2_attack() {
}
function skill_kill_2_beAttacked(_direction) {
skill_3_beAttacked(_direction);
}
}
Symbol 1567 MovieClip [__Packages.Actor2Actions] Frame 0
class Actor2Actions extends Actions
{
var bullets, mc, srcName, skill_bullet_1_attack, skill_bullet_2_attack, bulletsEnabled, moveHandler, direction, BULLET_SPEED_NORMAL, BULLET_DELAY_HEAVY, skill_3_beAttacked;
function Actor2Actions () {
super(StageGround.getInstance().mc.bg, LinkName.PEOPLE_ACTOR2);
trace("create actor2");
bullets.push(new Bullet(mc._parent, srcName + "Bullet1", this));
bullets.push(new Bullet(mc._parent, srcName + "Bullet2", this));
bullets.push(new Bullet(mc._parent, srcName + "Bullet3", this));
}
function skill_1_attack() {
skill_bullet_1_attack();
}
function skill_2_attack() {
skill_bullet_2_attack();
}
function skill_3_attack() {
skill_bullet_3_attack();
}
function skill_bullet_3_attack() {
var _local2 = bulletsEnabled();
if (_local2 < 0) {
mc.state = FrameName.SKILL_BULLET_3_ATTACK;
mc.gotoAndPlay(FrameName.SKILL_BULLET_3_ATTACK);
moveHandler.noMove();
bullets[2].build(direction, BULLET_SPEED_NORMAL, BULLET_DELAY_HEAVY, mc._x, mc._y);
}
}
function skill_kill_2_attack() {
}
function skill_kill_2_beAttacked(_direction) {
skill_3_beAttacked(_direction);
}
}
Symbol 1568 MovieClip [__Packages.Actor3Actions] Frame 0
class Actor3Actions extends Actions
{
var bullets, mc, srcName, skill_bullet_1_attack, skill_bullet_2_attack, moveHandler, skill_3_beAttacked;
function Actor3Actions () {
super(StageGround.getInstance().mc.bg, LinkName.PEOPLE_ACTOR3);
trace("create actor3");
bullets.push(new Bullet(mc._parent, srcName + "Bullet1", this));
bullets.push(new Bullet(mc._parent, srcName + "Bullet2", this));
}
function skill_1_attack() {
skill_bullet_1_attack();
}
function skill_2_attack() {
skill_bullet_2_attack();
}
function skill_3_attack() {
mc.state = FrameName.SKILL_3_ATTACK;
mc.gotoAndPlay(FrameName.SKILL_3_ATTACK);
moveHandler.noMove();
}
function skill_kill_2_beAttacked(_direction) {
skill_3_beAttacked(_direction);
}
}
Symbol 1569 MovieClip [__Packages.VK] Frame 0
class VK
{
function VK () {
}
static var _1 = 49;
static var _2 = 50;
static var _3 = 51;
static var _4 = 52;
static var _5 = 53;
static var _6 = 54;
static var _7 = 55;
static var _8 = 56;
static var _9 = 57;
static var _0 = 48;
static var A = 65;
static var B = 66;
static var C = 67;
static var D = 68;
static var E = 69;
static var F = 70;
static var G = 71;
static var H = 72;
static var I = 73;
static var J = 74;
static var K = 75;
static var L = 76;
static var M = 77;
static var N = 78;
static var O = 79;
static var P = 80;
static var Q = 81;
static var R = 82;
static var S = 83;
static var T = 84;
static var U = 85;
static var V = 86;
static var W = 87;
static var X = 88;
static var Y = 89;
static var Z = 90;
static var F1 = 112;
static var F2 = 113;
static var F3 = 114;
static var F4 = 115;
static var F5 = 116;
static var F6 = 117;
static var F7 = 118;
static var F8 = 119;
static var F9 = 120;
static var F10 = 121;
static var F11 = 122;
static var F12 = 123;
static var F13 = 124;
static var F14 = 125;
static var F15 = 126;
static var NUM_0 = 96;
static var NUM_1 = 97;
static var NUM_2 = 98;
static var NUM_3 = 99;
static var NUM_4 = 100;
static var NUM_5 = 101;
static var NUM_6 = 102;
static var NUM_7 = 103;
static var NUM_8 = 104;
static var NUM_9 = 105;
static var NUM_MULTIPLY = 106;
static var NUM_ADD = 107;
static var NUM_ENTER = 108;
static var NUM_SUBTRACT = 109;
static var NUM_DECIMAL = 110;
static var NUM_DIVIDE = 111;
static var BACKSPACE = 8;
static var TAB = 9;
static var ENTER = 13;
static var SHIFT = 16;
static var CONTROL = 17;
static var ESCAPE = 27;
static var SPACE = 32;
static var CAPS_LOCK = 20;
static var NUM_LOCK = 144;
static var SCROLL_LOCK = 145;
static var PAUSE = 19;
static var PAGE_UP = 33;
static var PAGE_DOWN = 34;
static var END = 35;
static var HOME = 36;
static var INSERT = 45;
static var DELETE = 46;
static var LEFT = 37;
static var UP = 38;
static var RIGHT = 39;
static var DOWN = 40;
static var WINDOWS = 91;
static var MENU = 93;
}
Symbol 1570 MovieClip [__Packages.P2] Frame 0
class P2 implements P
{
var characterName, actions, infoBar, controlHandler, pHandler;
function P2 (peopleName, isCPU, _score) {
characterName = peopleName;
actions = createActions(peopleName);
actions.setGlobalX(PEOPLE_X);
actions.setY(StageGround.y_stand);
actions.reverseMc();
infoBar = new InfoBar(actions);
infoBar.setX(INFO_X);
infoBar.setScore(_score);
infoBar.reverseMc();
controlHandler = new ControlHandler(actions);
if (isCPU) {
pHandler = new CPUHandler(controlHandler);
} else {
pHandler = new KeyControlHandler_v2(controlHandler);
loadControlKey();
}
}
function setCPULevel(_l) {
pHandler.setAILevel(_l);
}
function getScore() {
return(infoBar.getScore());
}
function pauseMc() {
actions.moveHandler.enable = false;
actions.pauseBullets();
pHandler.enable = false;
}
function continueMc() {
actions.moveHandler.enable = true;
actions.continueBullets();
pHandler.enable = true;
}
function getName() {
return(characterName);
}
function unloadAll() {
actions.unloadAll();
infoBar.unloadMc();
pHandler.unloadEvent();
}
function showAll() {
infoBar.mc._visible = true;
}
function setEnable(_b) {
pHandler.enable = _b;
}
function setCompetitor(_p) {
pHandler.setCompetitor(_p.getActions());
}
function getActions() {
return(actions);
}
function getInfoBar() {
return(infoBar);
}
function createActions(peopleName) {
var _local1;
switch (peopleName) {
case LinkName.PEOPLE_ACTOR1 :
_local1 = new Actor1Actions();
break;
case LinkName.PEOPLE_ACTOR2 :
_local1 = new Actor2Actions();
break;
case LinkName.PEOPLE_ACTOR3 :
_local1 = new Actor3Actions();
}
return(_local1);
}
function loadControlKey() {
var _local2;
_local2 = new Array();
_local2.push(38);
_local2.push(40);
_local2.push(37);
_local2.push(39);
pHandler.addDirectionKey(_local2);
pHandler.addSingleKey(VK.NUM_DIVIDE);
pHandler.addSingleKey(VK.NUM_1);
pHandler.addSingleKey(VK.NUM_2);
pHandler.addSingleKey(VK.NUM_3);
pHandler.addSingleKey(VK.NUM_4);
pHandler.addSingleKey(VK.NUM_5);
pHandler.addSingleKey(VK.NUM_6);
_local2 = new Array();
_local2.push(VK.RIGHT);
_local2.push(VK.LEFT);
_local2.push(VK.RIGHT);
_local2.push(VK.LEFT);
_local2.push(VK.NUM_3);
pHandler.addOrderKey(_local2);
_local2 = new Array();
_local2.push(VK.RIGHT);
_local2.push(VK.LEFT);
_local2.push(VK.RIGHT);
_local2.push(VK.LEFT);
_local2.push(VK.NUM_2);
pHandler.addOrderKey(_local2);
_local2 = new Array();
_local2.push(VK.RIGHT);
_local2.push(VK.LEFT);
_local2.push(VK.NUM_1);
pHandler.addOrderKey(_local2);
_local2 = new Array();
_local2.push(VK.RIGHT);
_local2.push(VK.LEFT);
_local2.push(VK.NUM_2);
pHandler.addOrderKey(_local2);
_local2 = new Array();
_local2.push(VK.RIGHT);
_local2.push(VK.LEFT);
_local2.push(VK.NUM_3);
pHandler.addOrderKey(_local2);
_local2 = new Array();
_local2.push(VK.LEFT);
_local2.push(VK.RIGHT);
_local2.push(VK.LEFT);
_local2.push(VK.RIGHT);
_local2.push(VK.NUM_3);
pHandler.addOrderKey(_local2);
_local2 = new Array();
_local2.push(VK.LEFT);
_local2.push(VK.RIGHT);
_local2.push(VK.LEFT);
_local2.push(VK.RIGHT);
_local2.push(VK.NUM_2);
pHandler.addOrderKey(_local2);
_local2 = new Array();
_local2.push(VK.LEFT);
_local2.push(VK.RIGHT);
_local2.push(VK.NUM_1);
pHandler.addOrderKey(_local2);
_local2 = new Array();
_local2.push(VK.LEFT);
_local2.push(VK.RIGHT);
_local2.push(VK.NUM_2);
pHandler.addOrderKey(_local2);
_local2 = new Array();
_local2.push(VK.LEFT);
_local2.push(VK.RIGHT);
_local2.push(VK.NUM_3);
pHandler.addOrderKey(_local2);
}
var PEOPLE_X = 380;
var INFO_X = Stage.width - 10;
}
Symbol 516 MovieClip [actor1] Frame 89
state = FrameName.STAND;
stop();
Symbol 516 MovieClip [actor1] Frame 110
stop();
Symbol 516 MovieClip [actor1] Frame 115
gotoAndPlay(FrameName.STAND);
Symbol 516 MovieClip [actor1] Frame 142
gotoAndPlay(FrameName.STAND);
Symbol 516 MovieClip [actor1] Frame 174
gotoAndPlay(FrameName.STAND);
Symbol 516 MovieClip [actor1] Frame 194
gotoAndPlay(FrameName.STAND);
Symbol 516 MovieClip [actor1] Frame 218
gotoAndPlay(FrameName.STAND);
Symbol 516 MovieClip [actor1] Frame 247
gotoAndPlay(FrameName.STAND);
Symbol 516 MovieClip [actor1] Frame 281
stop();
Symbol 516 MovieClip [actor1] Frame 309
stop();
Symbol 516 MovieClip [actor1] Frame 339
stop();
Symbol 516 MovieClip [actor1] Frame 366
stop();
Symbol 516 MovieClip [actor1] Frame 394
stop();
Symbol 516 MovieClip [actor1] Frame 420
stop();
Symbol 516 MovieClip [actor1] Frame 504
stop();
Symbol 516 MovieClip [actor1] Frame 533
stop();
Symbol 516 MovieClip [actor1] Frame 573
stop();
Symbol 516 MovieClip [actor1] Frame 579
stop();
Symbol 516 MovieClip [actor1] Frame 609
stop();
Symbol 516 MovieClip [actor1] Frame 634
stop();
Symbol 516 MovieClip [actor1] Frame 661
stop();
Symbol 516 MovieClip [actor1] Frame 683
stop();
Symbol 516 MovieClip [actor1] Frame 710
stop();
Symbol 516 MovieClip [actor1] Frame 734
stop();
Symbol 516 MovieClip [actor1] Frame 782
this.state = FrameName.CROUCH;
Symbol 516 MovieClip [actor1] Frame 806
stop();
Symbol 516 MovieClip [actor1] Frame 810
if (downKeyUp) {
gotoAndStop(FrameName.STAND);
} else {
gotoAndStop(FrameName.CROUCH);
}
Symbol 516 MovieClip [actor1] Frame 834
if (downKeyUp) {
gotoAndStop(FrameName.STAND);
} else {
gotoAndStop(FrameName.CROUCH);
}
Symbol 516 MovieClip [actor1] Frame 862
if (downKeyUp) {
gotoAndStop(FrameName.STAND);
} else {
gotoAndStop(FrameName.CROUCH);
}
Symbol 516 MovieClip [actor1] Frame 884
if (downKeyUp) {
gotoAndStop(FrameName.STAND);
} else {
gotoAndStop(FrameName.CROUCH);
}
Symbol 516 MovieClip [actor1] Frame 907
if (downKeyUp) {
gotoAndStop(FrameName.STAND);
} else {
gotoAndStop(FrameName.CROUCH);
}
Symbol 516 MovieClip [actor1] Frame 932
if (downKeyUp) {
gotoAndStop(FrameName.STAND);
} else {
gotoAndStop(FrameName.CROUCH);
}
Symbol 516 MovieClip [actor1] Frame 975
stop();
Symbol 516 MovieClip [actor1] Frame 1003
stop();
Symbol 516 MovieClip [actor1] Frame 1031
stop();
Symbol 516 MovieClip [actor1] Frame 1058
stop();
Symbol 516 MovieClip [actor1] Frame 1085
stop();
Symbol 516 MovieClip [actor1] Frame 1111
stop();
Symbol 516 MovieClip [actor1] Frame 1180
StageGround.getInstance().shake();
Symbol 516 MovieClip [actor1] Frame 1184
StageGround.getInstance().shake();
Symbol 516 MovieClip [actor1] Frame 1203
gotoAndPlay(FrameName.STAND);
Symbol 516 MovieClip [actor1] Frame 1335
gotoAndPlay(FrameName.STAND);
Symbol 516 MovieClip [actor1] Frame 1355
stop();
Symbol 516 MovieClip [actor1] Frame 1376
stop();
Symbol 516 MovieClip [actor1] Frame 1399
gotoAndPlay(FrameName.STAND);
Symbol 516 MovieClip [actor1] Frame 1438
gotoAndPlay(FrameName.STAND);
Symbol 516 MovieClip [actor1] Frame 1457
stop();
Symbol 516 MovieClip [actor1] Frame 1461
StageGround.getInstance().shake();
Symbol 516 MovieClip [actor1] Frame 1468
gotoAndPlay(FrameName.STAND);
Symbol 516 MovieClip [actor1] Frame 1497
stop();
Symbol 516 MovieClip [actor1] Frame 1527
gotoAndPlay(FrameName.STAND);
Symbol 516 MovieClip [actor1] Frame 1548
stop();
Symbol 516 MovieClip [actor1] Frame 1646
StageGround.getInstance().shake();
Symbol 516 MovieClip [actor1] Frame 1655
StageGround.getInstance().shake();
Symbol 516 MovieClip [actor1] Frame 1666
StageGround.getInstance().shake();
Symbol 516 MovieClip [actor1] Frame 1676
StageGround.getInstance().shake();
Symbol 516 MovieClip [actor1] Frame 1687
StageGround.getInstance().shake();
Symbol 516 MovieClip [actor1] Frame 1698
StageGround.getInstance().shake();
Symbol 516 MovieClip [actor1] Frame 1709
StageGround.getInstance().shake();
Symbol 516 MovieClip [actor1] Frame 1719
StageGround.getInstance().shake();
Symbol 516 MovieClip [actor1] Frame 1729
StageGround.getInstance().shake();
Symbol 516 MovieClip [actor1] Frame 1739
StageGround.getInstance().shake();
Symbol 516 MovieClip [actor1] Frame 1749
StageGround.getInstance().shake();
Symbol 516 MovieClip [actor1] Frame 1759
StageGround.getInstance().shake();
Symbol 516 MovieClip [actor1] Frame 1768
StageGround.getInstance().shake();
Symbol 516 MovieClip [actor1] Frame 1777
gotoAndPlay(FrameName.STAND);
Symbol 516 MovieClip [actor1] Frame 1799
stop();
Symbol 516 MovieClip [actor1] Frame 1890
stop();
Symbol 516 MovieClip [actor1] Frame 1907
stop();
Symbol 516 MovieClip [actor1] Frame 1910
state = FrameName.SLEEP_CAN_STAND;
Symbol 516 MovieClip [actor1] Frame 1934
gotoAndPlay(FrameName.STAND);
Symbol 527 MovieClip [actor1Bullet1] Frame 1
stop();
Symbol 527 MovieClip [actor1Bullet1] Frame 14
gotoAndPlay(FrameName.BULLET_NORMAL);
Symbol 527 MovieClip [actor1Bullet1] Frame 43
state = FrameName.BULLET_END;
stop();
Symbol 535 MovieClip [actor1Bullet2] Frame 1
stop();
Symbol 535 MovieClip [actor1Bullet2] Frame 8
gotoAndPlay ("bullet_blast");
Symbol 535 MovieClip [actor1Bullet2] Frame 41
state = FrameName.BULLET_END;
stop();
Symbol 551 MovieClip [actor1Head] Frame 1
stop();
Symbol 551 MovieClip [actor1Head] Frame 2
stop();
Symbol 551 MovieClip [actor1Head] Frame 3
stop();
Symbol 551 MovieClip [actor1Head] Frame 4
stop();
Symbol 551 MovieClip [actor1Head] Frame 5
stop();
Symbol 551 MovieClip [actor1Head] Frame 6
stop();
Symbol 551 MovieClip [actor1Head] Frame 7
stop();
Symbol 740 MovieClip [actor2] Frame 89
state = State.STAND;
stop();
Symbol 740 MovieClip [actor2] Frame 110
stop();
Symbol 740 MovieClip [actor2] Frame 115
gotoAndPlay(FrameName.STAND);
Symbol 740 MovieClip [actor2] Frame 139
gotoAndPlay(FrameName.STAND);
Symbol 740 MovieClip [actor2] Frame 174
gotoAndPlay(FrameName.STAND);
Symbol 740 MovieClip [actor2] Frame 194
gotoAndPlay(FrameName.STAND);
Symbol 740 MovieClip [actor2] Frame 217
gotoAndPlay(FrameName.STAND);
Symbol 740 MovieClip [actor2] Frame 244
gotoAndPlay(FrameName.STAND);
Symbol 740 MovieClip [actor2] Frame 281
stop();
Symbol 740 MovieClip [actor2] Frame 309
stop();
Symbol 740 MovieClip [actor2] Frame 339
stop();
Symbol 740 MovieClip [actor2] Frame 366
stop();
Symbol 740 MovieClip [actor2] Frame 394
stop();
Symbol 740 MovieClip [actor2] Frame 420
stop();
Symbol 740 MovieClip [actor2] Frame 504
stop();
Symbol 740 MovieClip [actor2] Frame 533
stop();
Symbol 740 MovieClip [actor2] Frame 573
stop();
Symbol 740 MovieClip [actor2] Frame 579
stop();
Symbol 740 MovieClip [actor2] Frame 609
stop();
Symbol 740 MovieClip [actor2] Frame 634
stop();
Symbol 740 MovieClip [actor2] Frame 661
stop();
Symbol 740 MovieClip [actor2] Frame 683
stop();
Symbol 740 MovieClip [actor2] Frame 710
stop();
Symbol 740 MovieClip [actor2] Frame 734
stop();
Symbol 740 MovieClip [actor2] Frame 782
this.state = FrameName.CROUCH;
Symbol 740 MovieClip [actor2] Frame 806
stop();
Symbol 740 MovieClip [actor2] Frame 810
if (downKeyUp) {
gotoAndStop(FrameName.STAND);
} else {
gotoAndStop(FrameName.CROUCH);
}
Symbol 740 MovieClip [actor2] Frame 834
if (downKeyUp) {
gotoAndStop(FrameName.STAND);
} else {
gotoAndStop(FrameName.CROUCH);
}
Symbol 740 MovieClip [actor2] Frame 862
if (downKeyUp) {
gotoAndStop(FrameName.STAND);
} else {
gotoAndStop(FrameName.CROUCH);
}
Symbol 740 MovieClip [actor2] Frame 884
if (downKeyUp) {
gotoAndStop(FrameName.STAND);
} else {
gotoAndStop(FrameName.CROUCH);
}
Symbol 740 MovieClip [actor2] Frame 907
if (downKeyUp) {
gotoAndStop(FrameName.STAND);
} else {
gotoAndStop(FrameName.CROUCH);
}
Symbol 740 MovieClip [actor2] Frame 932
if (downKeyUp) {
gotoAndStop(FrameName.STAND);
} else {
gotoAndStop(FrameName.CROUCH);
}
Symbol 740 MovieClip [actor2] Frame 975
stop();
Symbol 740 MovieClip [actor2] Frame 1003
stop();
Symbol 740 MovieClip [actor2] Frame 1031
stop();
Symbol 740 MovieClip [actor2] Frame 1058
stop();
Symbol 740 MovieClip [actor2] Frame 1085
stop();
Symbol 740 MovieClip [actor2] Frame 1111
stop();
Symbol 740 MovieClip [actor2] Frame 1184
StageGround.getInstance().shake();
Symbol 740 MovieClip [actor2] Frame 1188
StageGround.getInstance().shake();
Symbol 740 MovieClip [actor2] Frame 1207
gotoAndPlay(FrameName.STAND);
Symbol 740 MovieClip [actor2] Frame 1223
StageGround.getInstance().shake();
Symbol 740 MovieClip [actor2] Frame 1231
StageGround.getInstance().shake();
Symbol 740 MovieClip [actor2] Frame 1238
StageGround.getInstance().shake();
Symbol 740 MovieClip [actor2] Frame 1244
StageGround.getInstance().shake();
Symbol 740 MovieClip [actor2] Frame 1253
gotoAndPlay(FrameName.STAND);
Symbol 740 MovieClip [actor2] Frame 1339
gotoAndPlay(FrameName.STAND);
Symbol 740 MovieClip [actor2] Frame 1359
stop();
Symbol 740 MovieClip [actor2] Frame 1380
stop();
Symbol 740 MovieClip [actor2] Frame 1403
gotoAndPlay(FrameName.STAND);
Symbol 740 MovieClip [actor2] Frame 1440
gotoAndPlay(FrameName.STAND);
Symbol 740 MovieClip [actor2] Frame 1459
stop();
Symbol 740 MovieClip [actor2] Frame 1472
gotoAndPlay(FrameName.STAND);
Symbol 740 MovieClip [actor2] Frame 1491
stop();
Symbol 740 MovieClip [actor2] Frame 1510
gotoAndPlay(FrameName.STAND);
Symbol 740 MovieClip [actor2] Frame 1531
stop();
Symbol 740 MovieClip [actor2] Frame 1641
StageGround.getInstance().shake();
Symbol 740 MovieClip [actor2] Frame 1649
StageGround.getInstance().shake();
Symbol 740 MovieClip [actor2] Frame 1659
StageGround.getInstance().shake();
Symbol 740 MovieClip [actor2] Frame 1669
StageGround.getInstance().shake();
Symbol 740 MovieClip [actor2] Frame 1679
StageGround.getInstance().shake();
Symbol 740 MovieClip [actor2] Frame 1689
StageGround.getInstance().shake();
Symbol 740 MovieClip [actor2] Frame 1699
StageGround.getInstance().shake();
Symbol 740 MovieClip [actor2] Frame 1710
StageGround.getInstance().shake();
Symbol 740 MovieClip [actor2] Frame 1712
gotoAndPlay(FrameName.STAND);
Symbol 740 MovieClip [actor2] Frame 1734
stop();
Symbol 740 MovieClip [actor2] Frame 1825
stop();
Symbol 740 MovieClip [actor2] Frame 1842
stop();
Symbol 740 MovieClip [actor2] Frame 1845
state = FrameName.SLEEP_CAN_STAND;
Symbol 740 MovieClip [actor2] Frame 1869
gotoAndPlay(FrameName.STAND);
Symbol 1058 MovieClip [actor3] Frame 89
state = State.STAND;
stop();
Symbol 1058 MovieClip [actor3] Frame 110
stop();
Symbol 1058 MovieClip [actor3] Frame 116
gotoAndPlay(FrameName.STAND);
Symbol 1058 MovieClip [actor3] Frame 141
gotoAndPlay(FrameName.STAND);
Symbol 1058 MovieClip [actor3] Frame 169
StageGround.getInstance().shake();
Symbol 1058 MovieClip [actor3] Frame 175
gotoAndPlay(FrameName.STAND);
Symbol 1058 MovieClip [actor3] Frame 194
gotoAndPlay(FrameName.STAND);
Symbol 1058 MovieClip [actor3] Frame 219
gotoAndPlay(FrameName.STAND);
Symbol 1058 MovieClip [actor3] Frame 246
gotoAndPlay(FrameName.STAND);
Symbol 1058 MovieClip [actor3] Frame 281
stop();
Symbol 1058 MovieClip [actor3] Frame 309
stop();
Symbol 1058 MovieClip [actor3] Frame 339
stop();
Symbol 1058 MovieClip [actor3] Frame 366
stop();
Symbol 1058 MovieClip [actor3] Frame 394
stop();
Symbol 1058 MovieClip [actor3] Frame 420
stop();
Symbol 1058 MovieClip [actor3] Frame 504
stop();
Symbol 1058 MovieClip [actor3] Frame 533
stop();
Symbol 1058 MovieClip [actor3] Frame 573
stop();
Symbol 1058 MovieClip [actor3] Frame 579
stop();
Symbol 1058 MovieClip [actor3] Frame 609
stop();
Symbol 1058 MovieClip [actor3] Frame 634
stop();
Symbol 1058 MovieClip [actor3] Frame 661
stop();
Symbol 1058 MovieClip [actor3] Frame 683
stop();
Symbol 1058 MovieClip [actor3] Frame 710
stop();
Symbol 1058 MovieClip [actor3] Frame 734
stop();
Symbol 1058 MovieClip [actor3] Frame 782
this.state = FrameName.CROUCH;
Symbol 1058 MovieClip [actor3] Frame 806
stop();
Symbol 1058 MovieClip [actor3] Frame 810
if (downKeyUp) {
gotoAndStop(FrameName.STAND);
} else {
gotoAndStop(FrameName.CROUCH);
}
Symbol 1058 MovieClip [actor3] Frame 834
if (downKeyUp) {
gotoAndStop(FrameName.STAND);
} else {
gotoAndStop(FrameName.CROUCH);
}
Symbol 1058 MovieClip [actor3] Frame 862
if (downKeyUp) {
gotoAndStop(FrameName.STAND);
} else {
gotoAndStop(FrameName.CROUCH);
}
Symbol 1058 MovieClip [actor3] Frame 884
if (downKeyUp) {
gotoAndStop(FrameName.STAND);
} else {
gotoAndStop(FrameName.CROUCH);
}
Symbol 1058 MovieClip [actor3] Frame 907
if (downKeyUp) {
gotoAndStop(FrameName.STAND);
} else {
gotoAndStop(FrameName.CROUCH);
}
Symbol 1058 MovieClip [actor3] Frame 932
if (downKeyUp) {
gotoAndStop(FrameName.STAND);
} else {
gotoAndStop(FrameName.CROUCH);
}
Symbol 1058 MovieClip [actor3] Frame 975
stop();
Symbol 1058 MovieClip [actor3] Frame 1003
stop();
Symbol 1058 MovieClip [actor3] Frame 1031
stop();
Symbol 1058 MovieClip [actor3] Frame 1058
stop();
Symbol 1058 MovieClip [actor3] Frame 1085
stop();
Symbol 1058 MovieClip [actor3] Frame 1111
stop();
Symbol 1058 MovieClip [actor3] Frame 1178
StageGround.getInstance().shake();
Symbol 1058 MovieClip [actor3] Frame 1186
StageGround.getInstance().shake();
Symbol 1058 MovieClip [actor3] Frame 1204
StageGround.getInstance().shake();
Symbol 1058 MovieClip [actor3] Frame 1214
StageGround.getInstance().shake();
Symbol 1058 MovieClip [actor3] Frame 1224
StageGround.getInstance().shake();
Symbol 1058 MovieClip [actor3] Frame 1243
gotoAndPlay(FrameName.STAND);
Symbol 1058 MovieClip [actor3] Frame 1263
stop();
Symbol 1058 MovieClip [actor3] Frame 1284
stop();
Symbol 1058 MovieClip [actor3] Frame 1310
gotoAndPlay(FrameName.STAND);
Symbol 1058 MovieClip [actor3] Frame 1346
gotoAndPlay(FrameName.STAND);
Symbol 1058 MovieClip [actor3] Frame 1365
stop();
Symbol 1058 MovieClip [actor3] Frame 1370
StageGround.getInstance().shake();
Symbol 1058 MovieClip [actor3] Frame 1376
gotoAndPlay(FrameName.STAND);
Symbol 1058 MovieClip [actor3] Frame 1395
stop();
Symbol 1058 MovieClip [actor3] Frame 1415
gotoAndPlay(FrameName.STAND);
Symbol 1058 MovieClip [actor3] Frame 1436
stop();
Symbol 1058 MovieClip [actor3] Frame 1555
StageGround.getInstance().shake();
Symbol 1058 MovieClip [actor3] Frame 1566
StageGround.getInstance().shake();
Symbol 1058 MovieClip [actor3] Frame 1576
StageGround.getInstance().shake();
Symbol 1058 MovieClip [actor3] Frame 1585
StageGround.getInstance().shake();
Symbol 1058 MovieClip [actor3] Frame 1606
gotoAndPlay(FrameName.STAND);
Symbol 1058 MovieClip [actor3] Frame 1628
stop();
Symbol 1058 MovieClip [actor3] Frame 1637
StageGround.getInstance().shake();
Symbol 1058 MovieClip [actor3] Frame 1645
StageGround.getInstance().shake();
Symbol 1058 MovieClip [actor3] Frame 1663
StageGround.getInstance().shake();
Symbol 1058 MovieClip [actor3] Frame 1673
StageGround.getInstance().shake();
Symbol 1058 MovieClip [actor3] Frame 1683
StageGround.getInstance().shake();
Symbol 1058 MovieClip [actor3] Frame 1693
StageGround.getInstance().shake();
Symbol 1058 MovieClip [actor3] Frame 1703
StageGround.getInstance().shake();
Symbol 1058 MovieClip [actor3] Frame 1713
StageGround.getInstance().shake();
Symbol 1058 MovieClip [actor3] Frame 1722
StageGround.getInstance().shake();
Symbol 1058 MovieClip [actor3] Frame 1735
StageGround.getInstance().shake();
Symbol 1058 MovieClip [actor3] Frame 1754
gotoAndPlay(FrameName.STAND);
Symbol 1058 MovieClip [actor3] Frame 1844
stop();
Symbol 1058 MovieClip [actor3] Frame 1861
stop();
Symbol 1058 MovieClip [actor3] Frame 1864
state = FrameName.SLEEP_CAN_STAND;
Symbol 1058 MovieClip [actor3] Frame 1888
gotoAndPlay(FrameName.STAND);
Symbol 1063 MovieClip [actor2Bullet1] Frame 1
stop();
Symbol 1063 MovieClip [actor2Bullet1] Frame 12
gotoAndPlay(FrameName.BULLET_NORMAL);
Symbol 1063 MovieClip [actor2Bullet1] Frame 41
state = FrameName.BULLET_END;
stop();
Symbol 1074 MovieClip [actor2Bullet2] Frame 1
stop();
Symbol 1074 MovieClip [actor2Bullet2] Frame 12
gotoAndPlay(FrameName.BULLET_NORMAL);
Symbol 1074 MovieClip [actor2Bullet2] Frame 41
state = FrameName.BULLET_END;
stop();
Symbol 1089 MovieClip [actor2Bullet3] Frame 1
stop();
Symbol 1089 MovieClip [actor2Bullet3] Frame 18
gotoAndPlay(FrameName.BULLET_NORMAL);
Symbol 1089 MovieClip [actor2Bullet3] Frame 50
state = FrameName.BULLET_END;
stop();
Symbol 1097 MovieClip [actor2Head] Frame 1
stop();
Symbol 1097 MovieClip [actor2Head] Frame 2
stop();
Symbol 1097 MovieClip [actor2Head] Frame 3
stop();
Symbol 1097 MovieClip [actor2Head] Frame 4
stop();
Symbol 1097 MovieClip [actor2Head] Frame 5
stop();
Symbol 1097 MovieClip [actor2Head] Frame 6
stop();
Symbol 1097 MovieClip [actor2Head] Frame 7
stop();
Symbol 1110 MovieClip [actor3Bullet1] Frame 1
stop();
Symbol 1110 MovieClip [actor3Bullet1] Frame 10
gotoAndPlay(FrameName.BULLET_NORMAL);
Symbol 1110 MovieClip [actor3Bullet1] Frame 43
state = FrameName.BULLET_END;
stop();
Symbol 1121 MovieClip [actor3Bullet2] Frame 1
stop();
Symbol 1121 MovieClip [actor3Bullet2] Frame 14
gotoAndPlay(FrameName.BULLET_NORMAL);
Symbol 1121 MovieClip [actor3Bullet2] Frame 43
state = FrameName.BULLET_END;
stop();
Symbol 1129 MovieClip [actor3Head] Frame 1
stop();
Symbol 1129 MovieClip [actor3Head] Frame 2
stop();
Symbol 1129 MovieClip [actor3Head] Frame 3
stop();
Symbol 1129 MovieClip [actor3Head] Frame 4
stop();
Symbol 1129 MovieClip [actor3Head] Frame 5
stop();
Symbol 1129 MovieClip [actor3Head] Frame 6
stop();
Symbol 1129 MovieClip [actor3Head] Frame 7
stop();
Symbol 1168 MovieClip Frame 1
stop();
Symbol 1169 MovieClip [stageGround] Frame 1
stop();
Symbol 1245 MovieClip Frame 1
stop();
Symbol 1245 MovieClip Frame 345
stop();
Symbol 1276 MovieClip Frame 1
stop();
Symbol 1276 MovieClip Frame 396
stop();
Symbol 1407 MovieClip Frame 1
stop();
Symbol 1407 MovieClip Frame 470
stop();
Symbol 1410 MovieClip Frame 1
stop();
Symbol 1410 MovieClip Frame 97
mc.actor1_movie.gotoAndPlay(2);
Symbol 1410 MovieClip Frame 543
mc.actor2_movie.gotoAndPlay(2);
Symbol 1410 MovieClip Frame 1041
mc.actor3_movie.gotoAndPlay(2);
Symbol 1410 MovieClip Frame 1818
stop();
_root.preloader_mc.play_btn._visible = false;
var CPMStarPoolID = 13381;
var CPMStarSubPoolID = 9;
adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID);
Symbol 1410 MovieClip Frame 1819
stop();
Symbol 1410 MovieClip Frame 1832
stop();
Symbol 1410 MovieClip Frame 1851
stop();
Symbol 1418 MovieClip Frame 1
stop();
Symbol 1418 MovieClip Frame 2
stop();
Symbol 1435 MovieClip Frame 1
stop();
Symbol 1435 MovieClip Frame 2
stop();
Symbol 1435 MovieClip Frame 3
stop();
Symbol 1436 MovieClip [revengeScreen] Frame 35
stop();
Symbol 1518 MovieClip Frame 36
stop();