Frame 1
onEnterFrame = function () {
var _local5 = _root.getBytesLoaded();
var _local4 = _root.getBytesTotal();
var _local3 = int((_local5 / _local4) * 100);
bar.gotoAndStop((_local3 / 100) * bar._totalframes);
if (_root._framesloaded > 2) {
if (_root._url.indexOf("freeworldgroup") == -1) {
}
}
if (_local3 == 100) {
delete this.onEnterFrame;
play();
}
};
Frame 5
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
play();
} else {
stop();
}
Instance of Symbol 877 MovieClip in Frame 35
//component parameters
onClipEvent (construct) {
_game_name = "political_duel";
score_var = "_root.score";
}
Frame 115
gotoAndPlay (116);
Frame 124
function setKey() {
u = key_P1[0].u;
d = key_P1[0].d;
f = key_P1[0].f;
b = key_P1[0].b;
p = key_P1[0].p;
u2 = key_P2[0].u;
d2 = key_P2[0].d;
f2 = key_P2[0].f;
b2 = key_P2[0].b;
p2 = key_P2[0].p;
}
function transIn() {
attachMovie("trans", "trans", _level0.depth_trans);
}
function transOut() {
trans.gotoAndPlay("out");
}
function saveOption(lv, tm, lf, pw, rd) {
level = lv;
playTime = tm;
lifeBar_num = lf;
superPoint = pw;
setting.data.level = lv;
setting.data.playTime = tm;
setting.data.lifeBar_num = lf;
setting.data.superPoint = pw;
setting.flush();
}
function saveKey() {
setting.data.key_P1 = key_P1;
setting.data.key_P2 = key_P2;
}
function loadOption() {
if (setting.data.level == undefined) {
return(undefined);
}
level = setting.data.level;
playTime = setting.data.playTime;
lifeBar_num = setting.data.lifeBar_num;
superPoint = setting.data.superPoint;
}
function loadDefault() {
level = 2;
playTime = 60;
lifeBar_num = 1;
superPoint = 1;
}
function loadKey() {
if (setting.data.key_P1 == undefined) {
return(undefined);
}
key_P1 = setting.data.key_P1;
key_P2 = setting.data.key_P2;
setKey();
}
function role_init() {
P1_mc.addPlayer(P1_type);
P2_mc.addPlayer(P2_type);
P1_role = P1_mc.role_mc;
P2_role = P2_mc.role_mc;
P1_role.init(key_P1);
P2_role.init(key_P2);
var _local4 = 120;
var _local3 = 480;
P1_role.stageInf(stage_with, egde_max, egde_min, _local4, land_Y, char);
P2_role.stageInf(stage_with, egde_max, egde_min, _local3, land_Y, char);
var _local1 = life_max * lifeBar_num;
P1_role.stageVar(life_max, _local1, superPoint, powerPoint_max, P2_role, mode_P1);
P2_role.stageVar(life_max, _local1, superPoint, powerPoint_max, P1_role, mode_P2);
power_init();
if (charSelect_P1 == charSelect_P2) {
var _local2 = P1_role.attachMovie("arrowP1", "arrowP1", 1234);
_local2._x = 0;
_local2._y = -210;
}
}
function demo_init() {
P1_mc.addPlayer("player");
P2_mc.addPlayer("player");
P1_role = P1_mc.role_mc;
P2_role = P2_mc.role_mc;
P1_role.init(key_P1);
P2_role.init(key_P2);
var _local3 = 120;
var _local2 = 480;
P1_role.stageInf(stage_with, egde_max, egde_min, _local3, land_Y, char);
P2_role.stageInf(stage_with, egde_max, egde_min, _local2, land_Y, char);
var _local1 = life_max * lifeBar_num;
P1_role.stageVar(life_max, _local1, superPoint, powerPoint_max, P2_role, mode_P1);
P2_role.stageVar(life_max, _local1, superPoint, powerPoint_max, P1_role, mode_P2);
effect_mc = char_mc.attachMovie("effect", "effect_mc", depth_effect);
role_control();
}
function power_init() {
LP_P1 = life_power_mc.LP_P1;
LP_P2 = life_power_mc.LP_P2;
LP_P1.role = P1_role;
LP_P2.role = P2_role;
winTimes_P1 = life_power_mc.winTimes_P1;
winTimes_P2 = life_power_mc.winTimes_P2;
}
function lifeControl(obj) {
if (obj.target == P1_role) {
life_power_mc.LP_P1.lifeControl(obj);
} else if (obj.target == P2_role) {
life_power_mc.LP_P2.lifeControl(obj);
}
}
function powerControl(obj) {
if (obj.target == P1_role) {
life_power_mc.LP_P1.powerControl(obj);
} else if (obj.target == P2_role) {
life_power_mc.LP_P2.powerControl(obj);
}
}
function nextRound() {
if ((_level0.modeID == 3) && (_level0.winner == _level0.P1_role)) {
_level0.lifeLeft = _level0.P1_role.life + 60;
if (_level0.lifeLeft > life_max) {
_level0.lifeLeft = life_max;
}
}
KO = false;
timeOver = false;
bothKO = false;
transOut();
if ((P1_role.winTimes == roundMax) || (P2_role.winTimes == roundMax)) {
roundNum = 1;
win();
return(undefined);
}
role_reset();
LP_P1.reset();
LP_P2.reset();
roundNum++;
timer_start();
life_power_mc.time_mc.init_time();
stage_mc.addStage();
}
function timer_start() {
var _local1 = element_mc.attachMovie("battle_start", "battle_start", _level0.depth_control);
}
function timer_end() {
var _local1 = element_mc.attachMovie("battle_end", "battle_end", _level0.depth_control);
life_power_mc.time_mc.timeStop();
}
function trainning_start() {
P1_role.gotoAndStop("stand");
P2_role.gotoAndStop("stand");
_level0.role_control();
}
function role_start() {
P1_role.start();
P2_role.start();
}
function role_reset() {
P1_role.reset();
P2_role.reset();
}
function role_control() {
inFreeze = false;
P1_role.start_control();
P2_role.start_control();
if (layTime != -1) {
life_power_mc.time_mc.timeStart();
}
}
function showWinner() {
var _local1;
if (bothKO) {
_local1 = "tie";
} else {
_local1 = "winner";
}
var _local2 = element_mc.attachMovie(_local1, "winner", _level0.depth_ko);
P1_role.control = false;
P2_role.control = false;
LP_P1.burst_end();
LP_P2.burst_end();
}
function showWintimes() {
if (bothKO) {
return(undefined);
}
life_power_mc.winTimes_P1.gotoAndStop(P1_role.winTimes + 1);
life_power_mc.winTimes_P2.gotoAndStop(P2_role.winTimes + 1);
}
function showStart_txt() {
element_mc.attachMovie("start_mc", "start_mc", _level0.depth_ko, {_x:center_x, _y:150});
element_mc.start_mc._xscale = 70;
element_mc.start_mc._yscale = 70;
}
function win() {
menu_bottom_mc.removeMovieClip();
if (_level0.modeID == 3) {
if (_level0.winner == _level0.P1_role) {
nextBattle();
} else {
element_mc.attachMovie("winResult", "winResult", _level0.depth_ko);
}
} else {
element_mc.attachMovie("winResult", "winResult", _level0.depth_ko);
}
}
function timeOut() {
if (KO) {
return(undefined);
}
KO = true;
timeOver = true;
element_mc.attachMovie("timeOut", "timeOut_mc", depth_ko, {_x:300, _y:140});
if (P1_role.life == P2_role.life) {
winner = P1_role;
} else if (P1_role.life > P2_role.life) {
winner = P1_role;
} else if (P1_role.life < P2_role.life) {
winner = P2_role;
}
winner.winTimes++;
winner.opp.isOK = true;
P1_role.do_end();
P2_role.do_end();
}
function do_win() {
winner.do_win();
showWinner();
}
function KO_both() {
bothKO = true;
showWinner();
if (P1_role.winTimes > 0) {
P1_role.winTimes--;
}
if (P2_role.winTimes > 0) {
P2_role.winTimes--;
}
}
function getTime() {
return(life_power_mc.time_mc.time_txt.text);
}
function resetDate() {
char_list = new Array("laden", "bush", "kim", "saddam");
name_list = new Array("Bin Laden", "George Bush", "Kim Jong Il", "Saddam Hussain");
opponent_list = new Array("laden", "bush", "kim", "saddam");
battleID = 1;
lifeLeft = 0;
score = 0;
}
function getName(name1) {
var _local1;
if (name1 == "bush") {
_local1 = "George Bush";
} else if (name1 == "laden") {
_local1 = "Bin Laden";
} else if (name1 == "kim") {
_local1 = "Kim Jong Il";
} else if (name1 == "saddam") {
_local1 = "Saddam Hussain";
}
return(_local1);
}
function startGame() {
}
function toMainMenu() {
exit();
}
function playAgain() {
char_mc.removeMovieClip();
stage_mc.removeMovieClip();
life_power_mc.removeMovieClip();
element_mc.removeMovieClip();
resetDate();
gotoAndStop ("charSelcet");
}
function nextBattle() {
battleID++;
stage_mc.removeMovieClip();
life_power_mc.removeMovieClip();
char_mc.removeMovieClip();
element_mc.removeMovieClip();
setOpponent();
gotoAndPlay ("vs");
}
function setOpponent() {
var _local1 = int(Math.random() * opponent_list.length);
_level0.charSelect_P2 = opponent_list[_local1];
if (_level0.charSelect_P2 == undefined) {
opponent_list = char_list;
_level0.charSelect_P2 = opponent_list[0];
trace("====================");
}
trace("_level0.charSelect_P2:" + _level0.charSelect_P2);
_level0.opponent_list.splice(_local1, 1);
trace("_level0.opponent_list:" + [_level0.opponent_list, opponent_list.length, char_list]);
if (opponent_list.length == 0) {
opponent_list = ["laden", "bush", "kim", "saddam"];
}
}
function exit() {
stopAllSounds();
char_mc.removeMovieClip();
stage_mc.removeMovieClip();
life_power_mc.removeMovieClip();
element_mc.removeMovieClip();
_root._x = 0;
_root._y = 0;
gotoAndPlay ("open");
}
function setSound(obj) {
if (soundOn == false) {
allSound_snd.setVolume(100);
soundOn = true;
obj.gotoAndStop(1);
} else if (soundOn) {
allSound_snd.setVolume(0);
soundOn = false;
obj.gotoAndStop(2);
}
}
function modeSelect(id) {
modeID = id;
if (modeID == 3) {
roundMax = 1;
}
gotoAndStop ("charSelcet");
}
function menuSelcet(id) {
menu1ID = id;
if (id == 1) {
play();
}
}
function setDifficult(num) {
level = num;
difficult_set.difficulty_1.gotoAndStop(1);
difficult_set.difficulty_2.gotoAndStop(1);
difficult_set.difficulty_3.gotoAndStop(1);
difficult_set["difficulty_" + num].gotoAndStop(2);
}
function getDifficult(obj) {
obj.difficulty_1.gotoAndStop(1);
obj.difficulty_2.gotoAndStop(1);
obj.difficulty_3.gotoAndStop(1);
obj["difficulty_" + level].gotoAndStop(2);
difficult_set = obj;
}
function setRound(num) {
roundMax = num;
Round_set.round_1.gotoAndStop(1);
Round_set.round_2.gotoAndStop(1);
Round_set["round_" + num].gotoAndStop(2);
}
function getRound(obj) {
obj.round_1.gotoAndStop(1);
obj.round_2.gotoAndStop(1);
obj["round_" + roundMax].gotoAndStop(2);
Round_set = obj;
}
function demoInit() {
if (demoPlayed != undefined) {
return(undefined);
}
charSelect_P1 = "bush";
charSelect_P2 = "saddam";
createEmptyMovieClip("char_mc", depth_char);
P1_mc = char_mc.attachMovie(("role_" + charSelect_P1) + "_link", "P1_mc", depth_P1);
P2_mc = char_mc.attachMovie(("role_" + charSelect_P2) + "_link", "P2_mc", depth_P2);
P1_mc._lockroot = true;
P2_mc._lockroot = true;
}
function stopFight() {
inFreeze = false;
char_mc.removeMovieClip();
delete this.onEnterFrame;
}
var player_type;
var P1_type;
var P2_type;
var charSelect_P1 = "";
var charSelect_P2 = "";
var bg_select = 3;
var mode_P1 = "";
var mode_P2 = "";
var charID_P1;
var charID_P2;
var attacker;
var hurter;
var winner;
var inFreeze = false;
var egde_max = 570;
var egde_min = 30;
var center_x = 300;
var stage_with = 600;
var stage_height = 400;
var land_Y = 370;
var g = 3;
var KO = false;
var roundMax = 2;
var roundNum = 1;
var battleID = 1;
var lifeBar_num = 1;
var life_max = 300;
var superPoint = 3;
var power_max = 100;
var powerPoint_max = 3;
var level = 2;
var playTime = 60;
var setting = SharedObject.getLocal("kof");
var depth_select = 2;
var depth_stage = 3;
var depth_shinningBG = 5;
var depth_char = 10;
var depth_life = 20;
var depth_hitCounter = 30;
var depth_ko = 100;
var depth_trans = 200;
var depth_control = 300;
var depth_shake = 350;
var depth_menu = 400;
var depth_other = 150;
var depth_P1 = 20;
var depth_P2 = 10;
var depth_effect = 30;
var bulletNum = 6;
var score = 0;
var key_P1_proto = {u:87, d:83, b:65, f:68, p:74, k:75, p_l:85, k_l:73, s:79, s2:76};
var key_P2_proto = {u:38, d:40, b:37, f:39, p:97, k:98, p_l:100, k_l:101, s:102, s2:99};
var key_P1 = new Array(key_P1_proto);
var key_P2 = new Array(key_P2_proto);
var u;
var d;
var f;
var b;
var p;
var u2;
var d2;
var f2;
var b2;
var p2;
var select_snd = new Sound();
select_snd.attachSound("select");
var ok_snd = new Sound();
ok_snd.attachSound("ok");
var p_snd = new Sound();
p_snd.attachSound("punch");
var k_snd = new Sound();
k_snd.attachSound("punch");
var boom_snd = new Sound();
boom_snd.attachSound("boom");
var allSound_snd = new Sound();
var char_list = new Array("laden", "bush", "kim", "saddam");
var name_list = new Array("Bin Laden", "George Bush", "Kim Jong Il", "Saddam Hussain");
var opponent_list = new Array("laden", "bush", "kim", "saddam");
var lifeLeft = 0;
var soundOn = true;
allSound_snd.setVolume(100);
var modeID;
var difficult_set;
var Round_set;
var demoPlayed;
demoInit();
Frame 125
function demo() {
if (demoPlayed != undefined) {
return(undefined);
}
demoPlayed = true;
P1_type = "cpu";
P2_type = "cpu";
role_init();
effect_mc = char_mc.attachMovie("effect", "effect_mc", depth_effect);
role_control();
onEnterFrame = function () {
P1_role.checkSide();
P2_role.checkSide();
};
}
stop();
setKey();
loadOption();
loadKey();
demo();
Frame 126
function selectOK() {
play();
}
stop();
_level0.transOut();
Frame 127
stop();
Frame 128
createEmptyMovieClip("char_mc", depth_char);
P1_mc = char_mc.attachMovie(("role_" + charSelect_P1) + "_link", "P1_mc", depth_P1);
P2_mc = char_mc.attachMovie(("role_" + charSelect_P2) + "_link", "P2_mc", depth_P2);
P1_mc._lockroot = true;
P2_mc._lockroot = true;
Frame 129
stopAllSounds();
firstPlay = false;
stage_mc = attachMovie("stage_loader", "stage_mc", depth_stage, {_x:0, _y:0});
bgm_mc = stage_mc.attachMovie("bgm", "bgm_mc", 101);
bgm_mc._visible = false;
Frame 130
createEmptyMovieClip("element_mc", depth_other);
effect_mc = char_mc.attachMovie("effect", "effect_mc", depth_effect);
shinningBG = attachMovie("shinningBG", "shinningBG", depth_shinningBG);
shake_mc = element_mc.attachMovie("Stage_shake", "Stage_shake", depth_shake);
hitCounter = element_mc.attachMovie("counter", "hitCounter", depth_hitCounter);
life_power_mc = element_mc.attachMovie("life_power", "life_power", depth_life, {_x:center_x, _y:20});
life_power_mc.init(life);
menu_bottom_mc = element_mc.attachMovie("menu_bottom", "menu_bottom", depth_menu);
Frame 131
stop();
role_init();
if (((_level0.modeID == 3) && (battleID > 1)) && (_level0.lifeLeft > 0)) {
life_power_mc.LP_P1.setLife();
P1_role.life = _level0.lifeLeft;
}
if (player_type == "trainning") {
trainning_start();
} else {
timer_start();
}
bgm_mc.play();
transOut();
onEnterFrame = function () {
P1_role.checkSide();
P2_role.checkSide();
};
Frame 132
firstPlay = false;
transOut();
createEmptyMovieClip("char_mc", depth_char);
P1_mc = char_mc.attachMovie("role_bush_link", "P1_mc", depth_P1);
P1_mc._lockroot = true;
Frame 134
stop();
demo_init();
Symbol 3 MovieClip [battle_start] Frame 1
if (_level0.roundNum > 1) {
gotoAndPlay ("nextRound");
}
Symbol 3 MovieClip [battle_start] Frame 2
_level0.role_start();
Symbol 3 MovieClip [battle_start] Frame 19
_level0.showStart_txt();
Symbol 3 MovieClip [battle_start] Frame 27
stop();
Symbol 3 MovieClip [battle_start] Frame 28
_level0.role_reset();
Symbol 3 MovieClip [battle_start] Frame 54
_level0.showStart_txt();
Symbol 3 MovieClip [battle_start] Frame 62
stop();
Symbol 4 MovieClip [battle_end] Frame 81
if (_level0.winner.status_1 == "stand") {
_level0.do_win();
} else if (((_level0.winner.status_1 == "walk_f") || (_level0.winner.status_1 == "walk_b")) || (_level0.winner.status_1 == "dash_f")) {
_level0.do_win();
} else if (_level0.P1_role.isKO && (_level0.P2_role.isKO)) {
_level0.KO_both();
} else {
gotoAndPlay (1);
}
Symbol 4 MovieClip [battle_end] Frame 101
_level0.showWintimes();
Symbol 4 MovieClip [battle_end] Frame 202
_level0.transIn();
Symbol 4 MovieClip [battle_end] Frame 212
_level0.nextRound();
Symbol 4 MovieClip [battle_end] Frame 232
stop();
Symbol 9 MovieClip Frame 1
var i = Math.random();
if (i < 0.25) {
gotoAndPlay ("s2");
} else if (i < 0.5) {
gotoAndPlay ("s3");
} else if (i < 0.75) {
gotoAndPlay ("s4");
}
Symbol 9 MovieClip Frame 14
stop();
Symbol 9 MovieClip Frame 30
stop();
Symbol 9 MovieClip Frame 46
stop();
Symbol 9 MovieClip Frame 60
stop();
Symbol 19 MovieClip [hitFire1] Frame 30
this.removeMovieClip();
Symbol 23 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 100
stop();
Symbol 39 MovieClip Frame 26
stop();
Symbol 41 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Symbol 90 MovieClip Frame 1
_visible = false;
_name = "body";
Instance of Symbol 90 MovieClip in Symbol 91 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 141 MovieClip Frame 400
Symbol 1077 MovieClip [__Packages.role_corn.Role] Frame 0
class role_corn.Role extends MovieClip
{
var lifeObj, powerObj, skillObj, freeze_timer, createEmptyMovieClip, skill_loader, _parent, lose_snd, bulletNum, gotoAndStop, Vx, Vwalk, Vdash, Vjump_far, Vy, Vjump_y, f, Vjump_x, b, _x, _y, opp, inBurst, powerPoint_max, superPoint, redBlood, burst_mode, burst_defend, onEnterFrame, d, Vg, land_Y, hurtValue, onEgde, inFreeze, onHit, egde_max, egde_min, _xscale, flyingObj, hitValue, isKO, skillCount, countTimes, countPos, inCount, comboClass, superSkill, superList, scale, stage_with, char_mc, startX, startY, life, life_max, begin, newKeyControl, u, input_pre, opp_width2, egde, colorObj, color_timer2, color_timer;
function Role () {
super();
lifeObj = {target:this};
powerObj = {target:this};
skillObj = new Object();
color_init();
freeze_timer = createEmptyMovieClip("freeze_timer", 124);
skill_loader = _parent.createEmptyMovieClip("skill_loader", 200);
lose_snd = new Sound();
lose_snd.attachSound("lose.wav");
bulletNum = _level0.bulletNum;
}
function stand() {
statusClear();
(gotoAndStop("stand"));// not popped
}
function walk_f() {
if (((((status_2 != "land") || (status_3 != "normal")) || (status_1 == "squat")) || (holdFreeze)) || (status_1 == "hold_u")) {
return(undefined);
}
Vx = dir * Vwalk;
(gotoAndStop("walk_f"));// not popped
status_1 = "walk_f";
move_walkRun();
}
function walk_b() {
if (holdFreeze) {
return(undefined);
}
if (((((status_2 != "land") || (status_3 != "normal")) || (status_1 == "squat")) || (holdFreeze)) || (status_1 == "hold_u")) {
return(undefined);
}
Vx = dir * (-Vwalk);
(gotoAndStop("walk_b"));// not popped
status_1 = "walk_b";
move_walkRun();
}
function dash_f() {
if ((((status_2 != "land") || (status_3 != "normal")) || (status_1 == "squat")) || (holdFreeze)) {
return(undefined);
}
Vx = dir * Vdash;
(gotoAndStop("dash_f"));// not popped
status_1 = "dash_f";
move_walkRun();
}
function dash_b() {
}
function roll_f() {
}
function roll_b() {
}
function hold_u() {
if ((status_2 != "land") || (status_3 != "normal")) {
return(undefined);
}
(gotoAndStop("hold_u"));// not popped
status_1 = "hold_u";
status_4 = "hold";
move_hold();
}
function hold_d() {
}
function squat() {
hold_u();
}
function jump() {
if (((status_2 != "land") || (holdFreeze)) || (status_3 != "normal")) {
return(undefined);
}
status_2 = "air";
if (status_1 == "dash_f") {
Vx = Vjump_far;
Vy = Vjump_y;
(gotoAndStop("jump_f"));// not popped
status_1 = "jump_f";
} else if (Key.isDown(f)) {
Vx = dir * Vjump_x;
Vy = Vjump_y;
if (dir == 1) {
(gotoAndStop("jump_f"));// not popped
status_1 = "jump_f";
} else {
(gotoAndStop("jump_b"));// not popped
status_1 = "jump_b";
}
} else if (Key.isDown(b)) {
Vx = (-dir) * Vjump_x;
Vy = Vjump_y;
if (dir == -1) {
(gotoAndStop("jump_f"));// not popped
status_1 = "jump_f";
} else {
(gotoAndStop("jump_b"));// not popped
status_1 = "jump_b";
}
} else {
Vx = 0;
Vy = Vjump_y;
(gotoAndStop("jump"));// not popped
status_1 = "jump";
}
}
function land() {
status_2 = "toLand";
status_3 = "normal";
status_1 = "land";
(gotoAndStop("land"));// not popped
_level0.effect_mc.downEff("down1", _x, _y, dir);
}
function land2() {
status_2 = "toLand";
status_3 = "normal";
status_1 = "land2";
(gotoAndStop("land2"));// not popped
_level0.effect_mc.downEff("down1", _x, _y, dir);
}
function getup1() {
status_2 = "toLand";
status_3 = "down";
status_1 = "getup1";
(gotoAndStop("getup1"));// not popped
}
function getup2() {
status_2 = "toLand";
status_3 = "down";
status_1 = "getup2";
(gotoAndStop("getup2"));// not popped
}
function punch() {
if (status_2 != "land") {
return(undefined);
}
status_1 = "punch";
(gotoAndStop(status_1));// not popped
status_3 = "attack";
}
function punch_l() {
if (status_2 != "land") {
return(undefined);
}
status_1 = "punch_l";
(gotoAndStop(status_1));// not popped
status_3 = "attack";
}
function kick() {
if (status_2 != "land") {
return(undefined);
}
status_1 = "kick";
(gotoAndStop(status_1));// not popped
status_3 = "attack";
}
function kick_l() {
if (status_2 != "land") {
return(undefined);
}
(gotoAndStop("kick_l"));// not popped
status_1 = "kick_l";
status_3 = "attack";
}
function jumpSkill(act) {
if (status_3 != "normal") {
return(undefined);
}
if (this[status_1]._currentframe < 6) {
return(undefined);
}
this[status_1].gotoAndPlay(act);
status_3 = "attack";
opp.checkDefend();
}
function pitch() {
if (status_3 != "normal") {
return(undefined);
}
if (catch_check()) {
(gotoAndStop("pitch"));// not popped
status_1 = "pitch";
status_3 = "attack";
opp.status_3 = "hurt";
return(true);
}
}
function burst() {
if (inBurst) {
burstSkill();
return(undefined);
}
if (((status_2 != "land") || (status_3 != "normal")) || (holdFreeze)) {
return(undefined);
}
if (superPoint == powerPoint_max) {
} else if (redBlood && (superPoint > 0)) {
} else {
return(undefined);
}
status_3 = "attack";
if (burst_mode == "attack") {
status_1 = "burst";
(gotoAndStop("burst"));// not popped
} else if (burst_mode == "defend") {
burst2();
}
return(true);
}
function burst2() {
status_1 = "burst2";
status_3 = "attack";
burst_defend = true;
(gotoAndStop("burst2"));// not popped
}
function burstSkill() {
if (burst_mode == "attack") {
toSkill(skillObj.busrt_a, true);
} else if (burst_mode == "defend") {
toSkill(skillObj.busrt_d, true);
}
}
function heavyHit() {
if (status_2 != "land") {
return(undefined);
}
status_1 = "heavyHit";
status_3 = "attack";
(gotoAndStop(status_1));// not popped
}
function sk_gun() {
if (status_2 != "land") {
return(undefined);
}
if (bulletCheck() == false) {
return(undefined);
}
bulletDec();
status_1 = "sk_gun";
status_3 = "attack";
(gotoAndStop(status_1));// not popped
}
function move_walkRun() {
onEnterFrame = function () {
if (this.inFreeze) {
return(undefined);
}
if (((this.status_2 != "land") || (this.status_3 != "normal")) || (this.status_1 == "hold_u")) {
delete this.onEnterFrame;
return(undefined);
}
if (Key.isDown(this.f)) {
this.do_move(this.Vx);
} else if (Key.isDown(this.b)) {
this.do_move(this.Vx);
} else {
delete this.onEnterFrame;
this.stand();
}
};
}
function move_hold() {
var d = d;
var owner = this;
this[status_1].onEnterFrame = function () {
if (owner.inFreeze) {
return(undefined);
}
if (((!Key.isDown(d)) && (owner.status_1 == "hold_u")) && (!owner.holdFreeze)) {
delete this.onEnterFrame;
owner.toStatus_switch("stand");
}
};
}
function check_hold_d() {
if (opp.status_3 == "attack") {
if (((dir == 1) && (Key.isDown(b))) || ((dir == -1) && (Key.isDown(f)))) {
hold_d();
return(true);
}
}
}
function move_hold0() {
var _local5 = f;
var _local2 = b;
var d = d;
var _local3 = opp;
var _local4 = dir;
var owner = this;
this[status_1].onEnterFrame = function () {
if (owner.inFreeze) {
return(undefined);
}
if (Key.isDown(d)) {
} else if (!owner.holdFreeze) {
trace(5);
owner.toStatus_switch("stand");
}
};
}
function do_holdFreeze(f) {
holdFreeze = true;
var f_t = f;
var owner = this;
freeze_timer.onEnterFrame = function () {
if (owner.inFreeze) {
return(undefined);
}
if (f_t == 6) {
owner.delaySkill = "";
}
if (f_t == 0) {
owner.hold_end();
delete this.onEnterFrame;
}
f_t--;
};
}
function hold_end() {
holdFreeze = false;
status_4 = "normal";
}
function do_move(Vx) {
checkTouch(Vx);
do_move2(Vx);
}
function do_move2(Vx) {
if (egdecheck(Vx)) {
return(undefined);
}
_x = _x + Vx;
}
function start_move_X1(v, obj) {
var Vx = ((v == 0) ? (dir * Vx) : (dir * v));
var _local3 = this;
onEnterFrame = function () {
if (this.inFreeze) {
return(undefined);
}
this.do_move(Vx);
if (obj.Vx == undefined) {
delete this.onEnterFrame;
}
};
}
function stop_move_X1(obj) {
delete obj.onEnterFrame;
}
function start_move_X2(v) {
Vx = v;
onEnterFrame = function () {
if (this.inFreeze) {
return(undefined);
}
this.do_move(this.dir * this.Vx);
this.Vx = this.Vx - this.Va;
if (this.Vx <= 0) {
this.stop_move_X2();
}
};
}
function stop_move_X2() {
delete onEnterFrame;
}
function start_move_Y1(y, x, end, g) {
status_2 = "air";
Vy = y;
Vx = dir * x;
var Vg2;
if ((g != 0) && (g != null)) {
Vg2 = g;
} else {
Vg2 = Vg;
}
onEnterFrame = function () {
if (this.inFreeze) {
return(undefined);
}
this.do_move(this.Vx);
this._y = this._y - this.Vy;
this.Vy = this.Vy - Vg2;
if (this._y > this.land_Y) {
this.stop_move_Y1(end);
}
};
}
function stop_move_Y1(end) {
delete onEnterFrame;
_y = land_Y;
if (end == undefined) {
land();
} else if (end == "none") {
this[status_1].play();
} else {
toStatus(end);
}
}
function hurtBack(f_r) {
Vx = hurtValue.Vx;
var status_now = this[status_1];
var ft = hurtValue.freezeTime2;
if (((status_1 == "hold_u") || (status_1 == "hold_d")) && (Vx > 21)) {
Vx = 21;
}
if ((status_1 == "hold_d") && (opp.status_1 == "squatKick")) {
Vx = 20;
}
if ((onEgde && (!hurtValue.isObj)) && (status_2 == "land")) {
opp.do_move(-5 * opp.dir);
} else {
do_move(5 * opp.dir);
}
onEnterFrame = function () {
if (this.inFreeze) {
return(undefined);
}
if (ft > 0) {
status_now.stop();
ft--;
return(undefined);
}
if (ft == 0) {
status_now.play();
ft = -1;
}
if ((this.onEgde && (!this.hurtValue.isObj)) && (this.status_2 == "land")) {
this.opp.do_move((-this.Vx) * this.opp.dir);
} else {
this.do_move(this.Vx * this.opp.dir);
}
this.Vx = this.Vx - this.Va;
if (this.Vx <= 0) {
delete this.onEnterFrame;
status_now.play();
}
};
}
function stop_hurtBack() {
delete onEnterFrame;
this[status_1].play();
}
function hurtAway() {
status_2 = "air";
Vx = hurtValue.Vx * opp.dir;
Vy = hurtValue.Vy;
onEnterFrame = function () {
this.do_hurtAway();
};
}
function hurtAway_self(v1, v2, end) {
status_2 = "air";
Vx = v1 * opp.dir;
Vy = v2;
hurtValue.Vy = v2;
hurtValue.end_status = end;
onEnterFrame = function () {
this.do_hurtAway();
};
}
function do_hurtAway() {
if (inFreeze) {
return(undefined);
}
do_move(Vx);
_y = _y - Vy;
Vy = Vy - Vg;
if (_y > land_Y) {
stop_hurtAway();
}
}
function stop_hurtAway() {
delete onEnterFrame;
status_2 = "";
_y = land_Y;
if (status_1 == "hurt6") {
status_3 = "";
toStatus_switch("stand");
} else if (hurtValue.end_status == "none") {
this[status_1].play();
} else if (hurtValue.end_status == "") {
if ((Vx > 25) || (Vx < -25)) {
toStatus("getup2");
} else {
toStatus("getup1");
}
} else {
toStatus(hurtValue.end_status);
}
if (hurtValue.Vy < 0) {
_level0.effect_mc.downEff("down2", _x, _y, dir);
} else {
_level0.effect_mc.downEff("down2", _x, _y, dir);
}
}
function do_hitTest(obj) {
if (obj.hitTest(opp[opp.status_1].body)) {
return(true);
}
}
function move_HitTest(obj, attFrame, endFrame, S, v) {
var opp = opp;
var role = this;
var status_mc = this[status_1];
var Sx = S;
var Vx = v;
obj.onEnterFrame = function () {
if (role.inFreeze) {
return(undefined);
}
role.do_move(role.dir * Vx);
Sx = Sx - Vx;
if (this.hitTest(opp[opp.status_1].body)) {
status_mc.gotoAndPlay(attFrame);
delete this.onEnterFrame;
} else if (Sx < 0) {
status_mc.gotoAndPlay(endFrame);
delete this.onEnterFrame;
} else if ((role.egde == 1) && (role.dir == 1)) {
status_mc.gotoAndPlay(endFrame);
delete this.onEnterFrame;
} else if ((role.egde == -1) && (role.dir == -1)) {
status_mc.gotoAndPlay(endFrame);
delete this.onEnterFrame;
}
};
}
function catch_check() {
if ((((((status_1 != "dash_f") && (opp.status_2 != "air")) && (opp.status_3 != "hurt")) && (opp.status_3 != "down")) && (!opp.holdFreeze)) && (opp.hit_over() || (dir == opp.dir))) {
if (checkTouch(15 * dir)) {
return(true);
}
}
}
function catch_HitTest(obj, status_c, flag, land, hurt) {
if ((opp.status_2 == "air") && (land)) {
return(undefined);
}
if (((opp.status_3 != "hurt") && (opp.status_3 != "down")) && (hurt)) {
return(undefined);
}
if (obj.hitTest(opp[opp.status_1].body)) {
onHit = true;
opp.status_3 = "hurt";
opp.toStatus(status_c);
opp[status_c].gotoAndStop(flag);
var _local2 = _x + (obj._x * dir);
var _local3 = _y + obj._y;
if ((_level0.char_mc._x + _local2) > egde_max) {
_local2 = egde_max - _level0.char_mc._x;
} else if ((_level0.char_mc._x + _local2) < egde_min) {
_local2 = egde_min - _level0.char_mc._x;
}
opp._x = _local2;
if (dir == opp.dir) {
if (dir == 1) {
opp.chageSide2();
} else {
opp.chageSide1();
}
}
delete onEnterFrame;
_level0.effect_mc.hitFire("hitFire3", _local2, _local3);
topLayer();
} else {
onHit = false;
switchSkill("punch");
}
}
function catch_oppPos(obj, status_c, flag, land, hurt) {
if ((opp.status_2 == "air") && (land)) {
return(undefined);
}
if (((opp.status_3 != "hurt") && (opp.status_3 != "down")) && (hurt)) {
return(undefined);
}
if (obj.hitTest(opp[opp.status_1].body)) {
onHit = true;
opp.status_3 = "hurt";
opp.toStatus(status_c);
opp[status_c].gotoAndStop(flag);
var _local2 = _x + (obj._x * dir);
var _local3 = _y + obj._y;
if ((_level0.char_mc._x + _local2) > egde_max) {
_local2 = egde_max - _level0.char_mc._x;
} else if ((_level0.char_mc._x + _local2) < egde_min) {
_local2 = egde_min - _level0.char_mc._x;
}
opp._x = _local2;
opp._y = _local3;
if (dir == opp.dir) {
if (dir == 1) {
opp.chageSide2();
} else {
opp.chageSide1();
}
}
delete onEnterFrame;
} else {
onHit = false;
}
}
function throw_oppPos(obj, status_c, flag, land, hurt) {
onHit = true;
opp.status_2 = "air";
opp.status_3 = "hurt";
opp.toStatus(status_c);
opp[status_c].gotoAndStop(flag);
var _local2 = _x + (obj._x * dir);
var _local4 = _y + obj._y;
if ((_level0.char_mc._x + _local2) > egde_max) {
_local2 = egde_max - _level0.char_mc._x;
} else if ((_level0.char_mc._x + _local2) < egde_min) {
_local2 = egde_min - _level0.char_mc._x;
}
opp._x = _local2;
opp._y = _local4;
if (obj.sameDir) {
opp._xscale = _xscale;
}
opp._rotation = obj._rotation;
delete onEnterFrame;
}
function throw_hit(hurtV, obj) {
opp._rotation = 0;
opp.checkSide_abs();
var _local2 = _x + (obj._x * dir);
var _local4 = _y + obj._y;
if ((_level0.char_mc._x + _local2) > egde_max) {
_local2 = egde_max - _level0.char_mc._x;
} else if ((_level0.char_mc._x + _local2) < egde_min) {
_local2 = egde_min - _level0.char_mc._x;
}
opp._x = _local2;
opp._y = _local4;
opp.hurtValue = hurtV;
opp.toStatus(hurtV.hurtAway);
opp[status_1].gotoAndPlay(hurtV.flag);
opp.hurtAway();
powerObj.inc = 10 * hurtV.d_rate;
powerObj.action = "inc";
powerControl(powerObj);
}
function flyingObjHit(hitValue) {
flyingObj.play();
}
function doHit(obj) {
hitValue = obj;
powerObj.inc = 10 * hitValue.d_rate;
powerObj.action = "inc";
powerControl(powerObj);
}
function doHurt(obj) {
hurtValue = obj;
checkHurt();
opp.hitFire();
shakeCheck();
opp.topLayer();
if (isKO && (!KO_checked)) {
_level0.effect_mc.KO_Freeze(hurtValue.freezeTime + 15);
KO_checked = true;
} else if (hurtValue.freezeTime > 0) {
_level0.effect_mc.hitFreeze(hurtValue.freezeTime);
}
_level0.hurter = this;
delaySkill = "";
}
function checkHurt() {
if (countCheck()) {
lifeObj.d_rate = 0.3;
lifeControl(lifeObj);
if (!isKO) {
return(undefined);
}
}
if ((hurtValue.hitPos == "down") && (status_1 == "hold_u")) {
} else if ((hurtValue.hitPos == "up") && (status_1 == "hold_d")) {
} else if ((status_1 == "hold_u") || (status_1 == "hold_d")) {
var _local3 = 6 + hurtValue.freezeTime;
if (_local3 == undefined) {
_local3 = 8;
} else if (_local3 > 14) {
_local3 = 14;
}
do_holdFreeze(_local3);
hurtBack();
lifeObj.d_rate = 0.2;
lifeControl(lifeObj);
return(undefined);
}
lifeObj.d_rate = hurtValue.d_rate;
lifeControl(lifeObj);
powerObj.inc = 5 * hurtValue.d_rate;
powerObj.action = "inc";
powerControl(powerObj);
if ((_level0.modeID == 1) || (_level0.modeID == 3)) {
if (opp == _level0.P1_role) {
var _local4;
if (opp.superSkill) {
_local4 = int(150 * hurtValue.d_rate);
} else {
_local4 = int(50 * hurtValue.d_rate);
}
_root.score = _root.score + _local4;
_root.menu_bottom_mc.score_show.score_mc.score_txt.text = "+" + _local4;
_root.menu_bottom_mc.score_show.gotoAndPlay("show");
} else if (this == _level0.P1_role) {
if (opp.superSkill) {
var _local4 = int(50 * hurtValue.d_rate);
} else {
var _local4 = int(20 * hurtValue.d_rate);
}
_root.score = _root.score - _local4;
if (_root.score < 0) {
_root.score = 0;
}
_root.menu_bottom_mc.score_show.score_mc.score_txt.text = "-" + _local4;
_root.menu_bottom_mc.score_show.gotoAndPlay("show");
}
}
status_3 = "hurt";
if (dir == opp.dir) {
if (dir == 1) {
chageSide2();
} else {
chageSide1();
}
}
hurtStatus();
}
function hurtStatus() {
delete onEnterFrame;
if (hurtValue.hurtAway == "hurt6") {
hurtValue.hurtAway = "hurt3";
}
if (isKO && (hurtValue.hurtBack != "")) {
hurtValue.hurtAway = "hurt3";
hurtValue.end_status = "getup2";
hurtValue.Vx = 16;
hurtValue.Vy = 30;
toStatus(hurtValue.hurtAway);
this[status_1].gotoAndPlay(1);
hurtAway();
} else if (hurtValue.hurtBack == "") {
toStatus(hurtValue.hurtAway);
this[status_1].gotoAndPlay(hurtValue.flag);
hurtAway();
} else if (status_2 == "air") {
toStatus(hurtValue.hurtAway);
this[status_1].gotoAndPlay(hurtValue.flag);
if (hurtValue.Vx < 30) {
hurtValue.Vx = 16;
}
if (hurtValue.Vy < 40) {
hurtValue.Vy = 30;
}
hurtAway();
} else {
toStatus(hurtValue.hurtBack);
this[status_1].gotoAndPlay(hurtValue.flag);
hurtBack();
}
}
function hitFire() {
var _local3 = hitValue.hitType;
var _local2 = opp._x;
var _local4 = hitValue.area.getPosY();
if ((opp.status_1 == "hold_u") || (opp.status_1 == "hold_d")) {
_local3 = "hitFire2";
} else if (opp.inCount) {
_local3 = "hitFire2";
_level0.hitCounter.showCount(_local2 + _level0.char_mc._x);
} else {
if (hitValue.hitEff != "") {
addEffect(hitValue.hitEff, _local2, _local4);
}
_level0.hitCounter.showHits(_local2);
}
_level0.effect_mc.hitFire(_local3, _local2, _local4);
}
function countStart(times, pos) {
skillCount = true;
countTimes = times;
countPos = pos;
if (countTimes == undefined) {
countTimes = 1;
}
}
function countEnd() {
skillCount = false;
}
function countCheck() {
if (dir != opp.dir) {
if (skillCount) {
if ((countPos == "down") && (hurtValue.hitPos != "down")) {
} else if ((countPos == "up") && (hurtValue.hitPos == "down")) {
} else if (countTimes > 0) {
inCount = true;
countTimes--;
hurtValue.freezeTime = hurtValue.freezeTime + 3;
return(true);
}
} else if (burst_defend) {
if (inCount) {
} else if (!hit_over()) {
inCount = true;
hurtValue.freezeTime = hurtValue.freezeTime + 3;
powerObj.action = "burstdec";
powerObj.decNum = 20;
powerControl(powerObj);
changeColorSelf("white", 30);
return(true);
}
}
}
countTimes = 0;
inCount = false;
}
function powerBurst() {
inBurst = true;
powerObj.action = "burst";
powerControl(powerObj);
}
function burstEff() {
if (burst_mode == "attack") {
} else if (burst_mode == "defend") {
burst_defend = true;
}
}
function superCancle() {
if (inBurst && (burst_mode == "attack")) {
return(true);
}
}
function SC_control() {
powerObj.action = "burstdec";
powerObj.decNum = 30;
powerControl(powerObj);
changeColorSelf("white", 30);
}
function burst_end() {
inBurst = false;
inCount = false;
burst_defend = false;
}
function holdCount() {
heavyHit();
powerObj.action = "burstdec";
powerObj.decNum = 70;
powerControl(powerObj);
changeColorSelf("white", 30);
}
function hit_over() {
if (status_3 != "attack") {
return(true);
}
var _local2 = comboClass.skill_over[status_1];
if (_local2 == undefined) {
return(false);
}
if (this[status_1]._currentframe > _local2) {
return(true);
}
return(false);
}
function freeze_frame() {
if (status_3 != "attack") {
return(0);
}
var _local3 = this[status_1]._currentframe;
var _local2 = this[status_1]._totalframes;
var _local4 = _local2 - _local3;
return(_local4);
}
function superStart(superType, time_f, dx, dy) {
_level0.effect_mc.superStart(superType, dx, dy, time_f);
}
function superCheck(action) {
superSkill = false;
if (superList[action] == 1) {
if (superPoint == 0) {
return(false);
}
superSkill = true;
}
}
function powerDec() {
powerObj.action = "dec";
powerControl(powerObj);
}
function bulletCheck() {
if (bulletNum == 0) {
return(false);
}
return(true);
}
function bulletDec() {
bulletNum--;
powerObj.action = "b_dec";
powerObj.b_num = bulletNum;
powerControl(powerObj);
}
function addSkill(s_name, src, Vx, Va) {
var _local5 = skill_loader.getNextHighestDepth();
var _local2 = skill_loader.attachMovie(s_name, "skill" + _local5, _local5);
var _local3 = new Object();
_local3.x = src._x;
_local3.y = src._y;
src._parent.localToGlobal(_local3);
_local2._x = (src._x * dir) + _x;
_local2._y = _local3.y;
_local2.dir = dir;
_local2._xscale = dir * scale;
_local2.role = this;
_local2.opp = opp;
_local2.init();
if ((char_mc._x + _local2._x) > stage_with) {
_local2._x = stage_with - char_mc._x;
} else if ((char_mc._x + _local2._x) < 0) {
_local2._x = -char_mc._x;
}
}
function addSkill2(s_name, src, Vx, Va) {
var _local4 = skill_loader.getNextHighestDepth();
var _local2 = skill_loader.attachMovie(s_name, "skill" + _local4, _local4);
var _local3 = new Object();
_local3.x = src._x;
_local3.y = src._y;
src._parent.localToGlobal(_local3);
_local2._x = _local3.x;
_local2._y = _local3.y;
_local2.dir = dir;
_local2._xscale = dir * scale;
_local2.opp = opp;
_local2.init();
if ((char_mc._x + _local2._x) > stage_with) {
_local2._x = stage_with - char_mc._x;
} else if ((char_mc._x + _local2._x) < 0) {
_local2._x = -char_mc._x;
}
}
function addEffect(e_name, e_x, e_y) {
var _local3 = skill_loader.getNextHighestDepth();
var _local2 = skill_loader.attachMovie(e_name, "effect" + _local3, _local3);
_local2._x = e_x;
_local2._y = e_y;
_local2.dir = dir;
_local2._xscale = dir * scale;
}
function catchFire(e_name, e_x, e_y, dir) {
}
function start_move_Obj(Obj) {
var _local2 = Obj;
var owner = this;
_local2.onEnterFrame = function () {
if (owner.inFreeze) {
return(undefined);
}
this._x = this._x + (this.dir * this.Vx);
this.Vx = this.Vx - this.Va;
if (((this.Vx <= 0) || (this._x > 700)) || (this._x < -50)) {
this.gotoAndPlay("end");
delete this.onEnterFrame;
}
};
}
function stageInf(sw, emax, emin, x, y) {
stage_with = sw;
egde_max = emax;
egde_min = emin;
startX = x;
startY = y;
_x = x;
_y = y;
land_Y = y;
checkSide_abs();
}
function stageVar(l, l_max, s_Point, p_max, opponent, burst) {
life = l;
life_max = l_max;
superPoint = s_Point;
powerPoint_max = p_max;
opp = opponent;
burst_mode = burst;
}
function start() {
begin.play();
}
function reset() {
isKO = false;
KO_checked = false;
onEgde = false;
redBlood = false;
life = life_max;
bulletNum = _level0.bulletNum;
superPoint = powerPoint_max;
powerObj.action = "init";
powerControl(powerObj);
(gotoAndStop("ready"));// not popped
_x = startX;
_y = startY;
checkSide_abs();
}
function start_control() {
}
function end_control() {
}
function do_end() {
}
function do_KO() {
trace("do_KO");
isKO = true;
if (status_4 == "hold") {
hurtValue.hurtAway = "hurt3";
hurtValue.end_status = "getup2";
hurtValue.Vx = 16;
hurtValue.Vy = 30;
toStatus(hurtValue.hurtAway);
this[status_1].gotoAndPlay(1);
hurtAway();
}
lose_snd.start();
toSkill = noAct;
toAction = noAct;
opp.do_end();
}
function do_win() {
trace("do_win");
if (isKO) {
return(undefined);
}
(gotoAndStop("win"));// not popped
status_1 = "end";
_level0.hitCounter.stopCount(opp);
}
function noAct() {
}
function checkSide_abs() {
if (_x < opp._x) {
_xscale = scale;
dir = 1;
newKeyControl.dir = 1;
} else if (_x > opp._x) {
_xscale = -scale;
dir = -1;
newKeyControl.dir = -1;
}
}
function checkSide() {
if (status_2 == "toLand") {
chageSide_arg();
return(undefined);
}
if (status_1 == "roll_f") {
chageSide_arg();
return(undefined);
}
if (status_2 != "land") {
return(undefined);
}
if (status_3 != "normal") {
return(undefined);
}
if (status_1 == "dash_f") {
return(undefined);
}
if ((_x < opp._x) && (_xscale < 0)) {
chageSide1();
} else if ((_x > opp._x) && (_xscale > 0)) {
chageSide2();
}
}
function chageSide_arg() {
if ((_x < opp._x) && (_xscale < 0)) {
newKeyControl.dir = 1;
} else if ((_x > opp._x) && (_xscale > 0)) {
newKeyControl.dir = -1;
}
}
function chageSide1() {
_xscale = scale;
dir = 1;
newKeyControl.dir = 1;
}
function chageSide2() {
_xscale = -scale;
dir = -1;
newKeyControl.dir = -1;
}
function lifeControl(obj) {
_level0.lifeControl(obj);
}
function powerControl(obj) {
_level0.powerControl(obj);
}
function toSkill(action, cancle) {
if (action == undefined) {
return(undefined);
}
if ((status_3 == "hurt") || (status_3 == "down")) {
return(undefined);
}
if (holdFreeze) {
if (burst_defend && (action == "heavyHit")) {
holdCount();
} else {
skill_delay(action);
}
return(undefined);
}
if (superCheck(action) == false) {
return(undefined);
}
if ((status_3 == "attack") && (!cancle)) {
comboClass.check_combo(status_1, action);
return(undefined);
}
if (delayCheck()) {
skill_delay(action);
return(undefined);
}
if (superSkill) {
powerDec();
}
if (this[action] != undefined) {
toStatus(action);
} else if ((status_2 == "land") && ((status_3 == "normal") || (status_3 == "attack"))) {
toStatus(action);
status_3 = "attack";
} else {
return(undefined);
}
opp.checkDefend();
if (burst_mode == "attack") {
powerObj.inc = 5;
powerObj.action = "inc";
powerControl(powerObj);
}
}
function switchSkill(action) {
toSkill(action, true);
trace("switchSkill:" + action);
}
function toAction(action) {
toStatus(action);
opp.actionDefend(action);
}
function keyUp(obj) {
var _local1 = obj.upKey;
}
function statusClear() {
status_1 = "stand";
status_2 = "land";
status_3 = "normal";
status_4 = "normal";
holdFreeze = false;
inCount = false;
}
function toStatus(action) {
if (_level0.inFreeze) {
skill_delay(action);
return(undefined);
}
if (this[action] != undefined) {
this[action]();
} else {
status_1 = action;
(gotoAndStop(action));// not popped
}
}
function toStatus_switch(act) {
if (status_3 == "hurt") {
return(undefined);
}
var _local2 = act;
statusClear();
checkSide();
_level0.hitCounter.stopCount(this);
if (delaySkill != "") {
toSkill(delaySkill);
delaySkill = "";
return(undefined);
}
if (Key.isDown(u)) {
_local2 = "jump";
} else if (Key.isDown(d)) {
_local2 = "squat";
} else if (Key.isDown(f)) {
if (dir == 1) {
_local2 = "walk_f";
} else {
_local2 = "walk_b";
}
} else if (Key.isDown(b)) {
if (dir == 1) {
_local2 = "walk_b";
} else {
_local2 = "walk_f";
}
}
toStatus(_local2);
}
function delayCheck() {
var _local2 = input_pre[status_1];
if (_local2 == undefined) {
return(false);
}
var _local3 = this[status_1]._currentframe;
if (_local3 > _local2) {
return(true);
}
}
function skill_delay(action) {
delaySkill = action;
}
function skill_restart() {
if (delaySkill != "") {
toStatus(delaySkill);
delaySkill = "";
}
}
function shakeCheck() {
_level0.shake_mc.shakeStart(hurtValue.shake);
}
function checkTouch(dv) {
var _local3;
var _local2;
var _local4;
if ((status_2 != "air") && (opp.status_2 == "air")) {
return(undefined);
}
if ((status_3 == "roll") || (opp.status_3 == "roll")) {
return(undefined);
}
if (_y > (opp._y - 120)) {
_local4 = opp._x;
if ((_xscale > 0) && ((_local3 = ((_x + dv) - _local4) + opp_width2) > 0)) {
if (_x < (_local4 + 10)) {
if (opp.onEgde) {
_local2 = _local3;
} else {
_local2 = int(_local3 / 2);
}
do_move2(-_local2);
opp.do_move2(_local2);
return(true);
}
} else if ((_xscale < 0) && ((_local3 = ((_x + dv) - _local4) - opp_width2) < 0)) {
if (_x > (_local4 - 10)) {
if (opp.onEgde) {
_local2 = _local3;
} else {
_local2 = int(_local3 / 2);
}
do_move2(-_local2);
opp.do_move2(_local2);
return(true);
}
}
}
}
function bodyTouch() {
var _local2 = checkTouch2();
if (_local2 != undefined) {
do_bodyTouch(_local2);
}
}
function do_bodyTouch(v) {
var Vx = v;
var owner = this;
onEnterFrame = function () {
Vx = int(Vx / 2);
owner.do_move2(Vx);
if (Vx == 0) {
delete this.onEnterFrame;
}
};
}
function checkTouch2() {
var _local2 = _x - opp._x;
var _local3;
if ((_local2 > -50) && (_local2 < 0)) {
_local3 = -50 - _local2;
return(_local3);
}
if ((_local2 < 50) && (_local2 >= 0)) {
_local3 = 50 - _local2;
return(_local3);
}
}
function egdecheck(v) {
var _local3 = _level0.char_mc._x + _x;
if (((_local3 + v) >= egde_max) && (v > 0)) {
onEgde = true;
egde = 1;
return(true);
}
if (((_local3 + v) <= egde_min) && (v < 0)) {
onEgde = true;
egde = -1;
return(true);
}
onEgde = false;
egde = 0;
}
function color_init() {
colorObj = new Object();
colorObj.normal = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
colorObj.fire = {ra:"100", rb:"255", ga:"100", gb:"110", ba:"100", bb:"0", aa:"100", ab:"0"};
colorObj.white = {ra:"100", rb:"255", ga:"100", gb:"255", ba:"100", bb:"255", aa:"100", ab:"255"};
}
function changeColorSelf(cc, time_f) {
clearInterval(color_timer2);
var _local3 = new Color(this);
var _local2 = colorObj[cc];
_local3.setTransform(_local2);
color_timer2 = setInterval(this, "backColorSelf", time_f);
}
function changeColor(cc, time_f) {
clearInterval(color_timer);
var _local3 = new Color(opp);
var _local2 = colorObj[cc];
_local3.setTransform(_local2);
color_timer = setInterval(this, "backColor", time_f);
}
function backColorSelf() {
var _local3 = new Color(this);
var _local2 = colorObj.normal;
_local3.setTransform(_local2);
clearInterval(color_timer2);
}
function backColor() {
var _local3 = new Color(opp);
var _local2 = colorObj.normal;
_local3.setTransform(_local2);
clearInterval(color_timer);
}
function topLayer() {
if (_parent.getDepth() < opp._parent.getDepth()) {
_parent.swapDepths(opp._parent);
}
}
function hasObj() {
if (_parent.skill_loader.getNextHighestDepth() > 0) {
return(true);
}
}
function getObjDis() {
var _local3 = skill_loader.getNextHighestDepth() - 1;
if (_local3 < 0) {
return(undefined);
}
var _local2 = skill_loader["skill" + _local3]._x;
if (_local2 == undefined) {
return(undefined);
}
return(Math.abs(_local2 - opp._x));
}
var status_1 = "stand";
var status_2 = "land";
var status_3 = "normal";
var status_4 = "normal";
var holdFreeze = false;
var delaySkill = "";
var dir = 1;
var frame_t = 33;
var frame_t2 = 80;
var KO_checked = false;
var winTimes = 0;
var control = false;
}
Symbol 1078 MovieClip [__Packages.Ryo_role] Frame 0
class Ryo_role extends role_corn.Role
{
var scale, Vwalk, Vdash, Vjump_x, Vjump_y, Vjump_far, Vg, Va, opp_width2, superList, skillObj, comboClass, input_pre, gotoAndStop, status_1, status_3, status_2, d, f, dir, b, toSkill, jumpSkill;
function Ryo_role () {
super();
scale = 100;
Vwalk = 8;
Vdash = 20;
Vjump_x = 10;
Vjump_y = 30;
Vjump_far = 20;
if (Vg == undefined) {
Vg = _level0.g;
}
Va = 3;
opp_width2 = 60;
superList = {sk_soldier1:1, sk_soldier2:1, sk_tank:1};
skillObj.busrt_a = "sk12";
skillObj.busrt_d = "sk13";
skillObj.toAir = "sk3";
skillObj.heavyHit = "heavyHit";
skillObj.flyingObj = "sk1";
comboClass = new Ryo_Combo(this);
preCheck();
}
function preCheck() {
input_pre = new Object();
input_pre.roll_f = 10;
input_pre.roll_b = 10;
input_pre.land = 0;
input_pre.land2 = 0;
input_pre.kick1 = 9;
}
function kick1() {
(gotoAndStop("kick1"));// not popped
status_1 = "kick1";
status_3 = "attack";
}
function kick2() {
if (status_2 != "land") {
return(undefined);
}
(gotoAndStop("kick2"));// not popped
status_1 = "kick2";
status_3 = "attack";
}
function punch2() {
if (status_2 != "land") {
return(undefined);
}
status_1 = "punch2";
(gotoAndStop(status_1));// not popped
status_3 = "attack";
}
function dash_b() {
}
function to_PK_l() {
}
function to_PK() {
}
function to_key_s() {
}
function to_key_s2() {
var _local2;
if (Key.isDown(d)) {
_local2 = "sk_soldier2";
} else if (Key.isDown(f) && (dir == 1)) {
_local2 = "sk_soldier1";
} else if (Key.isDown(b) && (dir == -1)) {
_local2 = "sk_soldier1";
} else if (Key.isDown(b) && (dir == 1)) {
_local2 = "sk_tank";
} else if (Key.isDown(f) && (dir == -1)) {
_local2 = "sk_tank";
} else {
_local2 = "sk_gun";
}
toSkill(_local2);
}
function to_kick() {
var _local2;
if ((((status_1 == "jump_f") || (status_1 == "jump_far")) || (status_1 == "jump")) || (status_1 == "jump_b")) {
jumpSkill("kick");
return(undefined);
}
if (Key.isDown(d)) {
_local2 = "kick2";
} else if (Key.isDown(f) && (dir == 1)) {
_local2 = "kick2";
} else if (Key.isDown(b) && (dir == -1)) {
_local2 = "kick2";
} else {
_local2 = "kick";
}
toSkill(_local2);
}
function to_kick_l() {
}
function to_punch() {
var _local2;
if ((((status_1 == "jump_f") || (status_1 == "jump_far")) || (status_1 == "jump")) || (status_1 == "jump_b")) {
jumpSkill("kick");
return(undefined);
}
if (Key.isDown(d)) {
_local2 = "sk1";
} else if (Key.isDown(f) && (dir == 1)) {
_local2 = "punch2";
} else if (Key.isDown(b) && (dir == -1)) {
_local2 = "punch2";
} else {
_local2 = "punch";
}
toSkill(_local2);
}
function to_punch_l() {
}
}
Symbol 1079 MovieClip [__Packages.role_corn.Combo_listener] Frame 0
class role_corn.Combo_listener extends MovieClip
{
var superCancle, noCancle, role, combo1, beCancled, notTOcancle, combo2;
function Combo_listener () {
super();
}
function check_combo(status_1, skill) {
superCancle = false;
if (noCancle[status_1] == skill) {
return(undefined);
}
if (check_combo1(status_1, skill)) {
} else if (role.opp.inCount == true) {
} else if (check_combo2(status_1, skill)) {
} else {
check_combo3(status_1, skill);
}
}
function check_combo1(status_1, skill) {
var _local2;
if (skill == "punch") {
_local2 = combo1[status_1].p;
}
if (skill == "punch_l") {
_local2 = combo1[status_1].p_l;
} else if (skill == "kick") {
_local2 = combo1[status_1].k;
} else if (skill == "kick_l") {
_local2 = combo1[status_1].k_l;
}
if (_local2 != undefined) {
start_combo(status_1, _local2);
return(true);
}
}
function check_combo2(status_1, skill) {
if (beCancled[status_1] != 1) {
return(false);
}
if (notTOcancle[skill] == 1) {
return(false);
}
start_combo(status_1, skill);
return(true);
}
function check_combo3(status_1, skill) {
if ((role.superCancle() && (notTOcancle[skill] != 1)) && (status_1 != skill)) {
superCancle = true;
start_combo(status_1, skill);
}
}
function start_combo(status_1, skill) {
var role_mc = role;
var now_mc = role[status_1];
var start_frame = combo2[status_1];
var SC = superCancle;
if (now_mc._currentframe < (start_frame - 5)) {
return(undefined);
}
now_mc.onEnterFrame = function () {
trace((now_mc._currentframe + " ") + start_frame);
if (role_mc.inFreeze) {
return(undefined);
}
if (this._currentframe >= start_frame) {
if (SC) {
role_mc.SC_control();
}
role_mc.toSkill(skill, true);
delete this.onEnterFrame;
}
};
}
}
Symbol 1080 MovieClip [__Packages.Ryo_Combo] Frame 0
class Ryo_Combo extends role_corn.Combo_listener
{
var role, combo1, combo2, skill_over, beCancled, notTOcancle, noCancle;
function Ryo_Combo (r) {
super();
role = r;
init();
}
function init() {
combo1 = new Object();
combo2 = new Object();
combo2.punch = 6;
combo2.kick = 9;
combo2.squatPunch = 7;
combo2.sk1 = 15;
combo2.sk2 = 18;
combo2.sk3 = 5;
combo2.sk10 = 8;
combo2.sk14 = 8;
combo2.sk12 = 10;
combo2.sk13 = 8;
combo2.heavyHit = 10;
combo2.pitch = 3;
skill_over = new Object();
skill_over.punch = 10;
skill_over.punch2 = 6;
skill_over.kick = 10;
skill_over.kick2 = 13;
skill_over.squatKick = 10;
skill_over.squatPunch = 11;
skill_over.heavyHit = 13;
skill_over.sk2 = 33;
skill_over.sk3 = 14;
beCancled = new Object();
beCancled.punch = 1;
beCancled.punch2 = 1;
beCancled.kick = 1;
beCancled.kick1 = 1;
beCancled.kick2 = 1;
beCancled.punch_l = 1;
beCancled.kick_l = 1;
beCancled.squatPunch = 1;
beCancled.squatPunch_l = 1;
beCancled.squatKick_l = 1;
notTOcancle = new Object();
noCancle = new Object();
}
}
Symbol 1081 MovieClip [__Packages.Ryo_AI] Frame 0
class Ryo_AI extends Ryo_role
{
var toSkill_temp, toStatus_temp, toStatus, noAct, dis_array, skill_dis, dis, opp, _x, actionType, cpu_control2, combo_rate, combo_rate0, attack_rate, attack_rate0, hold_rate, hold_rate0, attack_s, wait_frame, wait_frame0, special_rate, special_rate0, super_rate, super_rate0, life, life_max, dir, onEgde, status_2, status_3, status_4, status_1, inBurst, redBlood, burst, dis_num, skill_list, delay_frames, superPoint, burst_mode, powerObj, powerControl, inCount, skillObj, comboClass, skill_now, combo_auto, onHit, skill_next, combo_burst, delay, onEnterFrame, control, gotoAndStop, statusClear, checkSide, delaySkill, skill_delay, superCheck, superSkill, powerDec, Vx, Vwalk, Vdash, start_move_Y1, Vy, Vjump_y, Vjump_x, jumpSkill, land_Y, _y, holdFreeze;
function Ryo_AI () {
super();
toSkill_temp = toSkill;
toStatus_temp = toStatus;
toSkill = noAct;
dis_array = new Array();
skill_dis = new Array();
}
function getDis() {
dis = Math.abs(_x - opp._x);
return(dis);
}
function initStrage() {
initPlus();
actionType = "normal";
cpu_control2 = cpu_normal;
}
function initPlus() {
combo_rate = combo_rate0;
attack_rate = attack_rate0;
hold_rate = hold_rate0;
attack_s = attack_s0;
wait_frame = wait_frame0;
special_rate = special_rate0;
super_rate = super_rate0;
}
function cpu_control() {
if (checkDefend()) {
return(true);
}
if (checkAction()) {
return(true);
}
cpu_control2();
}
function cpu_normal() {
initPlus();
if (checkAttack()) {
return(true);
}
checkWait();
}
function cpu_defend() {
initPlus();
hold_rate = hold_rate * 1.3;
attack_s = attack_s * 1.3;
var _local2 = action_select("action_1", "defend");
toSkill(_local2);
}
function cpu_attack() {
initPlus();
attack_rate = attack_rate * 1.3;
attack_s = attack_s * 1.3;
combo_rate = combo_rate * 1.3;
if (checkAttack()) {
return(true);
}
checkWait();
}
function cpu_wander() {
initPlus();
var _local2 = action_select("action_1", "wander");
toSkill(_local2);
}
function checkStrage() {
var _local2 = _level0.life_power_mc.time_mc.time_txt.text;
if (((_local2 > 0) && (_local2 < 15)) && (life < opp.life)) {
actionType = "attack";
cpu_control2 = cpu_attack;
} else if (((_local2 > 0) && (_local2 < 15)) && (life > opp.life)) {
actionType = "defend";
cpu_control2 = cpu_defend;
} else if (life < (life_max / 4)) {
actionType = "defend";
cpu_control2 = cpu_defend;
} else if ((opp.life / life) > 1.3) {
actionType = "attack";
cpu_control2 = cpu_attack;
} else if ((life / opp.life) > 1.3) {
actionType = "wander";
cpu_control2 = cpu_wander;
}
}
function checkAction() {
trace("opp.status_3:" + opp.status_3);
var _local2;
if (opp.status_3 == "down") {
_local2 = action_select("action_1", "down");
toSkill(_local2);
trace("checkAction_Down:" + _local2);
return(true);
}
if (opp.dir == dir) {
if (checkAttack()) {
return(true);
}
} else {
if (onEgde) {
var _local3 = action_select("action_1", "onEgde");
toSkill(_local3);
trace("checkAction_onEgde:" + _local2);
return(true);
}
if (opp.onEgde && (getDis() < 150)) {
_local2 = action_select("action_1", "down");
toSkill(_local2);
trace("checkAction_opp.onEgde:" + _local2);
return(true);
}
}
}
function checkDefend() {
var _local2 = int(Math.random() * 100);
if (_local2 > hold_rate) {
return(false);
}
if (status_2 != "land") {
return(undefined);
}
if (status_3 != "normal") {
return(undefined);
}
if (status_4 != "normal") {
return(undefined);
}
if ((dir != opp.dir) && (!opp.hit_over())) {
trace("defend_start");
defend_start();
return(true);
}
}
function checkAttack() {
var _local2 = int(Math.random() * 100);
if (_local2 > attack_rate) {
return(false);
}
attack_start();
trace("attack_start");
return(true);
}
function checkWait() {
var wait_f = (int(Math.random() * wait_frame) + 10);
var owner = this;
this[status_1].onEnterFrame = function () {
wait_f--;
if (wait_f < 0) {
owner.attack_start();
delete this.onEnterFrame;
}
};
}
function checkBurst() {
if (inBurst) {
return(undefined);
}
var _local2 = int(Math.random() * 100);
if (redBlood) {
_local2 = 0;
}
if (_local2 > attack_s) {
return(false);
}
if (burst()) {
return(true);
}
}
function skill_select() {
getDis();
var _local2 = 0;
while (_local2 < dis_num) {
if (dis < dis_array[_local2]) {
skill_list = skill_dis[_local2];
break;
}
_local2++;
}
var _local3 = skill_list.length;
var _local4 = int(Math.random() * _local3);
var _local5 = skill_list[_local4];
return(_local5);
}
function action_select(object, member) {
var _local4;
var _local7;
var _local3 = this[object][member];
var _local6 = delay_frames[member];
var _local5 = _local3.length;
getDis();
var _local2 = 0;
while (_local2 < _local5) {
if (dis < _local6[_local2]) {
_local4 = _local3[_local2];
break;
}
_local2++;
}
var _local9 = _local4.length;
var _local8 = int(Math.random() * _local9);
_local7 = _local4[_local8];
return(_local7);
}
function super_select() {
var _local3 = int(Math.random() * 100);
if (_local3 > super_rate) {
return(false);
}
var _local2 = action_select("action_1", "super");
if ((superPoint > 0) && (_local2 != undefined)) {
return(_local2);
}
trace((("super_select111 " + _local2) + " ") + superPoint);
return(false);
}
function special_select() {
var _local3 = int(Math.random() * 100);
if (_local3 > special_rate) {
return(false);
}
var _local2 = action_select("action_1", "special");
trace("special_select222 " + _local2);
return(_local2);
}
function busrt_select() {
if (inBurst != true) {
return(false);
}
var _local3 = int(Math.random() * 100);
if (_local3 > attack_s) {
return(false);
}
if (opp.freeze_frame() < 4) {
return(false);
}
var _local2 = action_select("action_1", "busrt");
if (_local2 == undefined) {
return(false);
}
if (_local2 == "burst_ad") {
} else if ((_local2 == "burst_a") && (burst_mode == "attack")) {
} else if ((_local2 == "burst_d") && (burst_mode == "defend")) {
} else {
return(false);
}
return("burst");
}
function attack_start() {
var _local2;
_local2 = skill_select();
trace("skill_select1111=======" + _local2);
if (_local2 == "special") {
_local2 = special_select();
} else if (_local2 == "super") {
_local2 = super_select();
trace("skill_select2222=======" + _local2);
}
if (_local2 == false) {
attack_start();
trace("skill_select3333=======" + _local2);
return(undefined);
}
toSkill(_local2);
opp.checkDefend();
if (burst_mode == "attack") {
powerObj.inc = 5;
powerObj.action = "inc";
powerControl(powerObj);
} else if (inBurst) {
inCount = false;
}
if (_local2 == undefined) {
trace("\u9519\u8BEF!\u6280\u80FD\u672A\u5B9A\u4E49");
stand();
}
trace("attack_start======================" + _local2);
}
function defend_start() {
var _local2;
getDis();
var _local3 = int(Math.random() * 100);
if (status_1 == "walk_b") {
_local2 = "hold_u";
} else if ((status_1 == "walk_f") || (status_1 == "dash_f")) {
_local2 = action_select("action_1", "defend_f");
} else if (((opp.status_1.indexOf("squat") > -1) && (_local3 < hold_rate)) && (dis < 200)) {
_local2 = "hold_d";
} else if (((opp.status_2 == "air") && (_local3 < attack_s)) && (dis < 200)) {
_local2 = skillObj.toAir;
} else if (_local3 < attack_s) {
_local2 = action_select("action_1", "defendAttack");
} else {
_local2 = action_select("action_1", "defend_h");
}
if (_local2 == undefined) {
_local2 = "hold_u";
}
_local2 = "hold_u";
toSkill(_local2);
}
function actionDefend(action) {
if (status_2 != "land") {
return(undefined);
}
if (status_3 != "normal") {
return(undefined);
}
if (status_4 != "normal") {
return(undefined);
}
var _local4 = int(Math.random() * 100);
if (_local4 > attack_s) {
return(false);
}
if (action == "roll_f") {
var _local2 = action_select("action_1", "oppRoll");
if (_local2 == undefined) {
return(false);
}
toSkill(_local2);
} else if ((action == "jump") || (action == "jump_f")) {
var _local2 = action_select("action_1", "oppJump");
if (_local2 == undefined) {
return(false);
}
toSkill(_local2);
}
}
function combo_wait(status_1) {
var role_mc = this;
var _local2 = this[status_1];
var start_frame = comboClass.combo2[status_1];
if (start_frame == undefined) {
return(undefined);
}
_local2.onEnterFrame = function () {
if (role_mc.inFreeze) {
return(undefined);
}
if (this._currentframe >= start_frame) {
role_mc.combo_check();
delete this.onEnterFrame;
}
};
}
function combo_check() {
if (combo_auto[skill_now] != undefined) {
combo_select("combo_auto");
combo_start();
return(true);
}
var _local2 = int(Math.random() * 100);
if (onHit != true) {
return(false);
}
if ((opp.status_3 != "hurt") && (_local2 > combo_risk)) {
return(false);
}
if (_local2 < combo_rate) {
combo_select("combo_1");
combo_start();
return(true);
}
}
function combo_check2() {
var _local2 = int(Math.random() * 100);
if (opp.status_3 != "hurt") {
return(false);
}
if (_local2 > combo_rate) {
return(false);
}
combo_select("combo_land");
if (skill_next != undefined) {
combo_start();
return(true);
}
}
function combo_select(combo) {
var _local2;
if (inBurst && (burst_mode == "attack")) {
_local2 = combo_burst[skill_now];
}
if (_local2 == undefined) {
_local2 = this[combo][skill_now];
}
var _local4 = _local2.length;
var _local3 = int(Math.random() * _local4);
skill_next = _local2[_local3];
delay = delay_frames[skill_now][_local3];
if (delay == undefined) {
delay = 0;
}
}
function combo_start() {
if (skill_next == undefined) {
return(undefined);
}
if (delay == 0) {
toSkill(skill_next, true);
} else {
combo_delay();
}
}
function combo_delay() {
onEnterFrame = function () {
this.delay--;
if (this.delay == 0) {
delete this.onEnterFrame;
this.toSkill(this.skill_next, true);
}
};
}
function start_control() {
control = true;
initStrage();
toSkill = toSkill_temp;
toStatus = toStatus_temp;
toStatus_switch("stand");
trace("start_control_cpu");
}
function end_control(action) {
if (_level0.timeOver && (status_1 == "stand")) {
stand();
}
if (opp.isKO && (status_1 == "stand")) {
stand();
} else if (this[action] != undefined) {
this[action]();
} else {
status_1 = action;
(gotoAndStop(action));// not popped
}
}
function do_end() {
control = false;
toSkill = noAct;
toStatus = end_control;
}
function toStatus_switch(action) {
if (status_3 == "hurt") {
return(undefined);
}
statusClear();
checkSide();
_level0.hitCounter.stopCount(this);
if (delaySkill != "") {
toSkill(delaySkill);
delaySkill = "";
return(undefined);
}
toStatus(action);
}
function toSkill(action, cancle) {
if (opp.isKO) {
stand();
return(undefined);
}
if (_level0.inFreeze) {
skill_delay(action);
return(undefined);
}
if (action == undefined) {
return(undefined);
}
if (superCheck(action) == false) {
action = skill_select();
trace("\u65E0\u8D85\u6740");
}
if (superSkill) {
powerDec();
}
skill_now = action;
if (this[action] != undefined) {
this[action]();
} else {
if ((status_2 == "land") && ((status_3 == "normal") || (status_3 == "attack"))) {
} else {
return(undefined);
}
status_1 = action;
(gotoAndStop(action));// not popped
status_3 = "attack";
}
trace("toSkill:" + action);
}
function stand() {
statusClear();
status_1 = "stand";
(gotoAndStop("stand"));// not popped
cpu_control();
}
function squat() {
}
function attack() {
attack_start();
}
function wait() {
statusClear();
status_1 = "stand";
(gotoAndStop("stand"));// not popped
checkWait();
}
function waitStand() {
statusClear();
status_1 = "stand";
(gotoAndStop("stand"));// not popped
var owner = this;
this[status_1].onEnterFrame = function () {
if (owner.opp.status_3 != "down") {
owner.attack_start();
delete this.onEnterFrame;
}
};
}
function walk_f() {
if ((status_2 != "land") || (status_3 != "normal")) {
return(undefined);
}
Vx = dir * Vwalk;
(gotoAndStop("walk_f"));// not popped
status_1 = "walk_f";
move_walkRun();
}
function walk_b() {
if ((status_2 != "land") || (status_3 != "normal")) {
return(undefined);
}
Vx = dir * (-Vwalk);
(gotoAndStop("walk_b"));// not popped
status_1 = "walk_b";
move_walkRun();
}
function dash_f() {
if ((status_2 != "land") || (status_3 != "normal")) {
return(undefined);
}
Vx = dir * Vdash;
(gotoAndStop("dash_f"));// not popped
status_1 = "dash_f";
move_walkRun();
}
function dash_b() {
if ((status_2 != "land") || (status_3 != "normal")) {
return(undefined);
}
(gotoAndStop("dash_b"));// not popped
status_1 = "dash_b";
start_move_Y1(17, -26);
}
function hold() {
hold_u();
}
function hold_u() {
if ((status_2 != "land") || (status_3 != "normal")) {
return(undefined);
}
(gotoAndStop("hold_u"));// not popped
status_1 = "hold_u";
status_4 = "hold";
move_hold();
}
function jump_f() {
if (status_2 != "land") {
return(undefined);
}
status_2 = "air";
(gotoAndStop("jump_f"));// not popped
status_1 = "jump_f";
Vy = Vjump_y;
Vx = Vjump_x;
var owner = this;
this[status_1].onEnterFrame = function () {
owner.air_check();
};
}
function jump_b() {
if (status_2 != "land") {
return(undefined);
}
status_2 = "air";
(gotoAndStop("jump_b"));// not popped
status_1 = "jump_b";
Vy = Vjump_y;
Vx = -Vjump_x;
var owner = this;
this[status_1].onEnterFrame = function () {
owner.air_check();
};
}
function jump() {
if (status_2 != "land") {
return(undefined);
}
status_2 = "air";
(gotoAndStop("jump"));// not popped
status_1 = "jump";
Vy = Vjump_y;
Vx = 0;
var owner = this;
this[status_1].onEnterFrame = function () {
owner.air_check();
};
}
function punch() {
if ((status_2 != "land") || (status_3 != "normal")) {
return(undefined);
}
(gotoAndStop("punch"));// not popped
status_1 = "punch";
status_3 = "attack";
}
function pitch() {
if (super.pitch()) {
} else {
punch();
}
}
function kick2() {
(gotoAndStop("kick2"));// not popped
status_1 = "kick2";
status_3 = "attack";
}
function move_walkRun() {
var Vx = Vx;
var S = 0;
var owner = this;
combo_select("combo_1");
this[status_1].onEnterFrame = function () {
if (owner.inFreeze) {
return(undefined);
}
owner.do_move(Vx);
if (owner.getDis() < owner.delay) {
owner.toSkill(owner.skill_next, true);
}
if (owner.onEgde) {
S++;
if (S > 30) {
owner.stand();
}
}
};
}
function move_squat() {
}
function move_hold() {
var opp = opp;
var _local2 = dir;
var owner = this;
this[status_1].onEnterFrame = function () {
if (opp.hasObj()) {
return(undefined);
}
if (opp.status_3 != "attack") {
owner.stand();
} else if ((owner.holdFreeze == false) && (opp.hit_over())) {
if (owner.checkAttack()) {
} else {
owner.stand();
}
}
};
}
function air_check() {
if (getDis() > 250) {
return(undefined);
}
var _local2;
var _local3;
if (opp.status_2 == "air") {
_local2 = "kick";
if (this[status_1]._currentframe > 7) {
jumpSkill(_local2);
delete this[status_1].onEnterFrame;
}
} else if ((_y > (land_Y - 150)) && (Vy < 0)) {
_local2 = "kick";
jumpSkill(_local2);
delete this[status_1].onEnterFrame;
}
}
function hold_end() {
holdFreeze = false;
}
var attack_s0 = 30;
var combo_risk = 50;
}
Symbol 1082 MovieClip [__Packages.Ryo_AI_Lv4] Frame 0
class Ryo_AI_Lv4 extends Ryo_AI
{
var combo_rate0, attack_rate0, hold_rate0, attack_s0, wait_frame0, combo_risk, special_rate0, super_rate0, dis_array, skill_dis, dis_num, combo_1, combo_land, combo_auto, combo_burst, delay_frames, action_1, skillObj;
function Ryo_AI_Lv4 () {
super();
skill_init();
combo_init();
combo_rate0 = 100;
attack_rate0 = 100;
hold_rate0 = 100;
attack_s0 = 40;
wait_frame0 = 15;
combo_risk = 20;
special_rate0 = 60;
super_rate0 = 100;
}
function skill_init() {
dis_array[0] = 100;
dis_array[1] = 150;
dis_array[2] = 200;
dis_array[3] = 300;
dis_array[4] = 400;
dis_array[5] = 1000;
skill_dis[0] = ["punch", "punch2", "kick"];
skill_dis[1] = ["punch2", "kick2", "sk1"];
skill_dis[2] = ["kick2", "special", "sk1"];
skill_dis[3] = ["kick2", "jump_f", "special", "super", "sk1"];
skill_dis[4] = ["walk_f", "dash_f", "special", "super"];
skill_dis[5] = ["walk_f", "dash_f", "special", "super"];
dis_num = dis_array.length;
}
function combo_init() {
combo_1 = new Object();
combo_land = new Object();
combo_auto = new Object();
combo_burst = new Object();
delay_frames = new Object();
combo_1.punch = [];
combo_1.punch2 = [];
combo_1.kick = [];
combo_1.kick2 = [];
combo_land.jump_f = ["punch", "kick"];
combo_1.dash_f = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.dash_f = [100, 120, 150, 230, 300];
combo_1.walk_f = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.walk_f = [100, 120, 150, 230, 300];
combo_1.walk_b = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.walk_b = [100, 120, 150, 230, 300];
action_1 = new Object();
action_1.down = [["walk_b", "jump_b"], ["walk_b"], ["walk_f"]];
delay_frames.down = [200, 400, 1000];
action_1.oppJump = [[skillObj.toAir]];
delay_frames.oppJump = [200];
action_1.wander = [["walk_b", "jump_b"], ["wait", "jump_b", "walk_f"], ["walk_f", "dash_f", "wait"]];
delay_frames.wander = [150, 300, 1000];
action_1.defend = [["walk_b"], ["walk_b", "jump_b"], ["walk_b"], ["walk_b", "wait"]];
delay_frames.defend = [130, 200, 400, 1000];
action_1.defendAttack = [[skillObj.toAir]];
delay_frames.defendAttack = [150];
action_1.defend_f = [["hold_u"], ["hold_u"]];
delay_frames.defend_f = [150, 1000];
action_1.defend_h = [["hold_u"], ["hold_u"], ["hold_u"]];
delay_frames.defend_h = [130, 200, 1000];
action_1.onEgde = [["attack", "jump_f"], ["jump_f", "attack", "attack"], ["attack"], ["walk_f", "dash_f"]];
delay_frames.onEgde = [150, 250, 400, 1000];
action_1.super = [["sk_soldier1", "sk_soldier2", "sk_tank"]];
delay_frames.super = [600];
action_1.special = [["sk_gun"]];
delay_frames.special = [1000];
}
}
Symbol 1083 MovieClip [__Packages.Ryo_AI_Lv2] Frame 0
class Ryo_AI_Lv2 extends Ryo_AI
{
var combo_rate0, attack_rate0, hold_rate0, attack_s0, wait_frame0, combo_risk, special_rate0, super_rate0, dis_array, skill_dis, dis_num, combo_1, combo_land, combo_auto, combo_burst, delay_frames, action_1, skillObj;
function Ryo_AI_Lv2 () {
super();
skill_init();
combo_init();
combo_rate0 = 70;
attack_rate0 = 70;
hold_rate0 = 70;
attack_s0 = 40;
wait_frame0 = 15;
combo_risk = 20;
special_rate0 = 60;
super_rate0 = 70;
}
function skill_init() {
dis_array[0] = 100;
dis_array[1] = 150;
dis_array[2] = 200;
dis_array[3] = 300;
dis_array[4] = 400;
dis_array[5] = 1000;
skill_dis[0] = ["punch", "punch2", "kick"];
skill_dis[1] = ["punch2", "kick2", "sk1"];
skill_dis[2] = ["kick2", "special", "sk1"];
skill_dis[3] = ["kick2", "jump_f", "special", "super", "sk1"];
skill_dis[4] = ["walk_f", "dash_f", "special", "super"];
skill_dis[5] = ["walk_f", "dash_f", "special", "super"];
dis_num = dis_array.length;
}
function combo_init() {
combo_1 = new Object();
combo_land = new Object();
combo_auto = new Object();
combo_burst = new Object();
delay_frames = new Object();
combo_1.punch = [];
combo_1.punch2 = [];
combo_1.kick = [];
combo_1.kick2 = [];
combo_land.jump_f = ["punch", "kick"];
combo_1.dash_f = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.dash_f = [100, 120, 150, 230, 300];
combo_1.walk_f = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.walk_f = [100, 120, 150, 230, 300];
combo_1.walk_b = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.walk_b = [100, 120, 150, 230, 300];
action_1 = new Object();
action_1.down = [["walk_b", "jump_b"], ["walk_b"], ["walk_f"]];
delay_frames.down = [200, 400, 1000];
action_1.oppJump = [[skillObj.toAir]];
delay_frames.oppJump = [200];
action_1.wander = [["walk_b", "jump_b"], ["wait", "jump_b", "walk_f"], ["walk_f", "dash_f", "wait"]];
delay_frames.wander = [150, 300, 1000];
action_1.defend = [["walk_b"], ["walk_b", "jump_b"], ["walk_b"], ["walk_b", "wait"]];
delay_frames.defend = [130, 200, 400, 1000];
action_1.defendAttack = [[skillObj.toAir]];
delay_frames.defendAttack = [150];
action_1.defend_f = [["hold_u"], ["hold_u"]];
delay_frames.defend_f = [150, 1000];
action_1.defend_h = [["hold_u"], ["hold_u"], ["hold_u"]];
delay_frames.defend_h = [130, 200, 1000];
action_1.onEgde = [["attack", "jump_f"], ["jump_f", "attack", "attack"], ["attack"], ["walk_f", "dash_f"]];
delay_frames.onEgde = [150, 250, 400, 1000];
action_1.super = [["sk_soldier1", "sk_soldier2", "sk_tank"]];
delay_frames.super = [600];
action_1.special = [["sk_gun"]];
delay_frames.special = [1000];
}
}
Symbol 1084 MovieClip [__Packages.Ryo_AI_Lv1] Frame 0
class Ryo_AI_Lv1 extends Ryo_AI
{
var combo_rate0, attack_rate0, hold_rate0, attack_s0, wait_frame0, combo_risk, special_rate0, super_rate0, dis_array, skill_dis, dis_num, combo_1, combo_land, combo_auto, combo_burst, delay_frames, action_1, skillObj;
function Ryo_AI_Lv1 () {
super();
skill_init();
combo_init();
combo_rate0 = 40;
attack_rate0 = 30;
hold_rate0 = 30;
attack_s0 = 20;
wait_frame0 = 20;
combo_risk = 20;
special_rate0 = 60;
super_rate0 = 50;
}
function skill_init() {
dis_array[0] = 100;
dis_array[1] = 150;
dis_array[2] = 200;
dis_array[3] = 300;
dis_array[4] = 400;
dis_array[5] = 1000;
skill_dis[0] = ["punch", "punch2", "kick"];
skill_dis[1] = ["punch2", "kick2", "sk1"];
skill_dis[2] = ["kick2", "special", "sk1"];
skill_dis[3] = ["kick2", "jump_f", "special", "super", "sk1"];
skill_dis[4] = ["walk_f", "dash_f", "special", "super"];
skill_dis[5] = ["walk_f", "dash_f", "special", "super"];
dis_num = dis_array.length;
}
function combo_init() {
combo_1 = new Object();
combo_land = new Object();
combo_auto = new Object();
combo_burst = new Object();
delay_frames = new Object();
combo_1.punch = [];
combo_1.punch2 = [];
combo_1.kick = [];
combo_1.kick2 = [];
combo_land.jump_f = ["punch", "kick"];
combo_1.dash_f = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.dash_f = [100, 120, 150, 230, 300];
combo_1.walk_f = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.walk_f = [100, 120, 150, 230, 300];
combo_1.walk_b = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.walk_b = [100, 120, 150, 230, 300];
action_1 = new Object();
action_1.down = [["walk_b", "jump_b"], ["walk_b"], ["walk_f"]];
delay_frames.down = [200, 400, 1000];
action_1.oppJump = [[skillObj.toAir]];
delay_frames.oppJump = [200];
action_1.wander = [["walk_b", "jump_b"], ["wait", "jump_b", "walk_f"], ["walk_f", "dash_f", "wait"]];
delay_frames.wander = [150, 300, 1000];
action_1.defend = [["walk_b"], ["walk_b", "jump_b"], ["walk_b"], ["walk_b", "wait"]];
delay_frames.defend = [130, 200, 400, 1000];
action_1.defendAttack = [[skillObj.toAir]];
delay_frames.defendAttack = [150];
action_1.defend_f = [["hold_u"], ["hold_u"]];
delay_frames.defend_f = [150, 1000];
action_1.defend_h = [["hold_u"], ["hold_u"], ["hold_u"]];
delay_frames.defend_h = [130, 200, 1000];
action_1.onEgde = [["attack", "jump_f"], ["jump_f", "attack", "attack"], ["attack"], ["walk_f", "dash_f"]];
delay_frames.onEgde = [150, 250, 400, 1000];
action_1.super = [["sk_soldier1", "sk_soldier2", "sk_tank"]];
delay_frames.super = [600];
action_1.special = [["sk_gun"]];
delay_frames.special = [1000];
}
}
Symbol 1085 MovieClip [__Packages.Ryo_Player] Frame 0
class Ryo_Player extends Ryo_role
{
var toSkill_temp, toSkill, toAction_temp, toAction, toStatus_temp, toStatus, noAct, key_array, skill_array, skill_mapping, attachMovie, getNextHighestDepth, newKeyControl, u, d, f, b, p, k, p_l, k_l, s, s2, control, toStatus_switch, status_1, stand, opp, gotoAndStop;
function Ryo_Player () {
super();
toSkill_temp = toSkill;
toAction_temp = toAction;
toStatus_temp = toStatus;
toSkill = noAct;
toAction = noAct;
}
function init(key) {
key_array = key;
setKey();
skill_array = new Array();
skill_mapping = new Array();
Object.registerClass("KeyControl", role_corn.KeyControl);
attachMovie("KeyControl", "newKeyControl", getNextHighestDepth());
newKeyControl.init(key_array, skill_array, skill_mapping, this);
}
function setKey() {
u = key_array[0].u;
d = key_array[0].d;
f = key_array[0].f;
b = key_array[0].b;
p = key_array[0].p;
k = key_array[0].k;
p_l = key_array[0].p_l;
k_l = key_array[0].k_l;
s = key_array[0].s;
s2 = key_array[0].s2;
}
function start_control() {
control = true;
toSkill = toSkill_temp;
toAction = toAction_temp;
toStatus = toStatus_temp;
toStatus_switch("stand");
}
function end_control(action) {
trace("end_control");
if (_level0.timeOver && (status_1 == "stand")) {
stand();
}
if (opp.isKO && (status_1 == "stand")) {
stand();
} else if (this[action] != undefined) {
this[action]();
} else {
status_1 = action;
(gotoAndStop(action));// not popped
}
}
function do_end() {
trace("do_end");
control = false;
toSkill = noAct;
toAction = noAct;
toStatus = end_control;
}
}
Symbol 1086 MovieClip [__Packages.role_corn.KeyControl] Frame 0
class role_corn.KeyControl extends MovieClip
{
var role, key_array, skill_array, skill_mapping, input_array, u, d, f, b, p, k, p_l, k_l, s, s2, isKeyDown, downKey, time1, time2, upKey, Interval_sendKey;
function KeyControl () {
super();
}
function init(key, skill1, skill2, char) {
role = char;
key_array = key;
skill_array = skill1;
skill_mapping = skill2;
setKey();
input_array = new Array();
Key.addListener(this);
}
function setKey() {
u = key_array[0].u;
d = key_array[0].d;
f = key_array[0].f;
b = key_array[0].b;
p = key_array[0].p;
k = key_array[0].k;
p_l = key_array[0].p_l;
k_l = key_array[0].k_l;
s = key_array[0].s;
s2 = key_array[0].s2;
}
function onKeyDown() {
if (isKeyDown && (downKey == Key.getCode())) {
isKeyDown = true;
return(false);
}
isKeyDown = true;
time1 = getTimer();
downKey = Key.getCode();
if ((((((downKey == p) || (downKey == k)) || (downKey == s)) || (downKey == s2)) || (downKey == p_l)) || (downKey == k_l)) {
keyChain_act(downKey);
} else if ((((downKey == u) || (downKey == d)) || (downKey == f)) || (downKey == b)) {
actionCheck(downKey);
keyChain_dir(downKey);
}
}
function onKeyUp() {
isKeyDown = false;
time2 = getTimer();
upKey = Key.getCode();
if ((((upKey == u) || (upKey == d)) || (upKey == f)) || (upKey == b)) {
}
}
function toSkill(skill) {
role.toSkill(skill);
}
function toAction(action) {
role.toAction(action);
}
function keyClear() {
input_array = [];
time_check = 0;
}
function skillCheck(myKey) {
var _local7;
var _local6;
var _local4;
var _local8;
if (input_array.length == 0) {
skill_normal(myKey);
return(undefined);
}
var _local9 = input_array.toString();
_local7 = (_local9 + ",") + myKey;
if (myKey == p_l) {
_local6 = (_local9 + ",") + p;
} else if (myKey == k_l) {
_local6 = (_local9 + ",") + k;
}
_local8 = skill_mapping.length;
var _local2 = 0;
while (_local2 < _local8) {
var _local3 = skill_mapping[_local2];
if (_local3 == undefined) {
} else {
_local4 = skill_array[_local2].toString();
if (_local7.indexOf(_local4) != -1) {
toSkill(_local3);
keyClear();
return(undefined);
}
if ((myKey == p_l) || (myKey == k_l)) {
if (_local6.indexOf(_local4) != -1) {
toSkill(_local3);
keyClear();
return(undefined);
}
}
}
_local2++;
}
skill_normal(myKey);
}
function actionCheck(myKey) {
if (myKey == f) {
if (dir == 1) {
toAction("walk_f");
} else {
toAction("walk_b");
}
} else if (myKey == b) {
if (dir == 1) {
toAction("walk_b");
} else {
toAction("walk_f");
}
} else if (myKey == u) {
toAction("jump");
} else if (myKey == d) {
toAction("squat");
}
}
function skill_normal(myKey) {
switch (myKey) {
case p :
role.to_punch();
break;
case k :
role.to_kick();
break;
case p_l :
role.to_punch_l();
break;
case k_l :
role.to_kick_l();
break;
case p_l + k_l :
role.to_PK_l();
break;
case p + k :
role.to_PK();
break;
case s :
role.to_key_s();
break;
case s2 :
role.to_key_s2();
}
keyClear();
}
function doubleKey(myKey) {
if (myKey == f) {
toAction("dash_f");
} else if (myKey == b) {
toAction("dash_b");
}
}
function keyChain_dir(key) {
var _local2 = key;
if (dir == -1) {
if (_local2 == f) {
_local2 = b;
} else if (_local2 == b) {
_local2 = f;
}
}
if (time_check == 0) {
input_array.push(_local2);
time_check = getTimer();
} else {
var _local4 = time_check;
var _local3 = getTimer();
time_check = _local3;
if (((_local3 - _local4) < time_interval) && ((_local3 - _local4) > time_interval3)) {
input_array.push(_local2);
if (input_array[input_array.length - 2] == _local2) {
doubleKey(_local2);
}
} else {
keyClear();
time_check = 0;
keyChain_dir(key);
}
}
if (input_array.length > 6) {
input_array.shift();
}
}
function keyChain_act(myKey) {
multiKey = multiKey + myKey;
clearInterval(Interval_sendKey);
Interval_sendKey = setInterval(this, "sendKey", multi_interval, multiKey);
}
function sendKey(myKey) {
var _local3 = time_check;
var _local2 = getTimer();
if ((_local2 - _local3) < time_interval) {
skillCheck(myKey);
} else {
skill_normal(myKey);
}
clearInterval(Interval_sendKey);
multiKey = 0;
}
var multiKey = 0;
var time_check = 0;
var time_interval = 200;
var time_interval3 = 10;
var multi_interval = 20;
var dir = 1;
}
Symbol 1087 MovieClip [__Packages.Kim_role] Frame 0
class Kim_role extends role_corn.Role
{
var scale, Vwalk, Vdash, Vjump_x, Vjump_y, Vjump_far, Vg, Va, opp_width2, superList, skillObj, comboClass, input_pre, gotoAndStop, status_1, status_3, status_2, d, f, dir, b, toSkill, jumpSkill;
function Kim_role () {
super();
scale = 100;
Vwalk = 8;
Vdash = 20;
Vjump_x = 10;
Vjump_y = 30;
Vjump_far = 20;
if (Vg == undefined) {
Vg = _level0.g;
}
Va = 3;
opp_width2 = 60;
superList = {sk_tank:1, sk_plane:1, sk_atom:1};
skillObj.busrt_a = "sk12";
skillObj.busrt_d = "sk13";
skillObj.toAir = "sk3";
skillObj.heavyHit = "heavyHit";
skillObj.flyingObj = "sk1";
comboClass = new Kim_Combo(this);
preCheck();
}
function preCheck() {
input_pre = new Object();
input_pre.roll_f = 10;
input_pre.roll_b = 10;
input_pre.land = 0;
input_pre.land2 = 0;
input_pre.kick1 = 9;
}
function kick1() {
(gotoAndStop("kick1"));// not popped
status_1 = "kick1";
status_3 = "attack";
}
function kick2() {
if (status_2 != "land") {
return(undefined);
}
(gotoAndStop("kick2"));// not popped
status_1 = "kick2";
status_3 = "attack";
}
function punch2() {
if (status_2 != "land") {
return(undefined);
}
status_1 = "punch2";
(gotoAndStop(status_1));// not popped
status_3 = "attack";
}
function dash_b() {
}
function to_PK_l() {
}
function to_PK() {
}
function to_key_s() {
}
function to_key_s2() {
var _local2;
if (Key.isDown(d)) {
_local2 = "sk_atom";
} else if (Key.isDown(f) && (dir == 1)) {
_local2 = "sk_plane";
} else if (Key.isDown(b) && (dir == -1)) {
_local2 = "sk_plane";
} else if (Key.isDown(b) && (dir == 1)) {
_local2 = "sk_tank";
} else if (Key.isDown(f) && (dir == -1)) {
_local2 = "sk_tank";
} else {
_local2 = "sk_gun";
}
toSkill(_local2);
}
function to_kick() {
var _local2;
if ((((status_1 == "jump_f") || (status_1 == "jump_far")) || (status_1 == "jump")) || (status_1 == "jump_b")) {
jumpSkill("kick");
return(undefined);
}
if (Key.isDown(d)) {
_local2 = "kick2";
} else if (Key.isDown(f) && (dir == 1)) {
_local2 = "kick2";
} else if (Key.isDown(b) && (dir == -1)) {
_local2 = "kick2";
} else {
_local2 = "kick";
}
toSkill(_local2);
}
function to_kick_l() {
}
function to_punch() {
var _local2;
if ((((status_1 == "jump_f") || (status_1 == "jump_far")) || (status_1 == "jump")) || (status_1 == "jump_b")) {
jumpSkill("kick");
return(undefined);
}
if (Key.isDown(d)) {
_local2 = "sk1";
} else if (Key.isDown(f) && (dir == 1)) {
_local2 = "punch2";
} else if (Key.isDown(b) && (dir == -1)) {
_local2 = "punch2";
} else {
_local2 = "punch";
}
toSkill(_local2);
}
function to_punch_l() {
}
}
Symbol 1088 MovieClip [__Packages.Kim_Combo] Frame 0
class Kim_Combo extends role_corn.Combo_listener
{
var role, combo1, combo2, skill_over, beCancled, notTOcancle, noCancle;
function Kim_Combo (r) {
super();
role = r;
init();
}
function init() {
combo1 = new Object();
combo2 = new Object();
combo2.punch = 6;
combo2.kick = 9;
combo2.squatPunch = 7;
combo2.sk1 = 15;
combo2.sk2 = 18;
combo2.sk3 = 5;
combo2.sk10 = 8;
combo2.sk14 = 8;
combo2.sk12 = 10;
combo2.sk13 = 8;
combo2.heavyHit = 10;
combo2.pitch = 3;
skill_over = new Object();
skill_over.punch = 10;
skill_over.punch2 = 6;
skill_over.kick = 10;
skill_over.kick2 = 13;
skill_over.squatKick = 10;
skill_over.squatPunch = 11;
skill_over.heavyHit = 13;
skill_over.sk2 = 33;
skill_over.sk3 = 14;
beCancled = new Object();
beCancled.punch = 1;
beCancled.punch2 = 1;
beCancled.kick = 1;
beCancled.kick1 = 1;
beCancled.kick2 = 1;
beCancled.punch_l = 1;
beCancled.kick_l = 1;
beCancled.squatPunch = 1;
beCancled.squatPunch_l = 1;
beCancled.squatKick_l = 1;
notTOcancle = new Object();
noCancle = new Object();
}
}
Symbol 1089 MovieClip [__Packages.Kim_Player] Frame 0
class Kim_Player extends Kim_role
{
var toSkill_temp, toSkill, toAction_temp, toAction, toStatus_temp, toStatus, noAct, key_array, skill_array, skill_mapping, attachMovie, getNextHighestDepth, newKeyControl, u, d, f, b, p, k, p_l, k_l, s, s2, control, toStatus_switch, status_1, stand, opp, gotoAndStop;
function Kim_Player () {
super();
toSkill_temp = toSkill;
toAction_temp = toAction;
toStatus_temp = toStatus;
toSkill = noAct;
toAction = noAct;
}
function init(key) {
key_array = key;
setKey();
skill_array = new Array();
skill_mapping = new Array();
Object.registerClass("KeyControl", role_corn.KeyControl);
attachMovie("KeyControl", "newKeyControl", getNextHighestDepth());
newKeyControl.init(key_array, skill_array, skill_mapping, this);
}
function setKey() {
u = key_array[0].u;
d = key_array[0].d;
f = key_array[0].f;
b = key_array[0].b;
p = key_array[0].p;
k = key_array[0].k;
p_l = key_array[0].p_l;
k_l = key_array[0].k_l;
s = key_array[0].s;
s2 = key_array[0].s2;
}
function start_control() {
control = true;
toSkill = toSkill_temp;
toAction = toAction_temp;
toStatus = toStatus_temp;
toStatus_switch("stand");
}
function end_control(action) {
trace("end_control");
if (_level0.timeOver && (status_1 == "stand")) {
stand();
}
if (opp.isKO && (status_1 == "stand")) {
stand();
} else if (this[action] != undefined) {
this[action]();
} else {
status_1 = action;
(gotoAndStop(action));// not popped
}
}
function do_end() {
trace("do_end");
control = false;
toSkill = noAct;
toAction = noAct;
toStatus = end_control;
}
}
Symbol 1090 MovieClip [__Packages.Kim_AI] Frame 0
class Kim_AI extends Kim_role
{
var toSkill_temp, toStatus_temp, toStatus, noAct, dis_array, skill_dis, dis, opp, _x, actionType, cpu_control2, combo_rate, combo_rate0, attack_rate, attack_rate0, hold_rate, hold_rate0, attack_s, wait_frame, wait_frame0, special_rate, special_rate0, super_rate, super_rate0, life, life_max, dir, onEgde, status_2, status_3, status_4, status_1, inBurst, redBlood, burst, dis_num, skill_list, delay_frames, superPoint, burst_mode, powerObj, powerControl, inCount, skillObj, comboClass, skill_now, combo_auto, onHit, skill_next, combo_burst, delay, onEnterFrame, control, gotoAndStop, statusClear, checkSide, delaySkill, skill_delay, superCheck, superSkill, powerDec, Vx, Vwalk, Vdash, start_move_Y1, Vy, Vjump_y, Vjump_x, jumpSkill, land_Y, _y, holdFreeze;
function Kim_AI () {
super();
toSkill_temp = toSkill;
toStatus_temp = toStatus;
toSkill = noAct;
dis_array = new Array();
skill_dis = new Array();
}
function getDis() {
dis = Math.abs(_x - opp._x);
return(dis);
}
function initStrage() {
initPlus();
actionType = "normal";
cpu_control2 = cpu_normal;
}
function initPlus() {
combo_rate = combo_rate0;
attack_rate = attack_rate0;
hold_rate = hold_rate0;
attack_s = attack_s0;
wait_frame = wait_frame0;
special_rate = special_rate0;
super_rate = super_rate0;
}
function cpu_control() {
if (checkDefend()) {
return(true);
}
if (checkAction()) {
return(true);
}
cpu_control2();
}
function cpu_normal() {
initPlus();
if (checkAttack()) {
return(true);
}
checkWait();
}
function cpu_defend() {
initPlus();
hold_rate = hold_rate * 1.3;
attack_s = attack_s * 1.3;
var _local2 = action_select("action_1", "defend");
toSkill(_local2);
}
function cpu_attack() {
initPlus();
attack_rate = attack_rate * 1.3;
attack_s = attack_s * 1.3;
combo_rate = combo_rate * 1.3;
if (checkAttack()) {
return(true);
}
checkWait();
}
function cpu_wander() {
initPlus();
var _local2 = action_select("action_1", "wander");
toSkill(_local2);
}
function checkStrage() {
var _local2 = _level0.life_power_mc.time_mc.time_txt.text;
if (((_local2 > 0) && (_local2 < 15)) && (life < opp.life)) {
actionType = "attack";
cpu_control2 = cpu_attack;
} else if (((_local2 > 0) && (_local2 < 15)) && (life > opp.life)) {
actionType = "defend";
cpu_control2 = cpu_defend;
} else if (life < (life_max / 4)) {
actionType = "defend";
cpu_control2 = cpu_defend;
} else if ((opp.life / life) > 1.3) {
actionType = "attack";
cpu_control2 = cpu_attack;
} else if ((life / opp.life) > 1.3) {
actionType = "wander";
cpu_control2 = cpu_wander;
}
}
function checkAction() {
trace("opp.status_3:" + opp.status_3);
var _local2;
if (opp.status_3 == "down") {
_local2 = action_select("action_1", "down");
toSkill(_local2);
trace("checkAction_Down:" + _local2);
return(true);
}
if (opp.dir == dir) {
if (checkAttack()) {
return(true);
}
} else {
if (onEgde) {
var _local3 = action_select("action_1", "onEgde");
toSkill(_local3);
trace("checkAction_onEgde:" + _local2);
return(true);
}
if (opp.onEgde && (getDis() < 150)) {
_local2 = action_select("action_1", "down");
toSkill(_local2);
trace("checkAction_opp.onEgde:" + _local2);
return(true);
}
}
}
function checkDefend() {
var _local2 = int(Math.random() * 100);
if (_local2 > hold_rate) {
return(false);
}
if (status_2 != "land") {
return(undefined);
}
if (status_3 != "normal") {
return(undefined);
}
if (status_4 != "normal") {
return(undefined);
}
if ((dir != opp.dir) && (!opp.hit_over())) {
trace("defend_start");
defend_start();
return(true);
}
}
function checkAttack() {
var _local2 = int(Math.random() * 100);
if (_local2 > attack_rate) {
return(false);
}
attack_start();
trace("attack_start");
return(true);
}
function checkWait() {
var wait_f = (int(Math.random() * wait_frame) + 10);
var owner = this;
this[status_1].onEnterFrame = function () {
wait_f--;
if (wait_f < 0) {
owner.attack_start();
delete this.onEnterFrame;
}
};
}
function checkBurst() {
if (inBurst) {
return(undefined);
}
var _local2 = int(Math.random() * 100);
if (redBlood) {
_local2 = 0;
}
if (_local2 > attack_s) {
return(false);
}
if (burst()) {
return(true);
}
}
function skill_select() {
getDis();
var _local2 = 0;
while (_local2 < dis_num) {
if (dis < dis_array[_local2]) {
skill_list = skill_dis[_local2];
break;
}
_local2++;
}
var _local3 = skill_list.length;
var _local4 = int(Math.random() * _local3);
var _local5 = skill_list[_local4];
return(_local5);
}
function action_select(object, member) {
var _local4;
var _local7;
var _local3 = this[object][member];
var _local6 = delay_frames[member];
var _local5 = _local3.length;
getDis();
var _local2 = 0;
while (_local2 < _local5) {
if (dis < _local6[_local2]) {
_local4 = _local3[_local2];
break;
}
_local2++;
}
var _local9 = _local4.length;
var _local8 = int(Math.random() * _local9);
_local7 = _local4[_local8];
return(_local7);
}
function super_select() {
var _local3 = int(Math.random() * 100);
if (_local3 > super_rate) {
return(false);
}
var _local2 = action_select("action_1", "super");
if ((superPoint > 0) && (_local2 != undefined)) {
return(_local2);
}
trace((("super_select111 " + _local2) + " ") + superPoint);
return(false);
}
function special_select() {
var _local3 = int(Math.random() * 100);
if (_local3 > special_rate) {
return(false);
}
var _local2 = action_select("action_1", "special");
trace("special_select222 " + _local2);
return(_local2);
}
function busrt_select() {
if (inBurst != true) {
return(false);
}
var _local3 = int(Math.random() * 100);
if (_local3 > attack_s) {
return(false);
}
if (opp.freeze_frame() < 4) {
return(false);
}
var _local2 = action_select("action_1", "busrt");
if (_local2 == undefined) {
return(false);
}
if (_local2 == "burst_ad") {
} else if ((_local2 == "burst_a") && (burst_mode == "attack")) {
} else if ((_local2 == "burst_d") && (burst_mode == "defend")) {
} else {
return(false);
}
return("burst");
}
function attack_start() {
var _local2;
_local2 = skill_select();
trace("skill_select1111=======" + _local2);
if (_local2 == "special") {
_local2 = special_select();
} else if (_local2 == "super") {
_local2 = super_select();
trace("skill_select2222=======" + _local2);
}
if (_local2 == false) {
attack_start();
trace("skill_select3333=======" + _local2);
return(undefined);
}
toSkill(_local2);
opp.checkDefend();
if (burst_mode == "attack") {
powerObj.inc = 5;
powerObj.action = "inc";
powerControl(powerObj);
} else if (inBurst) {
inCount = false;
}
if (_local2 == undefined) {
trace("\u9519\u8BEF!\u6280\u80FD\u672A\u5B9A\u4E49");
stand();
}
trace("attack_start======================" + _local2);
}
function defend_start() {
var _local2;
getDis();
var _local3 = int(Math.random() * 100);
if (status_1 == "walk_b") {
_local2 = "hold_u";
} else if ((status_1 == "walk_f") || (status_1 == "dash_f")) {
_local2 = action_select("action_1", "defend_f");
} else if (((opp.status_1.indexOf("squat") > -1) && (_local3 < hold_rate)) && (dis < 200)) {
_local2 = "hold_d";
} else if (((opp.status_2 == "air") && (_local3 < attack_s)) && (dis < 200)) {
_local2 = skillObj.toAir;
} else if (_local3 < attack_s) {
_local2 = action_select("action_1", "defendAttack");
} else {
_local2 = action_select("action_1", "defend_h");
}
if (_local2 == undefined) {
_local2 = "hold_u";
}
_local2 = "hold_u";
toSkill(_local2);
}
function actionDefend(action) {
if (status_2 != "land") {
return(undefined);
}
if (status_3 != "normal") {
return(undefined);
}
if (status_4 != "normal") {
return(undefined);
}
var _local4 = int(Math.random() * 100);
if (_local4 > attack_s) {
return(false);
}
if (action == "roll_f") {
var _local2 = action_select("action_1", "oppRoll");
if (_local2 == undefined) {
return(false);
}
toSkill(_local2);
} else if ((action == "jump") || (action == "jump_f")) {
var _local2 = action_select("action_1", "oppJump");
if (_local2 == undefined) {
return(false);
}
toSkill(_local2);
}
}
function combo_wait(status_1) {
var role_mc = this;
var _local2 = this[status_1];
var start_frame = comboClass.combo2[status_1];
if (start_frame == undefined) {
return(undefined);
}
_local2.onEnterFrame = function () {
if (role_mc.inFreeze) {
return(undefined);
}
if (this._currentframe >= start_frame) {
role_mc.combo_check();
delete this.onEnterFrame;
}
};
}
function combo_check() {
if (combo_auto[skill_now] != undefined) {
combo_select("combo_auto");
combo_start();
return(true);
}
var _local2 = int(Math.random() * 100);
if (onHit != true) {
return(false);
}
if ((opp.status_3 != "hurt") && (_local2 > combo_risk)) {
return(false);
}
if (_local2 < combo_rate) {
combo_select("combo_1");
combo_start();
return(true);
}
}
function combo_check2() {
var _local2 = int(Math.random() * 100);
if (opp.status_3 != "hurt") {
return(false);
}
if (_local2 > combo_rate) {
return(false);
}
combo_select("combo_land");
if (skill_next != undefined) {
combo_start();
return(true);
}
}
function combo_select(combo) {
var _local2;
if (inBurst && (burst_mode == "attack")) {
_local2 = combo_burst[skill_now];
}
if (_local2 == undefined) {
_local2 = this[combo][skill_now];
}
var _local4 = _local2.length;
var _local3 = int(Math.random() * _local4);
skill_next = _local2[_local3];
delay = delay_frames[skill_now][_local3];
if (delay == undefined) {
delay = 0;
}
}
function combo_start() {
if (skill_next == undefined) {
return(undefined);
}
if (delay == 0) {
toSkill(skill_next, true);
} else {
combo_delay();
}
}
function combo_delay() {
onEnterFrame = function () {
this.delay--;
if (this.delay == 0) {
delete this.onEnterFrame;
this.toSkill(this.skill_next, true);
}
};
}
function start_control() {
control = true;
initStrage();
toSkill = toSkill_temp;
toStatus = toStatus_temp;
toStatus_switch("stand");
trace("start_control_cpu");
}
function end_control(action) {
if (_level0.timeOver && (status_1 == "stand")) {
stand();
}
if (opp.isKO && (status_1 == "stand")) {
stand();
} else if (this[action] != undefined) {
this[action]();
} else {
status_1 = action;
(gotoAndStop(action));// not popped
}
}
function do_end() {
control = false;
toSkill = noAct;
toStatus = end_control;
}
function toStatus_switch(action) {
if (status_3 == "hurt") {
return(undefined);
}
statusClear();
checkSide();
_level0.hitCounter.stopCount(this);
if (delaySkill != "") {
toSkill(delaySkill);
delaySkill = "";
return(undefined);
}
toStatus(action);
}
function toSkill(action, cancle) {
if (opp.isKO) {
stand();
return(undefined);
}
if (_level0.inFreeze) {
skill_delay(action);
return(undefined);
}
if (action == undefined) {
return(undefined);
}
if (superCheck(action) == false) {
action = skill_select();
trace("\u65E0\u8D85\u6740");
}
if (superSkill) {
powerDec();
}
skill_now = action;
if (this[action] != undefined) {
this[action]();
} else {
if ((status_2 == "land") && ((status_3 == "normal") || (status_3 == "attack"))) {
} else {
return(undefined);
}
status_1 = action;
(gotoAndStop(action));// not popped
status_3 = "attack";
}
trace("toSkill:" + action);
}
function stand() {
statusClear();
status_1 = "stand";
(gotoAndStop("stand"));// not popped
cpu_control();
}
function squat() {
}
function attack() {
attack_start();
}
function wait() {
statusClear();
status_1 = "stand";
(gotoAndStop("stand"));// not popped
checkWait();
}
function waitStand() {
statusClear();
status_1 = "stand";
(gotoAndStop("stand"));// not popped
var owner = this;
this[status_1].onEnterFrame = function () {
if (owner.opp.status_3 != "down") {
owner.attack_start();
delete this.onEnterFrame;
}
};
}
function walk_f() {
if ((status_2 != "land") || (status_3 != "normal")) {
return(undefined);
}
Vx = dir * Vwalk;
(gotoAndStop("walk_f"));// not popped
status_1 = "walk_f";
move_walkRun();
}
function walk_b() {
if ((status_2 != "land") || (status_3 != "normal")) {
return(undefined);
}
Vx = dir * (-Vwalk);
(gotoAndStop("walk_b"));// not popped
status_1 = "walk_b";
move_walkRun();
}
function dash_f() {
if ((status_2 != "land") || (status_3 != "normal")) {
return(undefined);
}
Vx = dir * Vdash;
(gotoAndStop("dash_f"));// not popped
status_1 = "dash_f";
move_walkRun();
}
function dash_b() {
if ((status_2 != "land") || (status_3 != "normal")) {
return(undefined);
}
(gotoAndStop("dash_b"));// not popped
status_1 = "dash_b";
start_move_Y1(17, -26);
}
function hold() {
hold_u();
}
function hold_u() {
if ((status_2 != "land") || (status_3 != "normal")) {
return(undefined);
}
(gotoAndStop("hold_u"));// not popped
status_1 = "hold_u";
status_4 = "hold";
move_hold();
}
function jump_f() {
if (status_2 != "land") {
return(undefined);
}
status_2 = "air";
(gotoAndStop("jump_f"));// not popped
status_1 = "jump_f";
Vy = Vjump_y;
Vx = Vjump_x;
var owner = this;
this[status_1].onEnterFrame = function () {
owner.air_check();
};
}
function jump_b() {
if (status_2 != "land") {
return(undefined);
}
status_2 = "air";
(gotoAndStop("jump_b"));// not popped
status_1 = "jump_b";
Vy = Vjump_y;
Vx = -Vjump_x;
var owner = this;
this[status_1].onEnterFrame = function () {
owner.air_check();
};
}
function jump() {
if (status_2 != "land") {
return(undefined);
}
status_2 = "air";
(gotoAndStop("jump"));// not popped
status_1 = "jump";
Vy = Vjump_y;
Vx = 0;
var owner = this;
this[status_1].onEnterFrame = function () {
owner.air_check();
};
}
function punch() {
if ((status_2 != "land") || (status_3 != "normal")) {
return(undefined);
}
(gotoAndStop("punch"));// not popped
status_1 = "punch";
status_3 = "attack";
}
function pitch() {
if (super.pitch()) {
} else {
punch();
}
}
function kick2() {
(gotoAndStop("kick2"));// not popped
status_1 = "kick2";
status_3 = "attack";
}
function move_walkRun() {
var Vx = Vx;
var S = 0;
var owner = this;
combo_select("combo_1");
this[status_1].onEnterFrame = function () {
if (owner.inFreeze) {
return(undefined);
}
owner.do_move(Vx);
if (owner.getDis() < owner.delay) {
owner.toSkill(owner.skill_next, true);
}
if (owner.onEgde) {
S++;
if (S > 30) {
owner.stand();
}
}
};
}
function move_squat() {
}
function move_hold() {
var opp = opp;
var _local2 = dir;
var owner = this;
this[status_1].onEnterFrame = function () {
if (opp.hasObj()) {
return(undefined);
}
if (opp.status_3 != "attack") {
owner.stand();
} else if ((owner.holdFreeze == false) && (opp.hit_over())) {
if (owner.checkAttack()) {
} else {
owner.stand();
}
}
};
}
function air_check() {
if (getDis() > 250) {
return(undefined);
}
var _local2;
var _local3;
if (opp.status_2 == "air") {
_local2 = "kick";
if (this[status_1]._currentframe > 7) {
jumpSkill(_local2);
delete this[status_1].onEnterFrame;
}
} else if ((_y > (land_Y - 150)) && (Vy < 0)) {
_local2 = "kick";
jumpSkill(_local2);
delete this[status_1].onEnterFrame;
}
}
function hold_end() {
holdFreeze = false;
}
var attack_s0 = 30;
var combo_risk = 50;
}
Symbol 1091 MovieClip [__Packages.Kim_AI_Lv1] Frame 0
class Kim_AI_Lv1 extends Kim_AI
{
var combo_rate0, attack_rate0, hold_rate0, attack_s0, wait_frame0, combo_risk, special_rate0, super_rate0, dis_array, skill_dis, dis_num, combo_1, combo_land, combo_auto, combo_burst, delay_frames, action_1, skillObj;
function Kim_AI_Lv1 () {
super();
skill_init();
combo_init();
combo_rate0 = 40;
attack_rate0 = 30;
hold_rate0 = 30;
attack_s0 = 20;
wait_frame0 = 20;
combo_risk = 20;
special_rate0 = 60;
super_rate0 = 50;
}
function skill_init() {
dis_array[0] = 100;
dis_array[1] = 150;
dis_array[2] = 200;
dis_array[3] = 300;
dis_array[4] = 400;
dis_array[5] = 1000;
skill_dis[0] = ["punch", "punch2", "kick", "kick2"];
skill_dis[1] = ["punch2", "kick", "kick2"];
skill_dis[2] = ["kick2", "jump_f", "special"];
skill_dis[3] = ["sk1", "jump_f", "special", "super"];
skill_dis[4] = ["sk1", "walk_f", "dash_f", "special", "super"];
skill_dis[5] = ["sk1", "walk_f", "dash_f", "special", "super"];
dis_num = dis_array.length;
}
function combo_init() {
combo_1 = new Object();
combo_land = new Object();
combo_auto = new Object();
combo_burst = new Object();
delay_frames = new Object();
combo_1.punch = [];
combo_1.punch2 = [];
combo_1.kick = [];
combo_1.kick2 = [];
combo_land.jump_f = ["punch", "kick"];
combo_1.dash_f = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.dash_f = [100, 120, 150, 230, 300];
combo_1.walk_f = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.walk_f = [100, 120, 150, 230, 300];
combo_1.walk_b = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.walk_b = [100, 120, 150, 230, 300];
action_1 = new Object();
action_1.down = [["walk_b", "jump_b"], ["walk_b"], ["walk_f"]];
delay_frames.down = [200, 400, 1000];
action_1.oppJump = [[skillObj.toAir]];
delay_frames.oppJump = [200];
action_1.wander = [["walk_b", "jump_b"], ["wait", "jump_b", "walk_f"], ["walk_f", "dash_f", "wait"]];
delay_frames.wander = [150, 300, 1000];
action_1.defend = [["walk_b"], ["walk_b", "jump_b"], ["walk_b"], ["walk_b", "wait"]];
delay_frames.defend = [130, 200, 400, 1000];
action_1.defendAttack = [[skillObj.toAir]];
delay_frames.defendAttack = [150];
action_1.defend_f = [["hold_u"], ["hold_u"]];
delay_frames.defend_f = [150, 1000];
action_1.defend_h = [["hold_u"], ["hold_u"], ["hold_u"]];
delay_frames.defend_h = [130, 200, 1000];
action_1.onEgde = [["attack", "jump_f"], ["jump_f", "attack", "attack"], ["attack"], ["walk_f", "dash_f"]];
delay_frames.onEgde = [150, 250, 400, 1000];
action_1.super = [["sk_tank", "sk_plane", "sk_atom"]];
delay_frames.super = [600];
action_1.special = [["sk_gun"]];
delay_frames.special = [1000];
}
}
Symbol 1092 MovieClip [__Packages.Kim_AI_Lv2] Frame 0
class Kim_AI_Lv2 extends Kim_AI
{
var combo_rate0, attack_rate0, hold_rate0, attack_s0, wait_frame0, combo_risk, special_rate0, super_rate0, dis_array, skill_dis, dis_num, combo_1, combo_land, combo_auto, combo_burst, delay_frames, action_1, skillObj;
function Kim_AI_Lv2 () {
super();
skill_init();
combo_init();
combo_rate0 = 70;
attack_rate0 = 70;
hold_rate0 = 70;
attack_s0 = 40;
wait_frame0 = 15;
combo_risk = 20;
special_rate0 = 60;
super_rate0 = 70;
}
function skill_init() {
dis_array[0] = 100;
dis_array[1] = 150;
dis_array[2] = 200;
dis_array[3] = 300;
dis_array[4] = 400;
dis_array[5] = 1000;
skill_dis[0] = ["punch", "punch2", "kick", "kick2"];
skill_dis[1] = ["punch2", "kick", "kick2"];
skill_dis[2] = ["kick2", "jump_f", "special"];
skill_dis[3] = ["sk1", "jump_f", "special", "super"];
skill_dis[4] = ["sk1", "walk_f", "dash_f", "special", "super"];
skill_dis[5] = ["sk1", "walk_f", "dash_f", "special", "super"];
dis_num = dis_array.length;
}
function combo_init() {
combo_1 = new Object();
combo_land = new Object();
combo_auto = new Object();
combo_burst = new Object();
delay_frames = new Object();
combo_1.punch = [];
combo_1.punch2 = [];
combo_1.kick = [];
combo_1.kick2 = [];
combo_land.jump_f = ["punch", "kick"];
combo_1.dash_f = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.dash_f = [100, 120, 150, 230, 300];
combo_1.walk_f = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.walk_f = [100, 120, 150, 230, 300];
combo_1.walk_b = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.walk_b = [100, 120, 150, 230, 300];
action_1 = new Object();
action_1.down = [["walk_b", "jump_b"], ["walk_b"], ["walk_f"]];
delay_frames.down = [200, 400, 1000];
action_1.oppJump = [[skillObj.toAir]];
delay_frames.oppJump = [200];
action_1.wander = [["walk_b", "jump_b"], ["wait", "jump_b", "walk_f"], ["walk_f", "dash_f", "wait"]];
delay_frames.wander = [150, 300, 1000];
action_1.defend = [["walk_b"], ["walk_b", "jump_b"], ["walk_b"], ["walk_b", "wait"]];
delay_frames.defend = [130, 200, 400, 1000];
action_1.defendAttack = [[skillObj.toAir]];
delay_frames.defendAttack = [150];
action_1.defend_f = [["hold_u"], ["hold_u"]];
delay_frames.defend_f = [150, 1000];
action_1.defend_h = [["hold_u"], ["hold_u"], ["hold_u"]];
delay_frames.defend_h = [130, 200, 1000];
action_1.onEgde = [["attack", "jump_f"], ["jump_f", "attack", "attack"], ["attack"], ["walk_f", "dash_f"]];
delay_frames.onEgde = [150, 250, 400, 1000];
action_1.super = [["sk_tank", "sk_plane", "sk_atom"]];
delay_frames.super = [600];
action_1.special = [["sk_gun"]];
delay_frames.special = [1000];
}
}
Symbol 1093 MovieClip [__Packages.Kim_AI_Lv4] Frame 0
class Kim_AI_Lv4 extends Kim_AI
{
var combo_rate0, attack_rate0, hold_rate0, attack_s0, wait_frame0, combo_risk, special_rate0, super_rate0, dis_array, skill_dis, dis_num, combo_1, combo_land, combo_auto, combo_burst, delay_frames, action_1, skillObj;
function Kim_AI_Lv4 () {
super();
skill_init();
combo_init();
combo_rate0 = 100;
attack_rate0 = 100;
hold_rate0 = 100;
attack_s0 = 40;
wait_frame0 = 15;
combo_risk = 20;
special_rate0 = 60;
super_rate0 = 100;
}
function skill_init() {
dis_array[0] = 100;
dis_array[1] = 150;
dis_array[2] = 200;
dis_array[3] = 300;
dis_array[4] = 400;
dis_array[5] = 1000;
skill_dis[0] = ["punch", "punch2", "kick", "kick2"];
skill_dis[1] = ["punch2", "kick", "kick2"];
skill_dis[2] = ["kick2", "jump_f", "special"];
skill_dis[3] = ["sk1", "jump_f", "special", "super"];
skill_dis[4] = ["sk1", "walk_f", "dash_f", "special", "super"];
skill_dis[5] = ["sk1", "walk_f", "dash_f", "special", "super"];
dis_num = dis_array.length;
}
function combo_init() {
combo_1 = new Object();
combo_land = new Object();
combo_auto = new Object();
combo_burst = new Object();
delay_frames = new Object();
combo_1.punch = [];
combo_1.punch2 = [];
combo_1.kick = [];
combo_1.kick2 = [];
combo_land.jump_f = ["punch", "kick"];
combo_1.dash_f = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.dash_f = [100, 120, 150, 230, 300];
combo_1.walk_f = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.walk_f = [100, 120, 150, 230, 300];
combo_1.walk_b = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.walk_b = [100, 120, 150, 230, 300];
action_1 = new Object();
action_1.down = [["walk_b", "jump_b"], ["walk_b"], ["walk_f"]];
delay_frames.down = [200, 400, 1000];
action_1.oppJump = [[skillObj.toAir]];
delay_frames.oppJump = [200];
action_1.wander = [["walk_b", "jump_b"], ["wait", "jump_b", "walk_f"], ["walk_f", "dash_f", "wait"]];
delay_frames.wander = [150, 300, 1000];
action_1.defend = [["walk_b"], ["walk_b", "jump_b"], ["walk_b"], ["walk_b", "wait"]];
delay_frames.defend = [130, 200, 400, 1000];
action_1.defendAttack = [[skillObj.toAir]];
delay_frames.defendAttack = [150];
action_1.defend_f = [["hold_u"], ["hold_u"]];
delay_frames.defend_f = [150, 1000];
action_1.defend_h = [["hold_u"], ["hold_u"], ["hold_u"]];
delay_frames.defend_h = [130, 200, 1000];
action_1.onEgde = [["attack", "jump_f"], ["jump_f", "attack", "attack"], ["attack"], ["walk_f", "dash_f"]];
delay_frames.onEgde = [150, 250, 400, 1000];
action_1.super = [["sk_tank", "sk_plane", "sk_atom"]];
delay_frames.super = [600];
action_1.special = [["sk_gun"]];
delay_frames.special = [1000];
}
}
Symbol 1094 MovieClip [__Packages.Bush_role] Frame 0
class Bush_role extends role_corn.Role
{
var scale, Vwalk, Vdash, Vjump_x, Vjump_y, Vjump_far, Vg, Va, opp_width2, superList, skillObj, comboClass, input_pre, gotoAndStop, status_1, status_3, status_2, d, f, dir, b, toSkill, jumpSkill;
function Bush_role () {
super();
scale = 100;
Vwalk = 8;
Vdash = 20;
Vjump_x = 10;
Vjump_y = 30;
Vjump_far = 20;
if (Vg == undefined) {
Vg = _level0.g;
}
Va = 3;
opp_width2 = 60;
superList = {sk_sol:1, sk_satelite:1, sk_golf:1};
skillObj.toAir = "sk1";
skillObj.heavyHit = "heavyHit";
skillObj.flyingObj = "sk_gun";
comboClass = new Bush_Combo(this);
preCheck();
}
function preCheck() {
input_pre = new Object();
input_pre.roll_f = 10;
input_pre.roll_b = 10;
input_pre.land = 0;
input_pre.land2 = 0;
input_pre.kick1 = 9;
}
function kick1() {
(gotoAndStop("kick1"));// not popped
status_1 = "kick1";
status_3 = "attack";
}
function kick2() {
if (status_2 != "land") {
return(undefined);
}
(gotoAndStop("kick2"));// not popped
status_1 = "kick2";
status_3 = "attack";
}
function punch2() {
if (status_2 != "land") {
return(undefined);
}
status_1 = "punch2";
(gotoAndStop(status_1));// not popped
status_3 = "attack";
}
function dash_b() {
}
function to_PK_l() {
}
function to_PK() {
}
function to_key_s() {
}
function to_key_s2() {
var _local2;
if (Key.isDown(d)) {
_local2 = "sk_sol";
} else if (Key.isDown(f) && (dir == 1)) {
_local2 = "sk_golf";
} else if (Key.isDown(b) && (dir == -1)) {
_local2 = "sk_golf";
} else if (Key.isDown(b) && (dir == 1)) {
_local2 = "sk_satelite";
} else if (Key.isDown(f) && (dir == -1)) {
_local2 = "sk_satelite";
} else {
_local2 = "sk_gun";
}
toSkill(_local2);
}
function to_kick() {
var _local2;
if ((((status_1 == "jump_f") || (status_1 == "jump_far")) || (status_1 == "jump")) || (status_1 == "jump_b")) {
jumpSkill("kick");
return(undefined);
}
if (Key.isDown(d)) {
_local2 = "kick2";
} else if (Key.isDown(f) && (dir == 1)) {
_local2 = "kick2";
} else if (Key.isDown(b) && (dir == -1)) {
_local2 = "kick2";
} else {
_local2 = "kick";
}
toSkill(_local2);
}
function to_kick_l() {
}
function to_punch() {
var _local2;
if ((((status_1 == "jump_f") || (status_1 == "jump_far")) || (status_1 == "jump")) || (status_1 == "jump_b")) {
jumpSkill("kick");
return(undefined);
}
if (Key.isDown(d)) {
_local2 = "sk1";
} else if (Key.isDown(f) && (dir == 1)) {
_local2 = "punch2";
} else if (Key.isDown(b) && (dir == -1)) {
_local2 = "punch2";
} else {
_local2 = "punch";
}
toSkill(_local2);
}
function to_punch_l() {
}
}
Symbol 1095 MovieClip [__Packages.Bush_Combo] Frame 0
class Bush_Combo extends role_corn.Combo_listener
{
var role, combo1, combo2, skill_over, beCancled, notTOcancle, noCancle;
function Bush_Combo (r) {
super();
role = r;
init();
}
function init() {
combo1 = new Object();
combo2 = new Object();
combo2.punch = 6;
combo2.kick = 9;
combo2.squatPunch = 7;
combo2.sk1 = 15;
combo2.sk2 = 18;
combo2.sk3 = 5;
combo2.sk10 = 8;
combo2.sk14 = 8;
combo2.sk12 = 10;
combo2.sk13 = 8;
combo2.heavyHit = 10;
combo2.pitch = 3;
skill_over = new Object();
skill_over.punch = 10;
skill_over.punch2 = 6;
skill_over.kick = 10;
skill_over.kick2 = 13;
skill_over.squatKick = 10;
skill_over.squatPunch = 11;
skill_over.heavyHit = 13;
skill_over.sk2 = 33;
skill_over.sk3 = 14;
beCancled = new Object();
beCancled.punch = 1;
beCancled.punch2 = 1;
beCancled.kick = 1;
beCancled.kick1 = 1;
beCancled.kick2 = 1;
beCancled.punch_l = 1;
beCancled.kick_l = 1;
beCancled.squatPunch = 1;
beCancled.squatPunch_l = 1;
beCancled.squatKick_l = 1;
notTOcancle = new Object();
noCancle = new Object();
}
}
Symbol 1096 MovieClip [__Packages.Bush_AI] Frame 0
class Bush_AI extends Bush_role
{
var toSkill_temp, toStatus_temp, toStatus, noAct, dis_array, skill_dis, dis, opp, _x, actionType, cpu_control2, combo_rate, combo_rate0, attack_rate, attack_rate0, hold_rate, hold_rate0, attack_s, wait_frame, wait_frame0, special_rate, special_rate0, super_rate, super_rate0, life, life_max, dir, onEgde, status_2, status_3, status_4, status_1, inBurst, redBlood, burst, dis_num, skill_list, delay_frames, superPoint, burst_mode, powerObj, powerControl, inCount, skillObj, comboClass, skill_now, combo_auto, onHit, skill_next, combo_burst, delay, onEnterFrame, control, gotoAndStop, statusClear, checkSide, delaySkill, skill_delay, superCheck, superSkill, powerDec, Vx, Vwalk, Vdash, start_move_Y1, Vy, Vjump_y, Vjump_x, jumpSkill, land_Y, _y, holdFreeze;
function Bush_AI () {
super();
toSkill_temp = toSkill;
toStatus_temp = toStatus;
toSkill = noAct;
dis_array = new Array();
skill_dis = new Array();
}
function getDis() {
dis = Math.abs(_x - opp._x);
return(dis);
}
function initStrage() {
initPlus();
actionType = "normal";
cpu_control2 = cpu_normal;
}
function initPlus() {
combo_rate = combo_rate0;
attack_rate = attack_rate0;
hold_rate = hold_rate0;
attack_s = attack_s0;
wait_frame = wait_frame0;
special_rate = special_rate0;
super_rate = super_rate0;
}
function cpu_control() {
if (checkDefend()) {
return(true);
}
if (checkAction()) {
return(true);
}
cpu_control2();
}
function cpu_normal() {
initPlus();
if (checkAttack()) {
return(true);
}
checkWait();
}
function cpu_defend() {
initPlus();
hold_rate = hold_rate * 1.3;
attack_s = attack_s * 1.3;
var _local2 = action_select("action_1", "defend");
toSkill(_local2);
}
function cpu_attack() {
initPlus();
attack_rate = attack_rate * 1.3;
attack_s = attack_s * 1.3;
combo_rate = combo_rate * 1.3;
if (checkAttack()) {
return(true);
}
checkWait();
}
function cpu_wander() {
initPlus();
var _local2 = action_select("action_1", "wander");
toSkill(_local2);
}
function checkStrage() {
var _local2 = _level0.life_power_mc.time_mc.time_txt.text;
if (((_local2 > 0) && (_local2 < 15)) && (life < opp.life)) {
actionType = "attack";
cpu_control2 = cpu_attack;
} else if (((_local2 > 0) && (_local2 < 15)) && (life > opp.life)) {
actionType = "defend";
cpu_control2 = cpu_defend;
} else if (life < (life_max / 4)) {
actionType = "defend";
cpu_control2 = cpu_defend;
} else if ((opp.life / life) > 1.3) {
actionType = "attack";
cpu_control2 = cpu_attack;
} else if ((life / opp.life) > 1.3) {
actionType = "wander";
cpu_control2 = cpu_wander;
}
}
function checkAction() {
trace("opp.status_3:" + opp.status_3);
var _local2;
if (opp.status_3 == "down") {
_local2 = action_select("action_1", "down");
toSkill(_local2);
trace("checkAction_Down:" + _local2);
return(true);
}
if (opp.dir == dir) {
if (checkAttack()) {
return(true);
}
} else {
if (onEgde) {
var _local3 = action_select("action_1", "onEgde");
toSkill(_local3);
trace("checkAction_onEgde:" + _local2);
return(true);
}
if (opp.onEgde && (getDis() < 150)) {
_local2 = action_select("action_1", "down");
toSkill(_local2);
trace("checkAction_opp.onEgde:" + _local2);
return(true);
}
}
}
function checkDefend() {
var _local2 = int(Math.random() * 100);
if (_local2 > hold_rate) {
return(false);
}
if (status_2 != "land") {
return(undefined);
}
if (status_3 != "normal") {
return(undefined);
}
if (status_4 != "normal") {
return(undefined);
}
if ((dir != opp.dir) && (!opp.hit_over())) {
trace("defend_start");
defend_start();
return(true);
}
}
function checkAttack() {
var _local2 = int(Math.random() * 100);
if (_local2 > attack_rate) {
return(false);
}
attack_start();
trace("attack_start");
return(true);
}
function checkWait() {
var wait_f = (int(Math.random() * wait_frame) + 10);
var owner = this;
this[status_1].onEnterFrame = function () {
wait_f--;
if (wait_f < 0) {
owner.attack_start();
delete this.onEnterFrame;
}
};
}
function checkBurst() {
if (inBurst) {
return(undefined);
}
var _local2 = int(Math.random() * 100);
if (redBlood) {
_local2 = 0;
}
if (_local2 > attack_s) {
return(false);
}
if (burst()) {
return(true);
}
}
function skill_select() {
getDis();
var _local2 = 0;
while (_local2 < dis_num) {
if (dis < dis_array[_local2]) {
skill_list = skill_dis[_local2];
break;
}
_local2++;
}
var _local3 = skill_list.length;
var _local4 = int(Math.random() * _local3);
var _local5 = skill_list[_local4];
return(_local5);
}
function action_select(object, member) {
var _local4;
var _local7;
var _local3 = this[object][member];
var _local6 = delay_frames[member];
var _local5 = _local3.length;
getDis();
var _local2 = 0;
while (_local2 < _local5) {
if (dis < _local6[_local2]) {
_local4 = _local3[_local2];
break;
}
_local2++;
}
var _local9 = _local4.length;
var _local8 = int(Math.random() * _local9);
_local7 = _local4[_local8];
return(_local7);
}
function super_select() {
var _local3 = int(Math.random() * 100);
if (_local3 > super_rate) {
return(false);
}
var _local2 = action_select("action_1", "super");
if ((superPoint > 0) && (_local2 != undefined)) {
return(_local2);
}
trace((("super_select111 " + _local2) + " ") + superPoint);
return(false);
}
function special_select() {
var _local3 = int(Math.random() * 100);
if (_local3 > special_rate) {
return(false);
}
var _local2 = action_select("action_1", "special");
trace("special_select222 " + _local2);
return(_local2);
}
function busrt_select() {
if (inBurst != true) {
return(false);
}
var _local3 = int(Math.random() * 100);
if (_local3 > attack_s) {
return(false);
}
if (opp.freeze_frame() < 4) {
return(false);
}
var _local2 = action_select("action_1", "busrt");
if (_local2 == undefined) {
return(false);
}
if (_local2 == "burst_ad") {
} else if ((_local2 == "burst_a") && (burst_mode == "attack")) {
} else if ((_local2 == "burst_d") && (burst_mode == "defend")) {
} else {
return(false);
}
return("burst");
}
function attack_start() {
var _local2;
_local2 = skill_select();
trace("skill_select1111=======" + _local2);
if (_local2 == "special") {
_local2 = special_select();
} else if (_local2 == "super") {
_local2 = super_select();
trace("skill_select2222=======" + _local2);
}
if (_local2 == false) {
attack_start();
trace("skill_select3333=======" + _local2);
return(undefined);
}
toSkill(_local2);
opp.checkDefend();
if (burst_mode == "attack") {
powerObj.inc = 5;
powerObj.action = "inc";
powerControl(powerObj);
} else if (inBurst) {
inCount = false;
}
if (_local2 == undefined) {
trace("\u9519\u8BEF!\u6280\u80FD\u672A\u5B9A\u4E49");
stand();
}
trace("attack_start======================" + _local2);
}
function defend_start() {
var _local2;
getDis();
var _local3 = int(Math.random() * 100);
if (status_1 == "walk_b") {
_local2 = "hold_u";
} else if ((status_1 == "walk_f") || (status_1 == "dash_f")) {
_local2 = action_select("action_1", "defend_f");
} else if (((opp.status_1.indexOf("squat") > -1) && (_local3 < hold_rate)) && (dis < 200)) {
_local2 = "hold_d";
} else if (((opp.status_2 == "air") && (_local3 < attack_s)) && (dis < 200)) {
_local2 = skillObj.toAir;
} else if (_local3 < attack_s) {
_local2 = action_select("action_1", "defendAttack");
} else {
_local2 = action_select("action_1", "defend_h");
}
if (_local2 == undefined) {
_local2 = "hold_u";
}
_local2 = "hold_u";
toSkill(_local2);
}
function actionDefend(action) {
if (status_2 != "land") {
return(undefined);
}
if (status_3 != "normal") {
return(undefined);
}
if (status_4 != "normal") {
return(undefined);
}
var _local4 = int(Math.random() * 100);
if (_local4 > attack_s) {
return(false);
}
if (action == "roll_f") {
var _local2 = action_select("action_1", "oppRoll");
if (_local2 == undefined) {
return(false);
}
toSkill(_local2);
} else if ((action == "jump") || (action == "jump_f")) {
var _local2 = action_select("action_1", "oppJump");
if (_local2 == undefined) {
return(false);
}
toSkill(_local2);
}
}
function combo_wait(status_1) {
var role_mc = this;
var _local2 = this[status_1];
var start_frame = comboClass.combo2[status_1];
if (start_frame == undefined) {
return(undefined);
}
_local2.onEnterFrame = function () {
if (role_mc.inFreeze) {
return(undefined);
}
if (this._currentframe >= start_frame) {
role_mc.combo_check();
delete this.onEnterFrame;
}
};
}
function combo_check() {
if (combo_auto[skill_now] != undefined) {
combo_select("combo_auto");
combo_start();
return(true);
}
var _local2 = int(Math.random() * 100);
if (onHit != true) {
return(false);
}
if ((opp.status_3 != "hurt") && (_local2 > combo_risk)) {
return(false);
}
if (_local2 < combo_rate) {
combo_select("combo_1");
combo_start();
return(true);
}
}
function combo_check2() {
var _local2 = int(Math.random() * 100);
if (opp.status_3 != "hurt") {
return(false);
}
if (_local2 > combo_rate) {
return(false);
}
combo_select("combo_land");
if (skill_next != undefined) {
combo_start();
return(true);
}
}
function combo_select(combo) {
var _local2;
if (inBurst && (burst_mode == "attack")) {
_local2 = combo_burst[skill_now];
}
if (_local2 == undefined) {
_local2 = this[combo][skill_now];
}
var _local4 = _local2.length;
var _local3 = int(Math.random() * _local4);
skill_next = _local2[_local3];
delay = delay_frames[skill_now][_local3];
if (delay == undefined) {
delay = 0;
}
}
function combo_start() {
if (skill_next == undefined) {
return(undefined);
}
if (delay == 0) {
toSkill(skill_next, true);
} else {
combo_delay();
}
}
function combo_delay() {
onEnterFrame = function () {
this.delay--;
if (this.delay == 0) {
delete this.onEnterFrame;
this.toSkill(this.skill_next, true);
}
};
}
function start_control() {
control = true;
initStrage();
toSkill = toSkill_temp;
toStatus = toStatus_temp;
toStatus_switch("stand");
trace("start_control_cpu");
}
function end_control(action) {
if (_level0.timeOver && (status_1 == "stand")) {
stand();
}
if (opp.isKO && (status_1 == "stand")) {
stand();
} else if (this[action] != undefined) {
this[action]();
} else {
status_1 = action;
(gotoAndStop(action));// not popped
}
}
function do_end() {
control = false;
toSkill = noAct;
toStatus = end_control;
}
function toStatus_switch(action) {
if (status_3 == "hurt") {
return(undefined);
}
statusClear();
checkSide();
_level0.hitCounter.stopCount(this);
if (delaySkill != "") {
toSkill(delaySkill);
delaySkill = "";
return(undefined);
}
toStatus(action);
}
function toSkill(action, cancle) {
if (opp.isKO) {
stand();
return(undefined);
}
if (_level0.inFreeze) {
skill_delay(action);
return(undefined);
}
if (action == undefined) {
return(undefined);
}
if (superCheck(action) == false) {
action = skill_select();
trace("\u65E0\u8D85\u6740");
}
if (superSkill) {
powerDec();
}
skill_now = action;
if (this[action] != undefined) {
this[action]();
} else {
if ((status_2 == "land") && ((status_3 == "normal") || (status_3 == "attack"))) {
} else {
return(undefined);
}
status_1 = action;
(gotoAndStop(action));// not popped
status_3 = "attack";
}
trace("toSkill:" + action);
}
function stand() {
statusClear();
status_1 = "stand";
(gotoAndStop("stand"));// not popped
cpu_control();
}
function squat() {
}
function attack() {
attack_start();
}
function wait() {
statusClear();
status_1 = "stand";
(gotoAndStop("stand"));// not popped
checkWait();
}
function waitStand() {
statusClear();
status_1 = "stand";
(gotoAndStop("stand"));// not popped
var owner = this;
this[status_1].onEnterFrame = function () {
if (owner.opp.status_3 != "down") {
owner.attack_start();
delete this.onEnterFrame;
}
};
}
function walk_f() {
if ((status_2 != "land") || (status_3 != "normal")) {
return(undefined);
}
Vx = dir * Vwalk;
(gotoAndStop("walk_f"));// not popped
status_1 = "walk_f";
move_walkRun();
}
function walk_b() {
if ((status_2 != "land") || (status_3 != "normal")) {
return(undefined);
}
Vx = dir * (-Vwalk);
(gotoAndStop("walk_b"));// not popped
status_1 = "walk_b";
move_walkRun();
}
function dash_f() {
if ((status_2 != "land") || (status_3 != "normal")) {
return(undefined);
}
Vx = dir * Vdash;
(gotoAndStop("dash_f"));// not popped
status_1 = "dash_f";
move_walkRun();
}
function dash_b() {
if ((status_2 != "land") || (status_3 != "normal")) {
return(undefined);
}
(gotoAndStop("dash_b"));// not popped
status_1 = "dash_b";
start_move_Y1(17, -26);
}
function hold() {
hold_u();
}
function hold_u() {
if ((status_2 != "land") || (status_3 != "normal")) {
return(undefined);
}
(gotoAndStop("hold_u"));// not popped
status_1 = "hold_u";
status_4 = "hold";
move_hold();
}
function jump_f() {
if (status_2 != "land") {
return(undefined);
}
status_2 = "air";
(gotoAndStop("jump_f"));// not popped
status_1 = "jump_f";
Vy = Vjump_y;
Vx = Vjump_x;
var owner = this;
this[status_1].onEnterFrame = function () {
owner.air_check();
};
}
function jump_b() {
if (status_2 != "land") {
return(undefined);
}
status_2 = "air";
(gotoAndStop("jump_b"));// not popped
status_1 = "jump_b";
Vy = Vjump_y;
Vx = -Vjump_x;
var owner = this;
this[status_1].onEnterFrame = function () {
owner.air_check();
};
}
function jump() {
if (status_2 != "land") {
return(undefined);
}
status_2 = "air";
(gotoAndStop("jump"));// not popped
status_1 = "jump";
Vy = Vjump_y;
Vx = 0;
var owner = this;
this[status_1].onEnterFrame = function () {
owner.air_check();
};
}
function punch() {
if ((status_2 != "land") || (status_3 != "normal")) {
return(undefined);
}
(gotoAndStop("punch"));// not popped
status_1 = "punch";
status_3 = "attack";
}
function pitch() {
if (super.pitch()) {
} else {
punch();
}
}
function kick2() {
(gotoAndStop("kick2"));// not popped
status_1 = "kick2";
status_3 = "attack";
}
function move_walkRun() {
var Vx = Vx;
var S = 0;
var owner = this;
combo_select("combo_1");
this[status_1].onEnterFrame = function () {
if (owner.inFreeze) {
return(undefined);
}
owner.do_move(Vx);
if (owner.getDis() < owner.delay) {
owner.toSkill(owner.skill_next, true);
}
if (owner.onEgde) {
S++;
if (S > 30) {
owner.stand();
}
}
};
}
function move_squat() {
}
function move_hold() {
var opp = opp;
var _local2 = dir;
var owner = this;
this[status_1].onEnterFrame = function () {
if (opp.hasObj()) {
return(undefined);
}
if (opp.status_3 != "attack") {
owner.stand();
} else if ((owner.holdFreeze == false) && (opp.hit_over())) {
if (owner.checkAttack()) {
} else {
owner.stand();
}
}
};
}
function air_check() {
if (getDis() > 250) {
return(undefined);
}
var _local2;
var _local3;
if (opp.status_2 == "air") {
_local2 = "kick";
if (this[status_1]._currentframe > 7) {
jumpSkill(_local2);
delete this[status_1].onEnterFrame;
}
} else if ((_y > (land_Y - 150)) && (Vy < 0)) {
_local2 = "kick";
jumpSkill(_local2);
delete this[status_1].onEnterFrame;
}
}
function hold_end() {
holdFreeze = false;
}
var attack_s0 = 30;
var combo_risk = 50;
}
Symbol 1097 MovieClip [__Packages.Bush_AI_Lv1] Frame 0
class Bush_AI_Lv1 extends Bush_AI
{
var combo_rate0, attack_rate0, hold_rate0, attack_s0, wait_frame0, combo_risk, special_rate0, super_rate0, dis_array, skill_dis, dis_num, combo_1, combo_land, combo_auto, combo_burst, delay_frames, action_1, skillObj;
function Bush_AI_Lv1 () {
super();
skill_init();
combo_init();
combo_rate0 = 40;
attack_rate0 = 30;
hold_rate0 = 30;
attack_s0 = 20;
wait_frame0 = 20;
combo_risk = 20;
special_rate0 = 60;
super_rate0 = 50;
}
function skill_init() {
dis_array[0] = 100;
dis_array[1] = 150;
dis_array[2] = 200;
dis_array[3] = 300;
dis_array[4] = 400;
dis_array[5] = 1000;
skill_dis[0] = ["punch", "punch2", "kick"];
skill_dis[1] = ["punch2", "kick2", "sk1"];
skill_dis[2] = ["kick2", "special", "sk1"];
skill_dis[3] = ["kick2", "jump_f", "special", "super"];
skill_dis[4] = ["walk_f", "dash_f", "special", "super"];
skill_dis[5] = ["walk_f", "dash_f", "special", "super"];
dis_num = dis_array.length;
}
function combo_init() {
combo_1 = new Object();
combo_land = new Object();
combo_auto = new Object();
combo_burst = new Object();
delay_frames = new Object();
combo_1.punch = [];
combo_1.punch2 = [];
combo_1.kick = [];
combo_1.kick2 = [];
combo_land.jump_f = ["punch", "kick"];
combo_1.dash_f = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.dash_f = [100, 120, 150, 230, 300];
combo_1.walk_f = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.walk_f = [100, 120, 150, 230, 300];
combo_1.walk_b = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.walk_b = [100, 120, 150, 230, 300];
action_1 = new Object();
action_1.down = [["walk_b", "jump_b"], ["walk_b"], ["walk_f"]];
delay_frames.down = [200, 400, 1000];
action_1.oppJump = [[skillObj.toAir]];
delay_frames.oppJump = [200];
action_1.wander = [["walk_b", "jump_b"], ["wait", "jump_b", "walk_f"], ["walk_f", "dash_f", "wait"]];
delay_frames.wander = [150, 300, 1000];
action_1.defend = [["walk_b"], ["walk_b", "jump_b"], ["walk_b"], ["walk_b", "wait"]];
delay_frames.defend = [130, 200, 400, 1000];
action_1.defendAttack = [[skillObj.toAir]];
delay_frames.defendAttack = [150];
action_1.defend_f = [["hold_u"], ["hold_u"]];
delay_frames.defend_f = [150, 1000];
action_1.defend_h = [["hold_u"], ["hold_u"], ["hold_u"]];
delay_frames.defend_h = [130, 200, 1000];
action_1.onEgde = [["attack", "jump_f"], ["jump_f", "attack", "attack"], ["attack"], ["walk_f", "dash_f"]];
delay_frames.onEgde = [150, 250, 400, 1000];
action_1.super = [["sk_sol", "sk_satelite", "sk_golf"]];
delay_frames.super = [600];
action_1.special = [["sk_gun"]];
delay_frames.special = [1000];
}
}
Symbol 1098 MovieClip [__Packages.Bush_AI_Lv2] Frame 0
class Bush_AI_Lv2 extends Bush_AI
{
var combo_rate0, attack_rate0, hold_rate0, attack_s0, wait_frame0, combo_risk, special_rate0, super_rate0, dis_array, skill_dis, dis_num, combo_1, combo_land, combo_auto, combo_burst, delay_frames, action_1, skillObj;
function Bush_AI_Lv2 () {
super();
skill_init();
combo_init();
combo_rate0 = 70;
attack_rate0 = 70;
hold_rate0 = 70;
attack_s0 = 40;
wait_frame0 = 15;
combo_risk = 20;
special_rate0 = 60;
super_rate0 = 70;
}
function skill_init() {
dis_array[0] = 100;
dis_array[1] = 150;
dis_array[2] = 200;
dis_array[3] = 300;
dis_array[4] = 400;
dis_array[5] = 1000;
skill_dis[0] = ["punch", "punch2", "kick"];
skill_dis[1] = ["punch2", "kick2", "sk1"];
skill_dis[2] = ["kick2", "special", "sk1"];
skill_dis[3] = ["kick2", "jump_f", "special", "super"];
skill_dis[4] = ["walk_f", "dash_f", "special", "super"];
skill_dis[5] = ["walk_f", "dash_f", "special", "super"];
dis_num = dis_array.length;
}
function combo_init() {
combo_1 = new Object();
combo_land = new Object();
combo_auto = new Object();
combo_burst = new Object();
delay_frames = new Object();
combo_1.punch = [];
combo_1.punch2 = [];
combo_1.kick = [];
combo_1.kick2 = [];
combo_land.jump_f = ["punch", "kick"];
combo_1.dash_f = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.dash_f = [100, 120, 150, 230, 300];
combo_1.walk_f = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.walk_f = [100, 120, 150, 230, 300];
combo_1.walk_b = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.walk_b = [100, 120, 150, 230, 300];
action_1 = new Object();
action_1.down = [["walk_b", "jump_b"], ["walk_b"], ["walk_f"]];
delay_frames.down = [200, 400, 1000];
action_1.oppJump = [[skillObj.toAir]];
delay_frames.oppJump = [200];
action_1.wander = [["walk_b", "jump_b"], ["wait", "jump_b", "walk_f"], ["walk_f", "dash_f", "wait"]];
delay_frames.wander = [150, 300, 1000];
action_1.defend = [["walk_b"], ["walk_b", "jump_b"], ["walk_b"], ["walk_b", "wait"]];
delay_frames.defend = [130, 200, 400, 1000];
action_1.defendAttack = [[skillObj.toAir]];
delay_frames.defendAttack = [150];
action_1.defend_f = [["hold_u"], ["hold_u"]];
delay_frames.defend_f = [150, 1000];
action_1.defend_h = [["hold_u"], ["hold_u"], ["hold_u"]];
delay_frames.defend_h = [130, 200, 1000];
action_1.onEgde = [["attack", "jump_f"], ["jump_f", "attack", "attack"], ["attack"], ["walk_f", "dash_f"]];
delay_frames.onEgde = [150, 250, 400, 1000];
action_1.super = [["sk_sol", "sk_satelite", "sk_golf"]];
delay_frames.super = [600];
action_1.special = [["sk_gun"]];
delay_frames.special = [1000];
}
}
Symbol 1099 MovieClip [__Packages.Bush_AI_Lv4] Frame 0
class Bush_AI_Lv4 extends Bush_AI
{
var combo_rate0, attack_rate0, hold_rate0, attack_s0, wait_frame0, combo_risk, special_rate0, super_rate0, dis_array, skill_dis, dis_num, combo_1, combo_land, combo_auto, combo_burst, delay_frames, action_1, skillObj;
function Bush_AI_Lv4 () {
super();
skill_init();
combo_init();
combo_rate0 = 100;
attack_rate0 = 100;
hold_rate0 = 100;
attack_s0 = 40;
wait_frame0 = 15;
combo_risk = 20;
special_rate0 = 60;
super_rate0 = 100;
}
function skill_init() {
dis_array[0] = 100;
dis_array[1] = 150;
dis_array[2] = 200;
dis_array[3] = 300;
dis_array[4] = 400;
dis_array[5] = 1000;
skill_dis[0] = ["punch", "punch2", "kick"];
skill_dis[1] = ["punch2", "kick2", "sk1"];
skill_dis[2] = ["kick2", "special", "sk1"];
skill_dis[3] = ["kick2", "jump_f", "special", "super"];
skill_dis[4] = ["walk_f", "dash_f", "special", "super"];
skill_dis[5] = ["walk_f", "dash_f", "special", "super"];
dis_num = dis_array.length;
}
function combo_init() {
combo_1 = new Object();
combo_land = new Object();
combo_auto = new Object();
combo_burst = new Object();
delay_frames = new Object();
combo_1.punch = [];
combo_1.punch2 = [];
combo_1.kick = [];
combo_1.kick2 = [];
combo_land.jump_f = ["punch", "kick"];
combo_1.dash_f = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.dash_f = [100, 120, 150, 230, 300];
combo_1.walk_f = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.walk_f = [100, 120, 150, 230, 300];
combo_1.walk_b = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.walk_b = [100, 120, 150, 230, 300];
action_1 = new Object();
action_1.down = [["walk_b", "jump_b"], ["walk_b"], ["walk_f"]];
delay_frames.down = [200, 400, 1000];
action_1.oppJump = [[skillObj.toAir]];
delay_frames.oppJump = [200];
action_1.wander = [["walk_b", "jump_b"], ["wait", "jump_b", "walk_f"], ["walk_f", "dash_f", "wait"]];
delay_frames.wander = [150, 300, 1000];
action_1.defend = [["walk_b"], ["walk_b", "jump_b"], ["walk_b"], ["walk_b", "wait"]];
delay_frames.defend = [130, 200, 400, 1000];
action_1.defendAttack = [[skillObj.toAir]];
delay_frames.defendAttack = [150];
action_1.defend_f = [["hold_u"], ["hold_u"]];
delay_frames.defend_f = [150, 1000];
action_1.defend_h = [["hold_u"], ["hold_u"], ["hold_u"]];
delay_frames.defend_h = [130, 200, 1000];
action_1.onEgde = [["attack", "jump_f"], ["jump_f", "attack", "attack"], ["attack"], ["walk_f", "dash_f"]];
delay_frames.onEgde = [150, 250, 400, 1000];
action_1.super = [["sk_sol", "sk_satelite", "sk_golf"]];
delay_frames.super = [600];
action_1.special = [["sk_gun"]];
delay_frames.special = [1000];
}
}
Symbol 1100 MovieClip [__Packages.Bush_Player] Frame 0
class Bush_Player extends Bush_role
{
var toSkill_temp, toSkill, toAction_temp, toAction, toStatus_temp, toStatus, noAct, key_array, skill_array, skill_mapping, attachMovie, getNextHighestDepth, newKeyControl, u, d, f, b, p, k, p_l, k_l, s, s2, control, toStatus_switch, status_1, stand, opp, gotoAndStop;
function Bush_Player () {
super();
toSkill_temp = toSkill;
toAction_temp = toAction;
toStatus_temp = toStatus;
toSkill = noAct;
toAction = noAct;
}
function init(key) {
key_array = key;
setKey();
skill_array = new Array();
skill_mapping = new Array();
Object.registerClass("KeyControl", role_corn.KeyControl);
attachMovie("KeyControl", "newKeyControl", getNextHighestDepth());
newKeyControl.init(key_array, skill_array, skill_mapping, this);
}
function setKey() {
u = key_array[0].u;
d = key_array[0].d;
f = key_array[0].f;
b = key_array[0].b;
p = key_array[0].p;
k = key_array[0].k;
p_l = key_array[0].p_l;
k_l = key_array[0].k_l;
s = key_array[0].s;
s2 = key_array[0].s2;
}
function skill_code() {
skill_array[0] = [d, f, d, f, p];
skill_array[1] = [d, f, f, p];
skill_array[2] = [d, b, d, b, k];
skill_array[5] = [f, d, b, k];
skill_array[6] = [d, b, f, p];
skill_array[7] = [d, b, p];
skill_array[8] = [d, b, d, f, p];
skill_array[9] = [f, d, f, p];
skill_array[10] = [d, f, p_l];
skill_array[11] = [d, f, k];
skill_array[12] = [d, f, p];
skill_array[13] = [d, b, k];
}
function skill_link() {
skill_mapping[0] = ["sk10"];
skill_mapping[2] = ["sk14"];
skill_mapping[8] = ["sk10"];
skill_mapping[9] = ["sk3"];
skill_mapping[11] = ["sk1"];
skill_mapping[12] = ["sk1"];
skill_mapping[13] = ["sk2"];
}
function start_control() {
control = true;
toSkill = toSkill_temp;
toAction = toAction_temp;
toStatus = toStatus_temp;
toStatus_switch("stand");
}
function end_control(action) {
if (_level0.timeOver && (status_1 == "stand")) {
stand();
}
if (opp.isKO && (status_1 == "stand")) {
stand();
} else if (this[action] != undefined) {
this[action]();
} else {
status_1 = action;
(gotoAndStop(action));// not popped
}
}
function do_end() {
trace("do_end");
control = false;
toSkill = noAct;
toAction = noAct;
toStatus = end_control;
}
}
Symbol 1101 MovieClip [__Packages.Laten_role] Frame 0
class Laten_role extends role_corn.Role
{
var scale, Vwalk, Vdash, Vjump_x, Vjump_y, Vjump_far, Vg, Va, opp_width2, superList, skillObj, comboClass, input_pre, status_2, bulletCheck, bulletDec, gotoAndStop, status_1, status_3, d, f, dir, b, toSkill, jumpSkill;
function Laten_role () {
super();
scale = 100;
Vwalk = 8;
Vdash = 20;
Vjump_x = 10;
Vjump_y = 30;
Vjump_far = 20;
if (Vg == undefined) {
Vg = _level0.g;
}
Va = 3;
opp_width2 = 60;
superList = {sk_car:1, sk_plane:1, sk_bomb:1};
skillObj.busrt_a = "sk12";
skillObj.busrt_d = "sk13";
skillObj.toAir = "sk3";
skillObj.heavyHit = "heavyHit";
skillObj.flyingObj = "sk1";
comboClass = new Laten_Combo(this);
preCheck();
}
function preCheck() {
input_pre = new Object();
input_pre.roll_f = 10;
input_pre.roll_b = 10;
input_pre.land = 0;
input_pre.land2 = 0;
input_pre.kick1 = 9;
}
function sk_bomb1() {
if (status_2 != "land") {
return(undefined);
}
if (bulletCheck() == false) {
return(undefined);
}
bulletDec();
(gotoAndStop("sk_bomb1"));// not popped
status_1 = "sk_bomb1";
status_3 = "attack";
}
function kick2() {
if (status_2 != "land") {
return(undefined);
}
(gotoAndStop("kick2"));// not popped
status_1 = "kick2";
status_3 = "attack";
}
function punch2() {
if (status_2 != "land") {
return(undefined);
}
status_1 = "punch2";
(gotoAndStop(status_1));// not popped
status_3 = "attack";
}
function dash_b() {
}
function to_PK_l() {
}
function to_PK() {
}
function to_key_s() {
}
function to_key_s2() {
var _local2;
if (Key.isDown(d)) {
_local2 = "sk_plane";
} else if (Key.isDown(f) && (dir == 1)) {
_local2 = "sk_bomb";
} else if (Key.isDown(b) && (dir == -1)) {
_local2 = "sk_bomb";
} else if (Key.isDown(b) && (dir == 1)) {
_local2 = "sk_car";
} else if (Key.isDown(f) && (dir == -1)) {
_local2 = "sk_car";
} else {
_local2 = "sk_gun";
}
toSkill(_local2);
}
function to_kick() {
var _local2;
if ((((status_1 == "jump_f") || (status_1 == "jump_far")) || (status_1 == "jump")) || (status_1 == "jump_b")) {
jumpSkill("kick");
return(undefined);
}
if (Key.isDown(d)) {
_local2 = "sk_bomb1";
} else if (Key.isDown(f) && (dir == 1)) {
_local2 = "kick2";
} else if (Key.isDown(b) && (dir == -1)) {
_local2 = "kick2";
} else {
_local2 = "kick";
}
toSkill(_local2);
}
function to_kick_l() {
}
function to_punch() {
var _local2;
if ((((status_1 == "jump_f") || (status_1 == "jump_far")) || (status_1 == "jump")) || (status_1 == "jump_b")) {
jumpSkill("kick");
return(undefined);
}
if (Key.isDown(d)) {
_local2 = "punch2";
} else if (Key.isDown(f) && (dir == 1)) {
_local2 = "punch2";
} else if (Key.isDown(b) && (dir == -1)) {
_local2 = "punch2";
} else {
_local2 = "punch";
}
toSkill(_local2);
}
function to_punch_l() {
}
}
Symbol 1102 MovieClip [__Packages.Laten_Combo] Frame 0
class Laten_Combo extends role_corn.Combo_listener
{
var role, combo1, combo2, skill_over, beCancled, notTOcancle, noCancle;
function Laten_Combo (r) {
super();
role = r;
init();
}
function init() {
combo1 = new Object();
combo2 = new Object();
combo2.punch = 6;
combo2.kick = 9;
combo2.squatPunch = 7;
combo2.sk1 = 15;
combo2.sk2 = 18;
combo2.sk3 = 5;
combo2.sk10 = 8;
combo2.sk14 = 8;
combo2.sk12 = 10;
combo2.sk13 = 8;
combo2.heavyHit = 10;
combo2.pitch = 3;
skill_over = new Object();
skill_over.punch = 10;
skill_over.punch2 = 6;
skill_over.kick = 10;
skill_over.kick2 = 13;
skill_over.squatKick = 10;
skill_over.squatPunch = 11;
skill_over.heavyHit = 13;
skill_over.sk2 = 33;
skill_over.sk3 = 14;
beCancled = new Object();
beCancled.punch = 1;
beCancled.punch2 = 1;
beCancled.kick = 1;
beCancled.kick1 = 1;
beCancled.kick2 = 1;
beCancled.punch_l = 1;
beCancled.kick_l = 1;
beCancled.squatPunch = 1;
beCancled.squatPunch_l = 1;
beCancled.squatKick_l = 1;
notTOcancle = new Object();
noCancle = new Object();
}
}
Symbol 1103 MovieClip [__Packages.Laten_AI] Frame 0
class Laten_AI extends Laten_role
{
var toSkill_temp, toStatus_temp, toStatus, noAct, dis_array, skill_dis, dis, opp, _x, actionType, cpu_control2, combo_rate, combo_rate0, attack_rate, attack_rate0, hold_rate, hold_rate0, attack_s, wait_frame, wait_frame0, special_rate, special_rate0, super_rate, super_rate0, life, life_max, dir, onEgde, status_2, status_3, status_4, status_1, inBurst, redBlood, burst, dis_num, skill_list, delay_frames, superPoint, burst_mode, powerObj, powerControl, inCount, skillObj, comboClass, skill_now, combo_auto, onHit, skill_next, combo_burst, delay, onEnterFrame, control, gotoAndStop, statusClear, checkSide, delaySkill, skill_delay, superCheck, superSkill, powerDec, Vx, Vwalk, Vdash, start_move_Y1, Vy, Vjump_y, Vjump_x, jumpSkill, land_Y, _y, holdFreeze;
function Laten_AI () {
super();
toSkill_temp = toSkill;
toStatus_temp = toStatus;
toSkill = noAct;
dis_array = new Array();
skill_dis = new Array();
}
function getDis() {
dis = Math.abs(_x - opp._x);
return(dis);
}
function initStrage() {
initPlus();
actionType = "normal";
cpu_control2 = cpu_normal;
}
function initPlus() {
combo_rate = combo_rate0;
attack_rate = attack_rate0;
hold_rate = hold_rate0;
attack_s = attack_s0;
wait_frame = wait_frame0;
special_rate = special_rate0;
super_rate = super_rate0;
}
function cpu_control() {
if (checkDefend()) {
return(true);
}
if (checkAction()) {
return(true);
}
cpu_control2();
}
function cpu_normal() {
initPlus();
if (checkAttack()) {
return(true);
}
checkWait();
}
function cpu_defend() {
initPlus();
hold_rate = hold_rate * 1.3;
attack_s = attack_s * 1.3;
var _local2 = action_select("action_1", "defend");
toSkill(_local2);
}
function cpu_attack() {
initPlus();
attack_rate = attack_rate * 1.3;
attack_s = attack_s * 1.3;
combo_rate = combo_rate * 1.3;
if (checkAttack()) {
return(true);
}
checkWait();
}
function cpu_wander() {
initPlus();
var _local2 = action_select("action_1", "wander");
toSkill(_local2);
}
function checkStrage() {
var _local2 = _level0.life_power_mc.time_mc.time_txt.text;
if (((_local2 > 0) && (_local2 < 15)) && (life < opp.life)) {
actionType = "attack";
cpu_control2 = cpu_attack;
} else if (((_local2 > 0) && (_local2 < 15)) && (life > opp.life)) {
actionType = "defend";
cpu_control2 = cpu_defend;
} else if (life < (life_max / 4)) {
actionType = "defend";
cpu_control2 = cpu_defend;
} else if ((opp.life / life) > 1.3) {
actionType = "attack";
cpu_control2 = cpu_attack;
} else if ((life / opp.life) > 1.3) {
actionType = "wander";
cpu_control2 = cpu_wander;
}
}
function checkAction() {
trace("opp.status_3:" + opp.status_3);
var _local2;
if (opp.status_3 == "down") {
_local2 = action_select("action_1", "down");
toSkill(_local2);
trace("checkAction_Down:" + _local2);
return(true);
}
if (opp.dir == dir) {
if (checkAttack()) {
return(true);
}
} else {
if (onEgde) {
var _local3 = action_select("action_1", "onEgde");
toSkill(_local3);
trace("checkAction_onEgde:" + _local2);
return(true);
}
if (opp.onEgde && (getDis() < 150)) {
_local2 = action_select("action_1", "down");
toSkill(_local2);
trace("checkAction_opp.onEgde:" + _local2);
return(true);
}
}
}
function checkDefend() {
var _local2 = int(Math.random() * 100);
if (_local2 > hold_rate) {
return(false);
}
if (status_2 != "land") {
return(undefined);
}
if (status_3 != "normal") {
return(undefined);
}
if (status_4 != "normal") {
return(undefined);
}
if ((dir != opp.dir) && (!opp.hit_over())) {
trace("defend_start");
defend_start();
return(true);
}
}
function checkAttack() {
var _local2 = int(Math.random() * 100);
if (_local2 > attack_rate) {
return(false);
}
attack_start();
trace("attack_start");
return(true);
}
function checkWait() {
var wait_f = (int(Math.random() * wait_frame) + 10);
var owner = this;
this[status_1].onEnterFrame = function () {
wait_f--;
if (wait_f < 0) {
owner.attack_start();
delete this.onEnterFrame;
}
};
}
function checkBurst() {
if (inBurst) {
return(undefined);
}
var _local2 = int(Math.random() * 100);
if (redBlood) {
_local2 = 0;
}
if (_local2 > attack_s) {
return(false);
}
if (burst()) {
return(true);
}
}
function skill_select() {
getDis();
var _local2 = 0;
while (_local2 < dis_num) {
if (dis < dis_array[_local2]) {
skill_list = skill_dis[_local2];
break;
}
_local2++;
}
var _local3 = skill_list.length;
var _local4 = int(Math.random() * _local3);
var _local5 = skill_list[_local4];
return(_local5);
}
function action_select(object, member) {
var _local4;
var _local7;
var _local3 = this[object][member];
var _local6 = delay_frames[member];
var _local5 = _local3.length;
getDis();
var _local2 = 0;
while (_local2 < _local5) {
if (dis < _local6[_local2]) {
_local4 = _local3[_local2];
break;
}
_local2++;
}
var _local9 = _local4.length;
var _local8 = int(Math.random() * _local9);
_local7 = _local4[_local8];
return(_local7);
}
function super_select() {
var _local3 = int(Math.random() * 100);
if (_local3 > super_rate) {
return(false);
}
var _local2 = action_select("action_1", "super");
if ((superPoint > 0) && (_local2 != undefined)) {
return(_local2);
}
trace((("super_select111 " + _local2) + " ") + superPoint);
return(false);
}
function special_select() {
var _local3 = int(Math.random() * 100);
if (_local3 > special_rate) {
return(false);
}
var _local2 = action_select("action_1", "special");
trace("special_select222 " + _local2);
return(_local2);
}
function busrt_select() {
if (inBurst != true) {
return(false);
}
var _local3 = int(Math.random() * 100);
if (_local3 > attack_s) {
return(false);
}
if (opp.freeze_frame() < 4) {
return(false);
}
var _local2 = action_select("action_1", "busrt");
if (_local2 == undefined) {
return(false);
}
if (_local2 == "burst_ad") {
} else if ((_local2 == "burst_a") && (burst_mode == "attack")) {
} else if ((_local2 == "burst_d") && (burst_mode == "defend")) {
} else {
return(false);
}
return("burst");
}
function attack_start() {
var _local2;
_local2 = skill_select();
trace("skill_select1111=======" + _local2);
if (_local2 == "special") {
_local2 = special_select();
} else if (_local2 == "super") {
_local2 = super_select();
trace("skill_select2222=======" + _local2);
}
if (_local2 == false) {
attack_start();
trace("skill_select3333=======" + _local2);
return(undefined);
}
toSkill(_local2);
opp.checkDefend();
if (burst_mode == "attack") {
powerObj.inc = 5;
powerObj.action = "inc";
powerControl(powerObj);
} else if (inBurst) {
inCount = false;
}
if (_local2 == undefined) {
trace("\u9519\u8BEF!\u6280\u80FD\u672A\u5B9A\u4E49");
stand();
}
trace("attack_start======================" + _local2);
}
function defend_start() {
var _local2;
getDis();
var _local3 = int(Math.random() * 100);
if (status_1 == "walk_b") {
_local2 = "hold_u";
} else if ((status_1 == "walk_f") || (status_1 == "dash_f")) {
_local2 = action_select("action_1", "defend_f");
} else if (((opp.status_1.indexOf("squat") > -1) && (_local3 < hold_rate)) && (dis < 200)) {
_local2 = "hold_d";
} else if (((opp.status_2 == "air") && (_local3 < attack_s)) && (dis < 200)) {
_local2 = skillObj.toAir;
} else if (_local3 < attack_s) {
_local2 = action_select("action_1", "defendAttack");
} else {
_local2 = action_select("action_1", "defend_h");
}
if (_local2 == undefined) {
_local2 = "hold_u";
}
_local2 = "hold_u";
toSkill(_local2);
}
function actionDefend(action) {
if (status_2 != "land") {
return(undefined);
}
if (status_3 != "normal") {
return(undefined);
}
if (status_4 != "normal") {
return(undefined);
}
var _local4 = int(Math.random() * 100);
if (_local4 > attack_s) {
return(false);
}
if (action == "roll_f") {
var _local2 = action_select("action_1", "oppRoll");
if (_local2 == undefined) {
return(false);
}
toSkill(_local2);
} else if ((action == "jump") || (action == "jump_f")) {
var _local2 = action_select("action_1", "oppJump");
if (_local2 == undefined) {
return(false);
}
toSkill(_local2);
}
}
function combo_wait(status_1) {
var role_mc = this;
var _local2 = this[status_1];
var start_frame = comboClass.combo2[status_1];
if (start_frame == undefined) {
return(undefined);
}
_local2.onEnterFrame = function () {
if (role_mc.inFreeze) {
return(undefined);
}
if (this._currentframe >= start_frame) {
role_mc.combo_check();
delete this.onEnterFrame;
}
};
}
function combo_check() {
if (combo_auto[skill_now] != undefined) {
combo_select("combo_auto");
combo_start();
return(true);
}
var _local2 = int(Math.random() * 100);
if (onHit != true) {
return(false);
}
if ((opp.status_3 != "hurt") && (_local2 > combo_risk)) {
return(false);
}
if (_local2 < combo_rate) {
combo_select("combo_1");
combo_start();
return(true);
}
}
function combo_check2() {
var _local2 = int(Math.random() * 100);
if (opp.status_3 != "hurt") {
return(false);
}
if (_local2 > combo_rate) {
return(false);
}
combo_select("combo_land");
if (skill_next != undefined) {
combo_start();
return(true);
}
}
function combo_select(combo) {
var _local2;
if (inBurst && (burst_mode == "attack")) {
_local2 = combo_burst[skill_now];
}
if (_local2 == undefined) {
_local2 = this[combo][skill_now];
}
var _local4 = _local2.length;
var _local3 = int(Math.random() * _local4);
skill_next = _local2[_local3];
delay = delay_frames[skill_now][_local3];
if (delay == undefined) {
delay = 0;
}
}
function combo_start() {
if (skill_next == undefined) {
return(undefined);
}
if (delay == 0) {
toSkill(skill_next, true);
} else {
combo_delay();
}
}
function combo_delay() {
onEnterFrame = function () {
this.delay--;
if (this.delay == 0) {
delete this.onEnterFrame;
this.toSkill(this.skill_next, true);
}
};
}
function start_control() {
control = true;
initStrage();
toSkill = toSkill_temp;
toStatus = toStatus_temp;
toStatus_switch("stand");
trace("start_control_cpu");
}
function end_control(action) {
if (_level0.timeOver && (status_1 == "stand")) {
stand();
}
if (opp.isKO && (status_1 == "stand")) {
stand();
} else if (this[action] != undefined) {
this[action]();
} else {
status_1 = action;
(gotoAndStop(action));// not popped
}
}
function do_end() {
control = false;
toSkill = noAct;
toStatus = end_control;
}
function toStatus_switch(action) {
if (status_3 == "hurt") {
return(undefined);
}
statusClear();
checkSide();
_level0.hitCounter.stopCount(this);
if (delaySkill != "") {
toSkill(delaySkill);
delaySkill = "";
return(undefined);
}
toStatus(action);
}
function toSkill(action, cancle) {
if (opp.isKO) {
stand();
return(undefined);
}
if (_level0.inFreeze) {
skill_delay(action);
return(undefined);
}
if (action == undefined) {
return(undefined);
}
if (superCheck(action) == false) {
action = skill_select();
trace("\u65E0\u8D85\u6740");
}
if (superSkill) {
powerDec();
}
skill_now = action;
if (this[action] != undefined) {
this[action]();
} else {
if ((status_2 == "land") && ((status_3 == "normal") || (status_3 == "attack"))) {
} else {
return(undefined);
}
status_1 = action;
(gotoAndStop(action));// not popped
status_3 = "attack";
}
trace("toSkill:" + action);
}
function stand() {
statusClear();
status_1 = "stand";
(gotoAndStop("stand"));// not popped
cpu_control();
}
function squat() {
}
function attack() {
attack_start();
}
function wait() {
statusClear();
status_1 = "stand";
(gotoAndStop("stand"));// not popped
checkWait();
}
function waitStand() {
statusClear();
status_1 = "stand";
(gotoAndStop("stand"));// not popped
var owner = this;
this[status_1].onEnterFrame = function () {
if (owner.opp.status_3 != "down") {
owner.attack_start();
delete this.onEnterFrame;
}
};
}
function walk_f() {
if ((status_2 != "land") || (status_3 != "normal")) {
return(undefined);
}
Vx = dir * Vwalk;
(gotoAndStop("walk_f"));// not popped
status_1 = "walk_f";
move_walkRun();
}
function walk_b() {
if ((status_2 != "land") || (status_3 != "normal")) {
return(undefined);
}
Vx = dir * (-Vwalk);
(gotoAndStop("walk_b"));// not popped
status_1 = "walk_b";
move_walkRun();
}
function dash_f() {
if ((status_2 != "land") || (status_3 != "normal")) {
return(undefined);
}
Vx = dir * Vdash;
(gotoAndStop("dash_f"));// not popped
status_1 = "dash_f";
move_walkRun();
}
function dash_b() {
if ((status_2 != "land") || (status_3 != "normal")) {
return(undefined);
}
(gotoAndStop("dash_b"));// not popped
status_1 = "dash_b";
start_move_Y1(17, -26);
}
function hold() {
hold_u();
}
function hold_u() {
if ((status_2 != "land") || (status_3 != "normal")) {
return(undefined);
}
(gotoAndStop("hold_u"));// not popped
status_1 = "hold_u";
status_4 = "hold";
move_hold();
}
function jump_f() {
if (status_2 != "land") {
return(undefined);
}
status_2 = "air";
(gotoAndStop("jump_f"));// not popped
status_1 = "jump_f";
Vy = Vjump_y;
Vx = Vjump_x;
var owner = this;
this[status_1].onEnterFrame = function () {
owner.air_check();
};
}
function jump_b() {
if (status_2 != "land") {
return(undefined);
}
status_2 = "air";
(gotoAndStop("jump_b"));// not popped
status_1 = "jump_b";
Vy = Vjump_y;
Vx = -Vjump_x;
var owner = this;
this[status_1].onEnterFrame = function () {
owner.air_check();
};
}
function jump() {
if (status_2 != "land") {
return(undefined);
}
status_2 = "air";
(gotoAndStop("jump"));// not popped
status_1 = "jump";
Vy = Vjump_y;
Vx = 0;
var owner = this;
this[status_1].onEnterFrame = function () {
owner.air_check();
};
}
function punch() {
if ((status_2 != "land") || (status_3 != "normal")) {
return(undefined);
}
(gotoAndStop("punch"));// not popped
status_1 = "punch";
status_3 = "attack";
}
function pitch() {
if (super.pitch()) {
} else {
punch();
}
}
function kick2() {
(gotoAndStop("kick2"));// not popped
status_1 = "kick2";
status_3 = "attack";
}
function move_walkRun() {
var Vx = Vx;
var S = 0;
var owner = this;
combo_select("combo_1");
this[status_1].onEnterFrame = function () {
if (owner.inFreeze) {
return(undefined);
}
owner.do_move(Vx);
if (owner.getDis() < owner.delay) {
owner.toSkill(owner.skill_next, true);
}
if (owner.onEgde) {
S++;
if (S > 30) {
owner.stand();
}
}
};
}
function move_squat() {
}
function move_hold() {
var opp = opp;
var _local2 = dir;
var owner = this;
this[status_1].onEnterFrame = function () {
if (opp.hasObj()) {
return(undefined);
}
if (opp.status_3 != "attack") {
owner.stand();
} else if ((owner.holdFreeze == false) && (opp.hit_over())) {
if (owner.checkAttack()) {
} else {
owner.stand();
}
}
};
}
function air_check() {
if (getDis() > 250) {
return(undefined);
}
var _local2;
var _local3;
if (opp.status_2 == "air") {
_local2 = "kick";
if (this[status_1]._currentframe > 7) {
jumpSkill(_local2);
delete this[status_1].onEnterFrame;
}
} else if ((_y > (land_Y - 150)) && (Vy < 0)) {
_local2 = "kick";
jumpSkill(_local2);
delete this[status_1].onEnterFrame;
}
}
function hold_end() {
holdFreeze = false;
}
var attack_s0 = 30;
var combo_risk = 50;
}
Symbol 1104 MovieClip [__Packages.Laten_AI_Lv2] Frame 0
class Laten_AI_Lv2 extends Laten_AI
{
var combo_rate0, attack_rate0, hold_rate0, attack_s0, wait_frame0, combo_risk, special_rate0, super_rate0, dis_array, skill_dis, dis_num, combo_1, combo_land, combo_auto, combo_burst, delay_frames, action_1, skillObj;
function Laten_AI_Lv2 () {
super();
skill_init();
combo_init();
combo_rate0 = 70;
attack_rate0 = 70;
hold_rate0 = 70;
attack_s0 = 40;
wait_frame0 = 15;
combo_risk = 20;
special_rate0 = 60;
super_rate0 = 70;
}
function skill_init() {
dis_array[0] = 100;
dis_array[1] = 150;
dis_array[2] = 200;
dis_array[3] = 300;
dis_array[4] = 400;
dis_array[5] = 1000;
skill_dis[0] = ["punch", "punch2", "kick"];
skill_dis[1] = ["punch2", "kick2"];
skill_dis[2] = ["kick2", "special", "jump_f"];
skill_dis[3] = ["walk_f", "jump_f", "special", "super", "sk_bomb1"];
skill_dis[4] = ["walk_f", "dash_f", "special", "super", "sk_bomb1"];
skill_dis[5] = ["walk_f", "dash_f", "special", "super", "sk_bomb1"];
dis_num = dis_array.length;
}
function combo_init() {
combo_1 = new Object();
combo_land = new Object();
combo_auto = new Object();
combo_burst = new Object();
delay_frames = new Object();
combo_1.punch = [];
combo_1.punch2 = [];
combo_1.kick = [];
combo_1.kick2 = [];
combo_land.jump_f = ["punch", "kick"];
combo_1.dash_f = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.dash_f = [100, 120, 150, 230, 300];
combo_1.walk_f = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.walk_f = [100, 120, 150, 230, 300];
combo_1.walk_b = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.walk_b = [100, 120, 150, 230, 300];
action_1 = new Object();
action_1.down = [["walk_b", "jump_b"], ["walk_b"], ["walk_f"]];
delay_frames.down = [200, 400, 1000];
action_1.oppJump = [[skillObj.toAir]];
delay_frames.oppJump = [200];
action_1.wander = [["walk_b", "jump_b"], ["wait", "jump_b", "walk_f"], ["walk_f", "dash_f", "wait"]];
delay_frames.wander = [150, 300, 1000];
action_1.defend = [["walk_b"], ["walk_b", "jump_b"], ["walk_b"], ["walk_b", "wait"]];
delay_frames.defend = [130, 200, 400, 1000];
action_1.defendAttack = [[skillObj.toAir]];
delay_frames.defendAttack = [150];
action_1.defend_f = [["hold_u"], ["hold_u"]];
delay_frames.defend_f = [150, 1000];
action_1.defend_h = [["hold_u"], ["hold_u"], ["hold_u"]];
delay_frames.defend_h = [130, 200, 1000];
action_1.onEgde = [["attack", "jump_f"], ["jump_f", "attack", "attack"], ["attack"], ["walk_f", "dash_f"]];
delay_frames.onEgde = [150, 250, 400, 1000];
action_1.super = [["sk_car", "sk_plane", "sk_bomb"]];
delay_frames.super = [600];
action_1.special = [["sk_gun"]];
delay_frames.special = [1000];
}
}
Symbol 1105 MovieClip [__Packages.Laten_AI_Lv1] Frame 0
class Laten_AI_Lv1 extends Laten_AI
{
var combo_rate0, attack_rate0, hold_rate0, attack_s0, wait_frame0, combo_risk, special_rate0, super_rate0, dis_array, skill_dis, dis_num, combo_1, combo_land, combo_auto, combo_burst, delay_frames, action_1, skillObj;
function Laten_AI_Lv1 () {
super();
skill_init();
combo_init();
combo_rate0 = 40;
attack_rate0 = 30;
hold_rate0 = 30;
attack_s0 = 20;
wait_frame0 = 20;
combo_risk = 20;
special_rate0 = 60;
super_rate0 = 50;
}
function skill_init() {
dis_array[0] = 100;
dis_array[1] = 150;
dis_array[2] = 200;
dis_array[3] = 300;
dis_array[4] = 400;
dis_array[5] = 1000;
skill_dis[0] = ["punch", "punch2", "kick"];
skill_dis[1] = ["punch2", "kick2"];
skill_dis[2] = ["kick2", "special", "jump_f"];
skill_dis[3] = ["walk_f", "jump_f", "special", "super", "sk_bomb1"];
skill_dis[4] = ["walk_f", "dash_f", "special", "super", "sk_bomb1"];
skill_dis[5] = ["walk_f", "dash_f", "special", "super", "sk_bomb1"];
dis_num = dis_array.length;
}
function combo_init() {
combo_1 = new Object();
combo_land = new Object();
combo_auto = new Object();
combo_burst = new Object();
delay_frames = new Object();
combo_1.punch = [];
combo_1.punch2 = [];
combo_1.kick = [];
combo_1.kick2 = [];
combo_land.jump_f = ["punch", "kick"];
combo_1.dash_f = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.dash_f = [100, 120, 150, 230, 300];
combo_1.walk_f = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.walk_f = [100, 120, 150, 230, 300];
combo_1.walk_b = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.walk_b = [100, 120, 150, 230, 300];
action_1 = new Object();
action_1.down = [["walk_b", "jump_b"], ["walk_b"], ["walk_f"]];
delay_frames.down = [200, 400, 1000];
action_1.oppJump = [[skillObj.toAir]];
delay_frames.oppJump = [200];
action_1.wander = [["walk_b", "jump_b"], ["wait", "jump_b", "walk_f"], ["walk_f", "dash_f", "wait"]];
delay_frames.wander = [150, 300, 1000];
action_1.defend = [["walk_b"], ["walk_b", "jump_b"], ["walk_b"], ["walk_b", "wait"]];
delay_frames.defend = [130, 200, 400, 1000];
action_1.defendAttack = [[skillObj.toAir]];
delay_frames.defendAttack = [150];
action_1.defend_f = [["hold_u"], ["hold_u"]];
delay_frames.defend_f = [150, 1000];
action_1.defend_h = [["hold_u"], ["hold_u"], ["hold_u"]];
delay_frames.defend_h = [130, 200, 1000];
action_1.onEgde = [["attack", "jump_f"], ["jump_f", "attack", "attack"], ["attack"], ["walk_f", "dash_f"]];
delay_frames.onEgde = [150, 250, 400, 1000];
action_1.super = [["sk_car", "sk_plane", "sk_bomb"]];
delay_frames.super = [600];
action_1.special = [["sk_gun"]];
delay_frames.special = [1000];
}
}
Symbol 1106 MovieClip [__Packages.Laten_AI_Lv4] Frame 0
class Laten_AI_Lv4 extends Laten_AI
{
var combo_rate0, attack_rate0, hold_rate0, attack_s0, wait_frame0, combo_risk, special_rate0, super_rate0, dis_array, skill_dis, dis_num, combo_1, combo_land, combo_auto, combo_burst, delay_frames, action_1, skillObj;
function Laten_AI_Lv4 () {
super();
skill_init();
combo_init();
combo_rate0 = 100;
attack_rate0 = 100;
hold_rate0 = 100;
attack_s0 = 40;
wait_frame0 = 15;
combo_risk = 20;
special_rate0 = 60;
super_rate0 = 100;
}
function skill_init() {
dis_array[0] = 100;
dis_array[1] = 150;
dis_array[2] = 200;
dis_array[3] = 300;
dis_array[4] = 400;
dis_array[5] = 1000;
skill_dis[0] = ["punch", "punch2", "kick"];
skill_dis[1] = ["punch2", "kick2"];
skill_dis[2] = ["kick2", "special", "jump_f"];
skill_dis[3] = ["walk_f", "jump_f", "special", "super", "sk_bomb1"];
skill_dis[4] = ["walk_f", "dash_f", "special", "super", "sk_bomb1"];
skill_dis[5] = ["walk_f", "dash_f", "special", "super", "sk_bomb1"];
dis_num = dis_array.length;
}
function combo_init() {
combo_1 = new Object();
combo_land = new Object();
combo_auto = new Object();
combo_burst = new Object();
delay_frames = new Object();
combo_1.punch = [];
combo_1.punch2 = [];
combo_1.kick = [];
combo_1.kick2 = [];
combo_land.jump_f = ["punch", "kick"];
combo_1.dash_f = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.dash_f = [100, 120, 150, 230, 300];
combo_1.walk_f = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.walk_f = [100, 120, 150, 230, 300];
combo_1.walk_b = ["punch", "kick", "punch2", "kick2", "jump_f"];
delay_frames.walk_b = [100, 120, 150, 230, 300];
action_1 = new Object();
action_1.down = [["walk_b", "jump_b"], ["walk_b"], ["walk_f"]];
delay_frames.down = [200, 400, 1000];
action_1.oppJump = [[skillObj.toAir]];
delay_frames.oppJump = [200];
action_1.wander = [["walk_b", "jump_b"], ["wait", "jump_b", "walk_f"], ["walk_f", "dash_f", "wait"]];
delay_frames.wander = [150, 300, 1000];
action_1.defend = [["walk_b"], ["walk_b", "jump_b"], ["walk_b"], ["walk_b", "wait"]];
delay_frames.defend = [130, 200, 400, 1000];
action_1.defendAttack = [[skillObj.toAir]];
delay_frames.defendAttack = [150];
action_1.defend_f = [["hold_u"], ["hold_u"]];
delay_frames.defend_f = [150, 1000];
action_1.defend_h = [["hold_u"], ["hold_u"], ["hold_u"]];
delay_frames.defend_h = [130, 200, 1000];
action_1.onEgde = [["attack", "jump_f"], ["jump_f", "attack", "attack"], ["attack"], ["walk_f", "dash_f"]];
delay_frames.onEgde = [150, 250, 400, 1000];
action_1.super = [["sk_car", "sk_plane", "sk_bomb"]];
delay_frames.super = [600];
action_1.special = [["sk_gun"]];
delay_frames.special = [1000];
}
}
Symbol 1107 MovieClip [__Packages.Laten_Player] Frame 0
class Laten_Player extends Laten_role
{
var toSkill_temp, toSkill, toAction_temp, toAction, toStatus_temp, toStatus, noAct, key_array, skill_array, skill_mapping, attachMovie, getNextHighestDepth, newKeyControl, u, d, f, b, p, k, p_l, k_l, s, s2, control, toStatus_switch, status_1, stand, opp, gotoAndStop;
function Laten_Player () {
super();
toSkill_temp = toSkill;
toAction_temp = toAction;
toStatus_temp = toStatus;
toSkill = noAct;
toAction = noAct;
}
function init(key) {
key_array = key;
setKey();
skill_array = new Array();
skill_mapping = new Array();
Object.registerClass("KeyControl", role_corn.KeyControl);
attachMovie("KeyControl", "newKeyControl", getNextHighestDepth());
newKeyControl.init(key_array, skill_array, skill_mapping, this);
}
function setKey() {
u = key_array[0].u;
d = key_array[0].d;
f = key_array[0].f;
b = key_array[0].b;
p = key_array[0].p;
k = key_array[0].k;
p_l = key_array[0].p_l;
k_l = key_array[0].k_l;
s = key_array[0].s;
s2 = key_array[0].s2;
}
function start_control() {
control = true;
toSkill = toSkill_temp;
toAction = toAction_temp;
toStatus = toStatus_temp;
toStatus_switch("stand");
}
function end_control(action) {
trace("end_control");
if (_level0.timeOver && (status_1 == "stand")) {
stand();
}
if (opp.isKO && (status_1 == "stand")) {
stand();
} else if (this[action] != undefined) {
this[action]();
} else {
status_1 = action;
(gotoAndStop(action));// not popped
}
}
function do_end() {
trace("do_end");
control = false;
toSkill = noAct;
toAction = noAct;
toStatus = end_control;
}
}
Symbol 1108 MovieClip [__Packages.Life_Power] Frame 0
class Life_Power extends MovieClip
{
var lifeBar_num_max, life_max, lifeBar_num, life_num, life_d, d_p, d_h, life_now, life_mc, lifeBar_mc, life2_mc, lifeBar_length, life_length, onEnterFrame, role, powerPoint_num, point_mc, bulletNum, bullet_mc, powerBar_mc, burst_mc, burst_timer;
function Life_Power () {
super();
init_life();
init_power();
lifeBar_num_max = 6;
}
function init_life() {
life_max = _level0.life_max;
lifeBar_num = _level0.lifeBar_num;
if (lifeBar_num > 1) {
life_num.gotoAndStop(lifeBar_num);
}
life_d = 30;
d_p = 30;
d_h = 2;
life_now = life_max;
life_mc = lifeBar_mc.bar;
life2_mc = lifeBar_mc.bar2;
lifeBar_length = life_mc._width;
}
function setLife() {
life_now = _level0.lifeLeft;
if (life_now > life_max) {
life_now = life_max;
}
life_length = (life_now * lifeBar_length) / life_max;
life_mc._width = life_length;
life2_mc._width = life_mc._width;
}
function reset() {
lifeBar_num = _level0.lifeBar_num;
if (lifeBar_num > 1) {
life_num.gotoAndStop(lifeBar_num);
}
life_now = life_max;
life_mc._width = lifeBar_length;
lifeBar_mc.lifeBg.gotoAndStop(1);
}
function lifeControl(Obj) {
if (_level0.timeOver) {
return(undefined);
}
if (life_now == 0) {
return(undefined);
}
var _local2 = Obj.d_rate;
if (_local2 == undefined) {
_local2 = 1;
}
var _local3 = _local2 * d_p;
life_now = life_now - _local3;
Obj.target.life = Obj.target.life - _local3;
if (life_now <= 0) {
if (lifeBar_num == lifeBar_num_max) {
life_now = life_now + life_max;
} else {
lifeBar_num--;
if (lifeBar_num > 0) {
life_num.gotoAndStop(lifeBar_num);
}
if (lifeBar_num <= 0) {
life_now = 0;
do_KO(Obj.target);
} else {
life_now = life_now + life_max;
}
}
}
life_length = (life_now * lifeBar_length) / life_max;
life_mc._width = life_length;
life_dec();
}
function life_dec() {
onEnterFrame = function () {
this.life2_mc._width = this.life2_mc._width - 2;
if (this.life2_mc._width <= this.life_mc._width) {
this.life2_mc._width = this.life_mc._width;
delete this.onEnterFrame;
}
};
}
function do_KO(role) {
_level0.KO = true;
role.opp.winTimes++;
_level0.winner = role.opp;
role.do_KO();
_level0.timer_end();
}
function redBlood() {
if (role.life > (role.life_max / 4)) {
return(undefined);
}
if (role.redBlood) {
return(undefined);
}
lifeBar_mc.lifeBg.gotoAndPlay(2);
role.redBlood = true;
}
function init_power() {
powerPoint_num = _level0.superPoint;
point_mc.powerPoint_txt.text = powerPoint_num;
bulletNum = _level0.bulletNum;
bullet_mc.bulletNum_txt.text = _level0.bulletNum;
}
function powerControl(Obj) {
if (Obj.action == "b_dec") {
if (_level0.player_type == "trainning") {
return(undefined);
}
if (bulletNum == 0) {
return(undefined);
}
bulletNum--;
bullet_mc.bulletNum_txt.text = bulletNum;
Obj.target.bulletNum = bulletNum;
return(undefined);
}
if (Obj.action == "dec") {
if (_level0.player_type == "trainning") {
return(undefined);
}
if (powerPoint_num == 0) {
return(undefined);
}
powerPoint_num--;
Obj.target.superPoint = powerPoint_num;
point_mc.powerPoint_txt.text = powerPoint_num;
return(undefined);
}
if (Obj.action == "init") {
init_power();
}
}
function point_add() {
powerBar_mc.point_mc.nextFrame();
}
function point_dec() {
point_mc.prevFrame();
}
function powerBurst() {
burst_mc.play();
burst_mc.lv = powerPoint_num;
burst_mc.burst_bar.mask._width = 100 * powerPoint_num;
if (_level0.player_type == "trainning") {
return(undefined);
}
powerBar_mc.point_mc.gotoAndStop(1);
powerBar_mc.gotoAndStop(1);
}
function startBurst() {
if (role.burst_mode == "defend") {
burst_mc.mode_mc.gotoAndStop(2);
}
clearInterval(burst_timer);
burst_timer = setInterval(this, "burst_dec", 500);
}
function burst_dec() {
var _local2 = (burst_mc.burst_bar.mask._width = burst_mc.burst_bar.mask._width - 2);
if (_local2 < 0) {
burst_end();
} else if (_local2 < 101) {
burst_mc.lv_mc.gotoAndStop("Lv1");
} else if (_local2 < 201) {
burst_mc.lv_mc.gotoAndStop("Lv2");
}
}
function burst_dec2(num) {
var _local2 = burst_mc.burst_bar.mask._width - num;
burst_mc.burst_bar.mask._width = _local2;
if (_local2 < 0) {
burst_end();
} else if (_local2 < 101) {
burst_mc.lv_mc.gotoAndStop("Lv1");
} else if (_local2 < 201) {
burst_mc.lv_mc.gotoAndStop("Lv2");
}
showBurst_dec(num);
}
function burst_end() {
if (!role.inBurst) {
return(undefined);
}
clearInterval(burst_timer);
burst_mc.play();
role.burst_end();
}
function showBurst_dec(num) {
burst_mc.decNum_mc.play();
burst_mc.decNum_mc.dec_num = num;
}
}
Symbol 1109 MovieClip [__Packages.Stage_effect] Frame 0
class Stage_effect extends MovieClip
{
var superFreeze_mc, createEmptyMovieClip, getNextHighestDepth, KO_Freeze_mc, hitFreeze_mc, colorObj, hit, attachMovie, isKO, camera_obj;
function Stage_effect () {
super();
superFreeze_mc = createEmptyMovieClip("superFreeze_mc", getNextHighestDepth());
KO_Freeze_mc = createEmptyMovieClip("KO_Freeze_mc", getNextHighestDepth());
hitFreeze_mc = createEmptyMovieClip("hitFreeze_mc", getNextHighestDepth());
colorObj = new Object();
colorObj.normal = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
colorObj.black = {ra:"0", rb:"0", ga:"0", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
colorObj.white = {ra:"100", rb:"255", ga:"100", gb:"255", ba:"100", bb:"255", aa:"100", ab:"255"};
}
function hitFire(hitType, hitFire_x, hitFire_y) {
var _local2 = getNextHighestDepth();
hit = attachMovie(hitType, "hit", _local2);
hit._x = hitFire_x;
hit._y = hitFire_y;
}
function downEff(hitType, hitFire_x, hitFire_y, dir) {
var _local3 = getNextHighestDepth();
var _local2 = attachMovie(hitType, "down", _local3);
_local2._x = hitFire_x;
_local2._y = hitFire_y;
_local2._xscale = dir * 100;
}
function superStart(s_type, dx, dy, time_f) {
_level0.shinningBG.gotoAndPlay("super");
var _local3 = getNextHighestDepth();
var _local2 = attachMovie(s_type, "ss", _local3);
_local2._x = dx;
_local2._y = dy;
superFreeze(time_f);
}
function superFreeze(f) {
var time_f = f;
var P1_s = _level0.P1_role[_level0.P1_role.status_1];
var P2_s = _level0.P2_role[_level0.P2_role.status_1];
_level0.inFreeze = true;
_level0.P1_role.inFreeze = true;
_level0.P2_role.inFreeze = true;
P1_s.stop();
P2_s.stop();
superFreeze_mc.onEnterFrame = function () {
if (time_f > 0) {
P1_s.stop();
P2_s.stop();
time_f--;
} else {
_level0.inFreeze = false;
_level0.P1_role.inFreeze = false;
_level0.P2_role.inFreeze = false;
P1_s.play();
P2_s.play();
_level0.P1_role.skill_restart();
_level0.P2_role.skill_restart();
delete this.onEnterFrame;
}
};
}
function KO_Freeze(time_f) {
var P1_s = _level0.P1_role[_level0.P1_role.status_1];
var P2_s = _level0.P2_role[_level0.P2_role.status_1];
isKO = true;
_level0.P1_role.inFreeze = true;
_level0.P2_role.inFreeze = true;
P1_s.stop();
P2_s.stop();
KO_eff();
var owner = this;
KO_Freeze_mc.onEnterFrame = function () {
if (time_f > 0) {
P1_s.stop();
P2_s.stop();
time_f--;
} else {
owner.isKO = false;
_level0.P1_role.inFreeze = false;
_level0.P2_role.inFreeze = false;
P1_s.play();
P2_s.play();
owner.KO_eff_end();
delete this.onEnterFrame;
}
};
}
function hitFreeze(f) {
if (isKO) {
return(undefined);
}
var time_f = f;
var P1_s = _level0.P1_role[_level0.P1_role.status_1];
var P2_s = _level0.P2_role[_level0.P2_role.status_1];
_level0.P1_role.inFreeze = true;
_level0.P2_role.inFreeze = true;
P1_s.stop();
P2_s.stop();
hitFreeze_mc.onEnterFrame = function () {
if (time_f > 0) {
P1_s.stop();
P2_s.stop();
time_f--;
} else {
_level0.P1_role.inFreeze = false;
_level0.P2_role.inFreeze = false;
P1_s.play();
P2_s.play();
delete this.onEnterFrame;
}
};
}
function showOK_txt() {
_level0.element_mc.attachMovie("KO_mc", "KO_mc", _level0.depth_ko, {_x:330, _y:150});
}
function endOK_txt() {
_level0.element_mc.KO_mc.gotoAndPlay("out");
}
function KO_camera() {
camera_obj = attachMovie("shinning_g", "KO_camera_mc", 102, {_x:hit._x, _y:hit._y});
}
function KO_camera_end() {
camera_obj.removeMovieClip();
}
function KO_eff() {
_level0.shinningBG.gotoAndPlay("KO");
changeColor(_level0.P1_mc, "black");
changeColor(_level0.P2_mc, "black");
changeColor(_level0.effect_mc, "black");
showOK_txt();
KO_camera();
}
function KO_eff_end() {
_level0.shinningBG.gotoAndStop(1);
changeColor(_level0.P1_mc, "normal");
changeColor(_level0.P2_mc, "normal");
changeColor(_level0.effect_mc, "normal");
endOK_txt();
KO_camera_end();
}
function changeColor(char, cc) {
var _local2 = new Color(char);
var _local3 = colorObj[cc];
_local2.setTransform(_local3);
}
var KO_time = 15;
}
Symbol 1110 MovieClip [__Packages.HitCounter] Frame 0
class HitCounter extends MovieClip
{
var _y, _visible, gotoAndStop, hits_mc, _x, gotoAndPlay;
function HitCounter () {
super();
_y = 200;
_visible = false;
}
function showHits(hitFire_x) {
hits++;
if (hits > 1) {
(gotoAndStop(1));// not popped
hits_mc.gotoAndPlay(1);
hits_mc.num_mc.hits_txt.text = hits;
hits_mc.num_mc.hits2_txt.text = hits;
_x = hitFire_x;
if (hitFire_x > _level0.egde_max) {
_x = _level0.egde_max;
} else if (hitFire_x < _level0.egde_min) {
_x = _level0.egde_min;
}
_visible = true;
}
}
function stopCount(role) {
if (role != _level0.hurter) {
return(undefined);
}
if (hits > 1) {
(gotoAndPlay("showHits"));// not popped
}
hits = 0;
}
function clearHits() {
(gotoAndStop(1));// not popped
_visible = false;
}
function showCount(hitFire_x) {
(gotoAndPlay("count"));// not popped
_x = hitFire_x;
if (hitFire_x > _level0.egde_max) {
_x = _level0.egde_max;
} else if (hitFire_x < _level0.egde_min) {
_x = _level0.egde_min;
}
_visible = true;
}
function clearCount() {
(gotoAndStop(1));// not popped
_visible = false;
}
var hits = 0;
}
Symbol 1111 MovieClip [__Packages.HitCheck] Frame 0
class HitCheck extends MovieClip
{
var _name, hitValue, beatArea, role, opp, _parent, onEnterFrame, _x, _y;
function HitCheck () {
super();
_name = "area";
}
function start_hitCheck(obj, r) {
hitValue = obj;
beatArea = this;
role = r;
opp = role.opp;
if ((opp.status_3 == "hurt") && (!hitValue.reCheck)) {
return(undefined);
}
if (hitValue.isObj) {
role.flyingObj = _parent;
}
onEnterFrame = do_hitCheck;
do_hitCheck();
}
function do_hitCheck() {
if (_level0.inFreeze) {
return(undefined);
}
if ((opp.status_3 == "down") && (hitValue.hitPos != "land")) {
return(undefined);
}
if (beatArea.hitTest(opp[opp.status_1].body)) {
role.onHit = true;
hitValue.checkTimes--;
if (hitValue.checkTimes == 0) {
stop_hitCheck();
}
if (hitValue.isObj) {
_parent.play();
}
role.doHit(hitValue);
opp.doHurt(hitValue);
} else {
role.onHit = false;
}
}
function stop_hitCheck() {
delete onEnterFrame;
}
function getPosY() {
var _local2 = new Object();
_local2.x = _x;
_local2.y = _y;
_parent.localToGlobal(_local2);
return(_local2.y);
}
}
Symbol 1112 MovieClip [__Packages.HitCheck_obj] Frame 0
class HitCheck_obj extends MovieClip
{
var _name, dir, _parent, hitValue, beatArea, role, opp, onEnterFrame, obj_Vx, obj_Vy, obj_level, obj_Vg, _x, _y;
function HitCheck_obj () {
super();
_name = "area";
dir = _parent.dir;
}
function start_hitCheck(obj, r) {
hitValue = obj;
beatArea = this;
role = r;
opp = role.opp;
if ((opp.status_3 == "hurt") && (!hitValue.reCheck)) {
return(undefined);
}
if (hitValue.isObj) {
role.flyingObj = _parent;
}
onEnterFrame = do_hitCheck;
do_hitCheck();
}
function do_hitCheck() {
if (_level0.inFreeze) {
return(undefined);
}
if ((obj_Vx != 0) || (obj_Vy != 0)) {
do_move();
}
if ((opp.status_3 == "down") && (hitValue.hitPos != "land")) {
return(undefined);
}
if (beatArea.hitTest(opp[opp.status_1].body)) {
role.onHit = true;
hitValue.checkTimes--;
role.doHit(hitValue);
opp.doHurt(hitValue);
if (hitValue.checkTimes == 0) {
stop_hitCheck();
}
if (hitValue.isObj) {
do_hitOpp();
}
} else if (hitValue.isObj) {
var _local3 = opp._parent.skill_loader;
if (_local3.getNextHighestDepth() > 0) {
var _local4;
for (_local4 in _local3) {
var _local2 = _local3[_local4].area;
if (_local2.hitTest(this)) {
if (obj_level > _local2.obj_level) {
_local2.do_hitObj();
} else if (obj_level == _local2.obj_level) {
_local2.do_hitObj();
do_hitObj();
} else {
do_hitObj();
}
}
}
}
} else {
role.onHit = false;
}
}
function do_move() {
if (obj_Vx != 0) {
_parent._x = _parent._x + (obj_Vx * dir);
}
if (obj_Vy != 0) {
_parent._y = _parent._y + obj_Vy;
}
if (obj_Vg != 0) {
obj_Vy = obj_Vy + obj_Vg;
}
var _local2 = _parent._x + _level0.char_mc._x;
if ((_local2 > 700) || (_local2 < -50)) {
_parent.removeMovieClip();
}
}
function stop_hitCheck() {
delete onEnterFrame;
}
function getPosY() {
var _local2 = new Object();
_local2.x = _x;
_local2.y = _y;
_parent.localToGlobal(_local2);
return(_local2.y);
}
function do_hitOpp() {
stop_hitCheck();
if (_parent.hit != undefined) {
_parent.hit();
} else {
_parent.play();
}
}
function do_hitObj() {
stop_hitCheck();
if (_parent.hit != undefined) {
_parent.hit();
} else {
_parent.play();
}
}
}
Symbol 1113 MovieClip [__Packages.Bullet] Frame 0
class Bullet extends MovieClip
{
function Bullet () {
super();
}
function init() {
}
function control() {
}
function hit() {
}
}
Symbol 1114 MovieClip [__Packages.Bullet_tank] Frame 0
class Bullet_tank extends Bullet
{
var dir, _x, _xscale, play;
function Bullet_tank () {
super();
}
function init() {
if (dir < 0) {
_x = _level0.stage_with - _level0.char_mc._x;
_xscale = -100;
} else {
_x = 0;
_xscale = 100;
}
}
function control() {
}
function hit() {
play();
}
}
Symbol 1115 MovieClip [__Packages.Bullet_satelite] Frame 0
class Bullet_satelite extends Bullet
{
var _x, opp;
function Bullet_satelite () {
super();
}
function init() {
_x = opp._x;
}
function control() {
}
function hit() {
}
}
Symbol 1116 MovieClip [__Packages.Bullet_atom] Frame 0
class Bullet_atom extends Bullet
{
var V, dir, _x, _xscale, Vx, Vy, onEnterFrame, _y, removeMovieClip, gotoAndStop;
function Bullet_atom () {
super();
V = 20;
}
function init() {
if (dir < 0) {
_x = _level0.stage_with - _level0.char_mc._x;
_xscale = -100;
} else {
_x = 0;
_xscale = 100;
}
Vx = 13 * dir;
Vy = 10;
onEnterFrame = control;
}
function control() {
if (_level0.inFreeze) {
return(undefined);
}
_x = _x + Vx;
_y = _y + Vy;
if (_y >= _level0.land_Y) {
land();
} else if ((_x > (_level0.stage_with + 100)) || (_x < -100)) {
removeMovieClip();
}
}
function land() {
delete onEnterFrame;
_y = _level0.land_Y;
gotoAndStop("boom");
}
function hit() {
}
}
Symbol 1117 MovieClip [__Packages.Bullet_SOL] Frame 0
class Bullet_SOL extends Bullet
{
var V, _x, opp, Vy, onEnterFrame, _y, play;
function Bullet_SOL () {
super();
V = 20;
}
function init() {
_x = opp._x;
Vy = V;
onEnterFrame = control;
}
function control() {
if (_level0.inFreeze) {
return(undefined);
}
_y = _y + Vy;
Vy = Vy + _level0.g;
if (_y >= _level0.land_Y) {
land();
}
}
function land() {
delete onEnterFrame;
_y = _level0.land_Y;
_level0.shake_mc.shakeStart(3);
play();
}
function hit() {
}
}
Symbol 1118 MovieClip [__Packages.Bullet_plane] Frame 0
class Bullet_plane extends Bullet
{
var V, dir, _x, _xscale, opp, _y, Vx, Vy, onEnterFrame, removeMovieClip, gotoAndStop;
function Bullet_plane () {
super();
V = 20;
}
function init() {
if (dir < 0) {
_x = _level0.stage_with - _level0.char_mc._x;
_xscale = -100;
} else {
_x = 0;
_xscale = 100;
}
var _local4 = opp._x - _x;
var _local3 = (opp._y - 50) - _y;
var _local2 = Math.atan(_local3 / _local4);
Vx = (V * Math.cos(_local2 * dir)) * dir;
Vy = V * Math.sin(_local2 * dir);
onEnterFrame = control;
}
function control() {
if (_level0.inFreeze) {
return(undefined);
}
_x = _x + Vx;
_y = _y + Vy;
if (_y > _level0.land_Y) {
hit();
} else if ((_x > (_level0.stage_with + 100)) || (_x < -100)) {
removeMovieClip();
}
}
function hit() {
delete onEnterFrame;
gotoAndStop("boom");
}
}
Symbol 1119 MovieClip [__Packages.FlyingObj] Frame 0
class FlyingObj extends MovieClip
{
var _visible, dir, _parent, onEnterFrame;
function FlyingObj () {
super();
_visible = false;
dir = _parent.dir;
control();
}
function control() {
onEnterFrame = function () {
if (_level0.inFreeze) {
return(undefined);
}
this._parent._x = this._parent._x + (this.Vx * this.dir);
var _local2 = this._parent._x + _level0.char_mc._x;
if ((_local2 > 700) || (_local2 < -50)) {
this._parent.removeMovieClip();
}
};
}
function hit() {
_parent.hit = function () {
this.stop_hitCheck();
this._parent.play();
};
}
}
Symbol 1120 MovieClip [__Packages.Bullet_boom] Frame 0
class Bullet_boom extends Bullet
{
var V, Vy, onEnterFrame, _y, play;
function Bullet_boom () {
super();
V = 0;
}
function init() {
Vy = V;
onEnterFrame = control;
}
function control() {
if (_level0.inFreeze) {
return(undefined);
}
_y = _y + Vy;
Vy = Vy + _level0.g;
if (_y > _level0.land_Y) {
hit();
}
}
function hit() {
delete onEnterFrame;
play();
}
}
Symbol 1121 MovieClip [__Packages.Bullet_missile] Frame 0
class Bullet_missile extends Bullet
{
var V, onEnterFrame, _x, Vx, _y, Vy, removeMovieClip, dis, dx, opp, dy, dir, angle_1, gotoAndStop;
function Bullet_missile () {
super();
V = 20;
}
function init() {
onEnterFrame = control;
}
function control() {
if (_level0.inFreeze) {
return(undefined);
}
charse();
_x = _x + Vx;
_y = _y + Vy;
if (_y > _level0.land_Y) {
hit();
} else if ((_x > (_level0.stage_with + 100)) || (_x < -100)) {
removeMovieClip();
}
}
function control2() {
if (_level0.inFreeze) {
return(undefined);
}
_x = _x + Vx;
_y = _y - Vy;
Vy = Vy - _level0.g;
if (_y > _level0.land_Y) {
hit();
} else if ((_x > (_level0.stage_with + 100)) || (_x < -100)) {
removeMovieClip();
}
}
function charse() {
if (Math.abs(dis) < 100) {
return(undefined);
}
dx = opp._x - _x;
dy = (opp._y - 50) - _y;
if (dx < 0) {
dir = -1;
} else if (dx > 0) {
dir = 1;
}
angle_1 = Math.atan(dy / dx);
dis = dx / Math.cos(angle_1);
Vx = (V * Math.cos(angle_1 * dir)) * dir;
Vy = V * Math.sin(angle_1 * dir);
}
function hit() {
delete onEnterFrame;
gotoAndStop("boom");
}
}
Symbol 1122 MovieClip [__Packages.Bullet_bomb3] Frame 0
class Bullet_bomb3 extends Bullet
{
var onEnterFrame, _y, gotoAndPlay, gotoAndStop;
function Bullet_bomb3 () {
super();
}
function init() {
onEnterFrame = control;
}
function control() {
if (_level0.inFreeze) {
return(undefined);
}
if (_y >= _level0.land_Y) {
land();
}
}
function land() {
delete onEnterFrame;
_y = _level0.land_Y;
gotoAndPlay("land");
}
function hit() {
delete onEnterFrame;
gotoAndStop("boom");
}
}
Symbol 1123 MovieClip [__Packages.Stage_shake] Frame 0
class Stage_shake extends MovieClip
{
var shake_v, dir_x, dir_y, seg, shake_times, onEnterFrame;
function Stage_shake () {
super();
shake_v = 10;
dir_x = 1;
dir_y = 1;
seg = 1;
}
function shakeStart(s_t) {
shake_times = s_t;
if (shake_times == null) {
shake_times = 0;
}
if (shake_times == 0) {
return(undefined);
}
onEnterFrame = function () {
this.shake();
};
}
function shake() {
if (seg == 1) {
seg = 2;
_level0._y = shake_v;
} else if (seg == 2) {
seg = 1;
_level0._x = 0;
_level0._y = 0;
shake_times--;
if (shake_times <= 0) {
delete onEnterFrame;
}
}
}
}
Symbol 154 MovieClip [bgm] Frame 1
stop();
isPlaying = 0;
Symbol 154 MovieClip [bgm] Frame 2
stop();
Symbol 176 MovieClip Frame 10
this.removeMovieClip();
Symbol 192 MovieClip [down2] Frame 9
this.removeMovieClip();
Symbol 216 MovieClip [down3] Frame 1
_level0.shake_mc.shakeStart(2);
Symbol 216 MovieClip [down3] Frame 12
this.removeMovieClip();
Symbol 220 MovieClip [countEff] Frame 7
this.removeMovieClip();
Symbol 227 MovieClip [hitFire2] Frame 8
this.removeMovieClip();
Symbol 243 MovieClip [hitFire3] Frame 8
this.removeMovieClip();
Symbol 255 MovieClip Frame 4
Symbol 255 MovieClip Frame 7
this.removeMovieClip();
Symbol 274 MovieClip [hitFire0] Frame 4
Symbol 274 MovieClip [hitFire0] Frame 10
this.removeMovieClip();
Symbol 276 MovieClip [hitfire_l] Frame 4
this.removeMovieClip();
Symbol 291 MovieClip [s4] Frame 1
_root.freezeEnable = 1;
_root.freezeCheck(10);
_root.s3.start();
Symbol 291 MovieClip [s4] Frame 8
_root.shinning_bg._visible = 0;
this.removeMovieClip();
Symbol 292 MovieClip [Stage_shake] Frame 1
#initclip 68
Object.registerClass("Stage_shake", Stage_shake);
#endinitclip
stop();
Symbol 299 MovieClip [s2] Frame 16
_root.shinning_bg._visible = 0;
this.removeMovieClip();
Symbol 300 MovieClip [shinningBG] Frame 1
stop();
Symbol 300 MovieClip [shinningBG] Frame 20
gotoAndPlay (1);
Symbol 300 MovieClip [shinningBG] Frame 22
gotoAndStop (1);
Symbol 300 MovieClip [shinningBG] Frame 29
stop();
Symbol 303 MovieClip Frame 1
stop();
_visible = false;
Symbol 306 MovieClip Frame 5
if (_level0.winner == _level0.P1_role) {
charID = _level0.charID_P1;
} else if (_level0.winner == _level0.P2_role) {
charID = _level0.charID_P2;
}
head_loader.attachMovie("head_win_" + charID, "head_win", 100);
Symbol 306 MovieClip Frame 19
stop();
Instance of Symbol 303 MovieClip in Symbol 306 MovieClip Frame 19
onClipEvent (keyDown) {
_level0.ok_snd.start();
_parent.play();
}
onClipEvent (mouseDown) {
_level0.ok_snd.start();
_parent.play();
}
Symbol 306 MovieClip Frame 20
_level0.transIn();
Symbol 306 MovieClip Frame 32
_level0.transOut();
_level0.nextBattle();
this.removeMovieClip();
Symbol 312 MovieClip Frame 1
function init_time() {
if (_level0.playTime == -1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
time_txt.text = _level0.playTime;
}
}
function timeStart() {
clearInterval(time_timer);
time_timer = setInterval(this, "time_dec", 1000);
}
function time_dec() {
time_txt.text--;
if (time_txt.text == 0) {
_level0.timeOut();
clearInterval(time_timer);
}
}
function timeOut() {
}
function timeStop() {
clearInterval(time_timer);
}
stop();
var time_timer;
init_time();
Symbol 312 MovieClip Frame 2
stop();
Symbol 315 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 8
gotoAndPlay (2);
Symbol 318 MovieClip Frame 1
stop();
Symbol 319 MovieClip [lifeBar] Frame 1
#initclip 48
Object.registerClass("lifeBar", Life_Power);
#endinitclip
Symbol 327 MovieClip Frame 1
stop();
Symbol 330 MovieClip Frame 1
stop();
Symbol 331 MovieClip [生命能量P1_mc] Frame 1
#initclip 49
Object.registerClass("\u751F\u547D\u80FD\u91CFP1_mc", Life_Power);
#endinitclip
Symbol 333 MovieClip Frame 1
stop();
Symbol 335 MovieClip Frame 1
stop();
Symbol 336 MovieClip [生命能量P2_mc] Frame 1
#initclip 50
Object.registerClass("\u751F\u547D\u80FD\u91CFP2_mc", Life_Power);
#endinitclip
Symbol 338 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 1
if (_level0.modeID == 2) {
this._visible = false;
}
Symbol 344 MovieClip [life_power] Frame 1
name1_txt.text = _level0.getName(_level0.charSelect_P1);
name2_txt.text = _level0.getName(_level0.charSelect_P2);
Symbol 346 Button
on (release) {
_level0.toMainMenu();
}
Symbol 348 Button
on (press) {
play();
}
Symbol 354 MovieClip Frame 1
stop();
Symbol 354 MovieClip Frame 2
stop();
Symbol 354 MovieClip Frame 3
gotoAndStop (1);
Symbol 358 MovieClip Frame 1
stop();
this._visible = false;
Symbol 358 MovieClip Frame 2
this._visible = true;
Symbol 358 MovieClip Frame 28
gotoAndStop (1);
Symbol 362 MovieClip Frame 1
if (_level0.modeID == 2) {
this._visible = false;
}
Symbol 363 MovieClip [menu_bottom] Frame 1
stop();
Instance of Symbol 354 MovieClip "sound_mc" in Symbol 363 MovieClip [menu_bottom] Frame 1
on (release) {
_root.setSound(this);
}
Symbol 376 MovieClip Frame 1
stop();
this._visible = false;
if ((_level0.modeID == 1) || (_level0.modeID == 3)) {
if (_level0.winner == _level0.P1_role) {
gotoAndStop (2);
}
}
Symbol 376 MovieClip Frame 2
stop();
this._visible = true;
var lifeLeft = int((_root.P1_role.life / _root.life_max) * 100);
var timeLeft = _root.life_power_mc.time_mc.time_txt.text;
var score1 = int((_root.P1_role.life / _root.life_max) * 1000);
var score2 = int(timeLeft * 10);
_root.score = _root.score + (score1 + score2);
num1_txt.text = lifeLeft + "%";
num2_txt.text = timeLeft;
score1_txt.text = score1;
score2_txt.text = score2;
score_txt.text = _root.score;
Symbol 377 MovieClip [winner] Frame 7
Symbol 377 MovieClip [winner] Frame 113
this.removeMovieClip();
Symbol 380 MovieClip [timeOut] Frame 58
_level0.timer_end();
this.removeMovieClip();
Symbol 390 MovieClip Frame 1
if (_level0.roundNum > 3) {
gotoAndPlay ("tie");
} else {
gotoAndPlay("r" + _level0.roundNum);
}
Symbol 390 MovieClip Frame 2
_level0.round1_s.start();
Symbol 390 MovieClip Frame 31
stop();
Symbol 390 MovieClip Frame 32
Symbol 390 MovieClip Frame 61
stop();
Symbol 390 MovieClip Frame 62
Symbol 390 MovieClip Frame 91
stop();
Symbol 390 MovieClip Frame 118
stop();
Symbol 393 MovieClip [start_mc] Frame 73
_level0.fight_s.start();
Symbol 393 MovieClip [start_mc] Frame 95
_level0.role_control();
Symbol 393 MovieClip [start_mc] Frame 106
stop();
if ((_level0.P1_role.control != true) || (_level0.P2_role.control != true)) {
_level0.role_control();
}
this.removeMovieClip();
Symbol 396 MovieClip [effect] Frame 1
#initclip 51
Object.registerClass("effect", Stage_effect);
#endinitclip
stop();
tt._visible = 0;
Symbol 397 MovieClip [trans] Frame 11
stop();
Symbol 397 MovieClip [trans] Frame 21
stop();
this.removeMovieClip();
Symbol 402 MovieClip Frame 1
play();
Symbol 402 MovieClip Frame 4
stop();
Symbol 403 MovieClip [counter] Frame 1
#initclip 52
Object.registerClass("counter", HitCounter);
#endinitclip
stop();
Symbol 403 MovieClip [counter] Frame 15
clearHits();
Symbol 403 MovieClip [counter] Frame 37
clearCount();
Symbol 404 MovieClip Frame 1
stop();
Instance of Symbol 90 MovieClip in Symbol 408 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 90 MovieClip in Symbol 410 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 90 MovieClip in Symbol 414 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 90 MovieClip in Symbol 415 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 90 MovieClip in Symbol 421 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 425 MovieClip [HitCheck_mc] Frame 1
#initclip 53
Object.registerClass("HitCheck_mc", HitCheck);
#endinitclip
stop();
this._visible = false;
hitV = {area:this, Vx:Vx, Vy:Vy, reCheck:reCheck, checkTimes:checkTimes, hitPos:hitPos, hurtBack:hurtBack, hurtAway:hurtAway, freezeTime:freezeTime, freezeTime2:freezeTime2, hitType:hitType, hitEff:hitEff, d_rate:d_rate, flag:flag, shake:shake, end_status:end_status, isObj:isObj};
this.start_hitCheck(hitV, _root.role_mc);
Instance of Symbol 90 MovieClip in Symbol 426 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 426 MovieClip Frame 5
_parent.start_move_Y1(_parent.Vy, _parent.Vx);
Symbol 426 MovieClip Frame 20
stop();
Symbol 426 MovieClip Frame 21
_root.attack = 1;
_level0[_root.enemy].AI_mc.defend();
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 426 MovieClip Frame 23
//component parameters
onClipEvent (construct) {
hurtBack = "hurt2";
hurtAway = "hurt6";
flag = 1;
end_status = "";
Vx = 17;
Vy = 0;
a = 3;
freezeTime2 = 0;
freezeTime = 4;
shake = 0;
d_rate = 1;
isObj = false;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "up";
}
Symbol 426 MovieClip Frame 28
stop();
Symbol 426 MovieClip Frame 36
stop();
Instance of Symbol 90 MovieClip in Symbol 427 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 427 MovieClip Frame 9
_parent.status_3 = "";
Symbol 427 MovieClip Frame 10
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 429 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 429 MovieClip Frame 9
_parent.status_3 = "";
Symbol 429 MovieClip Frame 10
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 432 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 432 MovieClip Frame 12
stop();
Instance of Symbol 90 MovieClip in Symbol 433 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 433 MovieClip Frame 19
stop();
Symbol 436 MovieClip Frame 1
this._visible = false;
role = _root.role_mc;
role.hurtAway_self(Vx, Vy, end_status);
Instance of Symbol 90 MovieClip in Symbol 437 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 436 MovieClip in Symbol 437 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
Vx = 8;
Vy = 10;
end_status = "none";
}
Symbol 437 MovieClip Frame 5
stop();
Symbol 437 MovieClip Frame 20
if (_parent.isKO) {
stop();
}
Symbol 437 MovieClip Frame 25
_parent.toStatus_switch("stand");
Symbol 438 MovieClip Frame 1
_parent.bodyTouch();
Instance of Symbol 90 MovieClip in Symbol 438 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 438 MovieClip Frame 3
_parent.toStatus_switch("stand");
Symbol 439 MovieClip Frame 1
_parent.bodyTouch();
Instance of Symbol 90 MovieClip in Symbol 439 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 439 MovieClip Frame 6
_parent.toStatus_switch("stand");
Symbol 445 MovieClip Frame 4
stop();
Symbol 446 MovieClip Frame 1
stop();
Instance of Symbol 90 MovieClip in Symbol 446 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 90 MovieClip in Symbol 447 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 447 MovieClip Frame 3
_level0.p_snd.start();
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 447 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
hurtBack = "hurt1";
hurtAway = "hurt6";
flag = 1;
end_status = "";
Vx = 16;
Vy = 0;
a = 3;
freezeTime2 = 0;
freezeTime = 4;
shake = 0;
d_rate = 1;
isObj = false;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 447 MovieClip Frame 7
_parent.toStatus_switch("stand");
Symbol 451 MovieClip Frame 1
this._visible = false;
role = _parent._parent;
if (Vy != 0) {
role.start_move_Y1(Vy, Vx, end_status, Vg);
} else {
role.start_move_X2(Vx);
}
Instance of Symbol 90 MovieClip in Symbol 452 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 452 MovieClip Frame 7
_level0.p_snd.start();
Instance of Symbol 451 MovieClip in Symbol 452 MovieClip Frame 7
//component parameters
onClipEvent (construct) {
Vx = 18;
Vy = 0;
Va = 0;
Vg = 0;
Vx_min = 0;
posY2 = "";
flag = "";
end_status = "none";
}
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 452 MovieClip Frame 7
//component parameters
onClipEvent (construct) {
hurtBack = "hurt1";
hurtAway = "hurt6";
flag = 1;
end_status = "";
Vx = 17;
Vy = 0;
a = 3;
freezeTime2 = 0;
freezeTime = 4;
shake = 0;
d_rate = 1;
isObj = false;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 452 MovieClip Frame 20
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 453 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 453 MovieClip Frame 2
_level0.k_snd.start();
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 453 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
hurtBack = "hurt2";
hurtAway = "hurt6";
flag = 1;
end_status = "";
Vx = 23;
Vy = 0;
a = 3;
freezeTime2 = 0;
freezeTime = 3;
shake = 0;
d_rate = 1;
isObj = false;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 453 MovieClip Frame 10
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 454 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 454 MovieClip Frame 6
_level0.k_snd.start();
Instance of Symbol 451 MovieClip in Symbol 454 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
Vx = 20;
Vy = 10;
Va = 1;
Vg = 0;
Vx_min = 0;
posY2 = "";
flag = "";
end_status = "land2";
}
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 454 MovieClip Frame 7
//component parameters
onClipEvent (construct) {
hurtBack = "hurt1";
hurtAway = "hurt6";
flag = 1;
end_status = "";
Vx = 23;
Vy = 0;
a = 3;
freezeTime2 = 0;
freezeTime = 3;
shake = 0;
d_rate = 1;
isObj = false;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 454 MovieClip Frame 10
stop();
Instance of Symbol 90 MovieClip in Symbol 456 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 456 MovieClip Frame 5
_level0.k_snd.start();
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 456 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
hurtBack = "";
hurtAway = "hurt4";
flag = 1;
end_status = "getup1";
Vx = 20;
Vy = -20;
a = 3;
freezeTime2 = 0;
freezeTime = 4;
shake = 0;
d_rate = 1.5;
isObj = false;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 456 MovieClip Frame 23
_parent.toStatus_switch("stand");
Symbol 462 MovieClip [hitCheck_obj] Frame 1
#initclip 54
Object.registerClass("hitCheck_obj", HitCheck_obj);
#endinitclip
stop();
this._visible = false;
hitV = {area:this, Vx:Vx, Vy:Vy, reCheck:reCheck, checkTimes:checkTimes, hitPos:hitPos, hurtBack:hurtBack, hurtAway:hurtAway, freezeTime:freezeTime, freezeTime2:freezeTime2, hitType:hitType, hitEff:hitEff, d_rate:d_rate, flag:flag, shake:shake, end_status:end_status, isObj:isObj};
this.start_hitCheck(hitV, _root.role_mc);
Instance of Symbol 90 MovieClip in Symbol 463 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 463 MovieClip Frame 7
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 0;
hurtBack = "";
hurtAway = "hurt3";
flag = 1;
end_status = "";
Vx = 20;
Vy = 15;
a = 3;
freezeTime2 = 0;
freezeTime = 5;
shake = 0;
d_rate = 1.5;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 463 MovieClip Frame 23
_parent.toStatus_switch("stand");
Symbol 466 MovieClip Frame 1
stop();
this._visible = 0;
role = _root.role_mc;
dir = _root.role_mc.dir;
dx = role._x + (this._x * dir);
dy = role._y + this._y;
role.superStart(s_type, f_time, dx, dy);
Symbol 468 MovieClip Frame 1
stop();
this._visible = false;
var pt = new Object();
pt.x = this._x;
pt.y = this._y;
_parent.localToGlobal(pt);
_root.role_mc.addSkill(name, this, Vx, Va);
Instance of Symbol 466 MovieClip in Symbol 469 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
s_type = "s2";
f_time = 10;
}
Instance of Symbol 468 MovieClip in Symbol 469 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
name = "s_soldier";
}
Instance of Symbol 90 MovieClip in Symbol 469 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 469 MovieClip Frame 26
_parent.toStatus_switch("stand");
Instance of Symbol 466 MovieClip in Symbol 470 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
s_type = "s2";
f_time = 10;
}
Instance of Symbol 468 MovieClip in Symbol 470 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
name = "s_soldier2";
}
Instance of Symbol 90 MovieClip in Symbol 470 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 470 MovieClip Frame 26
_parent.toStatus_switch("stand");
Instance of Symbol 466 MovieClip in Symbol 471 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
s_type = "s2";
f_time = 10;
}
Instance of Symbol 468 MovieClip in Symbol 471 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
name = "tank2";
}
Instance of Symbol 90 MovieClip in Symbol 471 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 471 MovieClip Frame 32
_parent.toStatus_switch("stand");
Symbol 473 MovieClip [role_saddam] Frame 1
stop();
Symbol 474 MovieClip [role_saddam_link] Frame 1
function addPlayer(type) {
var _local2 = _level0.level;
var _local1 = "role_saddam";
if (type == "cpu") {
if (_local2 == 1) {
Object.registerClass(_local1, Ryo_AI_Lv1);
} else if (_local2 == 2) {
Object.registerClass(_local1, Ryo_AI_Lv2);
} else if (_local2 == 3) {
Object.registerClass(_local1, Ryo_AI_Lv4);
}
} else if (type == "demo") {
} else {
Object.registerClass(_local1, Ryo_Player);
}
attachMovie(_local1, "role_mc", 100);
}
stop();
Instance of Symbol 90 MovieClip in Symbol 476 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 90 MovieClip in Symbol 477 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 90 MovieClip in Symbol 483 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 90 MovieClip in Symbol 484 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 90 MovieClip in Symbol 485 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 90 MovieClip in Symbol 487 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 487 MovieClip Frame 5
_parent.start_move_Y1(_parent.Vy, _parent.Vx);
Symbol 487 MovieClip Frame 20
stop();
Symbol 487 MovieClip Frame 21
_root.attack = 1;
_level0[_root.enemy].AI_mc.defend();
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 487 MovieClip Frame 23
//component parameters
onClipEvent (construct) {
hurtBack = "hurt2";
hurtAway = "hurt6";
flag = 1;
end_status = "";
Vx = 17;
Vy = 0;
a = 3;
freezeTime2 = 0;
freezeTime = 4;
shake = 0;
d_rate = 1;
isObj = false;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "up";
}
Symbol 487 MovieClip Frame 28
stop();
Instance of Symbol 90 MovieClip in Symbol 490 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 490 MovieClip Frame 9
_parent.status_3 = "";
Symbol 490 MovieClip Frame 10
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 492 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 492 MovieClip Frame 9
_parent.status_3 = "";
Symbol 492 MovieClip Frame 10
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 493 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 493 MovieClip Frame 12
stop();
Instance of Symbol 90 MovieClip in Symbol 494 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 494 MovieClip Frame 19
stop();
Instance of Symbol 90 MovieClip in Symbol 495 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 436 MovieClip in Symbol 495 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
Vx = 8;
Vy = 10;
end_status = "none";
}
Symbol 495 MovieClip Frame 5
stop();
Symbol 495 MovieClip Frame 20
if (_parent.isKO) {
stop();
}
Symbol 495 MovieClip Frame 25
_parent.toStatus_switch("stand");
Symbol 496 MovieClip Frame 1
_parent.bodyTouch();
Instance of Symbol 90 MovieClip in Symbol 496 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 496 MovieClip Frame 3
_parent.toStatus_switch("stand");
Symbol 497 MovieClip Frame 1
_parent.bodyTouch();
Instance of Symbol 90 MovieClip in Symbol 497 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 497 MovieClip Frame 6
_parent.toStatus_switch("stand");
Symbol 499 MovieClip Frame 1
stop();
Instance of Symbol 90 MovieClip in Symbol 499 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 90 MovieClip in Symbol 500 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 500 MovieClip Frame 3
_level0.p_snd.start();
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 500 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
hurtBack = "hurt1";
hurtAway = "hurt6";
flag = 1;
end_status = "";
Vx = 16;
Vy = 0;
a = 3;
freezeTime2 = 0;
freezeTime = 4;
shake = 0;
d_rate = 1;
isObj = false;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 500 MovieClip Frame 7
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 502 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 502 MovieClip Frame 6
_level0.p_snd.start();
Instance of Symbol 451 MovieClip in Symbol 502 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
Vx = 18;
Vy = 0;
Va = 0;
Vg = 0;
Vx_min = 0;
posY2 = "";
flag = "";
end_status = "none";
}
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 502 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
hurtBack = "hurt1";
hurtAway = "hurt6";
flag = 1;
end_status = "";
Vx = 17;
Vy = 0;
a = 3;
freezeTime2 = 0;
freezeTime = 4;
shake = 0;
d_rate = 1;
isObj = false;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 502 MovieClip Frame 19
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 503 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 503 MovieClip Frame 5
_level0.k_snd.start();
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 503 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
hurtBack = "hurt2";
hurtAway = "hurt3";
flag = 1;
end_status = "getup1";
Vx = 20;
Vy = 0;
a = 3;
freezeTime2 = 0;
freezeTime = 4;
shake = 0;
d_rate = 1;
isObj = false;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 503 MovieClip Frame 17
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 504 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 504 MovieClip Frame 5
_level0.k_snd.start();
Instance of Symbol 451 MovieClip in Symbol 504 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
Vx = 18;
Vy = 0;
Va = 3;
Vg = 0;
Vx_min = 0;
posY2 = "";
flag = "";
end_status = "none";
}
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 504 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
hurtBack = "hurt2";
hurtAway = "hurt3";
flag = 1;
end_status = "getup1";
Vx = 25;
Vy = 0;
a = 3;
freezeTime2 = 0;
freezeTime = 4;
shake = 0;
d_rate = 1.5;
isObj = false;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 504 MovieClip Frame 20
_parent.toStatus_switch("stand");
Symbol 507 MovieClip Frame 1
this._visible = 0;
role = _parent._parent;
if (Vy == 0) {
role.move_HitTest(this, attFrame, endFrame, S, Vx);
} else {
_root.inAir(Vy, Vx * _root.roleSide, target);
posY = _root._y - dy;
onEnterFrame = function () {
if ((_root._y > posY) && (_root.Vy < 0)) {
_parent.play();
delete this.onEnterFrame;
}
};
}
Instance of Symbol 90 MovieClip in Symbol 509 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 509 MovieClip Frame 5
stop();
Instance of Symbol 507 MovieClip in Symbol 509 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
Vx = 25;
Vy = 0;
Va = 0;
S = 600;
dis = 100;
attFrame = "s2";
endFrame = "s2";
target = "stand";
}
Symbol 509 MovieClip Frame 7
_level0.p_snd.start();
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 509 MovieClip Frame 7
//component parameters
onClipEvent (construct) {
hurtBack = "";
hurtAway = "hurt3";
flag = 1;
end_status = "";
Vx = 30;
Vy = 20;
a = 2;
freezeTime2 = 0;
freezeTime = 7;
shake = 0;
d_rate = 1.5;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 509 MovieClip Frame 16
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 517 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 517 MovieClip Frame 7
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 0;
hurtBack = "hurt2";
hurtAway = "hurt3";
flag = 1;
end_status = "";
Vx = 10;
Vy = 10;
a = 3;
freezeTime2 = 0;
freezeTime = 0;
shake = 0;
d_rate = 0.5;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 517 MovieClip Frame 11
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 0;
hurtBack = "hurt2";
hurtAway = "hurt3";
flag = 1;
end_status = "";
Vx = 10;
Vy = 10;
a = 3;
freezeTime2 = 0;
freezeTime = 0;
shake = 0;
d_rate = 0.5;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 517 MovieClip Frame 24
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 523 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 466 MovieClip in Symbol 523 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
s_type = "s2";
f_time = 10;
}
Instance of Symbol 468 MovieClip in Symbol 523 MovieClip Frame 7
//component parameters
onClipEvent (construct) {
name = "bullet_tank";
}
Symbol 523 MovieClip Frame 26
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 525 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 466 MovieClip in Symbol 525 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
s_type = "s2";
f_time = 10;
}
Instance of Symbol 468 MovieClip in Symbol 525 MovieClip Frame 7
//component parameters
onClipEvent (construct) {
name = "plane2";
}
Symbol 525 MovieClip Frame 29
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 526 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 466 MovieClip in Symbol 526 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
s_type = "s2";
f_time = 10;
}
Instance of Symbol 468 MovieClip in Symbol 526 MovieClip Frame 7
//component parameters
onClipEvent (construct) {
name = "Bullet_atom";
}
Symbol 526 MovieClip Frame 28
_parent.toStatus_switch("stand");
Symbol 528 MovieClip [role_kim] Frame 1
stop();
Symbol 529 MovieClip [role_kim_link] Frame 1
function addPlayer(type) {
var _local2 = _level0.level;
var _local1 = "role_kim";
if (type == "cpu") {
if (_local2 == 1) {
Object.registerClass(_local1, Kim_AI_Lv1);
} else if (_local2 == 2) {
Object.registerClass(_local1, Kim_AI_Lv2);
} else if (_local2 == 3) {
Object.registerClass(_local1, Kim_AI_Lv4);
}
} else if (type == "demo") {
} else {
Object.registerClass(_local1, Kim_Player);
}
attachMovie(_local1, "role_mc", 100);
}
stop();
Symbol 541 MovieClip Frame 1
stop();
Symbol 549 MovieClip Frame 1
stop();
Symbol 552 MovieClip Frame 1
stop();
Symbol 555 MovieClip Frame 1
stop();
Symbol 557 Button
on (release) {
_root.setDifficult(1);
}
Symbol 558 Button
on (release) {
_root.setDifficult(2);
}
Symbol 559 Button
on (release) {
_root.setDifficult(3);
}
Symbol 560 MovieClip Frame 1
_root.getDifficult(this);
Symbol 564 MovieClip Frame 1
stop();
Symbol 567 MovieClip Frame 1
stop();
Symbol 568 Button
on (release) {
_root.setRound(1);
}
Symbol 569 Button
on (release) {
_root.setRound(2);
}
Symbol 570 MovieClip Frame 1
_root.getRound(this);
Symbol 575 MovieClip Frame 1
stop();
Symbol 588 Button
on (release) {
_parent.stageSelect("bush1");
}
Symbol 589 Button
on (release) {
_parent.stageSelect("bush2");
}
Symbol 590 Button
on (release) {
_parent.stageSelect("laden1");
}
Symbol 591 Button
on (release) {
_parent.stageSelect("laden2");
}
Symbol 592 Button
on (release) {
_parent.stageSelect("saddam1");
}
Symbol 593 Button
on (release) {
_parent.stageSelect("saddam2");
}
Symbol 594 Button
on (release) {
_parent.stageSelect("kim1");
}
Symbol 595 Button
on (release) {
_parent.stageSelect("kim2");
}
Symbol 599 MovieClip [charSelect] Frame 1
function moveToChar(id) {
if (now_select == 1) {
s1_mc.gotoAndStop(id);
} else {
s2_mc.gotoAndStop(id);
}
}
var char_list = _level0.char_list;
var now_select = 1;
if (_level0.modeID == 1) {
gotoAndPlay ("mode1");
} else if (_level0.modeID == 2) {
if (_level0.P2_type == "cpu") {
gotoAndPlay ("mode2_1");
} else {
gotoAndPlay ("mode2_2");
}
} else if (_level0.modeID == 3) {
gotoAndPlay ("mode3");
}
Instance of Symbol 534 MovieClip in Symbol 599 MovieClip [charSelect] Frame 1
on (rollOver) {
_parent.moveToChar(2);
}
on (release) {
_parent.selectChar(2);
}
Instance of Symbol 538 MovieClip in Symbol 599 MovieClip [charSelect] Frame 1
on (rollOver) {
_parent.moveToChar(1);
}
on (release) {
_parent.selectChar(1);
}
Instance of Symbol 472 MovieClip in Symbol 599 MovieClip [charSelect] Frame 1
on (rollOver) {
_parent.moveToChar(4);
}
on (release) {
_parent.selectChar(4);
}
Instance of Symbol 527 MovieClip in Symbol 599 MovieClip [charSelect] Frame 1
on (rollOver) {
_parent.moveToChar(3);
}
on (release) {
_parent.selectChar(3);
}
Symbol 599 MovieClip [charSelect] Frame 2
function selectChar(id) {
_level0.charSelect_P1 = char_list[id - 1];
_level0.charID_P1 = id - 1;
_level0.setOpponent();
play();
}
stop();
Symbol 599 MovieClip [charSelect] Frame 10
stop();
_level0.selectOK();
Symbol 599 MovieClip [charSelect] Frame 11
function selectChar(id) {
_level0.charSelect_P1 = char_list[id - 1];
_level0.charID_P1 = id - 1;
_level0.setOpponent();
play();
}
stop();
Symbol 599 MovieClip [charSelect] Frame 19
stop();
_level0.selectOK();
Symbol 599 MovieClip [charSelect] Frame 20
function selectChar(id) {
if (now_select == 1) {
_level0.charSelect_P1 = char_list[id - 1];
_level0.charID_P1 = id - 1;
now_select = 2;
play();
}
}
stop();
Symbol 599 MovieClip [charSelect] Frame 23
function selectChar(id) {
if (now_select == 1) {
_level0.charSelect_P1 = char_list[id - 1];
_level0.charID_P1 = id - 1;
now_select = 2;
} else if (now_select == 2) {
_level0.charSelect_P2 = char_list[id - 1];
_level0.charID_P2 = id - 1;
now_select = 3;
play();
}
}
stop();
Symbol 599 MovieClip [charSelect] Frame 29
gotoAndPlay ("stage");
Symbol 599 MovieClip [charSelect] Frame 30
function selectChar(id) {
if (now_select == 1) {
_level0.charSelect_P1 = char_list[id - 1];
_level0.charID_P1 = id - 1;
now_select = 2;
} else if (now_select == 2) {
_level0.charSelect_P2 = char_list[id - 1];
_level0.charID_P2 = id - 1;
now_select = 3;
play();
}
}
stop();
Symbol 599 MovieClip [charSelect] Frame 39
gotoAndPlay ("stage");
Symbol 599 MovieClip [charSelect] Frame 40
function stageSelect(id) {
_level0.bg_select = id;
play();
}
stop();
Symbol 599 MovieClip [charSelect] Frame 47
_level0.selectOK();
Symbol 600 MovieClip [KeyControl] Frame 1
stop();
Instance of Symbol 90 MovieClip in Symbol 601 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 90 MovieClip in Symbol 604 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 90 MovieClip in Symbol 617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 90 MovieClip in Symbol 618 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 90 MovieClip in Symbol 619 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 621 MovieClip Frame 1
stop();
Instance of Symbol 90 MovieClip in Symbol 621 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 90 MovieClip in Symbol 627 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 627 MovieClip Frame 5
_parent.start_move_Y1(_parent.Vy, _parent.Vx);
Symbol 627 MovieClip Frame 19
stop();
Symbol 627 MovieClip Frame 20
_root.attack = 1;
_level0[_root.enemy].AI_mc.defend();
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 627 MovieClip Frame 22
//component parameters
onClipEvent (construct) {
hurtBack = "hurt2";
hurtAway = "hurt6";
flag = 1;
end_status = "";
Vx = 17;
Vy = 0;
a = 3;
freezeTime2 = 0;
freezeTime = 4;
shake = 0;
d_rate = 1;
isObj = false;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "up";
}
Symbol 627 MovieClip Frame 27
stop();
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 627 MovieClip Frame 30
//component parameters
onClipEvent (construct) {
hurtBack = "hurt2";
hurtAway = "hurt6";
flag = 1;
end_status = "";
Vx = 15;
Vy = 0;
a = 4;
freezeTime2 = 0;
freezeTime = 4;
shake = 0;
d_rate = 1;
isObj = false;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "up";
}
Symbol 627 MovieClip Frame 35
stop();
Instance of Symbol 90 MovieClip in Symbol 628 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 628 MovieClip Frame 9
_parent.status_3 = "";
Symbol 628 MovieClip Frame 10
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 631 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 631 MovieClip Frame 9
_parent.status_3 = "";
Symbol 631 MovieClip Frame 10
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 632 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 632 MovieClip Frame 12
stop();
Instance of Symbol 90 MovieClip in Symbol 633 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 633 MovieClip Frame 19
stop();
Instance of Symbol 90 MovieClip in Symbol 634 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 436 MovieClip in Symbol 634 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
Vx = 8;
Vy = 10;
end_status = "none";
}
Symbol 634 MovieClip Frame 5
stop();
Symbol 634 MovieClip Frame 20
if (_parent.isKO) {
stop();
}
Symbol 634 MovieClip Frame 25
_parent.toStatus_switch("stand");
Symbol 635 MovieClip Frame 1
_parent.bodyTouch();
Instance of Symbol 90 MovieClip in Symbol 635 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 635 MovieClip Frame 4
_parent.toStatus_switch("stand");
Symbol 636 MovieClip Frame 1
_parent.bodyTouch();
Instance of Symbol 90 MovieClip in Symbol 636 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 636 MovieClip Frame 7
_parent.toStatus_switch("stand");
Symbol 639 MovieClip Frame 1
stop();
Instance of Symbol 90 MovieClip in Symbol 639 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 90 MovieClip in Symbol 640 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 640 MovieClip Frame 2
_level0.p_snd.start();
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 640 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
hurtBack = "hurt1";
hurtAway = "hurt6";
flag = 1;
end_status = "";
Vx = 16;
Vy = 0;
a = 3;
freezeTime2 = 0;
freezeTime = 4;
shake = 0;
d_rate = 1;
isObj = false;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 640 MovieClip Frame 7
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 650 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 451 MovieClip in Symbol 650 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
Vx = 20;
Vy = 0;
Va = 0;
Vg = 0;
Vx_min = 0;
posY2 = "";
flag = "";
end_status = "none";
}
Symbol 650 MovieClip Frame 9
_level0.p_snd.start();
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 650 MovieClip Frame 9
//component parameters
onClipEvent (construct) {
hurtBack = "hurt1";
hurtAway = "hurt6";
flag = 1;
end_status = "";
Vx = 17;
Vy = 0;
a = 3;
freezeTime2 = 0;
freezeTime = 4;
shake = 0;
d_rate = 1;
isObj = false;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 650 MovieClip Frame 26
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 654 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 654 MovieClip Frame 2
_level0.k_snd.start();
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 654 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
hurtBack = "hurt2";
hurtAway = "hurt6";
flag = 1;
end_status = "";
Vx = 23;
Vy = 0;
a = 3;
freezeTime2 = 0;
freezeTime = 3;
shake = 0;
d_rate = 1;
isObj = false;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 654 MovieClip Frame 10
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 655 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 655 MovieClip Frame 6
_level0.k_snd.start();
Instance of Symbol 451 MovieClip in Symbol 655 MovieClip Frame 7
//component parameters
onClipEvent (construct) {
Vx = 25;
Vy = 10;
Va = 1;
Vg = 0;
Vx_min = 0;
posY2 = "";
flag = "";
end_status = "land2";
}
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 655 MovieClip Frame 7
//component parameters
onClipEvent (construct) {
hurtBack = "hurt2";
hurtAway = "hurt6";
flag = 1;
end_status = "";
Vx = 23;
Vy = 20;
a = 3;
freezeTime2 = 0;
freezeTime = 3;
shake = 0;
d_rate = 1;
isObj = false;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 655 MovieClip Frame 28
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 659 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 659 MovieClip Frame 7
_level0.k_snd.start();
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 659 MovieClip Frame 8
//component parameters
onClipEvent (construct) {
hurtBack = "";
hurtAway = "hurt4";
flag = 1;
end_status = "";
Vx = 35;
Vy = 40;
a = 3;
freezeTime2 = 0;
freezeTime = 8;
shake = 2;
d_rate = 2;
isObj = false;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 659 MovieClip Frame 26
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 664 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 664 MovieClip Frame 7
//component parameters
onClipEvent (construct) {
hurtBack = "hurt1";
hurtAway = "hurt3";
flag = 1;
end_status = "";
Vx = 15;
Vy = 35;
a = 3;
freezeTime2 = 0;
freezeTime = 3;
shake = 0;
d_rate = 0.5;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 664 MovieClip Frame 11
//component parameters
onClipEvent (construct) {
hurtBack = "hurt1";
hurtAway = "hurt3";
flag = 1;
end_status = "";
Vx = 15;
Vy = 35;
a = 3;
freezeTime2 = 0;
freezeTime = 3;
shake = 0;
d_rate = 0.5;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 664 MovieClip Frame 15
//component parameters
onClipEvent (construct) {
hurtBack = "hurt1";
hurtAway = "hurt3";
flag = 1;
end_status = "";
Vx = 15;
Vy = 35;
a = 3;
freezeTime2 = 0;
freezeTime = 3;
shake = 0;
d_rate = 0.5;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 664 MovieClip Frame 26
_parent.toStatus_switch("stand");
Instance of Symbol 466 MovieClip in Symbol 666 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
s_type = "s2";
f_time = 10;
}
Instance of Symbol 90 MovieClip in Symbol 666 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 468 MovieClip in Symbol 666 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
name = "sol";
}
Symbol 666 MovieClip Frame 26
_parent.toStatus_switch("stand");
Instance of Symbol 466 MovieClip in Symbol 672 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
s_type = "s2";
f_time = 10;
}
Instance of Symbol 468 MovieClip in Symbol 672 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
name = "bullet_satelite";
}
Instance of Symbol 90 MovieClip in Symbol 672 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 90 MovieClip in Symbol 672 MovieClip Frame 19
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 672 MovieClip Frame 30
_parent.toStatus_switch("stand");
Instance of Symbol 466 MovieClip in Symbol 676 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
s_type = "s2";
f_time = 10;
}
Symbol 676 MovieClip Frame 3
_level0.k_snd.start();
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 676 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
hurtBack = "";
hurtAway = "hurt4";
flag = 1;
end_status = "";
Vx = 35;
Vy = 40;
a = 3;
freezeTime2 = 0;
freezeTime = 8;
shake = 2;
d_rate = 1;
isObj = false;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Instance of Symbol 468 MovieClip in Symbol 676 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
name = "bullet_golf";
}
Instance of Symbol 90 MovieClip in Symbol 676 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 676 MovieClip Frame 24
_parent.toStatus_switch("stand");
Symbol 677 MovieClip [role_bush] Frame 1
stop();
Symbol 678 MovieClip [role_bush_link] Frame 1
function addPlayer(type) {
var _local2 = _level0.level;
var _local1 = "role_bush";
if (type == "cpu") {
if (_local2 == 1) {
Object.registerClass(_local1, Bush_AI_Lv1);
} else if (_local2 == 2) {
Object.registerClass(_local1, Bush_AI_Lv2);
} else if (_local2 == 3) {
Object.registerClass(_local1, Bush_AI_Lv4);
}
} else if (type == "demo") {
} else {
Object.registerClass(_local1, Bush_Player);
}
attachMovie(_local1, "role_mc", 100);
}
stop();
Symbol 679 MovieClip [role_laden_link] Frame 1
function addPlayer(type) {
var _local2 = _level0.level;
var _local1 = "role_laden";
if (type == "cpu") {
if (_local2 == 1) {
Object.registerClass(_local1, Laten_AI_Lv1);
} else if (_local2 == 2) {
Object.registerClass(_local1, Laten_AI_Lv2);
} else if (_local2 == 3) {
Object.registerClass(_local1, Laten_AI_Lv4);
}
} else if (type == "demo") {
} else {
Object.registerClass(_local1, Laten_Player);
}
attachMovie(_local1, "role_mc", 100);
}
stop();
Instance of Symbol 90 MovieClip in Symbol 682 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 90 MovieClip in Symbol 685 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 90 MovieClip in Symbol 690 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 90 MovieClip in Symbol 691 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 90 MovieClip in Symbol 696 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 90 MovieClip in Symbol 702 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 702 MovieClip Frame 5
_parent.start_move_Y1(_parent.Vy, _parent.Vx);
Symbol 702 MovieClip Frame 20
stop();
Symbol 702 MovieClip Frame 21
_root.attack = 1;
_level0[_root.enemy].AI_mc.defend();
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 702 MovieClip Frame 24
//component parameters
onClipEvent (construct) {
hurtBack = "hurt2";
hurtAway = "hurt6";
flag = 1;
end_status = "";
Vx = 17;
Vy = 0;
a = 3;
freezeTime2 = 0;
freezeTime = 4;
shake = 0;
d_rate = 1;
isObj = false;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "up";
}
Symbol 702 MovieClip Frame 31
stop();
Instance of Symbol 90 MovieClip in Symbol 704 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 704 MovieClip Frame 9
_parent.status_3 = "";
Symbol 704 MovieClip Frame 10
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 706 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 706 MovieClip Frame 9
_parent.status_3 = "";
Symbol 706 MovieClip Frame 10
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 708 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 708 MovieClip Frame 12
stop();
Instance of Symbol 90 MovieClip in Symbol 709 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 709 MovieClip Frame 19
stop();
Instance of Symbol 90 MovieClip in Symbol 710 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 436 MovieClip in Symbol 710 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
Vx = 8;
Vy = 10;
end_status = "none";
}
Symbol 710 MovieClip Frame 5
stop();
Symbol 710 MovieClip Frame 20
if (_parent.isKO) {
stop();
}
Symbol 710 MovieClip Frame 25
_parent.toStatus_switch("stand");
Symbol 711 MovieClip Frame 1
_parent.bodyTouch();
Instance of Symbol 90 MovieClip in Symbol 711 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 711 MovieClip Frame 3
_parent.toStatus_switch("stand");
Symbol 712 MovieClip Frame 1
_parent.bodyTouch();
Instance of Symbol 90 MovieClip in Symbol 712 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 712 MovieClip Frame 6
_parent.toStatus_switch("stand");
Symbol 713 MovieClip Frame 1
stop();
Instance of Symbol 90 MovieClip in Symbol 713 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 90 MovieClip in Symbol 714 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 714 MovieClip Frame 3
_level0.p_snd.start();
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 714 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
hurtBack = "hurt1";
hurtAway = "hurt6";
flag = 1;
end_status = "";
Vx = 16;
Vy = 0;
a = 3;
freezeTime2 = 0;
freezeTime = 4;
shake = 0;
d_rate = 1;
isObj = false;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 714 MovieClip Frame 7
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 716 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 716 MovieClip Frame 6
_level0.p_snd.start();
Instance of Symbol 451 MovieClip in Symbol 716 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
Vx = 18;
Vy = 0;
Va = 0;
Vg = 0;
Vx_min = 0;
posY2 = "";
flag = "";
end_status = "none";
}
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 716 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
hurtBack = "hurt1";
hurtAway = "hurt6";
flag = 1;
end_status = "";
Vx = 17;
Vy = 0;
a = 3;
freezeTime2 = 0;
freezeTime = 4;
shake = 0;
d_rate = 1;
isObj = false;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 716 MovieClip Frame 19
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 718 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 718 MovieClip Frame 5
_level0.k_snd.start();
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 718 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
hurtBack = "hurt2";
hurtAway = "hurt3";
flag = 1;
end_status = "getup1";
Vx = 22;
Vy = 0;
a = 3;
freezeTime2 = 0;
freezeTime = 4;
shake = 0;
d_rate = 1;
isObj = false;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 718 MovieClip Frame 17
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 719 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 719 MovieClip Frame 6
_level0.k_snd.start();
Instance of Symbol 451 MovieClip in Symbol 719 MovieClip Frame 7
//component parameters
onClipEvent (construct) {
Vx = 20;
Vy = 0;
Va = 2;
Vg = 0;
Vx_min = 0;
posY2 = "";
flag = "";
end_status = "none";
}
Instance of Symbol 425 MovieClip [HitCheck_mc] in Symbol 719 MovieClip Frame 7
//component parameters
onClipEvent (construct) {
hurtBack = "hurt2";
hurtAway = "hurt3";
flag = 1;
end_status = "getup1";
Vx = 28;
Vy = 0;
a = 3;
freezeTime2 = 0;
freezeTime = 5;
shake = 0;
d_rate = 1.5;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 719 MovieClip Frame 25
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 723 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 468 MovieClip in Symbol 723 MovieClip Frame 9
//component parameters
onClipEvent (construct) {
name = "bullet_bomb3";
}
Symbol 723 MovieClip Frame 29
_parent.toStatus_switch("stand");
Instance of Symbol 90 MovieClip in Symbol 726 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 726 MovieClip Frame 8
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 0;
hurtBack = "hurt2";
hurtAway = "hurt3";
flag = 1;
end_status = "";
Vx = 10;
Vy = 10;
a = 3;
freezeTime2 = 0;
freezeTime = 0;
shake = 0;
d_rate = 0.3;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 726 MovieClip Frame 11
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 0;
hurtBack = "hurt2";
hurtAway = "hurt3";
flag = 1;
end_status = "";
Vx = 10;
Vy = 10;
a = 3;
freezeTime2 = 0;
freezeTime = 0;
shake = 0;
d_rate = 0.3;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 726 MovieClip Frame 14
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 0;
hurtBack = "hurt2";
hurtAway = "hurt3";
flag = 1;
end_status = "";
Vx = 10;
Vy = 10;
a = 3;
freezeTime2 = 0;
freezeTime = 0;
shake = 0;
d_rate = 0.3;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 726 MovieClip Frame 24
_parent.toStatus_switch("stand");
Instance of Symbol 466 MovieClip in Symbol 727 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
s_type = "s2";
f_time = 10;
}
Instance of Symbol 468 MovieClip in Symbol 727 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
name = "bullet_car";
}
Instance of Symbol 90 MovieClip in Symbol 727 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 727 MovieClip Frame 26
_parent.toStatus_switch("stand");
Instance of Symbol 466 MovieClip in Symbol 728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
s_type = "s2";
f_time = 10;
}
Instance of Symbol 468 MovieClip in Symbol 728 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
name = "plane";
}
Instance of Symbol 90 MovieClip in Symbol 728 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
t = 0;
}
Instance of Symbol 468 MovieClip in Symbol 728 MovieClip Frame 9
//component parameters
onClipEvent (construct) {
name = "plane";
}
Instance of Symbol 468 MovieClip in Symbol 728 MovieClip Frame 14
//component parameters
onClipEvent (construct) {
name = "plane";
}
Symbol 728 MovieClip Frame 25
_parent.toStatus_switch("stand");
Instance of Symbol 466 MovieClip in Symbol 732 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
s_type = "s2";
f_time = 10;
}
Instance of Symbol 90 MovieClip in Symbol 732 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
t = 0;
}
Symbol 732 MovieClip Frame 4
stop();
Instance of Symbol 507 MovieClip in Symbol 732 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
Vx = 15;
Vy = 0;
Va = 0;
S = 600;
dis = 0;
attFrame = "s2";
endFrame = "s2";
target = "stand";
}
Instance of Symbol 468 MovieClip in Symbol 732 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
name = "Bullet_bomb2";
}
Symbol 732 MovieClip Frame 8
_parent.hurtValue = new Object();
_parent.hurtAway_self(30, 35, "getup1");
_parent.toStatus("hurt4");
Symbol 732 MovieClip Frame 13
_parent.toStatus_switch("stand");
Symbol 735 MovieClip [role_laden] Frame 1
stop();
Symbol 737 MovieClip Frame 1
stop();
this._visible = false;
var pt = new Object();
pt.x = this._x;
pt.y = this._y;
_parent.localToGlobal(pt);
_root.role_mc.addSkill2(name, this, Vx, Va);
Symbol 738 MovieClip [bullet_tank] Frame 1
#initclip 55
Object.registerClass("bullet_tank", Bullet_tank);
#endinitclip
Instance of Symbol 737 MovieClip in Symbol 738 MovieClip [bullet_tank] Frame 17
//component parameters
onClipEvent (construct) {
name = "tank_bullet";
}
Symbol 738 MovieClip [bullet_tank] Frame 52
this.removeMovieClip();
Symbol 740 MovieClip [boom_mc] Frame 18
_parent.removeMovieClip();
Symbol 741 MovieClip [tank_bullet] Frame 1
stop();
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 741 MovieClip [tank_bullet] Frame 1
//component parameters
onClipEvent (construct) {
obj_Vx = 40;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 2;
hurtBack = "";
hurtAway = "hurt4";
flag = 1;
end_status = "";
Vx = 20;
Vy = 30;
a = 3;
freezeTime2 = 1;
freezeTime = 8;
shake = 2;
d_rate = 3;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 741 MovieClip [tank_bullet] Frame 2
stop();
Symbol 745 MovieClip [s_soldier2] Frame 1
#initclip 56
Object.registerClass("s_soldier2", Bullet_tank);
#endinitclip
Instance of Symbol 737 MovieClip in Symbol 745 MovieClip [s_soldier2] Frame 11
//component parameters
onClipEvent (construct) {
name = "s_soldier2_bullet";
}
Symbol 745 MovieClip [s_soldier2] Frame 35
this.removeMovieClip();
Symbol 749 MovieClip [s_soldier2_bullet] Frame 1
stop();
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 749 MovieClip [s_soldier2_bullet] Frame 1
//component parameters
onClipEvent (construct) {
obj_Vx = 40;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 2;
hurtBack = "";
hurtAway = "hurt4";
flag = 1;
end_status = "";
Vx = 20;
Vy = 30;
a = 3;
freezeTime2 = 1;
freezeTime = 8;
shake = 2;
d_rate = 3;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 749 MovieClip [s_soldier2_bullet] Frame 2
stop();
Symbol 756 MovieClip [s_soldier] Frame 1
#initclip 57
Object.registerClass("s_soldier", Bullet_tank);
#endinitclip
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 756 MovieClip [s_soldier] Frame 15
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 0;
hurtBack = "hurt1";
hurtAway = "hurt6";
flag = 1;
end_status = "";
Vx = 18;
Vy = 20;
a = 3;
freezeTime2 = 0;
freezeTime = 3;
shake = 0;
d_rate = 0.5;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 756 MovieClip [s_soldier] Frame 17
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 0;
hurtBack = "hurt2";
hurtAway = "hurt6";
flag = 1;
end_status = "";
Vx = 18;
Vy = 20;
a = 3;
freezeTime2 = 0;
freezeTime = 3;
shake = 0;
d_rate = 0.5;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 756 MovieClip [s_soldier] Frame 19
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 0;
hurtBack = "hurt1";
hurtAway = "hurt6";
flag = 1;
end_status = "";
Vx = 18;
Vy = 20;
a = 3;
freezeTime2 = 0;
freezeTime = 3;
shake = 0;
d_rate = 0.5;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 756 MovieClip [s_soldier] Frame 21
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 0;
hurtBack = "hurt2";
hurtAway = "hurt6";
flag = 1;
end_status = "";
Vx = 18;
Vy = 20;
a = 3;
freezeTime2 = 0;
freezeTime = 3;
shake = 0;
d_rate = 0.5;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 756 MovieClip [s_soldier] Frame 23
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 0;
hurtBack = "hurt1";
hurtAway = "hurt6";
flag = 1;
end_status = "";
Vx = 18;
Vy = 20;
a = 3;
freezeTime2 = 0;
freezeTime = 3;
shake = 0;
d_rate = 0.5;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 756 MovieClip [s_soldier] Frame 25
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 0;
hurtBack = "hurt2";
hurtAway = "hurt6";
flag = 1;
end_status = "";
Vx = 18;
Vy = 20;
a = 3;
freezeTime2 = 0;
freezeTime = 3;
shake = 0;
d_rate = 0.5;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 756 MovieClip [s_soldier] Frame 45
this.removeMovieClip();
Symbol 761 MovieClip [bullet_satelite] Frame 1
#initclip 58
Object.registerClass("bullet_satelite", Bullet_satelite);
#endinitclip
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 761 MovieClip [bullet_satelite] Frame 9
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 0;
hurtBack = "hurt1";
hurtAway = "hurt3";
flag = 1;
end_status = "";
Vx = 5;
Vy = 35;
a = 3;
freezeTime2 = 1;
freezeTime = 3;
shake = 0;
d_rate = 0.7;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 761 MovieClip [bullet_satelite] Frame 11
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 0;
hurtBack = "hurt1";
hurtAway = "hurt3";
flag = 1;
end_status = "";
Vx = 5;
Vy = 35;
a = 3;
freezeTime2 = 1;
freezeTime = 3;
shake = 0;
d_rate = 0.7;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 761 MovieClip [bullet_satelite] Frame 13
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 0;
hurtBack = "hurt1";
hurtAway = "hurt3";
flag = 1;
end_status = "";
Vx = 5;
Vy = 35;
a = 3;
freezeTime2 = 1;
freezeTime = 3;
shake = 0;
d_rate = 0.7;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 761 MovieClip [bullet_satelite] Frame 15
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 0;
hurtBack = "";
hurtAway = "hurt4";
flag = 1;
end_status = "";
Vx = 15;
Vy = 35;
a = 3;
freezeTime2 = 1;
freezeTime = 8;
shake = 0;
d_rate = 0.7;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 761 MovieClip [bullet_satelite] Frame 41
this.removeMovieClip();
Symbol 768 MovieClip [Bullet_atom] Frame 1
#initclip 59
Object.registerClass("Bullet_atom", Bullet_atom);
#endinitclip
stop();
Symbol 768 MovieClip [Bullet_atom] Frame 2
play();
_level0.boom_snd.start();
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 768 MovieClip [Bullet_atom] Frame 11
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 3;
hurtBack = "";
hurtAway = "hurt4";
flag = 1;
end_status = "";
Vx = 15;
Vy = 50;
a = 3;
freezeTime2 = 1;
freezeTime = 6;
shake = 0;
d_rate = 0.7;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 768 MovieClip [Bullet_atom] Frame 14
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 3;
hurtBack = "";
hurtAway = "hurt4";
flag = 1;
end_status = "";
Vx = 15;
Vy = 50;
a = 3;
freezeTime2 = 1;
freezeTime = 6;
shake = 0;
d_rate = 0.7;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 768 MovieClip [Bullet_atom] Frame 17
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 3;
hurtBack = "";
hurtAway = "hurt4";
flag = 1;
end_status = "";
Vx = 15;
Vy = 50;
a = 3;
freezeTime2 = 1;
freezeTime = 6;
shake = 0;
d_rate = 0.7;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 768 MovieClip [Bullet_atom] Frame 20
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 3;
hurtBack = "";
hurtAway = "hurt4";
flag = 1;
end_status = "";
Vx = 15;
Vy = 50;
a = 3;
freezeTime2 = 1;
freezeTime = 6;
shake = 0;
d_rate = 0.7;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 768 MovieClip [Bullet_atom] Frame 33
this.removeMovieClip();
Symbol 772 MovieClip [sol] Frame 1
#initclip 60
Object.registerClass("sol", Bullet_SOL);
#endinitclip
stop();
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 772 MovieClip [sol] Frame 1
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 0;
hurtBack = "";
hurtAway = "hurt3";
flag = 1;
end_status = "";
Vx = 0;
Vy = -20;
a = 3;
freezeTime2 = 0;
freezeTime = 1;
shake = 0;
d_rate = 3;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 772 MovieClip [sol] Frame 45
this.removeMovieClip();
Symbol 774 MovieClip [plane] Frame 1
#initclip 61
Object.registerClass("plane", Bullet_plane);
#endinitclip
stop();
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 774 MovieClip [plane] Frame 1
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 3;
hurtBack = "";
hurtAway = "hurt4";
flag = 1;
end_status = "";
Vx = 25;
Vy = 45;
a = 3;
freezeTime2 = 1;
freezeTime = 6;
shake = 0;
d_rate = 1;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 774 MovieClip [plane] Frame 2
stop();
_level0.boom_snd.start();
Symbol 777 MovieClip Frame 1
_visible = false;
_name = "area";
Symbol 779 MovieClip [FlyingObj] Frame 1
#initclip 62
Object.registerClass("FlyingObj", FlyingObj);
#endinitclip
Symbol 780 MovieClip [plane2] Frame 1
Instance of Symbol 779 MovieClip [FlyingObj] in Symbol 780 MovieClip [plane2] Frame 1
//component parameters
onClipEvent (construct) {
Vx = 30;
}
Instance of Symbol 737 MovieClip in Symbol 780 MovieClip [plane2] Frame 3
//component parameters
onClipEvent (construct) {
name = "bullet3";
}
Symbol 780 MovieClip [plane2] Frame 4
gotoAndPlay (1);
Symbol 780 MovieClip [plane2] Frame 5
stop();
_level0.boom_snd.start();
Symbol 782 MovieClip [tank2] Frame 1
#initclip 63
Object.registerClass("tank2", Bullet_tank);
#endinitclip
Instance of Symbol 737 MovieClip in Symbol 782 MovieClip [tank2] Frame 18
//component parameters
onClipEvent (construct) {
name = "bullet_missile";
}
Instance of Symbol 737 MovieClip in Symbol 782 MovieClip [tank2] Frame 21
//component parameters
onClipEvent (construct) {
name = "bullet_missile";
}
Instance of Symbol 737 MovieClip in Symbol 782 MovieClip [tank2] Frame 24
//component parameters
onClipEvent (construct) {
name = "bullet_missile";
}
Symbol 782 MovieClip [tank2] Frame 50
this.removeMovieClip();
Symbol 786 MovieClip [bullet3] Frame 1
#initclip 64
Object.registerClass("bullet3", Bullet_boom);
#endinitclip
stop();
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 786 MovieClip [bullet3] Frame 1
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 3;
hurtBack = "";
hurtAway = "hurt4";
flag = 1;
end_status = "";
Vx = 10;
Vy = 30;
a = 3;
freezeTime2 = 1;
freezeTime = 5;
shake = 0;
d_rate = 3;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 786 MovieClip [bullet3] Frame 2
stop();
_level0.boom_snd.start();
Symbol 787 MovieClip [Bullet_bomb2] Frame 1
stop();
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 787 MovieClip [Bullet_bomb2] Frame 1
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 3;
hurtBack = "";
hurtAway = "hurt4";
flag = 1;
end_status = "";
Vx = 30;
Vy = 35;
a = 3;
freezeTime2 = 1;
freezeTime = 8;
shake = 0;
d_rate = 3;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 787 MovieClip [Bullet_bomb2] Frame 2
stop();
_level0.boom_snd.start();
Symbol 788 MovieClip [bullet_car] Frame 1
#initclip 65
Object.registerClass("bullet_car", Bullet_tank);
#endinitclip
stop();
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 788 MovieClip [bullet_car] Frame 1
//component parameters
onClipEvent (construct) {
obj_Vx = 20;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 3;
hurtBack = "";
hurtAway = "hurt4";
flag = 1;
end_status = "";
Vx = 10;
Vy = 30;
a = 3;
freezeTime2 = 1;
freezeTime = 5;
shake = 0;
d_rate = 0.7;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 788 MovieClip [bullet_car] Frame 5
stop();
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 788 MovieClip [bullet_car] Frame 5
//component parameters
onClipEvent (construct) {
obj_Vx = 20;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 3;
hurtBack = "";
hurtAway = "hurt4";
flag = 1;
end_status = "";
Vx = 10;
Vy = 30;
a = 3;
freezeTime2 = 1;
freezeTime = 5;
shake = 0;
d_rate = 0.7;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 788 MovieClip [bullet_car] Frame 9
stop();
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 788 MovieClip [bullet_car] Frame 9
//component parameters
onClipEvent (construct) {
obj_Vx = 20;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 3;
hurtBack = "";
hurtAway = "hurt4";
flag = 1;
end_status = "";
Vx = 10;
Vy = 30;
a = 3;
freezeTime2 = 1;
freezeTime = 5;
shake = 0;
d_rate = 0.7;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 788 MovieClip [bullet_car] Frame 13
stop();
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 788 MovieClip [bullet_car] Frame 13
//component parameters
onClipEvent (construct) {
obj_Vx = 20;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 3;
hurtBack = "";
hurtAway = "hurt4";
flag = 1;
end_status = "";
Vx = 35;
Vy = 30;
a = 3;
freezeTime2 = 1;
freezeTime = 8;
shake = 0;
d_rate = 0.7;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 788 MovieClip [bullet_car] Frame 17
stop();
_level0.boom_snd.start();
Symbol 789 MovieClip [bullet_missile] Frame 1
#initclip 66
Object.registerClass("bullet_missile", Bullet_missile);
#endinitclip
stop();
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 789 MovieClip [bullet_missile] Frame 1
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 3;
hurtBack = "";
hurtAway = "hurt4";
flag = 1;
end_status = "";
Vx = 10;
Vy = 30;
a = 3;
freezeTime2 = 1;
freezeTime = 5;
shake = 0;
d_rate = 1;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 789 MovieClip [bullet_missile] Frame 2
stop();
_level0.boom_snd.start();
Symbol 793 MovieClip Frame 22
stop();
Symbol 794 MovieClip [bullet_bomb3] Frame 1
#initclip 67
Object.registerClass("bullet_bomb3", Bullet_bomb3);
#endinitclip
stop();
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 794 MovieClip [bullet_bomb3] Frame 1
//component parameters
onClipEvent (construct) {
obj_Vx = 7;
obj_Vy = -20;
obj_Vg = 1.5;
obj_level = 1;
hurtBack = "";
hurtAway = "hurt3";
flag = 1;
end_status = "";
Vx = 15;
Vy = 35;
a = 3;
freezeTime2 = 1;
freezeTime = 6;
shake = 0;
d_rate = 1.5;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 794 MovieClip [bullet_bomb3] Frame 2
stop();
Symbol 794 MovieClip [bullet_bomb3] Frame 8
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 794 MovieClip [bullet_bomb3] Frame 8
//component parameters
onClipEvent (construct) {
obj_Vx = 0;
obj_Vy = 0;
obj_Vg = 0;
obj_level = 1;
hurtBack = "";
hurtAway = "hurt3";
flag = 1;
end_status = "";
Vx = 15;
Vy = 35;
a = 3;
freezeTime2 = 1;
freezeTime = 6;
shake = 0;
d_rate = 1.5;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 794 MovieClip [bullet_bomb3] Frame 103
stop();
Symbol 796 MovieClip [bullet_golf] Frame 1
stop();
Instance of Symbol 462 MovieClip [hitCheck_obj] in Symbol 796 MovieClip [bullet_golf] Frame 1
//component parameters
onClipEvent (construct) {
obj_Vx = 30;
obj_Vy = -10;
obj_Vg = 0;
obj_level = 2;
hurtBack = "";
hurtAway = "hurt4";
flag = 1;
end_status = "";
Vx = 20;
Vy = 30;
a = 3;
freezeTime2 = 1;
freezeTime = 8;
shake = 2;
d_rate = 2.5;
isObj = true;
hitType = "hitFire1";
hitEff = "";
reCheck = true;
checkTimes = 1;
hitPos = "";
}
Symbol 796 MovieClip [bullet_golf] Frame 2
stop();
Symbol 803 MovieClip Frame 1
stop();
if ((_level0.modeID == 1) || (_level0.modeID == 3)) {
gotoAndStop(_level0.charSelect_P1);
} else if (_level0.modeID == 2) {
if (_level0.winner == _level0.P1_role) {
gotoAndStop(_level0.charSelect_P1);
} else {
gotoAndStop(_level0.charSelect_P2);
}
}
Symbol 811 MovieClip Frame 1
stop();
if (_level0.modeID == 1) {
if (_level0.winner == _level0.P1_role) {
if (_level0.battleID >= _level0.char_list.length) {
gotoAndStop ("winAll");
} else {
gotoAndStop ("win");
}
} else {
gotoAndStop ("lose");
}
} else if (_level0.modeID == 2) {
gotoAndStop ("win");
} else if (_level0.modeID == 3) {
if (_level0.battleID > 1) {
gotoAndStop ("survival");
} else {
gotoAndStop ("lose");
}
}
Symbol 811 MovieClip Frame 4
num_txt.text = _level0.battleID - 1;
Symbol 814 Button
on (release) {
getURL ("http://www.freeworldgroup.com/games6/gameindex/bowadventure.htm", "_blank");
}
Symbol 818 Button
on (release) {
getURL ("http://www.freeworldgroup.com/games5/gameindex/deathwalker.htm", "_blank");
}
Symbol 822 Button
on (release) {
getURL ("http://www.freeworldgroup.com/games2/gameindex/planetgobbler.htm", "_blank");
}
Symbol 825 MovieClip Frame 1
stop();
var i = Math.random();
if (i < 0.33) {
gotoAndStop (2);
} else if (i < 0.66) {
gotoAndStop (3);
}
Symbol 836 MovieClip Frame 1
stop();
Symbol 838 MovieClip Frame 1
function txt_lose() {
txt.text = (((text_lose_1 + name1) + text_lose_2) + name2) + text_lose_3;
}
function txt_win() {
txt.text = (((text_win_1 + name1) + text_win_2) + name2) + text_win_3;
}
function txt_win_P2() {
txt.text = (((text_win_1 + name2) + text_win_2) + name1) + text_win_3;
}
function txt_winAll() {
txt.text = ((((text_winAll_1 + name1) + text_winAll_2) + text_winAll_3) + name1) + "!";
}
function txt_survival() {
txt.text = ((((text_lose_1 + name1) + text_lose_2) + name2) + text_lose_3) + newline;
}
var text_lose_1 = "Today ";
var text_lose_2 = " was beaten by ";
var text_lose_3 = " in a satisfying fight to the death.";
var text_win_1 = "Today ";
var text_win_2 = " kicked the butt of ";
var text_win_3 = " in a satisfying fight to the death.";
var text_winAll_1 = "Today ";
var text_winAll_2 = " defeated all competitors in a grand fight to the death.";
var text_winAll_3 = "\nCongrats ";
var text_winAll_4 = " you're great!";
var txt_survival_1 = "He had defeated ";
var txt_survival_2 = " people!";
var name1;
var name2;
name1 = _level0.getName(_level0.charSelect_P1);
name2 = _level0.getName(_level0.charSelect_P2);
if (_level0.modeID == 1) {
if (_level0.winner == _level0.P1_role) {
if (_level0.battleID >= _level0.char_list.length) {
txt_winAll();
} else {
txt_win();
}
} else {
txt_lose();
}
} else if (_level0.modeID == 2) {
if (_level0.winner == _level0.P1_role) {
txt_win();
} else {
txt_win_P2();
}
} else if (_level0.modeID == 3) {
if (_level0.battleID > 1) {
txt_survival();
} else {
txt_lose();
}
}
Symbol 846 Button
on (release) {
_level0.nextBattle();
}
Symbol 850 Button
on (release) {
_level0.playAgain();
}
Symbol 851 Button
on (release) {
getURL ("http://www.ifungames.com", _blank);
}
Symbol 852 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Symbol 853 Button
on (release) {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
}
Symbol 854 Button
on (release) {
viewHighscore();
}
Symbol 856 Button
on (release) {
gotoAndStop ("submit");
}
Symbol 861 Button
on (release) {
gotoAndStop (1);
}
Symbol 871 Button
on (release) {
gotoAndStop ("submited");
}
Symbol 876 Button
on (release) {
viewHighscore();
}
Symbol 877 MovieClip Frame 1
stop();
if (_level0.modeID == 3) {
_global.game_name = "political_duel2";
} else {
_global.game_name = "political_duel";
}
var highscore = eval (score_var);
_global.viewHighscore = function () {
if (_level0.modeID == 3) {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=political_duel2", "_blank");
} else {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=" + game_name, "_blank");
}
};
_global.viewHighscore2 = function () {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=political_duel2", "_blank");
};
if (highscore == 0) {
this._visible = false;
}
trace(game_name);
trace(highscore);
trace("http://www.freeworldgroup.com/score/index.asp?game=" + game_name);
Symbol 877 MovieClip Frame 3
function sendData() {
send_var.game = game_name;
send_var.score = highscore;
send_var.name = name_txt.text;
if (send_var.name == "") {
send_var.name = "guest" + int(Math.random() * 1000);
}
send_var.sendAndLoad("http://www.freeworldgroup.com/score/score.asp", load_var, "POST");
gotoAndStop ("sending");
}
stop();
gold_txt.text = highscore;
send_var = new LoadVars();
load_var = new LoadVars();
ok_btn.onRelease = sendData;
load_var.onLoad = function () {
gotoAndStop ("done");
};
Instance of Symbol 858 MovieClip in Symbol 877 MovieClip Frame 3
on (release) {
}
Symbol 879 MovieClip Frame 1
stop();
if (_level0.modeID == 1) {
if (_level0.winner == _level0.P1_role) {
if (_level0.battleID >= _level0.char_list.length) {
gotoAndStop ("winAll");
}
} else {
gotoAndStop ("gameOver");
}
} else if (_level0.modeID == 2) {
gotoAndStop ("vs");
} else if (_level0.modeID == 3) {
gotoAndStop ("gameOver");
}
Instance of Symbol 877 MovieClip in Symbol 879 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
_game_name = "political_duel";
score_var = "_root.score";
}
Symbol 880 MovieClip [winResult] Frame 1
stop();
head1_mc.gotoAndStop(_level0.charSelect_P1);
head2_mc.gotoAndStop(_level0.charSelect_P2);
var today_date = new Date();
var date_str = ((((today_date.getDate() + ".") + (today_date.getMonth() + 1)) + ".") + today_date.getFullYear());
date_txt.text = date_str;
Symbol 883 MovieClip [stage_loader] Frame 1
function addStage() {
if ((_level0.modeID == 1) || (_level0.modeID == 3)) {
bgName = _level0.charSelect_P2 + roundID;
roundID++;
if (roundID > 2) {
roundID = 1;
}
} else {
bgName = _level0.bg_select;
}
trace("_level0.bg_select:" + _level0.bg_select);
this.attachMovie(bgName, "bg", 100);
}
stop();
var bgName;
var roundID = 1;
addStage();
Symbol 901 MovieClip [tie] Frame 19
Symbol 901 MovieClip [tie] Frame 104
Symbol 901 MovieClip [tie] Frame 113
this.removeMovieClip();
Symbol 905 MovieClip Frame 1
stop();
this._visible = false;
Symbol 1001 MovieClip Frame 1
Symbol 1001 MovieClip Frame 100
stop();
Symbol 1004 Button
on (press) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Symbol 1006 Button
on (press) {
gotoAndStop ("credit");
}
Symbol 1015 Button
on (release) {
_root.stopFight();
gotoAndStop ("menu1");
}
Symbol 1016 Button
on (release) {
_root.stopFight();
_root.gotoAndPlay("demo");
}
Symbol 1017 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Symbol 1018 Button
on (release) {
viewHighscore();
}
Symbol 1019 Button
on (release) {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
}
Symbol 1020 Button
on (release) {
viewHighscore2();
}
Symbol 1021 Button
on (release) {
getURL ("http://www.ifungames.com", _blank);
}
Symbol 1023 Button
on (release) {
gotoAndStop (1);
}
Symbol 1028 Button
on (release) {
_level0.P1_type = "player";
_level0.P2_type = "cpu";
_level0.modeSelect(1);
}
Symbol 1029 Button
on (release) {
gotoAndPlay ("menu2");
}
Symbol 1030 Button
on (release) {
_level0.P1_type = "player";
_level0.P2_type = "cpu";
_level0.modeSelect(3);
}
Symbol 1034 Button
on (release) {
_level0.P1_type = "player";
_level0.P2_type = "player";
_level0.modeSelect(2);
}
Symbol 1035 Button
on (release) {
_level0.P1_type = "player";
_level0.P2_type = "cpu";
_level0.modeSelect(2);
}
Symbol 1036 Button
on (release) {
_level0.P1_type = "cpu";
_level0.P2_type = "cpu";
_level0.modeSelect(2);
}
Symbol 1038 MovieClip Frame 1
stop();
Symbol 1038 MovieClip Frame 2
stop();
Symbol 1038 MovieClip Frame 3
stop();
Symbol 1038 MovieClip Frame 4
stop();
Symbol 1041 MovieClip Frame 1
stop();
Instance of Symbol 538 MovieClip in Symbol 1041 MovieClip Frame 1
on (rollOver) {
_parent.moveToChar(1);
}
on (release) {
_parent.selectChar(1);
}
Instance of Symbol 534 MovieClip in Symbol 1041 MovieClip Frame 2
on (rollOver) {
_parent.moveToChar(2);
}
on (release) {
_parent.selectChar(2);
}
Instance of Symbol 527 MovieClip in Symbol 1041 MovieClip Frame 3
on (rollOver) {
_parent.moveToChar(3);
}
on (release) {
_parent.selectChar(3);
}
Instance of Symbol 472 MovieClip in Symbol 1041 MovieClip Frame 4
on (rollOver) {
_parent.moveToChar(4);
}
on (release) {
_parent.selectChar(4);
}
Symbol 1042 MovieClip Frame 1
char1.gotoAndStop(_level0.charSelect_P1);
char2.gotoAndStop(_level0.charSelect_P2);
Symbol 1042 MovieClip Frame 30
_parent.play();
Symbol 1049 Button
on (release) {
_parent.setKey(player, key);
}
Symbol 1061 Button
on (release) {
_level0.char_mc.removeMovieClip();
_level0.toMainMenu();
}
Symbol 1073 MovieClip Frame 1
stop();
Instance of Symbol 1050 MovieClip "b" in Symbol 1073 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
label = "A";
player = "P1";
key = "b";
}
Instance of Symbol 1050 MovieClip "d" in Symbol 1073 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
label = "S";
player = "P1";
key = "d";
}
Instance of Symbol 1050 MovieClip "f" in Symbol 1073 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
label = "D";
player = "P1";
key = "f";
}
Instance of Symbol 1050 MovieClip "u" in Symbol 1073 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
label = "W";
player = "P1";
key = "u";
}
Instance of Symbol 1050 MovieClip "s" in Symbol 1073 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
label = "L";
player = "P1";
key = "s";
}
Instance of Symbol 1050 MovieClip in Symbol 1073 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
label = "J";
player = "P1";
key = "p";
}
Instance of Symbol 1050 MovieClip "k" in Symbol 1073 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
label = "K";
player = "P1";
key = "k";
}
Instance of Symbol 1059 MovieClip in Symbol 1073 MovieClip Frame 1
on (release) {
_parent.nextFrame();
}
Instance of Symbol 1050 MovieClip "b2" in Symbol 1073 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
label = "\u2190";
player = "P1";
key = "b";
}
Instance of Symbol 1050 MovieClip "d2" in Symbol 1073 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
label = "\u2193";
player = "P1";
key = "d";
}
Instance of Symbol 1050 MovieClip "f2" in Symbol 1073 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
label = "\u2192";
player = "P1";
key = "f";
}
Instance of Symbol 1050 MovieClip "u2" in Symbol 1073 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
label = "\u2191";
player = "P1";
key = "u";
}
Instance of Symbol 1050 MovieClip "s" in Symbol 1073 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
label = 3;
player = "P1";
key = "s";
}
Instance of Symbol 1050 MovieClip in Symbol 1073 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
label = 1;
player = "P1";
key = "p";
}
Instance of Symbol 1050 MovieClip "k" in Symbol 1073 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
label = 2;
player = "P1";
key = "k";
}
Instance of Symbol 1059 MovieClip in Symbol 1073 MovieClip Frame 2
on (release) {
_parent.nextFrame();
}
Instance of Symbol 1059 MovieClip in Symbol 1073 MovieClip Frame 2
on (release) {
_parent.prevFrame();
}
Instance of Symbol 1059 MovieClip in Symbol 1073 MovieClip Frame 3
on (release) {
_parent.prevFrame();
}
Symbol 1076 MovieClip Frame 42
stop();