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

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

Weird Fighters.swf

This is the info page for
Flash #10934

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


ActionScript [AS1/AS2]
Combined Code
movieClip 8 Defaults { #initclip Object.registerClass('Defaults', mx.skins.halo.Defaults); #endinitclip } movieClip 9 UIObjectExtensions { #initclip Object.registerClass('UIObjectExtensions', mx.core.ext.UIObjectExtensions); #endinitclip } movieClip 10 UIObject { #initclip Object.registerClass('UIObject', mx.core.UIObject); #endinitclip frame 1 { stop(); } } movieClip 11 Border { #initclip Object.registerClass('Border', mx.skins.Border); #endinitclip frame 1 { stop(); } } movieClip 12 RectBorder { #initclip mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder)); Object.registerClass('RectBorder', mx.skins.halo.RectBorder); #endinitclip frame 1 { stop(); } } button 15 { on (keyPress '<Tab>') { this.tabHandler(); } } movieClip 16 { #initclip Object.registerClass('FocusManager', mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, 'focusManager', mx.managers.DepthManager.highestDepth--); } #endinitclip frame 1 { } } movieClip 18 BoundingBox { } movieClip 19 FocusRect { #initclip Object.registerClass('FocusRect', mx.skins.halo.FocusRect); #endinitclip } movieClip 20 FocusManager { #initclip Object.registerClass('FocusManager', mx.managers.FocusManager); #endinitclip frame 1 { stop(); } } movieClip 21 UIComponentExtensions { #initclip Object.registerClass('UIComponentExtensions', mx.core.ext.UIComponentExtensions); #endinitclip } movieClip 22 UIComponent { #initclip Object.registerClass('UIComponent', mx.core.UIComponent); #endinitclip frame 1 { stop(); } } movieClip 23 TextInput { #initclip Object.registerClass('TextInput', mx.controls.TextInput); #endinitclip frame 1 { stop(); } } movieClip 46 View { #initclip Object.registerClass('View', mx.core.View); #endinitclip frame 1 { stop(); } } movieClip 47 Loader { #initclip Object.registerClass('Loader', mx.controls.Loader); #endinitclip frame 1 { stop(); } } movieClip 52 BrdrShdw { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'shadowColor'); } } movieClip 54 BrdrFace { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'buttonColor'); } } movieClip 55 SimpleButtonDown { } movieClip 57 BrdrBlk { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'borderColor'); } } movieClip 59 BrdrHilght { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'highlightColor'); } } movieClip 60 SimpleButtonIn { } movieClip 61 SimpleButtonUp { } movieClip 62 SimpleButton { #initclip Object.registerClass('SimpleButton', mx.controls.SimpleButton); #endinitclip frame 1 { stop(); } } movieClip 63 ButtonSkin { #initclip Object.registerClass('ButtonSkin', mx.skins.halo.ButtonSkin); #endinitclip } movieClip 64 Button { #initclip Object.registerClass('Button', mx.controls.Button); #endinitclip frame 1 { stop(); } instance of movieClip 62 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 67 RadioFalseDisabled { } movieClip 69 RadioThemeColor1 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 72 { } movieClip 73 RadioThemeColor2 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 74 RadioFalseDown { } movieClip 75 RadioFalseOver { } movieClip 76 RadioFalseUp { } movieClip 77 RadioTrueDisabled { } movieClip 78 RadioTrueUp { } movieClip 79 RadioButtonAssets { #initclip mx.controls.RadioButton.prototype.adjustFocusRect = function () { var v4 = this._parent.focus_mc; var v2 = this.iconName; var v3 = this.getStyle('themeColor'); if (v3 == undefined) { v3 = 8453965; } var v5 = v2._width + 4; var v6 = v2._height + 4; v4.setSize(v5, v6, 8, 100, v3); var v8 = v2._x; var v7 = v2._y; v4.move(this.x - 2 + v8, this.y + v7 - 2); }; #endinitclip frame 1 { } } movieClip 80 RadioButton { #initclip Object.registerClass('RadioButton', mx.controls.RadioButton); #endinitclip frame 1 { stop(); } instance foo of movieClip 64 Button { onClipEvent (initialize) { icon = ''; label = 'Button'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } frame 1 { _global.FLASHSERVE1 = 'www.qigames.com/services/flashserve'; _global.GAMEID = 'weirdfighters'; _global.GAME_ID = 'weirdfighters'; _global.LC = new LocalConnection(); _global.BLOODOFF = true; if (_global.GAME_AUTH == undefined) { _global.GAME_AUTH = false; } _global.LOADSOUND = new Sound(); _global.LOADSOUND.setVolume(0); FORMAT01 = new TextFormat(); FORMAT01.bold = true; FORMAT01.font = 'witless'; _global.FORMAT01 = FORMAT01; FORMAT02 = new TextFormat(); FORMAT02.bold = true; FORMAT02.font = 'witless'; _global.FORMAT02 = FORMAT02; FORMAT03 = new TextFormat(); FORMAT03.bold = true; FORMAT03.font = 'witless'; _global.FORMAT03 = FORMAT03; if (ref == undefined) { _global.PUBLISHER_REF = ''; } else { _global.PUBLISHER_REF = ref; } LOADERCOUNTERTOTAL = 24; LOADERCOUNTER = 0; if (_global.GAME_AUTH) { LOADERCOUNTER = LOADERCOUNTERTOTAL - 1; } gotoAndPlay('loader'); } movieClip 84 { } movieClip 2334 __Packages.aiPlayer { #initclip if (!_global.aiPlayer) { var v1 = function () { super(); this.ME = this; this.TYPE = 'USER'; this.EVTMANAGER = _global.EVTMANAGER; this.CONTROLS = _global.CONTROLS; this.ALIVE = true; this.FINISHHIM = false; this.PREFATALITY = false; this.ISBLOCKHIGH = false; this.RELEASEBLOCK = false; this.FLYINGBAT = false; this.ACIDBALLFLYING = false; var v4 = 1; this.STANDING = v4++; this.STARTWALK = v4++; this.WALK = v4++; this.ATTACK = v4++; this.BLOCK = v4++; this.HITTED = v4++; this.DEAD = v4++; this.VICTORY = v4++; this.CHANGEZONE = v4++; this.STARTING = v4++; this.WALKIN = v4++; this.WALKOUT = v4++; this.WAITTAG = v4++; this.WAITING = v4++; this.CSTATE = this.STARTING; this.ATTACKA1 = 1; this.ATTACKA2 = 2; this.ATTACKA3 = 3; this.ATTACKB1 = 4; this.ATTACKB2 = 5; this.ATTACKB3 = 6; this.ATTACKC1 = 7; this.ATTACKC2 = 8; this.ATTACKC3 = 9; this.FATALITY = 10; this.FRAMECOUNT = 0; this.LASTKEYTIME = -1000; this.LASTKEYTIME2 = -1000; this.LASTKEY = -1; this.COMMANDS = []; this.COMBOKEY = -1; this.IDLE = v4++; this.FALLCHANGESCENE = v4++; this.MSTATE = this.IDLE; this.OUTSCENEHEIGHT = 300; this.DONEFATALITY = false; Key.addListener(this); }; _global.aiPlayer = v1; _global.aiPlayer extends MovieClip; var v2 = v1.prototype; v2.nextState = function () { ++this.FRAMECOUNT; if (this.FLYINGBAT) { this.moveBat(); } if (this.ACIDBALLFLYING) { this.moveAcidBall(); } if (!Key.isDown(this.CONTROLS.KEYHBLOCK) && !Key.isDown(this.CONTROLS.KEYLBLOCK) && !this.RELEASEBLOCK) { this.RELEASEBLOCK = true; this.releaseBlock(); } switch (this.CSTATE) { case this.STANDING: this.stateStanding(); break; case this.STARTWALK: this.stateStartWalk(); break; case this.WALK: this.stateWalk(); break; case this.WALKIN: this.stateWalkIn(); break; case this.WALKOUT: this.stateWalkOut(); } }; v2.onKeyDown = function () { if (_global.INTERFACE.GAMEPAUSED) { return undefined; } if (this.CSTATE == this.HITTED) { return undefined; } if (this.CSTATE == this.BLOCK) { return undefined; } if (this.CSTATE == this.DEAD) { return undefined; } if (this.CSTATE == this.VICTORY) { return undefined; } if (this.CSTATE == this.CHANGEZONE) { return undefined; } if (this.CSTATE == this.STARTING) { return undefined; } if (this.CSTATE == this.WALKIN) { return undefined; } if (this.CSTATE == this.WALKOUT) { return undefined; } if (this.CSTATE == this.WAITTAG) { return undefined; } if (this.CSTATE == this.ATTACK) { return undefined; } if (this.CSTATE == this.WAITING) { return undefined; } if (this.ISOUT) { return undefined; } var v3 = Key.getCode(); if (v3 == this.CONTROLS.KEYHBLOCK) { this.RELEASEBLOCK = false; this.blockHigh(); return undefined; } if (v3 == this.CONTROLS.KEYLBLOCK) { this.RELEASEBLOCK = false; this.blockLow(); return undefined; } }; v2.onKeyUp = function () { if (_global.INTERFACE.GAMEPAUSED) { return undefined; } if (this.CSTATE == this.HITTED) { this.COMMANDS = []; return undefined; } if (this.CSTATE == this.DEAD) { this.COMMANDS = []; return undefined; } if (this.CSTATE == this.VICTORY) { this.COMMANDS = []; return undefined; } if (this.CSTATE == this.CHANGEZONE) { this.COMMANDS = []; return undefined; } if (this.CSTATE == this.STARTING) { this.COMMANDS = []; return undefined; } if (this.CSTATE == this.WALKIN) { this.COMMANDS = []; return undefined; } if (this.CSTATE == this.WALKOUT) { this.COMMANDS = []; return undefined; } if (this.CSTATE == this.WAITTAG) { this.COMMANDS = []; return undefined; } if (this.CSTATE == this.WAITING) { this.COMMANDS = []; return undefined; } if (this.ISOUT) { this.COMMANDS = []; return undefined; } var v3 = Key.getCode(); if (v3 == 87) { this.walkOut(); } if (v3 == this.CONTROLS.KEYHBLOCK) { this.RELEASEBLOCK = true; this.releaseBlock(); return undefined; } if (v3 == this.CONTROLS.KEYLBLOCK) { this.RELEASEBLOCK = true; this.releaseBlock(); return undefined; } if (this.FRAMECOUNT - this.LASTKEYTIME < 12 && v3 == this.COMBOKEY) { if (this.COMBOMOVE > 0) { this.COMMANDS.push(this.COMBOMOVE); } switch (this.COMBOMOVE) { case this.ATTACKA2: this.COMBOMOVE = this.ATTACKA3; this.COMBOKEY = this.CONTROLS.KEYB; break; case this.ATTACKA3: this.COMBOKEY = -1; break; case this.ATTACKB2: this.COMBOMOVE = this.ATTACKB3; this.COMBOKEY = this.CONTROLS.KEYC; break; case this.ATTACKB3: this.COMBOKEY = -1; break; case this.ATTACKC2: this.COMBOMOVE = this.ATTACKC3; this.COMBOKEY = this.CONTROLS.KEYB; break; case this.ATTACKC3: this.COMBOKEY = -1; break; case -1: this.COMBOMOVE = -2; this.COMBOKEY = this.FATALITY_K2; break; case -2: this.COMBOMOVE = -3; this.COMBOKEY = this.FATALITY_K3; break; case -3: this.COMBOMOVE = -4; this.COMBOKEY = this.FATALITY_K4; break; case -4: this.COMBOMOVE = -5; this.COMBOKEY = this.FATALITY_K5; break; case -5: this.COMBOMOVE = this.FATALITY; this.COMBOKEY = this.FATALITY_K6; break; case this.FATALITY: this.COMBOMOVE = 0; this.COMBOKEY = -1; } } else { if (this.FINISHHIM && v3 == 32) { this.COMBOMOVE = -1; this.COMBOKEY = this.FATALITY_K1; } if (this.COMMANDS.length == 0) { if (!(this.LASTKEY == v3 && this.FRAMECOUNT - this.LASTKEYTIME2 < 12)) { this.LASTKEYTIME2 = this.FRAMECOUNT; switch (v3) { case this.CONTROLS.KEYA: this.COMMANDS.push(this.ATTACKA1); this.COMBOMOVE = this.ATTACKA2; this.COMBOKEY = this.CONTROLS.KEYC; break; case this.CONTROLS.KEYB: this.COMMANDS.push(this.ATTACKB1); this.COMBOMOVE = this.ATTACKB2; this.COMBOKEY = this.CONTROLS.KEYA; break; case this.CONTROLS.KEYC: this.COMMANDS.push(this.ATTACKC1); this.COMBOMOVE = this.ATTACKC2; this.COMBOKEY = this.CONTROLS.KEYA; } } } } this.LASTKEY = v3; this.LASTKEYTIME = this.FRAMECOUNT; if (this.COMMANDS.length > 0) { if (this.CSTATE == this.STANDING || this.CSTATE == this.WALK) { this.attackMove(); } } }; v2.doneStarting = function () { this.ready(); }; v2.blockHigh = function () { this.CSTATE = this.BLOCK; this.ISBLOCKHIGH = true; this.BODY.blockH(); }; v2.blockLow = function () { this.CSTATE = this.BLOCK; this.ISBLOCKHIGH = false; this.BODY.blockL(); }; v2.holdBlock = function (_MOVE) { this.BLOCKMOVE = _MOVE; if (!this.RELEASEBLOCK) { this.BLOCKMOVE.stop(); } }; v2.releaseBlock = function () { if (this.CSTATE == this.BLOCK) { this.COMMANDS = []; this.BLOCKMOVE.play(); } }; v2.attackMove = function () { var v2 = this.COMMANDS.shift(); switch (v2) { case this.ATTACKA1: this.ATTACKOBJ = this.BODY.attackA1(); break; case this.ATTACKA2: this.ATTACKOBJ = this.BODY.attackA2(); break; case this.ATTACKA3: this.ATTACKOBJ = this.BODY.attackA3(); break; case this.ATTACKB1: this.ATTACKOBJ = this.BODY.attackB1(); break; case this.ATTACKB2: this.ATTACKOBJ = this.BODY.attackB2(); break; case this.ATTACKB3: this.ATTACKOBJ = this.BODY.attackB3(); break; case this.ATTACKC1: this.ATTACKOBJ = this.BODY.attackC1(); break; case this.ATTACKC2: this.ATTACKOBJ = this.BODY.attackC2(); break; case this.ATTACKC3: this.ATTACKOBJ = this.BODY.attackC3(); break; case this.FATALITY: this.fatality(); break; default: this.BODY.ready(); this.CSTATE = this.STANDING; return undefined; } this.CSTATE = this.ATTACK; this.OPPONENT.danger(this.ATTACKOBJ); this.ME.setDepthAbove(this.OPPONENT); }; v2.attackNow = function (_HITPOINT) { var v2 = new flash.geom.Point(0, 0); _HITPOINT.localToGlobal(v2); this.OPPONENT.tryHit(v2.x, v2.y, this.ATTACKOBJ.damage, this.ATTACKOBJ.range, this.ATTACKOBJ.h, this.ATTACKOBJ.soundtype); }; v2.doneAttack = function () { if (this.CSTATE == this.HITTED) { return undefined; } if (this.CSTATE == this.DEAD) { return undefined; } if (this.COMMANDS.length > 0) { this.attackMove(); } else { this.CSTATE = this.STANDING; this.BODY.ready(); } }; v2.stateStanding = function () { this.OPPONENT.WALKONPLACE = false; var v3 = 0; if (Key.isDown(_global.CONTROLS.MOVELEFT)) { v3 += -this.SPEED; } if (Key.isDown(_global.CONTROLS.MOVERIGHT)) { v3 += this.SPEED; } if (v3 != 0) { this.CSTATE = this.STARTWALK; } }; v2.stateStartWalk = function () { this.OPPONENT.WALKONPLACE = false; var v3 = 0; if (Key.isDown(_global.CONTROLS.MOVELEFT)) { v3 += -this.SPEED; } if (Key.isDown(_global.CONTROLS.MOVERIGHT)) { v3 += this.SPEED; } if (v3 != 0) { this.CSTATE = this.WALK; this.BODY.walk(); } else { this.CSTATE = this.STANDING; } }; v2.stateWalk = function () { var v3 = 0; var v4 = 0; if (Key.isDown(_global.CONTROLS.MOVELEFT)) { v3 += -this.SPEED; } if (Key.isDown(_global.CONTROLS.MOVERIGHT)) { v3 += this.SPEED; } if (v3 == 0) { this.CSTATE = this.STANDING; this.BODY.ready(); return undefined; } if (v3 > 0) { v4 = this.OPPONENT._x - this._x; if (v4 < 100) { v3 = 0; } } if (v3 == 0) { this.CSTATE = this.STANDING; this.BODY.ready(); return undefined; } if (v3 < 0 && _global.SCENEMANAGER.SCENE.canSlideLeft() && this.OPPONENT.isOnApproach() && this.OPPONENT.canWalkOnPlace()) { this.OPPONENT.WALKONPLACE = true; _global.SCENEMANAGER.SCENE.slideLeft(-v3); v3 = 0; } else { if (v3 > 0 && _global.SCENEMANAGER.SCENE.canSlideRight() && this.OPPONENT.isOnRetreat() && this.OPPONENT.canWalkOnPlace()) { this.OPPONENT.WALKONPLACE = true; _global.SCENEMANAGER.SCENE.slideRight(v3); v3 = 0; } } if (v3 < 0) { v4 = this._x - this.MARKERL._x; if (v4 < 100) { v3 = 0; } } this._x += v3; }; v2.stateWalkIn = function () { var v2 = 0; this._x += 4 * this.SPEED; this._y += this.WALKINDY; this.OPPONENT.WALKONPLACE = false; if (this._x >= this.MARKERL._x + 100) { this._y = this.MARKERL._y; this.CSTATE = this.STANDING; this.BODY.ready(); this.OPPONENT.playerDoneTag(); return undefined; } }; v2.stateWalkOut = function () { var v3 = 0; this._x -= 4 * this.SPEED; this._y -= this.WALKOUTDY; if (this._x <= this.MARKERL._x - 400) { _global.SCENEMANAGER.tagPlayer(); return undefined; } }; v2.tryHit = function (_HITX, _HITY, _DAMAGE, _RANGE, _AH, _SOUNDTYPE) { if (this.CSTATE == this.DEAD) { return undefined; } if (this.CSTATE == this.HITTED) { return undefined; } if (this.CSTATE == this.WALKOUT) { return undefined; } if (this.CSTATE == this.WALKIN) { return undefined; } if (this.CSTATE == this.CHANGEZONE) { return undefined; } if (this.CSTATE == this.WAITING) { return undefined; } if (this.CSTATE == this.WAITTAG) { return undefined; } var v3 = false; if (this.CSTATE == this.BLOCK) { if (_AH == 1 && this.ISBLOCKHIGH) { v3 = true; } else { if (_AH == 2 && !this.ISBLOCKHIGH) { v3 = true; } else { if (this.BHIGHDEFENSE == 2 && this.ISBLOCKHIGH) { v3 = true; } else { if (this.BLOWDEFENSE == 2 && !this.ISBLOCKHIGH) { v3 = true; } } } } } var v5 = new flash.geom.Point(0, 0); this.localToGlobal(v5); var v6 = _HITX - v5.x - _RANGE; if (v6 < 75) { if (v3) { _DAMAGE = Math.round(_DAMAGE / 30); } this.HEALTH -= (100 / this.HFACTOR) * _DAMAGE; if (this.HEALTH > 0) { if (_DAMAGE >= 15) { this.fallAndGetUp(_SOUNDTYPE); } else { if (v3) { _global.JUKEBOX.playSound2('block'); if (this._x - this.MARKERL._x > 200) { this._x -= 10; } _global.BAR_PLAYER.setHealth(this.HEALTH); } else { this.hitted(_AH, _SOUNDTYPE); } } } else { this.prefatality(); } return true; return false; } return false; }; v2.fallAndGetUp = function (_SOUNDTYPE) { this.CSTATE = this.HITTED; if (_SOUNDTYPE == 2) { var v3 = Math.random(); if (v3 >= 0.5) { _global.JUKEBOX.playSound2('punch1'); } else { _global.JUKEBOX.playSound2('punch2'); } } _global.SCENEMANAGER.SCENE.reactOnHit(); if (this._x - this.MARKERL._x <= 200) { if (_global.SCENEMANAGER.changeZone(this, 2)) { this.DOHOLDFALL = true; this.MSTATE = this.FALLCHANGESCENE; } } this.BODY.fallandgetup(); _global.BAR_PLAYER.setHealth(this.HEALTH); }; v2.holdFall = function (_FALLMC) { this.FALLMC = _FALLMC; if (this.DOHOLDFALL) { this.FALLMC.stop(); if (this.NAME == 'RIOKO') { this.FALLMC.catDisappear(); } } }; v2.releaseFall = function () { this.DOHOLDFALL = false; this.FALLMC.play(); }; v2.ready = function () { if (this.CSTATE == this.STANDING) { return undefined; } if (this.CSTATE == this.ATTACK) { return undefined; } this.CSTATE = this.STANDING; this.BODY.ready(); }; v2.prefatality = function () { this.ALIVE = false; this.CSTATE = this.DEAD; _global.BAR_PLAYER.setHealth(this.HEALTH); if (_global.SCENEMANAGER.tagPlayer()) { this.BODY.death(); return undefined; } this.BODY.prefatality(); this.OPPONENT.fatality(); }; v2.death = function () { this.BODY.death(); _global.INTERFACE.fightCompleted(this); }; v2.walk = function () { if (this.CSTATE == this.WALK) { return undefined; } if (this.CSTATE == this.ATTACK) { return undefined; } if (this.BODY == undefined) { return undefined; } this.CSTATE = this.WALK; this.BODY.walk(); }; v2.attack = function () { if (this.CSTATE == this.ATTACK) { return undefined; } if (_global.INTERFACE.MISSIONFAILED) { return undefined; } if (!_global.INTERFACE.GAMEPAUSED && !_global.OPPONENT.isHitted()) { this.CSTATE = this.ATTACK; if (Math.random() > 0.5) { this.BODY.punch1(); } else { this.BODY.kick1(); } this.EVTMANAGER.evt(6, this.hitHero, this); } else { var v4 = Math.round(this.AINTERVAL * 0.8); var v3 = Math.round(this.AINTERVAL * 0.4); var v5 = v4 + Math.round(Math.random() * v3); this.EVTMANAGER.evt(v5, this.attack, this); } }; v2.hitHero = function () { this.OPPONENT.underMeleeAttack(this); }; v2.underMeleeAttack = function (_HITX, _HITY, _DAMAGE) { if (this.CSTATE == this.BLOCK) { return undefined; } var v3 = _HITX - this._x; var v2 = _HITY - this._y; var v4 = v3 * v3 + v2 * v2; if (v4 < 900) { if (this.BLOCKPCT >= Math.random()) { return false; } this.HEALTH -= (100 / this.HFACTOR) * _DAMAGE; if (this.HEALTH > 0) { this.hitted(); } else { this.die(); } return true; } return false; }; v2.projectileAttack = function (_P) { var v4 = _P._x - this._x; var v3 = _P._y + _P.Z - this._y; var v5 = v4 * v4 + v3 * v3; if (v5 < 400) { this.HEALTH -= (100 / this.HFACTOR) * _P.DAMAGE; if (this.HEALTH > 0) { this.hitted(); } else { this.die(); } return true; } return false; }; v2.hitted = function (_AH, _SOUNDTYPE) { this.CSTATE = this.HITTED; if (_SOUNDTYPE == 2) { var v3 = Math.random(); if (v3 >= 0.5) { _global.JUKEBOX.playSound2('punch1'); } else { _global.JUKEBOX.playSound2('punch2'); } } _global.SCENEMANAGER.SCENE.reactOnHit(); if (_AH == 1) { this.BODY.hittedH(); } else { this.BODY.hittedL(); } _global.BAR_PLAYER.setHealth(this.HEALTH); }; v2.doneHitted = function () { if (!this.ALIVE) { this.CSTATE = this.DEAD; this.BODY.prefatality(); } else { if (this.MSTATE == this.FALLCHANGESCENE) { this.CSTATE = this.WAITING; this.BODY.ready(); return undefined; } this.CSTATE = this.STANDING; this.BODY.ready(); } }; v2.doneBlock = function () { if (this.CSTATE != this.BLOCK) { return undefined; } this.CSTATE = this.STANDING; this.BODY.ready(); }; v2.die = function () { this.ALIVE = false; this.CSTATE = this.DEAD; _global.SCENEMANAGER.unitKilled(this); this.BODY.die(); }; v2.finishHim = function () { this.FINISHHIM = true; }; v2.fatality = function () { if (!this.OPPONENT.CANFINISHHIM) { return undefined; } if (this.NAME == 'N33' || this.NAME == 'FREAK') { this.OPPONENT._x = this.MARKERR._x - 100; } else { this.OPPONENT._x = this.MARKERR._x - 300; } if (this.NAME == 'CYBERLLAMA' || this.NAME == 'MATHEW' || this.NAME == 'RIOKO') { this._x = this.OPPONENT._x - 300; } else { this._x = this.OPPONENT._x - 200; } this.CSTATE = this.ATTACK; this.BODY.fatality(); this.OPPONENT.fatalityUnderWay(); }; v2.doneFatality = function () { this.CSTATE = this.VICTORY; this.DONEFATALITY = true; if (this.NAME != 'BONES') { this.BODY.ready(); } if (this.NAME == 'MATHEW' || this.NAME == 'REBECCA') { this._x = this.OPPONENT._x; } if (this.NAME == 'RIOKO') { this._x += 478; } _global.INTERFACE.fightCompleted(this.OPPONENT); }; v2.win = function () { if (this.NAME == 'CYBERLLAMA') { this._x = this.OPPONENT._x - 200; } else { if (this._x < this.MARKERL._x + 100) { this._x = this.MARKERL._x + 100; } else { if (this._x > this.MARKERR._x - 100) { this._x = this.MARKERR._x - 100; } } } this.CSTATE = this.VICTORY; if (this.NAME == 'BONES' && this.DONEFATALITY) { this.BODY.win2(); } else { this.BODY.win(); } }; v2.changeZone = function (_VERDIR) { this.CSTATE = this.CHANGEZONE; if (_VERDIR != 0) { this.BODY.jumpingdown(); } else { this.BODY.walk(); } }; v2.createBat = function () { this.FLYINGBAT = true; this.CHUBBYBAT = _global.SCENEMANAGER.createBat(1); }; v2.createAcidBall = function () { this.ACIDBALLFLYING = true; this.ACIDBALL = _global.SCENEMANAGER.createAcidBall(1); }; v2.moveBat = function () { this.CHUBBYBAT._x += 5; if (this.CHUBBYBAT._x >= this.OPPONENT._x) { this.OPPONENT.batOn(); this.FLYINGBAT = false; this.CHUBBYBAT.removeMovieClip(); } }; v2.moveAcidBall = function () { this.ACIDBALL._x += 5; if (this.ACIDBALL._x >= this.OPPONENT._x) { this.OPPONENT.acidOn(); this.ACIDBALLFLYING = false; this.ACIDBALL.removeMovieClip(); } }; v2.batOn = function () { _global.JUKEBOX.playSound2('chubbyBatEat'); this.BODY.af_BONES(); }; v2.acidOn = function () { this.BODY.af_NICOLE(); }; v2.doneBatOn = function () { this.OPPONENT.doneFatality(); }; v2.doneAcidOn = function () { this.OPPONENT.doneFatality(); }; v2.slash = function () { this.OPPONENT.BODY.af_BECKY(); }; v2.changeZoneDone = function () { this.ready(); }; v2.doneDeath = function () { this.removeMovieClip(); }; v2.walkIn = function () { this.CSTATE = this.WALKIN; this.WALKINDY = this.OUTSCENEHEIGHT * 4 * this.SPEED / Math.abs(this.MARKERL._x + 100 - this._x); this._y = this.MARKERL._y - this.OUTSCENEHEIGHT; this.BODY.jumpingdown(); }; v2.walkOut = function () { if (!_global.SCENEMANAGER.isPlayerTeamMate()) { return undefined; } this.CSTATE = this.WALKOUT; this.BODY.jumpingdown(); this.WALKOUTDY = this.OUTSCENEHEIGHT * 4 * this.SPEED / Math.abs(this._x - this.MARKERL._x + 400); this.OPPONENT.waitTag(); }; v2.waitTag = function () { this.CSTATE = this.WAITTAG; this.BODY.ready(); }; v2.opponentDoneTag = function () { this.CSTATE = this.STANDING; this.BODY.ready(); }; v2.doneWaiting = function () { this.MSTATE = this.IDLE; this.CSTATE = this.STANDING; }; ASSetPropFlags(_global.aiPlayer.prototype, null, 1); } #endinitclip } movieClip 2335 __Packages.gameControls { #initclip if (!_global.gameControls) { var v1 = function () { this.CCHANGED = false; this.KEYA = 65; this.KEYB = 83; this.KEYC = 68; this.KEYHBLOCK = 38; this.KEYLBLOCK = 40; this.JUMPKEY = 32; this.KICKKEY = 88; this.PICKKEY = 86; this.PUNCHKEY = 67; this.MOVEUP = 38; this.MOVELEFT = 37; this.MOVEDOWN = 40; this.MOVERIGHT = 39; this.JUMPKEY_STR = 'Spacebar'; this.KICKKEY_STR = 'X'; this.PICKKEY_STR = 'V'; this.PUNCHKEY_STR = 'C'; this.MOVEUP_STR = 'Up Arrow'; this.MOVELEFT_STR = 'Left Arrow'; this.MOVEDOWN_STR = 'Down Arrow'; this.MOVERIGHT_STR = 'Right Arrow'; this.UNLOCK1_1 = false; this.UNLOCK1_2 = false; this.UNLOCK1_3 = false; this.UNLOCK5_1 = false; this.UNLOCK5_2 = false; this.UNLOCK5_3 = false; this.UNLOCK5_4 = false; this.UNLOCK6_1 = false; this.UNLOCK6_2 = false; this.UNLOCK7_1 = false; this.UNLOCK7_2 = false; }; _global.gameControls = v1; var v2 = v1.prototype; v1.saveControls = function (_CONTROLS) { var v1 = SharedObject.getLocal('qigames_wf_controls'); v1.data.CONTROLS = _CONTROLS; v1.flush(); }; v1.setControls = function () { var v3 = SharedObject.getLocal('qigames_wf_controls'); var v2 = new gameControls(); if (v3.data.CONTROLS != undefined) { v2.CCHANGED = v3.data.CONTROLS.CCHANGED; v2.JUMPKEY = v3.data.CONTROLS.JUMPKEY; v2.KICKKEY = v3.data.CONTROLS.KICKKEY; v2.PICKKEY = v3.data.CONTROLS.PICKKEY; v2.PUNCHKEY = v3.data.CONTROLS.PUNCHKEY; v2.MOVEUP = v3.data.CONTROLS.MOVEUP; v2.MOVELEFT = v3.data.CONTROLS.MOVELEFT; v2.MOVEDOWN = v3.data.CONTROLS.MOVEDOWN; v2.MOVERIGHT = v3.data.CONTROLS.MOVERIGHT; v2.JUMPKEY_STR = v3.data.CONTROLS.JUMPKEY_STR; v2.KICKKEY_STR = v3.data.CONTROLS.KICKKEY_STR; v2.PICKKEY_STR = v3.data.CONTROLS.PICKKEY_STR; v2.PUNCHKEY_STR = v3.data.CONTROLS.PUNCHKEY_STR; v2.MOVEUP_STR = v3.data.CONTROLS.MOVEUP_STR; v2.MOVELEFT_STR = v3.data.CONTROLS.MOVELEFT_STR; v2.MOVEDOWN_STR = v3.data.CONTROLS.MOVEDOWN_STR; v2.MOVERIGHT_STR = v3.data.CONTROLS.MOVERIGHT_STR; v2.UNLOCK1_1 = v3.data.CONTROLS.UNLOCK1_1; v2.UNLOCK1_2 = v3.data.CONTROLS.UNLOCK1_2; v2.UNLOCK1_3 = v3.data.CONTROLS.UNLOCK1_3; v2.UNLOCK5_1 = v3.data.CONTROLS.UNLOCK5_1; v2.UNLOCK5_2 = v3.data.CONTROLS.UNLOCK5_2; v2.UNLOCK5_3 = v3.data.CONTROLS.UNLOCK5_3; v2.UNLOCK5_4 = v3.data.CONTROLS.UNLOCK5_4; v2.UNLOCK6_1 = v3.data.CONTROLS.UNLOCK6_1; v2.UNLOCK6_2 = v3.data.CONTROLS.UNLOCK6_2; v2.UNLOCK7_1 = v3.data.CONTROLS.UNLOCK7_1; v2.UNLOCK7_2 = v3.data.CONTROLS.UNLOCK7_2; } _global.CONTROLS = v2; }; ASSetPropFlags(_global.gameControls.prototype, null, 1); } #endinitclip } movieClip 2336 __Packages.aiUnit { #initclip if (!_global.aiUnit) { var v1 = function () { super(); this.ME = this; this.TYPE = 'AI'; this.EVTMANAGER = _global.EVTMANAGER; this.ALIVE = true; this.CANFINISHHIM = true; this.BLOCKTIMEMAX = 30; var v4 = 1; this.STANDING = v4++; this.WALK = v4++; this.ATTACK = v4++; this.BLOCK = v4++; this.HITTED = v4++; this.DEAD = v4++; this.VICTORY = v4++; this.CHANGEZONE = v4++; this.STARTING = v4++; this.WAITTAG = v4++; this.WALKIN = v4++; this.WALKOUT = v4++; this.WAITING = v4++; this.CSTATE = this.STARTING; this.APPROACH = v4++; this.RETREAT = v4++; this.IDLE = v4++; this.FALLCHANGESCENE = v4++; this.MSTATE = this.IDLE; this.EVTMANAGER.evt(24, this.movementDecision, this); this.ATTACKA1 = 1; this.ATTACKA2 = 2; this.ATTACKA3 = 3; this.ATTACKB1 = 4; this.ATTACKB2 = 5; this.ATTACKB3 = 6; this.ATTACKC1 = 7; this.ATTACKC2 = 8; this.ATTACKC3 = 9; this.MOVEFATALITY = 10; this.DOCOMBO = false; this.DOHOLDFALL = false; this.FLYINGBAT = false; this.ACIDBALLFLYING = false; this.OUTSCENEHEIGHT = 300; this.WALKONPLACE = false; }; _global.aiUnit = v1; _global.aiUnit extends MovieClip; var v2 = v1.prototype; v2.nextState = function () { if (this.FLYINGBAT) { this.moveBat(); } if (this.ACIDBALLFLYING) { this.moveAcidBall(); } if (this.CSTATE == this.WAITTAG) { return undefined; } if (this.CSTATE == this.WAITING) { return undefined; } if (this.ISOUT) { return undefined; } if (this.CSTATE == this.WALKOUT) { this.stateWalkOut(); return undefined; } if (this.CSTATE == this.WALKIN) { this.stateWalkIn(); return undefined; } this._y = this.MARKERL._y; this.movement(); }; v2.setRight = function () { this.BODYORIENTATION.gotoAndStop(1); }; v2.setLeft = function () { this.BODYORIENTATION.gotoAndStop(2); }; v2.doneStarting = function () { this.ready(); var v3 = Math.round(this.ADELAY * 0.8); var v2 = Math.round(this.ADELAY * 0.4); var v4 = v3 + Math.round(Math.random() * v2); this.EVTMANAGER.evt(v4, this.attack, this); }; v2.movementDecision = function () { if (this.MSTATE == this.FALLCHANGESCENE) { this.EVTMANAGER.evt(24, this.movementDecision, this); return undefined; } var v2 = 400; var v4 = 400; var v5 = 100; var v3 = Math.random() * (v2 + v4 + v5); if (v3 < v2) { this.MSTATE = this.APPROACH; this.EVTMANAGER.evt(48, this.movementDecision, this); } else { if (v3 < v2 + v4) { this.MSTATE = this.RETREAT; this.EVTMANAGER.evt(48, this.movementDecision, this); var v6 = 1 + Math.round(Math.random() * 3); var v7 = 100 * v6; this.RETREAT_TX = this.OPPONENT._x + v7; } else { this.MSTATE = this.IDLE; this.EVTMANAGER.evt(24, this.movementDecision, this); } } }; v2.movement = function () { if (this.CSTATE == this.BLOCK) { return undefined; } if (this.CSTATE == this.ATTACK) { return undefined; } if (this.CSTATE == this.HITTED) { return undefined; } if (this.CSTATE == this.DEAD) { return undefined; } if (this.CSTATE == this.VICTORY) { return undefined; } if (this.CSTATE == this.CHANGEZONE) { return undefined; } if (this.CSTATE == this.STARTING) { return undefined; } if (this.CSTATE == this.WALKOUT) { return undefined; } if (this.CSTATE == this.WALKIN) { return undefined; } switch (this.MSTATE) { case this.APPROACH: this.mvtApproach(); break; case this.RETREAT: this.mvtRetreat(); } }; v2.mvtApproach = function () { var v2; if (this.WALKONPLACE) { this.walk(); return undefined; } v2 = this._x - this.OPPONENT._x; if (v2 > 100) { this.walk(); this._x -= this.SPEED; return undefined; } if (this.CSTATE == this.STANDING) { return undefined; } this.ready(); }; v2.mvtRetreat = function () { var v2; if (this.WALKONPLACE) { this.walk(); return undefined; } v2 = this.RETREAT_TX - this._x; if (v2 > 0) { if (this._x + 100 < this.MARKERR._x) { this.walk(); this._x += this.SPEED; return undefined; } } if (this.CSTATE == this.STANDING) { return undefined; } this.ready(); }; v2.stateWalkIn = function () { var v5 = 0; this._x -= 4 * this.SPEED; this._y += this.WALKINDY; if (this._x <= this.MARKERR._x - 100) { this._y = this.MARKERR._y; this.CSTATE = this.STANDING; this.BODY.ready(); this.OPPONENT.opponentDoneTag(); var v3 = Math.round(this.ADELAY * 0.8); var v2 = Math.round(this.ADELAY * 0.4); var v4 = v3 + Math.round(Math.random() * v2); this.EVTMANAGER.evt(v4, this.attack, this); return undefined; } }; v2.stateWalkOut = function () { var v3 = 0; this._x += 4 * this.SPEED; this._y -= this.WALKOUTDY; if (this._x >= this.MARKERR._x + 400) { _global.SCENEMANAGER.tagOpponent(); return undefined; } }; v2.danger = function (_A) { if (this.CSTATE == this.DEAD) { return undefined; } if (this.CSTATE == this.BLOCK) { return undefined; } var v3 = this._x - this.OPPONENT._x - _A.range; if (v3 > 150) { return undefined; } var v2 = Math.random(); if (v2 < this.BLOCKPCT) { if (_A.h == 1) { this.BODY.blockH(); } else { this.BODY.blockL(); } this.CSTATE = this.BLOCK; } }; v2.holdBlock = function (_MOVE) { this.BLOCKMOVE = _MOVE; this.BLOCKMOVE.stop(); var v2 = 4 + Math.round(Math.random() * this.BLOCKTIMEMAX); this.BLOCKRELEASEEVT = this.EVTMANAGER.evt(v2, this.releaseBlock, this); }; v2.releaseBlock = function () { if (this.CSTATE == this.BLOCK) { this.BLOCKMOVE.play(); } }; v2.doneBlock = function () { if (this.CSTATE != this.BLOCK) { return undefined; } this.CSTATE = this.STANDING; this.BODY.ready(); var v3 = Math.round(this.ADELAY * 0.8); var v2 = Math.round(this.ADELAY * 0.4); var v4 = v3 + Math.round(Math.random() * v2); this.EVTMANAGER.evt(v4, this.attack, this); }; v2.ready = function () { if (this.CSTATE == this.STANDING) { return undefined; } if (this.CSTATE == this.ATTACK) { return undefined; } if (this.CSTATE == this.WAITING) { return undefined; } this.CSTATE = this.STANDING; this.BODY.ready(); }; v2.walk = function () { if (this.CSTATE == this.WALK) { return undefined; } if (this.CSTATE == this.ATTACK) { return undefined; } if (this.BODY == undefined) { return undefined; } this.CSTATE = this.WALK; this.BODY.walk(); }; v2.attack = function () { if (this.CSTATE == this.ATTACK) { return undefined; } if (this.CSTATE == this.WAITING) { return undefined; } if (this.CSTATE == this.WALKOUT) { return undefined; } if (this.CSTATE == this.WALKIN) { return undefined; } if (this.ISOUT) { return undefined; } if (this.CSTATE != this.STANDING || _global.INTERFACE.GAMEPAUSED) { this.DOCOMBO = false; var v7 = Math.round(this.ADELAY * 0.8); var v6 = Math.round(this.ADELAY * 0.4); var v8 = v7 + Math.round(Math.random() * v6); this.EVTMANAGER.evt(v8, this.attack, this); return undefined; } if (_global.INTERFACE.MISSIONFAILED) { return undefined; } var v4; v4 = Math.abs(this._x - this.OPPONENT._x); if (this.DOCOMBO) { switch (this.COMBOMOVE) { case this.ATTACKA1: this.ATTACKOBJ = this.BODY.attackA1(); this.COMBOMOVE = this.ATTACKA2; this.CSTATE = this.ATTACK; break; case this.ATTACKA2: this.ATTACKOBJ = this.BODY.attackA2(); this.COMBOMOVE = this.ATTACKA3; this.CSTATE = this.ATTACK; break; case this.ATTACKA3: this.ATTACKOBJ = this.BODY.attackA3(); this.DOCOMBO = false; this.CSTATE = this.ATTACK; break; case this.ATTACKB1: this.ATTACKOBJ = this.BODY.attackB1(); this.COMBOMOVE = this.ATTACKB2; this.CSTATE = this.ATTACK; break; case this.ATTACKB2: this.ATTACKOBJ = this.BODY.attackB2(); this.COMBOMOVE = this.ATTACKB3; this.CSTATE = this.ATTACK; break; case this.ATTACKB3: this.ATTACKOBJ = this.BODY.attackB3(); this.DOCOMBO = false; this.CSTATE = this.ATTACK; break; case this.ATTACKC1: this.ATTACKOBJ = this.BODY.attackC1(); this.COMBOMOVE = this.ATTACKC2; this.CSTATE = this.ATTACK; break; case this.ATTACKC2: this.ATTACKOBJ = this.BODY.attackC2(); this.COMBOMOVE = this.ATTACKC3; this.CSTATE = this.ATTACK; break; case this.ATTACKC3: this.ATTACKOBJ = this.BODY.attackC3(); this.DOCOMBO = false; this.CSTATE = this.ATTACK; break; default: this.BODY.ready(); this.CSTATE = this.STANDING; return undefined; } this.ADELAY = Math.round(this.INITADELAY / 6); } else { var v3; var v5 = 1 + Math.round(Math.random() * 2); if (Math.random() <= this.DOCOMBOPCT) { if (v5 == 1) { v3 = this.isComboMoveInRange(v4, 0, 1, 2); } else { if (v5 == 2) { v3 = this.isComboMoveInRange(v4, 1, 2, 0); } else { v3 = this.isComboMoveInRange(v4, 2, 0, 1); } } switch (v3) { case 0: this.ATTACKOBJ = this.BODY.attackA1(); this.COMBOMOVE = this.ATTACKA2; this.DOCOMBO = true; break; case 1: this.ATTACKOBJ = this.BODY.attackB1(); this.COMBOMOVE = this.ATTACKB2; this.DOCOMBO = true; break; case 2: this.ATTACKOBJ = this.BODY.attackC1(); this.COMBOMOVE = this.ATTACKC2; this.DOCOMBO = true; } if (this.DOCOMBO) { this.ADELAY = Math.round(this.INITADELAY / 3); this.CSTATE = this.ATTACK; } } else { this.ADELAY = this.INITADELAY; if (v5 == 1) { v3 = this.isMoveInRange(v4, 0, 1, 2); } else { if (v5 == 2) { v3 = this.isMoveInRange(v4, 1, 2, 0); } else { v3 = this.isMoveInRange(v4, 2, 0, 1); } } switch (v3) { case 0: this.ATTACKOBJ = this.BODY.attackA1(); this.CSTATE = this.ATTACK; break; case 1: this.ATTACKOBJ = this.BODY.attackB1(); this.CSTATE = this.ATTACK; break; case 2: this.ATTACKOBJ = this.BODY.attackC1(); this.CSTATE = this.ATTACK; } } } if (this.CSTATE != this.ATTACK) { this.DOCOMBO = false; v7 = Math.round(this.ADELAY * 0.8); v6 = Math.round(this.ADELAY * 0.4); v8 = v7 + Math.round(Math.random() * v6); this.EVTMANAGER.evt(v8, this.attack, this); return undefined; } this.ME.setDepthAbove(this.OPPONENT); }; v2.attackNow = function (_HITPOINT) { var v2 = new flash.geom.Point(0, 0); _HITPOINT.localToGlobal(v2); this.OPPONENT.tryHit(v2.x, v2.y, this.ATTACKOBJ.damage, this.ATTACKOBJ.range, this.ATTACKOBJ.h, this.ATTACKOBJ.soundtype); }; v2.hitHero = function () { this.OPPONENT.underMeleeAttack(this); }; v2.doneAttack = function () { if (this.CSTATE == this.HITTED) { return undefined; } if (this.CSTATE == this.DEAD) { return undefined; } if (this.CSTATE == this.WAITING) { return undefined; } this.CSTATE = this.STANDING; this.BODY.ready(); var v3 = Math.round(this.ADELAY * 0.8); var v2 = Math.round(this.ADELAY * 0.4); var v4 = v3 + Math.round(Math.random() * v2); this.EVTMANAGER.evt(v4, this.attack, this); }; v2.tryHit = function (_HITX, _HITY, _DAMAGE, _RANGE, _AH, _SOUNDTYPE) { if (this.CSTATE == this.DEAD) { return undefined; } if (this.CSTATE == this.HITTED) { return undefined; } if (this.CSTATE == this.WALKOUT) { return undefined; } if (this.CSTATE == this.WALKIN) { return undefined; } if (this.CSTATE == this.CHANGEZONE) { return undefined; } if (this.CSTATE == this.WAITING) { return undefined; } if (this.CSTATE == this.WAITTAG) { return undefined; } var v3 = false; if (this.CSTATE == this.BLOCK) { v3 = true; } var v5 = new flash.geom.Point(0, 0); this.localToGlobal(v5); var v6 = v5.x - _HITX - _RANGE; if (v6 < 75) { if (v3) { _DAMAGE = Math.round(_DAMAGE / 30); } this.HEALTH -= (100 / this.HFACTOR) * _DAMAGE; if (this.HEALTH > 0) { if (_DAMAGE >= 15) { this.fallAndGetUp(_SOUNDTYPE); } else { if (v3) { _global.JUKEBOX.playSound2('block'); if (this.MARKERR._x - this._x > 200) { this._x += 10; } _global.BAR_CPU.setHealth(this.HEALTH); } else { this.hitted(_AH, _SOUNDTYPE); } } } else { this.prefatality(); } return true; return false; } return false; }; v2.hitted = function (_AH, _SOUNDTYPE) { if (this.CSTATE == this.WALKOUT) { return undefined; } if (this.CSTATE == this.WALKIN) { return undefined; } this.CSTATE = this.HITTED; if (_SOUNDTYPE == 2) { var v3 = Math.random(); if (v3 >= 0.5) { _global.JUKEBOX.playSound2('punch1'); } else { _global.JUKEBOX.playSound2('punch2'); } } _global.SCENEMANAGER.SCENE.reactOnHit(); if (_AH == 1) { this.BODY.hittedH(); } else { this.BODY.hittedL(); } _global.BAR_CPU.setHealth(this.HEALTH); }; v2.doneHitted = function () { if (this.CSTATE == this.DEAD) { return undefined; } if (this.MSTATE == this.FALLCHANGESCENE) { this.CSTATE = this.WAITING; this.BODY.ready(); return undefined; } if (Math.random() < 0.2) { if (this.walkOut()) { return undefined; } } this.CSTATE = this.STANDING; this.BODY.ready(); var v3 = Math.round(this.ADELAY * 0.8); var v2 = Math.round(this.ADELAY * 0.4); var v4 = v3 + Math.round(Math.random() * v2); this.EVTMANAGER.evt(v4, this.attack, this); }; v2.fallAndGetUp = function (_SOUNDTYPE) { if (this.CSTATE == this.WALKOUT) { return undefined; } if (this.CSTATE == this.WALKIN) { return undefined; } if (_SOUNDTYPE == 2) { var v3 = Math.random(); if (v3 >= 0.5) { _global.JUKEBOX.playSound2('punch1'); } else { _global.JUKEBOX.playSound2('punch2'); } } this.CSTATE = this.HITTED; _global.SCENEMANAGER.SCENE.reactOnHit(); if (this.MARKERR._x - this._x <= 100) { if (_global.SCENEMANAGER.changeZone(this, 1)) { this.DOHOLDFALL = true; this.MSTATE = this.FALLCHANGESCENE; } } this.BODY.fallandgetup(); _global.BAR_CPU.setHealth(this.HEALTH); }; v2.holdFall = function (_FALLMC) { this.FALLMC = _FALLMC; if (this.DOHOLDFALL) { this.FALLMC.stop(); if (this.NAME == 'RIOKO') { this.FALLMC.catDisappear(); } } }; v2.releaseFall = function () { this.DOHOLDFALL = false; this.FALLMC.play(); }; v2.block = function () { if (this.CSTATE == this.WALKOUT) { return undefined; } if (this.CSTATE == this.WALKIN) { return undefined; } this.CSTATE = this.BLOCK; this.BODY.block(); }; v2.prefatality = function () { if (this.CSTATE == this.WALKOUT) { return undefined; } if (this.CSTATE == this.WALKIN) { return undefined; } this.ALIVE = false; this.CSTATE = this.DEAD; _global.BAR_CPU.setHealth(this.HEALTH); if (_global.SCENEMANAGER.tagOpponent()) { this.BODY.death(); return undefined; } this.BODY.prefatality(); this.OPPONENT.finishHim(); this.FATALITY = false; this.EVTMANAGER.evt(96, this.death, this); _global.INTERFACE.prefatality(this); }; v2.fatalityUnderWay = function () { this.FATALITY = true; }; v2.death = function () { if (this.FATALITY) { return undefined; } this.CANFINISHHIM = false; this.BODY.death(); _global.INTERFACE.fightCompleted(this); }; v2.fatality = function () { _global.JUKEBOX.stopJukebox(); if (this.NAME == 'N33' || this.NAME == 'FREAK') { this.OPPONENT._x = this.MARKERL._x + 100; } else { this.OPPONENT._x = this.MARKERL._x + 300; } if (this.NAME == 'CYBERLLAMA' || this.NAME == 'MATHEW' || this.NAME == 'RIOKO') { this._x = this.OPPONENT._x + 300; } else { this._x = this.OPPONENT._x + 200; } this.CSTATE = this.ATTACK; this.BODY.fatality(); }; v2.doneFatality = function () { this.CSTATE = this.VICTORY; if (this.NAME != 'BONES') { this.BODY.ready(); } if (this.NAME == 'MATHEW' || this.NAME == 'REBECCA') { this._x = this.OPPONENT._x; } if (this.NAME == 'RIOKO') { this._x -= 478; } _global.INTERFACE.fightCompleted(this.OPPONENT); }; v2.win = function () { if (this.NAME == 'CYBERLLAMA') { this._x = this.OPPONENT._x + 200; } else { if (this._x < this.MARKERL._x + 100) { this._x = this.MARKERL._x + 100; } else { if (this._x > this.MARKERR._x - 100) { this._x = this.MARKERR._x - 100; } } } this.CSTATE = this.VICTORY; if (this.NAME == 'BONES') { this.BODY.win2(); } else { this.BODY.win(); } }; v2.changeZone = function (_VERDIR) { this.CSTATE = this.CHANGEZONE; if (_VERDIR != 0) { this.BODY.jumpingdown(); } else { this.BODY.walk(); } }; v2.createBat = function () { this.FLYINGBAT = true; this.CHUBBYBAT = _global.SCENEMANAGER.createBat(-1); this.CHUBBYBAT.gotoAndStop(2); }; v2.createAcidBall = function () { this.ACIDBALLFLYING = true; this.ACIDBALL = _global.SCENEMANAGER.createAcidBall(-1); this.ACIDBALL.gotoAndStop(2); }; v2.moveBat = function () { this.CHUBBYBAT._x -= 5; if (this.CHUBBYBAT._x <= this.OPPONENT._x) { this.OPPONENT.batOn(); this.FLYINGBAT = false; this.CHUBBYBAT.removeMovieClip(); } }; v2.moveAcidBall = function () { this.ACIDBALL._x -= 5; if (this.ACIDBALL._x <= this.OPPONENT._x) { this.OPPONENT.acidOn(); this.ACIDBALLFLYING = false; this.ACIDBALL.removeMovieClip(); } }; v2.batOn = function () { _global.JUKEBOX.playSound2('chubbyBatEat'); this.BODY.af_BONES(); }; v2.acidOn = function () { this.BODY.af_NICOLE(); }; v2.doneBatOn = function () { this.OPPONENT.doneFatality(); }; v2.doneAcidOn = function () { this.OPPONENT.doneFatality(); }; v2.slash = function () { this.OPPONENT.BODY.af_BECKY(); }; v2.changeZoneDone = function () { this.CSTATE = this.STANDING; this.BODY.ready(); var v3 = Math.round(this.ADELAY * 0.8); var v2 = Math.round(this.ADELAY * 0.4); var v4 = v3 + Math.round(Math.random() * v2); this.EVTMANAGER.evt(v4, this.attack, this); }; v2.waitTag = function () { this.CSTATE = this.WAITTAG; this.BODY.ready(); }; v2.playerDoneTag = function () { this.CSTATE = this.STANDING; this.BODY.ready(); var v3 = Math.round(this.ADELAY * 0.8); var v2 = Math.round(this.ADELAY * 0.4); var v4 = v3 + Math.round(Math.random() * v2); this.EVTMANAGER.evt(v4, this.attack, this); }; v2.walkIn = function () { this.CSTATE = this.WALKIN; this.WALKINDY = this.OUTSCENEHEIGHT * 4 * this.SPEED / Math.abs(this._x - this.MARKERR._x + 100); this._y = this.MARKERR._y - this.OUTSCENEHEIGHT; this.BODY.jumpingdown(); }; v2.walkOut = function () { if (this.CSTATE == this.WAITTAG) { return false; } if (!_global.SCENEMANAGER.isOpponentTeamMate()) { return false; } this.CSTATE = this.WALKOUT; this.WALKOUTDY = this.OUTSCENEHEIGHT * 4 * this.SPEED / Math.abs(this.MARKERR._x + 400 - this._x); this.BODY.jumpingdown(); this.OPPONENT.waitTag(); return true; }; v2.doneDeath = function () { if (_global.GAMEMODE == 'tagteam') { if (_global.SCENEMANAGER.UNIT2.ALIVE || _global.SCENEMANAGER.UNIT2_2.ALIVE) { this.removeMovieClip(); } } }; v2.isComboMoveInRange = function (_OPPONENTDX, _IND1, _IND2, _IND3) { var v4; var v3; var v2; v4 = 0; while (v4 < 3) { if (this.COMBOATTACKS[_IND1][v4].range + 75 >= _OPPONENTDX) { return _IND1; } ++v4; } v3 = 0; while (v3 < 3) { if (this.COMBOATTACKS[_IND2][v3].range + 75 >= _OPPONENTDX) { return _IND2; } ++v3; } v2 = 0; while (v2 < 3) { if (this.COMBOATTACKS[_IND3][v2].range + 75 >= _OPPONENTDX) { return _IND3; } ++v2; } return -1; }; v2.isMoveInRange = function (_OPPONENTDX, _IND1, _IND2, _IND3) { if (this.COMBOATTACKS[_IND1][0].range + 75 >= _OPPONENTDX) { return _IND1; } if (this.COMBOATTACKS[_IND2][0].range + 75 >= _OPPONENTDX) { return _IND2; } if (this.COMBOATTACKS[_IND3][0].range + 75 >= _OPPONENTDX) { return _IND3; } return -1; }; v2.doneWaiting = function () { this.MSTATE = this.IDLE; this.CSTATE = this.STANDING; var v3 = Math.round(this.ADELAY * 0.8); var v2 = Math.round(this.ADELAY * 0.4); var v4 = v3 + Math.round(Math.random() * v2); this.EVTMANAGER.evt(v4, this.attack, this); }; v2.isOnApproach = function () { if (this.MSTATE == this.APPROACH && this.ALIVE) { return true; } return false; }; v2.isOnRetreat = function () { if (this.MSTATE == this.RETREAT && this.ALIVE) { return true; } return false; }; v2.canWalkOnPlace = function () { if (this.CSTATE == this.BLOCK) { return false; } if (this.CSTATE == this.ATTACK) { return false; } if (this.CSTATE == this.HITTED) { return false; } if (this.CSTATE == this.DEAD) { return false; } if (this.CSTATE == this.VICTORY) { return false; } if (this.CSTATE == this.CHANGEZONE) { return false; } if (this.CSTATE == this.STARTING) { return false; } if (this.CSTATE == this.WALKOUT) { return false; } if (this.CSTATE == this.WALKIN) { return false; } return true; }; ASSetPropFlags(_global.aiUnit.prototype, null, 1); } #endinitclip } movieClip 2337 __Packages.gameData { #initclip if (!_global.gameData) { var v1 = function (_PLAYERNAME) { var v2 = new Date(); this.PLAYERID = String(v2.getTime()); this.PLAYERID += String(Math.round(Math.random() * 99999)); this.PLAYERNAME = _PLAYERNAME; this.LASTMODIFIED = new Date(); this.CLEVEL = 1; this.CSPOT = 1; this.DIFFICULTY = 1; this.LIFECOUNT = 3; this.POINTS = 0; this.COINSCOUNT = 0; this.ISGAMECOMPLETED = false; }; _global.gameData = v1; var v2 = v1.prototype; v1.saveGames = function (_GAMES) { var v1 = SharedObject.getLocal('qigames_weirdFighters02'); v1.data.GAMES = _GAMES; v1.flush(); }; v1.newGame = function (_NAME, _DIFFICULTY) { var v1 = SharedObject.getLocal('qigames_weirdFighters02'); var v2 = v1.data.GAMES; if (v2 == undefined) { v1.data.GAMES = new Array(); } var v3 = new gameData(_name, _DIFFICULTY, v2.length); v1.data.GAMES.push(v3); v1.flush(); }; v1.deleteGame = function (_INDEX) { var v1 = SharedObject.getLocal('qigames_weirdFighters02'); var v2 = v1.data.GAMES; if (_INDEX < 0) { return undefined; } if (_INDEX > v2.length - 1) { return undefined; } v2.splice(_INDEX, 1); v1.flush(); }; v1.getGames = function () { var v1 = SharedObject.getLocal('qigames_weirdFighters02'); var v2 = v1.data.GAMES; if (v2 == undefined) { v1.data.GAMES = []; v1.flush(); } return v1.data.GAMES; }; ASSetPropFlags(_global.gameData.prototype, null, 1); } #endinitclip } movieClip 2338 __Packages.SceneManager { #initclip if (!_global.SceneManager) { var v1 = function (_SCENE, _ZONES, _CURZONEIND) { var v6; var v5; var v4; var v3; this.SCENE = _SCENE; this.ZONES = _ZONES; this.CURZONEIND = _CURZONEIND; if (this.CURZONEIND == undefined) { this.CURZONEIND = 0; } this.ZONE = _ZONES[this.CURZONEIND]; switch (_global.PLAYER1IND) { case 1: v6 = 'N33_player'; break; case 2: v6 = 'REBECCA_player'; break; case 3: v6 = 'BONES_player'; break; case 4: v6 = 'FREAK_player'; break; case 5: v6 = 'NICOLE_player'; break; case 6: v6 = 'CYBERLLAMA_player'; break; case 7: v6 = 'MATHEW_player'; break; case 8: v6 = 'RIOKO_player'; } switch (_global.OPPONENT1IND) { case 1: v5 = 'N33'; break; case 2: v5 = 'REBECCA'; break; case 3: v5 = 'BONES'; break; case 4: v5 = 'FREAK'; break; case 5: v5 = 'NICOLE'; break; case 6: v5 = 'CYBERLLAMA'; break; case 7: v5 = 'MATHEW'; break; case 8: v5 = 'RIOKO'; } switch (_global.PLAYER2IND) { case 1: v4 = 'N33_player'; break; case 2: v4 = 'REBECCA_player'; break; case 3: v4 = 'BONES_player'; break; case 4: v4 = 'FREAK_player'; break; case 5: v4 = 'NICOLE_player'; break; case 6: v4 = 'CYBERLLAMA_player'; break; case 7: v4 = 'MATHEW_player'; break; case 8: v4 = 'RIOKO_player'; } switch (_global.OPPONENT2IND) { case 1: v3 = 'N33'; break; case 2: v3 = 'REBECCA'; break; case 3: v3 = 'BONES'; break; case 4: v3 = 'FREAK'; break; case 5: v3 = 'NICOLE'; break; case 6: v3 = 'CYBERLLAMA'; break; case 7: v3 = 'MATHEW'; break; case 8: v3 = 'RIOKO'; } this.UNIT2 = this.SCENE.attachMovie(v5, 'unit2_mc', this.SCENE.getNextHighestDepth()); this.UNIT2._x = this.ZONE.OSTART._x; this.UNIT2._y = this.ZONE.OSTART._y; this.UNIT2.SIDE = 2; this.UNIT2.MARKERL = this.ZONE.MARKERL; this.UNIT2.MARKERR = this.ZONE.MARKERR; this.UNIT1 = this.SCENE.attachMovie(v6, 'unit1_mc', this.SCENE.getNextHighestDepth()); this.UNIT1._x = this.ZONE.PSTART._x; this.UNIT1._y = this.ZONE.PSTART._y; this.UNIT1.SIDE = 1; this.UNIT1.MARKERL = this.ZONE.MARKERL; this.UNIT1.MARKERR = this.ZONE.MARKERR; if (v4 != undefined) { this.UNIT1_2 = this.SCENE.attachMovie(v4, 'unit1_2_mc', this.SCENE.getNextHighestDepth()); this.UNIT1_2._x = this.ZONE.MARKERL._x - 500; this.UNIT1_2._y = this.ZONE.PSTART._y; this.UNIT1_2.SIDE = 1; this.UNIT1_2.MARKERL = this.ZONE.MARKERL; this.UNIT1_2.MARKERR = this.ZONE.MARKERR; this.UNIT1_2.ISOUT = true; } if (v3 != undefined) { this.UNIT2_2 = this.SCENE.attachMovie(v3, 'unit2_2_mc', this.SCENE.getNextHighestDepth()); this.UNIT2_2._x = this.ZONE.MARKERR._x + 500; this.UNIT2_2._y = this.ZONE.OSTART._y; this.UNIT2_2.SIDE = 2; this.UNIT2_2.MARKERL = this.ZONE.MARKERL; this.UNIT2_2.MARKERR = this.ZONE.MARKERR; this.UNIT2_2.ISOUT = true; } this.UNIT1.OPPONENT = this.UNIT2; this.UNIT2.OPPONENT = this.UNIT1; this.MOVEZONE = false; }; _global.SceneManager = v1; var v2 = v1.prototype; v2.init = function () {}; v2.nextState = function () { if (this.ZONE.ELEVATOR == true) { this.SCENE.nextState(); } if (this.MOVEZONE) { if (this.GOZONE == 1) { this.moveZoneRight(); } else { this.moveZoneLeft(); } } else { this.UNIT1.nextState(); this.UNIT2.nextState(); } }; v2.freeMovement = function () { var v2; var v4; var v6; var v3; var v5; v2 = this.UNIT1._x; v4 = this.UNIT2._x; v6 = v4 - v2; if (v4 - v2 > 500) { v4 = v2 + 500; v6 = 500; } v5 = Math.round((600 - v6) * 0.5); v3 = {'x': v2, 'y': 0}; this.SCENE.localToGlobal(v3); if (v5 > v3.x) { if (v5 > v3.x + 10) { this.SCENE._x += 5; } } else { if (v5 < v3.x - 10) { this.SCENE._x -= 5; } } }; v2.setUnitDifficulty = function (_UNIT) { var v4; var v3 = 1; v4 = _global.CGAME.DIFFICULTY; if (v4 == undefined) { v4 = _global.GAMEDIFFICULTY; } if (v4 == undefined) { v4 = 2; } if (_global.GAMEMODE == 'story') { switch (_global.CGAME.CLEVEL) { case 1: v3 = 0.8; break; case 2: v3 = 0.85; break; case 3: v3 = 0.9; break; case 4: v3 = 0.9; break; case 5: v3 = 0.95; break; case 6: v3 = 0.95; break; case 7: v3 = 1; } } switch (v4) { case 1: _UNIT.HFACTOR *= 0.6 * v3; _UNIT.HFACTOR = Math.round(_UNIT.HFACTOR); _UNIT.INITADELAY *= 1.7 * (1 / v3); _UNIT.INITADELAY = Math.round(_UNIT.INITADELAY); _UNIT.ADELAY *= 1.7 * (1 / v3); _UNIT.ADELAY = Math.round(_UNIT.ADELAY); _UNIT.AINTERVAL *= 1.7 * (1 / v3); _UNIT.AINTERVAL = Math.round(_UNIT.AINTERVAL); _UNIT.BLOCKPCT *= 0.6 * v3; _UNIT.DOCOMBOPCT *= 0.6 * v3; break; case 2: _UNIT.HFACTOR *= 0.85 * v3; _UNIT.HFACTOR = Math.round(_UNIT.HFACTOR); _UNIT.INITADELAY *= 1.25 * (1 / v3); _UNIT.INITADELAY = Math.round(_UNIT.INITADELAY); _UNIT.ADELAY *= 1.25 * (1 / v3); _UNIT.ADELAY = Math.round(_UNIT.ADELAY); _UNIT.AINTERVAL *= 1.25 * (1 / v3); _UNIT.AINTERVAL = Math.round(_UNIT.AINTERVAL); _UNIT.BLOCKPCT *= 0.85 * v3; _UNIT.DOCOMBOPCT *= 0.85 * v3; break; case 3: _UNIT.HFACTOR *= v3; _UNIT.HFACTOR = Math.round(_UNIT.HFACTOR); _UNIT.INITADELAY *= 1 / v3; _UNIT.INITADELAY = Math.round(_UNIT.INITADELAY); _UNIT.ADELAY *= 1 / v3; _UNIT.ADELAY = Math.round(_UNIT.ADELAY); _UNIT.AINTERVAL *= 1 / v3; _UNIT.AINTERVAL = Math.round(_UNIT.AINTERVAL); _UNIT.BLOCKPCT *= v3; _UNIT.DOCOMBOPCT *= v3; } }; v2.changeZone = function (_UNITFALL, _DIR) { if (this.MOVEZONE) { return false; } if (this.ZONE.ELEVATOR == true) { if (_DIR == 1) { this.SCENE.tryGoDown(); } else { this.SCENE.tryGoUp(); } } if (_DIR == this.ZONE.CHANGEZONE || _DIR == this.ZONE.CHANGEZONE2) { this.GOZONE = _DIR; this.MOVEZONE = true; ++this.CURZONEIND; var v3 = false; if (_DIR == this.ZONE.CHANGEZONE2 && this.ZONE.CHANGEZONE2 != undefined) { this.ZONES = this.ZONE.ZONES2; v3 = true; } this.unlockZone(v3); this.ZONE = this.ZONES[this.CURZONEIND]; if (this.ZONE.MARKERL._y - this.UNIT1.MARKERL._y > 200) { this.VERDIR = -1; } else { if (this.ZONE.MARKERL._y - this.UNIT1.MARKERL._y < -200) { this.VERDIR = 1; } else { this.VERDIR = 0; } } this.UNIT1.MARKERL = this.ZONE.MARKERL; this.UNIT1.MARKERR = this.ZONE.MARKERR; this.UNIT2.MARKERL = this.ZONE.MARKERL; this.UNIT2.MARKERR = this.ZONE.MARKERR; this.UNITFALL = _UNITFALL; _UNITFALL.OPPONENT.changeZone(this.VERDIR); this.COUNTUIBLACK = 0; if (_DIR == 1) { if (this.UNIT2_2 != undefined) { this.UNIT2_2._x = this.UNIT2.MARKERR._x + 500; this.UNIT2_2._y = this.UNIT2.MARKERR._y; } return this.MOVEZONE; } if (this.UNIT1_2 != undefined) { this.UNIT1_2._x = this.UNIT1.MARKERL._x - 500; this.UNIT1_2._y = this.UNIT1.MARKERL._y - this.UNIT1.OUTSCENEHEIGHT; } } return this.MOVEZONE; }; v2.moveZoneRight = function () { var v3; var v6; var v2 = {'x': 0, 'y': 0}; this.ZONE.MARKERL.localToGlobal(v2); if (v2.x > 10) { v6 = 30; if (v2.x - 30 < 10) { v6 = v2.x - 10; } this.SCENE._x -= v6; this.UNITFALL._x += 20; if (this.ZONE.REACTOBJ != undefined) { var v4 = {'x': 0, 'y': 0}; this.ZONE.REACTOBJ.localToGlobal(v4); if (v4.x <= this.UNITFALL._x && !this.ZONE.REACTION) { this.ZONE.HIDEOBJ._visible = false; this.ZONE.REACTOBJ._visible = true; this.ZONE.REACTOBJ.play(); this.ZONE.REACTION = true; } } } else { if (v2.y > 380) { v3 = 30; if (v2.y - 30 < 380) { v3 = v2.y - 380; } this.SCENE._y -= v3; this.UNITFALL._y += v3; if (this.ZONE.REACTOBJY != undefined) { var v5 = {'x': 0, 'y': 0}; this.ZONE.REACTOBJY.localToGlobal(v5); if (v5.y <= this.UNITFALL._y && !this.ZONE.REACTION2) { this.ZONE.HIDEOBJY._visible = false; this.ZONE.REACTOBJY._visible = true; this.ZONE.REACTOBJY.play(); this.ZONE.REACTION2 = true; } } } else { if (this.UNITFALL.DOHOLDFALL) { this.UNITFALL._y = this.ZONE.MARKERL._y; this.UNITFALL.releaseFall(); } if (this.VERDIR == -1) { if (this.UNITFALL.OPPONENT._y < this.ZONE.MARKERL._y) { if (this.UNITFALL.OPPONENT.TYPE == 'AI') { this.UNITFALL.OPPONENT._x = this.ZONE.OSTART._x; } else { this.UNITFALL.OPPONENT._x = this.ZONE.PSTART._x; } this.UNITFALL.OPPONENT._y += 20; if (this.UNITFALL.OPPONENT._y > this.ZONE.MARKERL._y) { this.UNITFALL.OPPONENT._y = this.ZONE.MARKERL._y; } } else { this.MOVEZONE = false; this.UNITFALL.OPPONENT._y = this.ZONE.MARKERL._y; this.UNITFALL._y = this.ZONE.MARKERL._y; this.UNITFALL.doneWaiting(); this.UNITFALL.OPPONENT.changeZoneDone(); if (this.UNIT1_2 != undefined) { this.UNIT1_2._x = this.UNIT1.MARKERL._x - 500; this.UNIT1_2._y = this.UNIT1._y; } } } else { if (this.UNITFALL.OPPONENT._x < this.ZONE.PSTART._x) { this.UNITFALL.OPPONENT._x += 20; if (this.UNITFALL.OPPONENT._x > this.ZONE.PSTART._x) { this.UNITFALL.OPPONENT._x = this.ZONE.PSTART._x; } } else { this.MOVEZONE = false; this.UNITFALL.OPPONENT._y = this.ZONE.MARKERL._y; this.UNITFALL._y = this.ZONE.MARKERL._y; this.UNITFALL.doneWaiting(); this.UNITFALL.OPPONENT.changeZoneDone(); if (this.UNIT1_2 != undefined) { this.UNIT1_2._x = this.UNIT1.MARKERL._x - 500; this.UNIT1_2._y = this.UNIT1._y; } } } } } }; v2.moveZoneLeft = function () { var v3; var v6; var v2 = {'x': 0, 'y': 0}; this.ZONE.MARKERL.localToGlobal(v2); if (v2.x < 10) { v6 = 30; if (v2.x + 30 > 10) { v6 = 10 - v2.x; } this.SCENE._x += v6; this.UNITFALL._x -= 20; if (this.ZONE.REACTOBJ != undefined) { var v4 = {'x': 0, 'y': 0}; this.ZONE.REACTOBJ.localToGlobal(v4); if (v4.x + this.ZONE.REACTOBJ._width >= this.UNITFALL._x - this.UNITFALL._width && !this.ZONE.REACTION) { this.ZONE.HIDEOBJ._visible = false; this.ZONE.REACTOBJ._visible = true; this.ZONE.REACTOBJ.play(); this.ZONE.REACTION = true; } } } else { if (v2.y > 380) { v3 = 30; if (v2.y - 30 < 380) { v3 = v2.y - 380; } this.SCENE._y -= v3; this.UNITFALL._y += v3; if (this.ZONE.REACTOBJY != undefined) { var v5 = {'x': 0, 'y': 0}; this.ZONE.REACTOBJY.localToGlobal(v5); if (v5.y <= this.UNITFALL._y && !this.ZONE.REACTION2) { this.ZONE.HIDEOBJY._visible = false; this.ZONE.REACTOBJY._visible = true; this.ZONE.REACTOBJY.play(); this.ZONE.REACTION2 = true; } } } else { if (this.UNITFALL.DOHOLDFALL) { this.UNITFALL._y = this.ZONE.MARKERL._y; this.UNITFALL.releaseFall(); } if (this.VERDIR == -1) { if (this.UNITFALL.OPPONENT._y < this.ZONE.MARKERL._y) { if (this.UNITFALL.OPPONENT.TYPE == 'AI') { this.UNITFALL.OPPONENT._x = this.ZONE.OSTART._x; } else { this.UNITFALL.OPPONENT._x = this.ZONE.PSTART._x; } this.UNITFALL.OPPONENT._y += 20; if (this.UNITFALL.OPPONENT._y > this.ZONE.MARKERL._y) { this.UNITFALL.OPPONENT._y = this.ZONE.MARKERL._y; } } else { this.MOVEZONE = false; this.UNITFALL.OPPONENT._y = this.ZONE.MARKERL._y; this.UNITFALL._y = this.ZONE.MARKERL._y; this.UNITFALL.doneWaiting(); this.UNITFALL.OPPONENT.changeZoneDone(); if (this.UNIT2_2 != undefined) { this.UNIT2_2._x = this.UNIT2.MARKERR._x + 500; this.UNIT2_2._y = this.UNIT2._y; } } } else { if (this.UNITFALL.OPPONENT._x > this.ZONE.OSTART._x) { this.UNITFALL.OPPONENT._x -= 20; if (this.UNITFALL.OPPONENT._x < this.ZONE.OSTART._x) { this.UNITFALL.OPPONENT._x = this.ZONE.OSTART._x; } } else { this.MOVEZONE = false; this.UNITFALL.OPPONENT._y = this.ZONE.MARKERL._y; this.UNITFALL._y = this.ZONE.MARKERL._y; this.UNITFALL.doneWaiting(); this.UNITFALL.OPPONENT.changeZoneDone(); if (this.UNIT2_2 != undefined) { this.UNIT2_2._x = this.UNIT2.MARKERR._x + 500; this.UNIT2_2._y = this.UNIT2._y; } } } } } }; v2.tagPlayer = function () { if (this.UNIT1_2 == undefined) { return false; } if (!this.UNIT1_2.ALIVE) { return false; } this.UNIT1_2.ISOUT = false; this.UNIT1.ISOUT = true; var v3 = this.UNIT1; this.UNIT1_2.MARKERL = this.UNIT1.MARKERL; this.UNIT1_2.MARKERR = this.UNIT1.MARKERR; this.UNIT1_2._x = this.UNIT1.MARKERL - 500; this.UNIT1_2.OPPONENT = this.UNIT1.OPPONENT; this.UNIT1 = this.UNIT1_2; this.UNIT2.OPPONENT = this.UNIT1; this.UNIT1.walkIn(); _global.BAR_PLAYER.setBar(this.UNIT1); this.UNIT1_2 = v3; return true; }; v2.tagOpponent = function () { if (this.UNIT2_2 == undefined) { return false; } if (!this.UNIT2_2.ALIVE) { return false; } this.UNIT2_2.ISOUT = false; this.UNIT2.ISOUT = true; var v3 = this.UNIT2; this.UNIT2_2.MARKERL = this.UNIT2.MARKERL; this.UNIT2_2.MARKERR = this.UNIT2.MARKERR; this.UNIT2_2._x = this.UNIT2.MARKERR + 500; this.UNIT2_2.OPPONENT = this.UNIT2.OPPONENT; this.UNIT2 = this.UNIT2_2; this.UNIT1.OPPONENT = this.UNIT2; this.UNIT2.walkIn(); _global.BAR_CPU.setBar(this.UNIT2); this.UNIT2_2 = v3; return true; }; v2.isPlayerTeamMate = function () { if (this.UNIT1_2 == undefined) { return false; } if (!this.UNIT1_2.ALIVE) { return false; } if (!this.UNIT2.ALIVE && !this.UNIT2_2.ALIVE) { return false; } return true; }; v2.isOpponentTeamMate = function () { if (this.UNIT2_2 == undefined) { return false; } if (!this.UNIT2_2.ALIVE) { return false; } return true; }; v2.createBat = function (_SIDEFACTOR) { var v2; v2 = this.SCENE.attachMovie('chubbybat', 'chubbybat_mc', this.SCENE.getNextHighestDepth()); if (_SIDEFACTOR == 1) { v2._x = this.UNIT1._x + 150; v2._y = this.UNIT1._y - 191; return v2; } v2._x = this.UNIT2._x - 150; v2._y = this.UNIT2._y - 191; return v2; }; v2.createAcidBall = function (_SIDEFACTOR) { var v2; v2 = this.SCENE.attachMovie('acidball', 'acidball_mc', this.SCENE.getNextHighestDepth()); if (_SIDEFACTOR == 1) { v2._x = this.UNIT1._x + 80; v2._y = this.UNIT1._y - 125; return v2; } v2._x = this.UNIT2._x - 80; v2._y = this.UNIT2._y - 125; return v2; }; v2.startPlayers = function () { this.UNIT1.BODY.starting(); this.UNIT2.BODY.starting(); }; v2.unlockZone = function (_SECONDPATH) { switch (_global.SCENEIND) { case 1: switch (this.CURZONEIND) { case 1: if (!_global.CONTROLS.UNLOCK1_1) { _global.CONTROLS.UNLOCK1_1 = true; gameControls.saveControls(_global.CONTROLS); } break; case 2: if (!_global.CONTROLS.UNLOCK1_2) { _global.CONTROLS.UNLOCK1_2 = true; gameControls.saveControls(_global.CONTROLS); } break; case 3: if (!_global.CONTROLS.UNLOCK1_3) { _global.CONTROLS.UNLOCK1_3 = true; gameControls.saveControls(_global.CONTROLS); } } break; case 5: switch (this.CURZONEIND) { case 1: if (!_global.CONTROLS.UNLOCK5_1) { _global.CONTROLS.UNLOCK5_1 = true; gameControls.saveControls(_global.CONTROLS); } break; case 2: if (!_SECONDPATH) { if (!_global.CONTROLS.UNLOCK5_2) { _global.CONTROLS.UNLOCK5_2 = true; gameControls.saveControls(_global.CONTROLS); } } else { if (!_global.CONTROLS.UNLOCK5_3) { _global.CONTROLS.UNLOCK5_3 = true; gameControls.saveControls(_global.CONTROLS); } } break; case 3: if (!_global.CONTROLS.UNLOCK5_4) { _global.CONTROLS.UNLOCK5_4 = true; gameControls.saveControls(_global.CONTROLS); } } break; case 6: switch (this.CURZONEIND) { case 1: if (!_global.CONTROLS.UNLOCK6_1) { _global.CONTROLS.UNLOCK6_1 = true; gameControls.saveControls(_global.CONTROLS); } break; case 2: if (!_global.CONTROLS.UNLOCK6_2) { _global.CONTROLS.UNLOCK6_2 = true; gameControls.saveControls(_global.CONTROLS); } } } }; ASSetPropFlags(_global.SceneManager.prototype, null, 1); } #endinitclip } movieClip 3 __Packages.mx.core.UIObject { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.UIObject) { var v1 = function () { super(); this.constructObject(); }; mx.core.UIObject = v1; var v2 = new MovieClip(); mx.core.UIObject.prototype = v2; v2.__get__width = function () { return this._width; }; v2.__get__height = function () { return this._height; }; v2.__get__left = function () { return this._x; }; v2.__get__x = function () { return this._x; }; v2.__get__top = function () { return this._y; }; v2.__get__y = function () { return this._y; }; v2.__get__right = function () { return this._parent.width - (this._x + this.__get__width()); }; v2.__get__bottom = function () { return this._parent.height - (this._y + this.__get__height()); }; v2.getMinHeight = function (Void) { return this._minHeight; }; v2.setMinHeight = function (h) { this._minHeight = h; }; v2.__get__minHeight = function () { return this.getMinHeight(); }; v2.__set__minHeight = function (h) { this.setMinHeight(h); return this.__get__minHeight(); }; v2.getMinWidth = function (Void) { return this._minWidth; }; v2.setMinWidth = function (w) { this._minWidth = w; }; v2.__get__minWidth = function () { return this.getMinWidth(); }; v2.__set__minWidth = function (w) { this.setMinWidth(w); return this.__get__minWidth(); }; v2.setVisible = function (x, noEvent) { if (x != this._visible) { this._visible = x; if (noEvent != true) { this.dispatchEvent({'type': x ? 'reveal' : 'hide'}); } } }; v2.__get__visible = function () { return this._visible; }; v2.__set__visible = function (x) { this.setVisible(x, false); return this.__get__visible(); }; v2.__get__scaleX = function () { return this._xscale; }; v2.__set__scaleX = function (x) { this._xscale = x; return this.__get__scaleX(); }; v2.__get__scaleY = function () { return this._yscale; }; v2.__set__scaleY = function (y) { this._yscale = y; return this.__get__scaleY(); }; v2.doLater = function (obj, fn) { if (this.methodTable == undefined) { this.methodTable = new Array(); } this.methodTable.push({'obj': obj, 'fn': fn}); this.onEnterFrame = this.doLaterDispatcher; }; v2.doLaterDispatcher = function (Void) { delete this.onEnterFrame; if (this.invalidateFlag) { this.redraw(); } var v3 = this.methodTable; this.methodTable = new Array(); if (v3.length > 0) { var v2; v2 = v3.shift(); while (v2 != undefined) { v2.obj[v2.fn](); } } }; v2.cancelAllDoLaters = function (Void) { delete this.onEnterFrame; this.methodTable = new Array(); }; v2.invalidate = function (Void) { this.invalidateFlag = true; this.onEnterFrame = this.doLaterDispatcher; }; v2.invalidateStyle = function (Void) { this.invalidate(); }; v2.redraw = function (bAlways) { if (this.invalidateFlag || bAlways) { this.invalidateFlag = false; var v2; for (v2 in this.tfList) { this.tfList[v2].draw(); } this.draw(); this.dispatchEvent({'type': 'draw'}); } }; v2.draw = function (Void) {}; v2.move = function (x, y, noEvent) { var v3 = this._x; var v2 = this._y; this._x = x; this._y = y; if (noEvent != true) { this.dispatchEvent({'type': 'move', 'oldX': v3, 'oldY': v2}); } }; v2.setSize = function (w, h, noEvent) { var v2 = this.__width; var v3 = this.__height; this.__width = w; this.__height = h; this.size(); if (noEvent != true) { this.dispatchEvent({'type': 'resize', 'oldWidth': v2, 'oldHeight': v3}); } }; v2.size = function (Void) { this._width = this.__width; this._height = this.__height; }; v2.drawRect = function (x1, y1, x2, y2) { this.moveTo(x1, y1); this.lineTo(x2, y1); this.lineTo(x2, y2); this.lineTo(x1, y2); this.lineTo(x1, y1); }; v2.createLabel = function (name, depth, text) { this.createTextField(name, depth, 0, 0, 0, 0); var v2 = this[name]; v2._color = mx.core.UIObject.textColorList; v2._visible = false; v2.__text = text; if (this.tfList == undefined) { this.tfList = new Object(); } this.tfList[name] = v2; v2.invalidateStyle(); this.invalidate(); v2.styleName = this; return v2; }; v2.createObject = function (linkageName, id, depth, initobj) { return this.attachMovie(linkageName, id, depth, initobj); }; v2.createClassObject = function (className, id, depth, initobj) { var v3 = className.symbolName == undefined; if (v3) { Object.registerClass(className.symbolOwner.symbolName, className); } var v4 = this.createObject(className.symbolOwner.symbolName, id, depth, initobj); if (v3) { Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner); } return v4; }; v2.createEmptyObject = function (id, depth) { return this.createClassObject(mx.core.UIObject, id, depth); }; v2.destroyObject = function (id) { var v2 = this[id]; if (v2.getDepth() < 0) { var v4 = this.buildDepthTable(); var v5 = this.findNextAvailableDepth(0, v4, 'up'); var v3 = v5; v2.swapDepths(v3); } v2.removeMovieClip(); delete this[id]; }; v2.getSkinIDName = function (tag) { return this.idNames[tag]; }; v2.setSkin = function (tag, linkageName, initObj) { if (_global.skinRegistry[linkageName] == undefined) { mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement); } return this.createObject(linkageName, this.getSkinIDName(tag), tag, initObj); }; v2.createSkin = function (tag) { var v2 = this.getSkinIDName(tag); this.createEmptyObject(v2, tag); return this[v2]; }; v2.createChildren = function (Void) {}; v2._createChildren = function (Void) { this.createChildren(); this.childrenCreated = true; }; v2.constructObject = function (Void) { if (this._name == undefined) { return undefined; } this.init(); this._createChildren(); this.createAccessibilityImplementation(); this._endInit(); if (this.validateNow) { this.redraw(true); } else { this.invalidate(); } }; v2.initFromClipParameters = function (Void) { var v4 = false; var v2; for (v2 in this.clipParameters) { if (this.hasOwnProperty(v2)) { v4 = true; this['def_' + v2] = this[v2]; delete this[v2]; } } if (v4) { for (v2 in this.clipParameters) { var v3 = this['def_' + v2]; if (v3 != undefined) { this[v2] = v3; } } } }; v2.init = function (Void) { this.__width = this._width; this.__height = this._height; if (this.initProperties == undefined) { this.initFromClipParameters(); } else { this.initProperties(); } if (_global.cascadingStyles == true) { this.stylecache = new Object(); } }; v2.getClassStyleDeclaration = function (Void) { var v4 = this; var v3 = this.className; while (v3 != undefined) { if (this.ignoreClassStyleDeclaration[v3] == undefined) { if (_global.styles[v3] != undefined) { return _global.styles[v3]; } } v4 = v4.__proto__; v3 = v4.className; } }; v2.setColor = function (color) {}; v2.__getTextFormat = function (tf, bAll) { var v8 = this.stylecache.tf; if (v8 != undefined) { var v3; for (v3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v3]) { if (tf[v3] == undefined) { tf[v3] = v8[v3]; } } } return false; } var v6 = false; for (v3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v3]) { if (tf[v3] == undefined) { var v5 = this._tf[v3]; if (v5 != undefined) { tf[v3] = v5; } else { if (v3 == 'font' && this.fontFamily != undefined) { tf[v3] = this.fontFamily; } else { if (v3 == 'size' && this.fontSize != undefined) { tf[v3] = this.fontSize; } else { if (v3 == 'color' && this.color != undefined) { tf[v3] = this.color; } else { if (v3 == 'leftMargin' && this.marginLeft != undefined) { tf[v3] = this.marginLeft; } else { if (v3 == 'rightMargin' && this.marginRight != undefined) { tf[v3] = this.marginRight; } else { if (v3 == 'italic' && this.fontStyle != undefined) { tf[v3] = this.fontStyle == v3; } else { if (v3 == 'bold' && this.fontWeight != undefined) { tf[v3] = this.fontWeight == v3; } else { if (v3 == 'align' && this.textAlign != undefined) { tf[v3] = this.textAlign; } else { if (v3 == 'indent' && this.textIndent != undefined) { tf[v3] = this.textIndent; } else { if (v3 == 'underline' && this.textDecoration != undefined) { tf[v3] = this.textDecoration == v3; } else { if (v3 == 'embedFonts' && this.embedFonts != undefined) { tf[v3] = this.embedFonts; } else { v6 = true; } } } } } } } } } } } } } } } if (v6) { var v9 = this.styleName; if (v9 != undefined) { if (typeof v9 != 'string') { v6 = v9.__getTextFormat(tf, true, this); } else { if (_global.styles[v9] != undefined) { v6 = _global.styles[v9].__getTextFormat(tf, true, this); } } } } if (v6) { var v10 = this.getClassStyleDeclaration(); if (v10 != undefined) { v6 = v10.__getTextFormat(tf, true, this); } } if (v6) { if (_global.cascadingStyles) { if (this._parent != undefined) { v6 = this._parent.__getTextFormat(tf, false); } } } if (v6) { v6 = _global.style.__getTextFormat(tf, true, this); } return v6; }; v2._getTextFormat = function (Void) { var v2 = this.stylecache.tf; if (v2 != undefined) { return v2; } v2 = new TextFormat(); this.__getTextFormat(v2, true); this.stylecache.tf = v2; if (this.enabled == false) { var v3 = this.getStyle('disabledColor'); v2.color = v3; } return v2; }; v2.getStyleName = function (Void) { var v2 = this.styleName; if (v2 != undefined) { if (typeof v2 != 'string') { return v2.getStyleName(); } else { return v2; } } if (this._parent != undefined) { return this._parent.getStyleName(); } else { return undefined; } }; v2.getStyle = function (styleProp) { var v3; ++_global.getStyleCounter; if (this[styleProp] != undefined) { return this[styleProp]; } var v6 = this.styleName; if (v6 != undefined) { if (typeof v6 != 'string') { v3 = v6.getStyle(styleProp); } else { var v7 = _global.styles[v6]; v3 = v7.getStyle(styleProp); } } if (v3 != undefined) { return v3; } v7 = this.getClassStyleDeclaration(); if (v7 != undefined) { v3 = v7[styleProp]; } if (v3 != undefined) { return v3; } if (_global.cascadingStyles) { if (mx.styles.StyleManager.isInheritingStyle(styleProp) || mx.styles.StyleManager.isColorStyle(styleProp)) { var v5 = this.stylecache; if (v5 != undefined) { if (v5[styleProp] != undefined) { return v5[styleProp]; } } if (this._parent != undefined) { v3 = this._parent.getStyle(styleProp); } else { v3 = _global.style[styleProp]; } if (v5 != undefined) { v5[styleProp] = v3; } return v3; } } if (v3 == undefined) { v3 = _global.style[styleProp]; } return v3; }; v1.mergeClipParameters = function (o, p) { for (var v3 in p) { o[v3] = p[v3]; } return true; }; v1.symbolName = 'UIObject'; v1.symbolOwner = mx.core.UIObject; v1.version = '2.0.2.126'; v1.textColorList = {'color': 1, 'disabledColor': 1}; v2.invalidateFlag = false; v2.lineWidth = 1; v2.lineColor = 0; v2.tabEnabled = false; v2.clipParameters = {'visible': 1, 'minHeight': 1, 'minWidth': 1, 'maxHeight': 1, 'maxWidth': 1, 'preferredHeight': 1, 'preferredWidth': 1}; v2.addProperty('bottom', v2.__get__bottom, function () {}); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('left', v2.__get__left, function () {}); v2.addProperty('minHeight', v2.__get__minHeight, v2.__set__minHeight); v2.addProperty('minWidth', v2.__get__minWidth, v2.__set__minWidth); v2.addProperty('right', v2.__get__right, function () {}); v2.addProperty('scaleX', v2.__get__scaleX, v2.__set__scaleX); v2.addProperty('scaleY', v2.__get__scaleY, v2.__set__scaleY); v2.addProperty('top', v2.__get__top, function () {}); v2.addProperty('visible', v2.__get__visible, v2.__set__visible); v2.addProperty('width', v2.__get__width, function () {}); v2.addProperty('x', v2.__get__x, function () {}); v2.addProperty('y', v2.__get__y, function () {}); ASSetPropFlags(mx.core.UIObject.prototype, null, 1); } #endinitclip } movieClip 4 __Packages.mx.core.UIComponent { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.UIComponent) { var v1 = function () { super(); }; mx.core.UIComponent = v1; var v2 = new mx.core.UIObject(); mx.core.UIComponent.prototype = v2; v2.__get__width = function () { return this.__width; }; v2.__get__height = function () { return this.__height; }; v2.setVisible = function (x, noEvent) { super.setVisible(x, noEvent); }; v2.enabledChanged = function (id, oldValue, newValue) { this.setEnabled(newValue); this.invalidate(); delete this.stylecache.tf; return newValue; }; v2.setEnabled = function (enabled) { this.invalidate(); }; v2.getFocus = function () { var selFocus = Selection.getFocus(); return (selFocus === null) ? null : eval(selFocus); }; v2.setFocus = function () { Selection.setFocus(this); }; v2.getFocusManager = function () { var v2 = this; while (v2 != undefined) { if (v2.focusManager != undefined) { return v2.focusManager; } v2 = v2._parent; } return undefined; }; v2.onKillFocus = function (newFocus) { this.removeEventListener('keyDown', this); this.removeEventListener('keyUp', this); this.dispatchEvent({'type': 'focusOut'}); this.drawFocus(false); }; v2.onSetFocus = function (oldFocus) { this.addEventListener('keyDown', this); this.addEventListener('keyUp', this); this.dispatchEvent({'type': 'focusIn'}); if ((this.getFocusManager()).bDrawFocus != false) { this.drawFocus(true); } }; v2.findFocusInChildren = function (o) { if (o.focusTextField != undefined) { return o.focusTextField; } if (o.tabEnabled == true) { return o; } return undefined; }; v2.findFocusFromObject = function (o) { if (o.tabEnabled != true) { if (o._parent == undefined) { return undefined; } if (o._parent.tabEnabled == true) { o = o._parent; return o; } if (o._parent.tabChildren) { o = this.findFocusInChildren(o._parent); return o; } o = this.findFocusFromObject(o._parent); } return o; }; v2.pressFocus = function () { var v3 = this.findFocusFromObject(this); var v2 = this.getFocus(); if (v3 != v2) { v2.drawFocus(false); if ((this.getFocusManager()).bDrawFocus != false) { v3.drawFocus(true); } } }; v2.releaseFocus = function () { var v2 = this.findFocusFromObject(this); if (v2 != this.getFocus()) { v2.setFocus(); } }; v2.isParent = function (o) { while (o != undefined) { if (o == this) { return true; } o = o._parent; } return false; }; v2.size = function () {}; v2.init = function () { super.init(); this._xscale = 100; this._yscale = 100; this._focusrect = _global.useFocusRect == false; this.watch('enabled', this.enabledChanged); if (this.enabled == false) { this.setEnabled(false); } }; v2.dispatchValueChangedEvent = function (value) { this.dispatchEvent({'type': 'valueChanged', 'value': value}); }; v1.symbolName = 'UIComponent'; v1.symbolOwner = mx.core.UIComponent; v1.version = '2.0.2.126'; v1.kStretch = 5000; v2.focusEnabled = true; v2.tabEnabled = true; v2.origBorderStyles = {'themeColor': 16711680}; v2.clipParameters = {}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('width', v2.__get__width, function () {}); ASSetPropFlags(mx.core.UIComponent.prototype, null, 1); } #endinitclip } movieClip 5 __Packages.mx.controls.TextInput { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.TextInput) { var v1 = function () { super(); }; mx.controls.TextInput = v1; var v2 = new mx.core.UIComponent(); mx.controls.TextInput.prototype = v2; v2.addEventListener = function (event, handler) { if (event == 'enter') { this.addEnterEvents(); } super.addEventListener(event, handler); }; v2.enterOnKeyDown = function () { if (Key.getAscii() == 13) { this.owner.dispatchEvent({'type': 'enter'}); } }; v2.addEnterEvents = function () { if (this.enterListener == undefined) { this.enterListener = new Object(); this.enterListener.owner = this; this.enterListener.onKeyDown = this.enterOnKeyDown; } }; v2.init = function (Void) { super.init(); this.label.styleName = this; this.tabChildren = true; this.tabEnabled = false; this.focusTextField = this.label; this._color = mx.core.UIObject.textColorList; this.label.onSetFocus = function () { this._parent.onSetFocus(); }; this.label.onKillFocus = function (n) { this._parent.onKillFocus(n); }; this.label.drawFocus = function (b) { this._parent.drawFocus(b); }; this.label.onChanged = this.onLabelChanged; }; v2.setFocus = function () { Selection.setFocus(this.label); }; v2.onLabelChanged = function (Void) { this._parent.dispatchEvent({'type': 'change'}); this._parent.dispatchValueChangedEvent(this.__get__text()); }; v2.createChildren = function (Void) { super.createChildren(); if (this.border_mc == undefined) { this.createClassObject(_global.styles.rectBorderClass, 'border_mc', 0, {'styleName': this}); } this.border_mc.swapDepths(this.label); this.label.autoSize = 'none'; }; v2.__get__html = function () { return this.getHtml(); }; v2.__set__html = function (value) { this.setHtml(value); return this.__get__html(); }; v2.getHtml = function () { return this.label.html; }; v2.setHtml = function (value) { if (value != this.label.html) { this.label.html = value; } }; v2.__get__text = function () { return this.getText(); }; v2.__set__text = function (t) { this.setText(t); return this.__get__text(); }; v2.getText = function () { if (this.initializing) { return this.initText; } if (this.label.html == true) { return this.label.htmlText; } return this.label.text; }; v2.setText = function (t) { if (this.initializing) { this.initText = t; } else { var v2 = this.label; if (v2.html == true) { v2.htmlText = t; } else { v2.text = t; } } this.dispatchValueChangedEvent(t); }; v2.size = function (Void) { this.border_mc.setSize(this.__get__width(), this.__get__height()); var v2 = this.border_mc.__get__borderMetrics(); var v6 = v2.left + v2.right; var v3 = v2.top + v2.bottom; var v5 = v2.left; var v4 = v2.top; this.tfx = v5; this.tfy = v4; this.tfw = this.__get__width() - v6; this.tfh = this.__get__height() - v3; this.label.move(this.tfx, this.tfy); this.label.setSize(this.tfw, this.tfh + 1); }; v2.setEnabled = function (enable) { this.label.type = (this.__editable == true || enable == false) ? 'input' : 'dynamic'; this.label.selectable = enable; var v2 = this.getStyle(enable ? 'color' : 'disabledColor'); if (v2 == undefined) { v2 = enable ? 0 : 8947848; } this.setColor(v2); }; v2.setColor = function (col) { this.label.textColor = col; }; v2.onKillFocus = function (newFocus) { if (this.enterListener != undefined) { Key.removeListener(this.enterListener); } if (this.bind != undefined) { this.updateModel(this.__get__text()); } super.onKillFocus(newFocus); }; v2.onSetFocus = function (oldFocus) { var f = Selection.getFocus(); var o = eval(f); if (o != this.label) { Selection.setFocus(this.label); return undefined; } if (this.enterListener != undefined) { Key.addListener(this.enterListener); } super.onSetFocus(oldFocus); }; v2.draw = function (Void) { var v2 = this.label; var v4 = this.getText(); if (this.initializing) { this.initializing = false; delete this.initText; } var v3 = this._getTextFormat(); v2.embedFonts = v3.embedFonts == true; if (v3 != undefined) { v2.setTextFormat(v3); v2.setNewTextFormat(v3); } v2.multiline = false; v2.wordWrap = false; if (v2.html == true) { v2.setTextFormat(v3); v2.htmlText = v4; } else { v2.text = v4; } v2.type = (this.__editable == true || this.enabled == false) ? 'input' : 'dynamic'; this.size(); }; v2.setEditable = function (s) { this.__editable = s; this.label.type = s ? 'input' : 'dynamic'; }; v2.__get__maxChars = function () { return this.label.maxChars; }; v2.__set__maxChars = function (w) { this.label.maxChars = w; return this.__get__maxChars(); }; v2.__get__length = function () { return this.label.length; }; v2.__get__restrict = function () { return this.label.restrict; }; v2.__set__restrict = function (w) { this.label.restrict = (w == '') ? null : w; return this.__get__restrict(); }; v2.__get__hPosition = function () { return this.label.hscroll; }; v2.__set__hPosition = function (w) { this.label.hscroll = w; return this.__get__hPosition(); }; v2.__get__maxHPosition = function () { return this.label.maxhscroll; }; v2.__get__editable = function () { return this.__editable; }; v2.__set__editable = function (w) { this.setEditable(w); return this.__get__editable(); }; v2.__get__password = function () { return this.label.password; }; v2.__set__password = function (w) { this.label.password = w; return this.__get__password(); }; v2.__get__tabIndex = function () { return this.label.tabIndex; }; v2.__set__tabIndex = function (w) { this.label.tabIndex = w; return this.__get__tabIndex(); }; v2.__set___accProps = function (val) { this.label._accProps = val; return this.__get___accProps(); }; v2.__get___accProps = function () { return this.label._accProps; }; v1.symbolName = 'TextInput'; v1.symbolOwner = mx.controls.TextInput; v1.version = '2.0.2.126'; v2.className = 'TextInput'; v2.initializing = true; v2.clipParameters = {'text': 1, 'editable': 1, 'password': 1, 'maxChars': 1, 'restrict': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextInput.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters); v2._maxWidth = mx.core.UIComponent.kStretch; v2.__editable = true; v2.initText = ''; v2.addProperty('_accProps', v2.__get___accProps, v2.__set___accProps); v2.addProperty('editable', v2.__get__editable, v2.__set__editable); v2.addProperty('hPosition', v2.__get__hPosition, v2.__set__hPosition); v2.addProperty('html', v2.__get__html, v2.__set__html); v2.addProperty('length', v2.__get__length, function () {}); v2.addProperty('maxChars', v2.__get__maxChars, v2.__set__maxChars); v2.addProperty('maxHPosition', v2.__get__maxHPosition, function () {}); v2.addProperty('password', v2.__get__password, v2.__set__password); v2.addProperty('restrict', v2.__get__restrict, v2.__set__restrict); v2.addProperty('tabIndex', v2.__get__tabIndex, v2.__set__tabIndex); v2.addProperty('text', v2.__get__text, v2.__set__text); ASSetPropFlags(mx.controls.TextInput.prototype, null, 1); } #endinitclip } movieClip 24 __Packages.mx.skins.SkinElement { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.SkinElement) { var v1 = function () { super(); }; mx.skins.SkinElement = v1; var v2 = new MovieClip(); mx.skins.SkinElement.prototype = v2; v1.registerElement = function (name, className) { Object.registerClass(name, (className == undefined) ? mx.skins.SkinElement : className); _global.skinRegistry[name] = true; }; v2.__set__visible = function (visible) { this._visible = visible; }; v2.move = function (x, y) { this._x = x; this._y = y; }; v2.setSize = function (w, h) { this._width = w; this._height = h; }; ASSetPropFlags(mx.skins.SkinElement.prototype, null, 1); } #endinitclip } movieClip 25 __Packages.mx.styles.CSSTextStyles { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.CSSTextStyles) { var v1 = function () {}; mx.styles.CSSTextStyles = v1; var v2 = v1.prototype; v1.addTextStyles = function (o, bColor) { o.addProperty('textAlign', function () { return this._tf.align; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.align = x; }); o.addProperty('fontWeight', function () { return (this._tf.bold != undefined) ? (this._tf.bold ? 'bold' : 'none') : undefined; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.bold = x == 'bold'; }); if (bColor) { o.addProperty('color', function () { return this._tf.color; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.color = x; }); } o.addProperty('fontFamily', function () { return this._tf.font; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.font = x; }); o.addProperty('textIndent', function () { return this._tf.indent; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.indent = x; }); o.addProperty('fontStyle', function () { return (this._tf.italic != undefined) ? (this._tf.italic ? 'italic' : 'none') : undefined; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.italic = x == 'italic'; }); o.addProperty('marginLeft', function () { return this._tf.leftMargin; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.leftMargin = x; }); o.addProperty('marginRight', function () { return this._tf.rightMargin; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.rightMargin = x; }); o.addProperty('fontSize', function () { return this._tf.size; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.size = x; }); o.addProperty('textDecoration', function () { return (this._tf.underline != undefined) ? (this._tf.underline ? 'underline' : 'none') : undefined; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.underline = x == 'underline'; }); o.addProperty('embedFonts', function () { return this._tf.embedFonts; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.embedFonts = x; }); }; ASSetPropFlags(mx.styles.CSSTextStyles.prototype, null, 1); } #endinitclip } movieClip 26 __Packages.mx.styles.StyleManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.StyleManager) { var v1 = function () {}; mx.styles.StyleManager = v1; var v2 = v1.prototype; v1.registerInheritingStyle = function (styleName) { mx.styles.StyleManager.inheritingStyles[styleName] = true; }; v1.isInheritingStyle = function (styleName) { return mx.styles.StyleManager.inheritingStyles[styleName] == true; }; v1.registerColorStyle = function (styleName) { mx.styles.StyleManager.colorStyles[styleName] = true; }; v1.isColorStyle = function (styleName) { return mx.styles.StyleManager.colorStyles[styleName] == true; }; v1.registerColorName = function (colorName, colorValue) { mx.styles.StyleManager.colorNames[colorName] = colorValue; }; v1.isColorName = function (colorName) { return mx.styles.StyleManager.colorNames[colorName] != undefined; }; v1.getColorName = function (colorName) { return mx.styles.StyleManager.colorNames[colorName]; }; v1.inheritingStyles = {'color': true, 'direction': true, 'fontFamily': true, 'fontSize': true, 'fontStyle': true, 'fontWeight': true, 'textAlign': true, 'textIndent': true}; v1.colorStyles = {'barColor': true, 'trackColor': true, 'borderColor': true, 'buttonColor': true, 'color': true, 'dateHeaderColor': true, 'dateRollOverColor': true, 'disabledColor': true, 'fillColor': true, 'highlightColor': true, 'scrollTrackColor': true, 'selectedDateColor': true, 'shadowColor': true, 'strokeColor': true, 'symbolBackgroundColor': true, 'symbolBackgroundDisabledColor': true, 'symbolBackgroundPressedColor': true, 'symbolColor': true, 'symbolDisabledColor': true, 'themeColor': true, 'todayIndicatorColor': true, 'shadowCapColor': true, 'borderCapColor': true, 'focusColor': true}; v1.colorNames = {'black': 0, 'white': 16777215, 'red': 16711680, 'green': 65280, 'blue': 255, 'magenta': 16711935, 'yellow': 16776960, 'cyan': 65535, 'haloGreen': 8453965, 'haloBlue': 2881013, 'haloOrange': 16761344}; v1.TextFormatStyleProps = {'font': true, 'size': true, 'color': true, 'leftMargin': false, 'rightMargin': false, 'italic': true, 'bold': true, 'align': true, 'indent': true, 'underline': false, 'embedFonts': false}; v1.TextStyleMap = {'textAlign': true, 'fontWeight': true, 'color': true, 'fontFamily': true, 'textIndent': true, 'fontStyle': true, 'lineHeight': true, 'marginLeft': true, 'marginRight': true, 'fontSize': true, 'textDecoration': true, 'embedFonts': true}; ASSetPropFlags(mx.styles.StyleManager.prototype, null, 1); } #endinitclip } movieClip 27 __Packages.mx.styles.CSSStyleDeclaration { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.CSSStyleDeclaration) { var v1 = function () {}; mx.styles.CSSStyleDeclaration = v1; var v2 = v1.prototype; v2.__getTextFormat = function (tf, bAll) { var v5 = false; if (this._tf != undefined) { var v2; for (v2 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v2]) { if (tf[v2] == undefined) { var v3 = this._tf[v2]; if (v3 != undefined) { tf[v2] = v3; } else { v5 = true; } } } } return v5; } v5 = true; return v5; }; v2.getStyle = function (styleProp) { var v2 = this[styleProp]; var v3 = mx.styles.StyleManager.getColorName(v2); return (v3 == undefined) ? v2 : v3; }; v1.classConstruct = function () { mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true); return true; }; v1.classConstructed = mx.styles.CSSStyleDeclaration.classConstruct(); v1.CSSTextStylesDependency = mx.styles.CSSTextStyles; ASSetPropFlags(mx.styles.CSSStyleDeclaration.prototype, null, 1); } #endinitclip } movieClip 28 __Packages.mx.skins.Border { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.Border) { var v1 = function () { super(); }; mx.skins.Border = v1; var v2 = new mx.core.UIObject(); mx.skins.Border.prototype = v2; v2.init = function (Void) { super.init(); }; v1.symbolName = 'Border'; v1.symbolOwner = mx.skins.Border; v2.className = 'Border'; v2.tagBorder = 0; v2.idNames = new Array('border_mc'); ASSetPropFlags(mx.skins.Border.prototype, null, 1); } #endinitclip } movieClip 29 __Packages.mx.skins.RectBorder { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.RectBorder) { var v1 = function () { super(); }; mx.skins.RectBorder = v1; var v2 = new mx.skins.Border(); mx.skins.RectBorder.prototype = v2; v2.__get__width = function () { return this.__width; }; v2.__get__height = function () { return this.__height; }; v2.init = function (Void) { super.init(); }; v2.draw = function (Void) { this.size(); }; v2.getBorderMetrics = function (Void) { var v2 = this.offset; if (this.__borderMetrics == undefined) { this.__borderMetrics = {'left': v2, 'top': v2, 'right': v2, 'bottom': v2}; return this.__borderMetrics; } this.__borderMetrics.left = v2; this.__borderMetrics.top = v2; this.__borderMetrics.right = v2; this.__borderMetrics.bottom = v2; return this.__borderMetrics; }; v2.__get__borderMetrics = function () { return this.getBorderMetrics(); }; v2.drawBorder = function (Void) {}; v2.size = function (Void) { this.drawBorder(); }; v2.setColor = function (Void) { this.drawBorder(); }; v1.symbolName = 'RectBorder'; v1.symbolOwner = mx.skins.RectBorder; v1.version = '2.0.2.126'; v2.className = 'RectBorder'; v2.borderStyleName = 'borderStyle'; v2.borderColorName = 'borderColor'; v2.shadowColorName = 'shadowColor'; v2.highlightColorName = 'highlightColor'; v2.buttonColorName = 'buttonColor'; v2.backgroundColorName = 'backgroundColor'; v2.addProperty('borderMetrics', v2.__get__borderMetrics, function () {}); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('width', v2.__get__width, function () {}); ASSetPropFlags(mx.skins.RectBorder.prototype, null, 1); } #endinitclip } movieClip 30 __Packages.mx.events.EventDispatcher { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.events) { _global.mx.events = new Object(); } if (!_global.mx.events.EventDispatcher) { var v1 = function () {}; mx.events.EventDispatcher = v1; var v2 = v1.prototype; v1._removeEventListener = function (queue, event, handler) { if (queue != undefined) { var v4 = queue.length; var v1; v1 = 0; while (v1 < v4) { var v2 = queue[v1]; if (v2 == handler) { queue.splice(v1, 1); return undefined; } ++v1; } } }; v1.initialize = function (object) { if (mx.events.EventDispatcher._fEventDispatcher == undefined) { mx.events.EventDispatcher._fEventDispatcher = new mx.events.EventDispatcher(); } object.addEventListener = mx.events.EventDispatcher._fEventDispatcher.addEventListener; object.removeEventListener = mx.events.EventDispatcher._fEventDispatcher.removeEventListener; object.dispatchEvent = mx.events.EventDispatcher._fEventDispatcher.dispatchEvent; object.dispatchQueue = mx.events.EventDispatcher._fEventDispatcher.dispatchQueue; }; v2.dispatchQueue = function (queueObj, eventObj) { var v7 = '__q_' + eventObj.type; var v4 = queueObj[v7]; if (v4 != undefined) { var v5; for (v5 in v4) { var v1 = v4[v5]; var v3 = typeof v1; if (v3 == 'object' || v3 == 'movieclip') { if (v1.handleEvent != undefined) { v1.handleEvent(eventObj); } if (v1[eventObj.type] != undefined) { if (mx.events.EventDispatcher.exceptions[eventObj.type] == undefined) { v1[eventObj.type](eventObj); } } } else { v1.apply(queueObj, [eventObj]); } } } }; v2.dispatchEvent = function (eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + 'Handler'](eventObj); this.dispatchQueue(this, eventObj); }; v2.addEventListener = function (event, handler) { var v3 = '__q_' + event; if (this[v3] == undefined) { this[v3] = new Array(); } _global.ASSetPropFlags(this, v3, 1); mx.events.EventDispatcher._removeEventListener(this[v3], event, handler); this[v3].push(handler); }; v2.removeEventListener = function (event, handler) { var v2 = '__q_' + event; mx.events.EventDispatcher._removeEventListener(this[v2], event, handler); }; v1._fEventDispatcher = undefined; v1.exceptions = {'move': 1, 'draw': 1, 'load': 1}; ASSetPropFlags(mx.events.EventDispatcher.prototype, null, 1); } #endinitclip } movieClip 31 __Packages.mx.events.UIEventDispatcher { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.events) { _global.mx.events = new Object(); } if (!_global.mx.events.UIEventDispatcher) { var v1 = function () { super(); }; mx.events.UIEventDispatcher = v1; var v2 = new mx.events.EventDispatcher(); mx.events.UIEventDispatcher.prototype = v2; v1.addKeyEvents = function (obj) { if (obj.keyHandler == undefined) { obj.keyHandler = new Object(); var v1 = obj.keyHandler; v1.owner = obj; v1.onKeyDown = mx.events.UIEventDispatcher._fEventDispatcher.onKeyDown; v1.onKeyUp = mx.events.UIEventDispatcher._fEventDispatcher.onKeyUp; } Key.addListener(obj.keyHandler); }; v1.removeKeyEvents = function (obj) { Key.removeListener(obj.keyHandler); }; v1.addLoadEvents = function (obj) { if (obj.onLoad == undefined) { obj.onLoad = mx.events.UIEventDispatcher._fEventDispatcher.onLoad; obj.onUnload = mx.events.UIEventDispatcher._fEventDispatcher.onUnload; if (obj.getBytesTotal() == obj.getBytesLoaded()) { obj.doLater(obj, 'onLoad'); } } }; v1.removeLoadEvents = function (obj) { delete obj.onLoad; delete obj.onUnload; }; v1.initialize = function (obj) { if (mx.events.UIEventDispatcher._fEventDispatcher == undefined) { mx.events.UIEventDispatcher._fEventDispatcher = new mx.events.UIEventDispatcher(); } obj.addEventListener = mx.events.UIEventDispatcher._fEventDispatcher.__addEventListener; obj.__origAddEventListener = mx.events.UIEventDispatcher._fEventDispatcher.addEventListener; obj.removeEventListener = mx.events.UIEventDispatcher._fEventDispatcher.removeEventListener; obj.dispatchEvent = mx.events.UIEventDispatcher._fEventDispatcher.dispatchEvent; obj.dispatchQueue = mx.events.UIEventDispatcher._fEventDispatcher.dispatchQueue; }; v2.dispatchEvent = function (eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + 'Handler'](eventObj); this.dispatchQueue(mx.events.EventDispatcher, eventObj); this.dispatchQueue(this, eventObj); }; v2.onKeyDown = function (Void) { this.owner.dispatchEvent({'type': 'keyDown', 'code': Key.getCode(), 'ascii': Key.getAscii(), 'shiftKey': Key.isDown(16), 'ctrlKey': Key.isDown(17)}); }; v2.onKeyUp = function (Void) { this.owner.dispatchEvent({'type': 'keyUp', 'code': Key.getCode(), 'ascii': Key.getAscii(), 'shiftKey': Key.isDown(16), 'ctrlKey': Key.isDown(17)}); }; v2.onLoad = function (Void) { if (this.__sentLoadEvent != true) { this.dispatchEvent({'type': 'load'}); } this.__sentLoadEvent = true; }; v2.onUnload = function (Void) { this.dispatchEvent({'type': 'unload'}); }; v2.__addEventListener = function (event, handler) { this.__origAddEventListener(event, handler); var v3 = mx.events.UIEventDispatcher.lowLevelEvents; for (var v5 in v3) { if (mx.events.UIEventDispatcher[v5][event] != undefined) { var v2 = v3[v5][0]; mx.events.UIEventDispatcher[v2](this); } } }; v2.removeEventListener = function (event, handler) { var v6 = '__q_' + event; mx.events.EventDispatcher._removeEventListener(this[v6], event, handler); if (this[v6].length == 0) { var v2 = mx.events.UIEventDispatcher.lowLevelEvents; for (var v5 in v2) { if (mx.events.UIEventDispatcher[v5][event] != undefined) { var v3 = v2[v5][1]; mx.events.UIEventDispatcher[v2[v5][1]](this); } } } }; v1.keyEvents = {'keyDown': 1, 'keyUp': 1}; v1.loadEvents = {'load': 1, 'unload': 1}; v1.lowLevelEvents = {'keyEvents': ['addKeyEvents', 'removeKeyEvents'], 'loadEvents': ['addLoadEvents', 'removeLoadEvents']}; v1._fEventDispatcher = undefined; ASSetPropFlags(mx.events.UIEventDispatcher.prototype, null, 1); } #endinitclip } movieClip 32 __Packages.mx.skins.ColoredSkinElement { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.ColoredSkinElement) { var v1 = function () {}; mx.skins.ColoredSkinElement = v1; var v2 = v1.prototype; v2.setColor = function (c) { if (c != undefined) { var v2 = new Color(this); v2.setRGB(c); } }; v2.draw = function (Void) { this.setColor(this.getStyle(this._color)); this.onEnterFrame = undefined; }; v2.invalidateStyle = function (Void) { this.onEnterFrame = this.draw; }; v1.setColorStyle = function (p, colorStyle) { if (p._color == undefined) { p._color = colorStyle; } p.setColor = mx.skins.ColoredSkinElement.mixins.setColor; p.invalidateStyle = mx.skins.ColoredSkinElement.mixins.invalidateStyle; p.draw = mx.skins.ColoredSkinElement.mixins.draw; p.setColor(p.getStyle(colorStyle)); }; v1.mixins = new mx.skins.ColoredSkinElement(); ASSetPropFlags(mx.skins.ColoredSkinElement.prototype, null, 1); } #endinitclip } movieClip 33 __Packages.mx.core.ext.UIObjectExtensions { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.ext) { _global.mx.core.ext = new Object(); } if (!_global.mx.core.ext.UIObjectExtensions) { var v1 = function () {}; mx.core.ext.UIObjectExtensions = v1; var v2 = v1.prototype; v1.addGeometry = function (tf, ui) { tf.addProperty('width', ui.__get__width, null); tf.addProperty('height', ui.__get__height, null); tf.addProperty('left', ui.__get__left, null); tf.addProperty('x', ui.__get__x, null); tf.addProperty('top', ui.__get__top, null); tf.addProperty('y', ui.__get__y, null); tf.addProperty('right', ui.__get__right, null); tf.addProperty('bottom', ui.__get__bottom, null); tf.addProperty('visible', ui.__get__visible, ui.__set__visible); }; v1.Extensions = function () { if (mx.core.ext.UIObjectExtensions.bExtended == true) { return true; } mx.core.ext.UIObjectExtensions.bExtended = true; var v6 = mx.core.UIObject.prototype; var v9 = mx.skins.SkinElement.prototype; mx.core.ext.UIObjectExtensions.addGeometry(v9, v6); mx.events.UIEventDispatcher.initialize(v6); var v13 = mx.skins.ColoredSkinElement; mx.styles.CSSTextStyles.addTextStyles(v6); var v5 = MovieClip.prototype; v5.getTopLevel = v6.getTopLevel; v5.createLabel = v6.createLabel; v5.createObject = v6.createObject; v5.createClassObject = v6.createClassObject; v5.createEmptyObject = v6.createEmptyObject; v5.destroyObject = v6.destroyObject; _global.ASSetPropFlags(v5, 'getTopLevel', 1); _global.ASSetPropFlags(v5, 'createLabel', 1); _global.ASSetPropFlags(v5, 'createObject', 1); _global.ASSetPropFlags(v5, 'createClassObject', 1); _global.ASSetPropFlags(v5, 'createEmptyObject', 1); _global.ASSetPropFlags(v5, 'destroyObject', 1); v5.__getTextFormat = v6.__getTextFormat; v5._getTextFormat = v6._getTextFormat; v5.getStyleName = v6.getStyleName; v5.getStyle = v6.getStyle; _global.ASSetPropFlags(v5, '__getTextFormat', 1); _global.ASSetPropFlags(v5, '_getTextFormat', 1); _global.ASSetPropFlags(v5, 'getStyleName', 1); _global.ASSetPropFlags(v5, 'getStyle', 1); var v7 = TextField.prototype; mx.core.ext.UIObjectExtensions.addGeometry(v7, v6); v7.addProperty('enabled', function () { return this.__enabled; }, function (x) { this.__enabled = x; this.invalidateStyle(); }); v7.move = v9.move; v7.setSize = v9.setSize; v7.invalidateStyle = function () { this.invalidateFlag = true; }; v7.draw = function () { if (this.invalidateFlag) { this.invalidateFlag = false; var v2 = this._getTextFormat(); this.setTextFormat(v2); this.setNewTextFormat(v2); this.embedFonts = v2.embedFonts == true; if (this.__text != undefined) { if (this.text == '') { this.text = this.__text; } delete this.__text; } this._visible = true; } }; v7.setColor = function (color) { this.textColor = color; }; v7.getStyle = v5.getStyle; v7.__getTextFormat = v6.__getTextFormat; v7.setValue = function (v) { this.text = v; }; v7.getValue = function () { return this.text; }; v7.addProperty('value', function () { return this.getValue(); }, function (v) { this.setValue(v); }); v7._getTextFormat = function () { var v2 = this.stylecache.tf; if (v2 != undefined) { return v2; } v2 = new TextFormat(); this.__getTextFormat(v2); this.stylecache.tf = v2; if (this.__enabled == false) { if (this.enabledColor == undefined) { var v4 = this.getTextFormat(); this.enabledColor = v4.color; } var v3 = this.getStyle('disabledColor'); v2.color = v3; return v2; } if (this.enabledColor != undefined) { if (v2.color == undefined) { v2.color = this.enabledColor; } } return v2; }; v7.getPreferredWidth = function () { this.draw(); return this.textWidth + 4; }; v7.getPreferredHeight = function () { this.draw(); return this.textHeight + 4; }; TextFormat.prototype.getTextExtent2 = function (s) { var v3 = _root._getTextExtent; if (v3 == undefined) { _root.createTextField('_getTextExtent', -2, 0, 0, 1000, 100); v3 = _root._getTextExtent; v3._visible = false; } _root._getTextExtent.text = s; var v4 = this.align; this.align = 'left'; _root._getTextExtent.setTextFormat(this); this.align = v4; return {'width': v3.textWidth, 'height': v3.textHeight}; }; if (_global.style == undefined) { _global.style = new mx.styles.CSSStyleDeclaration(); _global.cascadingStyles = true; _global.styles = new Object(); _global.skinRegistry = new Object(); if (_global._origWidth == undefined) { _global.origWidth = Stage.width; _global.origHeight = Stage.height; } } var v4 = _root; while (v4._parent != undefined) { v4 = v4._parent; } v4.addProperty('width', function () { return Stage.width; }, null); v4.addProperty('height', function () { return Stage.height; }, null); _global.ASSetPropFlags(v4, 'width', 1); _global.ASSetPropFlags(v4, 'height', 1); return true; }; v1.bExtended = false; v1.UIObjectExtended = mx.core.ext.UIObjectExtensions.Extensions(); v1.UIObjectDependency = mx.core.UIObject; v1.SkinElementDependency = mx.skins.SkinElement; v1.CSSTextStylesDependency = mx.styles.CSSTextStyles; v1.UIEventDispatcherDependency = mx.events.UIEventDispatcher; ASSetPropFlags(mx.core.ext.UIObjectExtensions.prototype, null, 1); } #endinitclip } movieClip 34 __Packages.mx.skins.halo.RectBorder { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.RectBorder) { var v1 = function () { super(); }; mx.skins.halo.RectBorder = v1; var v2 = new mx.skins.RectBorder(); mx.skins.halo.RectBorder.prototype = v2; v2.init = function (Void) { this.borderWidths.default = 3; super.init(); }; v2.getBorderMetrics = function (Void) { if (this.offset == undefined) { var v3 = this.getStyle(this.borderStyleName); this.offset = this.borderWidths[v3]; } if (this.getStyle(this.borderStyleName) == 'default' || this.getStyle(this.borderStyleName) == 'alert') { this.__borderMetrics = {'left': 3, 'top': 1, 'right': 3, 'bottom': 3}; return this.__borderMetrics; } return super.getBorderMetrics(); }; v2.drawBorder = function (Void) { var v6 = _global.styles[this.className]; if (v6 == undefined) { v6 = _global.styles.RectBorder; } var v5 = this.getStyle(this.borderStyleName); var v7 = this.getStyle(this.borderColorName); if (v7 == undefined) { v7 = v6[this.borderColorName]; } var v8 = this.getStyle(this.backgroundColorName); if (v8 == undefined) { v8 = v6[this.backgroundColorName]; } var v16 = this.getStyle('backgroundImage'); if (v5 != 'none') { var v14 = this.getStyle(this.shadowColorName); if (v14 == undefined) { v14 = v6[this.shadowColorName]; } var v13 = this.getStyle(this.highlightColorName); if (v13 == undefined) { v13 = v6[this.highlightColorName]; } var v12 = this.getStyle(this.buttonColorName); if (v12 == undefined) { v12 = v6[this.buttonColorName]; } var v11 = this.getStyle(this.borderCapColorName); if (v11 == undefined) { v11 = v6[this.borderCapColorName]; } var v10 = this.getStyle(this.shadowCapColorName); if (v10 == undefined) { v10 = v6[this.shadowCapColorName]; } } this.offset = this.borderWidths[v5]; var v9 = this.offset; var v3 = this.__get__width(); var v4 = this.__get__height(); this.clear(); this._color = undefined; if (v5 == 'none') { } else { if (v5 == 'inset') { this._color = this.colorList; this.draw3dBorder(v11, v12, v7, v13, v14, v10); } else { if (v5 == 'outset') { this._color = this.colorList; this.draw3dBorder(v11, v7, v12, v14, v13, v10); } else { if (v5 == 'alert') { var v15 = this.getStyle('themeColor'); this.drawRoundRect(0, 5, v3, v4 - 5, 5, 6184542, 10); this.drawRoundRect(1, 4, v3 - 2, v4 - 5, 4, [6184542, 6184542], 10, 0, 'radial'); this.drawRoundRect(2, 0, v3 - 4, v4 - 2, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(2, 0, v3 - 4, v4 - 2, 3, v15, 50); this.drawRoundRect(3, 1, v3 - 6, v4 - 4, 2, 16777215, 100); } else { if (v5 == 'default') { this.drawRoundRect(0, 5, v3, v4 - 5, {'tl': 5, 'tr': 5, 'br': 0, 'bl': 0}, 6184542, 10); this.drawRoundRect(1, 4, v3 - 2, v4 - 5, {'tl': 4, 'tr': 4, 'br': 0, 'bl': 0}, [6184542, 6184542], 10, 0, 'radial'); this.drawRoundRect(2, 0, v3 - 4, v4 - 2, {'tl': 3, 'tr': 3, 'br': 0, 'bl': 0}, [12897484, 11844796], 100, 0, 'radial'); this.drawRoundRect(3, 1, v3 - 6, v4 - 4, {'tl': 2, 'tr': 2, 'br': 0, 'bl': 0}, 16777215, 100); } else { if (v5 == 'dropDown') { this.drawRoundRect(0, 0, v3 + 1, v4, {'tl': 4, 'tr': 0, 'br': 0, 'bl': 4}, [13290186, 7895160], 100, -10, 'linear'); this.drawRoundRect(1, 1, v3 - 1, v4 - 2, {'tl': 3, 'tr': 0, 'br': 0, 'bl': 3}, 16777215, 100); } else { if (v5 == 'menuBorder') { var v15 = this.getStyle('themeColor'); this.drawRoundRect(4, 4, v3 - 2, v4 - 3, 0, [6184542, 6184542], 10, 0, 'radial'); this.drawRoundRect(4, 4, v3 - 1, v4 - 2, 0, 6184542, 10); this.drawRoundRect(0, 0, v3 + 1, v4, 0, [0, 14342874], 100, 250, 'linear'); this.drawRoundRect(0, 0, v3 + 1, v4, 0, v15, 50); this.drawRoundRect(2, 2, v3 - 3, v4 - 4, 0, 16777215, 100); } else { if (v5 == 'comboNonEdit') { } else { this.beginFill(v7); this.drawRect(0, 0, v3, v4); this.drawRect(1, 1, v3 - 1, v4 - 1); this.endFill(); this._color = this.borderColorName; } } } } } } } } if (v8 != undefined) { this.beginFill(v8); this.drawRect(v9, v9, this.__get__width() - v9, this.__get__height() - v9); this.endFill(); } }; v2.draw3dBorder = function (c1, c2, c3, c4, c5, c6) { var v3 = this.__get__width(); var v2 = this.__get__height(); this.beginFill(c1); this.drawRect(0, 0, v3, v2); this.drawRect(1, 0, v3 - 1, v2); this.endFill(); this.beginFill(c2); this.drawRect(1, 0, v3 - 1, 1); this.endFill(); this.beginFill(c3); this.drawRect(1, v2 - 1, v3 - 1, v2); this.endFill(); this.beginFill(c4); this.drawRect(1, 1, v3 - 1, 2); this.endFill(); this.beginFill(c5); this.drawRect(1, v2 - 2, v3 - 1, v2 - 1); this.endFill(); this.beginFill(c6); this.drawRect(1, 2, v3 - 1, v2 - 2); this.drawRect(2, 2, v3 - 2, v2 - 2); this.endFill(); }; v1.classConstruct = function () { mx.core.ext.UIObjectExtensions.Extensions(); _global.styles.rectBorderClass = mx.skins.halo.RectBorder; _global.skinRegistry.RectBorder = true; return true; }; v1.symbolName = 'RectBorder'; v1.symbolOwner = mx.skins.halo.RectBorder; v1.version = '2.0.2.126'; v2.borderCapColorName = 'borderCapColor'; v2.shadowCapColorName = 'shadowCapColor'; v2.colorList = {'highlightColor': 0, 'borderColor': 0, 'buttonColor': 0, 'shadowColor': 0, 'borderCapColor': 0, 'shadowCapColor': 0}; v2.borderWidths = {'none': 0, 'solid': 1, 'inset': 2, 'outset': 2, 'alert': 3, 'dropDown': 2, 'menuBorder': 2, 'comboNonEdit': 2}; v1.classConstructed = mx.skins.halo.RectBorder.classConstruct(); v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; ASSetPropFlags(mx.skins.halo.RectBorder.prototype, null, 1); } #endinitclip } movieClip 35 __Packages.mx.skins.halo.Defaults { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.Defaults) { var v1 = function () {}; mx.skins.halo.Defaults = v1; var v2 = v1.prototype; v1.setThemeDefaults = function () { var v2 = _global.style; v2.themeColor = 8453965; v2.disabledColor = 8684164; v2.modalTransparency = 0; v2.filled = true; v2.stroked = true; v2.strokeWidth = 1; v2.strokeColor = 0; v2.fillColor = 16777215; v2.repeatInterval = 35; v2.repeatDelay = 500; v2.fontFamily = '_sans'; v2.fontSize = 12; v2.selectionColor = 13500353; v2.rollOverColor = 14942166; v2.useRollOver = true; v2.backgroundDisabledColor = 14540253; v2.selectionDisabledColor = 14540253; v2.selectionDuration = 200; v2.openDuration = 250; v2.borderStyle = 'inset'; v2.color = 734012; v2.textSelectedColor = 24371; v2.textRollOverColor = 2831164; v2.textDisabledColor = 16777215; v2.vGridLines = true; v2.hGridLines = false; v2.vGridLineColor = 6710886; v2.hGridLineColor = 6710886; v2.headerColor = 15395562; v2.indentation = 17; v2.folderOpenIcon = 'TreeFolderOpen'; v2.folderClosedIcon = 'TreeFolderClosed'; v2.defaultLeafIcon = 'TreeNodeIcon'; v2.disclosureOpenIcon = 'TreeDisclosureOpen'; v2.disclosureClosedIcon = 'TreeDisclosureClosed'; v2.popupDuration = 150; v2.todayColor = 6710886; _global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.ScrollSelectList; v2.backgroundColor = 16777215; v2.borderColor = 13290186; v2.borderStyle = 'inset'; _global.styles.ComboBox = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.ComboBox; v2.borderStyle = 'inset'; _global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.NumericStepper; v2.textAlign = 'center'; _global.styles.RectBorder = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.RectBorder; v2.borderColor = 14015965; v2.buttonColor = 7305079; v2.shadowColor = 15658734; v2.highlightColor = 12897484; v2.shadowCapColor = 14015965; v2.borderCapColor = 9542041; var v4 = new Object(); v4.borderColor = 16711680; v4.buttonColor = 16711680; v4.shadowColor = 16711680; v4.highlightColor = 16711680; v4.shadowCapColor = 16711680; v4.borderCapColor = 16711680; mx.core.UIComponent.prototype.origBorderStyles = v4; var v3; _global.styles.TextInput = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.TextInput; v3.backgroundColor = 16777215; v3.borderStyle = 'inset'; _global.styles.TextArea = _global.styles.TextInput; _global.styles.Window = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.Window; v3.borderStyle = 'default'; _global.styles.windowStyles = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.windowStyles; v3.fontWeight = 'bold'; _global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.dataGridStyles; v3.fontWeight = 'bold'; _global.styles.Alert = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.Alert; v3.borderStyle = 'alert'; _global.styles.ScrollView = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.ScrollView; v3.borderStyle = 'inset'; _global.styles.View = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.View; v3.borderStyle = 'none'; _global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.ProgressBar; v3.color = 11187123; v3.fontWeight = 'bold'; _global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.AccordionHeader; v3.fontWeight = 'bold'; v3.fontSize = '11'; _global.styles.Accordion = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.Accordion; v3.borderStyle = 'solid'; v3.backgroundColor = 16777215; v3.borderColor = 9081738; v3.headerHeight = 22; v3.marginBottom = -1; v3.marginTop = -1; v3.marginRight = -1; v3.marginLeft = -1; v3.verticalGap = -1; _global.styles.DateChooser = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.DateChooser; v3.borderColor = 9542041; v3.headerColor = 16777215; _global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.CalendarLayout; v3.fontSize = 10; v3.textAlign = 'right'; v3.color = 2831164; _global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.WeekDayStyle; v3.fontWeight = 'bold'; v3.fontSize = 11; v3.textAlign = 'center'; v3.color = 2831164; _global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.TodayStyle; v3.color = 16777215; _global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.HeaderDateText; v3.fontSize = 12; v3.fontWeight = 'bold'; v3.textAlign = 'center'; }; v2.drawRoundRect = function (x, y, w, h, r, c, alpha, rot, gradient, ratios) { if (typeof r == 'object') { var v18 = r.br; var v16 = r.bl; var v15 = r.tl; var v10 = r.tr; } else { var v10 = r; var v15 = v10; var v16 = v15; var v18 = v16; } if (typeof c == 'object') { if (typeof alpha != 'object') { var v9 = [alpha, alpha]; } else { var v9 = alpha; } if (ratios == undefined) { ratios = [0, 255]; } var v14 = h * 0.7; if (typeof rot != 'object') { var v11 = {'matrixType': 'box', 'x': -v14, 'y': v14, 'w': w * 2, 'h': h * 4, 'r': rot * 0.0174532925199433}; } else { var v11 = rot; } if (gradient == 'radial') { this.beginGradientFill('radial', c, v9, ratios, v11); } else { this.beginGradientFill('linear', c, v9, ratios, v11); } } else { if (c != undefined) { this.beginFill(c, alpha); } } r = v18; var v13 = r - r * Math.SQRT1_2; var v12 = r - r * 0.414213562373095; this.moveTo(x + w, y + h - r); this.lineTo(x + w, y + h - r); this.curveTo(x + w, y + h - v12, x + w - v13, y + h - v13); this.curveTo(x + w - v12, y + h, x + w - r, y + h); r = v16; v13 = r - r * Math.SQRT1_2; v12 = r - r * 0.414213562373095; this.lineTo(x + r, y + h); this.curveTo(x + v12, y + h, x + v13, y + h - v13); this.curveTo(x, y + h - v12, x, y + h - r); r = v15; v13 = r - r * Math.SQRT1_2; v12 = r - r * 0.414213562373095; this.lineTo(x, y + r); this.curveTo(x, y + v12, x + v13, y + v13); this.curveTo(x + v12, y, x + r, y); r = v10; v13 = r - r * Math.SQRT1_2; v12 = r - r * 0.414213562373095; this.lineTo(x + w - r, y); this.curveTo(x + w - v12, y, x + w - v13, y + v13); this.curveTo(x + w, y + v12, x + w, y + r); this.lineTo(x + w, y + h - r); if (c != undefined) { this.endFill(); } }; v1.classConstruct = function () { mx.core.ext.UIObjectExtensions.Extensions(); mx.skins.halo.Defaults.setThemeDefaults(); mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect; return true; }; v1.classConstructed = mx.skins.halo.Defaults.classConstruct(); v1.CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration; v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; v1.UIObjectDependency = mx.core.UIObject; ASSetPropFlags(mx.skins.halo.Defaults.prototype, null, 1); } #endinitclip } movieClip 36 __Packages.mx.managers.DepthManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.DepthManager) { var v1 = function () { MovieClip.prototype.createClassChildAtDepth = this.createClassChildAtDepth; MovieClip.prototype.createChildAtDepth = this.createChildAtDepth; MovieClip.prototype.setDepthTo = this.setDepthTo; MovieClip.prototype.setDepthAbove = this.setDepthAbove; MovieClip.prototype.setDepthBelow = this.setDepthBelow; MovieClip.prototype.findNextAvailableDepth = this.findNextAvailableDepth; MovieClip.prototype.shuffleDepths = this.shuffleDepths; MovieClip.prototype.getDepthByFlag = this.getDepthByFlag; MovieClip.prototype.buildDepthTable = this.buildDepthTable; _global.ASSetPropFlags(MovieClip.prototype, 'createClassChildAtDepth', 1); _global.ASSetPropFlags(MovieClip.prototype, 'createChildAtDepth', 1); _global.ASSetPropFlags(MovieClip.prototype, 'setDepthTo', 1); _global.ASSetPropFlags(MovieClip.prototype, 'setDepthAbove', 1); _global.ASSetPropFlags(MovieClip.prototype, 'setDepthBelow', 1); _global.ASSetPropFlags(MovieClip.prototype, 'findNextAvailableDepth', 1); _global.ASSetPropFlags(MovieClip.prototype, 'shuffleDepths', 1); _global.ASSetPropFlags(MovieClip.prototype, 'getDepthByFlag', 1); _global.ASSetPropFlags(MovieClip.prototype, 'buildDepthTable', 1); }; mx.managers.DepthManager = v1; var v2 = v1.prototype; v1.sortFunction = function (a, b) { if (a.getDepth() > b.getDepth()) { return 1; } return -1; }; v1.test = function (depth) { if (depth == mx.managers.DepthManager.reservedDepth) { return false; } else { return true; } }; v1.createClassObjectAtDepth = function (className, depthSpace, initObj) { var v1; switch (depthSpace) { case mx.managers.DepthManager.kCursor: v1 = mx.managers.DepthManager.holder.createClassChildAtDepth(className, mx.managers.DepthManager.kTopmost, initObj); return v1; case mx.managers.DepthManager.kTooltip: v1 = mx.managers.DepthManager.holder.createClassChildAtDepth(className, mx.managers.DepthManager.kTop, initObj); return v1; } return v1; }; v1.createObjectAtDepth = function (linkageName, depthSpace, initObj) { var v1; switch (depthSpace) { case mx.managers.DepthManager.kCursor: v1 = mx.managers.DepthManager.holder.createChildAtDepth(linkageName, mx.managers.DepthManager.kTopmost, initObj); return v1; case mx.managers.DepthManager.kTooltip: v1 = mx.managers.DepthManager.holder.createChildAtDepth(linkageName, mx.managers.DepthManager.kTop, initObj); return v1; } return v1; }; v2.createClassChildAtDepth = function (className, depthFlag, initObj) { if (this._childCounter == undefined) { this._childCounter = 0; } var v3 = this.buildDepthTable(); var v2 = this.getDepthByFlag(depthFlag, v3); var v6 = 'down'; if (depthFlag == mx.managers.DepthManager.kBottom) { v6 = 'up'; } var v5; if (v3[v2] != undefined) { v5 = v2; v2 = this.findNextAvailableDepth(v2, v3, v6); } var v4 = this.createClassObject(className, 'depthChild' + this._childCounter++, v2, initObj); if (v5 != undefined) { v3[v2] = v4; this.shuffleDepths(v4, v5, v3, v6); } if (depthFlag == mx.managers.DepthManager.kTopmost) { v4._topmost = true; } return v4; }; v2.createChildAtDepth = function (linkageName, depthFlag, initObj) { if (this._childCounter == undefined) { this._childCounter = 0; } var v3 = this.buildDepthTable(); var v2 = this.getDepthByFlag(depthFlag, v3); var v6 = 'down'; if (depthFlag == mx.managers.DepthManager.kBottom) { v6 = 'up'; } var v5; if (v3[v2] != undefined) { v5 = v2; v2 = this.findNextAvailableDepth(v2, v3, v6); } var v4 = this.createObject(linkageName, 'depthChild' + this._childCounter++, v2, initObj); if (v5 != undefined) { v3[v2] = v4; this.shuffleDepths(v4, v5, v3, v6); } if (depthFlag == mx.managers.DepthManager.kTopmost) { v4._topmost = true; } return v4; }; v2.setDepthTo = function (depthFlag) { var v2 = this._parent.buildDepthTable(); var v3 = this._parent.getDepthByFlag(depthFlag, v2); if (v2[v3] != undefined) { this.shuffleDepths(this, v3, v2, undefined); } else { this.swapDepths(v3); } if (depthFlag == mx.managers.DepthManager.kTopmost) { this._topmost = true; } else { delete this._topmost; } }; v2.setDepthAbove = function (targetInstance) { if (targetInstance._parent != this._parent) { return undefined; } var v2 = targetInstance.getDepth() + 1; var v3 = this._parent.buildDepthTable(); if (v3[v2] != undefined && this.getDepth() < v2) { v2 -= 1; } if (v2 > mx.managers.DepthManager.highestDepth) { v2 = mx.managers.DepthManager.highestDepth; } if (v2 == mx.managers.DepthManager.highestDepth) { this._parent.shuffleDepths(this, v2, v3, 'down'); } else { if (v3[v2] != undefined) { this._parent.shuffleDepths(this, v2, v3, undefined); } else { this.swapDepths(v2); } } }; v2.setDepthBelow = function (targetInstance) { if (targetInstance._parent != this._parent) { return undefined; } var v6 = targetInstance.getDepth() - 1; var v3 = this._parent.buildDepthTable(); if (v3[v6] != undefined && this.getDepth() > v6) { v6 += 1; } var v4 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; var v5; for (v5 in v3) { var v2 = v3[v5]; if (v2._parent != undefined) { v4 = Math.min(v4, v2.getDepth()); } } if (v6 < v4) { v6 = v4; } if (v6 == v4) { this._parent.shuffleDepths(this, v6, v3, 'up'); } else { if (v3[v6] != undefined) { this._parent.shuffleDepths(this, v6, v3, undefined); } else { this.swapDepths(v6); } } }; v2.findNextAvailableDepth = function (targetDepth, depthTable, direction) { var v5 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; if (targetDepth < v5) { targetDepth = v5; } if (depthTable[targetDepth] == undefined) { return targetDepth; } var v2 = targetDepth; var v1 = targetDepth; if (direction == 'down') { while (depthTable[v1] != undefined) { --v1; } return v1; } while (depthTable[v2] != undefined) { ++v2; } return v2; }; v2.shuffleDepths = function (subject, targetDepth, depthTable, direction) { var v9 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; var v8 = v9; var v5; for (v5 in depthTable) { var v7 = depthTable[v5]; if (v7._parent != undefined) { v9 = Math.min(v9, v7.getDepth()); } } if (direction == undefined) { if (subject.getDepth() > targetDepth) { direction = 'up'; } else { direction = 'down'; } } var v1 = new Array(); for (v5 in depthTable) { v7 = depthTable[v5]; if (v7._parent != undefined) { v1.push(v7); } } v1.sort(mx.managers.DepthManager.sortFunction); if (direction == 'up') { var v3; var v11; while (v1.length > 0) { v3 = v1.pop(); if (v3 == subject) { break; } } while (v1.length > 0) { v11 = subject.getDepth(); v3 = v1.pop(); var v4 = v3.getDepth(); if (v11 > v4 + 1) { if (v4 >= 0) { subject.swapDepths(v4 + 1); } else { if (v11 > v8 && v4 < v8) { subject.swapDepths(v8); } } } subject.swapDepths(v3); if (v4 == targetDepth) { break; } } } else { if (direction == 'down') { var v3; while (v1.length > 0) { v3 = v1.shift(); if (v3 == subject) { break; } } while (v1.length > 0) { var v11 = v3.getDepth(); v3 = v1.shift(); var v4 = v3.getDepth(); if (v11 < v4 - 1 && v4 > 0) { subject.swapDepths(v4 - 1); } subject.swapDepths(v3); if (v4 == targetDepth) { break; } } } } }; v2.getDepthByFlag = function (depthFlag, depthTable) { var v2 = 0; if (depthFlag == mx.managers.DepthManager.kTop || depthFlag == mx.managers.DepthManager.kNotopmost) { var v5 = 0; var v7 = false; var v8; for (v8 in depthTable) { var v9 = depthTable[v8]; var v3 = typeof v9; if (v3 == 'movieclip' || v3 == 'object' && v9.__getTextFormat != undefined) { if (v9.getDepth() <= mx.managers.DepthManager.highestDepth) { if (!v9._topmost) { v2 = Math.max(v2, v9.getDepth()); } else { if (!v7) { v5 = v9.getDepth(); v7 = true; } else { v5 = Math.min(v5, v9.getDepth()); } } } } } v2 += 20; if (v7) { if (v2 >= v5) { v2 = v5 - 1; } } } else { if (depthFlag == mx.managers.DepthManager.kBottom) { for (var v8 in depthTable) { var v9 = depthTable[v8]; var v3 = typeof v9; if (v3 == 'movieclip' || v3 == 'object' && v9.__getTextFormat != undefined) { if (v9.getDepth() <= mx.managers.DepthManager.highestDepth) { v2 = Math.min(v2, v9.getDepth()); } } } v2 -= 20; } else { if (depthFlag == mx.managers.DepthManager.kTopmost) { for (var v8 in depthTable) { var v9 = depthTable[v8]; var v3 = typeof v9; if (v3 == 'movieclip' || v3 == 'object' && v9.__getTextFormat != undefined) { if (v9.getDepth() <= mx.managers.DepthManager.highestDepth) { v2 = Math.max(v2, v9.getDepth()); } } } v2 += 100; } } } if (v2 >= mx.managers.DepthManager.highestDepth) { v2 = mx.managers.DepthManager.highestDepth; } var v6 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; for (v9 in depthTable) { var v4 = depthTable[v9]; if (v4._parent != undefined) { v6 = Math.min(v6, v4.getDepth()); } } if (v2 <= v6) { v2 = v6; } return v2; }; v2.buildDepthTable = function (Void) { var v5 = new Array(); var v4; for (v4 in this) { var v2 = this[v4]; var v3 = typeof v2; if (v3 == 'movieclip' || v3 == 'object' && v2.__getTextFormat != undefined) { if (v2._parent == this) { v5[v2.getDepth()] = v2; } } } return v5; }; v1.reservedDepth = 1048575; v1.highestDepth = 1048574; v1.lowestDepth = -16383; v1.numberOfAuthortimeLayers = 383; v1.kCursor = 101; v1.kTooltip = 102; v1.kTop = 201; v1.kBottom = 202; v1.kTopmost = 203; v1.kNotopmost = 204; v1.holder = _root.createEmptyMovieClip('reserved', mx.managers.DepthManager.reservedDepth); v1.__depthManager = new mx.managers.DepthManager(); ASSetPropFlags(mx.managers.DepthManager.prototype, null, 1); } #endinitclip } movieClip 37 __Packages.mx.controls.SimpleButton { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.SimpleButton) { var v1 = function () { super(); }; mx.controls.SimpleButton = v1; var v2 = new mx.core.UIComponent(); mx.controls.SimpleButton.prototype = v2; v2.init = function (Void) { super.init(); if (this.preset == undefined) { this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; } this.useHandCursor = false; }; v2.createChildren = function (Void) { if (this.preset != undefined) { var v2 = this[this.idNames[this.preset]]; this[this.refNames[this.preset]] = v2; this.skinName = v2; if (this.falseOverSkin.length == 0) { this.rolloverSkin = this.fus; } if (this.falseOverIcon.length == 0) { this.rolloverIcon = this.fui; } this.initializing = false; } else { if (this.__state == true) { this.setStateVar(true); } else { if (this.falseOverSkin.length == 0) { this.rolloverSkin = this.fus; } if (this.falseOverIcon.length == 0) { this.rolloverIcon = this.fui; } } } }; v2.setIcon = function (tag, linkageName) { return this.setSkin(tag + 8, linkageName); }; v2.changeIcon = function (tag, linkageName) { this.linkLength = linkageName.length; var v2 = this.stateNames[tag] + 'Icon'; this[v2] = linkageName; this[this.idNames[tag + 8]] = v2; this.setStateVar(this.getState()); }; v2.changeSkin = function (tag, linkageName) { var v2 = this.stateNames[tag] + 'Skin'; this[v2] = linkageName; this[this.idNames[tag]] = v2; this.setStateVar(this.getState()); }; v2.viewIcon = function (varName) { var v4 = varName + 'Icon'; var v3 = this[v4]; if (typeof v3 == 'string') { var v5 = v3; if (this.__emphasized) { if (this[v3 + 'Emphasized'].length > 0) { v3 += 'Emphasized'; } } if (this[v3].length == 0) { return undefined; } v3 = this.setIcon(this.tagMap[v5], this[v3]); if (v3 == undefined && _global.isLivePreview) { v3 = this.setIcon(0, 'ButtonIcon'); } this[v4] = v3; } this.iconName._visible = false; this.iconName = v3; this.iconName._visible = true; }; v2.removeIcons = function () { var v3 = 0; while (v3 < 2) { var v2 = 8; while (v2 < 16) { this.destroyObject(this.idNames[v2]); this[this.stateNames[v2 - 8] + 'Icon'] = ''; ++v2; } ++v3; } this.refresh(); }; v2.setSkin = function (tag, linkageName, initobj) { if (initobj == undefined) { var v3 = super.setSkin(tag, linkageName, {'styleName': this}); this.calcSize(tag, v3); return v3; } var v3 = super.setSkin(tag, linkageName, initobj); this.calcSize(tag, v3); return v3; }; v2.calcSize = function (Void) { this.__width = this._width; this.__height = this._height; }; v2.viewSkin = function (varName, initObj) { var v3 = varName + 'Skin'; var v2 = this[v3]; if (typeof v2 == 'string') { var v4 = v2; if (this.__emphasized) { if (this[v2 + 'Emphasized'].length > 0) { v2 += 'Emphasized'; } } if (this[v2].length == 0) { return undefined; } v2 = this.setSkin(this.tagMap[v4], this[v2], (initObj != undefined) ? initObj : {'styleName': this}); this[v3] = v2; } this.skinName._visible = false; this.skinName = v2; this.skinName._visible = true; }; v2.showEmphasized = function (e) { if (e && !this.__emphatic) { if (mx.controls.SimpleButton.emphasizedStyleDeclaration != undefined) { this.__emphaticStyleName = this.styleName; this.styleName = mx.controls.SimpleButton.emphasizedStyleDeclaration; } this.__emphatic = true; } else { if (this.__emphatic) { this.styleName = this.__emphaticStyleName; } this.__emphatic = false; } }; v2.refresh = function (Void) { var v2 = this.getState(); if (this.enabled == false) { this.viewIcon('disabled'); this.viewSkin('disabled'); } else { this.viewSkin(this.phase); this.viewIcon(this.phase); } this.setView(this.phase == 'down'); this.iconName.enabled = this.enabled; }; v2.setView = function (offset) { if (this.iconName == undefined) { return undefined; } var v2 = offset ? this.btnOffset : 0; this.iconName._x = (this.__width - this.iconName._width) / 2 + v2; this.iconName._y = (this.__height - this.iconName._height) / 2 + v2; }; v2.setStateVar = function (state) { if (state) { if (this.trueOverSkin.length == 0) { this.rolloverSkin = this.tus; } else { this.rolloverSkin = this.trs; } if (this.trueOverIcon.length == 0) { this.rolloverIcon = this.tui; } else { this.rolloverIcon = this.tri; } this.upSkin = this.tus; this.downSkin = this.tds; this.disabledSkin = this.dts; this.upIcon = this.tui; this.downIcon = this.tdi; this.disabledIcon = this.dti; } else { if (this.falseOverSkin.length == 0) { this.rolloverSkin = this.fus; } else { this.rolloverSkin = this.frs; } if (this.falseOverIcon.length == 0) { this.rolloverIcon = this.fui; } else { this.rolloverIcon = this.fri; } this.upSkin = this.fus; this.downSkin = this.fds; this.disabledSkin = this.dfs; this.upIcon = this.fui; this.downIcon = this.fdi; this.disabledIcon = this.dfi; } this.__state = state; }; v2.setState = function (state) { if (state != this.__state) { this.setStateVar(state); this.invalidate(); } }; v2.size = function (Void) { this.refresh(); }; v2.draw = function (Void) { if (this.initializing) { this.initializing = false; this.skinName.visible = true; this.iconName.visible = true; } this.size(); }; v2.getState = function (Void) { return this.__state; }; v2.setToggle = function (val) { this.__toggle = val; if (this.__toggle == false) { this.setState(false); } }; v2.getToggle = function (Void) { return this.__toggle; }; v2.__set__toggle = function (val) { this.setToggle(val); return this.__get__toggle(); }; v2.__get__toggle = function () { return this.getToggle(); }; v2.__set__value = function (val) { this.setSelected(val); return this.__get__value(); }; v2.__get__value = function () { return this.getSelected(); }; v2.__set__selected = function (val) { this.setSelected(val); return this.__get__selected(); }; v2.__get__selected = function () { return this.getSelected(); }; v2.setSelected = function (val) { if (this.__toggle) { this.setState(val); } else { this.setState(this.initializing ? val : this.__state); } }; v2.getSelected = function () { return this.__state; }; v2.setEnabled = function (val) { if (this.enabled != val) { super.setEnabled(val); this.invalidate(); } }; v2.onPress = function (Void) { this.pressFocus(); this.phase = 'down'; this.refresh(); this.dispatchEvent({'type': 'buttonDown'}); if (this.autoRepeat) { this.interval = setInterval(this, 'onPressDelay', this.getStyle('repeatDelay')); } }; v2.onPressDelay = function (Void) { this.dispatchEvent({'type': 'buttonDown'}); if (this.autoRepeat) { clearInterval(this.interval); this.interval = setInterval(this, 'onPressRepeat', this.getStyle('repeatInterval')); } }; v2.onPressRepeat = function (Void) { this.dispatchEvent({'type': 'buttonDown'}); updateAfterEvent(); }; v2.onRelease = function (Void) { this.releaseFocus(); this.phase = 'rollover'; if (this.interval != undefined) { clearInterval(this.interval); delete this.interval; } if (this.getToggle()) { this.setState(!this.getState()); } else { this.refresh(); } this.dispatchEvent({'type': 'click'}); }; v2.onDragOut = function (Void) { this.phase = 'up'; this.refresh(); this.dispatchEvent({'type': 'buttonDragOut'}); }; v2.onDragOver = function (Void) { if (this.phase != 'up') { this.onPress(); return undefined; } else { this.phase = 'down'; this.refresh(); } }; v2.onReleaseOutside = function (Void) { this.releaseFocus(); this.phase = 'up'; if (this.interval != undefined) { clearInterval(this.interval); delete this.interval; } }; v2.onRollOver = function (Void) { this.phase = 'rollover'; this.refresh(); }; v2.onRollOut = function (Void) { this.phase = 'up'; this.refresh(); }; v2.getLabel = function (Void) { return this.fui.text; }; v2.setLabel = function (val) { if (typeof this.fui == 'string') { this.createLabel('fui', 8, val); this.fui.styleName = this; } else { this.fui.text = val; } var v4 = this.fui._getTextFormat(); var v2 = v4.getTextExtent2(val); this.fui._width = v2.width + 5; this.fui._height = v2.height + 5; this.iconName = this.fui; this.setView(this.__state); }; v2.__get__emphasized = function () { return this.__emphasized; }; v2.__set__emphasized = function (val) { this.__emphasized = val; var v2 = 0; while (v2 < 8) { this[this.idNames[v2]] = this.stateNames[v2] + 'Skin'; if (typeof this[this.idNames[v2 + 8]] == 'movieclip') { this[this.idNames[v2 + 8]] = this.stateNames[v2] + 'Icon'; } ++v2; } this.showEmphasized(this.__emphasized); this.setStateVar(this.__state); this.invalidateStyle(); return this.__get__emphasized(); }; v2.keyDown = function (e) { if (e.code == 32) { this.onPress(); } }; v2.keyUp = function (e) { if (e.code == 32) { this.onRelease(); } }; v2.onKillFocus = function (newFocus) { super.onKillFocus(); if (this.phase != 'up') { this.phase = 'up'; this.refresh(); } }; v1.symbolName = 'SimpleButton'; v1.symbolOwner = mx.controls.SimpleButton; v1.version = '2.0.2.126'; v2.className = 'SimpleButton'; v2.style3dInset = 4; v2.btnOffset = 1; v2.__toggle = false; v2.__state = false; v2.__emphasized = false; v2.__emphatic = false; v1.falseUp = 0; v1.falseDown = 1; v1.falseOver = 2; v1.falseDisabled = 3; v1.trueUp = 4; v1.trueDown = 5; v1.trueOver = 6; v1.trueDisabled = 7; v2.falseUpSkin = 'SimpleButtonUp'; v2.falseDownSkin = 'SimpleButtonIn'; v2.falseOverSkin = ''; v2.falseDisabledSkin = 'SimpleButtonUp'; v2.trueUpSkin = 'SimpleButtonIn'; v2.trueDownSkin = ''; v2.trueOverSkin = ''; v2.trueDisabledSkin = 'SimpleButtonIn'; v2.falseUpIcon = ''; v2.falseDownIcon = ''; v2.falseOverIcon = ''; v2.falseDisabledIcon = ''; v2.trueUpIcon = ''; v2.trueDownIcon = ''; v2.trueOverIcon = ''; v2.trueDisabledIcon = ''; v2.phase = 'up'; v2.fui = 'falseUpIcon'; v2.fus = 'falseUpSkin'; v2.fdi = 'falseDownIcon'; v2.fds = 'falseDownSkin'; v2.frs = 'falseOverSkin'; v2.fri = 'falseOverIcon'; v2.dfi = 'falseDisabledIcon'; v2.dfs = 'falseDisabledSkin'; v2.tui = 'trueUpIcon'; v2.tus = 'trueUpSkin'; v2.tdi = 'trueDownIcon'; v2.tds = 'trueDownSkin'; v2.trs = 'trueOverSkin'; v2.tri = 'trueOverIcon'; v2.dts = 'trueDisabledSkin'; v2.dti = 'trueDisabledIcon'; v2.rolloverSkin = mx.controls.SimpleButton.prototype.frs; v2.rolloverIcon = mx.controls.SimpleButton.prototype.fri; v2.upSkin = mx.controls.SimpleButton.prototype.fus; v2.downSkin = mx.controls.SimpleButton.prototype.fds; v2.disabledSkin = mx.controls.SimpleButton.prototype.dfs; v2.upIcon = mx.controls.SimpleButton.prototype.fui; v2.downIcon = mx.controls.SimpleButton.prototype.fdi; v2.disabledIcon = mx.controls.SimpleButton.prototype.dfi; v2.initializing = true; v2.idNames = ['fus', 'fds', 'frs', 'dfs', 'tus', 'tds', 'trs', 'dts', 'fui', 'fdi', 'fri', 'dfi', 'tui', 'tdi', 'tri', 'dti']; v2.stateNames = ['falseUp', 'falseDown', 'falseOver', 'falseDisabled', 'trueUp', 'trueDown', 'trueOver', 'trueDisabled']; v2.refNames = ['upSkin', 'downSkin', 'rolloverSkin', 'disabledSkin']; v2.tagMap = {'falseUpSkin': 0, 'falseDownSkin': 1, 'falseOverSkin': 2, 'falseDisabledSkin': 3, 'trueUpSkin': 4, 'trueDownSkin': 5, 'trueOverSkin': 6, 'trueDisabledSkin': 7, 'falseUpIcon': 0, 'falseDownIcon': 1, 'falseOverIcon': 2, 'falseDisabledIcon': 3, 'trueUpIcon': 4, 'trueDownIcon': 5, 'trueOverIcon': 6, 'trueDisabledIcon': 7}; v2.addProperty('emphasized', v2.__get__emphasized, v2.__set__emphasized); v2.addProperty('selected', v2.__get__selected, v2.__set__selected); v2.addProperty('toggle', v2.__get__toggle, v2.__set__toggle); v2.addProperty('value', v2.__get__value, v2.__set__value); ASSetPropFlags(mx.controls.SimpleButton.prototype, null, 1); } #endinitclip } movieClip 38 __Packages.mx.managers.SystemManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.SystemManager) { var v1 = function () {}; mx.managers.SystemManager = v1; var v2 = v1.prototype; v1.init = function (Void) { if (mx.managers.SystemManager._initialized == false) { mx.managers.SystemManager._initialized = true; mx.events.EventDispatcher.initialize(mx.managers.SystemManager); Mouse.addListener(mx.managers.SystemManager); Stage.addListener(mx.managers.SystemManager); mx.managers.SystemManager._xAddEventListener = mx.managers.SystemManager.addEventListener; mx.managers.SystemManager.addEventListener = mx.managers.SystemManager.__addEventListener; mx.managers.SystemManager._xRemoveEventListener = mx.managers.SystemManager.removeEventListener; mx.managers.SystemManager.removeEventListener = mx.managers.SystemManager.__removeEventListener; } }; v1.addFocusManager = function (f) { mx.managers.SystemManager.form = f; f.focusManager.activate(); }; v1.removeFocusManager = function (f) {}; v1.onMouseDown = function (Void) { var v1 = mx.managers.SystemManager.form; v1.focusManager._onMouseDown(); }; v1.onResize = function (Void) { var v7 = Stage.width; var v6 = Stage.height; var v9 = _global.origWidth; var v8 = _global.origHeight; var v3 = Stage.align; var v5 = (v9 - v7) / 2; var v4 = (v8 - v6) / 2; if (v3 == 'T') { v4 = 0; } else { if (v3 == 'B') { v4 = v8 - v6; } else { if (v3 == 'L') { v5 = 0; } else { if (v3 == 'R') { v5 = v9 - v7; } else { if (v3 == 'LT') { v4 = 0; v5 = 0; } else { if (v3 == 'TR') { v4 = 0; v5 = v9 - v7; } else { if (v3 == 'LB') { v4 = v8 - v6; v5 = 0; } else { if (v3 == 'RB') { v4 = v8 - v6; v5 = v9 - v7; } } } } } } } } if (mx.managers.SystemManager.__screen == undefined) { mx.managers.SystemManager.__screen = new Object(); } mx.managers.SystemManager.__screen.x = v5; mx.managers.SystemManager.__screen.y = v4; mx.managers.SystemManager.__screen.width = v7; mx.managers.SystemManager.__screen.height = v6; _root.focusManager.relocate(); mx.managers.SystemManager.dispatchEvent({'type': 'resize'}); }; v1.__get__screen = function () { mx.managers.SystemManager.init(); if (mx.managers.SystemManager.__screen == undefined) { mx.managers.SystemManager.onResize(); } return mx.managers.SystemManager.__screen; }; v1._initialized = false; v1.idleFrames = 0; v1.isMouseDown = false; v1.forms = new Array(); v1.addProperty('screen', v1.__get__screen, function () {}); ASSetPropFlags(mx.managers.SystemManager.prototype, null, 1); } #endinitclip } movieClip 39 __Packages.mx.managers.FocusManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.FocusManager) { var v1 = function () { super(); }; mx.managers.FocusManager = v1; var v2 = new mx.core.UIComponent(); mx.managers.FocusManager.prototype = v2; v2.__get__defaultPushButton = function () { return this.__defaultPushButton; }; v2.__set__defaultPushButton = function (x) { if (x != this.__defaultPushButton) { this.__defaultPushButton.__set__emphasized(false); this.__defaultPushButton = x; this.defPushButton = x; x.__set__emphasized(true); } return this.__get__defaultPushButton(); }; v2.getMaxTabIndex = function (o) { var v3 = 0; var v6; for (v6 in o) { var v2 = o[v6]; if (v2._parent == o) { if (v2.tabIndex != undefined) { if (v2.tabIndex > v3) { v3 = v2.tabIndex; } } if (v2.tabChildren == true) { var v4 = this.getMaxTabIndex(v2); if (v4 > v3) { v3 = v4; } } } } return v3; }; v2.getNextTabIndex = function (Void) { return this.getMaxTabIndex(this.form) + 1; }; v2.__get__nextTabIndex = function () { return this.getNextTabIndex(); }; v2.relocate = function (Void) { var v2 = mx.managers.SystemManager.__get__screen(); this.move(v2.x - 1, v2.y - 1); }; v2.init = function (Void) { super.init(); this.tabEnabled = false; this._height = 1; this._width = 1; this._y = -1; this._x = -1; this._alpha = 0; this._parent.focusManager = this; this._parent.tabChildren = true; this._parent.tabEnabled = false; this.form = this._parent; this._parent.addEventListener('hide', this); this._parent.addEventListener('reveal', this); mx.managers.SystemManager.init(); mx.managers.SystemManager.addFocusManager(this.form); this.tabCapture.tabIndex = 0; this.watch('enabled', this.enabledChanged); Selection.addListener(this); this.lastMouse = new Object(); _global.ASSetPropFlags(this._parent, 'focusManager', 1); _global.ASSetPropFlags(this._parent, 'tabChildren', 1); _global.ASSetPropFlags(this._parent, 'tabEnabled', 1); }; v2.enabledChanged = function (id, oldValue, newValue) { this._visible = newValue; return newValue; }; v2.activate = function (Void) { Key.addListener(this); this._visible = true; this.activated = this._visible; if (this.lastFocus != undefined) { this.bNeedFocus = true; if (!mx.managers.SystemManager.isMouseDown) { this.doLater(this, 'restoreFocus'); } } }; v2.deactivate = function (Void) { Key.removeListener(this); this._visible = false; this.activated = this._visible; var v2 = this.getSelectionFocus(); var v3 = this.getActualFocus(v2); if (this.isOurFocus(v3)) { this.lastSelFocus = v2; this.lastFocus = v3; } this.cancelAllDoLaters(); }; v2.isOurFocus = function (o) { if (o.focusManager == this) { return true; } while (o != undefined) { if (o.focusManager != undefined) { return false; } if (o._parent == this._parent) { return true; } o = o._parent; } return false; }; v2.onSetFocus = function (o, n) { if (n == null) { if (this.activated) { this.bNeedFocus = true; } } else { var v2 = this.getFocus(); if (this.isOurFocus(v2)) { this.bNeedFocus = false; this.lastFocus = v2; this.lastSelFocus = n; } } }; v2.restoreFocus = function (Void) { var v2 = this.lastSelFocus.hscroll; if (v2 != undefined) { var v5 = this.lastSelFocus.scroll; var v4 = this.lastSelFocus.background; } this.lastFocus.setFocus(); var v3 = Selection; Selection.setSelection(v3.lastBeginIndex, v3.lastEndIndex); if (v2 != undefined) { this.lastSelFocus.scroll = v5; this.lastSelFocus.hscroll = v2; this.lastSelFocus.background = v4; } }; v2.onUnload = function (Void) { mx.managers.SystemManager.removeFocusManager(this.form); }; v2.setFocus = function (o) { if (o == null) { Selection.setFocus(null); } else { if (o.setFocus == undefined) { Selection.setFocus(o); } else { o.setFocus(); } } }; v2.getActualFocus = function (o) { var v1 = o._parent; while (v1 != undefined) { if (v1.focusTextField != undefined) { while (v1.focusTextField != undefined) { o = v1; v1 = v1._parent; if (v1 == undefined) { return undefined; } if (v1.focusTextField == undefined) { return o; } } } if (v1.tabEnabled != true) { return o; } o = v1; v1 = o._parent; } return undefined; }; v2.getSelectionFocus = function () { var m = Selection.getFocus(); var o = eval(m); return o; }; v2.getFocus = function (Void) { var v2 = this.getSelectionFocus(); return this.getActualFocus(v2); }; v2.walkTree = function (p, index, groupName, dir, lookup, firstChild) { var v5 = true; var v11; for (v11 in p) { var v2 = p[v11]; if (v2._parent == p && v2.enabled != false && v2._visible != false && (v2.tabEnabled == true || v2.tabEnabled != false && (v2.onPress != undefined || v2.onRelease != undefined || v2.onReleaseOutside != undefined || v2.onDragOut != undefined || v2.onDragOver != undefined || v2.onRollOver != undefined || v2.onRollOut != undefined || v2 instanceof TextField))) { if (v2._searchKey == this._searchKey) { continue; } v2._searchKey = this._searchKey; if (v2 != this._lastTarget) { if ((v2.groupName != undefined || groupName != undefined) && v2.groupName == groupName) { continue; } if (v2 instanceof TextField && v2.selectable == false) { continue; } if (v5 || v2.groupName != undefined && v2.groupName == this._firstNode.groupName && v2.selected == true) { if (firstChild) { this._firstNode = v2; firstChild = false; } } if (this._nextIsNext == true) { if (v2.groupName != undefined && v2.groupName == this._nextNode.groupName && v2.selected == true || this._nextNode == undefined && (v2.groupName == undefined || v2.groupName != undefined && v2.groupName != groupName)) { this._nextNode = v2; } } if (v2.groupName == undefined || groupName != v2.groupName) { if (this._lastx.groupName != undefined && v2.groupName == this._lastx.groupName && this._lastx.selected == true) { } else { this._lastx = v2; } } } else { this._prevNode = this._lastx; this._needPrev = false; this._nextIsNext = true; } if (v2.tabIndex != undefined) { if (v2.tabIndex == index) { if (this._foundList[v2._name] == undefined) { if (this._needPrev) { this._prevObj = v2; this._needPrev = false; } this._nextObj = v2; } } if (dir && v2.tabIndex > index) { if (this._nextObj == undefined || this._nextObj.tabIndex > v2.tabIndex && (v2.groupName == undefined || this._nextObj.groupName == undefined || v2.groupName != this._nextObj.groupName) || this._nextObj.groupName != undefined && this._nextObj.groupName == v2.groupName && this._nextObj.selected != true && (v2.selected == true || this._nextObj.tabIndex > v2.tabIndex)) { this._nextObj = v2; } } else { if (!dir && v2.tabIndex < index) { if (this._prevObj == undefined || this._prevObj.tabIndex < v2.tabIndex && (v2.groupName == undefined || this._prevObj.groupName == undefined || v2.groupName != this._prevObj.groupName) || this._prevObj.groupName != undefined && this._prevObj.groupName == v2.groupName && this._prevObj.selected != true && (v2.selected == true || this._prevObj.tabIndex < v2.tabIndex)) { this._prevObj = v2; } } } if (this._firstObj == undefined || v2.tabIndex < this._firstObj.tabIndex && (v2.groupName == undefined || this._firstObj.groupName == undefined || v2.groupName != this._firstObj.groupName) || this._firstObj.groupName != undefined && this._firstObj.groupName == v2.groupName && this._firstObj.selected != true && (v2.selected == true || v2.tabIndex < this._firstObj.tabIndex)) { this._firstObj = v2; } if (this._lastObj == undefined || v2.tabIndex > this._lastObj.tabIndex && (v2.groupName == undefined || this._lastObj.groupName == undefined || v2.groupName != this._lastObj.groupName) || this._lastObj.groupName != undefined && this._lastObj.groupName == v2.groupName && this._lastObj.selected != true && (v2.selected == true || v2.tabIndex > this._lastObj.tabIndex)) { this._lastObj = v2; } } if (v2.tabChildren) { this.getTabCandidateFromChildren(v2, index, groupName, dir, v5 && firstChild); } v5 = false; } else { if (v2._parent == p && v2.tabChildren == true && v2._visible != false) { if (v2 == this._lastTarget) { if (v2._searchKey == this._searchKey) { continue; } v2._searchKey = this._searchKey; if (this._prevNode == undefined) { var v3 = this._lastx; var v7 = false; while (v3 != undefined) { if (v3 == v2) { v7 = true; break; } v3 = v3._parent; } if (v7 == false) { this._prevNode = this._lastx; } } this._needPrev = false; if (this._nextNode == undefined) { this._nextIsNext = true; } } else { if (!(v2.focusManager != undefined && v2.focusManager._parent == v2)) { if (v2._searchKey == this._searchKey) { continue; } v2._searchKey = this._searchKey; this.getTabCandidateFromChildren(v2, index, groupName, dir, v5 && firstChild); } } v5 = false; } } } this._lastNode = this._lastx; if (lookup) { if (p._parent != undefined) { if (p != this._parent) { if (this._prevNode == undefined && dir) { this._needPrev = true; } else { if (this._nextNode == undefined && !dir) { this._nextIsNext = false; } } this._lastTarget = this._lastTarget._parent; this.getTabCandidate(p._parent, index, groupName, dir, true); } } } }; v2.getTabCandidate = function (o, index, groupName, dir, firstChild) { var v2; var v3 = true; if (o == this._parent) { v2 = o; v3 = false; } else { v2 = o._parent; if (v2 == undefined) { v2 = o; v3 = false; } } this.walkTree(v2, index, groupName, dir, v3, firstChild); }; v2.getTabCandidateFromChildren = function (o, index, groupName, dir, firstChild) { this.walkTree(o, index, groupName, dir, false, firstChild); }; v2.getFocusManagerFromObject = function (o) { while (o != undefined) { if (o.focusManager != undefined) { return o.focusManager; } o = o._parent; } return undefined; }; v2.tabHandler = function (Void) { this.bDrawFocus = true; var v5 = this.getSelectionFocus(); var v4 = this.getActualFocus(v5); if (v4 != v5) { v5 = v4; } if (this.getFocusManagerFromObject(v5) != this) { v5 == undefined; } if (v5 == undefined) { v5 = this.form; } else { if (v5.tabIndex != undefined) { if (this._foundList != undefined || this._foundList.tabIndex != v5.tabIndex) { this._foundList = new Object(); this._foundList.tabIndex = v5.tabIndex; } this._foundList[v5._name] = v5; } } var v3 = Key.isDown(16) != true; this._searchKey = getTimer(); this._needPrev = true; this._nextIsNext = false; this._lastx = undefined; this._firstNode = undefined; this._lastNode = undefined; this._nextNode = undefined; this._prevNode = undefined; this._firstObj = undefined; this._lastObj = undefined; this._nextObj = undefined; this._prevObj = undefined; this._lastTarget = v5; var v6 = v5; this.getTabCandidate(v6, (v5.tabIndex == undefined) ? 0 : v5.tabIndex, v5.groupName, v3, true); var v2; if (v3) { if (this._nextObj != undefined) { v2 = this._nextObj; } else { v2 = this._firstObj; } } else { if (this._prevObj != undefined) { v2 = this._prevObj; } else { v2 = this._lastObj; } } if (v2.tabIndex != v5.tabIndex) { this._foundList = new Object(); this._foundList.tabIndex = v2.tabIndex; this._foundList[v2._name] = v2; } else { if (this._foundList == undefined) { this._foundList = new Object(); this._foundList.tabIndex = v2.tabIndex; } this._foundList[v2._name] = v2; } if (v2 == undefined) { if (v3 == false) { if (this._nextNode != undefined) { v2 = this._nextNode; } else { v2 = this._firstNode; } } else { if (this._prevNode == undefined || v5 == this.form) { v2 = this._lastNode; } else { v2 = this._prevNode; } } } if (v2 == undefined) { return undefined; } this.lastTabFocus = v2; this.setFocus(v2); if (v2.emphasized != undefined) { if (this.defPushButton != undefined) { v5 = this.defPushButton; this.defPushButton = v2; v5.emphasized = false; v2.emphasized = true; } } else { if (this.defPushButton != undefined && this.defPushButton != this.__defaultPushButton) { v5 = this.defPushButton; this.defPushButton = this.__defaultPushButton; v5.emphasized = false; this.__defaultPushButton.__set__emphasized(true); } } }; v2.onKeyDown = function (Void) { mx.managers.SystemManager.idleFrames = 0; if (this.defaultPushButtonEnabled) { if (Key.getCode() == 13) { if (this.__get__defaultPushButton() != undefined) { this.doLater(this, 'sendDefaultPushButtonEvent'); } } } }; v2.sendDefaultPushButtonEvent = function (Void) { this.defPushButton.dispatchEvent({'type': 'click'}); }; v2.getMousedComponentFromChildren = function (x, y, o) { for (var v7 in o) { var v2 = o[v7]; if (v2._visible && v2.enabled && v2._parent == o && v2._searchKey != this._searchKey) { v2._searchKey = this._searchKey; if (v2.hitTest(x, y, true)) { if (v2.onPress != undefined || v2.onRelease != undefined) { return v2; } var v3 = this.getMousedComponentFromChildren(x, y, v2); if (v3 != undefined) { return v3; } return v2; } } } return undefined; }; v2.mouseActivate = function (Void) { if (!this.bNeedFocus) { return undefined; } this._searchKey = getTimer(); var v2 = this.getMousedComponentFromChildren(this.lastMouse.x, this.lastMouse.y, this.form); if (v2 instanceof mx.core.UIComponent) { return undefined; } v2 = this.findFocusFromObject(v2); if (v2 == this.lastFocus) { return undefined; } if (v2 == undefined) { this.doLater(this, 'restoreFocus'); return undefined; } var v3 = v2.hscroll; if (v3 != undefined) { var v6 = v2.scroll; var v5 = v2.background; } this.setFocus(v2); var v4 = Selection; Selection.setSelection(v4.lastBeginIndex, v4.lastEndIndex); if (v3 != undefined) { v2.scroll = v6; v2.hscroll = v3; v2.background = v5; } }; v2._onMouseDown = function (Void) { this.bDrawFocus = false; if (this.lastFocus != undefined) { this.lastFocus.drawFocus(false); } mx.managers.SystemManager.idleFrames = 0; var v3 = Selection; v3.lastBeginIndex = Selection.getBeginIndex(); v3.lastEndIndex = Selection.getEndIndex(); this.lastMouse.x = _root._xmouse; this.lastMouse.y = _root._ymouse; _root.localToGlobal(this.lastMouse); }; v2.onMouseUp = function (Void) { if (this._visible) { this.doLater(this, 'mouseActivate'); } }; v2.handleEvent = function (e) { if (e.type == 'reveal') { mx.managers.SystemManager.activate(this.form); } else { mx.managers.SystemManager.deactivate(this.form); } }; v1.enableFocusManagement = function () { if (!mx.managers.FocusManager.initialized) { mx.managers.FocusManager.initialized = true; Object.registerClass('FocusManager', mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, 'focusManager', mx.managers.DepthManager.highestDepth--); } } }; v1.symbolName = 'FocusManager'; v1.symbolOwner = mx.managers.FocusManager; v1.version = '2.0.2.126'; v2.className = 'FocusManager'; v2.bNeedFocus = false; v2.bDrawFocus = false; v2.defaultPushButtonEnabled = true; v2.activated = true; v1.initialized = false; v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; v2.addProperty('defaultPushButton', v2.__get__defaultPushButton, v2.__set__defaultPushButton); v2.addProperty('nextTabIndex', v2.__get__nextTabIndex, function () {}); ASSetPropFlags(mx.managers.FocusManager.prototype, null, 1); } #endinitclip } movieClip 40 __Packages.mx.skins.halo.FocusRect { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.FocusRect) { var v1 = function () { super(); this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; }; mx.skins.halo.FocusRect = v1; var v2 = new mx.skins.SkinElement(); mx.skins.halo.FocusRect.prototype = v2; v2.draw = function (o) { o.adjustFocusRect(); }; v2.setSize = function (w, h, r, a, rectCol) { this._yscale = 100; this._xscale = 100; this.clear(); if (typeof r == 'object') { r.br = r.br > 2 ? r.br - 2 : 0; r.bl = r.bl > 2 ? r.bl - 2 : 0; r.tr = r.tr > 2 ? r.tr - 2 : 0; r.tl = r.tl > 2 ? r.tl - 2 : 0; this.beginFill(rectCol, a * 0.3); this.drawRoundRect(0, 0, w, h, r); this.drawRoundRect(2, 2, w - 4, h - 4, r); this.endFill(); r.br = r.br > 1 ? r.br + 1 : 0; r.bl = r.bl > 1 ? r.bl + 1 : 0; r.tr = r.tr > 1 ? r.tr + 1 : 0; r.tl = r.tl > 1 ? r.tl + 1 : 0; this.beginFill(rectCol, a * 0.3); this.drawRoundRect(1, 1, w - 2, h - 2, r); r.br = r.br > 1 ? r.br - 1 : 0; r.bl = r.bl > 1 ? r.bl - 1 : 0; r.tr = r.tr > 1 ? r.tr - 1 : 0; r.tl = r.tl > 1 ? r.tl - 1 : 0; this.drawRoundRect(2, 2, w - 4, h - 4, r); this.endFill(); } else { var v5; if (r != 0) { v5 = r - 2; } else { v5 = 0; } this.beginFill(rectCol, a * 0.3); this.drawRoundRect(0, 0, w, h, r); this.drawRoundRect(2, 2, w - 4, h - 4, v5); this.endFill(); this.beginFill(rectCol, a * 0.3); if (r != 0) { v5 = r - 2; r -= 1; } else { v5 = 0; r = 0; } this.drawRoundRect(1, 1, w - 2, h - 2, r); this.drawRoundRect(2, 2, w - 4, h - 4, v5); this.endFill(); } }; v2.handleEvent = function (e) { if (e.type == 'unload') { this._visible = true; } else { if (e.type == 'resize') { e.target.adjustFocusRect(); } else { if (e.type == 'move') { e.target.adjustFocusRect(); } } } }; v1.classConstruct = function () { mx.core.UIComponent.prototype.drawFocus = function (focused) { var v2 = this._parent.focus_mc; if (!focused) { v2._visible = false; this.removeEventListener('unload', v2); this.removeEventListener('move', v2); this.removeEventListener('resize', v2); } else { if (v2 == undefined) { v2 = this._parent.createChildAtDepth('FocusRect', mx.managers.DepthManager.kTop); v2.tabEnabled = false; this._parent.focus_mc = v2; } else { v2._visible = true; } v2.draw(this); if (v2.getDepth() < this.getDepth()) { v2.setDepthAbove(this); } this.addEventListener('unload', v2); this.addEventListener('move', v2); this.addEventListener('resize', v2); } }; mx.core.UIComponent.prototype.adjustFocusRect = function () { var v2 = this.getStyle('themeColor'); if (v2 == undefined) { v2 = 8453965; } var v3 = this._parent.focus_mc; v3.setSize(this.width + 4, this.height + 4, 0, 100, v2); v3.move(this.x - 2, this.y - 2); }; TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus; TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect; mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect; return true; }; v1.classConstructed = mx.skins.halo.FocusRect.classConstruct(); v1.DefaultsDependency = mx.skins.halo.Defaults; v1.UIComponentDependency = mx.core.UIComponent; ASSetPropFlags(mx.skins.halo.FocusRect.prototype, null, 1); } #endinitclip } movieClip 41 __Packages.mx.managers.OverlappedWindows { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.OverlappedWindows) { var v1 = function () {}; mx.managers.OverlappedWindows = v1; var v2 = v1.prototype; v1.checkIdle = function (Void) { if (mx.managers.SystemManager.idleFrames > 10) { mx.managers.SystemManager.dispatchEvent({'type': 'idle'}); } else { ++mx.managers.SystemManager.idleFrames; } }; v1.__addEventListener = function (e, o, l) { if (e == 'idle') { if (mx.managers.SystemManager.interval == undefined) { mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100); } } mx.managers.SystemManager._xAddEventListener(e, o, l); }; v1.__removeEventListener = function (e, o, l) { if (e == 'idle') { if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) { clearInterval(mx.managers.SystemManager.interval); } } else { mx.managers.SystemManager._xRemoveEventListener(e, o, l); } }; v1.onMouseDown = function (Void) { mx.managers.SystemManager.idleFrames = 0; mx.managers.SystemManager.isMouseDown = true; var v5 = _root; var v3; var v8 = _root._xmouse; var v7 = _root._ymouse; if (mx.managers.SystemManager.form.modalWindow == undefined) { if (mx.managers.SystemManager.forms.length > 1) { var v6 = mx.managers.SystemManager.forms.length; var v4; v4 = 0; while (v4 < v6) { var v2 = mx.managers.SystemManager.forms[v4]; if (v2._visible) { if (v2.hitTest(v8, v7)) { if (v3 == undefined) { v3 = v2.getDepth(); v5 = v2; } else { if (v3 < v2.getDepth()) { v3 = v2.getDepth(); v5 = v2; } } } } ++v4; } if (v5 != mx.managers.SystemManager.form) { mx.managers.SystemManager.activate(v5); } } } var v9 = mx.managers.SystemManager.form; v9.focusManager._onMouseDown(); }; v1.onMouseMove = function (Void) { mx.managers.SystemManager.idleFrames = 0; }; v1.onMouseUp = function (Void) { mx.managers.SystemManager.isMouseDown = false; mx.managers.SystemManager.idleFrames = 0; }; v1.activate = function (f) { if (mx.managers.SystemManager.form != undefined) { if (mx.managers.SystemManager.form != f && mx.managers.SystemManager.forms.length > 1) { var v1 = mx.managers.SystemManager.form; v1.focusManager.deactivate(); } } mx.managers.SystemManager.form = f; f.focusManager.activate(); }; v1.deactivate = function (f) { if (mx.managers.SystemManager.form != undefined) { if (mx.managers.SystemManager.form == f && mx.managers.SystemManager.forms.length > 1) { var v5 = mx.managers.SystemManager.form; v5.focusManager.deactivate(); var v3 = mx.managers.SystemManager.forms.length; var v1; var v2; v1 = 0; while (v1 < v3) { if (mx.managers.SystemManager.forms[v1] == f) { v1 += 1; while (v1 < v3) { if (mx.managers.SystemManager.forms[v1]._visible == true) { v2 = mx.managers.SystemManager.forms[v1]; } ++v1; } mx.managers.SystemManager.form = v2; break; } else { if (mx.managers.SystemManager.forms[v1]._visible == true) { v2 = mx.managers.SystemManager.forms[v1]; } } ++v1; } v5 = mx.managers.SystemManager.form; v5.focusManager.activate(); } } }; v1.addFocusManager = function (f) { mx.managers.SystemManager.forms.push(f); mx.managers.SystemManager.activate(f); }; v1.removeFocusManager = function (f) { var v3 = mx.managers.SystemManager.forms.length; var v1; v1 = 0; while (v1 < v3) { if (mx.managers.SystemManager.forms[v1] == f) { if (mx.managers.SystemManager.form == f) { mx.managers.SystemManager.deactivate(f); } mx.managers.SystemManager.forms.splice(v1, 1); return undefined; } ++v1; } }; v1.enableOverlappedWindows = function () { if (!mx.managers.OverlappedWindows.initialized) { mx.managers.OverlappedWindows.initialized = true; mx.managers.SystemManager.checkIdle = mx.managers.OverlappedWindows.checkIdle; mx.managers.SystemManager.__addEventListener = mx.managers.OverlappedWindows.__addEventListener; mx.managers.SystemManager.__removeEventListener = mx.managers.OverlappedWindows.__removeEventListener; mx.managers.SystemManager.onMouseDown = mx.managers.OverlappedWindows.onMouseDown; mx.managers.SystemManager.onMouseMove = mx.managers.OverlappedWindows.onMouseMove; mx.managers.SystemManager.onMouseUp = mx.managers.OverlappedWindows.onMouseUp; mx.managers.SystemManager.activate = mx.managers.OverlappedWindows.activate; mx.managers.SystemManager.deactivate = mx.managers.OverlappedWindows.deactivate; mx.managers.SystemManager.addFocusManager = mx.managers.OverlappedWindows.addFocusManager; mx.managers.SystemManager.removeFocusManager = mx.managers.OverlappedWindows.removeFocusManager; } }; v1.initialized = false; v1.SystemManagerDependency = mx.managers.SystemManager; ASSetPropFlags(mx.managers.OverlappedWindows.prototype, null, 1); } #endinitclip } movieClip 42 __Packages.mx.styles.CSSSetStyle { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.CSSSetStyle) { var v1 = function () {}; mx.styles.CSSSetStyle = v1; var v2 = v1.prototype; v2._setStyle = function (styleProp, newValue) { this[styleProp] = newValue; if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) { if (styleProp == 'color') { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } } _level0.changeTextStyleInChildren(styleProp); return undefined; } if (mx.styles.StyleManager.isColorStyle(styleProp)) { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } if (styleProp == 'themeColor') { var v7 = mx.styles.StyleManager.colorNames.haloBlue; var v6 = mx.styles.StyleManager.colorNames.haloGreen; var v8 = mx.styles.StyleManager.colorNames.haloOrange; var v4 = {}; v4[v7] = 12188666; v4[v6] = 13500353; v4[v8] = 16766319; var v5 = {}; v5[v7] = 13958653; v5[v6] = 14942166; v5[v8] = 16772787; var v9 = v4[newValue]; var v10 = v5[newValue]; if (v9 == undefined) { v9 = newValue; } if (v10 == undefined) { v10 = newValue; } this.setStyle('selectionColor', v9); this.setStyle('rollOverColor', v10); } _level0.changeColorStyleInChildren(this.styleName, styleProp, newValue); } else { if (styleProp == 'backgroundColor' && isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } _level0.notifyStyleChangeInChildren(this.styleName, styleProp, newValue); } }; v2.changeTextStyleInChildren = function (styleProp) { var v4 = getTimer(); var v5; for (v5 in this) { var v2 = this[v5]; if (v2._parent == this) { if (v2.searchKey != v4) { if (v2.stylecache != undefined) { delete v2.stylecache.tf; delete v2.stylecache[styleProp]; } v2.invalidateStyle(styleProp); v2.changeTextStyleInChildren(styleProp); v2.searchKey = v4; } } } }; v2.changeColorStyleInChildren = function (sheetName, colorStyle, newValue) { var v6 = getTimer(); var v7; for (v7 in this) { var v2 = this[v7]; if (v2._parent == this) { if (v2.searchKey != v6) { if (v2.getStyleName() == sheetName || sheetName == undefined || sheetName == '_global') { if (v2.stylecache != undefined) { delete v2.stylecache[colorStyle]; } if (typeof v2._color == 'string') { if (v2._color == colorStyle) { var v4 = v2.getStyle(colorStyle); if (colorStyle == 'color') { if (this.stylecache.tf.color != undefined) { this.stylecache.tf.color = v4; } } v2.setColor(v4); } } else { if (v2._color[colorStyle] != undefined) { if (typeof v2 != 'movieclip') { v2._parent.invalidateStyle(); } else { v2.invalidateStyle(colorStyle); } } } } v2.changeColorStyleInChildren(sheetName, colorStyle, newValue); v2.searchKey = v6; } } } }; v2.notifyStyleChangeInChildren = function (sheetName, styleProp, newValue) { var v5 = getTimer(); var v6; for (v6 in this) { var v2 = this[v6]; if (v2._parent == this) { if (v2.searchKey != v5) { if (v2.styleName == sheetName || v2.styleName != undefined && typeof v2.styleName == 'movieclip' || sheetName == undefined) { if (v2.stylecache != undefined) { delete v2.stylecache[styleProp]; delete v2.stylecache.tf; } delete v2.enabledColor; v2.invalidateStyle(styleProp); } v2.notifyStyleChangeInChildren(sheetName, styleProp, newValue); v2.searchKey = v5; } } } }; v2.setStyle = function (styleProp, newValue) { if (this.stylecache != undefined) { delete this.stylecache[styleProp]; delete this.stylecache.tf; } this[styleProp] = newValue; if (mx.styles.StyleManager.isColorStyle(styleProp)) { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } if (styleProp == 'themeColor') { var v10 = mx.styles.StyleManager.colorNames.haloBlue; var v9 = mx.styles.StyleManager.colorNames.haloGreen; var v11 = mx.styles.StyleManager.colorNames.haloOrange; var v6 = {}; v6[v10] = 12188666; v6[v9] = 13500353; v6[v11] = 16766319; var v7 = {}; v7[v10] = 13958653; v7[v9] = 14942166; v7[v11] = 16772787; var v12 = v6[newValue]; var v13 = v7[newValue]; if (v12 == undefined) { v12 = newValue; } if (v13 == undefined) { v13 = newValue; } this.setStyle('selectionColor', v12); this.setStyle('rollOverColor', v13); } if (typeof this._color == 'string') { if (this._color == styleProp) { if (styleProp == 'color') { if (this.stylecache.tf.color != undefined) { this.stylecache.tf.color = newValue; } } this.setColor(newValue); } } else { if (this._color[styleProp] != undefined) { this.invalidateStyle(styleProp); } } this.changeColorStyleInChildren(undefined, styleProp, newValue); } else { if (styleProp == 'backgroundColor' && isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } this.invalidateStyle(styleProp); } if (mx.styles.StyleManager.isInheritingStyle(styleProp) || styleProp == 'styleName') { var v8; var v5 = newValue; if (styleProp == 'styleName') { v8 = (typeof newValue == 'string') ? _global.styles[newValue] : v5; v5 = v8.themeColor; if (v5 != undefined) { v8.selectionColor = v5; v8.rollOverColor = v8.selectionColor; } } this.notifyStyleChangeInChildren(undefined, styleProp, newValue); } }; v1.enableRunTimeCSS = function () {}; v1.classConstruct = function () { var v2 = MovieClip.prototype; var v3 = mx.styles.CSSSetStyle.prototype; mx.styles.CSSStyleDeclaration.prototype.setStyle = v3._setStyle; v2.changeTextStyleInChildren = v3.changeTextStyleInChildren; v2.changeColorStyleInChildren = v3.changeColorStyleInChildren; v2.notifyStyleChangeInChildren = v3.notifyStyleChangeInChildren; v2.setStyle = v3.setStyle; _global.ASSetPropFlags(v2, 'changeTextStyleInChildren', 1); _global.ASSetPropFlags(v2, 'changeColorStyleInChildren', 1); _global.ASSetPropFlags(v2, 'notifyStyleChangeInChildren', 1); _global.ASSetPropFlags(v2, 'setStyle', 1); var v4 = TextField.prototype; v4.setStyle = v2.setStyle; v4.changeTextStyleInChildren = v3.changeTextStyleInChildren; return true; }; v1.classConstructed = mx.styles.CSSSetStyle.classConstruct(); v1.CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration; ASSetPropFlags(mx.styles.CSSSetStyle.prototype, null, 1); } #endinitclip } movieClip 43 __Packages.mx.core.ext.UIComponentExtensions { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.ext) { _global.mx.core.ext = new Object(); } if (!_global.mx.core.ext.UIComponentExtensions) { var v1 = function () {}; mx.core.ext.UIComponentExtensions = v1; var v2 = v1.prototype; v1.Extensions = function () { if (mx.core.ext.UIComponentExtensions.bExtended == true) { return true; } mx.core.ext.UIComponentExtensions.bExtended = true; TextField.prototype.setFocus = function () { Selection.setFocus(this); }; TextField.prototype.onSetFocus = function (oldFocus) { if (this.tabEnabled != false) { if ((this.getFocusManager()).bDrawFocus) { this.drawFocus(true); } } }; TextField.prototype.onKillFocus = function (oldFocus) { if (this.tabEnabled != false) { this.drawFocus(false); } }; TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus; TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager; mx.managers.OverlappedWindows.enableOverlappedWindows(); mx.styles.CSSSetStyle.enableRunTimeCSS(); mx.managers.FocusManager.enableFocusManagement(); }; v1.bExtended = false; v1.UIComponentExtended = mx.core.ext.UIComponentExtensions.Extensions(); v1.UIComponentDependency = mx.core.UIComponent; v1.FocusManagerDependency = mx.managers.FocusManager; v1.OverlappedWindowsDependency = mx.managers.OverlappedWindows; ASSetPropFlags(mx.core.ext.UIComponentExtensions.prototype, null, 1); } #endinitclip } movieClip 44 __Packages.mx.core.View { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.View) { var v1 = function () { super(); }; mx.core.View = v1; var v2 = new mx.core.UIComponent(); mx.core.View.prototype = v2; v2.init = function () { super.init(); this.tabChildren = true; this.tabEnabled = false; this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; }; v2.size = function () { this.border_mc.move(0, 0); this.border_mc.setSize(this.__get__width(), this.__get__height()); this.doLayout(); }; v2.draw = function () { this.size(); }; v2.__get__numChildren = function () { var v3 = mx.core.View.childNameBase; var v2 = 0; while (!false) { if (this[v3 + v2] == undefined) { return v2; } ++v2; } return -1; }; v2.__get__tabIndex = function () { return this.tabEnabled ? this.__tabIndex : undefined; }; v2.addLayoutObject = function (object) {}; v2.createChild = function (className, instanceName, initProps) { if (this.depth == undefined) { this.depth = 1; } var v2; if (typeof className == 'string') { v2 = this.createObject(className, instanceName, this.depth++, initProps); } else { v2 = this.createClassObject(className, instanceName, this.depth++, initProps); } if (v2 == undefined) { v2 = this.loadExternal(className, this._loadExternalClass, instanceName, this.depth++, initProps); this.addLayoutObject(v2); return v2; } this[mx.core.View.childNameBase + this.__get__numChildren()] = v2; v2._complete = true; this.childLoaded(v2); this.addLayoutObject(v2); return v2; }; v2.getChildAt = function (childIndex) { return this[mx.core.View.childNameBase + childIndex]; }; v2.destroyChildAt = function (childIndex) { if (!(childIndex >= 0 && childIndex < this.__get__numChildren())) { return undefined; } var v4 = mx.core.View.childNameBase + childIndex; var v6 = this.__get__numChildren(); var v3; for (v3 in this) { if (v3 == v4) { v4 = ''; this.destroyObject(v3); break; } } var v2 = Number(childIndex); while (v2 < v6 - 1) { this[mx.core.View.childNameBase + v2] = this[mx.core.View.childNameBase + (v2 + 1)]; ++v2; } delete this[mx.core.View.childNameBase + (v6 - 1)]; --this.depth; }; v2.initLayout = function () { if (!this.hasBeenLayedOut) { this.doLayout(); } }; v2.doLayout = function () { this.hasBeenLayedOut = true; }; v2.createChildren = function () { if (this.border_mc == undefined) { this.border_mc = this.createClassChildAtDepth(_global.styles.rectBorderClass, mx.managers.DepthManager.kBottom, {'styleName': this}); } this.doLater(this, 'initLayout'); }; v2.convertToUIObject = function (obj) {}; v2.childLoaded = function (obj) { this.convertToUIObject(obj); }; v1.extension = function () { mx.core.ExternalContent.enableExternalContent(); }; v1.symbolName = 'View'; v1.symbolOwner = mx.core.View; v1.version = '2.0.2.126'; v2.className = 'View'; v1.childNameBase = '_child'; v2.hasBeenLayedOut = false; v2._loadExternalClass = 'UIComponent'; v2.addProperty('numChildren', v2.__get__numChildren, function () {}); v2.addProperty('tabIndex', v2.__get__tabIndex, function () {}); ASSetPropFlags(mx.core.View.prototype, null, 1); } #endinitclip } movieClip 45 __Packages.mx.controls.Loader { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.Loader) { var v1 = function () { super(); }; mx.controls.Loader = v1; var v2 = new mx.core.View(); mx.controls.Loader.prototype = v2; v2.init = function () { super.init(); }; v2.setSize = function (w, h, noEvent) { this._origWidth = w; this._origHeight = h; super.setSize(w, h, noEvent); if (_global.isLivePreview) { this.livePreview._width = this.__width - 1; this.livePreview._height = this.__height - 1; } }; v2.draw = function () { this.size(); }; v2.size = function () { super.size(); if (this.__scaleContent) { this.doScaleContent(); } else { this.doScaleLoader(); } }; v2.createChildren = function () { super.createChildren(); if (_global.isLivePreview) { this.createTextField('livePreview', -1000, 0, 0, 99, 99); this.livePreview.text = 'mx.controls.Loader'; this.livePreview.border = true; } if (this.__autoLoad) { this.load(); } }; v2.getAutoLoad = function () { return this.__autoLoad; }; v2.__get__autoLoad = function () { return this.getAutoLoad(); }; v2.setAutoLoad = function (b) { if (this.__autoLoad != b) { this.__autoLoad = b; if (this.__autoLoad && !this[mx.core.View.childNameBase + 0]._complete) { this.load(); } } }; v2.__set__autoLoad = function (b) { this.setAutoLoad(b); return this.__get__autoLoad(); }; v2.getBytesLoaded = function () { return this.__bytesLoaded; }; v2.__get__bytesLoaded = function () { return this.getBytesLoaded(); }; v2.getBytesTotal = function () { return this.__bytesTotal; }; v2.__get__bytesTotal = function () { return this.getBytesTotal(); }; v2.getContent = function () { return this.contentHolder; }; v2.__get__content = function () { return this.getContent(); }; v2.getContentPath = function () { return this.__contentPath; }; v2.__get__contentPath = function () { return this.getContentPath(); }; v2.setContentPath = function (url) { if (this.__contentPath != url) { this.__contentPath = url; if (this.childrenCreated) { if (this.__autoLoad) { this.load(); } } } }; v2.__set__contentPath = function (c) { this.setContentPath(c); return this.__get__contentPath(); }; v2.getPercentLoaded = function () { var v2 = 100 * (this.__bytesLoaded / this.__bytesTotal); if (isNaN(v2)) { v2 = 0; } return v2; }; v2.__get__percentLoaded = function () { return this.getPercentLoaded(); }; v2.__get__scaleContent = function () { return this.getScaleContent(); }; v2.getScaleContent = function () { return this.__scaleContent; }; v2.setScaleContent = function (b) { if (this.__scaleContent != b) { this.__scaleContent = b; if (this.__scaleContent) { this.doScaleContent(); } else { this.doScaleLoader(); } } }; v2.__set__scaleContent = function (b) { this.setScaleContent(b); return this.__get__scaleContent(); }; v2.load = function (url) { if (url != undefined) { this.__contentPath = url; } if (this[mx.core.View.childNameBase + 0] != undefined) { if (this[mx.core.View.childNameBase + 0]._complete) { this.setSize(this._origWidth, this._origHeight); } this.destroyChildAt(0); } if (this.__contentPath == undefined || this.__contentPath == '') { return undefined; } this.createChild(this.__contentPath, 'contentHolder'); }; v2.childLoaded = function (obj) { super.childLoaded(obj); obj._rotation = 0; this._origWidth = this.__width; this._origHeight = this.__height; if (this.__scaleContent) { this.doScaleContent(); } else { this.doScaleLoader(); } }; v2.dispatchEvent = function (obj) { if (obj.type == 'progress' || obj.type == 'complete') { obj.target = this; this.__bytesTotal = obj.total; this.__bytesLoaded = obj.current; } super.dispatchEvent(obj); }; v2.doScaleContent = function () { if (!this[mx.core.View.childNameBase + 0]._complete) { return undefined; } this.unScaleContent(); var v2 = this.border_mc.__get__borderMetrics(); var v7 = this._origWidth - v2.left - v2.right; var v6 = this._origHeight - v2.top - v2.bottom; var v9 = v2.left; var v8 = v2.top; var v5 = v7 / this.contentHolder._width; var v3 = v6 / this.contentHolder._height; var v4; if (v5 > v3) { v9 = v2.left + Math.floor((v7 - this.contentHolder._width * v3) / 2); v4 = v3; } else { v8 = v2.top + Math.floor((v6 - this.contentHolder._height * v5) / 2); v4 = v5; } v4 *= 100; this.contentHolder._yscale = v4; this.contentHolder._xscale = this.contentHolder._yscale; this.contentHolder._x = v9; this.contentHolder._y = v8; if (this.__width != this._origWidth || this.__height != this._origHeight) { this.setSize(this._origWidth, this._origHeight); } }; v2.doScaleLoader = function () { if (!this[mx.core.View.childNameBase + 0]._complete) { return undefined; } this.unScaleContent(); var v2 = this.border_mc.__get__borderMetrics(); var v4 = this.contentHolder._width + v2.left + v2.right; var v3 = this.contentHolder._height + v2.top + v2.bottom; if (this.__width != v4 || this.__height != v3) { this.setSize(v4, v3); } this.contentHolder._x = v2.left; this.contentHolder._y = v2.top; }; v2.unScaleContent = function () { this.contentHolder._yscale = 100; this.contentHolder._xscale = 100; this.contentHolder._y = 0; this.contentHolder._x = 0; }; v1.symbolName = 'Loader'; v1.symbolOwner = mx.controls.Loader; v1.version = '2.0.2.126'; v2.className = 'Loader'; v2.clipParameters = {'autoLoad': 1, 'scaleContent': 1, 'contentPath': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Loader.prototype.clipParameters, mx.core.View.prototype.clipParameters); v2.__autoLoad = true; v2.__bytesLoaded = undefined; v2.__bytesTotal = undefined; v2.__contentPath = undefined; v2.__scaleContent = true; v2.addProperty('autoLoad', v2.__get__autoLoad, v2.__set__autoLoad); v2.addProperty('bytesLoaded', v2.__get__bytesLoaded, function () {}); v2.addProperty('bytesTotal', v2.__get__bytesTotal, function () {}); v2.addProperty('content', v2.__get__content, function () {}); v2.addProperty('contentPath', v2.__get__contentPath, v2.__set__contentPath); v2.addProperty('percentLoaded', v2.__get__percentLoaded, function () {}); v2.addProperty('scaleContent', v2.__get__scaleContent, v2.__set__scaleContent); ASSetPropFlags(mx.controls.Loader.prototype, null, 1); } #endinitclip } movieClip 48 __Packages.mx.core.ExternalContent { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.ExternalContent) { var v1 = function () {}; mx.core.ExternalContent = v1; var v2 = v1.prototype; v2.loadExternal = function (url, placeholderClassName, instanceName, depth, initProps) { var v2; v2 = this.createObject(placeholderClassName, instanceName, depth, initProps); this[mx.core.View.childNameBase + this.numChildren] = v2; if (this.prepList == undefined) { this.prepList = new Object(); } this.prepList[instanceName] = {'obj': v2, 'url': url, 'complete': false, 'initProps': initProps}; this.prepareToLoadMovie(v2); return v2; }; v2.prepareToLoadMovie = function (obj) { obj.unloadMovie(); this.doLater(this, 'waitForUnload'); }; v2.waitForUnload = function () { var v3; for (v3 in this.prepList) { var v2 = this.prepList[v3]; if (v2.obj.getBytesTotal() == 0) { if (this.loadList == undefined) { this.loadList = new Object(); } this.loadList[v3] = v2; v2.obj.loadMovie(v2.url); delete this.prepList[v3]; this.doLater(this, 'checkLoadProgress'); } else { this.doLater(this, 'waitForUnload'); } } }; v2.checkLoadProgress = function () { var v8 = false; var v3; for (v3 in this.loadList) { var v2 = this.loadList[v3]; v2.loaded = v2.obj.getBytesLoaded(); v2.total = v2.obj.getBytesTotal(); if (v2.total > 0) { v2.obj._visible = false; this.dispatchEvent({'type': 'progress', 'target': v2.obj, 'current': v2.loaded, 'total': v2.total}); if (v2.loaded == v2.total) { if (this.loadedList == undefined) { this.loadedList = new Object(); } this.loadedList[v3] = v2; delete this.loadList[v3]; this.doLater(this, 'contentLoaded'); } } else { if (v2.total == -1) { if (v2.failedOnce != undefined) { ++v2.failedOnce; if (v2.failedOnce > 3) { this.dispatchEvent({'type': 'complete', 'target': v2.obj, 'current': v2.loaded, 'total': v2.total}); delete this.loadList[v3]; false; } } else { v2.failedOnce = 0; } } } v8 = true; } if (v8) { this.doLater(this, 'checkLoadProgress'); } }; v2.contentLoaded = function () { var v4; for (v4 in this.loadedList) { var v2 = this.loadedList[v4]; v2.obj._visible = true; v2.obj._complete = true; var v3; for (v3 in v2.initProps) { v2.obj[v3] = v2.initProps[v3]; } this.childLoaded(v2.obj); this.dispatchEvent({'type': 'complete', 'target': v2.obj, 'current': v2.loaded, 'total': v2.total}); delete this.loadedList[v4]; false; } }; v2.convertToUIObject = function (obj) { if (obj.setSize == undefined) { var v2 = mx.core.UIObject.prototype; obj.addProperty('width', v2.__get__width, null); obj.addProperty('height', v2.__get__height, null); obj.addProperty('left', v2.__get__left, null); obj.addProperty('x', v2.__get__x, null); obj.addProperty('top', v2.__get__top, null); obj.addProperty('y', v2.__get__y, null); obj.addProperty('right', v2.__get__right, null); obj.addProperty('bottom', v2.__get__bottom, null); obj.addProperty('visible', v2.__get__visible, v2.__set__visible); obj.move = mx.core.UIObject.prototype.move; obj.setSize = mx.core.UIObject.prototype.setSize; obj.size = mx.core.UIObject.prototype.size; mx.events.UIEventDispatcher.initialize(obj); } }; v1.enableExternalContent = function () {}; v1.classConstruct = function () { var v1 = mx.core.View.prototype; var v2 = mx.core.ExternalContent.prototype; v1.loadExternal = v2.loadExternal; v1.prepareToLoadMovie = v2.prepareToLoadMovie; v1.waitForUnload = v2.waitForUnload; v1.checkLoadProgress = v2.checkLoadProgress; v1.contentLoaded = v2.contentLoaded; v1.convertToUIObject = v2.convertToUIObject; return true; }; v1.classConstructed = mx.core.ExternalContent.classConstruct(); v1.ViewDependency = mx.core.View; ASSetPropFlags(mx.core.ExternalContent.prototype, null, 1); } #endinitclip } movieClip 49 __Packages.mx.controls.Button { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.Button) { var v1 = function () { super(); }; mx.controls.Button = v1; var v2 = new mx.controls.SimpleButton(); mx.controls.Button.prototype = v2; v2.init = function (Void) { super.init(); }; v2.draw = function () { if (this.initializing) { this.labelPath.visible = true; } super.draw(); if (this.initIcon != undefined) { this._setIcon(this.initIcon); } delete this.initIcon; }; v2.onRelease = function (Void) { super.onRelease(); }; v2.createChildren = function (Void) { super.createChildren(); }; v2.setSkin = function (tag, linkageName, initobj) { return super.setSkin(tag, linkageName, initobj); }; v2.viewSkin = function (varName) { var v3 = this.getState() ? 'true' : 'false'; v3 += this.enabled ? this.phase : 'disabled'; super.viewSkin(varName, {'styleName': this, 'borderStyle': v3}); }; v2.invalidateStyle = function (c) { this.labelPath.invalidateStyle(c); super.invalidateStyle(c); }; v2.setColor = function (c) { var v2 = 0; while (v2 < 8) { this[this.idNames[v2]].redraw(true); ++v2; } }; v2.setEnabled = function (enable) { this.labelPath.enabled = enable; super.setEnabled(enable); }; v2.calcSize = function (tag, ref) { if (this.__width == undefined || this.__height == undefined) { return undefined; } if (tag < 7) { ref.setSize(this.__width, this.__height, true); } }; v2.size = function (Void) { this.setState(this.getState()); this.setHitArea(this.__width, this.__height); var v3 = 0; while (v3 < 8) { var v4 = this.idNames[v3]; if (typeof this[v4] == 'movieclip') { this[v4].setSize(this.__width, this.__height, true); } ++v3; } super.size(); }; v2.__set__labelPlacement = function (val) { this.__labelPlacement = val; this.invalidate(); return this.__get__labelPlacement(); }; v2.__get__labelPlacement = function () { return this.__labelPlacement; }; v2.getLabelPlacement = function (Void) { return this.__labelPlacement; }; v2.setLabelPlacement = function (val) { this.__labelPlacement = val; this.invalidate(); }; v2.getBtnOffset = function (Void) { if (this.getState()) { var v2 = this.btnOffset; return v2; } if (this.phase == 'down') { v2 = this.btnOffset; return v2; } v2 = 0; return v2; }; v2.setView = function (offset) { var v16 = offset ? this.btnOffset : 0; var v12 = this.getLabelPlacement(); var v7 = 0; var v6 = 0; var v9 = 0; var v8 = 0; var v5 = 0; var v4 = 0; var v3 = this.labelPath; var v2 = this.iconName; var v15 = v3.textWidth; var v14 = v3.textHeight; var v10 = this.__width - this.borderW - this.borderW; var v11 = this.__height - this.borderW - this.borderW; if (v2 != undefined) { v7 = v2._width; v6 = v2._height; } if (v12 == 'left' || v12 == 'right') { if (v3 != undefined) { v9 = Math.min(v10 - v7, v15 + 5); v3._width = v9; v8 = Math.min(v11, v14 + 5); v3._height = v8; } if (v12 == 'right') { v5 = v7; if (this.centerContent) { v5 += (v10 - v9 - v7) / 2; } v2._x = v5 - v7; } else { v5 = v10 - v9 - v7; if (this.centerContent) { v5 /= 2; } v2._x = v5 + v9; } v4 = 0; v2._y = v4; if (this.centerContent) { v2._y = (v11 - v6) / 2; v4 = (v11 - v8) / 2; } if (!this.centerContent) { v2._y += Math.max(0, (v8 - v6) / 2); } } else { if (v3 != undefined) { v9 = Math.min(v10, v15 + 5); v3._width = v9; v8 = Math.min(v11 - v6, v14 + 5); v3._height = v8; } v5 = (v10 - v9) / 2; v2._x = (v10 - v7) / 2; if (v12 == 'top') { v4 = v11 - v8 - v6; if (this.centerContent) { v4 /= 2; } v2._y = v4 + v8; } else { v4 = v6; if (this.centerContent) { v4 += (v11 - v8 - v6) / 2; } v2._y = v4 - v6; } } var v13 = this.borderW + v16; v3._x = v5 + v13; v3._y = v4 + v13; v2._x += v13; v2._y += v13; }; v2.__set__label = function (lbl) { this.setLabel(lbl); return this.__get__label(); }; v2.setLabel = function (label) { if (label == '') { this.labelPath.removeTextField(); this.refresh(); return undefined; } if (this.labelPath == undefined) { var v2 = this.createLabel('labelPath', 200, label); v2._width = v2.textWidth + 5; v2._height = v2.textHeight + 5; if (this.initializing) { v2.visible = false; } } else { delete this.labelPath.__text; this.labelPath.text = label; this.refresh(); } }; v2.getLabel = function (Void) { return (this.labelPath.__text != undefined) ? this.labelPath.__text : this.labelPath.text; }; v2.__get__label = function () { return this.getLabel(); }; v2._getIcon = function (Void) { return this._iconLinkageName; }; v2.__get__icon = function () { if (this.initializing) { return this.initIcon; } return this._iconLinkageName; }; v2._setIcon = function (linkage) { if (this.initializing) { if (linkage == '') { return undefined; } this.initIcon = linkage; } else { if (linkage == '') { this.removeIcons(); return undefined; } super.changeIcon(0, linkage); super.changeIcon(1, linkage); super.changeIcon(3, linkage); super.changeIcon(4, linkage); super.changeIcon(5, linkage); this._iconLinkageName = linkage; this.refresh(); } }; v2.__set__icon = function (linkage) { this._setIcon(linkage); return this.__get__icon(); }; v2.setHitArea = function (w, h) { if (this.hitArea_mc == undefined) { this.createEmptyObject('hitArea_mc', 100); } var v2 = this.hitArea_mc; v2.clear(); v2.beginFill(16711680); v2.drawRect(0, 0, w, h); v2.endFill(); v2.setVisible(false); }; v1.symbolName = 'Button'; v1.symbolOwner = mx.controls.Button; v2.className = 'Button'; v1.version = '2.0.2.126'; v2.btnOffset = 0; v2._color = 'buttonColor'; v2.__label = 'default value'; v2.__labelPlacement = 'right'; v2.falseUpSkin = 'ButtonSkin'; v2.falseDownSkin = 'ButtonSkin'; v2.falseOverSkin = 'ButtonSkin'; v2.falseDisabledSkin = 'ButtonSkin'; v2.trueUpSkin = 'ButtonSkin'; v2.trueDownSkin = 'ButtonSkin'; v2.trueOverSkin = 'ButtonSkin'; v2.trueDisabledSkin = 'ButtonSkin'; v2.falseUpIcon = ''; v2.falseDownIcon = ''; v2.falseOverIcon = ''; v2.falseDisabledIcon = ''; v2.trueUpIcon = ''; v2.trueDownIcon = ''; v2.trueOverIcon = ''; v2.trueDisabledIcon = ''; v2.clipParameters = {'labelPlacement': 1, 'icon': 1, 'toggle': 1, 'selected': 1, 'label': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters); v2.centerContent = true; v2.borderW = 1; v2.addProperty('icon', v2.__get__icon, v2.__set__icon); v2.addProperty('label', v2.__get__label, v2.__set__label); v2.addProperty('labelPlacement', v2.__get__labelPlacement, v2.__set__labelPlacement); ASSetPropFlags(mx.controls.Button.prototype, null, 1); } #endinitclip } movieClip 50 __Packages.mx.controls.RadioButton { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.RadioButton) { var v1 = function () { super(); }; mx.controls.RadioButton = v1; var v2 = new mx.controls.Button(); mx.controls.RadioButton.prototype = v2; v2.init = function (Void) { this.setToggle(this.__toggle); this.__value = this; super.init(); }; v2.size = function (Void) { super.size(); }; v2.onRelease = function () { if (this.selected) { return undefined; } this.releaseFocus(); this.phase = 'up'; this.setSelected(true); this.dispatchEvent({'type': 'click'}); this._parent[this.__groupName].dispatchEvent({'type': 'click'}); }; v2.setData = function (val) { this.__data = val; }; v2.__set__data = function (val) { this.__data = val; return this.__get__data(); }; v2.getData = function (val) { return this.__data; }; v2.__get__data = function () { return this.__data; }; v2.onUnload = function () { if (this._parent[this.__groupName].selectedRadio == this) { this._parent[this.__groupName].selectedRadio = undefined; } this._parent[this.__groupName].radioList[this.indexNumber] = null; delete this._parent[this.__groupName].radioList[this.indexNumber]; }; v2.setSelected = function (val) { var v2 = this._parent[this.__groupName]; var v4 = v2.selectedRadio.__width; var v5 = v2.selectedRadio.__height; if (val) { v2.selectedRadio.setState(false); v2.selectedRadio = this; } else { if (v2.selectedRadio == this) { v2.selectedRadio.setState(false); v2.selectedRadio = undefined; } } this.setState(val); }; v2.deleteGroupObj = function (groupName) { delete this._parent[groupName]; }; v2.getGroupName = function () { return this.__groupName; }; v2.__get__groupName = function () { return this.__groupName; }; v2.setGroupName = function (groupName) { if (groupName == undefined || groupName == '') { return undefined; } delete this._parent[this.__groupName].radioList[this.__data]; this.addToGroup(groupName); this.__groupName = groupName; }; v2.__set__groupName = function (groupName) { this.setGroupName(groupName); return this.__get__groupName(); }; v2.addToGroup = function (groupName) { if (groupName == '' || groupName == undefined) { return undefined; } var v2 = this._parent[groupName]; if (v2 == undefined) { this._parent[groupName] = new mx.controls.RadioButtonGroup(); v2 = this._parent[groupName]; v2.__groupName = groupName; } v2.addInstance(this); if (this.__state) { v2.selectedRadio.setState(false); v2.selectedRadio = this; } }; v2.__get__emphasized = function () { return undefined; }; v2.keyDown = function (e) { switch (e.code) { case 40: this.setNext(); break; case 38: this.setPrev(); break; case 37: this.setPrev(); break; case 39: this.setNext(); } }; v2.setNext = function () { var v2 = this._parent[this.__get__groupName()]; if (v2.selectedRadio.indexNumber + 1 == v2.radioList.length) { return undefined; } var v4 = v2.selectedRadio ? v2.selectedRadio.indexNumber : -1; var v3 = 1; while (v3 < v2.radioList.length) { if (v2.radioList[v4 + v3] != undefined && v2.radioList[v4 + v3].enabled) { var v5 = this.getFocusManager(); v2.radioList[v4 + v3].selected = true; v5.setFocus(v2.radioList[v2.selectedRadio.indexNumber]); v2.dispatchEvent({'type': 'click'}); break; } ++v3; } }; v2.setPrev = function () { var v2 = this._parent[this.__get__groupName()]; if (v2.selectedRadio.indexNumber == 0) { return undefined; } var v4 = v2.selectedRadio ? v2.selectedRadio.indexNumber : 1; var v3 = 1; while (v3 < v2.radioList.length) { if (v2.radioList[v4 - v3] != undefined && v2.radioList[v4 - v3].enabled) { var v5 = this.getFocusManager(); v2.radioList[v4 - v3].selected = true; v5.setFocus(v2.radioList[v2.selectedRadio.indexNumber]); v2.dispatchEvent({'type': 'click'}); break; } ++v3; } }; v2.__set__toggle = function (v) { return this.__get__toggle(); }; v2.__get__toggle = function () {}; v2.__set__icon = function (v) { return this.__get__icon(); }; v2.__get__icon = function () {}; v1.symbolName = 'RadioButton'; v1.symbolOwner = mx.controls.RadioButton; v1.version = '2.0.2.126'; v2.className = 'RadioButton'; v2.btnOffset = 0; v2.__toggle = true; v2.__label = 'Radio Button'; v2.__labelPlacement = 'right'; v2.ignoreClassStyleDeclaration = {'Button': 1}; v2.__groupName = 'radioGroup'; v2.indexNumber = 0; v2.offset = false; v2.falseUpSkin = ''; v2.falseDownSkin = ''; v2.falseOverSkin = ''; v2.falseDisabledSkin = ''; v2.trueUpSkin = ''; v2.trueDownSkin = ''; v2.trueOverSkin = ''; v2.trueDisabledSkin = ''; v2.falseUpIcon = 'RadioFalseUp'; v2.falseDownIcon = 'RadioFalseDown'; v2.falseOverIcon = 'RadioFalseOver'; v2.falseDisabledIcon = 'RadioFalseDisabled'; v2.trueUpIcon = 'RadioTrueUp'; v2.trueDownIcon = ''; v2.trueOverIcon = ''; v2.trueDisabledIcon = 'RadioTrueDisabled'; v2.centerContent = false; v2.borderW = 0; v2.clipParameters = {'labelPlacement': 1, 'data': 1, 'label': 1, 'groupName': 1, 'selected': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.RadioButton.prototype.clipParameters, mx.controls.Button.prototype.clipParameters); v2.addProperty('data', v2.__get__data, v2.__set__data); v2.addProperty('emphasized', v2.__get__emphasized, function () {}); v2.addProperty('groupName', v2.__get__groupName, v2.__set__groupName); v2.addProperty('icon', v2.__get__icon, v2.__set__icon); v2.addProperty('toggle', v2.__get__toggle, v2.__set__toggle); ASSetPropFlags(mx.controls.RadioButton.prototype, null, 1); } #endinitclip } movieClip 81 __Packages.mx.controls.RadioButtonGroup { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.RadioButtonGroup) { var v1 = function () { this.init(); mx.events.UIEventDispatcher.initialize(this); }; mx.controls.RadioButtonGroup = v1; var v2 = v1.prototype; v2.init = function (Void) { this.radioList = new Array(); }; v2.setGroupName = function (groupName) { if (groupName == undefined || groupName == '') { return undefined; } var v6 = this.__groupName; _parent[groupName] = this; for (var v5 in this.radioList) { this.radioList[v5].groupName = groupName; var v3 = this.radioList[v5]; } v3.deleteGroupObj(v6); }; v2.getGroupName = function () { return this.__groupName; }; v2.addInstance = function (instance) { instance.indexNumber = this.indexNumber++; this.radioList.push(instance); }; v2.getValue = function () { if (this.selectedRadio.data == '') { return this.selectedRadio.label; } else { return this.selectedRadio.__data; } }; v2.getLabelPlacement = function () { for (var v3 in this.radioList) { var v2 = this.radioList[v3].getLabelPlacement(); } return v2; }; v2.setLabelPlacement = function (pos) { for (var v3 in this.radioList) { this.radioList[v3].setLabelPlacement(pos); } }; v2.setEnabled = function (val) { for (var v3 in this.radioList) { this.radioList[v3].enabled = val; } }; v2.setSize = function (val, val1) { for (var v3 in this.radioList) { this.radioList[v3].setSize(val, val1); } }; v2.getEnabled = function () { for (var v4 in this.radioList) { var v2 = this.radioList[v4].enabled; var v3 = t + (v2 + 0); } if (v3 == this.radioList.length) { return true; } if (v3 == 0) { return false; } }; v2.setStyle = function (name, val) { for (var v4 in this.radioList) { this.radioList[v4].setStyle(name, val); } }; v2.setInstance = function (val) { for (var v3 in this.radioList) { if (this.radioList[v3] == val) { this.radioList[v3].selected = true; } } }; v2.getInstance = function () { return this.selectedRadio; }; v2.setValue = function (val) { for (var v4 in this.radioList) { if (this.radioList[v4].__data == val || this.radioList[v4].label == val) { var v2 = v4; break; } } if (v2 != undefined) { this.selectedRadio.setState(false); this.selectedRadio.hitArea_mc._height = this.selectedRadio.__height; this.selectedRadio.hitArea_mc._width = this.selectedRadio.__width; this.selectedRadio = this.radioList[v2]; this.selectedRadio.setState(true); this.selectedRadio.hitArea_mc._width = 0; this.selectedRadio.hitArea_mc._height = 0; } }; v2.__set__groupName = function (groupName) { if (groupName == undefined || groupName == '') { return undefined; } var v6 = this.__groupName; _parent[groupName] = this; for (var v5 in this.radioList) { this.radioList[v5].groupName = groupName; var v3 = this.radioList[v5]; } v3.deleteGroupObj(v6); return this.__get__groupName(); }; v2.__get__groupName = function () { return this.__groupName; }; v2.__set__selectedData = function (val) { for (var v4 in this.radioList) { if (this.radioList[v4].__data == val || this.radioList[v4].label == val) { var v2 = v4; break; } } if (v2 != undefined) { this.selectedRadio.setState(false); this.selectedRadio = this.radioList[v2]; this.selectedRadio.setState(true); } return this.__get__selectedData(); }; v2.__get__selectedData = function () { if (this.selectedRadio.data == '' || this.selectedRadio.data == undefined) { return this.selectedRadio.label; } else { return this.selectedRadio.__data; } }; v2.__get__selection = function () { return this.selectedRadio; }; v2.__set__selection = function (val) { for (var v3 in this.radioList) { if (this.radioList[v3] == val) { this.radioList[v3].selected = true; } } return this.__get__selection(); }; v2.__set__labelPlacement = function (pos) { for (var v3 in this.radioList) { this.radioList[v3].setLabelPlacement(pos); } return this.__get__labelPlacement(); }; v2.__get__labelPlacement = function () { for (var v3 in this.radioList) { var v2 = this.radioList[v3].getLabelPlacement(); } return v2; }; v2.__set__enabled = function (val) { for (var v3 in this.radioList) { this.radioList[v3].enabled = val; } return this.__get__enabled(); }; v2.__get__enabled = function () { var v2 = 0; for (var v3 in this.radioList) { v2 += this.radioList[v3].enabled; } if (v2 == 0) { return false; } if (v2 == this.radioList.length) { return true; } }; v1.symbolName = 'RadioButtonGroup'; v1.symbolOwner = mx.controls.RadioButtonGroup; v1.version = '2.0.2.126'; v2.className = 'RadioButtonGroup'; v2.indexNumber = 0; v2.addProperty('enabled', v2.__get__enabled, v2.__set__enabled); v2.addProperty('groupName', v2.__get__groupName, v2.__set__groupName); v2.addProperty('labelPlacement', v2.__get__labelPlacement, v2.__set__labelPlacement); v2.addProperty('selectedData', v2.__get__selectedData, v2.__set__selectedData); v2.addProperty('selection', v2.__get__selection, v2.__set__selection); ASSetPropFlags(mx.controls.RadioButtonGroup.prototype, null, 1); } #endinitclip } movieClip 82 __Packages.mx.skins.halo.ButtonSkin { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.ButtonSkin) { var v1 = function () { super(); }; mx.skins.halo.ButtonSkin = v1; var v2 = new mx.skins.RectBorder(); mx.skins.halo.ButtonSkin.prototype = v2; v2.init = function () { super.init(); }; v2.size = function () { this.drawHaloRect(this.__get__width(), this.__get__height()); }; v2.drawHaloRect = function (w, h) { var v6 = this.getStyle('borderStyle'); var v4 = this.getStyle('themeColor'); var v5 = this._parent.emphasized; this.clear(); switch (v6) { case 'falseup': if (v5) { this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 9542041, 100); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 75); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 85, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, v4, 75); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, 16316664, 100); } else { this.drawRoundRect(0, 0, w, h, 5, 9542041, 100); this.drawRoundRect(1, 1, w - 2, h - 2, 4, [13291985, 16250871], 100, 0, 'radial'); this.drawRoundRect(2, 2, w - 4, h - 4, 3, [9542041, 13818586], 100, 0, 'radial'); this.drawRoundRect(3, 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(3, 4, w - 6, h - 7, 2, 16316664, 100); } break; case 'falsedown': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 9542041, 100); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, v4, 50); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 40); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, v4, 20); break; case 'falserollover': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 9542041, 100); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 50); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, v4, 50); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, 16316664, 100); break; case 'falsedisabled': this.drawRoundRect(0, 0, w, h, 5, 13159628, 100); this.drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100); this.drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100); this.drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100); break; case 'trueup': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 10066329, 100); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, v4, 50); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 40); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, 16250871, 100); break; case 'truedown': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 10066329, 100); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, v4, 50); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 40); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, v4, 20); break; case 'truerollover': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 9542041, 100); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 50); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, v4, 40); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, v4, 40); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, 16316664, 100); break; case 'truedisabled': this.drawRoundRect(0, 0, w, h, 5, 13159628, 100); this.drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100); this.drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100); this.drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100); } }; v1.classConstruct = function () { mx.core.ext.UIObjectExtensions.Extensions(); _global.skinRegistry.ButtonSkin = true; return true; }; v1.symbolName = 'ButtonSkin'; v1.symbolOwner = mx.skins.halo.ButtonSkin; v2.className = 'ButtonSkin'; v2.backgroundColorName = 'buttonColor'; v1.classConstructed = mx.skins.halo.ButtonSkin.classConstruct(); v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; ASSetPropFlags(mx.skins.halo.ButtonSkin.prototype, null, 1); } #endinitclip } button 87 { on (release) { var REQUEST2 = new LoadVars(); REQUEST2.GAMEID = _global.GAMEID; REQUEST2.EVTID = 'click_playnow_loader'; REQUEST2.DOMAIN = _global.LC.domain(); REQUEST2.REF = _global.PUBLISHER_REF; var url; url = 'http://www.playnow3dgames.com/index.php?game=' + _global.GAMEID; getURL(url, '_blank', 'POST'); } } movieClip 92 { } movieClip 93 { } movieClip 96 { } movieClip 97 { frame 1 { function updateProgress(_KB, _TOTKB) { var v3 = Math.round(_KB / 1024); var v5 = Math.round(_TOTKB / 1024); var v1 = 1 + Math.round(99 * _KB / _TOTKB); bar_mc.gotoAndStop(v1); } function evt_flashserve1() { var RESPONSE = new LoadVars(); RESPONSE.onLoad = function (success) { if (success) { if (RESPONSE.STATUS == 'OK') { _global.FLASHSERVE2 = RESPONSE.FLASHSERVE2; if (RESPONSE.AD != 'none') { preroll_mc.playAd(RESPONSE.AD); } } } }; var v2 = new LoadVars(); v2.GAMEID = _global.GAMEID; v2.EVTID = 'gameplay'; v2.DOMAIN = _global.LC.domain(); v2.REF = _global.PUBLISHER_REF; v2.AD = 'preroll'; v2.sendAndLoad('http://' + _global.FLASHSERVE1 + '/evt.php', RESPONSE, 'POST'); } stop(); _global.LOADERGAME = this; if (_global.GAME_AUTH == undefined) { _global.GAME_AUTH = false; } if (!_global.GAME_AUTH) { } } } frame 11 { ++LOADERCOUNTER; T = this.getBytesTotal(); L = this.getBytesLoaded(); PCT1 = L / T; PCT2 = LOADERCOUNTER / LOADERCOUNTERTOTAL; if (PCT1 > PCT2) { L = PCT2 * T; } if (L < T) { gotoAndPlay(10); loader_mc.updateProgress(L, T); } else { gotoAndPlay('dummy'); } } frame 20 { gotoAndPlay('sound'); } movieClip 115 { frame 23 { _global.JUKEBOX.playSound3('bodyfall'); } frame 37 { stop(); } } movieClip 131 { frame 37 { _global.JUKEBOX.playSound3('bodyfall'); } frame 72 { stop(); UNIT.doneAcidOn(); } } movieClip 150 { frame 37 { _global.JUKEBOX.playSound3('bodyfall'); } frame 52 { stop(); } } movieClip 161 { frame 21 { _global.JUKEBOX.playSound3('bodyfall'); } frame 32 { stop(); UNIT.doneBatOn(); } } movieClip 168 { } movieClip 171 { frame 12 { stop(); } } movieClip 173 { } movieClip 223 { frame 31 { UNIT.burn(); _global.JUKEBOX.playSound2('n33finishHim'); } frame 59 { UNIT.doneFatality(); } } movieClip 240 { frame 30 { stop(); UNIT.doneDeath(); } } movieClip 243 { } movieClip 247 { } movieClip 252 { frame 4 { UNIT.holdBlock(this); } frame 10 { UNIT.doneBlock(); } } movieClip 261 { frame 4 { UNIT.holdBlock(this); } frame 9 { UNIT.doneBlock(); } } movieClip 277 { frame 2 { UNIT.holdFall(this); } frame 13 { _global.JUKEBOX.playSound3('bodyfall'); } frame 17 { _global.SCENEMANAGER.SCENE.reactFall(UNIT); } frame 42 { UNIT.doneHitted(); } } movieClip 282 { frame 4 { UNIT.doneHitted(); } } movieClip 286 { frame 4 { UNIT.doneHitted(); } } movieClip 297 { } movieClip 298 { frame 9 { UNIT.attackNow(hp_mc); } frame 19 { UNIT.doneAttack(); } } movieClip 302 { frame 7 { UNIT.attackNow(hp_mc); } frame 10 { UNIT.doneAttack(); } } movieClip 305 { frame 7 { UNIT.attackNow(hp_mc); } frame 10 { UNIT.doneAttack(); } } movieClip 324 { frame 9 { UNIT.attackNow(hp_mc); } frame 18 { UNIT.doneAttack(); } } movieClip 329 { frame 7 { UNIT.attackNow(hp_mc); } frame 11 { UNIT.doneAttack(); } } movieClip 336 { frame 7 { UNIT.attackNow(hp_mc); } frame 12 { UNIT.doneAttack(); } } movieClip 369 { frame 13 { _global.JUKEBOX.playSound2('pistol'); } frame 14 { UNIT.attackNow(hp_mc); } frame 33 { UNIT.doneAttack(); } } movieClip 376 { frame 7 { UNIT.attackNow(hp_mc); } frame 10 { UNIT.doneAttack(); } } movieClip 391 { frame 6 { _global.JUKEBOX.playSound2('pistol'); } frame 7 { UNIT.attackNow(hp_mc); } frame 14 { UNIT.doneAttack(); } } movieClip 402 { } movieClip 409 { } movieClip 422 { frame 50 { UNIT.doneStarting(); } } movieClip 423 { frame 1 { function initStarting() { setBody(starting_mc, false, 1); } function starting() { setBody(starting_mc, true, 1); } function ready() { setBody(ready_mc, true, 1); } function walk() { setBody(walk_mc, true, 1); } function attackA1() { setBody(attackA1_mc, true, 1); return ATTACKA1; } function attackA2() { setBody(attackA2_mc, true, 1); return ATTACKA2; } function attackA3() { setBody(attackA3_mc, true, 1); return ATTACKA3; } function attackB1() { setBody(attackB1_mc, true, 1); return ATTACKB1; } function attackB2() { setBody(attackB2_mc, true, 1); return ATTACKB2; } function attackB3() { setBody(attackB3_mc, true, 1); return ATTACKB3; } function attackC1() { setBody(attackC1_mc, true, 1); return ATTACKC1; } function attackC2() { setBody(attackC2_mc, true, 1); return ATTACKC2; } function attackC3() { setBody(attackC3_mc, true, 1); return ATTACKC3; } function hittedH() { setBody(hittedH_mc, true, 1); } function hittedL() { setBody(hittedL_mc, true, 1); } function fallandgetup() { setBody(fallandgetup_mc, true, 1); } function blockH() { setBody(blockH_mc, true, 1); } function blockL() { setBody(blockL_mc, true, 1); } function prefatality() { setBody(prefatality_mc, true, 1); } function death() { setBody(death_mc, true, 1); } function fatality() { setBody(fatality_mc, true, 1); } function win() { setBody(win_mc, true, 1); } function jumpingdown() { setBody(jumpingdown_mc, true, 1); } function af_N33() { setBody(af_N33_mc, true, 1); } function af_BONES() { setBody(af_BONES_mc, true, 1); } function af_BECKY() { setBody(af_BECKY_mc, true, 1); } function af_NICOLE() { setBody(af_NICOLE_mc, true, 1); } function af_CYBERLLAMA() { setBody(af_CYBERLLAMA_mc, true, 1); } function af_RIOKO() { setBody(af_RIOKO_mc, true, 1); } function setBody(_MC, _PLAYCLIP, _PLAYATFRAME) { MC.stop(); MC._visible = false; MC = _MC; MC._visible = true; if (_PLAYCLIP) { MC.gotoAndPlay(_PLAYATFRAME); } } stop(); UNIT = _parent._parent; CLIPS = [starting_mc, ready_mc, walk_mc, prefatality_mc, death_mc, win_mc]; CLIPS.push(attackA1_mc); CLIPS.push(attackA2_mc); CLIPS.push(attackA3_mc); CLIPS.push(attackB1_mc); CLIPS.push(attackB2_mc); CLIPS.push(attackB3_mc); CLIPS.push(attackC1_mc); CLIPS.push(attackC2_mc); CLIPS.push(attackC3_mc); CLIPS.push(fatality_mc); CLIPS.push(hittedL_mc); CLIPS.push(hittedH_mc); CLIPS.push(fallandgetup_mc); CLIPS.push(blockL_mc); CLIPS.push(blockH_mc); CLIPS.push(af_N33_mc); CLIPS.push(af_BONES_mc); CLIPS.push(af_BECKY_mc); CLIPS.push(af_NICOLE_mc); CLIPS.push(af_CYBERLLAMA_mc); CLIPS.push(af_RIOKO_mc); CLIPS.push(jumpingdown_mc); C = CLIPS.length; i = 0; while (i < C) { CLIPS[i].UNIT = UNIT; CLIPS[i].stop(); CLIPS[i]._visible = false; ++i; } MC = starting_mc; MC._visible = true; initStarting(); ATTACKA1 = {'h': 1, 'range': 250, 'damage': 5, 'soundtype': 1}; ATTACKA2 = {'h': 1, 'range': 90, 'damage': 10, 'soundtype': 2}; ATTACKA3 = {'h': 1, 'range': 500, 'damage': 15, 'soundtype': 1}; ATTACKB1 = {'h': 1, 'range': 140, 'damage': 5, 'soundtype': 2}; ATTACKB2 = {'h': 1, 'range': 160, 'damage': 10, 'soundtype': 2}; ATTACKB3 = {'h': 1, 'range': 190, 'damage': 15, 'soundtype': 2}; ATTACKC1 = {'h': 2, 'range': 150, 'damage': 5, 'soundtype': 2}; ATTACKC2 = {'h': 2, 'range': 100, 'damage': 10, 'soundtype': 2}; ATTACKC3 = {'h': 1, 'range': 150, 'damage': 15, 'soundtype': 2}; UNIT.COMBOATTACKS = []; UNIT.COMBOATTACKS.push([ATTACKA1, ATTACKA2, ATTACKA3]); UNIT.COMBOATTACKS.push([ATTACKB1, ATTACKB2, ATTACKB3]); UNIT.COMBOATTACKS.push([ATTACKC1, ATTACKC2, ATTACKC3]); } } movieClip 424 { frame 1 { stop(); } } movieClip 425 N33 { #initclip Object.registerClass('N33', aiUnit); #endinitclip frame 1 { function burn() { OPPONENT.BODY.af_N33(); } function explode() { OPPONENT.BODY.af_CYBERLLAMA(); } function slashHead() { OPPONENT.BODY.af_RIOKO(); } stop(); if (INIT == undefined) { INIT = true; GENDER = 'male'; NAME = 'N33'; BODY = body_mc.body_mc; BODYORIENTATION = body_mc; EVTMANAGER = _global.EVTMANAGER; HFACTOR = 400; HEALTH = 100; SPEED = 8; DAMAGE = 10; INITADELAY = 10; ADELAY = INITADELAY; AINTERVAL = 30; BLOCKPCT = 0.4; DOCOMBOPCT = 0.9; _global.SCENEMANAGER.setUnitDifficulty(this); if (SIDE == 1) { body_mc.gotoAndStop(2); } else { body_mc.gotoAndStop(1); } } } } movieClip 426 N33_player { #initclip Object.registerClass('N33_player', aiPlayer); #endinitclip frame 1 { function burn() { OPPONENT.BODY.af_N33(); } function explode() { OPPONENT.BODY.af_CYBERLLAMA(); } function slashHead() { OPPONENT.BODY.af_RIOKO(); } stop(); if (INIT == undefined) { INIT = true; GENDER = 'male'; NAME = 'N33'; FATALITY_K1 = _global.CONTROLS.KEYA; FATALITY_K2 = _global.CONTROLS.KEYB; FATALITY_K3 = _global.CONTROLS.KEYA; FATALITY_K4 = _global.CONTROLS.KEYB; FATALITY_K5 = _global.CONTROLS.KEYA; FATALITY_K6 = _global.CONTROLS.KEYB; BODY = body_mc.body_mc; BODYORIENTATION = body_mc; EVTMANAGER = _global.EVTMANAGER; HFACTOR = 300; HEALTH = 100; SPEED = 8; DAMAGE = 10; ADELAY = 16; AINTERVAL = 30; BLOCKPCT = 0.3; BHIGHDEFENSE = 1; BLOWDEFENSE = 2; if (SIDE == 1) { body_mc.gotoAndStop(2); } else { body_mc.gotoAndStop(1); } } } } movieClip 442 { frame 9 { _global.JUKEBOX.playSound3('bodyfall'); } frame 34 { stop(); } } movieClip 463 { frame 53 { _global.JUKEBOX.playSound3('bodyfall'); } frame 98 { stop(); UNIT.doneAcidOn(); } } movieClip 498 { frame 37 { _global.JUKEBOX.playSound3('bodyfall'); } frame 52 { stop(); } } movieClip 513 { frame 12 { _global.JUKEBOX.playSound3('bodyfall'); } frame 38 { stop(); UNIT.doneBatOn(); } } movieClip 515 { } movieClip 524 { frame 34 { stop(); } } movieClip 527 { } movieClip 535 { } movieClip 537 { } movieClip 542 { } movieClip 580 { frame 1 { stop(); } } movieClip 586 { frame 1 { stop(); } frame 9 { stop(); } } movieClip 595 { frame 17 { stop(); } } movieClip 596 { frame 66 { _global.JUKEBOX.playSound2('vwoom'); } frame 79 { UNIT.slash(); } frame 94 { gunDude_mc.gotoAndPlay(2); _global.JUKEBOX.playSound1('assaultRifle2'); } frame 111 { bomb_guy_mc.play(); } frame 118 { _global.JUKEBOX.playSound2('grenade'); } frame 166 { UNIT.doneFatality(); } } movieClip 608 { frame 33 { stop(); UNIT.doneDeath(); } } movieClip 611 { } movieClip 615 { } movieClip 619 { } movieClip 620 { frame 3 { UNIT.holdBlock(this); } frame 11 { UNIT.doneBlock(); } instance of movieClip 619 { onClipEvent (enterFrame) { _parent._parent.gotoAndPlay(1); } } } movieClip 625 { } movieClip 630 { frame 5 { UNIT.holdBlock(this); } frame 10 { UNIT.doneBlock(); } } movieClip 641 { } movieClip 648 { frame 2 { UNIT.holdFall(this); } frame 15 { _global.JUKEBOX.playSound3('bodyfall'); } frame 19 { _global.SCENEMANAGER.SCENE.reactFall(UNIT); } frame 34 { UNIT.doneHitted(); } } movieClip 650 { } movieClip 653 { frame 4 { UNIT.doneHitted(); } } movieClip 657 { frame 4 { UNIT.doneHitted(); } } movieClip 688 { frame 12 { _global.JUKEBOX.playSound2('pistol'); } frame 13 { UNIT.attackNow(hp_mc); } frame 28 { UNIT.doneAttack(); } } movieClip 693 { frame 7 { UNIT.attackNow(hp_mc); } frame 10 { UNIT.doneAttack(); } } movieClip 704 { frame 4 { _global.JUKEBOX.playSound1('assaultRifle'); } frame 7 { UNIT.attackNow(hp_mc); } frame 16 { UNIT.doneAttack(); } } movieClip 729 { frame 5 { _global.JUKEBOX.playSound1('assaultRifle'); } frame 7 { UNIT.attackNow(hp_mc); } frame 26 { UNIT.doneAttack(); } } movieClip 738 { frame 7 { UNIT.attackNow(hp_mc); } frame 10 { UNIT.doneAttack(); } } movieClip 741 { frame 7 { UNIT.attackNow(hp_mc); } frame 10 { UNIT.doneAttack(); } } movieClip 758 { frame 7 { UNIT.attackNow(hp_mc); } frame 24 { UNIT.doneAttack(); } } movieClip 761 { frame 7 { UNIT.attackNow(hp_mc); } frame 11 { UNIT.doneAttack(); } } movieClip 766 { frame 7 { UNIT.attackNow(hp_mc); } frame 12 { UNIT.doneAttack(); } } movieClip 774 { } movieClip 781 { } movieClip 782 { frame 50 { UNIT.doneStarting(); } } movieClip 783 { frame 1 { function initStarting() { setBody(starting_mc, false, 1); } function starting() { setBody(starting_mc, true, 1); } function ready() { setBody(ready_mc, true, 1); } function walk() { setBody(walk_mc, true, 1); } function attackA1() { setBody(attackA1_mc, true, 1); return ATTACKA1; } function attackA2() { setBody(attackA2_mc, true, 1); return ATTACKA2; } function attackA3() { setBody(attackA3_mc, true, 1); return ATTACKA3; } function attackB1() { setBody(attackB1_mc, true, 1); return ATTACKB1; } function attackB2() { setBody(attackB2_mc, true, 1); return ATTACKB2; } function attackB3() { setBody(attackB3_mc, true, 1); return ATTACKB3; } function attackC1() { setBody(attackC1_mc, true, 1); return ATTACKC1; } function attackC2() { setBody(attackC2_mc, true, 1); return ATTACKC2; } function attackC3() { setBody(attackC3_mc, true, 1); return ATTACKC3; } function hittedH() { setBody(hittedH_mc, true, 1); } function hittedL() { setBody(hittedL_mc, true, 1); } function fallandgetup() { setBody(fallandgetup_mc, true, 1); } function blockH() { setBody(blockH_mc, true, 1); } function blockL() { setBody(blockL_mc, true, 1); } function prefatality() { setBody(prefatality_mc, true, 1); } function death() { setBody(death_mc, true, 1); } function fatality() { setBody(fatality_mc, true, 1); } function win() { setBody(win_mc, true, 1); } function jumpingdown() { setBody(jumpingdown_mc, true, 1); } function af_N33() { setBody(af_N33_mc, true, 1); } function af_BONES() { setBody(af_BONES_mc, true, 1); } function af_BECKY() { setBody(af_BECKY_mc, true, 1); } function af_NICOLE() { setBody(af_NICOLE_mc, true, 1); } function af_CYBERLLAMA() { setBody(af_CYBERLLAMA_mc, true, 1); } function af_RIOKO() { setBody(af_RIOKO_mc, true, 1); } function setBody(_MC, _PLAYCLIP, _PLAYATFRAME) { MC.stop(); MC._visible = false; MC = _MC; MC._visible = true; if (_PLAYCLIP) { MC.gotoAndPlay(_PLAYATFRAME); } } stop(); UNIT = _parent._parent; CLIPS = [starting_mc, ready_mc, walk_mc, prefatality_mc, death_mc, win_mc]; CLIPS.push(attackA1_mc); CLIPS.push(attackA2_mc); CLIPS.push(attackA3_mc); CLIPS.push(attackB1_mc); CLIPS.push(attackB2_mc); CLIPS.push(attackB3_mc); CLIPS.push(attackC1_mc); CLIPS.push(attackC2_mc); CLIPS.push(attackC3_mc); CLIPS.push(fatality_mc); CLIPS.push(hittedL_mc); CLIPS.push(hittedH_mc); CLIPS.push(fallandgetup_mc); CLIPS.push(blockL_mc); CLIPS.push(blockH_mc); CLIPS.push(af_N33_mc); CLIPS.push(af_BONES_mc); CLIPS.push(af_BECKY_mc); CLIPS.push(af_NICOLE_mc); CLIPS.push(af_CYBERLLAMA_mc); CLIPS.push(af_RIOKO_mc); CLIPS.push(jumpingdown_mc); C = CLIPS.length; i = 0; while (i < C) { CLIPS[i].UNIT = UNIT; CLIPS[i].stop(); CLIPS[i]._visible = false; ++i; } MC = starting_mc; MC._visible = true; initStarting(); ATTACKA1 = {'h': 1, 'range': 70, 'damage': 5, 'soundtype': 2}; ATTACKA2 = {'h': 1, 'range': 120, 'damage': 10, 'soundtype': 2}; ATTACKA3 = {'h': 2, 'range': 100, 'damage': 15, 'soundtype': 2}; ATTACKB1 = {'h': 2, 'range': 80, 'damage': 5, 'soundtype': 2}; ATTACKB2 = {'h': 2, 'range': 85, 'damage': 10, 'soundtype': 2}; ATTACKB3 = {'h': 1, 'range': 350, 'damage': 15, 'soundtype': 1}; ATTACKC1 = {'h': 1, 'range': 300, 'damage': 5, 'soundtype': 1}; ATTACKC2 = {'h': 2, 'range': 100, 'damage': 10, 'soundtype': 2}; ATTACKC3 = {'h': 1, 'range': 400, 'damage': 15, 'soundtype': 1}; UNIT.COMBOATTACKS = []; UNIT.COMBOATTACKS.push([ATTACKA1, ATTACKA2, ATTACKA3]); UNIT.COMBOATTACKS.push([ATTACKB1, ATTACKB2, ATTACKB3]); UNIT.COMBOATTACKS.push([ATTACKC1, ATTACKC2, ATTACKC3]); } } movieClip 784 { frame 1 { stop(); } } movieClip 785 REBECCA { #initclip Object.registerClass('REBECCA', aiUnit); #endinitclip frame 1 { function burn() { OPPONENT.BODY.af_N33(); } function explode() { OPPONENT.BODY.af_CYBERLLAMA(); } function slashHead() { OPPONENT.BODY.af_RIOKO(); } stop(); if (INIT == undefined) { INIT = true; GENDER = 'female'; NAME = 'REBECCA'; BODY = body_mc.body_mc; BODYORIENTATION = body_mc; EVTMANAGER = _global.EVTMANAGER; HFACTOR = 400; HEALTH = 100; SPEED = 8; DAMAGE = 10; INITADELAY = 10; ADELAY = INITADELAY; AINTERVAL = 30; BLOCKPCT = 0.4; DOCOMBOPCT = 0.9; _global.SCENEMANAGER.setUnitDifficulty(this); if (SIDE == 1) { body_mc.gotoAndStop(2); } else { body_mc.gotoAndStop(1); } } } } movieClip 786 REBECCA_player { #initclip Object.registerClass('REBECCA_player', aiPlayer); #endinitclip frame 1 { function burn() { OPPONENT.BODY.af_N33(); } function explode() { OPPONENT.BODY.af_CYBERLLAMA(); } function slashHead() { OPPONENT.BODY.af_RIOKO(); } stop(); if (INIT == undefined) { INIT = true; GENDER = 'female'; NAME = 'REBECCA'; FATALITY_K1 = _global.CONTROLS.KEYC; FATALITY_K2 = _global.CONTROLS.KEYC; FATALITY_K3 = _global.CONTROLS.KEYB; FATALITY_K4 = _global.CONTROLS.KEYB; FATALITY_K5 = _global.CONTROLS.KEYA; FATALITY_K6 = _global.CONTROLS.KEYA; BODY = body_mc.body_mc; BODYORIENTATION = body_mc; EVTMANAGER = _global.EVTMANAGER; HFACTOR = 300; HEALTH = 100; SPEED = 8; DAMAGE = 10; ADELAY = 16; AINTERVAL = 30; BLOCKPCT = 0.3; BHIGHDEFENSE = 1; BLOWDEFENSE = 2; if (SIDE == 1) { body_mc.gotoAndStop(2); } else { body_mc.gotoAndStop(1); } } } } movieClip 796 { frame 17 { _global.JUKEBOX.playSound3('bodyfall'); } frame 34 { stop(); } } movieClip 816 { frame 45 { _global.JUKEBOX.playSound3('bodyfall'); } frame 92 { stop(); UNIT.doneAcidOn(); } } movieClip 835 { frame 37 { _global.JUKEBOX.playSound3('bodyfall'); } frame 51 { stop(); } } movieClip 844 { frame 13 { _global.JUKEBOX.playSound3('bodyfall'); } frame 40 { stop(); UNIT.doneBatOn(); } } movieClip 846 { } movieClip 853 { frame 30 { stop(); } } movieClip 860 { frame 6 { _global.JUKEBOX.playSound2('splat'); } frame 7 { UNIT.createAcidBall(); } frame 19 { stop(); } } movieClip 866 { frame 18 { stop(); UNIT.doneDeath(); } } movieClip 869 { } movieClip 876 { frame 5 { UNIT.holdBlock(this); } frame 9 { UNIT.doneBlock(); } } movieClip 881 { frame 5 { UNIT.holdBlock(this); } frame 9 { UNIT.doneBlock(); } } movieClip 895 { frame 2 { UNIT.holdFall(this); } frame 15 { _global.JUKEBOX.playSound3('bodyfall'); } frame 19 { _global.SCENEMANAGER.SCENE.reactFall(UNIT); } frame 34 { UNIT.doneHitted(); } } movieClip 899 { frame 4 { UNIT.doneHitted(); } } movieClip 903 { frame 4 { UNIT.doneHitted(); } } movieClip 914 { frame 6 { _global.JUKEBOX.playSound2('knife'); } frame 7 { UNIT.attackNow(hp_mc); } frame 13 { UNIT.doneAttack(); } } movieClip 923 { frame 7 { UNIT.attackNow(hp_mc); } frame 10 { UNIT.doneAttack(); } } movieClip 934 { frame 6 { _global.JUKEBOX.playSound2('splat'); } frame 7 { UNIT.attackNow(hp_mc); } frame 12 { UNIT.doneAttack(); } } movieClip 955 { frame 8 { _global.JUKEBOX.playSound2('splat'); } frame 9 { UNIT.attackNow(hp_mc); } frame 20 { UNIT.doneAttack(); } } movieClip 958 { frame 6 { _global.JUKEBOX.playSound2('knife'); } frame 7 { UNIT.attackNow(hp_mc); } frame 12 { UNIT.doneAttack(); } } movieClip 961 { frame 7 { UNIT.attackNow(hp_mc); } frame 10 { UNIT.doneAttack(); } } movieClip 978 { frame 7 { UNIT.attackNow(hp_mc); } frame 16 { UNIT.doneAttack(); } } movieClip 983 { frame 7 { UNIT.attackNow(hp_mc); } frame 10 { UNIT.doneAttack(); } } movieClip 988 { frame 7 { UNIT.attackNow(hp_mc); } frame 12 { UNIT.doneAttack(); } } movieClip 995 { } movieClip 1000 { } movieClip 1005 { frame 50 { stop(); UNIT.doneStarting(); } } movieClip 1006 { frame 1 { function initStarting() { setBody(starting_mc, false, 1); } function starting() { setBody(starting_mc, true, 1); } function ready() { setBody(ready_mc, true, 1); } function walk() { setBody(walk_mc, true, 1); } function attackA1() { setBody(attackA1_mc, true, 1); return ATTACKA1; } function attackA2() { setBody(attackA2_mc, true, 1); return ATTACKA2; } function attackA3() { setBody(attackA3_mc, true, 1); return ATTACKA3; } function attackB1() { setBody(attackB1_mc, true, 1); return ATTACKB1; } function attackB2() { setBody(attackB2_mc, true, 1); return ATTACKB2; } function attackB3() { setBody(attackB3_mc, true, 1); return ATTACKB3; } function attackC1() { setBody(attackC1_mc, true, 1); return ATTACKC1; } function attackC2() { setBody(attackC2_mc, true, 1); return ATTACKC2; } function attackC3() { setBody(attackC3_mc, true, 1); return ATTACKC3; } function hittedH() { setBody(hittedH_mc, true, 1); } function hittedL() { setBody(hittedL_mc, true, 1); } function fallandgetup() { setBody(fallandgetup_mc, true, 1); } function blockH() { setBody(blockH_mc, true, 1); } function blockL() { setBody(blockL_mc, true, 1); } function prefatality() { setBody(prefatality_mc, true, 1); } function death() { setBody(death_mc, true, 1); } function fatality() { setBody(fatality_mc, true, 1); } function win() { setBody(win_mc, true, 1); } function jumpingdown() { setBody(jumpingdown_mc, true, 1); } function af_N33() { setBody(af_N33_mc, true, 1); } function af_BONES() { setBody(af_BONES_mc, true, 1); } function af_BECKY() { setBody(af_BECKY_mc, true, 1); } function af_NICOLE() { setBody(af_NICOLE_mc, true, 1); } function af_CYBERLLAMA() { setBody(af_CYBERLLAMA_mc, true, 1); } function af_RIOKO() { setBody(af_RIOKO_mc, true, 1); } function setBody(_MC, _PLAYCLIP, _PLAYATFRAME) { MC.stop(); MC._visible = false; MC = _MC; MC._visible = true; if (_PLAYCLIP) { MC.gotoAndPlay(_PLAYATFRAME); } } stop(); UNIT = _parent._parent; ATTACKA1 = {'h': 1, 'range': 85, 'damage': 5, 'soundtype': 2}; ATTACKA2 = {'h': 1, 'range': 104, 'damage': 10, 'soundtype': 2}; ATTACKA3 = {'h': 1, 'range': 140, 'damage': 15, 'soundtype': 2}; ATTACKB1 = {'h': 2, 'range': 65, 'damage': 5, 'soundtype': 2}; ATTACKB2 = {'h': 1, 'range': 75, 'damage': 10, 'soundtype': 1}; ATTACKB3 = {'h': 2, 'range': 250, 'damage': 15, 'soundtype': 1}; ATTACKC1 = {'h': 1, 'range': 240, 'damage': 5, 'soundtype': 1}; ATTACKC2 = {'h': 1, 'range': 70, 'damage': 10, 'soundtype': 2}; ATTACKC3 = {'h': 1, 'range': 190, 'damage': 15, 'soundtype': 1}; UNIT.COMBOATTACKS = []; UNIT.COMBOATTACKS.push([ATTACKA1, ATTACKA2, ATTACKA3]); UNIT.COMBOATTACKS.push([ATTACKB1, ATTACKB2, ATTACKB3]); UNIT.COMBOATTACKS.push([ATTACKC1, ATTACKC2, ATTACKC3]); CLIPS = [starting_mc, ready_mc, walk_mc, prefatality_mc, death_mc, win_mc]; CLIPS.push(attackA1_mc); CLIPS.push(attackA2_mc); CLIPS.push(attackA3_mc); CLIPS.push(attackB1_mc); CLIPS.push(attackB2_mc); CLIPS.push(attackB3_mc); CLIPS.push(attackC1_mc); CLIPS.push(attackC2_mc); CLIPS.push(attackC3_mc); CLIPS.push(fatality_mc); CLIPS.push(hittedL_mc); CLIPS.push(hittedH_mc); CLIPS.push(fallandgetup_mc); CLIPS.push(blockL_mc); CLIPS.push(blockH_mc); CLIPS.push(af_N33_mc); CLIPS.push(af_BONES_mc); CLIPS.push(af_BECKY_mc); CLIPS.push(af_NICOLE_mc); CLIPS.push(af_CYBERLLAMA_mc); CLIPS.push(af_RIOKO_mc); CLIPS.push(jumpingdown_mc); C = CLIPS.length; i = 0; while (i < C) { CLIPS[i].UNIT = UNIT; CLIPS[i].stop(); CLIPS[i]._visible = false; ++i; } MC = starting_mc; MC._visible = true; initStarting(); } } movieClip 1007 { frame 1 { stop(); } } movieClip 1008 NICOLE { #initclip Object.registerClass('NICOLE', aiUnit); #endinitclip frame 1 { function burn() { OPPONENT.BODY.af_N33(); } function explode() { OPPONENT.BODY.af_CYBERLLAMA(); } function slashHead() { OPPONENT.BODY.af_RIOKO(); } stop(); if (INIT == undefined) { INIT = true; GENDER = 'female'; NAME = 'NICOLE'; BODY = body_mc.body_mc; BODYORIENTATION = body_mc; EVTMANAGER = _global.EVTMANAGER; HFACTOR = 400; HEALTH = 100; SPEED = 8; DAMAGE = 10; INITADELAY = 10; ADELAY = INITADELAY; AINTERVAL = 30; BLOCKPCT = 0.4; DOCOMBOPCT = 0.9; _global.SCENEMANAGER.setUnitDifficulty(this); if (SIDE == 1) { body_mc.gotoAndStop(2); } else { body_mc.gotoAndStop(1); } } } } movieClip 1009 NICOLE_player { #initclip Object.registerClass('NICOLE_player', aiPlayer); #endinitclip frame 1 { function burn() { OPPONENT.BODY.af_N33(); } function explode() { OPPONENT.BODY.af_CYBERLLAMA(); } function slashHead() { OPPONENT.BODY.af_RIOKO(); } stop(); if (INIT == undefined) { INIT = true; GENDER = 'female'; NAME = 'NICOLE'; FATALITY_K1 = _global.CONTROLS.KEYB; FATALITY_K2 = _global.CONTROLS.KEYB; FATALITY_K3 = _global.CONTROLS.KEYB; FATALITY_K4 = _global.CONTROLS.KEYA; FATALITY_K5 = _global.CONTROLS.KEYA; FATALITY_K6 = _global.CONTROLS.KEYA; BODY = body_mc.body_mc; BODYORIENTATION = body_mc; EVTMANAGER = _global.EVTMANAGER; HFACTOR = 300; HEALTH = 100; SPEED = 8; DAMAGE = 10; ADELAY = 16; AINTERVAL = 30; BLOCKPCT = 0.3; BHIGHDEFENSE = 1; BLOWDEFENSE = 2; if (SIDE == 1) { body_mc.gotoAndStop(2); } else { body_mc.gotoAndStop(1); } } } } movieClip 1012 { } movieClip 1013 acidball { frame 1 { stop(); } } movieClip 1024 { frame 17 { _global.JUKEBOX.playSound3('bodyfall'); } frame 36 { stop(); } } movieClip 1042 { frame 33 { _global.JUKEBOX.playSound3('bodyfall'); } frame 70 { stop(); UNIT.doneAcidOn(); } } movieClip 1077 { frame 37 { _global.JUKEBOX.playSound3('bodyfall'); } frame 45 { stop(); } } movieClip 1088 { frame 13 { _global.JUKEBOX.playSound3('bodyfall'); } frame 38 { stop(); UNIT.doneBatOn(); } } movieClip 1090 { } movieClip 1094 { frame 20 { stop(); } } movieClip 1097 { frame 1 { stop(); } } movieClip 1106 { frame 3 { _global.JUKEBOX.playSound3('bodyfall'); } frame 28 { stop(); } } movieClip 1115 { frame 3 { _global.JUKEBOX.playSound3('bodyfall'); } frame 24 { stop(); } } movieClip 1122 { } movieClip 1131 { frame 3 { _global.JUKEBOX.playSound3('bodyfall'); } frame 23 { stop(); } } movieClip 1141 { frame 3 { _global.JUKEBOX.playSound3('bodyfall'); } frame 26 { stop(); } } movieClip 1147 { frame 3 { _global.JUKEBOX.playSound3('bodyfall'); } frame 24 { stop(); } } movieClip 1156 { frame 3 { _global.JUKEBOX.playSound3('bodyfall'); } frame 23 { stop(); } } movieClip 1165 { frame 3 { _global.JUKEBOX.playSound3('bodyfall'); } frame 22 { stop(); } } movieClip 1175 { frame 3 { _global.JUKEBOX.playSound3('bodyfall'); } frame 24 { stop(); } } movieClip 1176 { frame 1 { function setPlayer(_PLAYERNAME) { switch (_PLAYERNAME) { case 'N33': gotoAndStop(2); break; case 'FREAK': gotoAndStop(3); break; case 'BONES': gotoAndStop(4); break; case 'REBECCA': gotoAndStop(5); break; case 'NICOLE': gotoAndStop(6); break; case 'CYBERLLAMA': gotoAndStop(7); break; case 'MATHEW': gotoAndStop(8); break; case 'RIOKO': gotoAndStop(9); } } stop(); } } movieClip 1181 { frame 24 { stop(); } } movieClip 1182 { frame 24 { jumping_mc.gotoAndStop(2); } frame 38 { UNIT.OPPONENT._visible = false; opp_mc.setPlayer(UNIT.OPPONENT.NAME); } frame 52 { _global.JUKEBOX.playSound2('skull_crack'); } frame 95 { UNIT.doneFatality(); } } movieClip 1187 { frame 22 { stop(); UNIT.doneDeath(); } } movieClip 1190 { } movieClip 1197 { frame 5 { UNIT.holdBlock(this); } frame 10 { UNIT.doneBlock(); } } movieClip 1201 { frame 5 { UNIT.holdBlock(this); } frame 9 { UNIT.doneBlock(); } } movieClip 1216 { frame 2 { UNIT.holdFall(this); } frame 15 { _global.JUKEBOX.playSound3('bodyfall'); } frame 19 { _global.SCENEMANAGER.SCENE.reactFall(UNIT); } frame 34 { UNIT.doneHitted(); } } movieClip 1220 { frame 4 { UNIT.doneHitted(); } } movieClip 1224 { frame 4 { UNIT.doneHitted(); } } movieClip 1235 { frame 9 { _global.JUKEBOX.playSound2('fire_ball'); } frame 13 { UNIT.attackNow(hp_mc); } frame 22 { UNIT.doneAttack(); } } movieClip 1241 { frame 7 { UNIT.attackNow(hp_mc); } frame 10 { UNIT.doneAttack(); } } movieClip 1256 { frame 11 { UNIT.attackNow(hp_mc); _global.JUKEBOX.playSound2('fire_ball'); } frame 20 { UNIT.doneAttack(); } } movieClip 1265 { frame 7 { _global.JUKEBOX.playSound2('fire_ball'); } frame 9 { UNIT.attackNow(hp_mc); } frame 16 { UNIT.doneAttack(); } } movieClip 1270 { frame 7 { UNIT.attackNow(hp_mc); } frame 12 { UNIT.doneAttack(); } } movieClip 1272 { frame 7 { UNIT.attackNow(hp_mc); } frame 10 { UNIT.doneAttack(); } } movieClip 1280 { frame 9 { UNIT.attackNow(hp_mc); } frame 10 { _global.JUKEBOX.playSound2('fire_ball'); } frame 16 { UNIT.doneAttack(); } } movieClip 1285 { frame 7 { UNIT.attackNow(hp_mc); } frame 10 { UNIT.doneAttack(); } } movieClip 1291 { frame 7 { UNIT.attackNow(hp_mc); } frame 12 { UNIT.doneAttack(); } } movieClip 1296 { } movieClip 1303 { } movieClip 1318 { frame 50 { stop(); UNIT.doneStarting(); } } movieClip 1319 { frame 1 { function initStarting() { setBody(starting_mc, false, 1); } function starting() { setBody(starting_mc, true, 1); } function ready() { setBody(ready_mc, true, 1); } function walk() { setBody(walk_mc, true, 1); } function attackA1() { setBody(attackA1_mc, true, 1); return ATTACKA1; } function attackA2() { setBody(attackA2_mc, true, 1); return ATTACKA2; } function attackA3() { setBody(attackA3_mc, true, 1); return ATTACKA3; } function attackB1() { setBody(attackB1_mc, true, 1); return ATTACKB1; } function attackB2() { setBody(attackB2_mc, true, 1); return ATTACKB2; } function attackB3() { setBody(attackB3_mc, true, 1); return ATTACKB3; } function attackC1() { setBody(attackC1_mc, true, 1); return ATTACKC1; } function attackC2() { setBody(attackC2_mc, true, 1); return ATTACKC2; } function attackC3() { setBody(attackC3_mc, true, 1); return ATTACKC3; } function hittedH() { setBody(hittedH_mc, true, 1); } function hittedL() { setBody(hittedL_mc, true, 1); } function fallandgetup() { setBody(fallandgetup_mc, true, 1); } function blockH() { setBody(blockH_mc, true, 1); } function blockL() { setBody(blockL_mc, true, 1); } function prefatality() { setBody(prefatality_mc, true, 1); } function death() { setBody(death_mc, true, 1); } function fatality() { setBody(fatality_mc, true, 1); } function win() { setBody(win_mc, true, 1); } function jumpingdown() { setBody(jumpingdown_mc, true, 1); } function af_N33() { setBody(af_N33_mc, true, 1); } function af_BONES() { setBody(af_BONES_mc, true, 1); } function af_BECKY() { setBody(af_BECKY_mc, true, 1); } function af_NICOLE() { setBody(af_NICOLE_mc, true, 1); } function af_CYBERLLAMA() { setBody(af_CYBERLLAMA_mc, true, 1); } function af_RIOKO() { setBody(af_RIOKO_mc, true, 1); } function setBody(_MC, _PLAYCLIP, _PLAYATFRAME) { MC.stop(); MC._visible = false; MC = _MC; MC._visible = true; if (_PLAYCLIP) { MC.gotoAndPlay(_PLAYATFRAME); } } stop(); UNIT = _parent._parent; ATTACKA1 = {'h': 1, 'range': 75, 'damage': 5, 'soundtype': 2}; ATTACKA2 = {'h': 2, 'range': 90, 'damage': 10, 'soundtype': 2}; ATTACKA3 = {'h': 2, 'range': 200, 'damage': 15, 'soundtype': 1}; ATTACKB1 = {'h': 2, 'range': 50, 'damage': 5, 'soundtype': 2}; ATTACKB2 = {'h': 1, 'range': 100, 'damage': 10, 'soundtype': 2}; ATTACKB3 = {'h': 1, 'range': 250, 'damage': 15, 'soundtype': 1}; ATTACKC1 = {'h': 1, 'range': 220, 'damage': 5, 'soundtype': 1}; ATTACKC2 = {'h': 1, 'range': 90, 'damage': 10, 'soundtype': 2}; ATTACKC3 = {'h': 2, 'range': 270, 'damage': 15, 'soundtype': 1}; UNIT.COMBOATTACKS = []; UNIT.COMBOATTACKS.push([ATTACKA1, ATTACKA2, ATTACKA3]); UNIT.COMBOATTACKS.push([ATTACKB1, ATTACKB2, ATTACKB3]); UNIT.COMBOATTACKS.push([ATTACKC1, ATTACKC2, ATTACKC3]); CLIPS = [starting_mc, ready_mc, walk_mc, prefatality_mc, death_mc, win_mc]; CLIPS.push(attackA1_mc); CLIPS.push(attackA2_mc); CLIPS.push(attackA3_mc); CLIPS.push(attackB1_mc); CLIPS.push(attackB2_mc); CLIPS.push(attackB3_mc); CLIPS.push(attackC1_mc); CLIPS.push(attackC2_mc); CLIPS.push(attackC3_mc); CLIPS.push(fatality_mc); CLIPS.push(hittedL_mc); CLIPS.push(hittedH_mc); CLIPS.push(fallandgetup_mc); CLIPS.push(blockL_mc); CLIPS.push(blockH_mc); CLIPS.push(af_N33_mc); CLIPS.push(af_BONES_mc); CLIPS.push(af_BECKY_mc); CLIPS.push(af_NICOLE_mc); CLIPS.push(af_CYBERLLAMA_mc); CLIPS.push(af_RIOKO_mc); CLIPS.push(jumpingdown_mc); C = CLIPS.length; i = 0; while (i < C) { CLIPS[i].UNIT = UNIT; CLIPS[i].stop(); CLIPS[i]._visible = false; ++i; } MC = starting_mc; MC._visible = true; initStarting(); } } movieClip 1320 { frame 1 { stop(); } } movieClip 1321 MATHEW { #initclip Object.registerClass('MATHEW', aiUnit); #endinitclip frame 1 { function burn() { OPPONENT.BODY.af_N33(); } function explode() { OPPONENT.BODY.af_CYBERLLAMA(); } function slashHead() { OPPONENT.BODY.af_RIOKO(); } stop(); if (INIT == undefined) { INIT = true; GENDER = 'male'; NAME = 'MATHEW'; BODY = body_mc.body_mc; BODYORIENTATION = body_mc; EVTMANAGER = _global.EVTMANAGER; HFACTOR = 400; HEALTH = 100; SPEED = 8; DAMAGE = 10; INITADELAY = 10; ADELAY = INITADELAY; AINTERVAL = 30; BLOCKPCT = 0.4; DOCOMBOPCT = 0.9; _global.SCENEMANAGER.setUnitDifficulty(this); if (SIDE == 1) { body_mc.gotoAndStop(2); } else { body_mc.gotoAndStop(1); } } } } movieClip 1322 MATHEW_player { #initclip Object.registerClass('MATHEW_player', aiPlayer); #endinitclip frame 1 { function burn() { OPPONENT.BODY.af_N33(); } function explode() { OPPONENT.BODY.af_CYBERLLAMA(); } function slashHead() { OPPONENT.BODY.af_RIOKO(); } stop(); if (INIT == undefined) { INIT = true; GENDER = 'male'; NAME = 'MATHEW'; FATALITY_K1 = _global.CONTROLS.KEYB; FATALITY_K2 = _global.CONTROLS.KEYC; FATALITY_K3 = _global.CONTROLS.KEYA; FATALITY_K4 = _global.CONTROLS.KEYB; FATALITY_K5 = _global.CONTROLS.KEYC; FATALITY_K6 = _global.CONTROLS.KEYA; BODY = body_mc.body_mc; BODYORIENTATION = body_mc; EVTMANAGER = _global.EVTMANAGER; HFACTOR = 300; HEALTH = 100; SPEED = 8; DAMAGE = 10; ADELAY = 16; AINTERVAL = 30; BLOCKPCT = 0.3; BHIGHDEFENSE = 1; BLOWDEFENSE = 2; if (SIDE == 1) { body_mc.gotoAndStop(2); } else { body_mc.gotoAndStop(1); } } } } movieClip 1366 { } frame 30 { stopAllSounds(); _global.LOADSOUND.setVolume(100); gotoAndPlay('splash1'); } movieClip 1367 { } movieClip 1368 { frame 1 { function begin(_STYLE) { switch (_STYLE) { case 1: TRACKTOPLAY = 'back_street'; break; case 2: var v1 = Math.random(); if (v1 >= 0.67) { TRACKTOPLAY = 'On_the_edge_1'; } else { if (v1 >= 0.34) { TRACKTOPLAY = 'Are_you_ready'; } else { TRACKTOPLAY = 'Enigmatic'; } } break; default: TRACKTOPLAY = 'back_street'; } if (!MUTE) { JUKEBOX.stop(); JUKEBOX.attachSound(TRACKTOPLAY); JUKEBOX.start(0, 0); } } function skipForward() { ++PLAYINDEX; if (PLAYINDEX >= PLAYLIST.length) { PLAYINDEX = 0; } if (!MUTE) { JUKEBOX.stop(); JUKEBOX.attachSound(PLAYLIST[PLAYINDEX]); JUKEBOX.start(0, PLAYLOOP); } } function skipBackward() { --PLAYINDEX; if (PLAYINDEX < 0) { PLAYINDEX = PLAYLIST.length - 1; } if (!MUTE) { JUKEBOX.stop(); JUKEBOX.attachSound(PLAYLIST[PLAYINDEX]); JUKEBOX.start(0, PLAYLOOP); } } function stopJukebox() { JUKEBOX.stop(); } function soundOff() { MUTE = true; JUKEBOX.stop(); } function soundOn() { MUTE = false; if (!STOP) { JUKEBOX.attachSound(TRACKTOPLAY); JUKEBOX.start(0, 0); } } function setVolume(_PCT) { JUKEBOX.setVolume(Math.round(_PCT * 0.3)); SFX1.setVolume(Math.round(_PCT * 0.9)); SFX2.setVolume(Math.round(_PCT * 1.5)); SFX3.setVolume(Math.round(_PCT * 4)); } function playSound1(_SOUNDID) { if (!MUTE) { SFX1.attachSound(_SOUNDID); SFX1.start(); } } function playSound2(_SOUNDID) { if (!MUTE) { SFX2.attachSound(_SOUNDID); SFX2.start(); } } function playSound3(_SOUNDID) { if (!MUTE) { SFX3.attachSound(_SOUNDID); SFX3.start(); } } function playTommyGun() { if (!MUTE) { SFX3.attachSound('shot_tommygun'); SFX3.start(0, 30); } } function stopTommyGun() { SFX3.stop(); } stop(); _global.JUKEBOX = this; JUKEBOX = new Sound(dummy1_mc); SFX1 = new Sound(dummy2_mc); SFX2 = new Sound(dummy3_mc); SFX3 = new Sound(dummy4_mc); PLAYINDEX = 0; PLAYLOOP = 0; TRACKTOPLAY = 'back_street'; PLAYLIST = new Array(); PLAYLIST.push('Are_you_ready'); PLAYLIST.push('On_the_edge_1'); nosound_btn._visible = false; play_btn._visible = false; MUTE = false; STOP = false; setVolume(100); JUKEBOX.onSoundComplete = function () { if (!MUTE) { JUKEBOX.attachSound(TRACKTOPLAY); JUKEBOX.start(0, 0); } }; skipb_btn.onRelease = function () { skipBackward(); }; skipf_btn.onRelease = function () { skipForward(); }; stop_btn.onRelease = function () { STOP = true; stop_btn._visible = false; play_btn._visible = true; JUKEBOX.stop(); }; play_btn.onRelease = function () { STOP = false; play_btn._visible = false; stop_btn._visible = true; if (!MUTE) { JUKEBOX.attachSound(PLAYLIST[PLAYINDEX]); JUKEBOX.start(0, PLAYLOOP); } }; } } frame 40 { stop(); } button 1373 { on (release) { var REQUEST2 = new LoadVars(); REQUEST2.GAMEID = _global.GAMEID; REQUEST2.EVTID = 'click_playnow_splash'; REQUEST2.DOMAIN = _global.LC.domain(); REQUEST2.REF = _global.PUBLISHER_REF; REQUEST2.sendAndLoad('http://' + _global.FLASHSERVE1 + '/evt.php', REQUEST2, 'POST'); var url; url = 'http://www.playnow3dgames.com/index.php?game=' + _global.GAMEID; getURL(url, '_blank', 'POST'); } } movieClip 1374 { frame 1 { notice_txt._visible = false; playnow_btn.onRollOver = function () { notice_txt._visible = true; }; playnow_btn.onRollOut = function () { notice_txt._visible = false; }; } frame 20 { } frame 100 { _parent.gotoAndStop('splash2'); } } frame 47 { stop(); } movieClip 1377 { } movieClip 1393 { frame 1 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); } frame 100 { _parent.gotoAndStop('splash3'); } } frame 53 { stop(); } button 1397 { on (release) { var REQUEST2 = new LoadVars(); REQUEST2.GAMEID = _global.GAMEID; REQUEST2.EVTID = 'click_qigames_splash'; REQUEST2.DOMAIN = _global.LC.domain(); REQUEST2.REF = _global.PUBLISHER_REF; REQUEST2.sendAndLoad('http://' + _global.FLASHSERVE1 + '/evt.php', REQUEST2, 'POST'); var url; url = 'http://www.qigames.com/index.php?game=' + _global.GAMEID; getURL(url, '_blank', 'POST'); } } movieClip 1399 { frame 1 { notice_txt._visible = false; qigames_btn.onRollOver = function () { notice_txt._visible = true; }; qigames_btn.onRollOut = function () { notice_txt._visible = false; }; } frame 52 { notice_txt._visible = false; qigames_btn.onRollOver = function () { notice_txt._visible = true; }; qigames_btn.onRollOut = function () { notice_txt._visible = false; }; } frame 80 { _parent.gotoAndStop('game'); } } frame 60 { stop(); _global.JUKEBOX.begin(1); gameControls.setControls(); } movieClip 1403 { frame 1 { stop(); label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); } } movieClip 1405 { frame 1 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); } } movieClip 1407 { frame 1 { stop(); play_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _parent.gotoAndStop('menu'); }; } } movieClip 1409 { frame 1 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); } } movieClip 1412 { frame 1 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); } } movieClip 1415 { frame 1 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); } } movieClip 1418 { frame 1 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); } } movieClip 1421 { frame 1 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); } } movieClip 1425 { frame 1 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); } } movieClip 1431 { frame 1 { stop(); caption_txt.embedFonts = true; caption_txt.setTextFormat(_global.FORMAT01); label1_txt.embedFonts = true; label1_txt.setTextFormat(_global.FORMAT01); label2_txt.embedFonts = true; label2_txt.setTextFormat(_global.FORMAT01); label3_txt.embedFonts = true; label3_txt.setTextFormat(_global.FORMAT01); label4_txt.embedFonts = true; label4_txt.setTextFormat(_global.FORMAT01); ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _parent.gotoAndStop(1); }; } } movieClip 1432 { frame 1 { stop(); _global.UNLOCKFREAK = false; if (_global.GAMES == undefined) { _global.GAMES = gameData.getGames(); } i = 0; while (i < _global.GAMES.length) { if (_global.GAMES[i].ISGAMECOMPLETED) { _global.UNLOCKFREAK = true; break; } ++i; } storymode_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _parent.gotoAndStop('story mode'); }; freestyle_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _parent.gotoAndStop('free style'); }; options_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _parent.gotoAndStop('options'); }; help_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _parent.gotoAndStop('help'); }; credits_btn.onRelease = function () { gotoAndStop(5); }; } } movieClip 1434 { frame 1 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT02); } } movieClip 1437 { frame 1 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); } } movieClip 1440 { frame 1 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); } } movieClip 1443 { frame 1 { function order(GAME1, GAME2) { if (GAME1.LASTMODIFIED > GAME2.LASTMODIFIED) { return -1; } if (GAME1.LASTMODIFIED < GAME2.LASTMODIFIED) { return 1; } return 0; } stop(); caption_txt.embedFonts = true; caption_txt.setTextFormat(_global.FORMAT01); _global.GAMES = gameData.getGames(); _global.GAMES.sort(order); if (_global.GAMES.length == 0) { load_btn._visible = false; } else { load_btn._visible = true; } new_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _parent.gotoAndStop('new game'); }; load_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _parent.gotoAndStop('load game'); }; back_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _global.GAME.gotoAndStop('menu'); }; } } movieClip 1449 { } movieClip 1451 { } movieClip 1467 { } movieClip 1472 { } movieClip 1488 { frame 1 { function setPlayer(_IND) { gotoAndStop(_IND + 1); } stop(); if (_global.PLAYER1IND != undefined) { setPlayer(_global.PLAYER1IND); } } } movieClip 1492 { } movieClip 1494 { frame 1 { stop(); } } movieClip 1497 { frame 1 { stop(); } } movieClip 1499 { frame 1 { stop(); } } movieClip 1500 { frame 1 { stop(); } } movieClip 1502 { frame 1 { stop(); } } movieClip 1503 { frame 1 { stop(); } } movieClip 1505 { frame 1 { stop(); } } movieClip 1506 { frame 1 { stop(); } } movieClip 1508 { frame 1 { stop(); } } movieClip 1509 { frame 1 { stop(); } } movieClip 1511 { frame 1 { stop(); } } movieClip 1512 { frame 1 { stop(); } } movieClip 1514 { frame 1 { stop(); } } movieClip 1515 { frame 1 { stop(); } } movieClip 1517 { frame 1 { stop(); } } movieClip 1518 { frame 1 { stop(); } } movieClip 1520 { frame 1 { function setPlayer(_INDEX) { _global.JUKEBOX.playSound1('click'); SELECTEDIND = _INDEX; var v2; v2 = 1; while (v2 < 9) { if (v2 == _INDEX) { BUTTONS[v2 - 1].gotoAndStop(3); } else { BUTTONS[v2 - 1].gotoAndStop(1); } ++v2; } playersDisplay_mc.setPlayer(SELECTEDIND); } function over(_INDEX) { if (SELECTEDIND != _INDEX) { BUTTONS[_INDEX - 1].gotoAndStop(2); } } function out(_INDEX) { if (SELECTEDIND != _INDEX) { BUTTONS[_INDEX - 1].gotoAndStop(1); } } stop(); BUTTONS = [m1_mc, m2_mc, m3_mc, m4_mc, m5_mc, m6_mc, m7_mc, m8_mc]; ZONES = [zone1_btn, zone2_btn, zone3_btn, zone4_btn, zone5_btn, zone6_btn, zone7_btn, zone8_btn]; zone1_btn.onRelease = function () { setPlayer(1); }; zone2_btn.onRelease = function () { setPlayer(2); }; zone3_btn.onRelease = function () { setPlayer(3); }; zone4_btn.onRelease = function () { setPlayer(4); }; zone5_btn.onRelease = function () { setPlayer(5); }; zone6_btn.onRelease = function () { setPlayer(6); }; zone7_btn.onRelease = function () { setPlayer(7); }; zone8_btn.onRelease = function () { setPlayer(8); }; zone1_btn.onRollOver = function () { over(1); }; zone2_btn.onRollOver = function () { over(2); }; zone3_btn.onRollOver = function () { over(3); }; zone4_btn.onRollOver = function () { over(4); }; zone5_btn.onRollOver = function () { over(5); }; zone6_btn.onRollOver = function () { over(6); }; zone7_btn.onRollOver = function () { over(7); }; zone8_btn.onRollOver = function () { over(8); }; zone1_btn.onRollOut = function () { out(1); }; zone2_btn.onRollOut = function () { out(2); }; zone3_btn.onRollOut = function () { out(3); }; zone4_btn.onRollOut = function () { out(4); }; zone5_btn.onRollOut = function () { out(5); }; zone6_btn.onRollOut = function () { out(6); }; zone7_btn.onRollOut = function () { out(7); }; zone8_btn.onRollOut = function () { out(8); }; if (_global.PLAYER1IND != undefined) { BUTTONS[_global.PLAYER1IND - 1].gotoAndStop(3); } else { BUTTONS[0].gotoAndStop(3); } } } movieClip 1521 { frame 1 { stop(); caption_txt.embedFonts = true; caption_txt.setTextFormat(_global.FORMAT01); caption2_txt.embedFonts = true; caption2_txt.setTextFormat(_global.FORMAT01); caption3_txt.embedFonts = true; caption3_txt.setTextFormat(_global.FORMAT01); lb1_mc.embedFonts = true; lb1_mc.setTextFormat(_global.FORMAT01); lb2_mc.embedFonts = true; lb2_mc.setTextFormat(_global.FORMAT01); lb3_mc.embedFonts = true; lb3_mc.setTextFormat(_global.FORMAT01); lb4_mc.embedFonts = true; lb4_mc.setTextFormat(_global.FORMAT01); lb5_mc.embedFonts = true; lb5_mc.setTextFormat(_global.FORMAT01); lb6_mc.embedFonts = true; lb6_mc.setTextFormat(_global.FORMAT01); lb7_mc.embedFonts = true; lb7_mc.setTextFormat(_global.FORMAT01); lb8_mc.embedFonts = true; lb8_mc.setTextFormat(_global.FORMAT01); ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _parent.doneHowToPlay(); }; } } movieClip 1526 { frame 1 { stop(); caption_txt.embedFonts = true; caption_txt.setTextFormat(_global.FORMAT01); label1_txt.embedFonts = true; label1_txt.setTextFormat(_global.FORMAT01); label2_txt.embedFonts = true; label2_txt.setTextFormat(_global.FORMAT01); label3_txt.embedFonts = true; label3_txt.setTextFormat(_global.FORMAT01); if (_global.JUKEBOX.MUTE) { on_btn.selected = false; off_btn.selected = true; } else { on_btn.selected = true; off_btn.selected = false; } ok_btn.onRelease = function () { if (on_btn.selected) { if (_global.JUKEBOX.MUTE) { _global.JUKEBOX.soundOn(); } } else { if (!_global.JUKEBOX.MUTE) { _global.JUKEBOX.soundOff(); } } _global.JUKEBOX.playSound1('click'); _parent.gotoAndStop('menu'); }; on_btn.onRelease = function () { if (_global.JUKEBOX.MUTE) { _global.JUKEBOX.soundOn(); } off_btn.selected = false; on_btn.selected = true; _global.JUKEBOX.playSound1('click'); }; off_btn.onRelease = function () { if (!_global.JUKEBOX.MUTE) { _global.JUKEBOX.soundOff(); } off_btn.selected = true; on_btn.selected = false; }; } instance on_btn of movieClip 80 RadioButton { onClipEvent (construct) { data = ''; groupName = 'radioGroup'; label = ''; labelPlacement = 'right'; selected = true; } } instance off_btn of movieClip 80 RadioButton { onClipEvent (construct) { data = ''; groupName = 'radioGroup'; label = ''; labelPlacement = 'right'; selected = false; } } } movieClip 1532 { } movieClip 1533 { } movieClip 1546 { } movieClip 1548 { frame 1 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); } } button 1549 { on (release) { url = 'http://www.playnow3dgames.com/index.php?refgame=' + _global.GAMEID; getURL(url, '_blank', 'POST'); } } movieClip 1558 { } movieClip 1559 { } movieClip 1566 { } movieClip 1571 { } movieClip 1576 { } movieClip 1580 { } movieClip 1581 { } movieClip 1583 { frame 1 { function showPlayer(_N) { gotoAndStop(_N + 1); } stop(); } frame 10 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); } } movieClip 1585 { } movieClip 1590 { frame 1 { stop(); } } movieClip 1592 { frame 1 { stop(); } } movieClip 1594 { frame 1 { stop(); } } movieClip 1599 { } movieClip 1600 { frame 1 { stop(); } } movieClip 1602 { frame 1 { stop(); } } movieClip 1604 { frame 1 { stop(); } } movieClip 1606 { frame 1 { stop(); } } movieClip 1608 { frame 1 { stop(); } } movieClip 1610 { frame 1 { stop(); label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); } } movieClip 1612 { frame 1 { function setPlayer(_INDEX) { _global.JUKEBOX.playSound1('click'); if (_INDEX == 3 || _INDEX == 4 || _INDEX == 6 || _INDEX == 8) { return undefined; } if (_global.PLAYER1IND == undefined) { _global.PLAYER1IND = _INDEX; var v3; v3 = 1; while (v3 < 10) { if (v3 == _INDEX) { BUTTONS[v3 - 1].gotoAndStop(3); } else { BUTTONS[v3 - 1].gotoAndStop(1); } ++v3; } if (!_global.UNLOCKFREAK) { m4_mc.gotoAndStop(8); } _parent.playerSelectionDone(); } } function over(_INDEX) { if (_global.PLAYER1IND == undefined) { BUTTONS[_INDEX - 1].gotoAndStop(2); showPlayer1_mc.showPlayer(_INDEX); } } function out(_INDEX) { if (_global.PLAYER1IND == undefined) { BUTTONS[_INDEX - 1].gotoAndStop(1); } } stop(); _global.PLAYER1IND = undefined; _global.PLAYER2IND = undefined; _global.OPPONENT1IND = undefined; _global.OPPONENT2IND = undefined; BUTTONS = [m1_mc, m2_mc, m3_mc, m4_mc, m5_mc, m6_mc, m7_mc, m8_mc, m9_mc]; Mouse.show(); ZONES = [zone1_btn, zone2_btn, zone3_btn, zone4_btn, zone5_btn, zone6_btn, zone7_btn, zone8_btn, zone9_btn]; zone1_btn.onRelease = function () { setPlayer(1); }; zone2_btn.onRelease = function () { setPlayer(2); }; zone3_btn.onRelease = function () { setPlayer(3); }; zone4_btn.onRelease = function () { setPlayer(4); }; zone5_btn.onRelease = function () { setPlayer(5); }; zone6_btn.onRelease = function () { setPlayer(6); }; zone7_btn.onRelease = function () { setPlayer(7); }; zone8_btn.onRelease = function () { setPlayer(8); }; zone9_btn.onRelease = function () { setPlayer(9); }; zone1_btn.onRollOver = function () { over(1); }; zone2_btn.onRollOver = function () { over(2); }; zone3_btn.onRollOver = function () { over(3); }; zone4_btn.onRollOver = function () { over(4); }; zone5_btn.onRollOver = function () { over(5); }; zone6_btn.onRollOver = function () { over(6); }; zone7_btn.onRollOver = function () { over(7); }; zone8_btn.onRollOver = function () { over(8); }; zone9_btn.onRollOver = function () { over(9); }; zone1_btn.onRollOut = function () { out(1); }; zone2_btn.onRollOut = function () { out(2); }; zone3_btn.onRollOut = function () { out(3); }; zone4_btn.onRollOut = function () { out(4); }; zone5_btn.onRollOut = function () { out(5); }; zone6_btn.onRollOut = function () { out(6); }; zone7_btn.onRollOut = function () { out(7); }; zone8_btn.onRollOut = function () { out(8); }; zone9_btn.onRollOut = function () { out(9); }; if (!_global.UNLOCKFREAK) { m4_mc.gotoAndStop(8); zone4_btn._visible = false; } } } movieClip 1615 { frame 1 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT02); } } movieClip 1618 { frame 1 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT02); } } movieClip 1621 { frame 1 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT02); } } movieClip 1624 { frame 1 { function playerSelectionDone() { if (_global.PLAYER1IND == 9) { _global.PLAYER1IND = 1 + Math.round(Math.random() * 3); switch (_global.PLAYER1IND) { case 3: _global.PLAYER1IND = 5; break; case 4: _global.PLAYER1IND = 7; } } switch (_global.PLAYER1IND) { case 1: PLAYERNAME = 'N33'; break; case 2: PLAYERNAME = 'REBECCA'; break; case 3: PLAYERNAME = 'BONES'; break; case 4: PLAYERNAME = 'FREAK'; break; case 5: PLAYERNAME = 'NICOLE'; break; case 6: PLAYERNAME = 'CYBERLLAMA'; break; case 7: PLAYERNAME = 'MATHEW'; break; case 8: PLAYERNAME = 'RIOKO'; } if (PLAYERNAME == '') { PLAYERNAME = 'Player 1'; } C = _global.GAMES.length; if (C < 5) { _global.CGAME = new gameData(PLAYERNAME, 2); _global.GAMES.push(_global.CGAME); } else { _global.CGAME = new gameData(PLAYERNAME, 2); _global.GAMES.push(_global.CGAME); } _global.CGAME.PLAYER1IND = _global.PLAYER1IND; gameData.saveGames(_global.GAMES); gotoAndStop(5); } stop(); caption_txt.embedFonts = true; caption_txt.setTextFormat(_global.FORMAT01); cancel_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _parent.gotoAndStop('menu'); }; back_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _global.GAME.gotoAndStop('menu'); }; } frame 5 { stop(); caption_txt.embedFonts = true; caption_txt.setTextFormat(_global.FORMAT01); easy_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _global.CGAME.DIFFICULTY = 1; gameData.saveGames(_global.GAMES); _global.GAMEMODE = 'story'; _parent.gotoAndStop('play'); }; medium_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _global.CGAME.DIFFICULTY = 2; gameData.saveGames(_global.GAMES); _global.GAMEMODE = 'story'; _parent.gotoAndStop('play'); }; hard_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _global.CGAME.DIFFICULTY = 3; gameData.saveGames(_global.GAMES); _global.GAMEMODE = 'story'; _parent.gotoAndStop('play'); }; } } movieClip 1633 { } movieClip 1635 { frame 1 { stop(); _global.PLAYER1IND = undefined; _global.PLAYER2IND = undefined; _global.OPPONENT1IND = undefined; _global.OPPONENT2IND = undefined; LABELS = [game1_txt, game2_txt, game3_txt, game4_txt, game5_txt]; ZONES = [zone1_btn, zone2_btn, zone3_btn, zone4_btn, zone5_btn]; SELECTED = 1; caption_txt.embedFonts = true; caption_txt.setTextFormat(_global.FORMAT01); game1_txt.embedFonts = true; game1_txt.setTextFormat(_global.FORMAT01); game2_txt.embedFonts = true; game2_txt.setTextFormat(_global.FORMAT01); game3_txt.embedFonts = true; game3_txt.setTextFormat(_global.FORMAT01); game4_txt.embedFonts = true; game4_txt.setTextFormat(_global.FORMAT01); game5_txt.embedFonts = true; game5_txt.setTextFormat(_global.FORMAT01); text1_txt.embedFonts = true; text1_txt.setTextFormat(_global.FORMAT01); C = _global.GAMES.length; i = 0; while (i < 5) { if (i > C - 1) { LABELS[i].text = ''; ZONES[i]._visible = false; } else { LABELS[i].text = _global.GAMES[i].PLAYERNAME; } ++i; } ICONY0 = 263.6; ZONEY0 = 172.2; zone1_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (C < 1) { return undefined; } SELECTED = 1; icon_mc._y = ICONY0 + 0; selection_mc._y = ZONEY0 + 0; }; zone2_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (C < 2) { return undefined; } SELECTED = 2; icon_mc._y = ICONY0 + 25; selection_mc._y = ZONEY0 + 25; }; zone3_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (C < 3) { return undefined; } SELECTED = 3; icon_mc._y = ICONY0 + 50; selection_mc._y = ZONEY0 + 50; }; zone4_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (C < 4) { return undefined; } SELECTED = 4; icon_mc._y = ICONY0 + 75; selection_mc._y = ZONEY0 + 75; }; zone5_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (C < 5) { return undefined; } SELECTED = 5; icon_mc._y = ICONY0 + 100; selection_mc._y = ZONEY0 + 100; }; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _global.CGAME = _global.GAMES[SELECTED - 1]; _global.PLAYER1IND = _global.CGAME.PLAYER1IND; _global.GAMEMODE = 'story'; _parent.gotoAndStop('play'); }; cancel_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _parent.gotoAndStop('menu'); }; back_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _global.GAME.gotoAndStop('menu'); }; } } movieClip 1637 { } movieClip 1638 { frame 1 { function evt(_NFRAMES, _METHOD, _OBJ) { NEWEVENT = {'t': TIMER + _NFRAMES, 'method': _METHOD, 'obj': _OBJ, 'cancel': false}; C = EVENTS.length; i = 0; while (i < C) { if (NEWEVENT.t < EVENTS[i].t) { EVENTS.splice(i, 0, NEWEVENT); return undefined; } ++i; } EVENTS.push(NEWEVENT); return NEWEVENT; } function evtAtTime(_TIME, _METHOD, _OBJ) { NEWEVENT = {'t': _TIME, 'method': _METHOD, 'obj': _OBJ, 'cancel': false}; C = EVENTS.length; i = 0; while (i < C) { if (NEWEVENT.t < EVENTS[i].t) { EVENTS.splice(i, 0, NEWEVENT); return undefined; } ++i; } EVENTS.push(NEWEVENT); return NEWEVENT; } function nextState() { ++TIMER; DELETECOUNT = 0; CALLS = []; C = EVENTS.length; i = 0; while (i < C) { if (EVENTS[i].cancel) { ++DELETECOUNT; } else { if (TIMER >= EVENTS[i].t) { CALLS.push(EVENTS[i]); ++DELETECOUNT; } else { break; } } ++i; } EVENTS.splice(0, DELETECOUNT); CJ = CALLS.length; j = 0; while (j < CJ) { CALLS[j].method.call(CALLS[j].obj); ++j; } } stop(); _global.EVTMANAGER = this; TIMER = 0; EVENTS = []; } } movieClip 1642 { } movieClip 1645 { } movieClip 1650 { } movieClip 1664 { } movieClip 1669 { } movieClip 1671 { } movieClip 1672 { frame 1 { stop(); } } movieClip 1673 { frame 1 { function canSlideLeft() { if (lab_mc._x < -60) { return true; } return false; } function canSlideRight() { if (lab_mc._x > -950) { return true; } return false; } function slideLeft(_MDX) { lab_mc._x += _MDX; if (lab_mc._x > -60) { lab_mc._x = -60; } } function slideRight(_MDX) { lab_mc._x -= _MDX; if (lab_mc._x < -950) { lab_mc._x = -950; } } stop(); lab_mc._x = -515; } } movieClip 1675 { frame 1 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); } } movieClip 1678 { frame 1 { function activate(_UNIT) { _visible = true; label1_txt.text = _UNIT.NAME + ' WINS'; _global.JUKEBOX.playSound2(_UNIT.NAME + 'WINS'); _global.EVTMANAGER.evt(96, hideMe, this); } function hideMe(_UNIT) { _visible = false; } stop(); label1_txt.embedFonts = true; label1_txt.setTextFormat(_global.FORMAT01); } } movieClip 1680 { frame 1 { function activate(_UNIT) { _global.JUKEBOX.stopJukebox(); _visible = true; if (_UNIT.GENDER == 'female') { label1_txt.text = 'FINISH HER'; _global.JUKEBOX.playSound2('finishHer'); } else { label1_txt.text = 'FINISH HIM'; _global.JUKEBOX.playSound2('finishHim'); } _global.EVTMANAGER.evt(48, hideMe, this); } function hideMe(_UNIT) { _visible = false; } stop(); label1_txt.embedFonts = true; label1_txt.setTextFormat(_global.FORMAT01); } } movieClip 1684 { frame 1 { function activate() { _visible = true; gotoAndPlay(2); } function hideMe() { _parent.doneFightMsg(); } if (!_global.PLAYREADYMSG) { stop(); } label1_txt.embedFonts = true; label1_txt.setTextFormat(_global.FORMAT01); } frame 2 { _global.JUKEBOX.stopJukebox(); _global.JUKEBOX.playSound1('ready'); } frame 15 { _global.JUKEBOX.playSound1('set'); label1_txt.embedFonts = true; label1_txt.setTextFormat(_global.FORMAT01); } frame 30 { _global.JUKEBOX.playSound1('fight'); label1_txt.embedFonts = true; label1_txt.setTextFormat(_global.FORMAT01); } frame 45 { _global.PLAYREADYMSG = false; hideMe(); } } movieClip 1685 { } movieClip 1687 { } movieClip 1688 { frame 1 { function setPct(_PCT) { if (_PCT > 100) { _PCT = 100; } if (_PCT < 0) { _PCT = 0; } F = 100 - Math.round(_PCT * 0.01 * 99); gotoAndStop(F); } stop(); } } movieClip 1689 { frame 1 { function setHealth(_PCT) { PCT = _PCT; } function setFighter(_INDEX) { head_mc.gotoAndStop(_INDEX); } function nextState() { if (PCT == DISPLAYPCT) { return undefined; } if (DISPLAYPCT > PCT) { DISPLAYPCT -= 1; bar_mc.setPct(Math.round(DISPLAYPCT)); } } function initPlayer(_PLAYERIND) { switch (_PLAYERIND) { case 1: gotoAndStop(2); break; case 2: gotoAndStop(3); break; case 3: gotoAndStop(4); break; case 4: gotoAndStop(5); break; case 5: gotoAndStop(6); break; case 6: gotoAndStop(7); break; case 7: gotoAndStop(8); break; case 8: gotoAndStop(9); } } function setBar(_UNIT) { switch (_UNIT.NAME) { case 'N33': gotoAndStop(2); break; case 'REBECCA': gotoAndStop(3); break; case 'BONES': gotoAndStop(4); break; case 'FREAK': gotoAndStop(5); break; case 'NICOLE': gotoAndStop(6); break; case 'CYBERLLAMA': gotoAndStop(7); break; case 'MATHEW': gotoAndStop(8); break; case 'RIOKO': gotoAndStop(9); } DISPLAYPCT = Math.round(_UNIT.HEALTH); PCT = DISPLAYPCT; bar_mc.setPct(DISPLAYPCT); } stop(); _global.BAR_PLAYER = this; DISPLAYPCT = 100; initPlayer(_global.PLAYER1IND); } } movieClip 1690 { frame 1 { function setHealth(_PCT) { PCT = _PCT; } function setFighter(_INDEX) { head_mc.gotoAndStop(_INDEX); } function nextState() { if (PCT == DISPLAYPCT) { return undefined; } if (DISPLAYPCT > PCT) { DISPLAYPCT -= 1; bar_mc.setPct(Math.round(DISPLAYPCT)); } } function initPlayer(_PLAYERIND) { switch (_PLAYERIND) { case 1: gotoAndStop(2); break; case 2: gotoAndStop(3); break; case 3: gotoAndStop(4); break; case 4: gotoAndStop(5); break; case 5: gotoAndStop(6); break; case 6: gotoAndStop(7); break; case 7: gotoAndStop(8); break; case 8: gotoAndStop(9); } } function setBar(_UNIT) { switch (_UNIT.NAME) { case 'N33': gotoAndStop(2); break; case 'REBECCA': gotoAndStop(3); break; case 'BONES': gotoAndStop(4); break; case 'FREAK': gotoAndStop(5); break; case 'NICOLE': gotoAndStop(6); break; case 'CYBERLLAMA': gotoAndStop(7); break; case 'MATHEW': gotoAndStop(8); break; case 'RIOKO': gotoAndStop(9); } DISPLAYPCT = Math.round(_UNIT.HEALTH); PCT = DISPLAYPCT; bar_mc.setPct(DISPLAYPCT); } stop(); _global.BAR_CPU = this; DISPLAYPCT = 100; initPlayer(_global.OPPONENT1IND); } } movieClip 1693 { } movieClip 1697 { } movieClip 1701 { } movieClip 1702 { } movieClip 1706 { } movieClip 1708 { } movieClip 1711 { } movieClip 1715 { } movieClip 1717 { } movieClip 1720 { } movieClip 1722 { } movieClip 1724 { } movieClip 1726 { } movieClip 1730 { } movieClip 1731 { frame 1 { stop(); } } movieClip 1734 { } movieClip 1735 { } movieClip 1739 { } movieClip 1744 { } movieClip 1746 { } movieClip 1751 { } movieClip 1754 { } movieClip 1756 { } movieClip 1759 { } movieClip 1762 { } movieClip 1772 { } movieClip 1782 { frame 1 { function setPlayer(_PID) { switch (_PID) { case 1: gotoAndStop(1); break; case 2: gotoAndStop(3); break; case 3: gotoAndStop(5); break; case 4: gotoAndStop(7); break; case 5: gotoAndStop(9); break; case 6: gotoAndStop(13); break; case 7: gotoAndStop(15); break; case 8: gotoAndStop(11); } } stop(); setPlayer(_global.OPPONENT1IND); } } movieClip 1784 { } movieClip 1787 { } movieClip 1790 { } movieClip 1794 { } movieClip 1798 { } movieClip 1802 { } movieClip 1806 { } movieClip 1810 { } movieClip 1813 { } movieClip 1817 { } movieClip 1819 { frame 1 { function setPlayer(_PID) { switch (_PID) { case 1: gotoAndStop(1); break; case 2: gotoAndStop(3); break; case 3: gotoAndStop(5); break; case 4: gotoAndStop(7); break; case 5: gotoAndStop(9); break; case 6: gotoAndStop(13); break; case 7: gotoAndStop(15); break; case 8: gotoAndStop(11); } } stop(); setPlayer(_global.PLAYER1IND); } } movieClip 1821 { } movieClip 1824 { } movieClip 1826 { } movieClip 1829 { } movieClip 1837 { frame 1 { stop(); } frame 2 { _global.JUKEBOX.playSound1('ropeTwang'); } frame 5 { _global.JUKEBOX.playSound1('ropeTwang'); } frame 9 { _global.JUKEBOX.playSound1('ropeTwang'); } } movieClip 1839 { } movieClip 1845 { } movieClip 1866 { } movieClip 1870 { } movieClip 1876 { } movieClip 1884 { } movieClip 1888 { } movieClip 1890 { } movieClip 1893 { } movieClip 1898 { } movieClip 1903 { } movieClip 1905 { } movieClip 1906 { } movieClip 1908 { } movieClip 1913 { } movieClip 1916 { } movieClip 1924 { } movieClip 1931 { } movieClip 1936 { } movieClip 1944 { } movieClip 1951 { } movieClip 1955 { } movieClip 1958 { } movieClip 1959 { } movieClip 1969 { } movieClip 1975 { } movieClip 1998 { } movieClip 2000 { } movieClip 2010 { } movieClip 2011 { } movieClip 2014 { } movieClip 2019 { } movieClip 2022 { } movieClip 2025 { } movieClip 2026 { } movieClip 2029 { } movieClip 2032 { } movieClip 2033 { } movieClip 2035 { } movieClip 2051 { } movieClip 2060 { } movieClip 2061 { } movieClip 2062 { frame 1 { function showScene(_N) { gotoAndStop(_N + 1); } stop(); } } movieClip 2079 { frame 1 { function showPlayer(_N) { gotoAndStop(_N + 1); } stop(); } } movieClip 2088 { frame 1 { function showPlayer(_N) { gotoAndStop(_N + 1); } stop(); } } movieClip 2090 { } movieClip 2091 { frame 1 { function displayVS() { if (_global.PLAYER2IND == undefined) { player2_mc._visible = false; } else { player2_mc.showPlayer(_global.PLAYER2IND); player2_mc._visible = true; } if (_global.OPPONENT2IND == undefined) { opp2_mc._visible = false; } else { opp2_mc.showPlayer(_global.OPPONENT2IND); opp2_mc._visible = true; } opp_mc.showPlayer(_global.OPPONENT1IND); player_mc.showPlayer(_global.PLAYER1IND); scene_mc.showScene(_global.SCENEIND); } } frame 2 { displayVS(); } frame 55 { stop(); _global.INTERFACE.hideDisplayVS(); } } movieClip 2094 { } movieClip 2097 { frame 1 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); } } movieClip 2100 { frame 1 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); } } movieClip 2103 { frame 1 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); } } movieClip 2105 { frame 1 { function doneHowToPlay() { gotoAndStop(1); } stop(); caption_txt.embedFonts = true; caption_txt.setTextFormat(_global.FORMAT01); resume_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _global.INTERFACE.resumePlay(); _visible = false; }; quit_btn.onRelease = function () { _global.JUKEBOX.begin(1); _global.JUKEBOX.playSound1('click'); _global.GAME.gotoAndStop('menu'); }; help_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); gotoAndStop(5); }; } } movieClip 2108 { } movieClip 2111 { frame 1 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); } } movieClip 2113 { frame 1 { stop(); caption_txt.embedFonts = true; caption_txt.setTextFormat(_global.FORMAT01); tryAgain_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _global.GAMEPLAY.goToNextScene(); }; quit_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _global.GAME.gotoAndStop('menu'); }; } } movieClip 2116 { } movieClip 2118 { frame 1 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); } } movieClip 2122 { } movieClip 2125 { } movieClip 2127 { frame 1 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); } } movieClip 2132 { } movieClip 2137 { } movieClip 2140 { } movieClip 2145 { } movieClip 2148 { } movieClip 2150 { frame 1 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); } } movieClip 2152 { frame 1 { function setStory() { switch (_global.CGAME.CLEVEL) { case 1: gotoAndStop(2); break; case 2: gotoAndStop(4); break; case 3: gotoAndStop(6); break; case 4: gotoAndStop(8); } } function showEnd() { gotoAndStop(10); } stop(); label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); setStory(); } frame 2 { GONEXT = 3; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 3 { GONEXT = -1; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 4 { GONEXT = 5; next_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 5 { GONEXT = -1; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 6 { GONEXT = 7; next_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 7 { GONEXT = -1; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 8 { GONEXT = -2; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _global.GAME.gotoAndStop('menu'); }; } frame 9 { GONEXT = -1; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 10 { GONEXT = 11; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 11 { GONEXT = -2; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } } movieClip 2155 { } movieClip 2158 { } movieClip 2164 { } movieClip 2167 { } movieClip 2171 { } movieClip 2176 { } movieClip 2179 { } movieClip 2180 { frame 1 { function setStory() { switch (_global.CGAME.CLEVEL) { case 1: gotoAndStop(2); break; case 2: gotoAndStop(4); break; case 3: gotoAndStop(5); break; case 4: gotoAndStop(6); } } function showEnd() { gotoAndStop(10); } stop(); label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); setStory(); } frame 2 { GONEXT = 3; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 3 { GONEXT = -1; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 4 { GONEXT = -1; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 5 { GONEXT = -1; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 6 { GONEXT = -1; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _global.GAME.gotoAndStop('menu'); }; } frame 7 { GONEXT = -1; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 8 { GONEXT = -1; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 9 { GONEXT = -1; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 10 { GONEXT = 11; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 11 { GONEXT = -2; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } } movieClip 2183 { } movieClip 2186 { } movieClip 2189 { } movieClip 2192 { } movieClip 2198 { } movieClip 2203 { } movieClip 2206 { } movieClip 2207 { frame 1 { function setStory() { switch (_global.CGAME.CLEVEL) { case 1: gotoAndStop(2); break; case 2: gotoAndStop(4); break; case 3: gotoAndStop(6); break; case 4: gotoAndStop(8); } } function showEnd() { gotoAndStop(10); } stop(); label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); setStory(); } frame 2 { GONEXT = 3; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 3 { GONEXT = -1; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 4 { GONEXT = 5; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 5 { GONEXT = -1; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 6 { GONEXT = 7; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 7 { GONEXT = -1; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 8 { GONEXT = -1; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _global.GAME.gotoAndStop('menu'); }; } frame 9 { GONEXT = -1; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 10 { GONEXT = 11; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 11 { GONEXT = -2; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } } movieClip 2210 { } movieClip 2213 { } movieClip 2218 { } movieClip 2222 { } movieClip 2226 { } movieClip 2231 { } movieClip 2234 { } movieClip 2235 { frame 1 { function setStory() { switch (_global.CGAME.CLEVEL) { case 1: gotoAndStop(2); break; case 2: gotoAndStop(4); break; case 3: gotoAndStop(5); break; case 4: gotoAndStop(8); } } function showEnd() { gotoAndStop(10); } stop(); label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); setStory(); } frame 2 { GONEXT = 3; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 3 { GONEXT = -1; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 4 { GONEXT = -1; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 5 { GONEXT = 6; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 6 { GONEXT = 7; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 7 { GONEXT = -1; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 8 { GONEXT = -2; ok_btn.onRelease = function () { _global.GAME.gotoAndStop('menu'); }; } frame 9 { GONEXT = -1; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 10 { GONEXT = 11; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } frame 11 { GONEXT = -2; ok_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); if (GONEXT == -1) { _global.INTERFACE.hideStory(); } else { if (GONEXT == -2) { _global.GAME.gotoAndStop('menu'); } else { gotoAndStop(GONEXT); } } }; } } movieClip 2236 { frame 1 { function setStory() { gotoAndStop(30); } stop(); label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); setStory(); } frame 30 { switch (_global.PLAYER1IND) { case 1: gotoAndStop(2); break; case 2: gotoAndStop(3); break; case 3: gotoAndStop(4); break; case 4: gotoAndStop(5); break; case 5: gotoAndStop(6); break; case 6: gotoAndStop(7); break; case 7: gotoAndStop(8); break; case 8: gotoAndStop(9); } } } movieClip 2237 { frame 1 { function pausePlay() { GAMEPAUSED = true; pause_mc._visible = true; } function resumePlay() { GAMEPAUSED = false; } function hideMenuBtn() { menu_btn._visible = false; } function showMenuBtn() { menu_btn._visible = true; } function prefatality(_UNIT) { finish_him_mc.activate(_UNIT); } function fightCompleted(_LOOSER) { LOOSER = _LOOSER; WINNER = _LOOSER.OPPONENT; _global.EVTMANAGER.evt(48, winner, this); } function winner() { WINNER.win(); youwin_mc.activate(WINNER); _global.EVTMANAGER.evt(96, exit, this); } function exit() { _global.JUKEBOX.begin(1); switch (_global.GAMEMODE) { case 'playervsplayer': _global.GAME.gotoAndStop('player vs player'); break; case 'tagteam': _global.GAME.gotoAndStop('tag team'); break; case 'story': if (WINNER.TYPE == 'AI') { gameOver_mc._visible = true; } else { ++_global.CGAME.CLEVEL; if (_global.CGAME.CLEVEL > 7) { _global.CGAME.CLEVEL = 7; _global.CGAME.ISGAMECOMPLETED = true; gameData.saveGames(_global.GAMES); showStory(); } else { gameData.saveGames(_global.GAMES); _global.GAMEPLAY.goToNextScene(); } } } } function goBlack() { black_mc._visible = true; } function hideBlack() { black_mc._visible = false; } function showStory() { story_mc._visible = true; story_mc.setStory(); GAMEPAUSED = true; } function hideStory() { story_mc._visible = false; showDisplayVS(); } function showHowToPlay() { GAMEPAUSED = true; displayVS_mc.stop(); _global.SHOWEDHELP = true; howtoplay_mc._visible = true; hideMenuBtn(); } function doneHowToPlay() { howtoplay_mc._visible = false; if (_global.GAMEMODE == 'story') { showStory(); } else { showDisplayVS(); } } function showDisplayVS() { displayVS_mc._visible = true; displayVS_mc.play(); } function hideDisplayVS() { displayVS_mc._visible = false; _global.PLAYREADYMSG = true; ready_mc._visible = true; ready_mc.gotoAndPlay(2); } function doneFightMsg() { _global.JUKEBOX.begin(2); showMenuBtn(); ready_mc._visible = false; GAMEPAUSED = false; _global.SCENEMANAGER.startPlayers(); } if (INIT == undefined) { INIT = true; _global.INTERFACE = this; CGAME = _global.CGAME; GAMEPAUSED = false; pause_mc._visible = false; finish_him_mc._visible = false; youwin_mc._visible = false; black_mc._visible = false; gameOver_mc._visible = false; story_mc._visible = false; howtoplay_mc._visible = false; fight_mc._visible = false; ready_mc._visible = false; displayVS_mc._visible = false; _global.PLAYREADYMSG = false; showHowToPlay(); } menu_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); pausePlay(); }; this.onEnterFrame = function () { if (GAMEPAUSED) { return undefined; } _global.EVTMANAGER.nextState(); _global.SCENEMANAGER.nextState(); _global.BAR_CPU.nextState(); _global.BAR_PLAYER.nextState(); }; } } movieClip 2239 { } movieClip 2240 { frame 1 { stop(); if (_global.GAMEMODE !== 'story') { } else { _global.OPPONENT1IND = 5; } ZONE1 = new Object(); ZONE1.MARKERL = scene_mc.a_l_mc; ZONE1.MARKERR = scene_mc.a_r_mc; ZONE1.PSTART = scene_mc.start1_mc; ZONE1.OSTART = scene_mc.start2_mc; ZONES = [ZONE1]; _global.SCENEMANAGER = new SceneManager(scene_mc, ZONES); } } movieClip 2241 { frame 1 { function reactFall(_UNITFALL) { if (_UNITFALL._x < 200) { stage_mc.rope_left_mc.gotoAndPlay(2); } else { if (_UNITFALL._x > 500) { stage_mc.rope_right_mc.gotoAndPlay(2); } } } stop(); } } movieClip 2242 { frame 1 { stop(); if (_global.GAMEMODE !== 'story') { } else { _global.OPPONENT1IND = 7; } ZONE1 = new Object(); ZONE1.MARKERL = scene_mc.a_l_mc; ZONE1.MARKERR = scene_mc.a_r_mc; ZONE1.PSTART = scene_mc.start1_mc; ZONE1.OSTART = scene_mc.start2_mc; ZONES = [ZONE1]; _global.SCENEMANAGER = new SceneManager(scene_mc, ZONES); } } movieClip 2244 { } movieClip 2249 { frame 1 { stop(); } frame 23 { stop(); } } movieClip 2254 { frame 1 { stop(); } } movieClip 2255 { frame 1 { function reactFall(_UNITFALL) { if (_global.SCENEMANAGER.CURZONEIND == 0 || _global.SCENEMANAGER.CURZONEIND == 1) { pool_splash_mc._y = _UNITFALL._y - 20; if (_UNITFALL.TYPE == 'USER') { pool_splash_mc._x = _UNITFALL._x - 140; } else { pool_splash_mc._x = _UNITFALL._x; } _global.JUKEBOX.playSound3('fallOnWater'); pool_splash_mc.gotoAndPlay(2); } } stop(); cobweb2_mc._visible = false; } } movieClip 2256 { frame 1 { stop(); if (_global.GAMEMODE !== 'story') { } else { _global.OPPONENT1IND = 2; } ZONE1 = new Object(); ZONE1.MARKERL = scene_mc.a_l_mc; ZONE1.MARKERR = scene_mc.a_r_mc; ZONE1.PSTART = scene_mc.start1_mc; ZONE1.OSTART = scene_mc.start2_mc; ZONE1.CHANGEZONE = 1; ZONE2 = new Object(); ZONE2.MARKERL = scene_mc.a_l_2_mc; ZONE2.MARKERR = scene_mc.a_r_2_mc; ZONE2.PSTART = scene_mc.start3_mc; ZONE2.OSTART = scene_mc.start4_mc; ZONE2.REACTION = false; ZONE2.CHANGEZONE = 1; ZONE2.CHANGEZONE2 = 2; ZONE3 = new Object(); ZONE3.MARKERL = scene_mc.a_l_3_mc; ZONE3.MARKERR = scene_mc.a_r_3_mc; ZONE3.PSTART = scene_mc.start5_mc; ZONE3.OSTART = scene_mc.start6_mc; ZONE3.REACTION = false; ZONE4 = new Object(); ZONE4.MARKERL = scene_mc.a_l_4_mc; ZONE4.MARKERR = scene_mc.a_r_4_mc; ZONE4.PSTART = scene_mc.start7_mc; ZONE4.OSTART = scene_mc.start8_mc; ZONE4.REACTION = false; ZONE4.CHANGEZONE = 2; ZONE5 = new Object(); ZONE5.MARKERL = scene_mc.a_l_5_mc; ZONE5.MARKERR = scene_mc.a_r_5_mc; ZONE5.PSTART = scene_mc.start9_mc; ZONE5.OSTART = scene_mc.start10_mc; ZONE5.HIDEOBJY = scene_mc.cobweb1_mc; ZONE5.REACTOBJY = scene_mc.cobweb2_mc; ZONE5.REACTION2 = false; ZONES = [ZONE1, ZONE2, ZONE3]; ZONES2 = [ZONE1, ZONE2, ZONE4, ZONE5]; ZONE2.ZONES2 = ZONES2; CURZONES = ZONES; switch (_global.ZONEIND) { case 0: scene_mc._x = -73; scene_mc._y = -5; break; case 1: scene_mc._x = -726; scene_mc._y = -420; break; case 2: scene_mc._x = -1447; scene_mc._y = -810; break; case 3: CURZONES = ZONES2; _global.ZONEIND = 2; scene_mc._x = -39; scene_mc._y = -440; break; case 4: CURZONES = ZONES2; _global.ZONEIND = 3; scene_mc._x = -75; scene_mc._y = -800; } _global.SCENEMANAGER = new SceneManager(scene_mc, CURZONES, _global.ZONEIND); } } movieClip 2258 { } movieClip 2260 { } movieClip 2263 { frame 1 { function buttonOn() { gotoAndStop(5); } function buttonOff() { gotoAndStop(1); } stop(); } } movieClip 2266 { frame 1 { function buttonOn() { gotoAndStop(5); } function buttonOff() { gotoAndStop(1); } stop(); } } movieClip 2267 { frame 1 { function nextState() { switch (MSTATE) { case GOUP: moveUp(); break; case GOMIDDLE: moveMiddle(); break; case GODOWN: moveDown(); } } function moveUp() { if (CPOS == UP) { return undefined; } hangar_mc._y += 10; if (hangar_mc._y >= -40) { hangar_mc._y = -40; CPOS = UP; MSTATE = IDLE; up_btn.buttonOff(); if (!_global.CONTROLS.UNLOCK7_2) { _global.CONTROLS.UNLOCK7_2 = true; gameControls.saveControls(_global.CONTROLS); } } } function moveMiddle() { if (CPOS == MIDDLE) { return undefined; } if (CPOS == DOWN) { hangar_mc._y += 10; if (hangar_mc._y >= -480) { hangar_mc._y = -480; CPOS = MIDDLE; MSTATE = IDLE; up_btn.buttonOff(); } } else { if (CPOS == UP) { hangar_mc._y -= 10; if (hangar_mc._y <= -480) { hangar_mc._y = -480; CPOS = MIDDLE; MSTATE = IDLE; down_btn.buttonOff(); } } } } function moveDown() { if (CPOS == DOWN) { return undefined; } hangar_mc._y -= 10; if (hangar_mc._y <= -910) { hangar_mc._y = -910; CPOS = DOWN; MSTATE = IDLE; down_btn.buttonOff(); if (!_global.CONTROLS.UNLOCK7_1) { _global.CONTROLS.UNLOCK7_1 = true; gameControls.saveControls(_global.CONTROLS); } } } function tryGoUp() { if (MSTATE != IDLE) { return undefined; } if (CPOS == UP) { return undefined; } if (CPOS == DOWN) { MSTATE = GOMIDDLE; } else { MSTATE = GOUP; } _global.JUKEBOX.playSound1('mechanical'); up_btn.buttonOn(); } function tryGoDown() { if (MSTATE != IDLE) { return undefined; } if (CPOS == DOWN) { return undefined; } if (CPOS == UP) { MSTATE = GOMIDDLE; } else { MSTATE = GODOWN; } _global.JUKEBOX.playSound1('mechanical'); down_btn.buttonOn(); } stop(); INDEX = 1; IDLE = INDEX++; GOUP = INDEX++; GOMIDDLE = INDEX++; GODOWN = INDEX++; MSTATE = IDLE; UP = INDEX++; MIDDLE = INDEX++; DOWN = INDEX++; CPOS = MIDDLE; switch (_global.ZONEIND) { case 0: hangar_mc._y = -480; break; case 1: hangar_mc._y = -910; CPOS = DOWN; break; case 2: hangar_mc._y = -40; CPOS = UP; } } } movieClip 2268 { frame 1 { stop(); if (_global.GAMEMODE !== 'story') { } else { _global.OPPONENT1IND = 1; } ZONE1 = new Object(); ZONE1.MARKERL = scene_mc.a_l_mc; ZONE1.MARKERR = scene_mc.a_r_mc; ZONE1.PSTART = scene_mc.start1_mc; ZONE1.OSTART = scene_mc.start2_mc; ZONE1.ELEVATOR = true; ZONES = [ZONE1]; _global.SCENEMANAGER = new SceneManager(scene_mc, ZONES); } } movieClip 2269 { frame 1 { function goToNextScene() { setNextStoryScene(); gotoAndStop(15); } function setNextStoryScene() { switch (_global.PLAYER1IND) { case 1: switch (_global.CGAME.CLEVEL) { case 1: _global.SCENEIND = 3; break; case 2: _global.SCENEIND = 5; break; case 3: _global.SCENEIND = 4; } break; case 2: switch (_global.CGAME.CLEVEL) { case 1: _global.SCENEIND = 3; break; case 2: _global.SCENEIND = 4; break; case 3: _global.SCENEIND = 7; } break; case 3: switch (_global.CGAME.CLEVEL) { case 1: _global.SCENEIND = 6; break; case 2: _global.SCENEIND = 4; break; case 3: _global.SCENEIND = 5; break; case 4: _global.SCENEIND = 7; break; case 5: _global.SCENEIND = 1; break; case 6: _global.SCENEIND = 3; break; case 7: _global.SCENEIND = 8; } break; case 4: switch (_global.CGAME.CLEVEL) { case 1: _global.SCENEIND = 7; break; case 2: _global.SCENEIND = 6; break; case 3: _global.SCENEIND = 3; break; case 4: _global.SCENEIND = 4; break; case 5: _global.SCENEIND = 5; break; case 6: _global.SCENEIND = 2; break; case 7: _global.SCENEIND = 1; } break; case 5: switch (_global.CGAME.CLEVEL) { case 1: _global.SCENEIND = 5; break; case 2: _global.SCENEIND = 7; break; case 3: _global.SCENEIND = 4; } break; case 6: switch (_global.CGAME.CLEVEL) { case 1: _global.SCENEIND = 3; break; case 2: _global.SCENEIND = 2; break; case 3: _global.SCENEIND = 4; break; case 4: _global.SCENEIND = 7; break; case 5: _global.SCENEIND = 1; break; case 6: _global.SCENEIND = 5; break; case 7: _global.SCENEIND = 8; } break; case 7: switch (_global.CGAME.CLEVEL) { case 1: _global.SCENEIND = 7; break; case 2: _global.SCENEIND = 5; break; case 3: _global.SCENEIND = 3; } break; case 8: switch (_global.CGAME.CLEVEL) { case 1: _global.SCENEIND = 4; break; case 2: _global.SCENEIND = 2; break; case 3: _global.SCENEIND = 5; break; case 4: _global.SCENEIND = 6; break; case 5: _global.SCENEIND = 3; break; case 6: _global.SCENEIND = 7; break; case 7: _global.SCENEIND = 8; } } } _global.GAMEPLAY = this; if (_global.PLAYER1IND == 9) { _global.PLAYER1IND = 1 + Math.round(Math.random() * 3); switch (_global.PLAYER1IND) { case 3: _global.PLAYER1IND = 5; break; case 4: _global.PLAYER1IND = 7; } if (_global.PLAYER1IND == _global.PLAYER2IND) { switch (_global.PLAYER1IND) { case 1: _global.PLAYER1IND = 2; break; case 2: _global.PLAYER1IND = 5; break; case 5: _global.PLAYER1IND = 7; break; case 7: _global.PLAYER1IND = 1; } } } if (_global.PLAYER2IND == 9) { _global.PLAYER2IND = 1 + Math.round(Math.random() * 3); switch (_global.PLAYER2IND) { case 3: _global.PLAYER2IND = 5; break; case 4: _global.PLAYER2IND = 7; } if (_global.PLAYER1IND == _global.PLAYER2IND) { switch (_global.PLAYER2IND) { case 1: _global.PLAYER2IND = 2; break; case 2: _global.PLAYER2IND = 5; break; case 5: _global.PLAYER2IND = 7; break; case 7: _global.PLAYER2IND = 1; } } } if (_global.OPPONENT1IND == 9) { _global.OPPONENT1IND = 1 + Math.round(Math.random() * 3); switch (_global.OPPONENT1IND) { case 3: _global.OPPONENT1IND = 5; break; case 4: _global.OPPONENT1IND = 7; } if (_global.OPPONENT1IND == _global.OPPONENT2IND) { switch (_global.OPPONENT1IND) { case 1: _global.OPPONENT1IND = 2; break; case 2: _global.OPPONENT1IND = 5; break; case 5: _global.OPPONENT1IND = 7; break; case 7: _global.OPPONENT1IND = 1; } } } if (_global.OPPONENT2IND == 9) { _global.OPPONENT2IND = 1 + Math.round(Math.random() * 3); switch (_global.OPPONENT2IND) { case 3: _global.OPPONENT2IND = 5; break; case 4: _global.OPPONENT2IND = 7; } if (_global.OPPONENT1IND == _global.OPPONENT2IND) { switch (_global.OPPONENT2IND) { case 1: _global.OPPONENT2IND = 2; break; case 2: _global.OPPONENT2IND = 5; break; case 5: _global.OPPONENT2IND = 7; break; case 7: _global.OPPONENT2IND = 1; } } } if (_global.GAMEMODE == 'story') { setNextStoryScene(); } gotoAndStop(_global.SCENEIND + 1); } frame 15 { gotoAndStop(_global.SCENEIND + 1); } } movieClip 2271 { frame 1 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT02); } } movieClip 2274 { frame 1 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT02); } } movieClip 2277 { frame 1 { stop(); caption_txt.embedFonts = true; caption_txt.setTextFormat(_global.FORMAT01); tagteam_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _parent.gotoAndStop('tag team'); }; pvsp_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _parent.gotoAndStop('player vs player'); }; back_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _global.GAME.gotoAndStop('menu'); }; } } movieClip 2279 { frame 1 { function showPlayer(_N) { gotoAndStop(_N + 1); } stop(); } frame 10 { label_txt.embedFonts = true; label_txt.setTextFormat(_global.FORMAT01); } } movieClip 2280 { frame 1 { function setPlayer(_INDEX) { _global.JUKEBOX.playSound1('click'); if (_INDEX == 3 || _INDEX == 4 || _INDEX == 6 || _INDEX == 8) { return undefined; } if (_global.PLAYER1IND == undefined) { _global.PLAYER1IND = _INDEX; showPlayer1_1_mc.showPlayer(_INDEX); var v3; v3 = 1; while (v3 < 10) { if (v3 == _INDEX) { BUTTONS[v3 - 1].gotoAndStop(3); } else { BUTTONS[v3 - 1].gotoAndStop(1); } ++v3; } } else { if (_global.PLAYER2IND == undefined) { if (_global.PLAYER1IND == _INDEX && _INDEX != 9) { return undefined; } _global.PLAYER2IND = _INDEX; showPlayer1_2_mc.showPlayer(_INDEX); var v3 = 1; while (v3 < 10) { if (v3 == _INDEX || _global.PLAYER1IND == v3) { BUTTONS[v3 - 1].gotoAndStop(3); } else { BUTTONS[v3 - 1].gotoAndStop(1); } ++v3; } } else { if (_global.OPPONENT1IND == undefined) { _global.OPPONENT1IND = _INDEX; showPlayer2_1_mc.showPlayer(_INDEX); var v3 = 1; while (v3 < 10) { if (v3 == _INDEX) { if (_global.PLAYER1IND == _INDEX || _global.PLAYER2IND == _INDEX) { BUTTONS[v3 - 1].gotoAndStop(7); } else { BUTTONS[v3 - 1].gotoAndStop(5); } } else { if (_global.PLAYER1IND == v3 || _global.PLAYER2IND == v3) { BUTTONS[v3 - 1].gotoAndStop(3); } else { BUTTONS[v3 - 1].gotoAndStop(1); } } ++v3; } } else { if (_global.OPPONENT1IND == _INDEX && _INDEX != 9) { return undefined; } _global.OPPONENT2IND = _INDEX; showPlayer2_2_mc.showPlayer(_INDEX); var v3 = 1; while (v3 < 10) { if (v3 == _INDEX) { if (_global.PLAYER1IND == _INDEX || _global.PLAYER2IND == _INDEX) { BUTTONS[v3 - 1].gotoAndStop(7); } else { BUTTONS[v3 - 1].gotoAndStop(5); } } else { if (_global.PLAYER1IND == v3 || _global.PLAYER2IND == v3) { BUTTONS[v3 - 1].gotoAndStop(3); } else { if (_global.OPPONENT1IND == v3) { BUTTONS[v3 - 1].gotoAndStop(5); } else { BUTTONS[v3 - 1].gotoAndStop(1); } } } ++v3; } if (!_global.UNLOCKFREAK) { m4_mc.gotoAndStop(8); } _parent.playerSelectionDone(); } } } if (!_global.UNLOCKFREAK) { m4_mc.gotoAndStop(8); } } function over(_INDEX) { if (_global.PLAYER1IND == undefined) { BUTTONS[_INDEX - 1].gotoAndStop(2); showPlayer1_1_mc.showPlayer(_INDEX); } else { if (_global.PLAYER2IND == undefined) { if (_global.PLAYER1IND != _INDEX) { BUTTONS[_INDEX - 1].gotoAndStop(2); showPlayer1_2_mc.showPlayer(_INDEX); } else { if (_INDEX == 9) { showPlayer1_2_mc.showPlayer(_INDEX); } } } else { if (_global.OPPONENT1IND == undefined) { if (_global.PLAYER1IND == _INDEX || _global.PLAYER2IND == _INDEX) { BUTTONS[_INDEX - 1].gotoAndStop(6); } else { BUTTONS[_INDEX - 1].gotoAndStop(4); } showPlayer2_1_mc.showPlayer(_INDEX); } else { if (_global.OPPONENT1IND != _INDEX) { if (_global.PLAYER1IND == _INDEX || _global.PLAYER2IND == _INDEX) { BUTTONS[_INDEX - 1].gotoAndStop(6); } else { BUTTONS[_INDEX - 1].gotoAndStop(4); } showPlayer2_2_mc.showPlayer(_INDEX); } else { if (_INDEX == 9) { showPlayer2_2_mc.showPlayer(_INDEX); } } } } } } function out(_INDEX) { if (_global.PLAYER1IND == _INDEX || _global.PLAYER2IND == _INDEX) { if (_global.OPPONENT1IND == _INDEX) { BUTTONS[_INDEX - 1].gotoAndStop(7); } else { BUTTONS[_INDEX - 1].gotoAndStop(3); } } else { if (_global.OPPONENT1IND == _INDEX) { BUTTONS[_INDEX - 1].gotoAndStop(5); } else { BUTTONS[_INDEX - 1].gotoAndStop(1); } } } stop(); _global.PLAYER1IND = undefined; _global.PLAYER2IND = undefined; _global.OPPONENT1IND = undefined; _global.OPPONENT2IND = undefined; BUTTONS = [m1_mc, m2_mc, m3_mc, m4_mc, m5_mc, m6_mc, m7_mc, m8_mc, m9_mc]; Mouse.show(); ZONES = [zone1_btn, zone2_btn, zone3_btn, zone4_btn, zone5_btn, zone6_btn, zone7_btn, zone8_btn, zone9_btn]; zone1_btn.onRelease = function () { setPlayer(1); }; zone2_btn.onRelease = function () { setPlayer(2); }; zone3_btn.onRelease = function () { setPlayer(3); }; zone4_btn.onRelease = function () { setPlayer(4); }; zone5_btn.onRelease = function () { setPlayer(5); }; zone6_btn.onRelease = function () { setPlayer(6); }; zone7_btn.onRelease = function () { setPlayer(7); }; zone8_btn.onRelease = function () { setPlayer(8); }; zone9_btn.onRelease = function () { setPlayer(9); }; zone1_btn.onRollOver = function () { over(1); }; zone2_btn.onRollOver = function () { over(2); }; zone3_btn.onRollOver = function () { over(3); }; zone4_btn.onRollOver = function () { over(4); }; zone5_btn.onRollOver = function () { over(5); }; zone6_btn.onRollOver = function () { over(6); }; zone7_btn.onRollOver = function () { over(7); }; zone8_btn.onRollOver = function () { over(8); }; zone9_btn.onRollOver = function () { over(9); }; zone1_btn.onRollOut = function () { out(1); }; zone2_btn.onRollOut = function () { out(2); }; zone3_btn.onRollOut = function () { out(3); }; zone4_btn.onRollOut = function () { out(4); }; zone5_btn.onRollOut = function () { out(5); }; zone6_btn.onRollOut = function () { out(6); }; zone7_btn.onRollOut = function () { out(7); }; zone8_btn.onRollOut = function () { out(8); }; zone9_btn.onRollOut = function () { out(9); }; if (!_global.UNLOCKFREAK) { m4_mc.gotoAndStop(8); zone4_btn._visible = false; } } } movieClip 2283 { frame 1 { function showScene(_IND, _ZONEIND) { switch (_IND) { case 1: switch (_ZONEIND) { case 0: gotoAndStop(1); break; case 1: gotoAndStop(2); break; case 2: gotoAndStop(3); break; case 3: gotoAndStop(4); } break; case 2: gotoAndStop(5); break; case 3: gotoAndStop(6); break; case 4: gotoAndStop(7); break; case 5: switch (_ZONEIND) { case 0: gotoAndStop(8); break; case 1: gotoAndStop(9); break; case 2: gotoAndStop(10); break; case 3: gotoAndStop(11); break; case 4: gotoAndStop(12); } break; case 6: switch (_ZONEIND) { case 0: gotoAndStop(13); break; case 1: gotoAndStop(14); break; case 2: gotoAndStop(15); } break; case 7: switch (_ZONEIND) { case 0: gotoAndStop(16); break; case 1: gotoAndStop(17); break; case 2: gotoAndStop(18); } break; case 8: gotoAndStop(19); } } stop(); } } movieClip 2289 { frame 1 { stop(); } } movieClip 2292 { frame 1 { stop(); } } movieClip 2295 { frame 1 { stop(); } } movieClip 2297 { frame 1 { stop(); } } movieClip 2300 { frame 1 { stop(); } } movieClip 2301 { frame 1 { stop(); } } movieClip 2302 { frame 1 { stop(); } } movieClip 2303 { frame 1 { stop(); } } movieClip 2304 { frame 1 { stop(); } } movieClip 2305 { frame 1 { stop(); } } movieClip 2306 { } movieClip 2307 { frame 1 { function setScene(_INDEX, _ZONEINDEX) { if (!ZONEUNLOCKS[_INDEX - 1][_ZONEINDEX]) { return undefined; } _global.JUKEBOX.playSound1('click'); _global.SCENEIND = _INDEX; _global.ZONEIND = _ZONEINDEX; var v4; var v3; v4 = 1; while (v4 < 9) { v3 = 0; while (v3 < BUTTONS[v4 - 1].length) { if (v4 == _INDEX && v3 == _ZONEINDEX) { BUTTONS[v4 - 1][v3].gotoAndStop(3); } else { BUTTONS[v4 - 1][v3].gotoAndStop(1); } ++v3; } ++v4; } _parent.sceneSelectionDone(); } function over(_INDEX, _ZONEIND) { if (!ZONEUNLOCKS[_INDEX - 1][_ZONEIND]) { LOCK_mc._visible = true; } else { LOCK_mc._visible = false; BUTTONS[_INDEX - 1][_ZONEIND].gotoAndStop(2); } showScene_mc.showScene(_INDEX, _ZONEIND); } function out(_INDEX, _ZONEIND) { if (ZONEUNLOCKS[_INDEX - 1][_ZONEIND]) { BUTTONS[_INDEX - 1][_ZONEIND].gotoAndStop(1); } } stop(); LOCK_mc._visible = false; available_btn._visible = false; BUTTONS = []; BUTTONS.push([m1_0_mc, m1_1_mc, m1_2_mc, m1_3_mc]); BUTTONS.push([m2_0_mc]); BUTTONS.push([m3_0_mc]); BUTTONS.push([m4_0_mc]); BUTTONS.push([m5_0_mc, m5_1_mc, m5_2_mc, m5_3_mc, m5_4_mc]); BUTTONS.push([m6_0_mc, m6_1_mc, m6_2_mc]); BUTTONS.push([m7_0_mc, m7_1_mc, m7_2_mc]); BUTTONS.push([m8_0_mc]); ZONEUNLOCKS = []; ZONEUNLOCKS.push([true, true, true, true]); ZONEUNLOCKS.push([true]); ZONEUNLOCKS.push([true]); ZONEUNLOCKS.push([true]); ZONEUNLOCKS.push([true, true, true, true, true]); ZONEUNLOCKS.push([true, true, true]); ZONEUNLOCKS.push([true, true, true]); ZONEUNLOCKS.push([true]); Mouse.show(); zone1_0_btn.onRelease = function () { setScene(1, 0); }; zone1_1_btn.onRelease = function () { setScene(1, 1); }; zone1_2_btn.onRelease = function () { setScene(1, 2); }; zone1_3_btn.onRelease = function () { setScene(1, 3); }; zone2_0_btn.onRelease = function () { setScene(2, 0); }; zone3_0_btn.onRelease = function () { setScene(3, 0); }; zone4_0_btn.onRelease = function () { setScene(4, 0); }; zone5_0_btn.onRelease = function () { setScene(5, 0); }; zone5_1_btn.onRelease = function () { setScene(5, 1); }; zone5_2_btn.onRelease = function () { setScene(5, 2); }; zone5_3_btn.onRelease = function () { setScene(5, 3); }; zone5_4_btn.onRelease = function () { setScene(5, 4); }; zone6_0_btn.onRelease = function () { setScene(6, 0); }; zone6_1_btn.onRelease = function () { setScene(6, 1); }; zone6_2_btn.onRelease = function () { setScene(6, 2); }; zone7_0_btn.onRelease = function () { setScene(7, 0); }; zone7_1_btn.onRelease = function () { setScene(7, 1); }; zone7_2_btn.onRelease = function () { setScene(7, 2); }; zone8_0_btn.onRelease = function () { setScene(8, 0); }; zone1_0_btn.onRollOver = function () { over(1, 0); }; zone1_1_btn.onRollOver = function () { over(1, 1); }; zone1_2_btn.onRollOver = function () { over(1, 2); }; zone1_3_btn.onRollOver = function () { over(1, 3); }; zone2_0_btn.onRollOver = function () { over(2, 0); }; zone3_0_btn.onRollOver = function () { over(3, 0); }; zone4_0_btn.onRollOver = function () { over(4, 0); }; zone5_0_btn.onRollOver = function () { over(5, 0); }; zone5_1_btn.onRollOver = function () { over(5, 1); }; zone5_2_btn.onRollOver = function () { over(5, 2); }; zone5_3_btn.onRollOver = function () { over(5, 3); }; zone5_4_btn.onRollOver = function () { over(5, 4); }; zone6_0_btn.onRollOver = function () { over(6, 0); }; zone6_1_btn.onRollOver = function () { over(6, 1); }; zone6_2_btn.onRollOver = function () { over(6, 2); }; zone7_0_btn.onRollOver = function () { over(7, 0); }; zone7_1_btn.onRollOver = function () { over(7, 1); }; zone7_2_btn.onRollOver = function () { over(7, 2); }; zone8_0_btn.onRollOver = function () { over(8, 0); }; zone1_0_btn.onRollOut = function () { out(1, 0); }; zone1_1_btn.onRollOut = function () { out(1, 1); }; zone1_2_btn.onRollOut = function () { out(1, 2); }; zone1_3_btn.onRollOut = function () { out(1, 3); }; zone2_0_btn.onRollOut = function () { out(2, 0); }; zone3_0_btn.onRollOut = function () { out(3, 0); }; zone4_0_btn.onRollOut = function () { out(4, 0); }; zone5_0_btn.onRollOut = function () { out(5, 0); }; zone5_1_btn.onRollOut = function () { out(5, 1); }; zone5_2_btn.onRollOut = function () { out(5, 2); }; zone5_3_btn.onRollOut = function () { out(5, 3); }; zone5_4_btn.onRollOut = function () { out(5, 4); }; zone6_0_btn.onRollOut = function () { out(6, 0); }; zone6_1_btn.onRollOut = function () { out(6, 1); }; zone6_2_btn.onRollOut = function () { out(6, 2); }; zone7_0_btn.onRollOut = function () { out(7, 0); }; zone7_1_btn.onRollOut = function () { out(7, 1); }; zone7_2_btn.onRollOut = function () { out(7, 2); }; zone8_0_btn.onRollOut = function () { out(8, 0); }; if (!_global.CONTROLS.UNLOCK1_1) { ZONEUNLOCKS[0][1] = false; m1_1_mc.gotoAndStop(4); } if (!_global.CONTROLS.UNLOCK1_2) { ZONEUNLOCKS[0][2] = false; m1_2_mc.gotoAndStop(4); } if (!_global.CONTROLS.UNLOCK1_3) { ZONEUNLOCKS[0][3] = false; m1_3_mc.gotoAndStop(4); } if (!_global.CONTROLS.UNLOCK5_1) { ZONEUNLOCKS[4][1] = false; m5_1_mc.gotoAndStop(4); } if (!_global.CONTROLS.UNLOCK5_2) { ZONEUNLOCKS[4][2] = false; m5_2_mc.gotoAndStop(4); } if (!_global.CONTROLS.UNLOCK5_3) { ZONEUNLOCKS[4][3] = false; m5_3_mc.gotoAndStop(4); } if (!_global.CONTROLS.UNLOCK5_4) { ZONEUNLOCKS[4][4] = false; m5_4_mc.gotoAndStop(4); } if (!_global.CONTROLS.UNLOCK6_1) { ZONEUNLOCKS[5][1] = false; m6_1_mc.gotoAndStop(4); } if (!_global.CONTROLS.UNLOCK6_2) { ZONEUNLOCKS[5][2] = false; m6_2_mc.gotoAndStop(4); } if (!_global.CONTROLS.UNLOCK7_1) { ZONEUNLOCKS[6][1] = false; m7_1_mc.gotoAndStop(4); } if (!_global.CONTROLS.UNLOCK7_2) { ZONEUNLOCKS[6][2] = false; m7_2_mc.gotoAndStop(4); } if (!_global.UNLOCKFREAK) { m8_0_mc.gotoAndStop(4); zone8_0_btn._visible = false; } } } movieClip 2310 { frame 1 { function playerSelectionDone() { gotoAndStop(5); } function sceneSelectionDone() { gotoAndStop(10); } stop(); caption_txt.embedFonts = true; caption_txt.setTextFormat(_global.FORMAT01); back_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _global.GAME.gotoAndStop('menu'); }; } frame 5 { stop(); caption_txt.embedFonts = true; caption_txt.setTextFormat(_global.FORMAT01); } frame 10 { stop(); caption_txt.embedFonts = true; caption_txt.setTextFormat(_global.FORMAT01); easy_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _global.GAMEDIFFICULTY = 1; _global.GAMEMODE = 'tagteam'; _parent.gotoAndStop('play'); }; medium_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _global.GAMEDIFFICULTY = 2; _global.GAMEMODE = 'tagteam'; _parent.gotoAndStop('play'); }; hard_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _global.GAMEDIFFICULTY = 3; _global.GAMEMODE = 'tagteam'; _parent.gotoAndStop('play'); }; } } movieClip 2311 { frame 1 { function setPlayer(_INDEX) { _global.JUKEBOX.playSound1('click'); if (_INDEX == 3 || _INDEX == 4 || _INDEX == 6 || _INDEX == 8) { return undefined; } if (_global.PLAYER1IND == undefined) { _global.PLAYER1IND = _INDEX; var v3; v3 = 1; while (v3 < 10) { if (v3 == _INDEX) { BUTTONS[v3 - 1].gotoAndStop(3); } else { BUTTONS[v3 - 1].gotoAndStop(1); } ++v3; } } else { _global.OPPONENT1IND = _INDEX; var v3 = 1; while (v3 < 10) { if (v3 == _INDEX) { if (_global.PLAYER1IND == _INDEX) { BUTTONS[v3 - 1].gotoAndStop(7); } else { BUTTONS[v3 - 1].gotoAndStop(5); } } else { if (_global.PLAYER1IND == v3) { BUTTONS[v3 - 1].gotoAndStop(3); } else { BUTTONS[v3 - 1].gotoAndStop(1); } } ++v3; } if (!_global.UNLOCKFREAK) { m4_mc.gotoAndStop(8); } _parent.playerSelectionDone(); } if (!_global.UNLOCKFREAK) { m4_mc.gotoAndStop(8); } } function over(_INDEX) { if (_global.PLAYER1IND == undefined) { BUTTONS[_INDEX - 1].gotoAndStop(2); showPlayer1_mc.showPlayer(_INDEX); } else { if (_global.PLAYER1IND == _INDEX) { BUTTONS[_INDEX - 1].gotoAndStop(6); } else { BUTTONS[_INDEX - 1].gotoAndStop(4); } showPlayer2_mc.showPlayer(_INDEX); } } function out(_INDEX) { if (_global.PLAYER1IND == undefined) { BUTTONS[_INDEX - 1].gotoAndStop(1); } else { if (_global.PLAYER1IND == _INDEX) { BUTTONS[_INDEX - 1].gotoAndStop(3); } else { BUTTONS[_INDEX - 1].gotoAndStop(1); } } } stop(); _global.PLAYER1IND = undefined; _global.PLAYER2IND = undefined; _global.OPPONENT1IND = undefined; _global.OPPONENT2IND = undefined; BUTTONS = [m1_mc, m2_mc, m3_mc, m4_mc, m5_mc, m6_mc, m7_mc, m8_mc, m9_mc]; Mouse.show(); ZONES = [zone1_btn, zone2_btn, zone3_btn, zone4_btn, zone5_btn, zone6_btn, zone7_btn, zone8_btn, zone9_btn]; zone1_btn.onRelease = function () { setPlayer(1); }; zone2_btn.onRelease = function () { setPlayer(2); }; zone3_btn.onRelease = function () { setPlayer(3); }; zone4_btn.onRelease = function () { setPlayer(4); }; zone5_btn.onRelease = function () { setPlayer(5); }; zone6_btn.onRelease = function () { setPlayer(6); }; zone7_btn.onRelease = function () { setPlayer(7); }; zone8_btn.onRelease = function () { setPlayer(8); }; zone9_btn.onRelease = function () { setPlayer(9); }; zone1_btn.onRollOver = function () { over(1); }; zone2_btn.onRollOver = function () { over(2); }; zone3_btn.onRollOver = function () { over(3); }; zone4_btn.onRollOver = function () { over(4); }; zone5_btn.onRollOver = function () { over(5); }; zone6_btn.onRollOver = function () { over(6); }; zone7_btn.onRollOver = function () { over(7); }; zone8_btn.onRollOver = function () { over(8); }; zone9_btn.onRollOver = function () { over(9); }; zone1_btn.onRollOut = function () { out(1); }; zone2_btn.onRollOut = function () { out(2); }; zone3_btn.onRollOut = function () { out(3); }; zone4_btn.onRollOut = function () { out(4); }; zone5_btn.onRollOut = function () { out(5); }; zone6_btn.onRollOut = function () { out(6); }; zone7_btn.onRollOut = function () { out(7); }; zone8_btn.onRollOut = function () { out(8); }; zone9_btn.onRollOut = function () { out(9); }; if (!_global.UNLOCKFREAK) { m4_mc.gotoAndStop(8); zone4_btn._visible = false; } } } movieClip 2315 { frame 1 { function playerSelectionDone() { gotoAndStop(5); } function sceneSelectionDone() { gotoAndStop(10); } stop(); caption_txt.embedFonts = true; caption_txt.setTextFormat(_global.FORMAT01); back_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _global.GAME.gotoAndStop('menu'); }; } frame 5 { stop(); caption_txt.embedFonts = true; caption_txt.setTextFormat(_global.FORMAT01); } frame 10 { stop(); caption_txt.embedFonts = true; caption_txt.setTextFormat(_global.FORMAT01); easy_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _global.GAMEDIFFICULTY = 1; _global.GAMEMODE = 'playervsplayer'; _parent.gotoAndStop('play'); }; medium_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _global.GAMEDIFFICULTY = 2; _global.GAMEMODE = 'playervsplayer'; _parent.gotoAndStop('play'); }; hard_btn.onRelease = function () { _global.JUKEBOX.playSound1('click'); _global.GAMEDIFFICULTY = 3; _global.GAMEMODE = 'playervsplayer'; _parent.gotoAndStop('play'); }; } } movieClip 2316 { frame 1 { function doneHowToPlay() { gotoAndStop('menu'); } _global.GAME = this; _global.MAINSOUNDCOUNT = 0; } frame 2 { stop(); } frame 4 { stop(); } frame 20 { stop(); } frame 30 { stop(); } frame 40 { stop(); } frame 50 { stop(); } frame 60 { stop(); } frame 70 { stop(); } } movieClip 2317 { frame 1 { function onEnterFrame() { _global.ADEVTMANAGER.nextState(); } } } movieClip 2318 { frame 1 { function reset() { TIMER = 0; EVENTS = []; } function evt(_NFRAMES, _METHOD, _OBJ, _DATA) { NEWEVENT = {'t': TIMER + _NFRAMES, 'method': _METHOD, 'obj': _OBJ, 'data': _DATA, 'cancel': false}; C = EVENTS.length; i = 0; while (i < C) { if (NEWEVENT.t < EVENTS[i].t) { EVENTS.splice(i, 0, NEWEVENT); return undefined; } ++i; } EVENTS.push(NEWEVENT); return NEWEVENT; } function nextState() { ++TIMER; DELETECOUNT = 0; CALLS = []; C = EVENTS.length; i = 0; while (i < C) { if (EVENTS[i].cancel) { ++DELETECOUNT; } else { if (TIMER >= EVENTS[i].t) { CALLS.push(EVENTS[i]); ++DELETECOUNT; } else { break; } } ++i; } EVENTS.splice(0, DELETECOUNT); CJ = CALLS.length; j = 0; while (j < CJ) { CALLS[j].method.call(CALLS[j].obj, CALLS[j].data); ++j; } } stop(); _global.ADEVTMANAGER = this; reset(); } } movieClip 2319 { } movieClip 2320 { frame 1 { stop(); } instance loader of movieClip 47 Loader { onClipEvent (construct) { autoLoad = true; contentPath = ''; scaleContent = true; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } button 2323 { on (release) { url = 'http://www.playnow3dgames.com/index.php?refgame=' + _global.GAMEID; getURL(url, '_blank', 'POST'); } } movieClip 2326 { } button 2327 { on (release) { url = 'http://www.playnow3dgames.com/index.php?refgame=' + _global.GAMEID; getURL(url, '_blank', 'POST'); } } movieClip 2330 { } button 2331 { on (release) { url = 'http://www.playnow3dgames.com/gamesforyoursite.php?refgame=' + _global.GAMEID; getURL(url, '_blank', 'POST'); } } movieClip 2332 { } movieClip 2333 { frame 1 { function showAd1() { if (!AD1) { return undefined; } L = ad1_mc.loader.bytesLoaded; T = ad1_mc.loader.bytesTotal; if (L < T) { _global.ADEVTMANAGER.evt(RETRYTIME, showAd1, this); return undefined; } gotoAndPlay('hideviral'); _global.ADEVTMANAGER.evt(TWEENTIME + 1, showAd1Now, this); } function showAd1Now() { gotoAndPlay('showad1'); _global.ADEVTMANAGER.evt(SHOWTIME, hideAd1, this); } function hideAd1() { gotoAndPlay('hidead1'); _global.ADEVTMANAGER.evt(TWEENTIME + 1, backFromAd1, this); } function backFromAd1() { gotoAndPlay('showviral'); _global.ADEVTMANAGER.evt(TWEENTIME + NEXTTIME, showAd2, this); } function showAd2() { if (!AD2) { showAd1(); return undefined; } L = ad2_mc.loader.bytesLoaded; T = ad2_mc.loader.bytesTotal; if (L < T) { _global.ADEVTMANAGER.evt(RETRYTIME, showAd2, this); return undefined; } gotoAndPlay('hideviral'); _global.ADEVTMANAGER.evt(TWEENTIME + 1, showAd2Now, this); } function showAd2Now() { gotoAndPlay('showad2'); _global.ADEVTMANAGER.evt(SHOWTIME, hideAd2, this); } function hideAd2() { gotoAndPlay('hidead2'); _global.ADEVTMANAGER.evt(TWEENTIME + 1, backFromAd2, this); } function backFromAd2() { gotoAndPlay('showviral'); _global.ADEVTMANAGER.evt(TWEENTIME + NEXTTIME, showAd1, this); } function flashserve() { var RESPONSE = new LoadVars(); RESPONSE.onLoad = function (success) { if (success) { if (RESPONSE.STATUS == 'OK') { LAYERAD_SERVER = RESPONSE.SERVER; LAYERAD_ADS = RESPONSE.LAYERADS.split(';'); if (LAYERAD_ADS.length > 0 && RESPONSE.LAYERADS != '') { AD1 = true; URL1 = 'http://' + LAYERAD_SERVER + '/' + LAYERAD_ADS[0]; ad1_mc.loader.scaleContent = false; ad1_mc.loader.contentPath = URL1; trace(URL1); } if (LAYERAD_ADS.length > 1 && RESPONSE.LAYERADS != '') { AD2 = true; URL2 = 'http://' + LAYERAD_SERVER + '/' + LAYERAD_ADS[1]; ad2_mc.loader.scaleContent = false; ad2_mc.loader.contentPath = URL2; trace(URL2); } } else { trace('ERROR2'); } } else { trace('ERROR1'); } }; var v1 = new LoadVars(); v1.GAMEID = 'weirdfighters'; v1.SITEID = 'playnow'; v1.sendAndLoad('http://flash.qigames.com/gameplay.php', RESPONSE, 'POST'); } AD1 = false; AD2 = false; TWEENTIME = 15; SHOWTIME = 240; RETRYTIME = 720; NEXTTIME = 1440; flashserve(); } frame 2 { stop(); _global.ADEVTMANAGER.evt(96, showAd1, this); } frame 25 { stop(); } frame 40 { stop(); } frame 65 { stop(); } frame 80 { stop(); } frame 105 { stop(); } frame 120 { stop(); } }




http://swfchan.com/3/10934/info.shtml
Created: 7/6 -2019 21:10:52 Last modified: 7/6 -2019 21:10:52 Server time: 20/04 -2024 11:08:18