STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228096
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5121

swfchan turned sixteen years old today! (5may2024)

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/16026692?noj=FRM16026692-6DC" width="1" height="1"></div>

Avatar Arena.swf

This is the info page for
Flash #10411

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
frame 1 { System.security.allowDomain('www.nick.com'); Stage.showMenu = false; _focusrect = false; HighScores.bDebug = false; HighScores.bDisplay = true; HighScores.init(gProxyObj, Config.HS_GAME_ID); PlayerData.init(); } movieClip 7 { } movieClip 10 { } movieClip 11 { } movieClip 15 { } movieClip 17 { } movieClip 19 { } movieClip 21 { } movieClip 22 { } movieClip 23 { frame 1 { txtName = CharacterData.oPlayer.sName; mcNation.gotoAndStop(CharacterData.oPlayer.sNation); } } movieClip 26 { } movieClip 27 { } movieClip 31 { frame 1 { txtName = CharacterData['oEnemy' + _global.P.nLevel].sName; mcNation.gotoAndStop(CharacterData['oEnemy' + _global.P.nLevel].sNation); } } movieClip 32 { } movieClip 35 { } movieClip 36 { } movieClip 37 { frame 1 { nextFrame(); } frame 10 { LockBtn.useHandCursor = false; } frame 20 { LockBtn.useHandCursor = false; } frame 30 { LockBtn.useHandCursor = false; } } button 41 { on (keyPress '<Left>') { return undefined; } on (keyPress '<Right>') { return undefined; } on (keyPress '<Down>') { return undefined; } on (keyPress '<Up>') { return undefined; } } movieClip 1762 __Packages.PlayerData { #initclip if (!_global.PlayerData) { var v1 = function () {}; _global.PlayerData = v1; var v2 = v1.prototype; v1.init = function () { PlayerData.oXMLData = new XML(); PlayerData.oXMLData.ignoreWhite = true; }; v1.loadData = function (_sUserName, _oParseTo) { PlayerData.oParseTo = _oParseTo; PlayerData.sUserName = _sUserName; PlayerData.oXMLData.onLoad = function (success) { PlayerData.onRequest(); }; PlayerData.oXMLData.load(HighScores.oProxyObj.getCurrServer() + '/common/profile/freetext/xml/getOther.jhtml?attName=avatar_fight&username=' + _sUserName); }; v1.saveData = function (_oParseFrom) { PlayerData.oXMLData = PlayerData.convertDataToXML(_oParseFrom); PlayerData.oXMLData.onLoad = function (success) { PlayerData.onSaved(); }; PlayerData.oXMLData.sendAndLoad(HighScores.oProxyObj.getCurrServer() + '/common/profile/freetext/xml/set.jhtml?_rawPost=true&attName=avatar_fight', PlayerData.oXMLData); }; v1.onRequest = function () { if (PlayerData.oXMLData.firstChild.attributes.message != 'empty') { PlayerData.convertXMLToData(PlayerData.oXMLData.firstChild, PlayerData.oParseTo); PlayerData.onLoaded(false); } else { PlayerData.onLoaded(true); } }; v1.convertXMLToData = function (_oXMLData, _oParseTo) { _oParseTo.sName = PlayerData.sUserName; _oParseTo.sNation = _oXMLData.firstChild.attributes.nation; _oParseTo.nHeadSet = _oXMLData.firstChild.attributes.headset; _oParseTo.nTorsoSet = _oXMLData.firstChild.attributes.torsoset; _oParseTo.nArmsSet = _oXMLData.firstChild.attributes.armsset; _oParseTo.nLegsSet = _oXMLData.firstChild.attributes.legsset; }; v1.convertDataToXML = function (_oData) { var v2 = '<enemy nation = \'' + _oData.sNation + '\' headset = \'' + _oData.nHeadSet + '\' torsoset = \'' + _oData.nTorsoSet + '\' armsset = \'' + _oData.nArmsSet + '\' legsset = \'' + _oData.nLegsSet + '\' />'; return new XML(v2); }; ASSetPropFlags(_global.PlayerData.prototype, null, 1); } #endinitclip } movieClip 1763 __Packages.HighScores { #initclip if (!_global.HighScores) { var v1 = function () {}; _global.HighScores = v1; var v2 = v1.prototype; v1.init = function (_oProxyObj, _sGameID) { HighScores.oProxyObj = _oProxyObj; HighScores.oProxyObj.setGame_Id(_sGameID); if (HighScores.bDebug) { HighScores.oProxyObj.setServer('www.nick.com'); HighScores.oProxyObj.setScreenName('SarbaDev'); HighScores.oProxyObj.setIsLoggedIn(true); } }; v1.requestScores = function () { HighScores.oProxyObj.getScores(function () { HighScores.onSuccess(); }); }; v1.submitScore = function (_nScore) { HighScores.oProxyObj.submitScore(_nScore, function () { HighScores.onSuccess(); }); }; v1.populateFields = function (_oIndexes, _oNames, _oScores) { var v2 = HighScores.getHighScores(); var v5 = ''; var v4 = ''; var v3 = ''; var v1 = 0; while (v1 < v2.length) { v5 += v2[v1].nIndex + 1 + '\n'; v4 += v2[v1].sName + '\n'; v3 += v2[v1].nScore + 'pts\n'; ++v1; } _oIndexes.text = v5; _oNames.text = v4; _oScores.text = v3; }; v1.getHighScores = function () { var v6 = new Array(); var v7 = HighScores.oProxyObj.getScoreCount(); var v1 = 0; while (v1 < v7) { var v2 = HighScores.oProxyObj.getScoreItem(v1); v6.push({'nIndex': v1, 'sName': v2[0], 'nScore': v2[1]}); ++v1; } return v6; }; ASSetPropFlags(_global.HighScores.prototype, null, 1); } #endinitclip } movieClip 1764 __Packages.Config { #initclip if (!_global.Config) { var v1 = function () {}; _global.Config = v1; var v2 = v1.prototype; v1.HS_GAME_ID = 'av_arena'; ASSetPropFlags(_global.Config.prototype, null, 1); } #endinitclip } movieClip 1765 __Packages.CharacterData { #initclip if (!_global.CharacterData) { var v1 = function () {}; _global.CharacterData = v1; var v2 = v1.prototype; v1.setEnemyData = function (_nIdentEnemy) { CharacterData.oEnemy = CharacterData['oEnemy' + _nIdentEnemy]; }; v1.resetStatueData = function () { CharacterData.oEnemy0.nTorsoSet = 1; }; v1.oPlayer = {'sName': 'Player', 'sNation': 'Fire', 'nLife': 100, 'nHeadSet': 1, 'nTorsoSet': 1, 'nArmsSet': 1, 'nLegsSet': 1}; v1.oEnemy = {}; v1.oEnemy0 = {'sName': 'Statue', 'sNation': 'Statue', 'nLife': 500, 'nHeadSet': 0, 'nTorsoSet': 1, 'nArmsSet': 0, 'nLegsSet': 0, 'oAIData': {'nDecisionTimeMin': 0, 'nDecisionTimeMax': 0, 'nAttackAction': 0, 'nDefenceAction': 0, 'nMoveAction': 0, 'nBoostChiAction': 0, 'nAttack1Action': 0, 'nAttack2Action': 0, 'nAttack3Action': 0, 'nMoveFrontAction': 0, 'nMoveBackAction': 0, 'nMaxMoveAction': 0, 'nAttackReact': 0, 'nAttackReactByBloc': 0, 'nAttackReactByAttack': 0, 'nAttackReactBestBloc': 0, 'nAttackReactBestAttack': 0, 'nAttackAfterBloc': 0, 'nChiReactByChi': 0, 'nChiCheckInterval': 0, 'nChiReactBlocMin': 0, 'nChiReactBlocMax': 0, 'nChiReactBestAttack': 0, 'nFallenReact': 0, 'nFallenReactByChi': 0, 'nFallenReactByAttack': 0, 'nFallenReactBestTiming': 0, 'nBlocAfterFall': 0, 'nBoostChiDelayMin': 0, 'nBoostChiDelayMax': 0}}; v1.oEnemy1 = {'sName': 'Nomis', 'sNation': 'Water', 'nLife': 100, 'nHeadSet': 3, 'nTorsoSet': 3, 'nArmsSet': 3, 'nLegsSet': 1, 'oAIData': {'nDecisionTimeMin': 35, 'nDecisionTimeMax': 180, 'nAttackAction': 20, 'nDefenceAction': 0, 'nMoveAction': 80, 'nBoostChiAction': 0, 'nAttack1Action': 80, 'nAttack2Action': 20, 'nAttack3Action': 0, 'nMoveFrontAction': 0, 'nMoveBackAction': 100, 'nMaxMoveAction': 5, 'nAttackReact': 60, 'nAttackReactByBloc': 100, 'nAttackReactByAttack': 0, 'nAttackReactBestBloc': 4, 'nAttackReactBestAttack': 0, 'nAttackAfterBloc': 0, 'nChiReactByChi': 4, 'nChiReactAttack': 0, 'nChiReactBestAttack': 52, 'nFallenReact': 0, 'nFallenReactByChi': 100, 'nFallenReactByAttack': 0, 'nMaxAttackReactInRow': 0, 'nFallenReactBestTiming': 4, 'nBlocAfterFall': 28, 'nBoostChiDelayMin': 7, 'nBoostChiDelayMax': 10}}; v1.oEnemy2 = {'sName': 'Wild Haggis', 'sNation': 'Air', 'nLife': 100, 'nHeadSet': 3, 'nTorsoSet': 3, 'nArmsSet': 1, 'nLegsSet': 2, 'oAIData': {'nDecisionTimeMin': 34, 'nDecisionTimeMax': 171, 'nAttackAction': 22, 'nDefenceAction': 0, 'nMoveAction': 76, 'nBoostChiAction': 2, 'nAttack1Action': 79, 'nAttack2Action': 21, 'nAttack3Action': 0, 'nMoveFrontAction': 5, 'nMoveBackAction': 95, 'nMaxMoveAction': 5, 'nAttackReact': 62, 'nAttackReactByBloc': 100, 'nAttackReactByAttack': 0, 'nAttackReactBestBloc': 8, 'nAttackReactBestAttack': 0, 'nAttackAfterBloc': 0, 'nChiReactByChi': 8, 'nChiReactAttack': 0, 'nChiReactBestAttack': 54, 'nFallenReact': 0, 'nFallenReactByChi': 100, 'nFallenReactByAttack': 0, 'nMaxAttackReactInRow': 0, 'nFallenReactBestTiming': 7, 'nBlocAfterFall': 31, 'nBoostChiDelayMin': 7, 'nBoostChiDelayMax': 10}}; v1.oEnemy3 = {'sName': 'Galtor', 'sNation': 'Earth', 'nLife': 100, 'nHeadSet': 2, 'nTorsoSet': 3, 'nArmsSet': 1, 'nLegsSet': 2, 'oAIData': {'nDecisionTimeMin': 33, 'nDecisionTimeMax': 162, 'nAttackAction': 24, 'nDefenceAction': 0, 'nMoveAction': 72, 'nBoostChiAction': 4, 'nAttack1Action': 78, 'nAttack2Action': 22, 'nAttack3Action': 0, 'nMoveFrontAction': 10, 'nMoveBackAction': 90, 'nMaxMoveAction': 5, 'nAttackReact': 64, 'nAttackReactByBloc': 100, 'nAttackReactByAttack': 0, 'nAttackReactBestBloc': 12, 'nAttackReactBestAttack': 0, 'nAttackAfterBloc': 0, 'nChiReactByChi': 12, 'nChiReactAttack': 0, 'nChiReactBestAttack': 56, 'nFallenReact': 0, 'nFallenReactByChi': 100, 'nFallenReactByAttack': 0, 'nMaxAttackReactInRow': 0, 'nFallenReactBestTiming': 11, 'nBlocAfterFall': 34, 'nBoostChiDelayMin': 7, 'nBoostChiDelayMax': 10}}; v1.oEnemy4 = {'sName': 'Cirederf', 'sNation': 'Fire', 'nLife': 100, 'nHeadSet': 3, 'nTorsoSet': 3, 'nArmsSet': 3, 'nLegsSet': 3, 'oAIData': {'nDecisionTimeMin': 32, 'nDecisionTimeMax': 153, 'nAttackAction': 26, 'nDefenceAction': 0, 'nMoveAction': 68, 'nBoostChiAction': 6, 'nAttack1Action': 77, 'nAttack2Action': 23, 'nAttack3Action': 0, 'nMoveFrontAction': 15, 'nMoveBackAction': 85, 'nMaxMoveAction': 4, 'nAttackReact': 66, 'nAttackReactByBloc': 100, 'nAttackReactByAttack': 0, 'nAttackReactBestBloc': 16, 'nAttackReactBestAttack': 0, 'nAttackAfterBloc': 0, 'nChiReactByChi': 16, 'nChiReactAttack': 0, 'nChiReactBestAttack': 58, 'nFallenReact': 0, 'nFallenReactByChi': 100, 'nFallenReactByAttack': 0, 'nMaxAttackReactInRow': 0, 'nFallenReactBestTiming': 14, 'nBlocAfterFall': 37, 'nBoostChiDelayMin': 7, 'nBoostChiDelayMax': 10}}; v1.oEnemy5 = {'sName': 'Hamish', 'sNation': 'Earth', 'nLife': 100, 'nHeadSet': 1, 'nTorsoSet': 2, 'nArmsSet': 3, 'nLegsSet': 1, 'oAIData': {'nDecisionTimeMin': 31, 'nDecisionTimeMax': 144, 'nAttackAction': 28, 'nDefenceAction': 0, 'nMoveAction': 64, 'nBoostChiAction': 8, 'nAttack1Action': 76, 'nAttack2Action': 24, 'nAttack3Action': 0, 'nMoveFrontAction': 20, 'nMoveBackAction': 80, 'nMaxMoveAction': 4, 'nAttackReact': 68, 'nAttackReactByBloc': 99, 'nAttackReactByAttack': 1, 'nAttackReactBestBloc': 20, 'nAttackReactBestAttack': 0, 'nAttackAfterBloc': 0, 'nChiReactByChi': 20, 'nChiReactAttack': 0, 'nChiReactBestAttack': 60, 'nFallenReact': 0, 'nFallenReactByChi': 100, 'nFallenReactByAttack': 0, 'nMaxAttackReactInRow': 0, 'nFallenReactBestTiming': 17, 'nBlocAfterFall': 40, 'nBoostChiDelayMin': 7, 'nBoostChiDelayMax': 10}}; v1.oEnemy6 = {'sName': 'Master Sean', 'sNation': 'Air', 'nLife': 100, 'nHeadSet': 2, 'nTorsoSet': 3, 'nArmsSet': 1, 'nLegsSet': 1, 'oAIData': {'nDecisionTimeMin': 30, 'nDecisionTimeMax': 135, 'nAttackAction': 30, 'nDefenceAction': 0, 'nMoveAction': 60, 'nBoostChiAction': 10, 'nAttack1Action': 74, 'nAttack2Action': 25, 'nAttack3Action': 1, 'nMoveFrontAction': 25, 'nMoveBackAction': 75, 'nMaxMoveAction': 4, 'nAttackReact': 70, 'nAttackReactByBloc': 96, 'nAttackReactByAttack': 4, 'nAttackReactBestBloc': 24, 'nAttackReactBestAttack': 0, 'nAttackAfterBloc': 0, 'nChiReactByChi': 24, 'nChiReactAttack': 0, 'nChiReactBestAttack': 62, 'nFallenReact': 0, 'nFallenReactByChi': 100, 'nFallenReactByAttack': 0, 'nMaxAttackReactInRow': 0, 'nFallenReactBestTiming': 20, 'nBlocAfterFall': 43, 'nBoostChiDelayMin': 6, 'nBoostChiDelayMax': 10}}; v1.oEnemy7 = {'sName': 'Raidster', 'sNation': 'Fire', 'nLife': 100, 'nHeadSet': 2, 'nTorsoSet': 3, 'nArmsSet': 3, 'nLegsSet': 3, 'oAIData': {'nDecisionTimeMin': 29, 'nDecisionTimeMax': 126, 'nAttackAction': 32, 'nDefenceAction': 0, 'nMoveAction': 56, 'nBoostChiAction': 12, 'nAttack1Action': 71, 'nAttack2Action': 26, 'nAttack3Action': 3, 'nMoveFrontAction': 30, 'nMoveBackAction': 70, 'nMaxMoveAction': 4, 'nAttackReact': 72, 'nAttackReactByBloc': 93, 'nAttackReactByAttack': 7, 'nAttackReactBestBloc': 28, 'nAttackReactBestAttack': 0, 'nAttackAfterBloc': 0, 'nChiReactByChi': 28, 'nChiReactAttack': 0, 'nChiReactBestAttack': 64, 'nFallenReact': 0, 'nFallenReactByChi': 100, 'nFallenReactByAttack': 0, 'nMaxAttackReactInRow': 0, 'nFallenReactBestTiming': 24, 'nBlocAfterFall': 46, 'nBoostChiDelayMin': 5, 'nBoostChiDelayMax': 10}}; v1.oEnemy8 = {'sName': 'Tween Sage', 'sNation': 'Water', 'nLife': 100, 'nHeadSet': 3, 'nTorsoSet': 1, 'nArmsSet': 1, 'nLegsSet': 1, 'oAIData': {'nDecisionTimeMin': 28, 'nDecisionTimeMax': 117, 'nAttackAction': 34, 'nDefenceAction': 0, 'nMoveAction': 52, 'nBoostChiAction': 14, 'nAttack1Action': 68, 'nAttack2Action': 27, 'nAttack3Action': 5, 'nMoveFrontAction': 35, 'nMoveBackAction': 65, 'nMaxMoveAction': 4, 'nAttackReact': 74, 'nAttackReactByBloc': 89, 'nAttackReactByAttack': 11, 'nAttackReactBestBloc': 32, 'nAttackReactBestAttack': 1, 'nAttackAfterBloc': 0, 'nChiReactByChi': 32, 'nChiReactAttack': 5, 'nChiReactBestAttack': 66, 'nFallenReact': 6, 'nFallenReactByChi': 100, 'nFallenReactByAttack': 0, 'nMaxAttackReactInRow': 0, 'nFallenReactBestTiming': 27, 'nBlocAfterFall': 49, 'nBoostChiDelayMin': 5, 'nBoostChiDelayMax': 10}}; v1.oEnemy9 = {'sName': 'Pedoncuiak', 'sNation': 'Earth', 'nLife': 100, 'nHeadSet': 3, 'nTorsoSet': 1, 'nArmsSet': 2, 'nLegsSet': 3, 'oAIData': {'nDecisionTimeMin': 27, 'nDecisionTimeMax': 108, 'nAttackAction': 36, 'nDefenceAction': 0, 'nMoveAction': 48, 'nBoostChiAction': 16, 'nAttack1Action': 65, 'nAttack2Action': 28, 'nAttack3Action': 7, 'nMoveFrontAction': 40, 'nMoveBackAction': 60, 'nMaxMoveAction': 3, 'nAttackReact': 76, 'nAttackReactByBloc': 86, 'nAttackReactByAttack': 14, 'nAttackReactBestBloc': 36, 'nAttackReactBestAttack': 3, 'nAttackAfterBloc': 5, 'nChiReactByChi': 36, 'nChiReactAttack': 10, 'nChiReactBestAttack': 68, 'nFallenReact': 13, 'nFallenReactByChi': 100, 'nFallenReactByAttack': 0, 'nMaxAttackReactInRow': 0, 'nFallenReactBestTiming': 30, 'nBlocAfterFall': 52, 'nBoostChiDelayMin': 4, 'nBoostChiDelayMax': 10}}; v1.oEnemy10 = {'sName': 'Una', 'sNation': 'Water', 'nLife': 100, 'nHeadSet': 1, 'nTorsoSet': 2, 'nArmsSet': 3, 'nLegsSet': 2, 'oAIData': {'nDecisionTimeMin': 26, 'nDecisionTimeMax': 99, 'nAttackAction': 38, 'nDefenceAction': 0, 'nMoveAction': 44, 'nBoostChiAction': 18, 'nAttack1Action': 62, 'nAttack2Action': 29, 'nAttack3Action': 9, 'nMoveFrontAction': 45, 'nMoveBackAction': 55, 'nMaxMoveAction': 3, 'nAttackReact': 78, 'nAttackReactByBloc': 83, 'nAttackReactByAttack': 17, 'nAttackReactBestBloc': 40, 'nAttackReactBestAttack': 5, 'nAttackAfterBloc': 10, 'nChiReactByChi': 40, 'nChiReactAttack': 15, 'nChiReactBestAttack': 70, 'nFallenReact': 20, 'nFallenReactByChi': 100, 'nFallenReactByAttack': 0, 'nMaxAttackReactInRow': 0, 'nFallenReactBestTiming': 33, 'nBlocAfterFall': 55, 'nBoostChiDelayMin': 4, 'nBoostChiDelayMax': 10}}; v1.oEnemy11 = {'sName': 'Hell-ene', 'sNation': 'Water', 'nLife': 100, 'nHeadSet': 2, 'nTorsoSet': 1, 'nArmsSet': 2, 'nLegsSet': 3, 'oAIData': {'nDecisionTimeMin': 25, 'nDecisionTimeMax': 90, 'nAttackAction': 40, 'nDefenceAction': 0, 'nMoveAction': 40, 'nBoostChiAction': 20, 'nAttack1Action': 59, 'nAttack2Action': 30, 'nAttack3Action': 11, 'nMoveFrontAction': 50, 'nMoveBackAction': 50, 'nMaxMoveAction': 3, 'nAttackReact': 80, 'nAttackReactByBloc': 80, 'nAttackReactByAttack': 20, 'nAttackReactBestBloc': 44, 'nAttackReactBestAttack': 7, 'nAttackAfterBloc': 15, 'nChiReactByChi': 44, 'nChiReactAttack': 20, 'nChiReactBestAttack': 72, 'nFallenReact': 27, 'nFallenReactByChi': 100, 'nFallenReactByAttack': 0, 'nMaxAttackReactInRow': 0, 'nFallenReactBestTiming': 37, 'nBlocAfterFall': 58, 'nBoostChiDelayMin': 3, 'nBoostChiDelayMax': 10}}; v1.oEnemy12 = {'sName': 'FrostYvan', 'sNation': 'Air', 'nLife': 100, 'nHeadSet': 1, 'nTorsoSet': 2, 'nArmsSet': 2, 'nLegsSet': 2, 'oAIData': {'nDecisionTimeMin': 24, 'nDecisionTimeMax': 81, 'nAttackAction': 42, 'nDefenceAction': 0, 'nMoveAction': 36, 'nBoostChiAction': 22, 'nAttack1Action': 56, 'nAttack2Action': 31, 'nAttack3Action': 13, 'nMoveFrontAction': 55, 'nMoveBackAction': 45, 'nMaxMoveAction': 3, 'nAttackReact': 82, 'nAttackReactByBloc': 76, 'nAttackReactByAttack': 24, 'nAttackReactBestBloc': 48, 'nAttackReactBestAttack': 9, 'nAttackAfterBloc': 20, 'nChiReactByChi': 48, 'nChiReactAttack': 25, 'nChiReactBestAttack': 74, 'nFallenReact': 34, 'nFallenReactByChi': 96, 'nFallenReactByAttack': 4, 'nMaxAttackReactInRow': 1, 'nFallenReactBestTiming': 40, 'nBlocAfterFall': 61, 'nBoostChiDelayMin': 3, 'nBoostChiDelayMax': 10}}; v1.oEnemy13 = {'sName': 'Master Abdel', 'sNation': 'Air', 'nLife': 100, 'nHeadSet': 1, 'nTorsoSet': 1, 'nArmsSet': 1, 'nLegsSet': 1, 'oAIData': {'nDecisionTimeMin': 23, 'nDecisionTimeMax': 72, 'nAttackAction': 44, 'nDefenceAction': 0, 'nMoveAction': 32, 'nBoostChiAction': 24, 'nAttack1Action': 53, 'nAttack2Action': 32, 'nAttack3Action': 15, 'nMoveFrontAction': 60, 'nMoveBackAction': 40, 'nMaxMoveAction': 3, 'nAttackReact': 84, 'nAttackReactByBloc': 73, 'nAttackReactByAttack': 27, 'nAttackReactBestBloc': 52, 'nAttackReactBestAttack': 11, 'nAttackAfterBloc': 25, 'nChiReactByChi': 52, 'nChiReactAttack': 30, 'nChiReactBestAttack': 76, 'nFallenReact': 41, 'nFallenReactByChi': 93, 'nFallenReactByAttack': 70, 'nMaxAttackReactInRow': 1, 'nFallenReactBestTiming': 43, 'nBlocAfterFall': 64, 'nBoostChiDelayMin': 3, 'nBoostChiDelayMax': 9}}; v1.oEnemy14 = {'sName': 'ZukoGranGran', 'sNation': 'Fire', 'nLife': 100, 'nHeadSet': 3, 'nTorsoSet': 2, 'nArmsSet': 2, 'nLegsSet': 2, 'oAIData': {'nDecisionTimeMin': 22, 'nDecisionTimeMax': 63, 'nAttackAction': 46, 'nDefenceAction': 0, 'nMoveAction': 28, 'nBoostChiAction': 26, 'nAttack1Action': 50, 'nAttack2Action': 33, 'nAttack3Action': 17, 'nMoveFrontAction': 65, 'nMoveBackAction': 35, 'nMaxMoveAction': 2, 'nAttackReact': 86, 'nAttackReactByBloc': 70, 'nAttackReactByAttack': 30, 'nAttackReactBestBloc': 56, 'nAttackReactBestAttack': 13, 'nAttackAfterBloc': 30, 'nChiReactByChi': 56, 'nChiReactAttack': 35, 'nChiReactBestAttack': 78, 'nFallenReact': 48, 'nFallenReactByChi': 90, 'nFallenReactByAttack': 10, 'nMaxAttackReactInRow': 1, 'nFallenReactBestTiming': 46, 'nBlocAfterFall': 67, 'nBoostChiDelayMin': 3, 'nBoostChiDelayMax': 8}}; v1.oEnemy15 = {'sName': 'StephBeauce', 'sNation': 'Earth', 'nLife': 100, 'nHeadSet': 3, 'nTorsoSet': 1, 'nArmsSet': 3, 'nLegsSet': 3, 'oAIData': {'nDecisionTimeMin': 21, 'nDecisionTimeMax': 54, 'nAttackAction': 48, 'nDefenceAction': 0, 'nMoveAction': 24, 'nBoostChiAction': 28, 'nAttack1Action': 47, 'nAttack2Action': 34, 'nAttack3Action': 19, 'nMoveFrontAction': 70, 'nMoveBackAction': 30, 'nMaxMoveAction': 2, 'nAttackReact': 88, 'nAttackReactByBloc': 67, 'nAttackReactByAttack': 33, 'nAttackReactBestBloc': 60, 'nAttackReactBestAttack': 15, 'nAttackAfterBloc': 35, 'nChiReactByChi': 60, 'nChiReactAttack': 40, 'nChiReactBestAttack': 80, 'nFallenReact': 55, 'nFallenReactByChi': 87, 'nFallenReactByAttack': 13, 'nMaxAttackReactInRow': 2, 'nFallenReactBestTiming': 50, 'nBlocAfterFall': 70, 'nBoostChiDelayMin': 3, 'nBoostChiDelayMax': 7}}; v1.oEnemy16 = {'sName': 'Bigoudidlidi', 'sNation': 'Water', 'nLife': 100, 'nHeadSet': 1, 'nTorsoSet': 2, 'nArmsSet': 1, 'nLegsSet': 2, 'oAIData': {'nDecisionTimeMin': 20, 'nDecisionTimeMax': 45, 'nAttackAction': 50, 'nDefenceAction': 0, 'nMoveAction': 20, 'nBoostChiAction': 30, 'nAttack1Action': 44, 'nAttack2Action': 35, 'nAttack3Action': 21, 'nMoveFrontAction': 75, 'nMoveBackAction': 25, 'nMaxMoveAction': 2, 'nAttackReact': 90, 'nAttackReactByBloc': 63, 'nAttackReactByAttack': 37, 'nAttackReactBestBloc': 64, 'nAttackReactBestAttack': 17, 'nAttackAfterBloc': 40, 'nChiReactByChi': 64, 'nChiReactAttack': 45, 'nChiReactBestAttack': 82, 'nFallenReact': 62, 'nFallenReactByChi': 83, 'nFallenReactByAttack': 17, 'nMaxAttackReactInRow': 2, 'nFallenReactBestTiming': 53, 'nBlocAfterFall': 73, 'nBoostChiDelayMin': 3, 'nBoostChiDelayMax': 6}}; v1.oEnemy17 = {'sName': 'Madd Dogg', 'sNation': 'Earth', 'nLife': 100, 'nHeadSet': 2, 'nTorsoSet': 1, 'nArmsSet': 2, 'nLegsSet': 2, 'oAIData': {'nDecisionTimeMin': 19, 'nDecisionTimeMax': 36, 'nAttackAction': 52, 'nDefenceAction': 0, 'nMoveAction': 16, 'nBoostChiAction': 32, 'nAttack1Action': 41, 'nAttack2Action': 36, 'nAttack3Action': 23, 'nMoveFrontAction': 80, 'nMoveBackAction': 20, 'nMaxMoveAction': 2, 'nAttackReact': 92, 'nAttackReactByBloc': 60, 'nAttackReactByAttack': 40, 'nAttackReactBestBloc': 68, 'nAttackReactBestAttack': 19, 'nAttackAfterBloc': 45, 'nChiReactByChi': 68, 'nChiReactAttack': 50, 'nChiReactBestAttack': 84, 'nFallenReact': 69, 'nFallenReactByChi': 80, 'nFallenReactByAttack': 20, 'nMaxAttackReactInRow': 2, 'nFallenReactBestTiming': 56, 'nBlocAfterFall': 76, 'nBoostChiDelayMin': 3, 'nBoostChiDelayMax': 6}}; v1.oEnemy18 = {'sName': 'FireTongue', 'sNation': 'Fire', 'nLife': 100, 'nHeadSet': 2, 'nTorsoSet': 2, 'nArmsSet': 2, 'nLegsSet': 2, 'oAIData': {'nDecisionTimeMin': 18, 'nDecisionTimeMax': 36, 'nAttackAction': 54, 'nDefenceAction': 0, 'nMoveAction': 12, 'nBoostChiAction': 34, 'nAttack1Action': 38, 'nAttack2Action': 37, 'nAttack3Action': 25, 'nMoveFrontAction': 85, 'nMoveBackAction': 15, 'nMaxMoveAction': 2, 'nAttackReact': 94, 'nAttackReactByBloc': 57, 'nAttackReactByAttack': 43, 'nAttackReactBestBloc': 72, 'nAttackReactBestAttack': 21, 'nAttackAfterBloc': 50, 'nChiReactByChi': 72, 'nChiReactAttack': 55, 'nChiReactBestAttack': 86, 'nFallenReact': 76, 'nFallenReactByChi': 77, 'nFallenReactByAttack': 23, 'nMaxAttackReactInRow': 3, 'nFallenReactBestTiming': 59, 'nBlocAfterFall': 79, 'nBoostChiDelayMin': 3, 'nBoostChiDelayMax': 6}}; v1.oEnemy19 = {'sName': 'Nhommos', 'sNation': 'Air', 'nLife': 100, 'nHeadSet': 3, 'nTorsoSet': 3, 'nArmsSet': 3, 'nLegsSet': 3, 'oAIData': {'nDecisionTimeMin': 17, 'nDecisionTimeMax': 36, 'nAttackAction': 56, 'nDefenceAction': 0, 'nMoveAction': 8, 'nBoostChiAction': 36, 'nAttack1Action': 35, 'nAttack2Action': 38, 'nAttack3Action': 27, 'nMoveFrontAction': 90, 'nMoveBackAction': 10, 'nMaxMoveAction': 1, 'nAttackReact': 96, 'nAttackReactByBloc': 54, 'nAttackReactByAttack': 46, 'nAttackReactBestBloc': 76, 'nAttackReactBestAttack': 23, 'nAttackAfterBloc': 55, 'nChiReactByChi': 76, 'nChiReactAttack': 60, 'nChiReactBestAttack': 88, 'nFallenReact': 83, 'nFallenReactByChi': 74, 'nFallenReactByAttack': 26, 'nMaxAttackReactInRow': 3, 'nFallenReactBestTiming': 63, 'nBlocAfterFall': 82, 'nBoostChiDelayMin': 3, 'nBoostChiDelayMax': 6}}; v1.oEnemy20 = {'sName': 'TorNiOL', 'sNation': 'Fire', 'nLife': 100, 'nHeadSet': 1, 'nTorsoSet': 1, 'nArmsSet': 1, 'nLegsSet': 1, 'oAIData': {'nDecisionTimeMin': 16, 'nDecisionTimeMax': 36, 'nAttackAction': 58, 'nDefenceAction': 0, 'nMoveAction': 4, 'nBoostChiAction': 38, 'nAttack1Action': 32, 'nAttack2Action': 39, 'nAttack3Action': 29, 'nMoveFrontAction': 95, 'nMoveBackAction': 5, 'nMaxMoveAction': 1, 'nAttackReact': 98, 'nAttackReactByBloc': 50, 'nAttackReactByAttack': 50, 'nAttackReactBestBloc': 80, 'nAttackReactBestAttack': 25, 'nAttackAfterBloc': 60, 'nChiReactByChi': 80, 'nChiReactAttack': 65, 'nChiReactBestAttack': 90, 'nFallenReact': 90, 'nFallenReactByChi': 70, 'nFallenReactByAttack': 30, 'nMaxAttackReactInRow': 3, 'nFallenReactBestTiming': 66, 'nBlocAfterFall': 85, 'nBoostChiDelayMin': 3, 'nBoostChiDelayMax': 6}}; ASSetPropFlags(_global.CharacterData.prototype, null, 1); } #endinitclip } movieClip 1766 __Packages.GameParam { #initclip if (!_global.GameParam) { var v1 = function (pMcRef) { this.mcRef = pMcRef; this.mcRef.onEnterFrame = mx.utils.Delegate.create(this, this.enterFrame); this.mcRefMain = this.mcRef._parent; this.bSubmitScore = false; this.sSubmitFrom = ''; this.sGameMode = 'Tournament'; this.nLevel = 1; this.nRound = 1; this.bMoveSaw = false; this.aLvlArenas = new Array(); this.bRestartTrain = false; this.setArenas(); this.getFilesPath(); this.oParamBroadcaster = new Object(); AsBroadcaster.initialize(this.oParamBroadcaster); }; _global.GameParam = v1; var v2 = v1.prototype; v2.createTransition = function (_mcRef, _mcRefMain) { this.oTransit = new Transition(_mcRef, 'oTransit', _mcRefMain); }; v2.createDuelTransition = function (_mcRef, _mcRefMain) { this.oDuelTransit = new Transition(_mcRef, 'oDuelTransit', _mcRefMain); }; v2.createPopUps = function (_mcRef) { this.oPopUp = new PopUp(_mcRef, 'oPopUp'); }; v2.createNationButtons = function () { this.oEarthBtn = new NationButton(this.mcRef._parent.mcNation.mcEarthBtn, 'oEarthBtn', 'Earth'); this.oWaterBtn = new NationButton(this.mcRef._parent.mcNation.mcWaterBtn, 'oWaterBtn', 'Water'); this.oFireBtn = new NationButton(this.mcRef._parent.mcNation.mcFireBtn, 'oFireBtn', 'Fire'); this.oAirBtn = new NationButton(this.mcRef._parent.mcNation.mcAirBtn, 'oAirBtn', 'Air'); }; v2.createScoreSystem = function () { this.oScoreSystem = new ScoreSystem('oScoreSystem'); }; v2.getFilesPath = function () { var v2 = new String(this.mcRefMain._url); if (v2.lastIndexOf('/') == -1) { var v3 = v2.lastIndexOf('\\'); } else { var v3 = v2.lastIndexOf('/'); if (v3 <= 10) { v3 = v2.lastIndexOf('\\'); } } this.sFilesPath = v2.substring(0, v3 + 1); }; v2.initParam = function () { this.createPopUps(this.mcRef._parent.mcPopUp); this.createTransition(this.mcRef._parent.mcTransit, this.mcRefMain); this.createDuelTransition(this.mcRef._parent.mcDuelTransit, this.mcRefMain); this.createScoreSystem(); this.oParamBroadcaster.addListener(_global.Music); this.oParamBroadcaster.addListener(_global.Sfx); this.oParamBroadcaster.addListener(this.oPopUp); this.oParamBroadcaster.addListener(this.oTransit); this.oParamBroadcaster.addListener(this.oDuelTransit); }; v2.distributeEnemyData = function () { this.xmlEnemyList = this.xmlEnemy.getSubXml('enemylist'); var v4 = 0; while (v4 < this.xmlEnemyList.childNodes.length) { var v3 = 'oEnemy' + int(20 - v4); var v2 = this.xmlEnemyList.childNodes[v4]; CharacterData[v3].sName = this.xmlEnemy.getLevelNodeData('name', v2); CharacterData[v3].sNation = this.xmlEnemy.getLevelNodeData('nation', v2); CharacterData[v3].nHeadSet = this.xmlEnemy.getLevelNodeData('headset', v2); CharacterData[v3].nTorsoSet = this.xmlEnemy.getLevelNodeData('torsoset', v2); CharacterData[v3].nArmsSet = this.xmlEnemy.getLevelNodeData('armsset', v2); CharacterData[v3].nLegsSet = this.xmlEnemy.getLevelNodeData('legsset', v2); ++v4; } }; v2.selectMode = function (_sGameMode) { this.sGameMode = _sGameMode; if (this.sGameMode == 'Training') { this.nLevel = 0; } else { this.nLevel = 1; } }; v2.setNextLevel = function () { _global.P.nRound = 1; ++_global.P.nLevel; }; v2.resetParam = function () { this.bMoveSaw = false; this.nLevel = 1; this.nRound = 1; this.sGameMode = 'Tournament'; this.oScoreSystem.initVariables(); }; v2.resetParamRestartTrain = function () { this.bMoveSaw = false; this.oScoreSystem.initVariables(); }; v2.resetForPlayAgain = function () { this.nLevel = 1; this.nRound = 1; this.sGameMode = 'Tournament'; this.oScoreSystem.initVariables(); }; v2.setArenas = function () { var v2 = 1; while (v2 <= 20) { if (v2 <= 4) { this.aLvlArenas.push('Air'); } else { if (v2 <= 8) { this.aLvlArenas.push('Earth'); } else { if (v2 <= 12) { this.aLvlArenas.push('Water'); } else { if (v2 <= 16) { this.aLvlArenas.push('Fire'); } else { this.aLvlArenas.push('NoNation'); } } } } ++v2; } }; v2.enterFrame = function () { this.oParamBroadcaster.broadcastMessage('doAction'); }; v2.XML_FILE = 'xml/EnemyList.xml'; ASSetPropFlags(_global.GameParam.prototype, null, 1); } #endinitclip } movieClip 1767 __Packages.XmlTool { #initclip if (!_global.XmlTool) { var v1 = function (_sXmlName) { if (_sXmlName.length != undefined) { this.xmlData = new XML(); this.sXmlFileName = _sXmlName; this.xmlData.ignoreWhite = true; this.xmlData.onLoad = mx.utils.Delegate.create(this, this.doInformListener); this.xmlData.load(this.sXmlFileName); this.bNoLoad = false; } else { this.bNoLoad = true; } }; _global.XmlTool = v1; var v2 = v1.prototype; v2.doSetListener = function (__oListener) { this.oListener = __oListener; }; v2.doInformListener = function (__bSuccess) { this.oListener.onXMLLoadComplete(this, __bSuccess); if (__bSuccess == true) { _global.P.distributeEnemyData(); } }; v2.isLoaded = function () { var v2 = false; if (this.bNoLoad || this.xmlData.getBytesLoaded() >= this.xmlData.getBytesTotal() && this.xmlData.getBytesTotal() > 2) { v2 = true; } return v2; }; v2.getSubXml = function (_sNodeName, _xmlRef) { var v2 = new XMLNode(); if (this.isLoaded()) { var v4 = this.xmlData; if (_xmlRef != undefined) { v4 = _xmlRef; } v2 = v4.firstChild; for (;;) { if (!(v2.nodeName != _sNodeName && v2.hasChildNodes() && v2 != undefined)) break; v2 = v2.firstChild; } } return v2; }; v2.getLevelNode = function (_sNodeName, _xmlRef) { var v4 = new XMLNode(); if (this.isLoaded()) { var v3 = this.xmlData.firstChild; if (_xmlRef != undefined) { v3 = _xmlRef; } var v2 = 0; while (v2 < v3.childNodes.length) { if (v3.childNodes[v2].nodeName == _sNodeName) { v4 = v3.childNodes[v2]; v2 = v3.childNodes.length; } ++v2; } } return v4; }; v2.getLevelNodeData = function (_sNodeName, _xmlRef) { var v4 = new String(); if (this.isLoaded()) { var v2 = 0; while (v2 < _xmlRef.childNodes.length) { if (_xmlRef.childNodes[v2].nodeName == _sNodeName) { v4 = _xmlRef.childNodes[v2].childNodes[0].nodeValue; v2 = _xmlRef.childNodes.length; } ++v2; } } return v4; }; v2.getLevelNodeAttribute = function (_sNodeName, _sAttributeName, _xmlRef) { var v4 = new String(); if (this.isLoaded()) { var v2 = 0; while (v2 < _xmlRef.childNodes.length) { if (_xmlRef.childNodes[v2].nodeName == _sNodeName) { v4 = _xmlRef.childNodes[v2].attributes[_sAttributeName]; v2 = _xmlRef.childNodes.length; } ++v2; } } return v4; }; v2.doDestroy = function () { delete this.oListener; delete this.xmlData; }; v2.valueOf = function () { return this.xmlData.toString(); }; ASSetPropFlags(_global.XmlTool.prototype, null, 1); } #endinitclip } movieClip 1768 __Packages.mx.utils.Delegate { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.utils) { _global.mx.utils = new Object(); } if (!_global.mx.utils.Delegate) { var v1 = function (f) { super(); this.func = f; }; mx.utils.Delegate = v1; mx.utils.Delegate extends Object; var v2 = v1.prototype; v1.create = function (obj, func) { var v2 = function () { var v2 = arguments.callee.target; var v3 = arguments.callee.func; return v3.apply(v2, arguments); }; v2.target = obj; v2.func = func; return v2; }; v2.createDelegate = function (obj) { return mx.utils.Delegate.create(obj, this.func); }; ASSetPropFlags(mx.utils.Delegate.prototype, null, 1); } #endinitclip } movieClip 1769 __Packages.State { #initclip if (!_global.State) { var v1 = function (_mcRef, _sName) { this.mcRef = _mcRef; this.sName = _sName; this.nPosX = this.mcRef._x; this.nPosY = this.mcRef._y; this.bPausable = true; this.bPauseForChi = false; this.bCanChiPause = true; this.bWillChiPause = false; }; _global.State = v1; var v2 = v1.prototype; v2.doPause = function () { this.mcRef.mcState.stop(); }; v2.doUnpause = function () { if (this.bPauseForChi == false) { this.mcRef.mcState.play(); } }; v2.checkForChiUnpause = function () { if (this.bPauseForChi == true) { this.doChiUnpause(); } }; v2.doChiPause = function () { if (this.bCanChiPause == true) { this.bPauseForChi = true; this.doPause(); } else { this.bWillChiPause = true; } }; v2.doChiUnpause = function () { this.bPauseForChi = false; this.doUnpause(); }; v2.doAction = function () { if (this.bWillChiPause == true and this.bCanChiPause == true) { this.bWillChiPause = false; this.doChiPause(); } if ((this.bPausable == false or this.bPausable == true and _global.C.bPause == false) and this.bPauseForChi == false) { this[this.sState](); } }; v2.setState = function (_sState) { if (this.sState != _sState) { this.sState = _sState; this.mcRef.gotoAndStop(this.sState); this.nNbFrAnim = this.mcRef.mcState._totalframes; } }; ASSetPropFlags(_global.State.prototype, null, 1); } #endinitclip } movieClip 1770 __Packages.Transition { #initclip if (!_global.Transition) { var v1 = function (_mcRef, _sName, _mcRefMain) { super(_mcRef, _sName); this.mcRefMain = _mcRefMain; this.bPausable = false; this.setState('Idle'); }; _global.Transition = v1; _global.Transition extends State; var v2 = v1.prototype; v2.goTo = function (_sGoingTo) { this.sGoingTo = _sGoingTo; if (this.sName == 'oDuelTransit') { _global.Sfx.PlaySound('TransitOpen', -1, 0); } this.setState('Opening'); }; v2.changeSection = function () { if (_global.P.oPopUp.sCurPopUp == 'EndTraining') { CharacterData.resetStatueData(); _global.P.oScoreSystem.resetTrainingScore(); _global.P.oPopUp.setState('Close'); } else { if (_global.P.oPopUp.sCurPopUp == 'WinLevel' or _global.P.oPopUp.sCurPopUp == 'LooseLevel') { _global.P.oScoreSystem.resetLevelScore(); _global.P.oPopUp.setState('Close'); } } if (this.sGoingTo == 'InGameInstructP1') { _global.P.oPopUp.mcRef.mcState.gotoAndStop('Instruct' + _global.C.oPlayer.sNation); } else { if (this.sGoingTo == 'InGameMenu') { _global.P.oPopUp.mcRef.mcState.gotoAndStop('Menu'); } else { if (this.sGoingTo != 'RestartTrain') { this.mcRefMain.gotoAndStop(this.sGoingTo); } } } switch (this.sGoingTo) { case 'Title': if (_global.Music.Items.MusPack.bPlaying == false) { _global.Music.PlaySound('MusPack', -1, 100000); } if (_global.P.oPopUp.sCurPopUp == 'Menu') { CharacterData.resetStatueData(); _global.P.oPopUp.setState('Close'); } _global.P.resetParam(); break; case 'ChooseNation': _global.P.createNationButtons(); break; case 'Story': _global.P.oPopUp.setState('Close'); break; case 'Progress': _global.P.oPopUp.setState('Close'); break; case 'Game': if (_global.P.bMoveSaw == false) { _global.P.oPopUp.setOpen('ShowMove', false); } else { if (_global.P.sGameMode == 'Training') { _global.P.oPopUp.setOpen('Training', false); } else { _global.P.oPopUp.setOpen('Round', false); } } break; case 'ChooseLvl': _global.P.oPopUp.setState('Close'); break; case 'ResetTraining': _global.P.resetParamRestartTrain(); _global.P.oPopUp.setOpen('Training', false); break; case 'NextLevel': _global.P.nRound = 1; ++_global.P.nLevel; _global.P.setArena(); _global.P.oPopUp.setOpen('Round', false); break; case 'TryAgain': _global.P.nRound = 1; _global.P.oPopUp.setOpen('Round', false); break; case 'LooseScr': if (_global.P.oPopUp.sCurPopUp == 'Menu') { _global.P.oPopUp.setState('Close'); } if (_global.Music.Items.MusPack.bPlaying == false) { _global.Music.PlaySound('MusPack', -1, 100000); } break; case 'WinScr': if (_global.Music.Items.MusPack.bPlaying == false) { _global.Music.PlaySound('MusPack', -1, 100000); } break; case 'RestartTrain': CharacterData.resetStatueData(); this.mcRefMain.gotoAndStop('NextLevel'); _global.P.oPopUp.setOpen('Training', false); break; default: } if (this.sGoingTo != 'RestartTrain') { this.sComingFrom = this.sGoingTo; } if (this.sName == 'oDuelTransit') { _global.Sfx.PlaySound('TransitClose', -1, 0); } this.setState('Closing'); }; v2.Opening = function () { if (this.mcRef.mcState._currentframe >= this.nNbFrAnim) { this.setState('Opened'); } }; v2.Opened = function () { if (this.mcRef.mcState._currentframe >= this.nNbFrAnim) { this.changeSection(); } }; v2.Closing = function () { if (this.mcRef.mcState._currentframe >= this.nNbFrAnim) { if (this.sGoingTo == 'Story') { this.mcRefMain.mcStoryScr.mcStoryTxt.play(); } this.setState('Idle'); } }; ASSetPropFlags(_global.Transition.prototype, null, 1); } #endinitclip } movieClip 1771 __Packages.PopUp { #initclip if (!_global.PopUp) { var v1 = function (_mcRef, _sName) { super(_mcRef, _sName); this.sCurPopUp = ''; this.bPausable = false; this.bOpenQuit = false; this.bOpenMenu = false; this.bQuitGame = false; this.setState('Close'); }; _global.PopUp = v1; _global.PopUp extends State; var v2 = v1.prototype; v2.Close = function () {}; v2.MenuOpening = function () { if (this.mcRef.mcState._currentframe >= this.nNbFrAnim) { this.setState('MenuOpen'); } }; v2.MenuOpen = function () {}; v2.MenuClosing = function () { if (this.mcRef.mcState._currentframe >= this.nNbFrAnim) { if (this.bOpenQuit == false) { _global.C.callUnpause(); this.setState('Close'); } else { this.sCurPopUp = 'Quit'; this.setState('QuitOpening'); } } }; v2.GameModeOpening = function () { if (this.mcRef.mcState._currentframe >= this.nNbFrAnim) { this.setState('GameModeOpen'); } }; v2.GameModeOpen = function () {}; v2.QuitOpening = function () { if (this.mcRef.mcState._currentframe >= this.nNbFrAnim) { this.setState('QuitOpen'); } }; v2.QuitOpen = function () {}; v2.QuitClosing = function () { if (this.mcRef.mcState._currentframe >= this.nNbFrAnim) { if (this.bOpenMenu == true) { this.bOpenMenu = false; this.sCurPopUp = 'Menu'; this.setState('MenuOpening'); } else { this.sCurPopUp = ''; if (this.bQuitGame == true) { this.bQuitGame = false; _global.P.oTransit.goTo('LoseScr'); } else { _global.C.callUnpause(); } this.setState('Close'); } } }; v2.ShowMoveOpen = function () { if (Key.isDown(32)) { this.setState('ShowMoveClosing'); } }; v2.ShowMoveClosing = function () { if (this.mcRef.mcState._currentframe >= this.nNbFrAnim) { _global.P.bMoveSaw = true; _global.C.callUnpause(); if (_global.P.sGameMode == 'Training') { this.setOpen('Training', false); } else { this.setOpen('Round', false); } } }; v2.RoundOpening = function () { if (this.mcRef.mcState._currentframe == 25) { _global.Sfx.PlaySound('ImpactText', -1, 0); } else { if (this.mcRef.mcState._currentframe == 82) { _global.Sfx.PlaySound('Fight', -1, 0); } else { if (this.mcRef.mcState._currentframe >= this.nNbFrAnim) { if (_global.Music.Items.MusGame.bPlaying == false) { _global.Music.PlaySound('MusGame', -1, 100000); } this.setState('RoundOpen'); } } } }; v2.RoundOpen = function () { if (this.mcRef.mcState._currentframe >= this.nNbFrAnim) { this.setState('RoundClosing'); } }; v2.RoundClosing = function () { if (this.mcRef.mcState._currentframe >= this.nNbFrAnim) { _global.C.bRoundOver = false; _global.C.oTimer.bRunning = true; _global.C.oPlayer.bActionBloc = false; _global.C.oEnemy.bActionBloc = false; this.setState('Close'); } }; v2.TrainingOpening = function () { if (this.mcRef.mcState._currentframe == 25) { _global.Sfx.PlaySound('ImpactText', -1, 0); } else { if (this.mcRef.mcState._currentframe == 82) { _global.Sfx.PlaySound('Fight', -1, 0); } else { if (this.mcRef.mcState._currentframe >= this.nNbFrAnim) { _global.Music.PlaySound('MusGame', -1, 100000); this.setState('TrainingOpen'); } } } }; v2.TrainingOpen = function () { if (this.mcRef.mcState._currentframe >= this.nNbFrAnim) { this.setState('TrainingClosing'); } }; v2.TrainingClosing = function () { if (this.mcRef.mcState._currentframe >= this.nNbFrAnim) { _global.C.oTimer.bRunning = true; _global.C.oPlayer.bActionBloc = false; _global.C.oEnemy.bActionBloc = false; this.setState('Close'); } }; v2.EndTrainingOpening = function () { if (this.mcRef.mcState._currentframe >= this.nNbFrAnim) { _global.Music.TabFade.push(['MusGame', 0, 'Out', 0.2]); _global.Sfx.PlaySound('PointLoop', 0, 100000); _global.Sfx.TabFade.push(['PointLoop', -1, 'In', 4]); this.setState('EndTrainingShowPts'); } }; v2.EndTrainingShowPts = function () { var v3 = _global.P.oScoreSystem.setProgressTrainingScore(); if (v3 == 'EndProgress') { _global.Sfx.StopSound('PointLoop'); _global.Sfx.PlaySound('PointEnd', -1, 0); this.setState('EndTrainingOpen'); } else { this.mcRef.mcState.mcScore.txtScore = v3; } }; v2.EndTrainingOpen = function () {}; v2.WinLevelOpening = function () { if (this.mcRef.mcState._currentframe >= this.nNbFrAnim) { _global.Music.TabFade.push(['MusGame', 0, 'Out', 0.2]); _global.Sfx.PlaySound('PointLoop', 0, 100000); _global.Sfx.TabFade.push(['PointLoop', -1, 'In', 4]); this.setState('WinLevelShowPts'); } }; v2.WinLevelShowPts = function () { var v3 = _global.P.oScoreSystem.setProgressLevelScore(); var v4 = _global.P.oScoreSystem.formatNumber(_global.P.oScoreSystem.nScore); if (v3 == 'EndProgress') { _global.Sfx.StopSound('PointLoop'); _global.Sfx.PlaySound('PointEnd', -1, 0); this.setState('WinLevelOpen'); } else { this.mcRef.mcState.mcScore.txtLevelScore = v3; this.mcRef.mcState.mcScore.txtScore = v4; } }; v2.WinLevelOpen = function () { if (Key.isDown(32) and _global.P.oTransit.sState == 'Idle') { if (_global.P.nLevel >= 20) { _global.P.oTransit.goTo('WinScr'); } else { _global.P.setNextLevel(); _global.P.oTransit.goTo('Progress'); } } }; v2.LooseLevelOpening = function () { if (this.mcRef.mcState._currentframe >= this.nNbFrAnim) { _global.Music.TabFade.push(['MusGame', 0, 'Out', 0.2]); this.setState('LooseLevelOpen'); } }; v2.LooseLevelOpen = function () {}; v2.setOpen = function (_sPopUp, _bPause) { if (_bPause == true) { for (var v3 in _global.Sfx.Controlled) { if (_global.Sfx.Items[_global.Sfx.Controlled[v3]].NbPlay > 0) { _global.Sfx.StopSound(_global.Sfx.Items[_global.Sfx.Controlled[v3]].Nom); } } _global.C.callPause(); } this.sCurPopUp = _sPopUp; if (_sPopUp == 'ShowMove') { this.setState(_sPopUp + 'Open'); } else { this.setState(_sPopUp + 'Opening'); } this.mcRef.LockBtn.useHandCursor = false; }; v2.setClose = function () { this.setState(this.sCurPopUp + 'Closing'); }; ASSetPropFlags(_global.PopUp.prototype, null, 1); } #endinitclip } movieClip 1772 __Packages.NationButton { #initclip if (!_global.NationButton) { var v1 = function (_mcRef, _sName, _sNation) { super(_mcRef, _sName); this.sNation = _sNation; this.bLock = false; this.setState('Idle'); _global.P.oParamBroadcaster.addListener(this); }; _global.NationButton = v1; _global.NationButton extends State; var v2 = v1.prototype; v2.Idle = function () {}; v2.OverButton = function () { if (this.mcRef.mcState._currentframe >= this.nNbFrAnim) { this.setState('IdleOver'); } }; v2.IdleOver = function () {}; v2.Out = function () { if (this.mcRef.mcState._currentframe >= this.nNbFrAnim) { this.setState('Idle'); } }; v2.Click = function () { if (this.mcRef.mcState._currentframe >= this.nNbFrAnim) { if (_global.P.oTransit.sState == 'Idle') { _global.P.oTransit.goTo('CreateBender'); } this.setState('Lock'); } }; v2.Lock = function () { _global.P.oParamBroadcaster.removeListener(this); delete _global.P[this.sName]; }; v2.doRollOver = function () { if (this.bLock == false and (this.sState == 'Idle' or this.sState == 'Out')) { this.setState('OverButton'); } }; v2.doRollOut = function () { if (this.bLock == false and (this.sState == 'IdleOver' or this.sState == 'OverButton')) { this.setState('Out'); } }; v2.doPress = function () { if (this.bLock == false) { CharacterData.oPlayer.sNation = this.sNation; _global.P.oParamBroadcaster.broadcastMessage('doLock', this.sName); } }; v2.doLock = function (_sLockerName) { if (this.sName != _sLockerName) { this.bLock = true; if (this.sState == 'Idle') { this.setState('Lock'); } } else { this.setState('Click'); } }; v2.setState = function (_sState) { if (this.sState != _sState) { if (this.bLock == true and _sState != 'Lock') { this.setState('Lock'); } else { this.sState = _sState; this.mcRef.gotoAndStop(this.sState); this.nNbFrAnim = this.mcRef.mcState._totalframes; } } }; v2.doAction = function () { this[this.sState](); }; ASSetPropFlags(_global.NationButton.prototype, null, 1); } #endinitclip } movieClip 1773 __Packages.ScoreSystem { #initclip if (!_global.ScoreSystem) { var v1 = function (_sName) { this.sName = _sName; this.nTrainingScore = 0; this.nLevelScore = 0; this.nScore = 0; this.nProgressTrainingScore = 0; this.nProgressLevelScore = 0; }; _global.ScoreSystem = v1; var v2 = v1.prototype; v2.initVariables = function () { this.nTrainingScore = 0; this.nLevelScore = 0; this.nScore = 0; this.nProgressTrainingScore = 0; this.nProgressLevelScore = 0; }; v2.calculTrainingScore = function () { var v3 = _global.C.oTimer.nTotalSeconds; this.nTrainingScore = int(v3 * 250000000 / Math.pow(v3, 2.65) / 20); }; v2.calculLevelScore = function () { var v3 = _global.C.oTimer.nTotalSeconds; this.nLevelScore = int(v3 * 250000000 / Math.pow(v3, 2.75)); }; v2.setProgressTrainingScore = function () { var v2; if (this.nProgressTrainingScore < 10) { v2 = 1; } else { if (this.nProgressTrainingScore < 100) { v2 = 10; } else { if (this.nProgressTrainingScore < 1000) { v2 = 100; } else { if (this.nProgressTrainingScore < 10000) { v2 = 1000; } else { if (this.nProgressTrainingScore < 100000) { v2 = 10000; } else { v2 = 100000; } } } } } if (this.nProgressTrainingScore < this.nTrainingScore) { this.nProgressTrainingScore += v2; if (this.nProgressTrainingScore > this.nTrainingScore) { this.nProgressTrainingScore = this.nTrainingScore; } var v3 = this.formatNumber(this.nProgressTrainingScore); return v3; } v3 = 'EndProgress'; return v3; }; v2.setProgressLevelScore = function () { var v2; if (this.nProgressLevelScore < 10) { v2 = 1; } else { if (this.nProgressLevelScore < 100) { v2 = 10; } else { if (this.nProgressLevelScore < 1000) { v2 = 100; } else { if (this.nProgressLevelScore < 10000) { v2 = 1000; } else { if (this.nProgressLevelScore < 100000) { v2 = 10000; } else { v2 = 100000; } } } } } if (this.nProgressLevelScore < this.nLevelScore) { this.nProgressLevelScore += v2; this.nScore += v2; if (this.nProgressLevelScore > this.nLevelScore) { this.nScore -= this.nProgressLevelScore - this.nLevelScore; this.nProgressLevelScore = this.nLevelScore; } var v3 = this.formatNumber(this.nProgressLevelScore); return v3; } v3 = 'EndProgress'; return v3; }; v2.resetTrainingScore = function () { this.nTrainingScore = 0; this.nProgressTrainingScore = 0; }; v2.resetLevelScore = function () { this.nLevelScore = 0; this.nProgressLevelScore = 0; }; v2.formatNumber = function (_nNumber) { var v1 = String(_nNumber); var v2 = ''; while (v1.length > 0) { v2 = v1.substring(v1.length - 3, v1.length) + ' ' + v2; v1 = v1.substring(0, v1.length - 3); } return v2; }; ASSetPropFlags(_global.ScoreSystem.prototype, null, 1); } #endinitclip } movieClip 1774 __Packages.GameController { #initclip if (!_global.GameController) { var v1 = function (P_mcRef) { this.mcRef = P_mcRef; this.mcGame = this.mcRef._parent; this.bPause = false; this.mcAttachBullets = undefined; this.nBulletIndex = 1; this.nBulletDepth = 10; this.bRoundOver = false; this.oActionBroadcast = new Object(); AsBroadcaster.initialize(this.oActionBroadcast); this.mcRef.onEnterFrame = mx.utils.Delegate.create(this, this.enterFrame); }; _global.GameController = v1; var v2 = v1.prototype; v2.createHud = function () { this.oHud = new Hud(this.mcGame.mcHud, 'oHud'); }; v2.createTimer = function () { this.oTimer = new Timer('oTimer'); }; v2.createKeyCatcher = function () { this.oKeyCatcher = new KeyCatcher('oKeyCatcher', ['KEY_SPACE', 'KEY_UP', 'KEY_RIGHT', 'KEY_DOWN', 'KEY_LEFT']); }; v2.createComboManager = function () { this.oComboManager = new ComboManager('oComboManager', CombosData['o' + CharacterData.oPlayer.sNation + 'CombosData']); }; v2.createPlayer = function () { this.oPlayer = new Player(this.mcRef._parent.mcBg.mcPlayer, 'oPlayer'); }; v2.createEnemy = function () { CharacterData.setEnemyData(_global.P.nLevel); this.oEnemy = new Enemy(this.mcRef._parent.mcBg.mcEnemy, 'oEnemy'); }; v2.createStatue = function () { CharacterData.setEnemyData(_global.P.nLevel); this.oEnemy = new Statue(this.mcRef._parent.mcBg.mcEnemy, 'oEnemy'); }; v2.createBg = function () { this.oBg = new Bg(this.mcRef._parent.mcBg, 'oBg'); }; v2.createLifeBars = function () { this.oPlayerLifeBar = new LifeBar(this.mcRef._parent.mcHud.mcPlayerHud.mcLifeBar, 'oPlayerLifeBar', 'oPlayer'); this.oEnemyLifeBar = new LifeBar(this.mcRef._parent.mcHud.mcEnemyHud.mcLifeBar, 'oEnemyLifeBar', 'oEnemy'); }; v2.createChiBars = function () { this.oPlayerChiBar = new ChiBar(this.mcRef._parent.mcHud.mcPlayerHud.mcChiBar, 'oPlayerChiBar', 'oPlayer'); this.oEnemyChiBar = new ChiBar(this.mcRef._parent.mcHud.mcEnemyHud.mcChiBar, 'oEnemyChiBar', 'oEnemy'); }; v2.createBullet = function (_sAttackName, _sLauncherNation, _sLauncherName, _sAttackDir, _sTarget) { var v6 = CombatData[_sLauncherNation + 'Attack'][_sAttackName]; var v2 = 'oBullet' + this.nBulletIndex; var v3 = 'mcBullet' + this.nBulletIndex; var v4 = this.nBulletDepth; var v5 = 'mc' + _sAttackName + 'Bullet'; ++this.nBulletIndex; ++this.nBulletDepth; this[v2] = new Bullet(undefined, v2, _sAttackName, v6, _sLauncherNation, _sLauncherName, _sAttackDir, _sTarget); this.mcAttachBullets.attachMovie(v5, v3, v4); this[v2].iniAtStart(this.mcAttachBullets[v3]); }; v2.createBlackScreen = function () { this.oBlackScreen = new BlackScreen(this.mcRef._parent.mcBg.mcBlackScreen, 'oBlackScreen'); }; v2.createBlinker = function () { this.oBlinker = new Blinker('oBlinker'); }; v2.callPause = function () { this.bPause = true; this.oActionBroadcast.broadcastMessage('doPause'); }; v2.callUnpause = function () { this.oActionBroadcast.broadcastMessage('doUnpause'); this.bPause = false; }; v2.enterFrame = function () { this.oActionBroadcast.broadcastMessage('doAction'); }; v2.initController = function () { this.createHud(); this.createTimer(); this.createKeyCatcher(); this.createComboManager(); this.createPlayer(); if (_global.P.sGameMode == 'Training') { this.createStatue(); } else { this.createEnemy(); } this.createLifeBars(); this.createChiBars(); this.createBg(); this.createBlackScreen(); this.createBlinker(); this.oActionBroadcast.addListener(this.oKeyCatcher); this.oActionBroadcast.addListener(this.oComboManager); if (_global.P.bMoveSaw == false and _global.P.bRestartTrain == false) { this.callPause(); } if (_global.P.bRestartTrain == true) { _global.P.bRestartTrain = false; } }; v2.checkMatchEnd = function (_sLooserName) { if (this.oEnemy.nRoundWin == 2) { _global.P.oScoreSystem.calculLevelScore(); _global.P.oPopUp.setOpen('LooseLevel', true); } else { if (this.oPlayer.nRoundWin == 2) { _global.P.oScoreSystem.calculLevelScore(); _global.P.oPopUp.setOpen('WinLevel', true); } else { if (Math.abs(this.oEnemy.nRoundWin - this.oPlayer.nRoundWin) == 2) { if (this.oEnemy.nRoundWin > this.oPlayer.nRoundWin) { _global.P.oScoreSystem.calculLevelScore(); _global.P.oPopUp.setOpen('LooseLevel', true); } else { _global.P.oScoreSystem.calculLevelScore(); _global.P.oPopUp.setOpen('WinLevel', true); } } else { ++_global.P.nRound; this.oPlayer.nLife = this.oPlayer.nMaxLife; this.oPlayer.oChiBar.bDownForNext = true; this.oEnemy.nLife = this.oEnemy.nMaxLife; this.oEnemy.oChiBar.bDownForNext = true; this[_sLooserName].setState('GetUpDead'); _global.P.oPopUp.setOpen('Round', false); } } } }; ASSetPropFlags(_global.GameController.prototype, null, 1); } #endinitclip } movieClip 1775 __Packages.Hud { #initclip if (!_global.Hud) { var v1 = function (_mcRef, _sName) { this.mcRef = _mcRef; this.sName = _sName; }; _global.Hud = v1; var v2 = v1.prototype; v2.showRounds = function () { trace('mc : ' + this.mcRef.mcPlayerRound); this.mcRef.mcPlayerRound.gotoAndStop(_global.C.oPlayer.nRoundWin + 1); this.mcRef.mcEnemyRound.gotoAndStop(_global.C.oEnemy.nRoundWin + 1); }; ASSetPropFlags(_global.Hud.prototype, null, 1); } #endinitclip } movieClip 1776 __Packages.Timer { #initclip if (!_global.Timer) { var v1 = function (_sName) { this.sName = _sName; this.nFrInSecond = 45; this.nFrPass = 0; this.nTotalSeconds = 0; this.nSeconds = 0; this.nMinutes = 0; this.nHours = 0; this.bRunning = false; this.bHourBusted = false; _global.C.oActionBroadcast.addListener(this); }; _global.Timer = v1; var v2 = v1.prototype; v2.countTime = function () { ++this.nFrPass; if (this.nFrPass >= this.nFrInSecond) { this.nFrPass = 0; ++this.nTotalSeconds; if (this.bHourBusted == false) { ++this.nSeconds; if (this.nSeconds >= 60) { this.nSeconds = 0; ++this.nMinutes; if (this.nMinutes >= 60) { this.nMinutes = 0; ++this.nHours; if (this.nHours > 99) { this.bHourBusted = true; this.nHours = 99; } } } } } }; v2.doAction = function () { if (_global.C.bPause == false and this.bRunning == true) { this.countTime(); } }; ASSetPropFlags(_global.Timer.prototype, null, 1); } #endinitclip } movieClip 1777 __Packages.KeyCatcher { #initclip if (!_global.KeyCatcher) { var v1 = function (_sName, _aGameKeys) { this.sName = _sName; this.sState = 'CatchKeys'; this.bPausable = true; this.aGameKeys = _aGameKeys; this.oPressKeys = new Object(); for (var v2 in this.aGameKeys) { this.oPressKeys[this.aGameKeys[v2]] = false; } }; _global.KeyCatcher = v1; var v2 = v1.prototype; v2.CatchKeys = function () { for (var v3 in this.aGameKeys) { if (Key.isDown(this[this.aGameKeys[v3]])) { this.oPressKeys[this.aGameKeys[v3]] = true; _global.C.oActionBroadcast.broadcastMessage('recievePressKey', this.aGameKeys[v3]); } else { if (Key.isDown(this[this.aGameKeys[v3]]) == false and this.oPressKeys[this.aGameKeys[v3]] == true) { this.oPressKeys[this.aGameKeys[v3]] = false; _global.C.oActionBroadcast.broadcastMessage('recieveReleaseKey', this.aGameKeys[v3]); } } } }; v2.doAction = function () { if (this.bPausable == false or this.bPausable == true and _global.C.bPause == false) { this[this.sState](); } }; v2.KEY_LEFT = 37; v2.KEY_UP = 38; v2.KEY_RIGHT = 39; v2.KEY_DOWN = 40; v2.KEY_SPACE = 32; ASSetPropFlags(_global.KeyCatcher.prototype, null, 1); } #endinitclip } movieClip 1778 __Packages.ComboManager { #initclip if (!_global.ComboManager) { var v1 = function (_sName, _oCombosData) { this.sName = _sName; this.sState = 'ControlCombo'; this.bPausable = true; this.oCombosData = _oCombosData; this.nIndexInCombo = 0; this.nMaxTimeBetweenKeys = 10; this.nTimeForNextKey = 0; this.sKeyIn = ''; this.oReleaseKeys = new Object(); }; _global.ComboManager = v1; var v2 = v1.prototype; v2.ControlCombo = function () { if (this.nTimeForNextKey > 0) { --this.nTimeForNextKey; if (this.nTimeForNextKey == 0) { this.resetCombosCreation(); } } }; v2.doAction = function () { if (this.bPausable == false or this.bPausable == true and _global.C.bPause == false) { this[this.sState](); } }; v2.recievePressKey = function (_sKey) { if (this.oReleaseKeys[_sKey] == undefined) { this.oReleaseKeys[_sKey] = true; } if (this.oReleaseKeys[_sKey] == true) { this.oReleaseKeys[_sKey] = false; this.sKeyIn = _sKey; this.validateKey(); } }; v2.recieveReleaseKey = function (_sKey) { this.oReleaseKeys[_sKey] = true; }; v2.validateKey = function () { var v2 = 0; for (var v3 in this.oCombosData) { if (this.oCombosData[v3].aKeysDefinition[this.nIndexInCombo] == this.sKeyIn and this.oCombosData[v3].bComboInProgress == true) { if (this.oCombosData[v3].sKeyNeedToHold == '') { ++v2; } else { if (this.oReleaseKeys[this.oCombosData[v3].sKeyNeedToHold] == false) { ++v2; } } } else { this.oCombosData[v3].bComboInProgress = false; } } if (v2 > 0) { this.advanceInCombos(); } else { this.resetCombosCreation(); } }; v2.advanceInCombos = function () { ++this.nIndexInCombo; this.nTimeForNextKey = this.nMaxTimeBetweenKeys; for (var v3 in this.oCombosData) { if (this.oCombosData[v3].aKeysDefinition[this.nIndexInCombo] == 'COMBO_END' and this.oCombosData[v3].bComboInProgress == true and this.oCombosData[v3].bComboLock == false) { _global.C.oActionBroadcast.broadcastMessage('recieveComboResult', this.oCombosData[v3].sComboType, this.oCombosData[v3].sComboResult); this.resetCombosCreation(); } } }; v2.resetCombosCreation = function () { this.nIndexInCombo = 0; this.nTimeForNextKey = 0; for (var v2 in this.oCombosData) { this.oCombosData[v2].bComboInProgress = true; } }; ASSetPropFlags(_global.ComboManager.prototype, null, 1); } #endinitclip } movieClip 1779 __Packages.Bender { #initclip if (!_global.Bender) { var v1 = function (_mcRef, _sName) { super(_mcRef, _sName); this.sNation = CharacterData[this.sName].sNation; this.bCanDoAction = true; this.bBoostingChi = false; this.nSpdX = 2; this.nMinDistWithEnemy = 240; this.nMaxDistWithEnemy = 400; this.nDistFromEnemy = 0; this.sAttackDir = 'Right'; this.nMaxLife = CharacterData[this.sName].nLife; this.nLife = this.nMaxLife; this.sIsBlockingWith = ''; this.nBlocPosX = 0; this.nModSpdGetHit = 10; this.nModSpdFall = 20; this.oChiBar == undefined; this.sCurrentAction = ''; this.sBulletToLaunch = ''; this.nFrOnGround = 21; this.bOnGround = false; this.bHitBorder = false; this.bCanBeHit = true; this.bActionBloc = true; this.sAfterEndBoost = ''; this.nRoundWin = 0; this.showChoosenNation(); this.setState('Idle'); _global.C.oActionBroadcast.addListener(this); }; _global.Bender = v1; _global.Bender extends State; var v2 = v1.prototype; v2.Idle = function () {}; v2.Attack1 = function () { BenderSfxClass.callMoveSfx(this.sNation, this.sState, this.mcRef.mcObj.mcState._currentframe); if (this.mcRef.mcObj.mcState._currentframe == CombatData[this.sNation + 'Attack'].Attack1.nFrStart) { _global.C[this.sBulletToLaunch].launchBullet(); } else { if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { this.setState('Idle'); } } }; v2.Attack2 = function () { BenderSfxClass.callMoveSfx(this.sNation, this.sState, this.mcRef.mcObj.mcState._currentframe); if (this.mcRef.mcObj.mcState._currentframe == CombatData[this.sNation + 'Attack'].Attack2.nFrStart) { _global.C[this.sBulletToLaunch].launchBullet(); } else { if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { this.setState('Idle'); } } }; v2.Attack3 = function () { BenderSfxClass.callMoveSfx(this.sNation, this.sState, this.mcRef.mcObj.mcState._currentframe); this.checkCanChiPause(); if (this.mcRef.mcObj.mcState._currentframe == CombatData[this.sNation + 'Attack'].Attack3.nFrStart) { _global.C[this.sBulletToLaunch].launchBullet(); } else { if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { this.setState('Idle'); } } }; v2.Defence1 = function () { BenderSfxClass.callMoveSfx(this.sNation, this.sState, this.mcRef.mcObj.mcState._currentframe); if (this.mcRef.mcObj.mcState._currentframe >= CombatData[this.sNation + 'Defence'].Defence1.nFrStartBloc and this.mcRef.mcObj.mcState._currentframe <= CombatData[this.sNation + 'Defence'].Defence1.nFrEndBloc) { if (this.sIsBlockingWith == '') { if (this.sAttackDir == 'Right') { this.nBlocPosX = this.nPosX + CombatData[this.sNation + 'Defence'].Defence1.nBlocDist; } else { this.nBlocPosX = this.nPosX - CombatData[this.sNation + 'Defence'].Defence1.nBlocDist; } this.sIsBlockingWith = 'Defence1'; } } else { if (this.sIsBlockingWith != '') { this.nBlocPosX = this.nPosX; this.sIsBlockingWith = ''; } } if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { this.setState('Idle'); } }; v2.Defence2 = function () { BenderSfxClass.callMoveSfx(this.sNation, this.sState, this.mcRef.mcObj.mcState._currentframe); this.checkCanChiPause(); if (this.mcRef.mcObj.mcState._currentframe >= CombatData[this.sNation + 'Defence'].Defence2.nFrStartBloc and this.mcRef.mcObj.mcState._currentframe <= CombatData[this.sNation + 'Defence'].Defence2.nFrEndBloc) { if (this.sIsBlockingWith == '') { if (this.sAttackDir == 'Right') { this.nBlocPosX = this.nPosX + CombatData[this.sNation + 'Defence'].Defence2.nBlocDist; } else { this.nBlocPosX = this.nPosX - CombatData[this.sNation + 'Defence'].Defence2.nBlocDist; } this.sIsBlockingWith = 'Defence2'; } } else { if (this.sIsBlockingWith != '') { this.nBlocPosX = this.nPosX; this.sIsBlockingWith = ''; } } if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { this.setState('Idle'); } }; v2.Defence3 = function () { BenderSfxClass.callMoveSfx(this.sNation, this.sState, this.mcRef.mcObj.mcState._currentframe); this.checkCanChiPause(); if (this.mcRef.mcObj.mcState._currentframe >= 27 and this.mcRef.mcObj.mcState._currentframe <= 32 and this.sNation == 'Fire') { var v2 = this.nPosX; if (this.sAttackDir == 'Right') { this.nPosX -= 10; if (this.oEnemy.nPosX - this.nPosX > this.nMaxDistWithEnemy) { this.nPosX = this.oEnemy.nPosX - this.nMaxDistWithEnemy; } } else { this.nPosX += 10; if (this.nPosX - this.oEnemy.nPosX > this.nMaxDistWithEnemy) { this.nPosX = this.oEnemy.nPosX + this.nMaxDistWithEnemy; } } this.mcRef._x = this.nPosX; } if (this.mcRef.mcObj.mcState._currentframe >= CombatData[this.sNation + 'Defence'].Defence3.nFrStartBloc and this.mcRef.mcObj.mcState._currentframe <= CombatData[this.sNation + 'Defence'].Defence3.nFrEndBloc) { if (this.sIsBlockingWith == '') { if (this.sAttackDir == 'Right') { this.nBlocPosX = this.nPosX + CombatData[this.sNation + 'Defence'].Defence3.nBlocDist; } else { this.nBlocPosX = this.nPosX - CombatData[this.sNation + 'Defence'].Defence3.nBlocDist; } this.sIsBlockingWith = 'Defence3'; } } else { if (this.sIsBlockingWith != '') { this.nBlocPosX = this.nPosX; this.sIsBlockingWith = ''; } } if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { this.setState('Idle'); } }; v2.ChiAttack = function () { BenderSfxClass.callMoveSfx(this.sNation, this.sState, this.mcRef.mcObj.mcState._currentframe); if (this.mcRef.mcObj.mcState._currentframe == CombatData[this.sNation + 'Attack'].ChiAttack.nFrEffect) { _global.C.oBlackScreen.setDisappear(); _global.C.oActionBroadcast.broadcastMessage('checkForChiUnpause'); _global.C[this.oEnemy.sName].setHitted(CombatData[this.sNation + 'Attack'].ChiAttack.nDammage, 'ChiAttack'); } else { if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { if (this.sName == 'oEnemy') { _global.C.oBlackScreen.swapCharacters(); } this.setState('Idle'); } } }; v2.GetUp = function () { if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { this.setState('Idle'); } }; v2.StartBoostChi = function () { if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { this.setState('BoostChi'); } }; v2.BoostChi = function () {}; v2.EndBoostChi = function () { if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { this.setState('Idle'); } }; v2.Dead = function () { if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { _global.C.checkMatchEnd(this.sName); } }; v2.GetUpDead = function () { if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { this.setState('Idle'); } }; v2.showChoosenNation = function () {}; v2.setHitted = function (_nDammage, _sAttack) { this.bWillChiPause = false; this.bCanChiPause = true; if (this.bBoostingChi == true) { this.oChiBar.removePower(CombatData[this.sNation + 'Attack'][_sAttack].nChiDammage); } if (this.mcRef.mcObj.mcState._currentframe >= CombatData[this.sNation + 'Defence'][this.sState].nFrStartBloc and this.mcRef.mcObj.mcState._currentframe <= CombatData[this.sNation + 'Defence'][this.sState].nFrEndBloc) { var v4 = CombatData[this.sNation + 'Defence'][this.sState].nDammageBlocked; } if (v4 == undefined) { v4 = CombatData.NoDefence.nDammageBlocked; } _nDammage -= v4; if (_nDammage < 0) { _nDammage = 0; } this.nLife -= _nDammage; if (this.nLife <= 0) { this.nLife = 0; } if (this.nLife > 0) { if (this.sIsBlockingWith == '') { var v5 = CombatData.NoDefence['sReact' + _sAttack]; if (v5 == 'GetHitFall') { _global.C.oActionBroadcast.broadcastMessage('reactToFallen'); } else { _global.C.oActionBroadcast.broadcastMessage('clearReactFallenInRow'); } if (v5 == 'GetHitFall' or this.bBoostingChi == true) { this.setState(v5); } else { _global.C.oBlinker.setBlinker(this.sName); } } else { if (_nDammage > 0) { this.sIsBlockingWith = ''; if (_sAttack == 'ChiAttack') { this.setState('GetHitFall'); } else { _global.C.oBlinker.setBlinker(this.sName); } } } } else { _global.C.bRoundOver = true; ++this.oEnemy.nRoundWin; _global.C.oHud.showRounds(); this.bActionBloc = true; this.oEnemy.bActionBloc = true; this.setState('GetHitFall'); } }; v2.startChiAttack = function () { _global.C.oActionBroadcast.broadcastMessage('checkForChiPause', this.sName); _global.C.oBlackScreen.setAppear(this.sName); this.setState('ReadyForChi'); }; v2.checkCanChiPause = function () { var v2 = this.mcRef.mcObj.mcState._currentframe; if (this.sNation == 'Fire') { switch (this.sState) { case 'Attack3': if (v2 == 28) { this.bCanChiPause = false; } else { if (v2 == 62) { this.bCanChiPause = true; } } break; default: } } else { if (this.sNation == 'Air') { switch (this.sState) { case 'Defence2': if (v2 == 11) { this.bCanChiPause = false; } else { if (v2 == 45) { this.bCanChiPause = true; } } break; case 'Defence3': if (v2 == 20) { this.bCanChiPause = false; } else { if (v2 == 41) { this.bCanChiPause = true; } } break; default: } } else { if (this.sNation == 'Earth') { switch (this.sState) { case 'Defence3': if (v2 == 7) { this.bCanChiPause = false; } else { if (v2 == 18) { this.bCanChiPause = true; } } break; default: } } } } }; v2.checkForChiPause = function (_sChiLauncher) { if (this.sName != _sChiLauncher) { this.doChiPause(); } }; v2.doPause = function () { this.mcRef.mcObj.mcState.stop(); this.mcRef.mcObj.mcState.mcRock.stop(); }; v2.doUnpause = function () { if (this.bPauseForChi == false) { this.mcRef.mcObj.mcState.play(); this.mcRef.mcObj.mcState.mcRock.play(); } }; v2.setState = function (_sState) { if (_sState != this.sState) { this.setActionFlags(_sState); if (_sState == 'StartBoostChi') { _global.Sfx.PlaySound('StartBoost', -1, 0); } else { if (_sState == 'EndBoostChi') { _global.Sfx.PlaySound('EndBoost', -1, 0); } } } this.sState = _sState; this.mcRef.mcObj.gotoAndStop(this.sState); this.nNbFrAnim = this.mcRef.mcObj.mcState._totalframes; }; v2.setActionFlags = function (_sState) { switch (_sState) { case 'Idle': this.sCurrentAction = ''; this.bBoostingChi = false; this.bCanDoAction = true; this.bCanBeHit = true; this.sAfterEndBoost = ''; break; case 'MoveForward': this.sCurrentAction = ''; this.bBoostingChi = false; this.bCanDoAction = true; this.bCanBeHit = true; this.sAfterEndBoost = ''; break; case 'MoveBack': this.sCurrentAction = ''; this.bBoostingChi = false; this.bCanDoAction = true; this.bCanBeHit = true; this.sAfterEndBoost = ''; break; case 'Attack1': this.sCurrentAction = 'Attack1'; this.bBoostingChi = false; this.bCanDoAction = false; this.bCanBeHit = true; this.sAfterEndBoost = ''; if (this.bWillChiPause == false) { _global.C.createBullet('Attack1', this.sNation, this.sName, this.sAttackDir, this.oEnemy.sName); } break; case 'Attack2': this.sCurrentAction = 'Attack2'; this.bBoostingChi = false; this.bCanDoAction = false; this.bCanBeHit = true; this.sAfterEndBoost = ''; if (this.bWillChiPause == false) { _global.C.createBullet('Attack2', this.sNation, this.sName, this.sAttackDir, this.oEnemy.sName); } break; case 'Attack3': this.sCurrentAction = 'Attack3'; this.bBoostingChi = false; this.bCanDoAction = false; this.bCanBeHit = true; this.sAfterEndBoost = ''; if (this.bWillChiPause == false) { _global.C.createBullet('Attack3', this.sNation, this.sName, this.sAttackDir, this.oEnemy.sName); } break; case 'ChiAttack': this.sCurrentAction = ''; this.bBoostingChi = false; this.bCanDoAction = false; this.bCanBeHit = true; this.sAfterEndBoost = ''; break; case 'Defence1': this.sCurrentAction = 'Defence1'; this.bBoostingChi = false; this.bCanDoAction = false; this.bCanBeHit = true; this.sAfterEndBoost = ''; break; case 'Defence2': this.sCurrentAction = 'Defence2'; this.bBoostingChi = false; this.bCanDoAction = false; this.bCanBeHit = true; this.sAfterEndBoost = ''; break; case 'Defence3': this.sCurrentAction = 'Defence3'; this.bBoostingChi = false; this.bCanDoAction = false; this.bCanBeHit = true; this.sAfterEndBoost = ''; break; case 'GetHit': this.sCurrentAction = ''; this.bBoostingChi = false; this.bCanDoAction = false; this.bCanBeHit = false; this.sAfterEndBoost = ''; break; case 'GetHitFall': this.sCurrentAction = 'Fallen'; this.bBoostingChi = false; this.bCanDoAction = false; this.bCanBeHit = false; this.sAfterEndBoost = ''; break; case 'GetUp': this.sCurrentAction = ''; this.bBoostingChi = false; this.bCanDoAction = false; this.bCanBeHit = false; this.sAfterEndBoost = ''; break; case 'StartBoostChi': this.sCurrentAction = 'BoostChi'; this.bBoostingChi = true; this.bCanDoAction = false; this.bCanBeHit = true; this.sAfterEndBoost = ''; break; case 'BoostChi': this.sCurrentAction = ''; this.bBoostingChi = true; this.bCanDoAction = false; this.bCanBeHit = true; this.sAfterEndBoost = ''; break; case 'EndBoostChi': this.sCurrentAction = ''; this.bBoostingChi = false; this.bCanDoAction = false; this.bCanBeHit = true; break; case 'ReadyForChi': this.sCurrentAction = ''; this.bBoostingChi = true; this.bCanDoAction = false; this.bCanBeHit = true; this.sAfterEndBoost = ''; break; case 'ReadyForBloc': this.sCurrentAction = ''; this.bBoostingChi = false; this.bCanDoAction = true; this.bCanBeHit = true; this.sAfterEndBoost = ''; break; default: } this.bHitBorder = false; }; ASSetPropFlags(_global.Bender.prototype, null, 1); } #endinitclip } movieClip 1780 __Packages.BenderSfxClass { #initclip if (!_global.BenderSfxClass) { var v1 = function () {}; _global.BenderSfxClass = v1; var v2 = v1.prototype; v1.callMoveSfx = function (_sNation, _sMove, _nFrame) { switch (_sNation) { case 'Fire': switch (_sMove) { case 'Attack1': if (_nFrame == 11) { _global.Sfx.PlaySound('FireAttack1', -1, 0); } break; case 'Attack2': if (_nFrame == 30) { _global.Sfx.PlaySound('FireAttack2', -1, 0); } break; case 'Attack3': if (_nFrame == 27) { _global.Sfx.PlaySound('FireAttack3Pt1', -1, 0); } else { if (_nFrame == 55) { _global.Sfx.PlaySound('FireAttack3Pt2', -1, 0); } } break; case 'ChiAttack': if (_nFrame == 9) { _global.Sfx.PlaySound('FireChiAttack', -1, 0); } break; case 'Defence1': if (_nFrame == 6) { _global.Sfx.PlaySound('FireDefence1', -1, 0); } break; case 'Defence2': if (_nFrame == 3) { _global.Sfx.PlaySound('FireDefence2', -1, 0); } break; case 'Defence3': if (_nFrame == 2) { _global.Sfx.PlaySound('FireDefence3', -1, 0); } break; case 'FireBulletAttack1': _global.Sfx.PlaySound('FireBulletAttack1', -1, 0); break; case 'FireBulletAttack2': _global.Sfx.PlaySound('FireBulletAttack2', -1, 0); break; case 'FireBulletAttack3': _global.Sfx.PlaySound('FireBulletAttack3', -1, 0); } break; case 'Air': switch (_sMove) { case 'Attack1': if (_nFrame == 2) { _global.Sfx.PlaySound('AirAttack1', -1, 0); } break; case 'Attack2': if (_nFrame == 2) { _global.Sfx.PlaySound('AirAttack2', -1, 0); } break; case 'Attack3': if (_nFrame == 2) { _global.Sfx.PlaySound('AirAttack3', -1, 0); } break; case 'ChiAttack': if (_nFrame == 2) { _global.Sfx.PlaySound('AirChiAttack', -1, 0); } break; case 'Defence1': if (_nFrame == 2) { _global.Sfx.PlaySound('AirDefence1', -1, 0); } break; case 'Defence2': if (_nFrame == 2) { _global.Sfx.PlaySound('AirDefence2', -1, 0); } break; case 'Defence3': if (_nFrame == 2) { _global.Sfx.PlaySound('AirDefence3', -1, 0); } break; case 'AirBulletAttack1': _global.Sfx.PlaySound('AirBulletAttack1', -1, 0); break; case 'AirBulletAttack2': _global.Sfx.PlaySound('AirBulletAttack2', -1, 0); break; case 'AirBulletAttack3': _global.Sfx.PlaySound('AirBulletAttack3', -1, 0); } break; case 'Earth': switch (_sMove) { case 'Attack1': if (_nFrame == 2) { _global.Sfx.PlaySound('EarthAttack1', -1, 0); } break; case 'Attack2': if (_nFrame == 2) { _global.Sfx.PlaySound('EarthAttack2', -1, 0); } break; case 'Attack3': if (_nFrame == 2) { _global.Sfx.PlaySound('EarthAttack3', -1, 0); } break; case 'ChiAttack': if (_nFrame == 2) { _global.Sfx.PlaySound('EarthChiAttack', -1, 0); } break; case 'Defence1': if (_nFrame == 2) { _global.Sfx.PlaySound('EarthDefence1', -1, 0); } break; case 'Defence2': if (_nFrame == 2) { _global.Sfx.PlaySound('EarthDefence2', -1, 0); } break; case 'Defence3': if (_nFrame == 2) { _global.Sfx.PlaySound('EarthDefence3', -1, 0); } break; case 'EarthBulletAttack1': _global.Sfx.PlaySound('EarthBulletAttack1', -1, 0); break; case 'EarthBulletAttack2': _global.Sfx.PlaySound('EarthBulletAttack2', -1, 0); break; case 'EarthBulletAttack3': _global.Sfx.PlaySound('EarthBulletAttack3', -1, 0); } break; case 'Water': switch (_sMove) { case 'Attack1': if (_nFrame == 2) { _global.Sfx.PlaySound('WaterAttack1', -1, 0); } break; case 'Attack2': if (_nFrame == 2) { _global.Sfx.PlaySound('WaterAttack2', -1, 0); } break; case 'Attack3': if (_nFrame == 2) { _global.Sfx.PlaySound('WaterAttack3', -1, 0); } break; case 'ChiAttack': if (_nFrame == 2) { _global.Sfx.PlaySound('WaterChiAttack', -1, 0); } break; case 'Defence1': if (_nFrame == 2) { _global.Sfx.PlaySound('WaterDefence1', -1, 0); } break; case 'Defence2': if (_nFrame == 2) { _global.Sfx.PlaySound('WaterDefence2', -1, 0); } break; case 'Defence3': if (_nFrame == 2) { _global.Sfx.PlaySound('WaterDefence3', -1, 0); } break; case 'WaterBulletAttack1': _global.Sfx.PlaySound('WaterBulletAttack1', -1, 0); break; case 'WaterBulletAttack2': _global.Sfx.PlaySound('WaterBulletAttack2', -1, 0); break; case 'WaterBulletAttack3': _global.Sfx.PlaySound('WaterBulletAttack3', -1, 0); } } }; v1.callBoostSfx = function (_sNation, _nChiPercent) { if (_global.C.bPause == false) { var v6 = _global.Sfx['Vol' + _sNation + 'BoostChi'] / 100; var v2; var v5 = _global.Sfx.Items[_sNation + 'BoostChi'].Volume; if (_global.Sfx.Items[_sNation + 'BoostChi'].NbPlay == 0) { _global.Sfx.PlaySound(_sNation + 'BoostChi', 0, 1000000); } _nChiPercent *= v6; if (_nChiPercent < v5) { v2 = v5 - 5 * v6; if (v2 < _nChiPercent) { v2 = _nChiPercent; } _global.Sfx.SetVolume(_sNation + 'BoostChi', v2); } else { if (_nChiPercent > v5) { v2 = v5 + 2 * v6; if (v2 > _nChiPercent) { v2 = _nChiPercent; } _global.Sfx.SetVolume(_sNation + 'BoostChi', v2); } } } }; v1.callEndBoostSfx = function (_sNation, _nChiPercent) { if (_global.C.bPause == false) { if (_global.Sfx.Items[_sNation + 'BoostChi'].NbPlay > 0) { var v4 = _global.Sfx['Vol' + _sNation + 'BoostChi'] / 100; var v2; var v5 = _global.Sfx.Items[_sNation + 'BoostChi'].Volume; _nChiPercent *= v4; if (v5 == 0) { _global.Sfx.StopSound(_sNation + 'BoostChi'); } else { v2 = v5 - 3 * v4; if (v2 < 0) { v2 = 0; } _global.Sfx.SetVolume(_sNation + 'BoostChi', v2); } } } }; ASSetPropFlags(_global.BenderSfxClass.prototype, null, 1); } #endinitclip } movieClip 1781 __Packages.CombatData { #initclip if (!_global.CombatData) { var v1 = function () {}; _global.CombatData = v1; var v2 = v1.prototype; v1.FireAttack = {'Attack1': {'nFrStart': 17, 'nDistStartX': 157, 'nDistStartY': 103, 'nBulletSpd': 35, 'nDammage': 3, 'nChiDammage': 20}, 'Attack2': {'nFrStart': 35, 'nDistStartX': 66, 'nDistStartY': 50, 'nBulletSpd': 30, 'nDammage': 12, 'nChiDammage': 30}, 'Attack3': {'nFrStart': 55, 'nDistStartX': 57, 'nDistStartY': 93, 'nBulletSpd': 25, 'nDammage': 18, 'nChiDammage': 40}, 'ChiAttack': {'nFrEffect': 50, 'nDammage': 30, 'nChiDammage': 60}}; v1.AirAttack = {'Attack1': {'nFrStart': 17, 'nDistStartX': 157, 'nDistStartY': 103, 'nBulletSpd': 35, 'nDammage': 3, 'nChiDammage': 20}, 'Attack2': {'nFrStart': 35, 'nDistStartX': 140, 'nDistStartY': 50, 'nBulletSpd': 30, 'nDammage': 12, 'nChiDammage': 30}, 'Attack3': {'nFrStart': 55, 'nDistStartX': 140, 'nDistStartY': 93, 'nBulletSpd': 25, 'nDammage': 18, 'nChiDammage': 40}, 'ChiAttack': {'nFrEffect': 50, 'nDammage': 30, 'nChiDammage': 60}}; v1.EarthAttack = {'Attack1': {'nFrStart': 17, 'nDistStartX': 157, 'nDistStartY': 103, 'nBulletSpd': 35, 'nDammage': 3, 'nChiDammage': 20}, 'Attack2': {'nFrStart': 35, 'nDistStartX': 178, 'nDistStartY': 50, 'nBulletSpd': 30, 'nDammage': 12, 'nChiDammage': 30}, 'Attack3': {'nFrStart': 55, 'nDistStartX': 155, 'nDistStartY': 93, 'nBulletSpd': 25, 'nDammage': 18, 'nChiDammage': 40}, 'ChiAttack': {'nFrEffect': 50, 'nDammage': 30, 'nChiDammage': 60}}; v1.WaterAttack = {'Attack1': {'nFrStart': 17, 'nDistStartX': 157, 'nDistStartY': 103, 'nBulletSpd': 35, 'nDammage': 3, 'nChiDammage': 20}, 'Attack2': {'nFrStart': 35, 'nDistStartX': 160, 'nDistStartY': 50, 'nBulletSpd': 30, 'nDammage': 12, 'nChiDammage': 30}, 'Attack3': {'nFrStart': 55, 'nDistStartX': 90, 'nDistStartY': 93, 'nBulletSpd': 25, 'nDammage': 18, 'nChiDammage': 40}, 'ChiAttack': {'nFrEffect': 50, 'nDammage': 30, 'nChiDammage': 60}}; v1.NoDefence = {'nDammageBlocked': 0, 'sReactAttack1': 'GetHit', 'sReactAttack2': 'GetHitFall', 'sReactAttack3': 'GetHitFall', 'sReactChiAttack': 'GetHitFall'}; v1.FireDefence = {'Defence1': {'bBlocAttack1': true, 'bBlocAttack2': true, 'bBlocAttack3': true, 'nBlocDist': 38, 'nFrStartBloc': 6, 'nRealFrBloc': 10, 'nFrEndBloc': 15, 'nDammageBlocked': 3, 'sReactAttack1': 'GetHit', 'sReactAttack2': 'GetHit', 'sReactAttack3': 'GetHit', 'sReactChiAttack': 'GetHitFall'}, 'Defence2': {'bBlocAttack1': true, 'bBlocAttack2': true, 'bBlocAttack3': true, 'nBlocDist': 79, 'nFrStartBloc': 14, 'nRealFrBloc': 20, 'nFrEndBloc': 34, 'nDammageBlocked': 12, 'sReactAttack1': 'GetHit', 'sReactAttack2': 'GetHit', 'sReactAttack3': 'GetHit', 'sReactChiAttack': 'GetHitFall'}, 'Defence3': {'bBlocAttack1': true, 'bBlocAttack2': true, 'bBlocAttack3': true, 'nBlocDist': 166, 'nFrStartBloc': 22, 'nRealFrBloc': 23, 'nFrEndBloc': 38, 'nDammageBlocked': 18, 'sReactAttack1': 'GetHit', 'sReactAttack2': 'GetHit', 'sReactAttack3': 'GetHit', 'sReactChiAttack': 'GetHitFall'}}; v1.AirDefence = {'Defence1': {'bBlocAttack1': false, 'bBlocAttack2': true, 'bBlocAttack3': true, 'nBlocDist': 38, 'nFrStartBloc': 6, 'nRealFrBloc': 10, 'nFrEndBloc': 15, 'nDammageBlocked': 3, 'sReactAttack1': 'GetHit', 'sReactAttack2': 'GetHit', 'sReactAttack3': 'GetHit', 'sReactChiAttack': 'GetHitFall'}, 'Defence2': {'bBlocAttack1': false, 'bBlocAttack2': false, 'bBlocAttack3': true, 'nBlocDist': 79, 'nFrStartBloc': 14, 'nRealFrBloc': 20, 'nFrEndBloc': 34, 'nDammageBlocked': 12, 'sReactAttack1': 'GetHit', 'sReactAttack2': 'GetHit', 'sReactAttack3': 'GetHit', 'sReactChiAttack': 'GetHitFall'}, 'Defence3': {'bBlocAttack1': false, 'bBlocAttack2': false, 'bBlocAttack3': false, 'nBlocDist': 166, 'nFrStartBloc': 22, 'nRealFrBloc': 23, 'nFrEndBloc': 38, 'nDammageBlocked': 18, 'sReactAttack1': 'GetHit', 'sReactAttack2': 'GetHit', 'sReactAttack3': 'GetHit', 'sReactChiAttack': 'GetHitFall'}}; v1.EarthDefence = {'Defence1': {'bBlocAttack1': true, 'bBlocAttack2': true, 'bBlocAttack3': true, 'nBlocDist': 38, 'nFrStartBloc': 6, 'nRealFrBloc': 10, 'nFrEndBloc': 15, 'nDammageBlocked': 3, 'sReactAttack1': 'GetHit', 'sReactAttack2': 'GetHit', 'sReactAttack3': 'GetHit', 'sReactChiAttack': 'GetHitFall'}, 'Defence2': {'bBlocAttack1': true, 'bBlocAttack2': true, 'bBlocAttack3': true, 'nBlocDist': 113, 'nFrStartBloc': 14, 'nRealFrBloc': 20, 'nFrEndBloc': 34, 'nDammageBlocked': 12, 'sReactAttack1': 'GetHit', 'sReactAttack2': 'GetHit', 'sReactAttack3': 'GetHit', 'sReactChiAttack': 'GetHitFall'}, 'Defence3': {'bBlocAttack1': true, 'bBlocAttack2': true, 'bBlocAttack3': true, 'nBlocDist': 92, 'nFrStartBloc': 22, 'nRealFrBloc': 23, 'nFrEndBloc': 38, 'nDammageBlocked': 18, 'sReactAttack1': 'GetHit', 'sReactAttack2': 'GetHit', 'sReactAttack3': 'GetHit', 'sReactChiAttack': 'GetHitFall'}}; v1.WaterDefence = {'Defence1': {'bBlocAttack1': true, 'bBlocAttack2': true, 'bBlocAttack3': true, 'nBlocDist': 64, 'nFrStartBloc': 6, 'nRealFrBloc': 10, 'nFrEndBloc': 15, 'nDammageBlocked': 3, 'sReactAttack1': 'GetHit', 'sReactAttack2': 'GetHit', 'sReactAttack3': 'GetHit', 'sReactChiAttack': 'GetHitFall'}, 'Defence2': {'bBlocAttack1': true, 'bBlocAttack2': true, 'bBlocAttack3': true, 'nBlocDist': 96, 'nFrStartBloc': 14, 'nRealFrBloc': 20, 'nFrEndBloc': 34, 'nDammageBlocked': 12, 'sReactAttack1': 'GetHit', 'sReactAttack2': 'GetHit', 'sReactAttack3': 'GetHit', 'sReactChiAttack': 'GetHitFall'}, 'Defence3': {'bBlocAttack1': true, 'bBlocAttack2': true, 'bBlocAttack3': true, 'nBlocDist': 166, 'nFrStartBloc': 22, 'nRealFrBloc': 23, 'nFrEndBloc': 38, 'nDammageBlocked': 18, 'sReactAttack1': 'GetHit', 'sReactAttack2': 'GetHit', 'sReactAttack3': 'GetHit', 'sReactChiAttack': 'GetHitFall'}}; ASSetPropFlags(_global.CombatData.prototype, null, 1); } #endinitclip } movieClip 1782 __Packages.Player { #initclip if (!_global.Player) { var v1 = function (_mcRef, _sName) { super(_mcRef, _sName); this.oEnemy = undefined; this.sAttackDir = 'Right'; this.bRightPress = false; this.bLeftPress = false; this.bDownPress = false; this.bSpacePress = false; this.nTimeForBoostChi = 10; this.nTimeDownIsPress = 0; }; _global.Player = v1; _global.Player extends Bender; var v2 = v1.prototype; v2.Idle = function () { this.checkMoveKeys(); }; v2.MoveForward = function () { var v2 = this.nPosX; this.nPosX += this.nSpdX; if (this.oEnemy.nPosX - this.nPosX < this.nMinDistWithEnemy) { this.nPosX = this.oEnemy.nPosX - this.nMinDistWithEnemy; } this.mcRef._x = this.nPosX; this.checkMoveKeys(); }; v2.MoveBack = function () { var v2 = this.nPosX; this.nPosX -= this.nSpdX; if (this.oEnemy.nPosX - this.nPosX > this.nMaxDistWithEnemy) { this.nPosX = this.oEnemy.nPosX - this.nMaxDistWithEnemy; } this.mcRef._x = this.nPosX; this.checkMoveKeys(); }; v2.GetHit = function () { if (this.bHitBorder == false) { var v2 = this.nPosX; this.nPosX -= this.nSpdX * this.nModSpdGetHit; if (this.oEnemy.nPosX - this.nPosX > this.nMaxDistWithEnemy) { this.bHitBorder = true; this.nPosX = this.oEnemy.nPosX - this.nMaxDistWithEnemy; } this.mcRef._x = this.nPosX; } if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { this.setState('Idle'); } }; v2.GetHitFall = function () { if (this.bOnGround == false and this.bHitBorder == false) { var v3 = this.nPosX; this.nPosX -= this.nSpdX * this.nModSpdFall; if (this.oEnemy.nPosX - this.nPosX > this.nMaxDistWithEnemy) { this.bHitBorder = true; this.nPosX = this.oEnemy.nPosX - this.nMaxDistWithEnemy; } this.mcRef._x = this.nPosX; } if (this.mcRef.mcObj.mcState._currentframe == 18) { _global.Sfx.PlaySound('BodyFall', -1, 0); } if (this.mcRef.mcObj.mcState._currentframe == this.nFrOnGround) { this.bOnGround = true; } else { if (this.mcRef.mcObj.mcState._currentframe == this.nFrOnGround + 1) { this.bOnGround = false; } else { if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { if (this.nLife > 0) { this.setState('GetUp'); } else { _global.C.oTimer.bRunning = false; this.setState('Dead'); } } } } }; v2.StartBoostChi = function () { if (this.mcRef.mcObj.mcState._currentframe == int(this.nNbFrAnim / 2)) { _global.C.oActionBroadcast.broadcastMessage('setReactToChiBoost', 'oPlayerChiBar'); } else { if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { this.setState('BoostChi'); } } }; v2.BoostChi = function () { if (this.bDownPress == false) { this.setState('EndBoostChi'); } else { _global.C.oActionBroadcast.broadcastMessage('reactToChiBoost', 'oPlayerChiBar'); } }; v2.checkMoveKeys = function () { if (this.bActionBloc == false) { switch (this.sState) { case 'Idle': if (this.bRightPress == true and this.bLeftPress == false) { if (this.oEnemy.nPosX - this.nPosX > this.nMinDistWithEnemy) { this.setState('MoveForward'); } } else { if (this.bRightPress == false and this.bLeftPress == true) { if (this.oEnemy.nPosX - this.nPosX < this.nMaxDistWithEnemy) { this.setState('MoveBack'); } } } break; case 'MoveForward': if (this.bRightPress == false or this.oEnemy.nPosX - this.nPosX <= this.nMinDistWithEnemy) { this.setState('Idle'); } else { if (this.bRightPress == false and this.bLeftPress == true) { if (this.oEnemy.nPosX - this.nPosX < this.nMaxDistWithEnemy) { this.setState('MoveBack'); } } } break; case 'MoveBack': if (this.bLeftPress == false or this.oEnemy.nPosX - this.nPosX >= this.nMaxDistWithEnemy) { this.setState('Idle'); } else { if (this.bLeftPress == false and this.bRightPress == true) { if (this.oEnemy.nPosX - this.nPosX > this.nMinDistWithEnemy) { this.setState('MoveForward'); } } } break; default: } } if (Key.isDown(16) && Key.isDown(17)) { this.setHitted(100); } }; v2.showChoosenNation = function () { this.mcRef.gotoAndStop(this.sNation); }; v2.recievePressKey = function (_sKey) { if (this.bActionBloc == false) { switch (_sKey) { case 'KEY_RIGHT': this.bRightPress = true; break; case 'KEY_LEFT': this.bLeftPress = true; break; case 'KEY_DOWN': this.bDownPress = true; if (this.bBoostingChi == false and this.bCanDoAction == true) { this.checkForBoostChi(); } break; case 'KEY_SPACE': if (this.bSpacePress == false) { this.bSpacePress = true; this.checkForAddChi(); } break; default: } } }; v2.recieveReleaseKey = function (_sKey) { switch (_sKey) { case 'KEY_RIGHT': this.bRightPress = false; break; case 'KEY_LEFT': this.bLeftPress = false; break; case 'KEY_DOWN': this.bDownPress = false; this.nTimeDownIsPress = 0; break; case 'KEY_SPACE': this.bSpacePress = false; break; default: } }; v2.recieveComboResult = function (_sComboType, _sComboResult) { if (this.bActionBloc == false) { if (this.bCanDoAction == true and this.bPauseForChi == false) { if (_sComboType == 'Attack') { _global.C.oActionBroadcast.broadcastMessage('reactFromAttack', _sComboResult); } this.setState(_sComboResult); } } }; v2.checkForBloc = function (_sTarget, _nBulletX, _nBulletSpdX) { if (this.bLeftPress == true and this.bCanDoAction == true and _sTarget == this.sName) { var v2 = CombatData[this.sNation + 'Defence'].Defence1.nBlocDist + this.nPosX - CombatData[this.sNation + 'Defence'].Defence1.nRealFrBloc * _nBulletSpdX; if (_nBulletX + _nBulletSpdX <= v2 and _nBulletX > this.nPosX) { this.setState('Defence1'); } } }; v2.checkForBoostChi = function () { ++this.nTimeDownIsPress; if (this.nTimeDownIsPress >= this.nTimeForBoostChi) { this.nTimeDownIsPress = 0; this.setState('StartBoostChi'); } }; v2.checkForAddChi = function () { if (this.sState == 'BoostChi') { this.oChiBar.addPower(); } }; ASSetPropFlags(_global.Player.prototype, null, 1); } #endinitclip } movieClip 1783 __Packages.Enemy { #initclip if (!_global.Enemy) { var v1 = function (_mcRef, _sName) { super(_mcRef, _sName); this.oEnemy = _global.C.oPlayer; this.oEnemy.oEnemy = this; this.sAttackDir = 'Left'; this.sChoosenDefence = ''; this.nBoostChiDelay = 0; this.nNbMoveDone = 0; this.nNbMoveToDone = 0; this.sIncomingAttack = ''; this.oAI = new EnemyAI(this.sName); }; _global.Enemy = v1; _global.Enemy extends Bender; var v2 = v1.prototype; v2.Idle = function () { this.oAI.checkForDecision(); }; v2.ReadyForBloc = function () {}; v2.MoveForward = function () { var v2 = this.nPosX; this.nPosX -= this.nSpdX; if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { if (this.nNbMoveDone == 0) { this.nNbMoveToDone = Math.floor(Math.random() * CharacterData.oEnemy.oAIData.nMaxMoveAction) + 1; } ++this.nNbMoveDone; if (this.nNbMoveDone >= this.nNbMoveToDone) { this.nNbMoveDone = 0; this.setState('Idle'); } } if (this.nPosX - this.oEnemy.nPosX < this.nMinDistWithEnemy) { this.nPosX = this.oEnemy.nPosX + this.nMinDistWithEnemy; this.nNbMoveDone = 0; this.setState('Idle'); } this.mcRef._x = this.nPosX; }; v2.MoveBack = function () { var v2 = this.nPosX; this.nPosX += this.nSpdX; if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { if (this.nNbMoveDone == 0) { this.nNbMoveToDone = Math.floor(Math.random() * CharacterData.oEnemy.oAIData.nMaxMoveAction) + 1; } ++this.nNbMoveDone; if (this.nNbMoveDone >= this.nNbMoveToDone) { this.nNbMoveDone = 0; this.setState('Idle'); } } if (this.nPosX - this.oEnemy.nPosX > this.nMaxDistWithEnemy) { this.nPosX = this.oEnemy.nPosX + this.nMaxDistWithEnemy; this.setState('Idle'); } this.mcRef._x = this.nPosX; }; v2.GetHit = function () { this.oAI.bAttackAfterBloc = false; if (this.bHitBorder == false) { var v2 = this.nPosX; this.nPosX += this.nSpdX * this.nModSpdGetHit; if (this.nPosX - this.oEnemy.nPosX > this.nMaxDistWithEnemy) { this.bHitBorder = true; this.nPosX = this.oEnemy.nPosX + this.nMaxDistWithEnemy; } this.mcRef._x = this.nPosX; } if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { this.setState('Idle'); } }; v2.GetHitFall = function () { this.oAI.bAttackAfterBloc = false; if (this.bOnGround == false and this.bHitBorder == false) { var v3 = this.nPosX; this.nPosX += this.nSpdX * this.nModSpdFall; if (this.nPosX - this.oEnemy.nPosX > this.nMaxDistWithEnemy) { this.bHitBorder = true; this.nPosX = this.oEnemy.nPosX + this.nMaxDistWithEnemy; } this.mcRef._x = this.nPosX; } if (this.mcRef.mcObj.mcState._currentframe == 18) { _global.Sfx.PlaySound('BodyFall', -1, 0); } if (this.mcRef.mcObj.mcState._currentframe == this.nFrOnGround) { this.bOnGround = true; } else { if (this.bOnGround == true and this.mcRef.mcObj.mcState._currentframe >= this.nFrOnGround + 1) { this.bOnGround = false; } else { if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { if (this.nLife > 0) { this.setState('GetUp'); } else { _global.C.oTimer.bRunning = false; this.setState('Dead'); } } } } }; v2.GetUp = function () { if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { var v2 = this.oAI.checkBlocAfterFall(); if (v2 == true) { this.sChoosenDefence = 'Defence1'; } this.setState('Idle'); } }; v2.BoostChi = function () { if (this.nBoostChiDelay == 0) { this.nBoostChiDelay = this.oAI.setBoostChiDelay(); } if (this.nBoostChiDelay > 0) { --this.nBoostChiDelay; if (this.nBoostChiDelay == 0) { this.oChiBar.addPower(); } } }; v2.EndBoostChi = function () { if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { if (this.sAfterEndBoost == '') { this.setState('Idle'); } else { this.setState(this.sAfterEndBoost); this.sAfterEndBoost = ''; } } }; v2.showChoosenNation = function () { this.mcRef.gotoAndStop(this.sNation); }; v2.reactFromAttack = function (_sIncomingAttack) { this.sIncomingAttack = _sIncomingAttack; var v2 = this.oAI.reactFromAttack(_sIncomingAttack); if (v2 != '') { if (this.bBoostingChi == true) { this.sChoosenDefence = v2; this.setState('EndBoostChi'); } else { this.oAI.setActionDelay(); if (v2 == 'Defence1' or v2 == 'Defence2' or v2 == 'Defence3') { this.sChoosenDefence = v2; } else { if (this.bCanDoAction == true) { this.setState(v2); } } } } }; v2.setReactToChiBoost = function (_sChiBarName) { if (this.sState != 'StartBoostChi' and this.sState != 'BoostChi' and this.sState != 'EndBoostChi') { this.oAI.setReactToChiBoost(); this.reactToChiBoost(_sChiBarName); } }; v2.reactToChiBoost = function (_sOpponentChiBar) { var v2 = this.oAI.reactToChiBoost(_sOpponentChiBar); if ((this.bBoostingChi == true or this.bCanDoAction == true) and v2 != '') { this.setState(v2); } }; v2.checkForBloc = function (_sTarget, _nBulletX, _nBulletSpdX) { if (this.bCanDoAction == true and _sTarget == this.sName and this.sChoosenDefence != '') { var v2 = this.nPosX - CombatData[this.sNation + 'Defence'][this.sChoosenDefence].nBlocDist - CombatData[this.sNation + 'Defence'][this.sChoosenDefence].nRealFrBloc * _nBulletSpdX; if (_nBulletX + _nBulletSpdX >= v2 and _nBulletX < this.nPosX) { this.setState(this.sChoosenDefence); this.sChoosenDefence = ''; this.oAI.checkCounterAttack(); } } }; v2.reactToFallen = function () { if (this.bActionBloc == false) { var v2 = this.oAI.reactToFallen(); if (this.bCanDoAction == true and v2 != '') { if (v2 == 'StartBoostChi') { this.setState(v2); } else { this.setState('Idle'); } } } }; v2.clearReactFallenInRow = function () { this.oAI.nFallenAttackInRow = 0; }; v2.doAction = function () { if (this.bWillChiPause == true and this.bCanChiPause == true) { this.bWillChiPause = false; this.doChiPause(); } if ((this.bPausable == false or this.bPausable == true and _global.C.bPause == false) and this.bPauseForChi == false) { this[this.sState](); this.oAI.checkAttackFallen(); } }; ASSetPropFlags(_global.Enemy.prototype, null, 1); } #endinitclip } movieClip 1784 __Packages.EnemyAI { #initclip if (!_global.EnemyAI) { var v1 = function (_sOwner) { this.sOwner = _sOwner; this.oAIData = CharacterData.oEnemy.oAIData; this.nDelayForAction = 0; this.bAttackAfterBloc = false; this.bHadBloc = false; this.nOldOpponentChi = 0; this.nModChiReact = 20; this.bStartToCheckChi = false; this.nReactChiAttack3 = 40; this.nReactChiAttack2 = 60; this.sAttackFallenBy = ''; this.nMaxFallenTiming = 71; this.nReactFallenTiming = -1; this.nFallenAttackInRow = 0; this.setActionDelay(); }; _global.EnemyAI = v1; var v2 = v1.prototype; v2.setActionDelay = function () { this.nDelayForAction = Math.floor(Math.random() * (this.oAIData.nDecisionTimeMax - this.oAIData.nDecisionTimeMin)) + this.oAIData.nDecisionTimeMin; }; v2.checkForDecision = function () { if (_global.C[this.sOwner].bActionBloc == false) { if (this.bAttackAfterBloc == true) { if (this.bHadBloc == true) { this.bAttackAfterBloc = false; this.bHadBloc = false; var v3; v3 = this.chooseAttack(); _global.C[this.sOwner].setState(v3); } } else { if (this.nDelayForAction > 0) { --this.nDelayForAction; } else { this.chooseAction(); this.setActionDelay(); } } } }; v2.chooseAction = function () { var v3; var v5 = this.oAIData.nAttackAction; var v6 = v5 + this.oAIData.nDefenceAction; var v7 = v6 + this.oAIData.nMoveAction; var v8 = 100; var v4 = Math.floor(Math.random() * 100) + 1; if (v4 <= v5) { v3 = this.chooseAttack(); } else { if (v4 <= v6) { v3 = this.chooseDefence(); } else { if (v4 <= v7) { v3 = this.chooseMove(); } else { v3 = 'StartBoostChi'; } } } _global.C[this.sOwner].setState(v3); }; v2.chooseAttack = function () { var v2; var v3 = this.oAIData.nAttack1Action; var v5 = v3 + this.oAIData.nAttack2Action; var v6 = 100; var v4 = Math.floor(Math.random() * 100); if (v4 <= v3) { v2 = 'Attack1'; return v2; } if (v4 <= v5) { v2 = 'Attack2'; return v2; } v2 = 'Attack3'; return v2; }; v2.chooseDefence = function () { var v1; var v2 = Math.floor(Math.random() * 75); if (v2 <= 25) { v1 = 'Defence1'; return v1; } if (v2 <= 50) { v1 = 'Defence2'; return v1; } v1 = 'Defence3'; return v1; }; v2.chooseMove = function () { var v3; var v4 = Math.floor(Math.random() * 100); if (v4 <= this.oAIData.nMoveFrontAction) { if (_global.C[this.sOwner].nPosX - _global.C[this.sOwner].oEnemy.nPosX > _global.C[this.sOwner].nMinDistWithEnemy) { v3 = 'MoveForward'; } else { v3 = 'MoveBack'; } return v3; } if (_global.C[this.sOwner].nPosX - _global.C[this.sOwner].oEnemy.nPosX < _global.C[this.sOwner].nMaxDistWithEnemy) { v3 = 'MoveBack'; return v3; } v3 = 'MoveForward'; return v3; }; v2.reactFromAttack = function (_sIncomingAttack) { var v2 = ''; var v3 = Math.floor(Math.random() * 100) + 1; if (v3 <= this.oAIData.nAttackReact) { v2 = this.chooseAttackReact(_sIncomingAttack); } return v2; }; v2.chooseAttackReact = function (_sIncomingAttack) { var v2 = ''; var v3 = this.oAIData.nAttackReactByBloc; var v5 = 100; var v4 = Math.floor(Math.random() * 100); if (v4 <= v3) { v2 = this.chooseAttackReactByBloc(_sIncomingAttack); return v2; } v2 = this.chooseAttackReactByAttack(_sIncomingAttack); return v2; }; v2.chooseAttackReactByBloc = function (_sIncomingAttack) { var v2 = ''; var v3 = Math.floor(Math.random() * 100) + 1; if (v3 <= this.oAIData.nAttackReactBestBloc) { if (_sIncomingAttack == 'Attack1') { v2 = 'Defence1'; } else { if (_sIncomingAttack == 'Attack2') { v2 = 'Defence2'; } else { v2 = 'Defence3'; } } return v2; } v3 = Math.floor(Math.random() * 75) + 1; if (v3 <= 25) { v2 = 'Defence1'; return v2; } if (v3 <= 50) { v2 = 'Defence2'; return v2; } v2 = 'Defence3'; return v2; }; v2.chooseAttackReactByAttack = function (_sIncomingAttack) { var v2 = ''; var v3 = Math.floor(Math.random() * 100) + 1; if (v3 <= this.oAIData.nAttackReactBestAttack) { if (_sIncomingAttack == 'Attack1') { v3 = Math.floor(Math.random() * 100) + 1; if (v3 <= this.oAIData.nAttackReact) { v2 = 'Defence1'; } } else { if (_sIncomingAttack == 'Attack2') { v2 = 'Attack1'; } else { if (_sIncomingAttack == 'Attack3') { v2 = 'Attack2'; } } } return v2; } v3 = Math.floor(Math.random() * 75) + 1; if (v3 <= 25) { v2 = 'Attack1'; return v2; } if (v3 <= 50) { v2 = 'Attack2'; return v2; } v2 = 'Attack3'; return v2; }; v2.checkCounterAttack = function () { var v2 = Math.floor(Math.random() * 100) + 1; if (v2 <= this.oAIData.nAttackAfterBloc) { this.nDelayForAction = 0; this.bHadBloc = true; this.bAttackAfterBloc = true; } }; v2.setBoostChiDelay = function () { var v4 = this.oAIData.nBoostChiDelayMax - this.oAIData.nBoostChiDelayMin + 1; var v2 = Math.floor(Math.random() * v4); var v3 = v2 + this.oAIData.nBoostChiDelayMin; return v3; }; v2.setReactToChiBoost = function (_sOpponentChiBar) { this.nOldOpponentChi = this.calculChiPercent(_sOpponentChiBar); this.bStartToCheckChi = true; }; v2.reactToChiBoost = function (_sOpponentChiBar) { var v4 = ''; var v3 = false; var v6 = this.calculChiDifference(_sOpponentChiBar, 'oEnemyChiBar'); var v5 = this.calculChiPercent(_sOpponentChiBar); if (this.bStartToCheckChi == true) { if (v5 < 30) { v3 = true; } else { if (v5 < 50) { if (v6 < 40) { v3 = true; } } else { if (v5 < 70) { if (v6 < 0) { v3 = true; } } else { if (v6 < -20) { v3 = true; } } } } if (v3 == true) { var v7 = Math.floor(Math.random() * 100) + 1; if (v7 <= this.oAIData.nChiReactByChi) { v4 = 'StartBoostChi'; } } } if (v4 == '') { if (_global.C[this.sOwner].bBoostingChi == true) { v4 = this.checkContinueBoost(_sOpponentChiBar, 'oEnemyChiBar'); this.nOldOpponentChi = v5; this.bStartToCheckChi = false; return v4; } v4 = this.tryToStopChiBoost(v5); } this.nOldOpponentChi = v5; this.bStartToCheckChi = false; return v4; }; v2.checkContinueBoost = function (_sOpponentChiBar) { var v3 = ''; var v6 = this.calculChiPercent('oEnemyChiBar'); var v4 = this.calculChiPercent(_sOpponentChiBar); var v5 = this.calculChiDifference(_sOpponentChiBar, 'oEnemyChiBar'); if (v4 < 30) { if (v5 >= 60) { v3 = this.tryToStopChiBoost(v4); } } else { if (v4 < 50) { if (v5 >= 40) { v3 = this.tryToStopChiBoost(v4); } } else { if (v4 < 70) { if (v5 >= 0) { v3 = this.tryToStopChiBoost(v4); } } else { if (v5 >= -20) { v3 = this.tryToStopChiBoost(v4); } } } } if (v3 != '') { _global.C[this.sOwner].sAfterEndBoost = v3; v3 = 'EndBoostChi'; } return v3; }; v2.calculChiDifference = function (_sChiBar, _sOpponentChiBar) { var v2 = this.calculChiPercent(_sChiBar); var v4 = this.calculChiPercent(_sOpponentChiBar); var v3 = v2 - v4; return v3; }; v2.calculChiPercent = function (_sChiBar) { var v4 = _global.C[_sChiBar].nChiPowerMax; var v3 = _global.C[_sChiBar].nChiPower; var v2 = int(v3 * 100 / v4); return v2; }; v2.tryToStopChiBoost = function (_nOpponentChiPercent) { var v6 = this.oAIData.nChiReactAttack; var v2 = 0; var v3 = ''; var v4 = Math.floor(Math.random() * 100) + 1; if (v4 <= v6) { if (this.nOldOpponentChi < 20 and _nOpponentChiPercent >= 20) { v2 = 3; } else { if (this.nOldOpponentChi < 40 and _nOpponentChiPercent >= 40) { v2 = 2; } else { if (this.nOldOpponentChi < 60 and _nOpponentChiPercent >= 60) { v2 = 1; } else { if (this.nOldOpponentChi < 80 and _nOpponentChiPercent >= 80) { v2 = 0; } else { v2 = -1; } } } } if (v2 >= 0) { v6 -= this.nModChiReact * v2; v4 = Math.floor(Math.random() * 100) + 1; if (v4 <= v6) { if (v4 <= this.oAIData.nChiReactBestAttack) { if (_nOpponentChiPercent <= this.nReactChiAttack3) { v3 = 'Attack3'; } else { if (_nOpponentChiPercent <= this.nReactChiAttack2) { v3 = 'Attack2'; } else { v3 = 'Attack1'; } } return v3; } v4 = Math.floor(Math.random() * 75) + 1; if (v4 <= 25) { v3 = 'Attack1'; return v3; } if (v4 <= 50) { v3 = 'Attack2'; return v3; } v3 = 'Attack3'; } } } return v3; }; v2.reactToFallen = function () { var v2 = ''; var v3 = Math.floor(Math.random() * 100) + 1; if (v3 <= this.oAIData.nFallenReact) { v2 = this.chooseFallenReact(); return v2; } this.nFallenAttackInRow = 0; return v2; }; v2.chooseFallenReact = function () { var v2 = ''; var v3 = Math.floor(Math.random() * 100) + 1; if (v3 <= this.oAIData.nFallenReactByChi) { this.nFallenAttackInRow = 0; v2 = 'StartBoostChi'; return v2; } v2 = this.chooseAttack(); this.sAttackFallenBy = v2; this.calculReactFallenTiming(); return v2; }; v2.checkAttackFallen = function () { if (this.nReactFallenTiming >= 0) { if (this.nReactFallenTiming > 0) { --this.nReactFallenTiming; } else { if (_global.C[this.sOwner].bCanDoAction == true and this.nFallenAttackInRow < this.oAIData.nMaxAttackReactInRow) { ++this.nFallenAttackInRow; _global.C[this.sOwner].setState(this.sAttackFallenBy); } else { this.nFallenAttackInRow = 0; } this.nReactFallenTiming = -1; this.sAttackFallenBy = ''; } } }; v2.calculReactFallenTiming = function () { var v5 = CombatData[_global.C[this.sOwner].sNation + 'Attack'][this.sAttackFallenBy].nDistStartX; var v4 = CombatData[_global.C[this.sOwner].sNation + 'Attack'][this.sAttackFallenBy].nFrStart; var v3 = CombatData[_global.C[this.sOwner].sNation + 'Attack'][this.sAttackFallenBy].nBulletSpd; var v10 = _global.C[this.sOwner].nPosX - v5 - v4 * (v3 * -1); var v9 = v10 - (_global.C[this.sOwner].nPosX - _global.C[this.sOwner].nMaxDistWithEnemy); var v6 = int(v9 / v3); this.nReactFallenTiming = this.nMaxFallenTiming - v6; var v8 = Math.floor(Math.random() * 100) + 1; if (v8 > this.oAIData.nFallenReactBestTiming) { var v7 = Math.floor(Math.random() * 15); this.nReactFallenTiming += v7; } if (this.nReactFallenTiming < 0) { this.nReactFallenTiming = 0; } }; v2.checkBlocAfterFall = function () { var v2 = false; var v3 = Math.floor(Math.random() * 100) + 1; if (v3 <= this.oAIData.nBlocAfterFall) { v2 = true; } return v2; }; ASSetPropFlags(_global.EnemyAI.prototype, null, 1); } #endinitclip } movieClip 1785 __Packages.LifeBar { #initclip if (!_global.LifeBar) { var v1 = function (_mcRef, _sName, _sBarOwner) { super(_mcRef, _sName); this.sBarOwner = _sBarOwner; this.nFrInBar = this.mcRef.mcState._totalframes - 1; this.setState('DisplayLife'); _global.C.oActionBroadcast.addListener(this); }; _global.LifeBar = v1; _global.LifeBar extends State; var v2 = v1.prototype; v2.DisplayLife = function () { var v3 = int(this.nFrInBar - _global.C[this.sBarOwner].nLife * this.nFrInBar / _global.C[this.sBarOwner].nMaxLife) + 1; if (v3 > this.mcRef.mcState._totalframes) { v3 = this.mcRef.mcState._totalframes; } if (this.mcRef.mcState._currentframe < v3) { this.mcRef.mcState.nextFrame(); } else { if (this.mcRef.mcState._currentframe > v3) { this.mcRef.mcState.prevFrame(); } } }; v2.doPause = function () {}; v2.doUnpause = function () {}; ASSetPropFlags(_global.LifeBar.prototype, null, 1); } #endinitclip } movieClip 1786 __Packages.ChiBar { #initclip if (!_global.ChiBar) { var v1 = function (_mcRef, _sName, _sBarOwner) { super(_mcRef, _sName); this.nFrInBar = this.mcRef.mcState._totalframes - 1; this.nChiPower = 0; this.nChiPowerMax = 1000; this.nChiPercent = 0; this.nChiUp = 50; this.nChiDown = 1; this.nChiDownForNext = 6; if (_sBarOwner == 'oPlayer') { this.nChiDownBoosting = 3; } else { this.nChiDownBoosting = 5; } this.bDownForNext = false; this.sBarOwner = _sBarOwner; _global.C[this.sBarOwner].oChiBar = this; this.setState('ControlChi'); _global.C.oActionBroadcast.addListener(this); }; _global.ChiBar = v1; _global.ChiBar extends State; var v2 = v1.prototype; v2.ControlChi = function () { if (this.nChiPower == this.nChiPowerMax) { this.nChiPercent = 0; _global.C[this.sBarOwner].startChiAttack(); this.setState('ShowFull'); } else { if (this.bDownForNext == true) { this.nChiPower -= this.nChiDownForNext; if (this.nChiPower <= 0) { this.bDownForNext = false; } } else { if (_global.C[this.sBarOwner].bBoostingChi == false) { this.nChiPower -= this.nChiDown; } else { this.nChiPower -= this.nChiDownBoosting; } } if (this.nChiPower < 0) { this.nChiPower = 0; } var v3 = int(this.nChiPower * this.nFrInBar / this.nChiPowerMax) + 1; if (v3 > this.mcRef.mcState._totalframes) { v3 = this.mcRef.mcState._totalframes; } this.mcRef.mcState.gotoAndStop(v3); } }; v2.LaunchPower = function () { if (this.mcRef.mcState._currentframe >= this.nNbFrAnim) { this.nChiPower = 0; this.setState('ControlChi'); } }; v2.addPower = function () { this.nChiPower += this.nChiUp; if (this.nChiPower > this.nChiPowerMax) { this.nChiPower = this.nChiPowerMax; } }; v2.removePower = function (_nRatioDammage) { var v2 = _nRatioDammage * this.nChiPowerMax / 100; this.nChiPower -= v2; if (this.nChiPower < 0) { this.nChiPower = 0; } }; v2.checkForChiPause = function (_sChiLauncher) { if (this.sBarOwner != _sChiLauncher) { this.doChiPause(); } }; v2.controlBoostSfx = function () { this.nChiPercent = int((this.nChiPower / this.nChiPowerMax) * 100); if (_global.C[this.sBarOwner].sState == 'BoostChi') { BenderSfxClass.callBoostSfx(_global.C[this.sBarOwner].sNation, this.nChiPercent); } else { if (_global.Sfx.Items[_global.C[this.sBarOwner].sNation + 'BoostChi'].NbPlay > 0) { BenderSfxClass.callEndBoostSfx(_global.C[this.sBarOwner].sNation, this.nChiPercent); } } }; v2.doPause = function () {}; v2.doUnpause = function () {}; v2.doAction = function () { this.controlBoostSfx(); if (this.bWillChiPause == true and this.bCanChiPause == true) { this.bWillChiPause = false; this.doChiPause(); } if ((this.bPausable == false or this.bPausable == true and _global.C.bPause == false) and this.bPauseForChi == false) { this[this.sState](); } }; ASSetPropFlags(_global.ChiBar.prototype, null, 1); } #endinitclip } movieClip 1787 __Packages.Bg { #initclip if (!_global.Bg) { var v1 = function (_mcRef, _sName) { super(_mcRef, _sName); _global.C.mcAttachBullets = this.mcRef.mcBullets; this.oPlayer = _global.C.oPlayer; this.oEnemy = _global.C.oEnemy; this.nMidScrWidth = 300; this.nSliceWidth = 914; this.nSlice1X = 0; this.nSlice2X = this.nSliceWidth; this.sState = 'Replace'; _global.C.oActionBroadcast.addListener(this); }; _global.Bg = v1; _global.Bg extends State; var v2 = v1.prototype; v2.Replace = function () { var v3 = -1 * ((this.oEnemy.nPosX + this.oPlayer.nPosX) / 2 - this.nMidScrWidth); this.nPosX = v3; this.mcRef._x = this.nPosX; this.mcRef._y = this.nPosY; var v2 = int(this.nPosX / this.nSliceWidth) * -1; this.mcRef.mcBgSlice2._x = v2 * this.nSliceWidth; this.mcRef.mcBgSlice1._x = this.mcRef.mcBgSlice2._x - this.nSliceWidth; this.mcRef.mcBgSlice3._x = this.mcRef.mcBgSlice2._x + this.nSliceWidth; }; ASSetPropFlags(_global.Bg.prototype, null, 1); } #endinitclip } movieClip 1788 __Packages.BlackScreen { #initclip if (!_global.BlackScreen) { var v1 = function (_mcRef, _sName) { super(_mcRef, _sName); this.sChiLauncher = ''; this.aAllShakeDir = new Array('R', 'L', 'U', 'D'); this.aShakeDir = new Array('R', 'L', 'U', 'D'); this.nBaseShakePower = 0.1; this.nShakePower = 0; this.nModShakePower = 0.1; this.setState('NotThere'); _global.C.oActionBroadcast.addListener(this); }; _global.BlackScreen = v1; _global.BlackScreen extends State; var v2 = v1.prototype; v2.NotThere = function () { this.followBg(); }; v2.Appear = function () { this.doShake(); if (this.mcRef.mcState._currentframe >= this.nNbFrAnim) { _global.C[this.sChiLauncher].oChiBar.setState('LaunchPower'); _global.C[this.sChiLauncher].setState('ChiAttack'); this.setState('Idle'); } }; v2.Idle = function () { this.doShake(); }; v2.Disappear = function () { if (this.mcRef.mcState._currentframe >= this.nNbFrAnim) { this.nShakePower = 0; this.setState('NotThere'); } }; v2.setAppear = function (_sChiLauncher) { this.sChiLauncher = _sChiLauncher; if (this.sChiLauncher == 'oEnemy') { this.swapCharacters(); } this.setState('Appear'); }; v2.setDisappear = function () { _global.C.oBg.mcRef._x = _global.C.oBg.nPosX; _global.C.oBg.mcRef._y = _global.C.oBg.nPosY; this.setState('Disappear'); }; v2.swapCharacters = function () { var v3 = _global.C.oPlayer.mcRef.getDepth(); var v2 = _global.C.oEnemy.mcRef.getDepth(); _global.C.oPlayer.mcRef.swapDepths(10); _global.C.oEnemy.mcRef.swapDepths(v3); _global.C.oPlayer.mcRef.swapDepths(v2); }; v2.doShake = function () { this.nShakePower += this.nModShakePower; if (this.aShakeDir.length == 0) { for (var v3 in this.aAllShakeDir) { this.aShakeDir.push(this.aAllShakeDir[v3]); } } var v4 = Math.floor(Math.random() * this.aShakeDir.length); var v5 = this.aShakeDir[v4]; this.aShakeDir.splice(v4, 1); switch (v5) { case 'R': _global.C.oBg.mcRef._x += this.nShakePower; break; case 'L': _global.C.oBg.mcRef._x -= this.nShakePower; break; case 'U': _global.C.oBg.mcRef._y -= this.nShakePower; break; case 'D': _global.C.oBg.mcRef._y += this.nShakePower; break; default: } }; v2.followBg = function () { this.nPosX = _global.C.oBg.nPosX * -1; this.mcRef._x = this.nPosX; }; ASSetPropFlags(_global.BlackScreen.prototype, null, 1); } #endinitclip } movieClip 1789 __Packages.Blinker { #initclip if (!_global.Blinker) { var v1 = function (_sName) { this.sName = _sName; this.sState = 'MakeBlink'; this.bPauseForChi = false; this.oPlayer = _global.C.oPlayer; this.oEnemy = _global.C.oEnemy; this.nPlayerBlinkStep = 0; this.nEnemyBlinkStep = 0; this.aBlinkSteps = new Array(1, 2, 1, 2, 1, 2, 1, 2); this.oBlinkSet1 = {'ra': 39, 'rb': 156, 'ga': 39, 'gb': 156, 'ba': 39, 'bb': 156, 'aa': 100, 'ab': 0}; this.oBlinkSet2 = {'ra': 67, 'rb': 0, 'ga': 67, 'gb': 0, 'ba': 67, 'bb': 0, 'aa': 100, 'ab': 0}; this.oBlinkSet3 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; this.cPlayerBlink = new Color(this.oPlayer.mcRef); this.cEnemyBlink = new Color(this.oEnemy.mcRef); _global.C.oActionBroadcast.addListener(this); }; _global.Blinker = v1; var v2 = v1.prototype; v2.MakeBlink = function () { if (this.nPlayerBlinkStep > 0) { this.makeBlinkPlayer(); } if (this.nEnemyBlinkStep > 0) { this.makeBlinkEnemy(); } }; v2.setBlinker = function (_sBlinkerName) { if (_sBlinkerName == 'oPlayer') { ++this.nPlayerBlinkStep; } else { ++this.nEnemyBlinkStep; } }; v2.makeBlinkPlayer = function () { this.cPlayerBlink.setTransform(this['oBlinkSet' + this.aBlinkSteps[this.nPlayerBlinkStep]]); ++this.nPlayerBlinkStep; if (this.nPlayerBlinkStep >= this.aBlinkSteps.length or this.oPlayer.sState == 'GetHit' or this.oPlayer.sState == 'GetHitFall') { this.cPlayerBlink.setTransform(this.oBlinkSet3); this.nPlayerBlinkStep = 0; } }; v2.makeBlinkEnemy = function () { this.cEnemyBlink.setTransform(this['oBlinkSet' + this.aBlinkSteps[this.nEnemyBlinkStep]]); ++this.nEnemyBlinkStep; if (this.nEnemyBlinkStep >= this.aBlinkSteps.length or this.oEnemy.sState == 'GetHit' or this.oEnemy.sState == 'GetHitFall') { this.cEnemyBlink.setTransform(this.oBlinkSet3); this.nEnemyBlinkStep = 0; } }; v2.doAction = function () { if (_global.C.bPause == false and this.bPauseForChi == false) { this[this.sState](); } }; v2.doChiPause = function () { this.bPauseForChi = true; }; v2.doChiUnpause = function () { this.bPauseForChi = false; }; ASSetPropFlags(_global.Blinker.prototype, null, 1); } #endinitclip } movieClip 1790 __Packages.CombosData { #initclip if (!_global.CombosData) { var v1 = function () {}; _global.CombosData = v1; var v2 = v1.prototype; v1.oAirCombosData = {'Attack1': {'sComboType': 'Attack', 'bComboLock': false, 'bComboInProgress': true, 'sKeyNeedToHold': '', 'aKeysDefinition': ['KEY_SPACE', 'COMBO_END'], 'sComboResult': 'Attack1'}, 'Attack2': {'sComboType': 'Attack', 'bComboLock': false, 'bComboInProgress': true, 'sKeyNeedToHold': '', 'aKeysDefinition': ['KEY_UP', 'KEY_SPACE', 'COMBO_END'], 'sComboResult': 'Attack2'}, 'Attack3': {'sComboType': 'Attack', 'bComboLock': false, 'bComboInProgress': true, 'sKeyNeedToHold': '', 'aKeysDefinition': ['KEY_DOWN', 'KEY_UP', 'KEY_SPACE', 'COMBO_END'], 'sComboResult': 'Attack3'}, 'Defence2': {'sComboType': 'Defence', 'bComboLock': false, 'bComboInProgress': true, 'sKeyNeedToHold': '', 'aKeysDefinition': ['KEY_LEFT', 'KEY_SPACE', 'COMBO_END'], 'sComboResult': 'Defence2'}, 'Defence3': {'sComboType': 'Defence', 'bComboLock': false, 'bComboInProgress': true, 'sKeyNeedToHold': '', 'aKeysDefinition': ['KEY_UP', 'KEY_LEFT', 'KEY_SPACE', 'COMBO_END'], 'sComboResult': 'Defence3'}}; v1.oEarthCombosData = {'Attack1': {'sComboType': 'Attack', 'bComboLock': false, 'bComboInProgress': true, 'sKeyNeedToHold': '', 'aKeysDefinition': ['KEY_SPACE', 'COMBO_END'], 'sComboResult': 'Attack1'}, 'Attack2': {'sComboType': 'Attack', 'bComboLock': false, 'bComboInProgress': true, 'sKeyNeedToHold': '', 'aKeysDefinition': ['KEY_DOWN', 'KEY_DOWN', 'KEY_SPACE', 'COMBO_END'], 'sComboResult': 'Attack2'}, 'Attack3': {'sComboType': 'Attack', 'bComboLock': false, 'bComboInProgress': true, 'sKeyNeedToHold': '', 'aKeysDefinition': ['KEY_UP', 'KEY_DOWN', 'KEY_SPACE', 'COMBO_END'], 'sComboResult': 'Attack3'}, 'Defence2': {'sComboType': 'Defence', 'bComboLock': false, 'bComboInProgress': true, 'sKeyNeedToHold': '', 'aKeysDefinition': ['KEY_LEFT', 'KEY_SPACE', 'COMBO_END'], 'sComboResult': 'Defence2'}, 'Defence3': {'sComboType': 'Defence', 'bComboLock': false, 'bComboInProgress': true, 'sKeyNeedToHold': '', 'aKeysDefinition': ['KEY_DOWN', 'KEY_LEFT', 'KEY_SPACE', 'COMBO_END'], 'sComboResult': 'Defence3'}}; v1.oWaterCombosData = {'Attack1': {'sComboType': 'Attack', 'bComboLock': false, 'bComboInProgress': true, 'sKeyNeedToHold': '', 'aKeysDefinition': ['KEY_SPACE', 'COMBO_END'], 'sComboResult': 'Attack1'}, 'Attack2': {'sComboType': 'Attack', 'bComboLock': false, 'bComboInProgress': true, 'sKeyNeedToHold': '', 'aKeysDefinition': ['KEY_DOWN', 'KEY_LEFT', 'KEY_SPACE', 'COMBO_END'], 'sComboResult': 'Attack2'}, 'Attack3': {'sComboType': 'Attack', 'bComboLock': false, 'bComboInProgress': true, 'sKeyNeedToHold': '', 'aKeysDefinition': ['KEY_LEFT', 'KEY_UP', 'KEY_SPACE', 'COMBO_END'], 'sComboResult': 'Attack3'}, 'Defence2': {'sComboType': 'Defence', 'bComboLock': false, 'bComboInProgress': true, 'sKeyNeedToHold': '', 'aKeysDefinition': ['KEY_LEFT', 'KEY_SPACE', 'COMBO_END'], 'sComboResult': 'Defence2'}, 'Defence3': {'sComboType': 'Defence', 'bComboLock': false, 'bComboInProgress': true, 'sKeyNeedToHold': '', 'aKeysDefinition': ['KEY_LEFT', 'KEY_LEFT', 'KEY_SPACE', 'COMBO_END'], 'sComboResult': 'Defence3'}}; v1.oFireCombosData = {'Attack1': {'sComboType': 'Attack', 'bComboLock': false, 'bComboInProgress': true, 'sKeyNeedToHold': '', 'aKeysDefinition': ['KEY_SPACE', 'COMBO_END'], 'sComboResult': 'Attack1'}, 'Attack2': {'sComboType': 'Attack', 'bComboLock': false, 'bComboInProgress': true, 'sKeyNeedToHold': '', 'aKeysDefinition': ['KEY_RIGHT', 'KEY_RIGHT', 'KEY_SPACE', 'COMBO_END'], 'sComboResult': 'Attack2'}, 'Attack3': {'sComboType': 'Attack', 'bComboLock': false, 'bComboInProgress': true, 'sKeyNeedToHold': '', 'aKeysDefinition': ['KEY_DOWN', 'KEY_RIGHT', 'KEY_SPACE', 'COMBO_END'], 'sComboResult': 'Attack3'}, 'Defence2': {'sComboType': 'Defence', 'bComboLock': false, 'bComboInProgress': true, 'sKeyNeedToHold': '', 'aKeysDefinition': ['KEY_LEFT', 'KEY_SPACE', 'COMBO_END'], 'sComboResult': 'Defence2'}, 'Defence3': {'sComboType': 'Defence', 'bComboLock': false, 'bComboInProgress': true, 'sKeyNeedToHold': '', 'aKeysDefinition': ['KEY_LEFT', 'KEY_LEFT', 'KEY_SPACE', 'KEY_SPACE', 'COMBO_END'], 'sComboResult': 'Defence3'}}; ASSetPropFlags(_global.CombosData.prototype, null, 1); } #endinitclip } movieClip 1791 __Packages.Statue { #initclip if (!_global.Statue) { var v1 = function (_mcRef, _sName) { super(_mcRef, _sName); this.mcRefBody = undefined; this.nSpdMoveBack = 0; delete this.oAI; this.oPart1 = new StatuePart(this.mcRef.mcObj.mcPart1, 'oPart1'); this.oPart2 = new StatuePart(this.mcRef.mcObj.mcPart2, 'oPart2'); this.oPart3 = new StatuePart(this.mcRef.mcObj.mcPart3, 'oPart3'); this.oPart4 = new StatuePart(this.mcRef.mcObj.mcPart4, 'oPart4'); this.oPart5 = new StatuePart(this.mcRef.mcObj.mcPart5, 'oPart5'); }; _global.Statue = v1; _global.Statue extends Enemy; var v2 = v1.prototype; v2.GetHit1 = function () { if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { if (this.nLife > 0) { this.setState('Idle'); } else { this.setState('LooseCombat'); } } }; v2.GetHit2 = function () { if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { if (this.nLife > 0) { this.setState('Idle'); } else { this.setState('LooseCombat'); } } }; v2.GetHit3 = function () { if (this.bHitBorder == false and this.nSpdMoveBack > 0) { var v2 = this.nPosX; this.nPosX += this.nSpdMoveBack; this.nSpdMoveBack /= 2; if (this.nSpdMoveBack < 1) { this.nSpdMoveBack = 0; } if (this.nPosX - this.oEnemy.nPosX > this.nMaxDistWithEnemy) { this.bHitBorder = true; this.nPosX = this.oEnemy.nPosX + this.nMaxDistWithEnemy; } this.mcRef._x = this.nPosX; } if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { if (this.nLife > 0) { this.setState('Idle'); } else { this.setState('LooseCombat'); } } }; v2.GetHit4 = function () { if (this.bHitBorder == false) { var v2 = this.nPosX; this.nPosX += this.nSpdX * this.nModSpdGetHit; if (this.nPosX - this.oEnemy.nPosX > this.nMaxDistWithEnemy) { this.bHitBorder = true; this.nPosX = this.oEnemy.nPosX + this.nMaxDistWithEnemy; } this.mcRef._x = this.nPosX; } if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { if (this.nLife > 0) { this.setState('Idle'); } else { this.setState('LooseCombat'); } } }; v2.LooseCombat = function () { _global.C.oTimer.bRunning = false; _global.P.oScoreSystem.calculTrainingScore(); _global.P.oPopUp.setOpen('EndTraining', true); this.setState('Destroy'); }; v2.Destroy = function () {}; v2.setHitted = function (_nDammage, _sAttack) { this.nLife -= _nDammage; if (this.nLife <= 0) { _global.C.oPlayer.bActionBloc = true; this.nLife = 0; } this.checkBodyPart(); _global.C.oBlinker.setBlinker(this.sName); switch (_sAttack) { case 'Attack1': this.setState('GetHit1'); break; case 'Attack2': this.setState('GetHit2'); break; case 'Attack3': this.nSpdMoveBack = 30; this.setState('GetHit3'); break; case 'ChiAttack': this.setState('GetHit4'); break; default: } }; v2.checkBodyPart = function () { var v2; switch (CharacterData[this.sName].nTorsoSet) { case 1: v2 = 0.8; break; case 2: v2 = 0.6; break; case 3: v2 = 0.4; break; case 4: v2 = 0.2; break; case 5: v2 = 0; break; default: v2 = 1; } if (this.nLife / this.nMaxLife <= v2) { this['oPart' + CharacterData[this.sName].nTorsoSet].setState('Explode'); ++CharacterData[this.sName].nTorsoSet; this.mcRefBody.gotoAndStop(CharacterData[this.sName].nTorsoSet); } }; v2.reactFromAttack = function (_sIncomingAttack) {}; v2.setReactToChiBoost = function (_sChiBarName) {}; v2.reactToChiBoost = function (_sOpponentChiBar) {}; v2.reactToFallen = function () {}; ASSetPropFlags(_global.Statue.prototype, null, 1); } #endinitclip } movieClip 1792 __Packages.StatuePart { #initclip if (!_global.StatuePart) { var v1 = function (_mcRef, _sName) { super(_mcRef, _sName); this.setState('NotThere'); _global.C.oActionBroadcast.addListener(this); }; _global.StatuePart = v1; _global.StatuePart extends State; var v2 = v1.prototype; v2.NotThere = function () {}; v2.Explode = function () { if (this.mcRef.mcState._currentframe >= this.nNbFrAnim) { this.setState('NotThere'); } }; ASSetPropFlags(_global.StatuePart.prototype, null, 1); } #endinitclip } movieClip 1793 __Packages.Bullet { #initclip if (!_global.Bullet) { var v1 = function (_mcRef, _sName, _sAttackName, _oBulletData, _sLauncherNation, _sLauncher, _sMoveDir, _sTarget) { super(_mcRef, _sName); this.oBulletData = _oBulletData; this.sBulletType = _sAttackName; this.sLauncherNation = _sLauncherNation; this.sLauncher = _sLauncher; this.sMoveDir = _sMoveDir; this.sTarget = _sTarget; this.nSpdX = 0; this.bPassByTarget = false; this.nDistOffScreen = 50; _global.C[this.sLauncher].sBulletToLaunch = this.sName; _global.C.oActionBroadcast.addListener(this); }; _global.Bullet = v1; _global.Bullet extends State; var v2 = v1.prototype; v2.WaitForLaunch = function () { if (_global.C[this.sLauncher].sState != this.sBulletType) { this.setState('Destroy'); } else { this.doMove(); } }; v2.Appear = function () { this.doMove(); if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim and this.sState == 'Appear') { this.setState('Idle'); } }; v2.Idle = function () { this.doMove(); }; v2.Hit = function () { if (this.mcRef.mcObj.mcState._currentframe >= this.nNbFrAnim) { this.setState('Destroy'); } }; v2.Destroy = function () { this.mcRef.removeMovieClip(); _global.C.oActionBroadcast.removeListener(this); delete _global.C[this.sName]; }; v2.iniAtStart = function (_mcRef) { this.mcRef = _mcRef; this.mcRef.gotoAndStop(this.sLauncherNation); if (this.sMoveDir == 'Right') { this.nSpdX = this.oBulletData.nBulletSpd; this.nPosX = _global.C[this.sLauncher].nPosX + this.oBulletData.nDistStartX - CombatData[this.sLauncherNation + 'Attack'][this.sBulletType].nFrStart * this.nSpdX; } else { this.nSpdX = this.oBulletData.nBulletSpd * -1; this.nPosX = _global.C[this.sLauncher].nPosX - this.oBulletData.nDistStartX - CombatData[this.sLauncherNation + 'Attack'][this.sBulletType].nFrStart * this.nSpdX; this.mcRef._xscale *= -1; } this.nPosY = _global.C[this.sLauncher].nPosY - this.oBulletData.nDistStartY; this.mcRef._x = this.nPosX; this.mcRef._y = this.nPosY; this.setState('WaitForLaunch'); }; v2.launchBullet = function () { if (this.bPauseForChi == false) { if (this.sState == 'WaitForLaunch') { this.setState('Appear'); } } else { this.setState('Destroy'); } }; v2.doMove = function () { _global.C.oActionBroadcast.broadcastMessage('checkForBloc', this.sTarget, this.nPosX, this.nSpdX); var v3 = this.nPosX + this.nSpdX; if (this.bPassByTarget == false) { var v4 = false; var v5 = false; v4 = this.checkForBloc(v3); if (v4 == false) { v5 = this.checkForTarget(v3); } if (v4 == true) { if (CombatData[_global.C[this.sTarget].sNation + 'Defence'][_global.C[this.sTarget].sIsBlockingWith]['bBloc' + this.sBulletType] == false) { _global.C[this.sTarget].setHitted(this.oBulletData.nDammage, this.sBulletType); this.bPassByTarget = true; } else { this.nPosX = _global.C[this.sTarget].nBlocPosX; this.setHit(); } } else { if (v5 == true) { this.nPosX = _global.C[this.sTarget].nPosX; this.setHit(); } else { this.nPosX = v3; } } this.mcRef._x = this.nPosX; } else { var v6 = this.checkOffScreen(); if (v6 == false) { this.nPosX = v3; this.mcRef._x = this.nPosX; } else { this.setState('Destroy'); } } }; v2.checkForBloc = function (_nDestPosX) { var v3 = false; if (_global.C[this.sTarget].sIsBlockingWith != '') { if (this.sMoveDir == 'Right') { if (this.nPosX >= _global.C[this.sTarget].nBlocPosX or _nDestPosX >= _global.C[this.sTarget].nBlocPosX) { v3 = true; } return v3; } if (this.nPosX <= _global.C[this.sTarget].nBlocPosX or _nDestPosX <= _global.C[this.sTarget].nBlocPosX) { v3 = true; } } return v3; }; v2.checkForTarget = function (_nDestPosX) { var v3 = false; if (_global.C.bRoundOver == false) { if (this.sMoveDir == 'Right') { if (_nDestPosX > _global.C[this.sTarget].nPosX) { if (_global.C[this.sTarget].bCanBeHit == true) { v3 = true; } else { this.bPassByTarget = true; } } } else { if (_nDestPosX < _global.C[this.sTarget].nPosX) { if (_global.C[this.sTarget].bCanBeHit == true) { v3 = true; } else { this.bPassByTarget = true; } } } return v3; } this.bPassByTarget = true; return v3; }; v2.checkOffScreen = function () { var v3 = false; if (this.sMoveDir == 'Right') { if (this.nPosX + _global.C.oBg.nPosX > 700) { v3 = true; } return v3; } if (this.nPosX + _global.C.oBg.nPosX < -100) { v3 = true; } return v3; }; v2.setHit = function () { this.setState('Hit'); BenderSfxClass.callMoveSfx(this.sLauncherNation, this.sLauncherNation + 'Bullet' + this.sBulletType, 0); _global.C[this.sTarget].setHitted(this.oBulletData.nDammage, this.sBulletType); }; v2.checkForChiPause = function (_sChiLauncher) { this.doChiPause(); }; v2.doPause = function () { this.mcRef.mcObj.mcState.stop(); }; v2.doUnpause = function () { if (this.bPauseForChi == false) { this.mcRef.mcObj.mcState.play(); } }; v2.doChiUnpause = function () { this.bPauseForChi = false; if (this.sState != 'Hit' and this.sState != 'Destroy') { this.setState('Hit'); } this.doUnpause(); }; v2.setState = function (_sState) { this.sState = _sState; this.mcRef.mcObj.gotoAndStop(this.sState); this.nNbFrAnim = this.mcRef.mcObj.mcState._totalframes; }; ASSetPropFlags(_global.Bullet.prototype, null, 1); } #endinitclip } frame 2 { ifFrameLoaded (170) { gotoAndStop('IniSounds'); } } frame 3 { stop(); } movieClip 44 { } movieClip 46 { } movieClip 48 { } movieClip 49 { } movieClip 51 { } movieClip 52 { instance of movieClip 49 { onClipEvent (load) { var TotalLoad = _root.getBytesTotal(); } onClipEvent (enterFrame) { var TempLoad = _root.getBytesLoaded(); var Pourcent = (TempLoad / TotalLoad) * 100; Pourcent = Math.round(Pourcent); if (Pourcent < 100) { this.gotoAndStop(Pourcent); } else { _parent._parent.gotoAndStop('IniSounds'); } } } } frame 10 { gotoAndStop('Title'); } movieClip 116 { frame 1 { stop(); } } instance of movieClip 116 { onClipEvent (load) { function doAction() { Fade(); } _global.Sfx = this; Items = new Object(); TabFade = new Array(); VolFireAttack1 = 100; VolFireAttack2 = 100; VolFireAttack3Pt1 = 100; VolFireAttack3Pt2 = 100; VolFireChiAttack = 100; VolFireDefence1 = 100; VolFireDefence2 = 100; VolFireDefence3 = 100; VolFireBulletAttack1 = 100; VolFireBulletAttack2 = 100; VolFireBulletAttack3 = 100; VolFireBoostChi = 100; VolAirAttack1 = 100; VolAirAttack2 = 100; VolAirAttack3 = 100; VolAirChiAttack = 100; VolAirDefence1 = 100; VolAirDefence2 = 100; VolAirDefence3 = 100; VolAirBulletAttack1 = 100; VolAirBulletAttack2 = 100; VolAirBulletAttack3 = 100; VolAirBoostChi = 140; VolEarthAttack1 = 100; VolEarthAttack2 = 100; VolEarthAttack3 = 100; VolEarthChiAttack = 100; VolEarthDefence1 = 100; VolEarthDefence2 = 100; VolEarthDefence3 = 100; VolEarthBulletAttack1 = 100; VolEarthBulletAttack2 = 100; VolEarthBulletAttack3 = 100; VolEarthBoostChi = 100; VolWaterAttack1 = 100; VolWaterAttack2 = 100; VolWaterAttack3 = 100; VolWaterChiAttack = 100; VolWaterDefence1 = 100; VolWaterDefence2 = 100; VolWaterDefence3 = 100; VolWaterBulletAttack1 = 100; VolWaterBulletAttack2 = 100; VolWaterBulletAttack3 = 100; VolWaterBoostChi = 100; VolStartBoost = 100; VolEndBoost = 170; VolBodyFall = 100; VolTransitOpen = 100; VolTransitClose = 100; VolFight = 100; VolMomoAppear = 100; VolMomoDisappear = 100; VolPointLoop = 100; VolPointEnd = 100; VolImpactText = 100; VolFighterFire = 120; VolFighterAir = 120; VolFighterEarth = 120; VolFighterWater = 120; VolBoxMove = 120; VolButton1 = 100; Mute = false; Controlled = new Array('FireAttack1', 'FireAttack2', 'FireAttack3Pt1', 'FireAttack3Pt2', 'FireChiAttack', 'FireDefence1', 'FireDefence2', 'FireDefence3', 'FireBulletAttack1', 'FireBulletAttack2', 'FireBulletAttack3', 'FireBoostChi', 'AirAttack1', 'AirAttack2', 'AirAttack3', 'AirChiAttack', 'AirDefence1', 'AirDefence2', 'AirDefence3', 'AirBulletAttack1', 'AirBulletAttack2', 'AirBulletAttack3', 'AirBoostChi', 'EarthAttack1', 'EarthAttack2', 'EarthAttack3', 'EarthChiAttack', 'EarthDefence1', 'EarthDefence2', 'EarthDefence3', 'EarthBulletAttack1', 'EarthBulletAttack2', 'EarthBulletAttack3', 'EarthBoostChi', 'WaterAttack1', 'WaterAttack2', 'WaterAttack3', 'WaterChiAttack', 'WaterDefence1', 'WaterDefence2', 'WaterDefence3', 'WaterBulletAttack1', 'WaterBulletAttack2', 'WaterBulletAttack3', 'WaterBoostChi', 'StartBoost', 'EndBoost', 'BodyFall', 'TransitOpen', 'TransitClose', 'Fight', 'MomoAppear', 'MomoDisappear', 'PointLoop', 'PointEnd', 'ImpactText', 'FighterFire', 'FighterAir', 'FighterEarth', 'FighterWater', 'BoxMove', 'Button1'); for (i in Controlled) { this.createEmptyMovieClip(Controlled[i], i + 1); this[Controlled[i]] = new Sound(this[Controlled[i]]); this[Controlled[i]].attachSound(Controlled[i]); this[Controlled[i]].Nom = Controlled[i]; this[Controlled[i]].onSoundComplete = function () { --Items[this.Nom].NbPlay; }; Items[Controlled[i]] = new Object(); Items[Controlled[i]].Nom = Controlled[i]; Items[Controlled[i]].Volume = 0; Items[Controlled[i]].NbPlay = 0; } PlaySound = function (l_Name, l_Vol, l_NbLoop, l_Start) { if (l_Vol == -1) { l_Vol = this['Vol' + l_Name]; } ++Items[l_Name].NbPlay; if (l_Start == undefined) { l_Start = 0; } SetVolume(l_Name, l_Vol); if (l_Start != 0) { (eval(l_Name)).start(l_Start / 1000, 0); } else { (eval(l_Name)).start(l_Start / 1000, l_NbLoop); } }; StopSound = function (l_Name) { SetVolume(l_Name, 0); (eval(l_Name)).stop(); Items[l_Name].NbPlay = 0; }; SetVolume = function (l_Name, l_Vol) { if (l_Vol == -1) { l_Vol = this['Vol' + l_Name]; } Items[l_Name].Volume = l_Vol; if (Mute) { (eval(l_Name)).setVolume(0); } else { (eval(l_Name)).setVolume(int(l_Vol)); } }; DoFade = function (l_Name, l_Vol, l_DirFade, l_SpdFade, l_Index) { var v1 = Items[l_Name].Volume; if (l_DirFade == 'In') { if (v1 + l_SpdFade < l_Vol) { SetVolume(l_Name, v1 + l_SpdFade); } else { SetVolume(l_Name, l_Vol); TabFade.splice(l_Index, 1); } } else { if (v1 - l_SpdFade > l_Vol) { SetVolume(l_Name, v1 - l_SpdFade); } else { SetVolume(l_Name, l_Vol); TabFade.splice(l_Index, 1); if (l_Vol == 0) { StopSound(l_Name); } } } }; Fade = function () { for (i in TabFade) { DoFade(TabFade[i][0], TabFade[i][1], TabFade[i][2], TabFade[i][3], i); } }; DoMute = function () { Mute = true; for (i in Items) { (eval(Items[i].Nom)).setVolume(0); } }; UndoMute = function () { Mute = false; for (i in Items) { SetVolume(Items[i].Nom, Items[i].Volume); } }; } } movieClip 119 { frame 1 { stop(); } } instance of movieClip 119 { onClipEvent (load) { function doAction() { Fade(); } _global.Music = this; Items = new Object(); MusPackMax = 30; MusGameMax = 30; TabFade = new Array(); Mute = false; MusNow = ''; Controlled = new Array('MusPack', 'MusGame'); for (i in Controlled) { this.createEmptyMovieClip(Controlled[i], i + 1); this[Controlled[i]] = new Sound(this[Controlled[i]]); this[Controlled[i]].attachSound(Controlled[i]); this[Controlled[i]].Nom = Controlled[i]; this[Controlled[i]].onSoundComplete = function () { Items[this.Nom].bPlaying = false; }; Items[Controlled[i]] = new Object(); Items[Controlled[i]].Nom = Controlled[i]; Items[Controlled[i]].Volume = 0; Items[Controlled[i]].StartPos = 0; Items[Controlled[i]].bPlaying = false; } PlaySound = function (l_Name, l_Vol, l_NbLoop, l_Start) { if (l_Start == undefined) { l_Start = 0; } Items[l_Name].bPlaying = true; SetVolume(l_Name, l_Vol); if (l_Start != 0) { (eval(l_Name)).start(l_Start / 1000, 0); } else { (eval(l_Name)).start(l_Start / 1000, l_NbLoop); } }; StopSound = function (l_Name) { SetVolume(l_Name, 0); Items[l_Name].bPlaying = false; (eval(l_Name)).stop(); }; SetVolume = function (l_Name, l_Vol) { if (l_Vol == -1) { l_Vol = this[l_Name + 'Max']; } Items[l_Name].Volume = l_Vol; if (Mute) { (eval(l_Name)).setVolume(0); } else { (eval(l_Name)).setVolume(int(l_Vol)); } }; DoFade = function (l_Name, l_Vol, l_DirFade, l_SpdFade, l_Index) { var v4 = Items[l_Name].Volume; if (l_Vol == -1) { l_Vol = this[l_Name + 'Max']; } if (l_DirFade == 'In') { if (v4 + l_SpdFade < l_Vol) { SetVolume(l_Name, v4 + l_SpdFade); } else { SetVolume(l_Name, l_Vol); TabFade.splice(l_Index, 1); } } else { if (v4 - l_SpdFade > l_Vol) { SetVolume(l_Name, v4 - l_SpdFade); } else { SetVolume(l_Name, l_Vol); TabFade.splice(l_Index, 1); if (l_Vol == 0) { StopSound(l_Name); } } } }; Fade = function () { for (i in TabFade) { DoFade(TabFade[i][0], TabFade[i][1], TabFade[i][2], TabFade[i][3], i); } }; DoMute = function () { Mute = true; for (i in Items) { (eval(Items[i].Nom)).setVolume(0); } }; UndoMute = function () { Mute = false; for (i in Items) { SetVolume(Items[i].Nom, Items[i].Volume); } }; _global.Music.PlaySound('MusPack', -1, 100000); } } frame 20 { if (HighScores.bDisplay == false) { mcMain.btn_view_score._visible = false; } stop(); } movieClip 121 { } instance of movieClip 121 { onClipEvent (load) { _global.P = new GameParam(this); _global.P.initParam(); } } movieClip 124 { } movieClip 126 { } movieClip 129 { } button 130 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); if (HighScores.oProxyObj != undefined) { if (HighScores.oProxyObj.getIsLoggedIn()) { CharacterData.oPlayer.sName = HighScores.oProxyObj.getScreenName(); } PlayerData.loadData(HighScores.oProxyObj.getScreenName(), CharacterData.oPlayer); PlayerData.onLoaded = function (_bEmpty) { if (_bEmpty) { _global.P.oTransit.goTo('ChooseNation'); } else { _global.P.oTransit.goTo('CreateBender'); } }; } else { _global.P.oTransit.goTo('ChooseNation'); } } } movieClip 132 { } button 133 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _global.P.oTransit.goTo('Instruct'); } } movieClip 135 { } button 136 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _global.P.sSubmitFrom = 'Title'; _global.P.bSubmitScore = false; _global.P.oTransit.goTo('HighScore'); } } movieClip 138 { } movieClip 141 { } movieClip 145 { } movieClip 149 { } movieClip 151 { } movieClip 153 { } movieClip 167 { } movieClip 169 { } movieClip 175 { } movieClip 177 { } movieClip 182 { } movieClip 184 { } movieClip 190 { } movieClip 191 { frame 1 { this.gotoAndStop(_global.C.oPlayer.sNation); } } movieClip 193 { } movieClip 195 { } movieClip 197 { } movieClip 198 { } movieClip 200 { } movieClip 202 { } movieClip 203 { } movieClip 205 { } movieClip 207 { } movieClip 209 { } movieClip 211 { } movieClip 212 { } movieClip 213 { instance of movieClip 198 { onClipEvent (load) { if (_global.Sfx.Mute == true) { this.nextFrame(); } else { this.stop(); } } } instance of movieClip 203 { onClipEvent (load) { if (_global.Music.Mute == true) { this.nextFrame(); } else { this.stop(); } } } instance of movieClip 212 { onClipEvent (load) { if (_global.P.sGameMode == 'Training') { this.gotoAndStop('Quit'); } else { this.stop(); } } } } movieClip 214 { } button 215 { on (release, releaseOutside) { _global.Sfx.DoMute(); nextFrame(); } } button 216 { on (release, releaseOutside) { _global.Sfx.UndoMute(); _global.Sfx.PlaySound('Button1', -1, 0); prevFrame(); } } movieClip 217 { } button 218 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _global.Music.DoMute(); nextFrame(); } } button 219 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _global.Music.UndoMute(); prevFrame(); } } movieClip 220 { } button 221 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _global.Music.TabFade.push(['MusPack', 0, 'Out', 2]); _global.Music.PlaySound('MusGame', 0, 100000); _global.Music.TabFade.push(['MusGame', -1, 'In', 2]); _global.P.oPopUp.bOpenQuit = false; _global.P.oPopUp.setClose(); } } button 222 { on (release, releaseOutside) { _global.Sfx.PlaySound('ImpactText', -1, 0); _parent._parent.gotoAndStop('Restart'); } } button 223 { on (release, releaseOutside) { _global.Sfx.PlaySound('ImpactText', -1, 0); _parent._parent.gotoAndStop('RestartTrain'); } } movieClip 224 { } movieClip 225 { instance of movieClip 217 { onClipEvent (load) { if (_global.Sfx.Mute == true) { this.nextFrame(); } else { this.stop(); } } } instance of movieClip 220 { onClipEvent (load) { if (_global.Music.Mute == true) { this.nextFrame(); } else { this.stop(); } } } instance of movieClip 224 { onClipEvent (load) { if (_global.P.sGameMode == 'Training') { this.gotoAndStop('Quit'); } else { this.stop(); } } } } movieClip 227 { } movieClip 228 { } movieClip 230 { } movieClip 232 { } movieClip 235 { } button 236 { on (release, releaseOutside) { _global.Sfx.PlaySound('ImpactText', -1, 0); play(); } } button 237 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _global.P.oTransit.goTo('Title'); } } movieClip 238 { frame 1 { LockBtn.useHandCursor = false; } frame 14 { stop(); } frame 27 { _parent.gotoAndStop('Menu'); } } movieClip 240 { } button 241 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _global.P.oTransit.goTo('Title'); } } movieClip 242 { frame 1 { LockBtn.useHandCursor = false; } frame 14 { stop(); } frame 27 { _parent.gotoAndStop('Menu'); } } movieClip 243 { frame 1 { stop(); } } movieClip 244 { } movieClip 246 { } movieClip 248 { } movieClip 250 { } movieClip 252 { } movieClip 253 { } button 256 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _global.Music.TabFade.push(['MusPack', 0, 'Out', 0.2]); _global.P.selectMode('Training'); _global.P.oTransit.goTo('Game'); } } button 258 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _global.P.selectMode('Tournament'); if (_global.P.nLevel == 1) { _global.P.oTransit.goTo('Story'); } else { _global.P.oTransit.goTo('Progress'); } } } movieClip 259 { } movieClip 261 { } movieClip 262 { } movieClip 264 { } movieClip 265 { frame 1 { mcRound.txtRound = 'Round ' + _global.P.nRound; } } movieClip 267 { } movieClip 268 { } movieClip 269 { } movieClip 270 { } movieClip 271 { } movieClip 274 { } movieClip 275 { } movieClip 276 { } movieClip 277 { } movieClip 278 { } movieClip 284 { frame 1 { txtScore = _global.P.oScoreSystem.formatNumber(_global.P.oScoreSystem.nProgressTrainingScore); var _sHours; var _sMinutes; var _sSeconds; if (_global.C.oTimer.nHours < 10) { _sHours = '0' + _global.C.oTimer.nHours; } else { _sHours = _global.C.oTimer.nHours; } if (_global.C.oTimer.nMinutes < 10) { _sMinutes = '0' + _global.C.oTimer.nMinutes; } else { _sMinutes = _global.C.oTimer.nMinutes; } if (_global.C.oTimer.nSeconds < 10) { _sSeconds = '0' + _global.C.oTimer.nSeconds; } else { _sSeconds = _global.C.oTimer.nSeconds; } txtTime = _sHours + ':' + _sMinutes + ':' + _sSeconds; } } movieClip 285 { } movieClip 286 { } movieClip 288 { } button 289 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _global.P.bRestartTrain = true; _global.P.oTransit.goTo('ResetTraining'); } } button 290 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _global.P.oTransit.goTo('Title'); } } movieClip 291 { } movieClip 298 { frame 1 { txtLevelScore = _global.P.oScoreSystem.formatNumber(_global.P.oScoreSystem.nProgressLevelScore); txtScore = _global.P.oScoreSystem.formatNumber(_global.P.oScoreSystem.nScore); var _sHours; var _sMinutes; var _sSeconds; if (_global.C.oTimer.nHours < 10) { _sHours = '0' + _global.C.oTimer.nHours; } else { _sHours = _global.C.oTimer.nHours; } if (_global.C.oTimer.nMinutes < 10) { _sMinutes = '0' + _global.C.oTimer.nMinutes; } else { _sMinutes = _global.C.oTimer.nMinutes; } if (_global.C.oTimer.nSeconds < 10) { _sSeconds = '0' + _global.C.oTimer.nSeconds; } else { _sSeconds = _global.C.oTimer.nSeconds; } txtTime = _sHours + ':' + _sMinutes + ':' + _sSeconds; } } movieClip 299 { } movieClip 300 { } movieClip 301 { } movieClip 306 { frame 1 { txtScore = _global.P.oScoreSystem.formatNumber(_global.P.oScoreSystem.nScore); } } movieClip 307 { } button 308 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _global.P.oTransit.goTo('LooseScr'); } } button 309 { on (release, releaseOutside) { _global.P.oScoreSystem.nScore -= 10000; _global.P.oTransit.goTo('TryAgain'); } } movieClip 310 { } movieClip 311 { instance of movieClip 310 { onClipEvent (load) { _global.Sfx.PlaySound('Button1', -1, 0); if (_global.P.oScoreSystem.nScore < 10000) { this.gotoAndStop('Unactive'); } else { this.stop(); } } } } movieClip 312 { frame 1 { nextFrame(); } } movieClip 315 { } movieClip 316 { } movieClip 317 { } movieClip 318 { } movieClip 319 { frame 1 { nextFrame(); } frame 10 { LockBtn.useHandCursor = false; } frame 20 { LockBtn.useHandCursor = false; } frame 30 { LockBtn.useHandCursor = false; } } movieClip 321 { } button 322 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _parent.gotoAndStop('InstructWater'); } } button 323 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _parent.gotoAndStop('InstructFire'); } } button 324 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _parent.gotoAndStop('InstructAir'); } } movieClip 330 { } movieClip 338 { } movieClip 340 { } movieClip 342 { } button 343 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _global.P.oTransit.goTo('Title'); } } movieClip 344 { } movieClip 349 { } button 350 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _parent.gotoAndStop('InstructEarth'); } } movieClip 351 { } movieClip 352 { } movieClip 356 { } movieClip 357 { } movieClip 358 { } movieClip 363 { } movieClip 364 { } movieClip 365 { frame 1 { stop(); } } movieClip 368 { } movieClip 371 { } movieClip 373 { } button 375 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _parent.mcBtnBack.gotoAndStop('Lock'); _global.P[_sName].doPress(); } on (rollOver) { _global.P[_sName].doRollOver(); } on (rollOut) { _global.P[_sName].doRollOut(); } } movieClip 378 { } movieClip 379 { } movieClip 380 { } movieClip 381 { } movieClip 382 { } movieClip 383 { } movieClip 384 { frame 1 { var _sName = 'o' + substring(_name, 3, -1); } } movieClip 386 { } movieClip 388 { } button 390 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _parent.mcBtnBack.gotoAndStop('Lock'); _global.P[_sName].doPress(); } on (rollOver) { _global.P[_sName].doRollOver(); } on (rollOut) { _global.P[_sName].doRollOut(); } } movieClip 392 { } movieClip 393 { } movieClip 394 { } movieClip 395 { } movieClip 396 { } movieClip 397 { frame 1 { var _sName = 'o' + substring(_name, 3, -1); } } movieClip 399 { } movieClip 401 { } button 403 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _parent.mcBtnBack.gotoAndStop('Lock'); _global.P[_sName].doPress(); } on (rollOver) { _global.P[_sName].doRollOver(); } on (rollOut) { _global.P[_sName].doRollOut(); } } movieClip 405 { } movieClip 406 { } movieClip 407 { } movieClip 408 { } movieClip 409 { } movieClip 410 { frame 1 { var _sName = 'o' + substring(_name, 3, -1); } } movieClip 412 { } movieClip 414 { } button 416 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _parent.mcBtnBack.gotoAndStop('Lock'); _global.P[_sName].doPress(); } on (rollOver) { _global.P[_sName].doRollOver(); } on (rollOut) { _global.P[_sName].doRollOut(); } } movieClip 418 { } movieClip 419 { } movieClip 420 { } movieClip 421 { } movieClip 422 { } movieClip 423 { frame 1 { var _sName = 'o' + substring(_name, 3, -1); } } button 424 { on (release) { _global.Sfx.PlaySound('Button1', -1, 0); _global.P.oTransit.goTo('Title'); } } movieClip 425 { frame 1 { stop(); } } movieClip 428 { } movieClip 430 { } movieClip 433 { } movieClip 435 { } movieClip 437 { } movieClip 439 { } movieClip 440 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 443 { } movieClip 445 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 447 { } movieClip 449 { } movieClip 451 { } movieClip 452 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 454 { } movieClip 456 { } movieClip 457 { } movieClip 458 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 460 { } movieClip 462 { } movieClip 464 { } movieClip 465 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 468 { } movieClip 470 { } movieClip 471 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 473 { } movieClip 475 { } movieClip 477 { } movieClip 478 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 480 { } movieClip 482 { } movieClip 484 { } movieClip 485 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 487 { } movieClip 489 { } movieClip 491 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 493 { } movieClip 495 { } movieClip 497 { } movieClip 498 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 502 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 504 { } movieClip 506 { } movieClip 507 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 509 { } movieClip 511 { } movieClip 512 { } movieClip 513 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 515 { } movieClip 517 { } movieClip 519 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nHeadSet); } } movieClip 520 { } movieClip 521 { frame 1 { stop(); } frame 10 { gotoAndStop('Idle'); } } movieClip 523 { } movieClip 525 { } movieClip 527 { } movieClip 528 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 532 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 534 { } movieClip 536 { } movieClip 538 { } movieClip 539 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 541 { } movieClip 543 { } movieClip 545 { } movieClip 546 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 548 { } movieClip 550 { } movieClip 552 { } movieClip 553 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 554 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 556 { } movieClip 557 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 559 { } movieClip 561 { } movieClip 562 { } movieClip 563 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 565 { } movieClip 567 { } movieClip 568 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 572 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 574 { } movieClip 576 { } movieClip 577 { } movieClip 578 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 581 { } movieClip 583 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 585 { } movieClip 586 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 589 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 593 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nHeadSet); } } movieClip 595 { } movieClip 597 { } movieClip 598 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 600 { } movieClip 601 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 602 { } movieClip 603 { frame 1 { stop(); } frame 10 { gotoAndStop('Idle'); } } movieClip 605 { } movieClip 607 { } movieClip 609 { } movieClip 610 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 612 { } movieClip 614 { } movieClip 616 { } movieClip 617 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 619 { } movieClip 621 { } movieClip 623 { } movieClip 624 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 626 { } movieClip 628 { } movieClip 630 { } movieClip 631 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 633 { } movieClip 635 { } movieClip 637 { } movieClip 638 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 640 { } movieClip 642 { } movieClip 644 { } movieClip 645 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 647 { } movieClip 648 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 650 { } movieClip 652 { } movieClip 654 { } movieClip 655 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 657 { } movieClip 659 { } movieClip 661 { } movieClip 662 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 664 { } movieClip 666 { } movieClip 668 { } movieClip 669 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 671 { } movieClip 673 { } movieClip 675 { } movieClip 676 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 678 { } movieClip 680 { } movieClip 682 { } movieClip 683 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 685 { } movieClip 686 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 688 { } movieClip 690 { } movieClip 691 { } movieClip 692 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 694 { } movieClip 696 { } movieClip 698 { } movieClip 699 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nHeadSet); } } movieClip 700 { } movieClip 701 { frame 1 { stop(); } frame 10 { gotoAndStop('Idle'); } } movieClip 703 { } movieClip 705 { } movieClip 707 { } movieClip 708 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 710 { } movieClip 712 { } movieClip 714 { } movieClip 715 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 717 { } movieClip 719 { } movieClip 721 { } movieClip 722 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 724 { } movieClip 726 { } movieClip 728 { } movieClip 729 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 731 { } movieClip 733 { } movieClip 735 { } movieClip 736 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 738 { } movieClip 740 { } movieClip 741 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nHeadSet); } } movieClip 743 { } movieClip 745 { } movieClip 747 { } movieClip 748 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 750 { } movieClip 752 { } movieClip 754 { } movieClip 755 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 757 { } movieClip 759 { } movieClip 760 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 762 { } movieClip 764 { } movieClip 766 { } movieClip 767 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 769 { } movieClip 771 { } movieClip 773 { } movieClip 774 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 776 { } movieClip 778 { } movieClip 780 { } movieClip 781 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 783 { } movieClip 785 { } movieClip 787 { } movieClip 788 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 790 { } movieClip 792 { } movieClip 794 { } movieClip 795 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 797 { } movieClip 799 { } movieClip 801 { } movieClip 802 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 804 { } movieClip 806 { } movieClip 807 { } movieClip 808 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 810 { } movieClip 812 { } movieClip 814 { } movieClip 815 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nHeadSet); } } movieClip 817 { } movieClip 818 { } movieClip 819 { frame 1 { stop(); } frame 10 { gotoAndStop('Idle'); } } movieClip 820 { frame 1 { var _sDataName = 'o' + substring(_name, 3, -1); gotoAndStop(CharacterData[_sDataName].sNation); } } button 823 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _global.P.oTransit.goTo('ChooseNation'); } } movieClip 825 { } button 826 { on (release, releaseOutside) { _global.Sfx.PlaySound('ImpactText', -1, 0); _global.P.oPopUp.setOpen('GameMode'); } } movieClip 831 { } movieClip 832 { frame 1 { gotoAndStop(CharacterData.oPlayer.sNation); } } movieClip 834 { } movieClip 837 { } button 838 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); CharacterData.oPlayer.nHeadSet = 2; _parent.mcPlayer.mcObj.gotoAndStop('ResetPieces'); nextFrame(); } } movieClip 840 { } button 841 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); CharacterData.oPlayer.nHeadSet = 3; _parent.mcPlayer.mcObj.gotoAndStop('ResetPieces'); nextFrame(); } } movieClip 843 { } button 844 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); CharacterData.oPlayer.nHeadSet = 1; _parent.mcPlayer.mcObj.gotoAndStop('ResetPieces'); gotoAndStop(1); } } movieClip 845 { } movieClip 847 { } button 848 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); CharacterData.oPlayer.nArmsSet = 2; _parent.mcPlayer.mcObj.gotoAndStop('ResetPieces'); nextFrame(); } } movieClip 850 { } button 851 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); CharacterData.oPlayer.nArmsSet = 3; _parent.mcPlayer.mcObj.gotoAndStop('ResetPieces'); nextFrame(); } } movieClip 853 { } button 854 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); CharacterData.oPlayer.nArmsSet = 1; _parent.mcPlayer.mcObj.gotoAndStop('ResetPieces'); gotoAndStop(1); } } movieClip 855 { } movieClip 857 { } button 858 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); CharacterData.oPlayer.nTorsoSet = 2; _parent.mcPlayer.mcObj.gotoAndStop('ResetPieces'); nextFrame(); } } movieClip 860 { } button 861 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); CharacterData.oPlayer.nTorsoSet = 3; _parent.mcPlayer.mcObj.gotoAndStop('ResetPieces'); nextFrame(); } } movieClip 863 { } button 864 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); CharacterData.oPlayer.nTorsoSet = 1; _parent.mcPlayer.mcObj.gotoAndStop('ResetPieces'); gotoAndStop(1); } } movieClip 865 { } movieClip 867 { } button 868 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); CharacterData.oPlayer.nLegsSet = 2; _parent.mcPlayer.mcObj.gotoAndStop('ResetPieces'); nextFrame(); } } movieClip 870 { } button 871 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); CharacterData.oPlayer.nLegsSet = 3; _parent.mcPlayer.mcObj.gotoAndStop('ResetPieces'); nextFrame(); } } movieClip 873 { } button 874 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); CharacterData.oPlayer.nLegsSet = 1; _parent.mcPlayer.mcObj.gotoAndStop('ResetPieces'); gotoAndStop(1); } } movieClip 875 { } movieClip 877 { } movieClip 879 { } movieClip 881 { } movieClip 882 { frame 2 { _global.Sfx.PlaySound('MomoAppear', -1, 0); } frame 152 { _global.Sfx.PlaySound('MomoDisappear', -1, 0); } frame 169 { _parent.gotoAndStop('NotThere'); } } movieClip 883 { instance of movieClip 121 { onClipEvent (enterFrame) { if (Key.isDown(77)) { _parent.gotoAndStop('Idle'); } } } } movieClip 884 { frame 1 { txtName = CharacterData.oPlayer.sName; } instance of movieClip 845 { onClipEvent (load) { this.gotoAndStop(CharacterData.oPlayer.nHeadSet); } } instance of movieClip 855 { onClipEvent (load) { this.gotoAndStop(CharacterData.oPlayer.nArmsSet); } } instance of movieClip 865 { onClipEvent (load) { this.gotoAndStop(CharacterData.oPlayer.nTorsoSet); } } instance of movieClip 875 { onClipEvent (load) { this.gotoAndStop(CharacterData.oPlayer.nLegsSet); } } instance of movieClip 883 { onClipEvent (load) { this.gotoAndStop('NotThere'); } } } button 888 { on (release, releaseOutside) { _global.P.nLevel = TxtLevel.text; if (_global.P.nLevel == 1) { _global.P.oTransit.goTo('Story'); } else { _global.P.oTransit.goTo('Progress'); } } } button 890 { on (release, releaseOutside) { _global.P.oTransit.goTo('ChooseMode'); } } movieClip 894 { } movieClip 897 { } movieClip 898 { frame 1 { stop(); } frame 19 { if (HighScores.oProxyObj != undefined) { stop(); var _aTop20; var _host = this; var _topCounter = 0; trace('X: requesting score'); HighScores.requestScores(); HighScores.onSuccess = function () { trace('X: request success'); _aTop20 = (HighScores.getHighScores()).slice(0, 19); PlayerData.onLoaded = function () { trace('X: counter ' + _topCounter); if (_topCounter < 20) { trace('X: loading new player data : ' + _aTop20[_topCounter].sName); PlayerData.loadData(_aTop20[_topCounter].sName, CharacterData['oEnemy' + (_topCounter + 1)]); ++_topCounter; } else { trace('X: moving forward'); _host._parent._parent.gotoAndStop('Progress'); } }; trace('X: triggering chain reaction'); PlayerData.onLoaded(); }; } else { _parent._parent.gotoAndStop('Progress'); } } } movieClip 900 { } movieClip 902 { } movieClip 904 { } movieClip 906 { } movieClip 907 { frame 1 { stop(); } frame 25 { stop(); } instance HighScore of movieClip 906 { onClipEvent (enterFrame) { if (Key.isDown(32)) { _parent._parent.gotoAndStop('StoryOut'); } } } } movieClip 909 { } movieClip 910 { frame 14 { stop(); } } movieClip 911 { frame 1 { stop(); } frame 10 { mcStoryBg.gotoAndPlay('StoryOut'); } } frame 80 { _global.Music.TabFade.push(['MusPack', 0, 'Out', 0.2]); } movieClip 914 { } movieClip 917 { } movieClip 920 { } movieClip 923 { } movieClip 926 { } movieClip 927 { frame 19 { gotoAndPlay(_global.P.aLvlArenas[_global.P.nLevel - 1] + 'In'); } frame 39 { stop(); } frame 89 { gotoAndPlay(_global.P.aLvlArenas[_global.P.nLevel - 1] + 'In'); } frame 99 { stop(); } frame 149 { gotoAndPlay(_global.P.aLvlArenas[_global.P.nLevel - 1] + 'In'); } frame 159 { stop(); } frame 209 { gotoAndPlay(_global.P.aLvlArenas[_global.P.nLevel - 1] + 'In'); } frame 219 { stop(); } frame 269 { gotoAndPlay(_global.P.aLvlArenas[_global.P.nLevel - 1] + 'In'); } frame 280 { stop(); } frame 329 { gotoAndPlay(_global.P.aLvlArenas[_global.P.nLevel - 1] + 'In'); } } movieClip 929 { } movieClip 932 { frame 1 { var _nEnemyLvl = 21; if (_global.P.nLevel == 1) { switch (_parent._nIdent) { case 2: txtName = CharacterData['oEnemy' + int(_global.P.nLevel)].sName; _nEnemyLvl -= int(_global.P.nLevel); break; case 3: txtName = CharacterData['oEnemy' + (int(_global.P.nLevel) + 1)].sName; _nEnemyLvl -= int(_global.P.nLevel) + 1; break; case 4: txtName = CharacterData['oEnemy' + (int(_global.P.nLevel) + 2)].sName; _nEnemyLvl -= int(_global.P.nLevel) + 2; break; default: } } else { switch (_parent._nIdent) { case 1: txtName = CharacterData['oEnemy' + (int(_global.P.nLevel) - 2)].sName; _nEnemyLvl -= int(_global.P.nLevel) - 2; break; case 2: txtName = CharacterData['oEnemy' + (int(_global.P.nLevel) - 1)].sName; _nEnemyLvl -= int(_global.P.nLevel) - 1; break; case 3: txtName = CharacterData['oEnemy' + int(_global.P.nLevel)].sName; _nEnemyLvl -= int(_global.P.nLevel); break; case 4: txtName = CharacterData['oEnemy' + (int(_global.P.nLevel) + 1)].sName; _nEnemyLvl -= int(_global.P.nLevel) + 1; break; case 5: txtName = CharacterData['oEnemy' + (int(_global.P.nLevel) + 2)].sName; _nEnemyLvl -= int(_global.P.nLevel) + 2; break; default: } } if (_nEnemyLvl < 10) { txtLevel = '0' + _nEnemyLvl; } else { txtLevel = _nEnemyLvl; } } } movieClip 934 { } movieClip 937 { frame 1 { var _nEnemyLvl = 21; if (_global.P.nLevel == 1) { switch (_parent._nIdent) { case 2: txtName = CharacterData['oEnemy' + int(_global.P.nLevel)].sName; _nEnemyLvl -= int(_global.P.nLevel); break; case 3: txtName = CharacterData['oEnemy' + (int(_global.P.nLevel) + 1)].sName; _nEnemyLvl -= int(_global.P.nLevel) + 1; break; case 4: txtName = CharacterData['oEnemy' + (int(_global.P.nLevel) + 2)].sName; _nEnemyLvl -= int(_global.P.nLevel) + 2; break; default: } } else { switch (_parent._nIdent) { case 1: txtName = CharacterData['oEnemy' + (int(_global.P.nLevel) - 2)].sName; _nEnemyLvl -= int(_global.P.nLevel) - 2; break; case 2: txtName = CharacterData['oEnemy' + (int(_global.P.nLevel) - 1)].sName; _nEnemyLvl -= int(_global.P.nLevel) - 1; break; case 3: txtName = CharacterData['oEnemy' + int(_global.P.nLevel)].sName; _nEnemyLvl -= int(_global.P.nLevel); break; case 4: txtName = CharacterData['oEnemy' + (int(_global.P.nLevel) + 1)].sName; _nEnemyLvl -= int(_global.P.nLevel) + 1; break; case 5: txtName = CharacterData['oEnemy' + (int(_global.P.nLevel) + 2)].sName; _nEnemyLvl -= int(_global.P.nLevel) + 2; break; default: } } if (_nEnemyLvl < 10) { txtLevel = '0' + _nEnemyLvl; } else { txtLevel = _nEnemyLvl; } } } movieClip 939 { } movieClip 942 { frame 1 { var _nEnemyLvl = 21; if (_global.P.nLevel == 1) { switch (_parent._nIdent) { case 2: txtName = CharacterData['oEnemy' + int(_global.P.nLevel)].sName; _nEnemyLvl -= int(_global.P.nLevel); break; case 3: txtName = CharacterData['oEnemy' + (int(_global.P.nLevel) + 1)].sName; _nEnemyLvl -= int(_global.P.nLevel) + 1; break; case 4: txtName = CharacterData['oEnemy' + (int(_global.P.nLevel) + 2)].sName; _nEnemyLvl -= int(_global.P.nLevel) + 2; break; default: } } else { switch (_parent._nIdent) { case 1: txtName = CharacterData['oEnemy' + (int(_global.P.nLevel) - 2)].sName; _nEnemyLvl -= int(_global.P.nLevel) - 2; break; case 2: txtName = CharacterData['oEnemy' + (int(_global.P.nLevel) - 1)].sName; _nEnemyLvl -= int(_global.P.nLevel) - 1; break; case 3: txtName = CharacterData['oEnemy' + int(_global.P.nLevel)].sName; _nEnemyLvl -= int(_global.P.nLevel); break; case 4: txtName = CharacterData['oEnemy' + (int(_global.P.nLevel) + 1)].sName; _nEnemyLvl -= int(_global.P.nLevel) + 1; break; case 5: txtName = CharacterData['oEnemy' + (int(_global.P.nLevel) + 2)].sName; _nEnemyLvl -= int(_global.P.nLevel) + 2; break; default: } } if (_nEnemyLvl < 10) { txtLevel = '0' + _nEnemyLvl; } else { txtLevel = _nEnemyLvl; } } } movieClip 944 { } movieClip 947 { frame 1 { var _nEnemyLvl = 21; if (_global.P.nLevel == 1) { switch (_parent._nIdent) { case 2: txtName = CharacterData['oEnemy' + int(_global.P.nLevel)].sName; _nEnemyLvl -= int(_global.P.nLevel); break; case 3: txtName = CharacterData['oEnemy' + (int(_global.P.nLevel) + 1)].sName; _nEnemyLvl -= int(_global.P.nLevel) + 1; break; case 4: txtName = CharacterData['oEnemy' + (int(_global.P.nLevel) + 2)].sName; _nEnemyLvl -= int(_global.P.nLevel) + 2; break; default: } } else { switch (_parent._nIdent) { case 1: txtName = CharacterData['oEnemy' + (int(_global.P.nLevel) - 2)].sName; _nEnemyLvl -= int(_global.P.nLevel) - 2; break; case 2: txtName = CharacterData['oEnemy' + (int(_global.P.nLevel) - 1)].sName; _nEnemyLvl -= int(_global.P.nLevel) - 1; break; case 3: txtName = CharacterData['oEnemy' + int(_global.P.nLevel)].sName; _nEnemyLvl -= int(_global.P.nLevel); break; case 4: txtName = CharacterData['oEnemy' + (int(_global.P.nLevel) + 1)].sName; _nEnemyLvl -= int(_global.P.nLevel) + 1; break; case 5: txtName = CharacterData['oEnemy' + (int(_global.P.nLevel) + 2)].sName; _nEnemyLvl -= int(_global.P.nLevel) + 2; break; default: } } if (_nEnemyLvl < 10) { txtLevel = '0' + _nEnemyLvl; } else { txtLevel = _nEnemyLvl; } } } movieClip 948 { frame 1 { var _nIdent = int(substring(this._name, 7, -1)); if (_global.P.nLevel == 1) { switch (_nIdent) { case 2: gotoAndStop(CharacterData['oEnemy' + _global.P.nLevel].sNation); break; case 3: gotoAndStop(CharacterData['oEnemy' + (int(_global.P.nLevel) + 1)].sNation); break; case 4: gotoAndStop(CharacterData['oEnemy' + (int(_global.P.nLevel) + 2)].sNation); break; default: } } else { switch (_nIdent) { case 1: if (_global.P.nLevel <= 2) { gotoAndStop('Empty'); } else { gotoAndStop(CharacterData['oEnemy' + (int(_global.P.nLevel) - 2)].sNation); } break; case 2: gotoAndStop(CharacterData['oEnemy' + (int(_global.P.nLevel) - 1)].sNation); break; case 3: gotoAndStop(CharacterData['oEnemy' + _global.P.nLevel].sNation); break; case 4: if (_global.P.nLevel == 20) { gotoAndStop('Empty'); } else { gotoAndStop(CharacterData['oEnemy' + (int(_global.P.nLevel) + 1)].sNation); } break; case 5: if (_global.P.nLevel >= 19) { gotoAndStop('Empty'); } else { gotoAndStop(CharacterData['oEnemy' + (int(_global.P.nLevel) + 2)].sNation); } break; default: } } } } movieClip 949 { frame 5 { var _sNation = CharacterData['oEnemy' + _global.P.nLevel].sNation; _global.Sfx.PlaySound(['Fighter' + _sNation], -1, 0); } frame 19 { _global.Sfx.PlaySound('BoxMove', -1, 0); } frame 91 { _global.P.oDuelTransit.goTo('Game'); stop(); } } movieClip 950 { frame 41 { var _sNation = CharacterData['oEnemy' + _global.P.nLevel].sNation; _global.Sfx.PlaySound(['Fighter' + _sNation], -1, 0); } frame 50 { _global.Sfx.PlaySound('BoxMove', -1, 0); } frame 114 { _global.P.oDuelTransit.goTo('Game'); stop(); } } movieClip 951 { frame 1 { if (_global.P.nLevel == 1) { mcProgressBg.gotoAndStop('EndStoryOut'); stop(); } else { gotoAndStop('NamesSwitch'); } } frame 11 { if (_global.P.aLvlArenas[_global.P.nLevel - 1] == _global.P.aLvlArenas[_global.P.nLevel - 2]) { mcProgressBg.gotoAndStop(_global.P.aLvlArenas[_global.P.nLevel - 2] + 'Out'); } else { mcProgressBg.gotoAndPlay(_global.P.aLvlArenas[_global.P.nLevel - 2] + 'Out'); } } } movieClip 957 { } movieClip 959 { } movieClip 963 { } movieClip 964 { } movieClip 966 { } movieClip 968 { } movieClip 969 { } movieClip 970 { } movieClip 971 { } movieClip 972 { } movieClip 974 { } movieClip 975 { } movieClip 976 { } movieClip 977 { } movieClip 978 { } movieClip 982 { } movieClip 983 { } movieClip 984 { } movieClip 985 { } movieClip 986 mcAttack1Bullet { } movieClip 991 { } movieClip 992 { } movieClip 995 { } movieClip 996 { } movieClip 997 { } movieClip 998 { } movieClip 999 { } movieClip 1000 { } movieClip 1002 { } movieClip 1003 { } movieClip 1004 { } movieClip 1005 { } movieClip 1006 { } movieClip 1010 { } movieClip 1013 { } movieClip 1014 { } movieClip 1015 { } movieClip 1016 mcAttack2Bullet { } movieClip 1018 { } movieClip 1021 { } movieClip 1022 { } movieClip 1023 { } movieClip 1024 { } movieClip 1025 { } movieClip 1026 { } movieClip 1027 { } movieClip 1028 { } movieClip 1029 { } movieClip 1031 { } movieClip 1033 { } movieClip 1035 { } movieClip 1036 { } movieClip 1037 { } movieClip 1038 { } movieClip 1039 { } movieClip 1040 { } movieClip 1044 { } movieClip 1045 { } movieClip 1046 { } movieClip 1047 { } movieClip 1048 mcAttack3Bullet { } frame 100 { stop(); } movieClip 1051 { } movieClip 1053 { } movieClip 1055 { } movieClip 1058 { } movieClip 1060 { } movieClip 1061 { frame 1 { if (_global.P.sGameMode == 'Tournament') { gotoAndStop(_global.P.aLvlArenas[_global.P.nLevel - 1]); } else { gotoAndStop(CharacterData.oPlayer.sNation); } } } movieClip 1064 { } movieClip 1067 { } movieClip 1070 { } movieClip 1073 { } movieClip 1076 { } movieClip 1077 { frame 1 { if (_global.P.sGameMode == 'Tournament') { gotoAndStop(_global.P.aLvlArenas[_global.P.nLevel - 1]); } else { gotoAndStop(CharacterData.oPlayer.sNation); } } } movieClip 1078 { } movieClip 1079 { } movieClip 1080 { } movieClip 1082 { } movieClip 1085 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 1087 { } movieClip 1089 { } movieClip 1093 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 1095 { } movieClip 1097 { } movieClip 1099 { } movieClip 1101 { } movieClip 1102 { } movieClip 1106 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 1113 { } movieClip 1117 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 1118 { } movieClip 1119 { } movieClip 1120 { } movieClip 1121 { } movieClip 1126 { } movieClip 1129 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 1133 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 1136 { } movieClip 1138 { } movieClip 1139 { } movieClip 1150 { } movieClip 1151 { } movieClip 1155 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 1159 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 1163 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 1164 { } movieClip 1168 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 1169 { } movieClip 1170 { } movieClip 1171 { } movieClip 1172 { } movieClip 1173 { } movieClip 1174 { } movieClip 1176 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 1181 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 1188 { } movieClip 1203 { } movieClip 1214 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 1219 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 1224 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nHeadSet); } } movieClip 1240 { } movieClip 1241 { } movieClip 1242 { } movieClip 1243 { } movieClip 1245 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 1259 { } movieClip 1265 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 1270 { } movieClip 1279 { } movieClip 1281 { } movieClip 1283 { } movieClip 1284 { } movieClip 1285 { } movieClip 1289 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 1291 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 1293 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 1294 { } movieClip 1298 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 1299 { } movieClip 1300 { } movieClip 1301 { } movieClip 1302 { } movieClip 1303 { } movieClip 1304 { } movieClip 1306 { } movieClip 1308 { } movieClip 1309 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 1311 { } movieClip 1313 { } movieClip 1315 { } movieClip 1316 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 1318 { } movieClip 1320 { } movieClip 1321 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 1323 { } movieClip 1325 { } movieClip 1327 { } movieClip 1329 { } movieClip 1331 { } movieClip 1333 { } movieClip 1335 { } movieClip 1337 { } movieClip 1338 { } movieClip 1340 { } movieClip 1341 { } movieClip 1343 { } movieClip 1345 { } movieClip 1347 { } movieClip 1348 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nHeadSet); } } movieClip 1350 { } movieClip 1352 { } movieClip 1354 { } movieClip 1355 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 1357 { } movieClip 1359 { } movieClip 1360 { } movieClip 1361 { } movieClip 1362 { } movieClip 1363 { } movieClip 1364 { } movieClip 1365 { } movieClip 1367 { } movieClip 1369 { } movieClip 1371 { } movieClip 1373 { } movieClip 1375 { } movieClip 1377 { } movieClip 1379 { } movieClip 1381 { } movieClip 1383 { } movieClip 1384 { } movieClip 1386 { } movieClip 1388 { } movieClip 1390 { } movieClip 1392 { } movieClip 1394 { } movieClip 1395 { } movieClip 1399 { } movieClip 1401 { } movieClip 1404 { } movieClip 1406 { } movieClip 1408 { } movieClip 1410 { } movieClip 1412 { } movieClip 1414 { } movieClip 1416 { } movieClip 1418 { } movieClip 1421 { } movieClip 1422 { } movieClip 1424 { } movieClip 1425 { } movieClip 1427 { } movieClip 1437 { } movieClip 1438 { } movieClip 1440 { } movieClip 1442 { } movieClip 1444 { } movieClip 1446 { } movieClip 1447 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 1449 { } movieClip 1451 { } movieClip 1453 { } movieClip 1454 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 1456 { } movieClip 1457 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nLegsSet); } } movieClip 1459 { } movieClip 1461 { } movieClip 1463 { } movieClip 1464 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 1466 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nArmsSet); } } movieClip 1467 { instance mcRock of movieClip 1440 { onClipEvent (load) { this._x = _global.C.oPlayer.nPosX - _global.C.oEnemy.nPosX; } } } movieClip 1468 { } movieClip 1469 { } movieClip 1470 { } movieClip 1471 { } movieClip 1472 { } movieClip 1473 { } movieClip 1474 { } movieClip 1475 { } movieClip 1477 { } movieClip 1478 { } movieClip 1480 { } movieClip 1482 { } movieClip 1484 { } movieClip 1486 { } movieClip 1487 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nHeadSet); } } movieClip 1489 { } movieClip 1491 { } movieClip 1493 { } movieClip 1494 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 1496 { } movieClip 1500 { } movieClip 1507 { } movieClip 1509 { } movieClip 1511 { } movieClip 1512 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 1514 { } movieClip 1516 { } movieClip 1518 { } movieClip 1519 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nHeadSet); } } movieClip 1530 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 1544 { } movieClip 1545 { } movieClip 1546 { } movieClip 1547 { } movieClip 1555 { } movieClip 1570 { } movieClip 1579 { } movieClip 1581 { } movieClip 1582 { } movieClip 1584 { } movieClip 1585 { } movieClip 1586 { } movieClip 1587 { } movieClip 1588 { } movieClip 1589 { } movieClip 1590 { } movieClip 1591 { } movieClip 1595 { } movieClip 1597 { } movieClip 1602 { } movieClip 1604 { } movieClip 1606 { } movieClip 1608 { } movieClip 1610 { } movieClip 1612 { } movieClip 1614 { } movieClip 1616 { } movieClip 1618 { } movieClip 1620 { } movieClip 1622 { } movieClip 1624 { } movieClip 1625 { } movieClip 1627 { } movieClip 1633 { frame 1 { var _sNameData = 'o' + substring(_parent._parent._parent._name, 3, -1); _global.C[_sNameData].mcRefBody = this; gotoAndStop(CharacterData[_sNameData].nTorsoSet); } } movieClip 1634 { } movieClip 1636 { } movieClip 1638 { } movieClip 1640 { } movieClip 1641 { } movieClip 1642 { } movieClip 1643 { } movieClip 1644 { } movieClip 1645 { } movieClip 1646 { } movieClip 1647 { } movieClip 1648 { } movieClip 1649 { } movieClip 1650 { } movieClip 1651 { } movieClip 1652 { } movieClip 1653 { } movieClip 1654 { } movieClip 1656 { } movieClip 1657 { } movieClip 1658 { frame 1 { var _sDataName = 'o' + substring(_name, 3, -1); gotoAndStop(CharacterBodyData[_sDataName].sNation); } } movieClip 1659 { } movieClip 1660 { } movieClip 1661 { } movieClip 1662 { } movieClip 1663 { } movieClip 1665 { } movieClip 1666 { instance of movieClip 1665 { onClipEvent (load) { this.swapDepths(10); this.removeMovieClip(); } } } movieClip 1667 { } movieClip 1669 { } movieClip 1671 { } movieClip 1672 { } movieClip 1675 { } movieClip 1676 { frame 1 { stop(); } } movieClip 1677 { } movieClip 1679 { } movieClip 1680 { frame 1 { stop(); } } movieClip 1681 { } movieClip 1682 { } movieClip 1683 { } movieClip 1685 { } movieClip 1690 { } movieClip 1692 { } button 1693 { on (release) { _global.Sfx.PlaySound('Button1', -1, 0); _global.Music.TabFade.push(['MusGame', 0, 'Out', 2]); _global.Music.PlaySound('MusPack', 0, 1000000); _global.Music.TabFade.push(['MusPack', -1, 'In', 2]); _global.P.oPopUp.setOpen('Menu', true); } } movieClip 1694 { frame 1 { txtPlayerName = CharacterData.oPlayer.sName; txtEnemyName = CharacterData['oEnemy' + _global.P.nLevel].sName; if (_global.P.sGameMode == 'Training') { mcTxtScore._visible = false; mcPlayerRound._visible = false; mcEnemyRound._visible = false; } else { mcTxtScore.txtScore = _global.P.oScoreSystem.formatNumber(_global.P.oScoreSystem.nScore); } } instance mcEnemyRound of movieClip 1672 { onClipEvent (load) { this.gotoAndStop(_global.C.oEnemy.nRoundWin + 1); } } instance mcPlayerRound of movieClip 1672 { onClipEvent (load) { this.gotoAndStop(_global.C.oPlayer.nRoundWin + 1); } } } movieClip 1695 { instance Controller of movieClip 121 { onClipEvent (load) { _global.C = new GameController(this); _global.C.initController(); } } } frame 110 { gotoAndStop('Game'); } frame 120 { gotoAndStop('Game'); } frame 130 { gotoAndStop('Game'); } frame 140 { mcMain.txtName = CharacterData.oPlayer.sName; mcMain.txtScore = _global.P.oScoreSystem.formatNumber(_global.P.oScoreSystem.nScore); if (gProxyObj.getIsLoggedIn()) { mcMain.btn_submit_score._visible = true; } else { mcMain.btn_submit_score._visible = false; } if (HighScores.bDisplay == false) { mcMain.btn_submit_score._visible = false; mcMain.btn_view_score._visible = false; } } movieClip 1698 { } movieClip 1700 { } button 1701 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _global.P.sSubmitFrom = 'Win'; _global.P.bSubmitScore = true; _global.P.oTransit.goTo('HighScore'); } } button 1702 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _global.P.resetForPlayAgain(); _global.P.oTransit.goTo('Progress'); } } movieClip 1704 { } movieClip 1706 { } button 1707 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _global.P.sSubmitFrom = 'Win'; _global.P.bSubmitScore = false; _global.P.oTransit.goTo('HighScore'); } } movieClip 1709 { } movieClip 1715 { } frame 150 { mcMain.txtName = CharacterData.oPlayer.sName; mcMain.txtScore = _global.P.oScoreSystem.formatNumber(_global.P.oScoreSystem.nScore); if (gProxyObj.getIsLoggedIn()) { mcMain.btn_submit_score._visible = true; } else { mcMain.btn_submit_score._visible = false; } if (_global.HS.G_ShowHighScore == false) { mcMain.btn_submit_score._visible = false; mcMain.btn_view_score._visible = false; } } movieClip 1718 { } movieClip 1721 { } movieClip 1724 { } button 1725 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _global.P.sSubmitFrom = 'Loose'; _global.P.bSubmitScore = true; _global.P.oTransit.goTo('HighScore'); } } movieClip 1727 { } button 1728 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _global.P.resetForPlayAgain(); _global.P.oTransit.goTo('Progress'); } } button 1729 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _global.P.sSubmitFrom = 'Loose'; _global.P.bSubmitScore = false; _global.P.oTransit.goTo('HighScore'); } } movieClip 1733 { } frame 160 { mcMain.mcScore.txtScore = _global.P.oScoreSystem.formatNumber(_global.P.oScoreSystem.nScore); if (_global.P.sSubmitFrom == 'Title') { mcMain.btn_submit_score._visible = false; mcMain.mcBtnPlayTry._visible = false; mcMain.mcScore._visible = false; mcMain.mcBtnQuitBack.gotoAndStop('Back'); HighScores.requestScores(); HighScores.onSuccess = function () { HighScores.populateFields(mcMain.txt_highScoreNumber, mcMain.txt_highScoreName, mcMain.txt_highScoreScore); }; } else { mcMain.mcBtnQuitBack.gotoAndStop('Quit'); if (_global.P.sSubmitFrom == 'Win') { mcMain.mcBtnPlayTry.gotoAndStop('PlayAgain'); } else { mcMain.mcBtnPlayTry.gotoAndStop('TryAgain'); } if (gProxyObj.getIsLoggedIn()) { mcMain.btn_submit_score._visible = true; } else { mcMain.btn_submit_score._visible = false; } if (_global.P.bSubmitScore == true) { HighScores.submitScore(_global.P.oScoreSystem.nScore); HighScores.onSuccess = function () { HighScores.requestScores(); HighScores.onSuccess = function () { HighScores.populateFields(mcMain.txt_highScoreNumber, mcMain.txt_highScoreName, mcMain.txt_highScoreScore); var v2 = HighScores.getHighScores(); if (v2.length < 20 || _global.P.oScoreSystem.nScore > v2[19]) { PlayerData.saveData(CharacterData.oPlayer); } }; }; mcMain.btn_submit_score._visible = false; } else { HighScores.requestScores(); HighScores.onSuccess = function () { HighScores.populateFields(); }; } } } movieClip 1735 { } movieClip 1737 { } button 1738 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); HighScores.submitScore(_global.P.oScoreSystem.nScore); HighScores.onSuccess = function () { HighScores.requestScores(); HighScores.onSuccess = function () { HighScores.populateFields(txt_highScoreNumber, txt_highScoreName, txt_highScoreScore); var v2 = HighScores.getHighScores(); if (v2.length < 20 || _global.P.oScoreSystem.nScore > v2[19]) { PlayerData.saveData(CharacterData.oPlayer); } }; }; btn_submit_score._visible = false; } } movieClip 1739 { } button 1740 { on (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _global.P.resetForPlayAgain(); _global.P.oTransit.goTo('Progress'); } } movieClip 1741 { } button 1742 { on (release, releaseOutside) { _global.P.oTransit.goTo('Title'); } } button 1743 { on (release, releaseOutside) { _global.P.oTransit.goTo('Title'); } } movieClip 1744 { } movieClip 1753 { } movieClip 1755 { } button 1756 { on (press) { ControlScroll.scrollDown = true; } on (release, releaseOutside) { ControlScroll.scrollDown = false; } } button 1757 { on (press) { ControlScroll.scrollUp = true; } on (release, releaseOutside) { ControlScroll.scrollUp = false; } } movieClip 1760 { } movieClip 1761 { instance mcBtnQuitBack of movieClip 1744 { onClipEvent (release, releaseOutside) { _global.Sfx.PlaySound('Button1', -1, 0); _global.P.oTransit.goTo('Title'); } } instance ControlScroll of movieClip 1753 { onClipEvent (load) { scrollUp = false; scrollDown = false; } onClipEvent (enterFrame) { if (scrollUp == true) { --_parent.txt_highScoreName.scroll; --_parent.txt_highScoreScore.scroll; --_parent.txt_highScoreNumber.scroll; } else { if (scrollDown == true) { ++_parent.txt_highScoreName.scroll; ++_parent.txt_highScoreScore.scroll; ++_parent.txt_highScoreNumber.scroll; } } } } }




http://swfchan.com/3/10411/info.shtml
Created: 21/4 -2019 03:14:40 Last modified: 21/4 -2019 03:14:40 Server time: 06/05 -2024 01:13:16