Frame 1
stop();
_quality = "HIGH";
_global.level = 1;
_global.instruction_mode_screen = true;
_global.alertPanelWildmutt = false;
_global.alertPanelWildvine = false;
_global.alertPanelHeatBlast = false;
this.onKeyDown = function () {
if (Key.isDown(32)) {
var _local2 = new Date().getTime();
loadMovieNum ("http://www.cartoonnetwork.com/games/ben10/savagepursuit/tracker.swf?" + _local2, 10000);
this.gotoAndStop("INSTRUCTIONS1");
}
};
Key.addListener(this);
Frame 11
stop();
_quality = "HIGH";
this.onKeyDown = function () {
if (Key.isDown(32)) {
this.gotoAndStop("INSTRUCTIONS2");
}
};
Key.addListener(this);
Frame 20
stop();
_quality = "HIGH";
this.onKeyDown = function () {
if (Key.isDown(32)) {
this.gotoAndStop("INSTRUCTIONS3");
}
};
Key.addListener(this);
Frame 31
stop();
_quality = "HIGH";
this.onKeyDown = function () {
if (Key.isDown(32)) {
this.gotoAndStop("PROLOGUE");
}
};
Key.addListener(this);
Frame 40
stop();
_quality = "HIGH";
this.onKeyDown = function () {
if (Key.isDown(32)) {
this.gotoAndStop("GAME");
}
};
Key.addListener(this);
Frame 50
function subKeyZIni() {
if ((!_global.activePanelChange) && (_global.playerActiveChange)) {
_global.game.createPanelChange();
}
}
function subKeyZEnd() {
if (_global.activePanelChange) {
if (((_global.activePlayer != _global.PLAYER_BEN) && (!_global.pieceModulator)) && (!_global.actionEndEscene)) {
_global.player.transformToBen();
}
_global.game.removePanelChange();
_global.setPause(false);
if (_global.player.action.mKey.Key_RIGHT) {
_global.player.action.toRight = true;
} else if (_global.player.action.mKey.Key_LEFT) {
_global.player.action.toLeft = true;
}
}
}
function subKeyUpIni() {
if (_global.activePanelChange) {
_global.playerTemp = _global.PLAYER_HEATBLAST;
_global.game.removePanelChange();
if (_global.activePlayer == _global.PLAYER_BEN) {
_global.player.changeBen();
} else if (_global.activePlayer != _global.playerTemp) {
_global.player.transformAlienToAlien();
} else {
_global.setPause(false);
}
}
}
function subKeyDownIni() {
if (_global.activePanelChange) {
_global.playerTemp = _global.PLAYER_WILDMUTT;
_global.game.removePanelChange();
if (_global.activePlayer == _global.PLAYER_BEN) {
_global.player.changeBen();
} else if (_global.activePlayer != _global.playerTemp) {
_global.player.transformAlienToAlien();
} else {
_global.setPause(false);
}
}
}
function subKeyRightIni() {
if (_global.activePanelChange) {
_global.playerTemp = _global.PLAYER_CANNONBOLT;
_global.game.removePanelChange();
if (_global.activePlayer == _global.PLAYER_BEN) {
_global.player.changeBen();
} else if (_global.activePlayer != _global.playerTemp) {
_global.player.transformAlienToAlien();
} else {
_global.setPause(false);
}
}
}
function subKeyLeftIni() {
if (_global.activePanelChange) {
_global.playerTemp = _global.PLAYER_WILDVINE;
_global.game.removePanelChange();
if (_global.activePlayer == _global.PLAYER_BEN) {
_global.player.changeBen();
} else if (_global.activePlayer != _global.playerTemp) {
_global.player.transformAlienToAlien();
trace("cambio alien");
} else {
_global.setPause(false);
}
}
}
function subKeyPIni() {
_global.setPause(!_global.pause);
}
function subKeySpaceEnd() {
if (_global.panelWilmutt) {
_global.game.removePanelWilmutt();
}
}
function subKeyCIni() {
_global.mode_collision = !_global.mode_collision;
}
function subKeyIIni() {
if (!_global.invincible) {
_global.invincible = true;
_global.player.mGpx._alpha = 50;
} else {
_global.invincible = false;
_global.player.mGpx._alpha = 100;
}
}
function subKeyLIni() {
if ((!_global.levelChanging) && (_global.level < 10)) {
_global.game.createPanel("mc_fade_change_level", 0, 0);
}
}
function subKeyTIni() {
_global.infiniteTransformation = !_global.infiniteTransformation;
}
function subKeyHIni() {
_global.game.updateEnergyLife(100);
}
function winGame() {
_global.game.free();
delete _global.game;
_root.gotoAndStop("WIN");
}
function loseGame() {
mKey.free();
delete mKey;
_global.game.free();
delete _global.game;
_root.gotoAndStop("GAMEOVER");
}
Key.removeListener(this);
stop();
stopAllSounds();
_global.posX = 0;
_global.posY = 0;
_global.keyPressed = false;
_global.game = null;
_global.player = null;
_global.boss = null;
_global.world = null;
_global.world_move = null;
_global.lineTime = null;
_global.pause = false;
_global.panelInfo = null;
_global.panel = null;
_global.panelCheckMsn = null;
_global.TIMER = 0;
_global.TIME_PAUSED = 0;
_global.TIME_TMP = 0;
_global.score = 0;
_global.sumoCheck;
_global.bossReturn = null;
_global.activePanelChange = false;
_global.pieceModulator = null;
_global.actionEndEscene = null;
_global.SPEED_B_RETURN = 3.5;
_global.TIMER_GRADE = 18;
_global.levelChanging = false;
_global.DEPTH_ANIMO = 999;
_global.DEPTH_PLAYER = 4000;
_global.DEPTH_WORLD = 10;
_global.DEPTH_PLATAFORM = 20;
_global.DEPTH_BG01 = 1;
_global.DEPTH_PANEL_CHANGE = 70000 /* 0x011170 */;
_global.DEPTH_LINE_TIME = 60000;
_global.DEPTH_PANEL_INFO = 61000;
_global.DEPTH_PANEL = 71000 /* 0x011558 */;
_global.DEPTH_PANEL_INSTRUCTIONS = 72000 /* 0x011940 */;
_global.DEPTH_PANEL_CHEAT = 72001 /* 0x011941 */;
_global.DEPTH_HAMSTER_MIN = 4010;
_global.DEPTH_HAMSTER_MAX = 4999;
_global.DEPTH_BOSS = 5000;
_global.DEPTH_PLAYER_DIE = 5001;
_global.panelWilmutt = false;
_global.panelCheat = false;
_global.DEPTH_PANEL_WILMUTT = 5;
_global.mc_panel_wilmutt = null;
_global.S_W = 600;
_global.S_H = 400;
_global.N_S = 0;
_global.M_S = 0;
_global.mzCoins = undefined;
_global.KEY_C = 67;
_global.KEY_P = 80;
_global.KEY_Z = 90;
_global.KEY_I = 73;
_global.KEY_F = 70;
_global.KEY_H = 72;
_global.KEY_D = 68;
_global.KEY_L = 76;
_global.KEY_T = 84;
_global.mode_collision = true;
_global.infiniteTransformation = false;
_global.PLAYER_SPEED = 10;
_global.WORLD_DISPLACE = 10;
_global.VIEW_LIMIT_UP = 100;
_global.VIEW_LIMIT_DOWN = 300;
_global.VIEW_LIMIT_LEFT = 100;
_global.VIEW_LIMIT_RIGHT = 500;
_global.PLAYER_BEN = 1;
_global.PLAYER_WILDMUTT = 2;
_global.PLAYER_CANNONBOLT = 3;
_global.PLAYER_HEATBLAST = 4;
_global.PLAYER_WILDVINE = 5;
_global.activePlayer;
_global.playerTemp = 0;
_global.playerAlive = true;
_global.playerEnergyTrans = 100;
_global.playerEnergyLife = 100;
_global.playerActiveChange = true;
_global.playerNumLife = 3;
_global.DIR_LEFT = 0;
_global.DIR_RIGHT = 1;
_global.DIR_UP = 2;
_global.DIR_DOWN = 3;
_global.DMG_PUNCH_ENEMY = 1;
_global.DMG_PUNCH = 0.5;
_global.DMG_SHOOT = 2;
_global.DMG_SPIN = 5;
_global.ST_INDEF = -1;
_global.ST_BEGIN = 1;
_global.ST_STAND = 2;
_global.ST_MOVE_TO_END = 10;
_global.ST_END = 11;
_global.ST_FINISH = 12;
_global.ST_SUB_ACTION = 30;
_global.ST_KILL = 503;
_global.MOVE_NONE = 0;
_global.MOVE_HH = 1;
_global.MOVE_VV = 2;
_global.invincible = false;
_global.showCollision = false;
_global.DAMAGE_TOTAL = 1;
_global.DAMAGE_FIXED = 2;
_global.SHOOT_NORMAL = 1;
_global.SHOOT_DIRECT = 2;
_global.SHOOT_ARC = 3;
_global.snd_world = new Sound();
_global.stopSounds = false;
_global.snd = new Sound();
_global.ST_PLAYER_DIE = 0;
_global.ST_PLAYER_STAND_RIGHT = 1;
_global.ST_PLAYER_WALK_RIGHT = 2;
_global.ST_PLAYER_SHOOT_RIGHT = 3;
_global.ST_PLAYER_JUMP_RIGHT = 4;
_global.ST_PLAYER_FALL_RIGHT = 5;
_global.ST_PLAYER_JUMP_SHOOT_RIGHT = 6;
_global.ST_PLAYER_JUMP_WALK_RIGHT = 7;
_global.ST_PLAYER_HIT_RIGHT = 8;
_global.ST_PLAYER_CHANGE_RIGHT = 9;
_global.ST_PLAYER_STAND_LEFT = -1;
_global.ST_PLAYER_WALK_LEFT = -2;
_global.ST_PLAYER_SHOOT_LEFT = -3;
_global.ST_PLAYER_JUMP_LEFT = -4;
_global.ST_PLAYER_FALL_LEFT = -5;
_global.ST_PLAYER_JUMP_SHOOT_LEFT = -6;
_global.ST_PLAYER_JUMP_WALK__LEFT = -7;
_global.ST_PLAYER_HIT_LEFT = -8;
_global.ST_PLAYER_CHANGE_LEFT = -9;
_global.priceCoin = 1000;
_global.priceBoss01 = 1000;
_global.priceBoss02 = 1500;
_global.priceBoss03 = 2000;
_global.priceBoss04 = 2500;
_global.enemiesDie = 0;
_global.iniLevelLife = 0;
_global.scoreExtraLife = 5000;
_global.scoreNextExtraLife = 5000;
_global.setPause = function (value) {
if (value) {
_global.TIME_TMP = getTimer();
} else {
_global.TIME_PAUSED = _global.TIME_PAUSED + (getTimer() - _global.TIME_TMP);
}
_global.pause = value;
};
_global.getRandom = function (min, max) {
return(Math.floor(Math.random() * ((max - min) + 1)) + min);
};
_global.getRandomNums = function (nums) {
var _local2 = nums.length;
var _local3 = _global.getRandom(0, _local2 - 1);
return(nums[_local3]);
};
_global.arcTangent = function (dy, dx) {
if (dx == 0) {
if (dy >= 0) {
return(90);
}
return(270);
}
var _local1 = (Math.atan2(dy, dx) * 180) / Math.PI;
if (dy >= 0) {
return(_local1);
}
return(360 + _local1);
};
_global.startSound = function (sSound, sAttach, time) {
sSound.stop(sSound, sAttach);
sSound.attachSound(sAttach);
if (time == undefined) {
sSound.start();
} else {
sSound.start(0, time);
}
};
_global.stopSound = function (sSound, sAttach) {
_global.activeSound = false;
sSound.stop(sAttach);
};
_global.clearSimSet = function (simSet) {
var _local2 = simSet.getCount();
var _local1 = _local2 - 1;
while (_local1 >= 0) {
object = simSet.removeIndex(_local1);
object.free();
delete object;
_local1--;
}
};
_global.updateObjectsSet = function (simSet) {
var _local3 = 0;
while (_local3 < simSet.getCount()) {
var _local2 = simSet.getObject(_local3);
_local2.update();
if (_local2.mState == _global.ST_KILL) {
simSet.remove(_local2);
_local2.free();
_local3--;
}
_local3++;
}
};
_global.vectorLength = function (dx, dy) {
return(Math.sqrt((dx * dx) + (dy * dy)));
};
_global.createGame = function () {
stopAllSounds();
switch (_global.level) {
case 1 :
_global.game = new clsGameLv01();
break;
case 2 :
_global.game = new clsGameLv01Boss();
break;
case 3 :
_global.game = new clsGameLv01Back();
break;
case 4 :
_global.game = new clsGameLv02();
break;
case 5 :
_global.game = new clsGameLv02Boss();
break;
case 6 :
_global.game = new clsGameLv02Back();
break;
case 7 :
_global.game = new clsGameLv03();
break;
case 8 :
_global.game = new clsGameLv03Boss();
break;
case 9 :
_global.game = new clsGameLv03Back();
break;
case 10 :
_global.game = new clsGameLv04Boss();
break;
default :
_global.game = new clsGameLv01();
}
};
stop();
_root._quality = "MEDIUM";
this._lockroot = true;
_global.createGame();
_root.mc_fps.swapDepths(80000);
var oncePerSecondInterval;
var fps;
var oldticks;
var ticks;
var FAMES_PER_SECOND = 40;
_root.onEnterFrame = function () {
mKey.update();
if (!_global.pause) {
_global.TIMER = getTimer() - _global.TIME_PAUSED;
_global.game.update();
}
};
var mKey = new clsKeyBoard();
mKey.addCmdKey(_global.KEY_Z, subKeyZIni, subKeyZEnd);
mKey.addCmdKey(38, subKeyUpIni, null);
mKey.addCmdKey(40, subKeyDownIni, null);
mKey.addCmdKey(39, subKeyRightIni, null);
mKey.addCmdKey(37, subKeyLeftIni, null);
mKey.addCmdKey(32, null, subKeySpaceEnd);
var KeyListener = new Object();
KeyListener.onKeyDown = function () {
if ((Key.isDown(16) && (Key.isDown(68))) && (!_global.panelCheat)) {
_global.game.createPanelCheckMsn();
_global.panelCheat = true;
}
if ((Key.isDown(13) && (_global.panelCheat)) && (_global.panelCheckMsn._currentframe < 3)) {
switch (_global.panelCheckMsn.txt_cheat.text) {
case "health" :
_global.panelCheckMsn.mc_checkValue.gotoAndStop("CORRECT");
_global.panelCheckMsn.gotoAndPlay(3);
_global.game.updateEnergyLife(100);
break;
case "HEALTH" :
_global.panelCheckMsn.mc_checkValue.gotoAndStop("CORRECT");
_global.panelCheckMsn.gotoAndPlay(3);
_global.game.updateEnergyLife(100);
break;
case "energy" :
_global.panelCheckMsn.mc_checkValue.gotoAndStop("CORRECT");
_global.panelCheckMsn.gotoAndPlay(3);
_global.game.updateEnergyTrans(100);
break;
case "ENERGY" :
_global.panelCheckMsn.mc_checkValue.gotoAndStop("CORRECT");
_global.panelCheckMsn.gotoAndPlay(3);
_global.game.updateEnergyTrans(100);
break;
case "level" :
_global.panelCheckMsn.mc_checkValue.gotoAndStop("CORRECT");
_global.panelCheckMsn.gotoAndPlay(3);
if ((!_global.levelChanging) && (_global.level < 10)) {
_global.game.createPanel("mc_fade_change_level", 0, 0);
}
break;
case "LEVEL" :
_global.panelCheckMsn.mc_checkValue.gotoAndStop("CORRECT");
_global.panelCheckMsn.gotoAndPlay(3);
if ((!_global.levelChanging) && (_global.level < 10)) {
_global.game.createPanel("mc_fade_change_level", 0, 0);
}
break;
default :
_global.game.removePanelCheckMsn();
}
}
};
Key.addListener(KeyListener);
Frame 60
stop();
_quality = "HIGH";
Frame 70
stop();
_quality = "HIGH";
this.onKeyDown = function () {
if (Key.isDown(32)) {
this.gotoAndStop("TITLE SCREEN");
}
};
Key.addListener(this);
Frame 80
stop();
_quality = "HIGH";
this.onKeyDown = function () {
if (Key.isDown(32)) {
var _local2 = new Date().getTime();
loadMovieNum ("http://www.cartoonnetwork.com/games/ben10/savagepursuit/tracker.swf?" + _local2, 10000);
this.gotoAndStop("GAME");
}
};
Key.addListener(this);
Symbol 10 MovieClip Frame 5
stop();
this.removeMovieClip();
Symbol 12 MovieClip Frame 5
stop();
this.removeMovieClip();
Symbol 13 MovieClip Frame 1
stop();
Symbol 20 MovieClip [Defaults] Frame 1
#initclip 94
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 21 MovieClip [UIObjectExtensions] Frame 1
#initclip 95
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 22 MovieClip [UIObject] Frame 1
#initclip 96
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 23 MovieClip [Border] Frame 1
#initclip 97
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 24 MovieClip [RectBorder] Frame 1
#initclip 98
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 27 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 28 MovieClip Frame 1
#initclip 99
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 31 MovieClip [FocusRect] Frame 1
#initclip 100
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 32 MovieClip [FocusManager] Frame 1
#initclip 101
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 33 MovieClip [UIComponentExtensions] Frame 1
#initclip 102
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 34 MovieClip [UIComponent] Frame 1
#initclip 103
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 35 MovieClip [TextInput] Frame 1
#initclip 104
Object.registerClass("TextInput", mx.controls.TextInput);
#endinitclip
stop();
Symbol 56 MovieClip [mc_panel_cheat] Frame 1
stop();
this.txt_cheat.setFocus();
Instance of Symbol 35 MovieClip [TextInput] "txt_cheat" in Symbol 56 MovieClip [mc_panel_cheat] Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 56 MovieClip [mc_panel_cheat] Frame 15
_global.game.removePanelCheckMsn();
Symbol 80 MovieClip Frame 37
stop();
this._parent.gotoAndStop("STAND");
Symbol 81 MovieClip Frame 40
stop();
this._parent.gotoAndStop("STAND");
Symbol 83 MovieClip Frame 120
stop();
clsFla.endAnimationAnimo();
Symbol 84 MovieClip Frame 55
stop();
this._parent.gotoAndStop("STAND");
Symbol 85 MovieClip Frame 44
_global.boss.shoot();
Symbol 85 MovieClip Frame 83
stop();
_global.boss.onAnimationEnd();
Symbol 86 MovieClip [mc_animo] Frame 1
stop();
Symbol 86 MovieClip [mc_animo] Frame 10
stop();
Symbol 86 MovieClip [mc_animo] Frame 20
stop();
Symbol 86 MovieClip [mc_animo] Frame 30
stop();
Symbol 86 MovieClip [mc_animo] Frame 40
stop();
Symbol 95 MovieClip Frame 10
stop();
Symbol 103 Button
on (release) {
_global.setPause(false);
_quality = "MEDIUM";
this.removeMovieClip();
}
Symbol 126 MovieClip [mc_panel_alert_wildvine] Frame 1
_quality = "HIGH";
Symbol 126 MovieClip [mc_panel_alert_wildvine] Frame 10
stop();
this.onEnterFrame = function () {
if (Key.isDown(32)) {
_global.setPause(false);
_quality = "MEDIUM";
this.removeMovieClip();
}
};
Symbol 149 MovieClip [mc_panel_alert_willmutt] Frame 1
_quality = "HIGH";
Symbol 149 MovieClip [mc_panel_alert_willmutt] Frame 10
stop();
this.onEnterFrame = function () {
if (Key.isDown(32)) {
_global.setPause(false);
_quality = "MEDIUM";
this.removeMovieClip();
}
};
Symbol 182 MovieClip [mc_panel_alert_heatblast] Frame 1
_quality = "HIGH";
Symbol 182 MovieClip [mc_panel_alert_heatblast] Frame 10
stop();
this.onEnterFrame = function () {
if (Key.isDown(32)) {
_global.setPause(false);
_quality = "MEDIUM";
this.removeMovieClip();
}
};
Symbol 202 MovieClip Frame 23
this._parent.gotoAndStop("WALK");
Symbol 207 MovieClip Frame 46
this._parent.removeMovieClip();
Symbol 227 MovieClip Frame 47
this._parent.gotoAndStop("WALK");
Symbol 230 MovieClip Frame 50
this._parent.removeMovieClip();
Symbol 243 MovieClip Frame 1
stop();
Symbol 244 MovieClip [mc_price] Frame 25
this.removeMovieClip();
Symbol 251 MovieClip [mc_start_back_level] Frame 3
clsFla.iniMessageStart();
Symbol 251 MovieClip [mc_start_back_level] Frame 155
clsFla.endMessageEnd(this);
Symbol 254 MovieClip [mc_start_level_03] Frame 3
clsFla.iniMessageStart();
Symbol 254 MovieClip [mc_start_level_03] Frame 125
clsFla.endMessageEnd(this);
Symbol 256 MovieClip [mc_start_level_02] Frame 3
clsFla.iniMessageStart();
Symbol 256 MovieClip [mc_start_level_02] Frame 125
clsFla.endMessageEnd(this);
Symbol 258 MovieClip [mc_start_level_01] Frame 3
clsFla.iniMessageStart();
Symbol 258 MovieClip [mc_start_level_01] Frame 125
clsFla.endMessageEnd(this);
Symbol 279 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_global.player.mGpx.mc_area)) {
_global.player.action.mPassable = true;
}
};
Symbol 291 Button
on (release) {
this._parent.play();
}
Symbol 309 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 1
stop();
clsFla.loadDataResume(this);
this.onKeyDown = function () {
if (Key.isDown(32)) {
this._parent.play();
Key.removeListener(this);
}
};
Key.addListener(this);
Symbol 359 MovieClip Frame 1071
this._parent.play();
Symbol 360 MovieClip [mc_fade_change_level] Frame 1
clsFla.beginFadeChangeLevel();
Symbol 360 MovieClip [mc_fade_change_level] Frame 15
clsFla.iniFadeChangeLevel();
Symbol 360 MovieClip [mc_fade_change_level] Frame 35
clsFla.mediumFadeChangeLevel(this);
Symbol 360 MovieClip [mc_fade_change_level] Frame 36
clsFla.showCutSceneChangeLevel(this);
this.mc_final_cutScene.onKeyDown = function () {
if (Key.isDown(32)) {
this._parent.play();
Key.removeListener(this.mc_final_cutScene);
}
};
Key.addListener(this.mc_final_cutScene);
Symbol 360 MovieClip [mc_fade_change_level] Frame 55
clsFla.endFadeChangeLevel(this);
Symbol 361 MovieClip [mc_fade] Frame 15
clsFla.iniFade();
Symbol 361 MovieClip [mc_fade] Frame 55
clsFla.endFade(this);
Symbol 365 MovieClip [mc_panel_trans] Frame 1
stop();
Symbol 388 MovieClip Frame 100
stop();
Symbol 412 MovieClip Frame 1
stop();
Symbol 444 MovieClip Frame 12
stop();
Symbol 445 MovieClip Frame 14
stop();
Symbol 472 MovieClip Frame 38
stop();
_global.boss.onAnimationEnd();
Symbol 483 MovieClip Frame 22
stop();
Symbol 484 MovieClip Frame 27
stop();
Symbol 487 MovieClip [mc_Boss03_TongueFX] Frame 1
#initclip 122
Object.registerClass("mc_Boss03_TongueFX", clsCollisionLiquid);
#endinitclip
Symbol 490 MovieClip Frame 30
stop();
_global.boss.onAnimationEnd();
Symbol 491 MovieClip Frame 30
stop();
_global.boss.onAnimationEnd();
Symbol 495 MovieClip Frame 50
stop();
_global.boss.onAnimationEnd();
Symbol 496 MovieClip Frame 12
stop();
_global.boss.onAnimationEnd();
Symbol 504 MovieClip Frame 131
stop();
_global.boss.onAnimationEnd();
Symbol 505 MovieClip Frame 107
stop();
_global.boss.onAnimationEnd();
Symbol 508 MovieClip Frame 126
clsFla.endBossRecover(this);
Symbol 514 MovieClip Frame 38
clsFla.endNormalizeBoss(this);
Symbol 515 MovieClip [mc_boss_03] Frame 1
stop();
Symbol 515 MovieClip [mc_boss_03] Frame 10
stop();
Symbol 515 MovieClip [mc_boss_03] Frame 20
stop();
Symbol 515 MovieClip [mc_boss_03] Frame 30
stop();
Symbol 515 MovieClip [mc_boss_03] Frame 40
stop();
Symbol 515 MovieClip [mc_boss_03] Frame 50
stop();
Symbol 515 MovieClip [mc_boss_03] Frame 60
stop();
Symbol 515 MovieClip [mc_boss_03] Frame 70
stop();
Symbol 515 MovieClip [mc_boss_03] Frame 80
stop();
Symbol 515 MovieClip [mc_boss_03] Frame 90
stop();
Symbol 515 MovieClip [mc_boss_03] Frame 100
stop();
Symbol 559 MovieClip Frame 56
stop();
_global.boss.onAnimationEnd();
Symbol 564 MovieClip Frame 21
_global.boss.shoot();
Symbol 564 MovieClip Frame 45
stop();
_global.boss.onAnimationEnd();
Symbol 578 MovieClip Frame 22
stop();
_global.boss.onAnimationEnd();
Symbol 583 MovieClip Frame 140
stop();
_global.boss.onAnimationEnd();
Symbol 601 MovieClip Frame 224
clsFla.endBossRecover(this);
Symbol 602 MovieClip Frame 30
clsFla.endNormalizeBoss(this);
Symbol 640 MovieClip Frame 31
_global.boss.onAnimationEnd();
Symbol 655 MovieClip [mc_boss01_spitshoot] Frame 1
#initclip 105
Object.registerClass("mc_boss01_spitshoot", clsCollisionLiquid);
#endinitclip
Symbol 663 MovieClip Frame 1
this.onEnterFrame = function () {
if (_global.pause) {
stop();
} else {
play();
}
};
Symbol 663 MovieClip Frame 196
_global.boss.onAnimationEnd();
Symbol 664 MovieClip Frame 65
_global.boss.onAnimationEnd();
Symbol 665 MovieClip Frame 30
Symbol 665 MovieClip Frame 38
Symbol 665 MovieClip Frame 47
Symbol 665 MovieClip Frame 54
Symbol 665 MovieClip Frame 65
_global.boss.onAnimationEnd();
Symbol 670 MovieClip Frame 200
stop();
_global.boss.onAnimationEnd();
Symbol 674 MovieClip Frame 226
clsFla.endBossRecover(this);
Symbol 676 MovieClip Frame 31
clsFla.endNormalizeBoss(this);
Symbol 677 MovieClip [mc_boss_01] Frame 1
stop();
Symbol 677 MovieClip [mc_boss_01] Frame 11
stop();
Symbol 677 MovieClip [mc_boss_01] Frame 20
stop();
Symbol 677 MovieClip [mc_boss_01] Frame 27
stop();
Symbol 677 MovieClip [mc_boss_01] Frame 33
stop();
Symbol 677 MovieClip [mc_boss_01] Frame 39
stop();
Symbol 677 MovieClip [mc_boss_01] Frame 59
stop();
Symbol 701 MovieClip [mc_Boss04_Walk] Frame 1
#initclip 106
Object.registerClass("mc_Boss04_Walk", clsCollisionBoss);
#endinitclip
Symbol 702 MovieClip [mc_Boss04_JumpUp] Frame 1
#initclip 107
Object.registerClass("mc_Boss04_JumpUp", clsCollisionBoss);
#endinitclip
Symbol 702 MovieClip [mc_Boss04_JumpUp] Frame 19
stop();
Symbol 703 MovieClip [mc_Boss04_JumpDown] Frame 1
#initclip 108
Object.registerClass("mc_Boss04_JumpDown", clsCollisionBoss);
#endinitclip
Symbol 703 MovieClip [mc_Boss04_JumpDown] Frame 28
stop();
Symbol 717 MovieClip [mc_Boss04_Attack] Frame 1
#initclip 109
Object.registerClass("mc_Boss04_Attack", clsCollisionBoss);
#endinitclip
Symbol 717 MovieClip [mc_Boss04_Attack] Frame 59
stop();
_global.boss.onAnimationEnd();
Symbol 718 MovieClip Frame 23
stop();
_global.boss.onAnimationEnd();
Symbol 719 MovieClip Frame 41
stop();
_global.boss.onAnimationEnd();
Symbol 721 MovieClip Frame 85
stop();
_global.boss.onAnimationEnd();
Symbol 722 MovieClip [mc_Boss04_Alert] Frame 1
#initclip 110
Object.registerClass("mc_Boss04_Alert", clsCollisionBoss);
#endinitclip
Symbol 722 MovieClip [mc_Boss04_Alert] Frame 70
stop();
_global.boss.onAnimationEnd();
Symbol 734 MovieClip Frame 10
_global.player.action.onEndAnimation();
Symbol 736 MovieClip Frame 10
_global.player.action.onEndAnimation();
Symbol 740 MovieClip Frame 10
_global.player.action.onEndAnimation();
Symbol 741 MovieClip Frame 10
_global.player.action.onEndAnimation();
Symbol 743 MovieClip Frame 10
stop();
Symbol 744 MovieClip Frame 10
stop();
Symbol 745 MovieClip Frame 10
stop();
Symbol 746 MovieClip Frame 10
stop();
Symbol 758 MovieClip Frame 8
clsFla.playerInitChange();
Symbol 758 MovieClip Frame 15
stop();
clsFla.endChangeToAlien();
Symbol 764 MovieClip Frame 27
stop();
clsFla.endPlayerDie();
Symbol 769 MovieClip Frame 100
clsFla.endWinLevel(this);
Symbol 770 MovieClip Frame 45
clsFla.endWinShortBen(this);
Symbol 771 MovieClip Frame 20
clsFla.endAttackBoss(this);
Symbol 772 MovieClip Frame 21
clsFla.endAttackBoss(this);
Symbol 773 MovieClip Frame 21
clsFla.endAttackBoss(this);
Symbol 774 MovieClip Frame 1
stop();
Symbol 774 MovieClip Frame 10
stop();
Symbol 774 MovieClip Frame 20
stop();
Symbol 774 MovieClip Frame 30
stop();
Symbol 774 MovieClip Frame 40
stop();
Symbol 774 MovieClip Frame 50
stop();
Symbol 774 MovieClip Frame 60
stop();
Symbol 774 MovieClip Frame 70
stop();
Symbol 774 MovieClip Frame 80
stop();
Symbol 774 MovieClip Frame 90
stop();
Symbol 774 MovieClip Frame 100
stop();
Symbol 774 MovieClip Frame 110
stop();
Symbol 774 MovieClip Frame 120
stop();
Symbol 774 MovieClip Frame 130
stop();
Symbol 774 MovieClip Frame 140
stop();
Symbol 774 MovieClip Frame 150
stop();
Symbol 774 MovieClip Frame 160
stop();
Symbol 774 MovieClip Frame 170
stop();
Symbol 793 MovieClip Frame 10
stop();
Symbol 794 MovieClip Frame 10
stop();
Symbol 795 MovieClip Frame 8
stop();
Symbol 796 MovieClip Frame 8
stop();
Symbol 811 MovieClip Frame 6
stop();
Symbol 812 MovieClip Frame 6
stop();
Symbol 813 MovieClip Frame 1
stop();
stop();
Symbol 813 MovieClip Frame 10
stop();
Symbol 813 MovieClip Frame 20
stop();
Symbol 813 MovieClip Frame 30
stop();
Symbol 813 MovieClip Frame 40
stop();
Symbol 813 MovieClip Frame 50
stop();
Symbol 813 MovieClip Frame 60
stop();
Symbol 813 MovieClip Frame 70
stop();
Symbol 813 MovieClip Frame 80
stop();
Symbol 813 MovieClip Frame 90
stop();
Symbol 813 MovieClip Frame 100
stop();
Symbol 813 MovieClip Frame 110
stop();
Symbol 813 MovieClip Frame 120
stop();
Symbol 813 MovieClip Frame 130
stop();
Symbol 813 MovieClip Frame 140
stop();
Symbol 813 MovieClip Frame 170
stop();
Symbol 813 MovieClip Frame 180
stop();
Symbol 830 MovieClip Frame 7
stop();
Symbol 832 MovieClip Frame 5
stop();
Symbol 833 MovieClip Frame 1
stop();
Symbol 833 MovieClip Frame 10
stop();
Symbol 833 MovieClip Frame 20
stop();
Symbol 833 MovieClip Frame 30
stop();
Symbol 833 MovieClip Frame 40
stop();
Symbol 833 MovieClip Frame 50
stop();
Symbol 833 MovieClip Frame 60
stop();
Symbol 833 MovieClip Frame 70
stop();
Symbol 833 MovieClip Frame 80
stop();
Symbol 833 MovieClip Frame 90
stop();
Symbol 833 MovieClip Frame 100
stop();
Symbol 833 MovieClip Frame 110
stop();
Symbol 844 MovieClip Frame 19
_global.player.action.onEndAnimation();
Symbol 845 MovieClip Frame 17
stop();
_global.player.action.onEndAnimation();
Symbol 847 MovieClip Frame 10
stop();
_global.player.action.onEndAnimation();
Symbol 848 MovieClip Frame 9
stop();
_global.player.action.onEndAnimation();
Symbol 849 MovieClip Frame 1
stop();
Symbol 849 MovieClip Frame 10
stop();
Symbol 849 MovieClip Frame 20
stop();
Symbol 849 MovieClip Frame 30
stop();
Symbol 849 MovieClip Frame 40
stop();
Symbol 849 MovieClip Frame 50
stop();
Symbol 849 MovieClip Frame 60
stop();
Symbol 849 MovieClip Frame 70
stop();
Symbol 849 MovieClip Frame 80
stop();
Symbol 849 MovieClip Frame 90
stop();
Symbol 849 MovieClip Frame 100
stop();
Symbol 849 MovieClip Frame 110
stop();
Symbol 874 MovieClip Frame 13
_global.player.action.onEndAnimation();
Symbol 881 MovieClip Frame 1
stop();
Symbol 881 MovieClip Frame 10
stop();
Symbol 881 MovieClip Frame 20
stop();
Symbol 881 MovieClip Frame 30
stop();
Symbol 881 MovieClip Frame 40
stop();
Symbol 881 MovieClip Frame 80
stop();
Symbol 881 MovieClip Frame 90
stop();
Symbol 881 MovieClip Frame 100
stop();
Symbol 881 MovieClip Frame 110
stop();
Symbol 881 MovieClip Frame 130
stop();
Symbol 881 MovieClip Frame 140
stop();
Symbol 881 MovieClip Frame 150
Symbol 894 MovieClip [mc_aerial_anchor] Frame 1
mc_collision.onEnterFrame = function () {
if (_global.alertPanelWildvine) {
return(undefined);
}
if (this.hitTest(_global.player.mGpx)) {
_global.game.panelInstructions("mc_panel_alert_wildvine");
_global.alertPanelWildvine = true;
}
};
Symbol 924 MovieClip [mc_limit_left_level03] Frame 1
#initclip 111
Object.registerClass("mc_limit_left_level03", clsLimitLeft);
#endinitclip
Symbol 926 MovieClip [mc_limit_right_level03] Frame 1
#initclip 112
Object.registerClass("mc_limit_right_level03", clsLimitRight);
#endinitclip
Symbol 927 MovieClip [mc_screen_level_03_3_3] Frame 1
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 560, 320);
var enemy1 = new clsEnemyAmphibian(this, "mc_enemy_frog02", 195, 200, 1);
this.onEnterFrame = function () {
enemy1.update();
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
bonus1.free();
delete bonus1;
delete enemy1;
};
Symbol 934 MovieClip [mc_screen_level_03_3_4] Frame 1
var enemy1 = new clsEnemyHorizontal(this, "mc_enemy_hamsters02", 300, 306, 1, 1, 250);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 948 MovieClip [mc_screen_level_03_2_4] Frame 1
var plataform01 = new clsPlatformObject(this, 340, 220, "mc_plataform_elevador", _global.MOVE_VV, 1, 120, 90, 20);
var enemy1 = new clsEnemyHorWait(this, "mc_enemy_worm02", 500, 315, 1, 1, 60, 200);
this.onEnterFrame = function () {
plataform01.update();
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
plataform01.free();
enemy1.free();
delete enemy1;
delete plataform01;
};
Symbol 954 MovieClip [mc_screen_level_03_2_3] Frame 1
var enemy1 = new clsEnemyAerial(this, "mc_enemy_bat02", 2, 1, 325, 260, 225, 140, 1);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 971 MovieClip [mc_screen_level_03_3_2] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 350, 310);
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 550, 160);
this.onUnload = function () {
anchor01.free();
anchor02.free();
delete anchor01;
delete anchor02;
};
Symbol 975 MovieClip [mc_screen_level_03_5_1] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 530, 170);
this.onUnload = function () {
anchor01.free();
delete anchor02;
};
Symbol 978 MovieClip [mc_screen_level_03_4_1] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 180, 340);
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 540, 150);
this.onUnload = function () {
anchor01.free();
anchor02.free();
delete anchor01;
delete anchor02;
};
Symbol 991 MovieClip [mc_screen_level_03_1_3] Frame 1
var enemy1 = new clsEnemyAmphibian(this, "mc_enemy_frog02", 550, 300, 1);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 992 MovieClip [mc_screen_level_03_4_3] Frame 1
Symbol 1000 MovieClip [mc_screen_level_03_4_4] Frame 1
var plataform01 = new clsPlatformObject(this, 355, 235, "mc_plataform_elevador", _global.MOVE_VV, 1, 150, 100, 20);
var enemy1 = new clsEnemyHorWait(this, "mc_enemy_worm02", 130, 315, 1, 1, 110, 200);
this.onEnterFrame = function () {
plataform01.update();
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
plataform01.free();
enemy1.free();
delete enemy1;
delete plataform01;
};
Symbol 1005 MovieClip [mc_screen_level_03_4_2] Frame 1
Symbol 1011 MovieClip [mc_screen_level_03_5_4] Frame 1
var plataform01 = new clsPlatformObject(this, 315, 240, "mc_plataform_elevador", _global.MOVE_VV, 1, 120, 90, 20);
var enemy1 = new clsEnemyHorWait(this, "mc_enemy_worm02", 510, 315, 1, 1, 60, 200);
var bonus1 = new clsBonus(this, "mc_bonus_health", 120, 120);
this.onEnterFrame = function () {
bonus1.update();
plataform01.update();
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
if (bonus1.state == _global.ST.KILL) {
delete bonus1;
}
};
this.onUnload = function () {
plataform01.free();
enemy1.free();
bonus1.free();
delete bonus1;
delete enemy1;
delete plataform01;
};
Symbol 1012 MovieClip [mc_screen_level_03_5_3] Frame 1
var enemy1 = newclsEnemyAerial(this, "mc_enemy_bird03", 2, 1, 300, 300, 250, 110, 0);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1016 MovieClip [mc_screen_level_03_6_1] Frame 1
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 300, 170);
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 550, 305);
this.onEnterFrame = function () {
bonus1.update();
if (bonus1.state == _global.ST.KILL) {
delete bonus1;
}
};
this.onUnload = function () {
anchor01.free();
bonus1.free();
delete bonus1;
delete anchor01;
};
Symbol 1041 MovieClip Frame 1
stop();
var taken;
this.onEnterFrame = function () {
if (this.mc_collision.hitTest(_global.player.mGpx) && (taken == undefined)) {
_global.posX = this._parent._x + (this._x - 50);
_global.posY = this._parent._y + (this._y + 25);
taken = 1;
this.play();
}
};
Symbol 1041 MovieClip Frame 45
Symbol 1042 MovieClip [mc_screen_level_03_10_3] Frame 1
var enemy2 = new clsEnemyAquatic(this, "mc_enemy_fish05", 400, 370, 2, 1, 150, 40, 260);
this.onEnterFrame = function () {
enemy2.update();
if (enemy2.state == _global.ST_KILL) {
delete enemy2;
}
};
this.onUnload = function () {
enemy2.free();
delete enemy2;
};
Symbol 1047 MovieClip [mc_danger_lv03] Frame 1
#initclip 113
Object.registerClass("mc_danger_lv03", clsCollisionDangerFloor);
#endinitclip
Symbol 1048 MovieClip [mc_screen_level_03_7_4] Frame 1
var plataform01 = new clsPlatformObject(this, 300, 280, "mc_plataform_elevador", _global.MOVE_HH, 4, 250, 90, 20);
this.onEnterFrame = function () {
plataform01.update();
};
this.onUnload = function () {
plataform01.free();
delete plataform01;
};
Symbol 1065 MovieClip [mc_screen_level_03_10_1] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 300, 150);
this.onUnload = function () {
anchor01.free();
delete anchor01;
};
Symbol 1069 MovieClip [mc_screen_level_03_9_3] Frame 1
var plataform01 = new clsPlatformFall(this, 175, 70, "mc_plataform_mask_fall_small", 30, 80, 20);
var plataform02 = new clsPlatformFall(this, 190, 265, "mc_plataform_mask_fall_small", 30, 80, 20);
var plataform03 = new clsPlatformFall(this, 290, 165, "mc_plataform_mask_fall_small", 30, 80, 20);
var enemy1 = new clsEnemyAmphibian(this, "mc_enemy_frog02", 60, 310, 1);
var enemy2 = new clsEnemyAmphibian(this, "mc_enemy_frog02", 470, 115, 1);
this.onEnterFrame = function () {
plataform01.update();
plataform02.update();
plataform03.update();
enemy1.update();
enemy2.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
if (enemy2.state == _global.ST_KILL) {
delete enemy2;
}
};
this.onUnload = function () {
plataform01.free();
plataform02.free();
plataform03.free();
enemy1.free();
enemy2.free();
delete enemy1;
delete enemy2;
delete plataform01;
delete plataform02;
delete plataform03;
};
Symbol 1075 MovieClip [mc_screen_level_03_8_3] Frame 1
var enemy1 = new clsEnemyAmphibian(this, "mc_enemy_frog02", 330, 120, 1);
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 80, 220);
this.onEnterFrame = function () {
enemy1.update();
bonus1.update();
if (bonus1.state == _global.ST.KILL) {
delete bonus1;
}
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
bonus1.free();
delete bonus1;
delete enemy1;
};
Symbol 1078 MovieClip [mc_screen_level_03_8_1] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 260, 100);
this.onUnload = function () {
anchor01.free();
delete anchor01;
};
Symbol 1079 MovieClip [mc_screen_level_03_9_1] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 40, 150);
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 300, 300);
var anchor03 = new clsAerialAnchor(this, "mc_aerial_anchor", 575, 150);
var anchor04 = new clsAerialAnchor(this, "mc_aerial_anchor", 40, 380);
this.onUnload = function () {
anchor01.free();
anchor02.free();
anchor03.free();
anchor04.free();
delete anchor01;
delete anchor04;
delete anchor02;
delete anchor03;
};
Symbol 1080 MovieClip [mc_screen_level_03_9_2] Frame 1
Symbol 1081 MovieClip [mc_screen_level_03_8_2] Frame 1
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 400, 200);
this.onUnload = function () {
anchor02.free();
delete anchor02;
};
Symbol 1083 MovieClip [mc_screen_level_03_7_3] Frame 1
var tramps01 = new clsEnemyToxicGas(this, "mc_toxic_gases", 100, 320, 4);
var tramps02 = new clsEnemyToxicGas(this, "mc_toxic_gases", 300, 320, 3);
var tramps03 = new clsEnemyToxicGas(this, "mc_toxic_gases", 500, 320, 5);
this.onEnterFrame = function () {
tramps01.update();
tramps02.update();
tramps03.update();
};
this.onUnload = function () {
tramps01.free();
tramps02.free();
tramps03.free();
delete tramps01;
delete tramps02;
delete tramps03;
};
Symbol 1085 MovieClip [mc_screen_level_03_7_1] Frame 1
var enemy1 = new clsEnemyAerial(this, "mc_enemy_bat02", 2, 1, 300, 210, 280, 108, 0);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1115 MovieClip Frame 1
this.onEnterFrame = function () {
if (!_global.pause) {
if (_global.activePlayer == _global.PLAYER_HEATBLAST) {
if (this.mc_collision_danger.hitTest(_global.player.mGpx.mc_ben.mc_collision) && (!_global.invincible)) {
_global.player.transformToBen();
_global.player.hit();
}
}
if (_global.alertPanelHeatBlast) {
return(undefined);
}
if (this.mc_collision_alert.hitTest(_global.player.mGpx)) {
_global.game.panelInstructions("mc_panel_alert_heatblast");
_global.alertPanelHeatBlast = true;
}
}
};
Symbol 1118 MovieClip [mc_screen_level_03_6_4] Frame 1
stop();
if (_global.level == 7) {
this.gotoAndStop(2);
}
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 550, 320);
this.onEnterFrame = function () {
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
};
this.onUnload = function () {
bonus1.free();
delete bonus1;
};
Symbol 1122 MovieClip [mc_screen_level_03_6_3] Frame 1
var enemy1 = new clsEnemyAmphibian(this, "mc_enemy_frog02", 300, 300, 1);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1129 MovieClip [mc_screen_level_03_19_1] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 350, 155);
this.onUnload = function () {
anchor01.free();
delete anchor01;
};
Symbol 1131 MovieClip [mc_screen_level_03_18_1] Frame 1
var enemy1 = new clsEnemyAerial(this, "mc_enemy_bat02", 2, 1, 300, 210, 280, 108, 0);
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 30, 160);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
anchor01.free();
delete enemy1;
delete anchor01;
};
Symbol 1132 MovieClip [mc_screen_level_03_17_1] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 200, 250);
this.onUnload = function () {
anchor01.free();
delete anchor01;
};
Symbol 1133 MovieClip [mc_screen_level_03_16_2] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 200, 200);
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 450, 40);
this.onUnload = function () {
anchor01.free();
anchor02.free();
delete anchor01;
delete anchor02;
};
Symbol 1140 MovieClip [mc_screen_level_03_16_3] Frame 1
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 80, 120);
var bonus2 = new clsBonus(this, "mc_bonus_health", 500, 120);
this.onEnterFrame = function () {
bonus1.update();
bonus2.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
if (bonus2.state == _global.ST_KILL) {
delete bonus2;
}
};
this.onUnload = function () {
bonus1.free();
bonus2.free();
delete bonus1;
delete bonus2;
};
Symbol 1144 MovieClip [mc_screen_level_03_17_3] Frame 1
var plataform01 = new clsPlatformFall(this, 260, 235, "mc_plataform_mask_fall_small", 25, 100, 20);
var plataform02 = new clsPlatformFall(this, 400, 270, "mc_plataform_mask_fall_small", 25, 100, 20);
this.onEnterFrame = function () {
plataform01.update();
plataform02.update();
};
this.onUnload = function () {
plataform01.free();
plataform02.free();
delete plataform01;
delete plataform02;
};
Symbol 1152 MovieClip Frame 1
mc_collision.onEnterFrame = function () {
if (_global.alertPanelWildmutt) {
return(undefined);
}
if (this.hitTest(_global.player.mGpx)) {
_global.game.panelInstructions("mc_panel_alert_willmutt");
_global.alertPanelWildmutt = true;
}
};
Symbol 1153 MovieClip [mc_screen_level_03_18_3] Frame 1
var plataform01 = new clsPlatformObject(this, 310, 250, "mc_plataform_elevador", _global.MOVE_VV, 1, 130, 90, 20);
this.onEnterFrame = function () {
plataform01.update();
};
this.onUnload = function () {
plataform01.free();
delete plataform01;
};
Symbol 1161 MovieClip [mc_screen_level_03_19_3] Frame 1
var mine1 = new clsEnemyMine(this, "mc_mine", 90, 130);
var mine2 = new clsEnemyMine(this, "mc_mine", 220, 130);
var mine3 = new clsEnemyMine(this, "mc_mine", 260, 130);
var mine4 = new clsEnemyMine(this, "mc_mine", 510, 130);
var mine5 = new clsEnemyMine(this, "mc_mine", 380, 130);
var mine6 = new clsEnemyMine(this, "mc_mine", 550, 130);
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 450, 125);
this.onEnterFrame = function () {
mine1.update();
mine2.update();
mine3.update();
mine4.update();
mine5.update();
mine6.update();
bonus1.update();
if (bonus1.state == _global.ST.KILL) {
delete bonus1;
}
if (mine1.state == _global.ST_KILL) {
delete mine1;
}
if (mine6.state == _global.ST_KILL) {
delete mine6;
}
if (mine5.state == _global.ST_KILL) {
delete mine5;
}
if (mine2.state == _global.ST_KILL) {
delete mine2;
}
if (mine3.state == _global.ST_KILL) {
delete mine3;
}
if (mine4.state == _global.ST_KILL) {
delete mine4;
}
};
this.onUnload = function () {
mine1.free();
mine2.free();
mine3.free();
mine4.free();
mine5.free();
mine6.free();
bonus1.free();
delete bonus1;
delete mine1;
delete mine6;
delete mine5;
delete mine2;
delete mine3;
delete mine4;
};
Symbol 1166 MovieClip [mc_screen_level_03_20_3] Frame 1
var mine1 = new clsEnemyMine(this, "mc_mine", 80, 130);
var mine2 = new clsEnemyMine(this, "mc_mine", 120, 130);
var mine3 = new clsEnemyMine(this, "mc_mine", 255, 130);
var mine4 = new clsEnemyMine(this, "mc_mine", 370, 130);
var mine5 = new clsEnemyMine(this, "mc_mine", 410, 130);
var mine6 = new clsEnemyMine(this, "mc_mine", 570, 130);
var bonus1 = new clsBonus(this, "mc_bonus_health", 490, 125);
this.onEnterFrame = function () {
mine1.update();
mine2.update();
mine3.update();
mine4.update();
mine5.update();
mine6.update();
bonus1.update();
if (bonus1.state == _global.ST.KILL) {
delete bonus1;
}
if (mine1.state == _global.ST_KILL) {
delete mine1;
}
if (mine6.state == _global.ST_KILL) {
delete mine6;
}
if (mine5.state == _global.ST_KILL) {
delete mine5;
}
if (mine2.state == _global.ST_KILL) {
delete mine2;
}
if (mine3.state == _global.ST_KILL) {
delete mine3;
}
if (mine4.state == _global.ST_KILL) {
delete mine4;
}
};
this.onUnload = function () {
mine1.free();
mine2.free();
mine3.free();
mine4.free();
mine5.free();
mine6.free();
bonus1.free();
delete bonus1;
delete mine1;
delete mine6;
delete mine5;
delete mine2;
delete mine3;
delete mine4;
};
Symbol 1181 MovieClip [mc_screen_level_03_16_4] Frame 1
stop();
if (_global.level == 7) {
this.gotoAndStop(2);
}
var enemy01 = new clsEnemyPirana(this, "mc_enemy_fish04", 250, 300, 1, 0);
var enemy02 = new clsEnemyPirana(this, "mc_enemy_fish04", 550, 225, 1, 1);
this.onEnterFrame = function () {
enemy01.update();
enemy02.update();
if (enemy01.state == _global.ST_KILL) {
delete enemy01;
}
if (enemy02.state == _global.ST_KILL) {
delete enemy02;
}
};
this.onUnload = function () {
enemy01.free();
enemy02.free();
delete enemy01;
delete enemy02;
};
Symbol 1187 MovieClip [mc_screen_level_03_17_4] Frame 1
var enemy01 = new clsEnemyPirana(this, "mc_enemy_fish04", 245, 115, 1, 0);
this.onEnterFrame = function () {
enemy01.update();
if (enemy01.state == _global.ST_KILL) {
delete enemy01;
}
};
this.onUnload = function () {
enemy01.free();
delete enemy01;
};
Symbol 1195 MovieClip [mc_screen_level_03_19_4] Frame 1
var plataform01 = new clsPlatformFall(this, 65, 180, "mc_plataform_mask_fall_small", 30, 80, 10);
var plataform02 = new clsPlatformFall(this, 150, 270, "mc_plataform_mask_fall_small", 30, 80, 10);
var enemy1 = new clsEnemyHorizontal(this, "mc_enemy_hamsters02", 400, 320, 1, 1, 150);
this.onEnterFrame = function () {
plataform01.update();
plataform02.update();
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
plataform01.free();
plataform02.free();
enemy1.free();
delete enemy1;
delete plataform01;
delete plataform02;
};
Symbol 1199 MovieClip [mc_screen_level_03_20_4] Frame 1
var plataform01 = new clsPlatformFall(this, 440, 175, "mc_plataform_mask_fall_small", 30, 80, 10);
var plataform02 = new clsPlatformFall(this, 360, 270, "mc_plataform_mask_fall_small", 30, 80, 10);
var enemy1 = new clsEnemyHorizontal(this, "mc_enemy_hamsters02", 150, 320, 1, 1, 125);
this.onEnterFrame = function () {
plataform01.update();
plataform02.update();
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
plataform01.free();
plataform02.free();
enemy1.free();
delete enemy1;
delete plataform01;
delete plataform02;
};
Symbol 1200 MovieClip [mc_screen_level_03_17_2] Frame 1
Symbol 1202 MovieClip [mc_screen_level_03_20_1] Frame 1
var enemy1 = new clsEnemyAerial(this, "mc_enemy_bird03", 2, 1, 300, 210, 280, 108, 0);
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 135, 160);
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 400, 308);
this.onEnterFrame = function () {
enemy1.update();
bonus1.update();
if (bonus1.state == _global.ST.KILL) {
delete bonus1;
}
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
anchor02.free();
bonus1.free();
delete bonus1;
delete anchor02;
delete enemy1;
};
Symbol 1211 MovieClip [mc_screen_level_03_21_3] Frame 1
var plataform01 = new clsPlatformObject(this, 400, 270, "mc_plataform_elevador", _global.MOVE_VV, 1, 150, 90, 20);
var mine1 = new clsEnemyMine(this, "mc_mine", 120, 130);
var mine2 = new clsEnemyMine(this, "mc_mine", 160, 130);
var enemy1 = new clsEnemyAmphibian(this, "mc_enemy_frog02", 550, 110, 1);
this.onEnterFrame = function () {
plataform01.update();
mine1.update();
mine2.update();
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
if (mine1.state == _global.ST_KILL) {
delete mine1;
}
if (mine2.state == _global.ST_KILL) {
delete mine2;
}
};
this.onUnload = function () {
plataform01.free();
mine1.free();
mine2.free();
enemy1.free();
delete enemy1;
delete mine1;
delete mine2;
delete plataform01;
};
Symbol 1215 MovieClip [mc_screen_level_03_22_3] Frame 1
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 150, 125);
var enemy01 = new clsEnemyPirana(this, "mc_enemy_fish04", 545, 215, 1, 0);
var enemy02 = new clsEnemyPirana(this, "mc_enemy_fish04", 350, 215, 1, 1);
this.onEnterFrame = function () {
enemy01.update();
enemy02.update();
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
if (enemy01.state == _global.ST_KILL) {
delete enemy01;
}
if (enemy02.state == _global.ST_KILL) {
delete enemy02;
}
};
this.onUnload = function () {
enemy01.free();
enemy02.free();
bonus1.free();
delete bonus1;
delete enemy01;
delete enemy02;
};
Symbol 1236 MovieClip [mc_screen_level_03_23_1] Frame 1
Symbol 1237 MovieClip [mc_screen_level_03_23_2] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 200, 100);
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 450, 250);
this.onUnload = function () {
anchor01.free();
anchor02.free();
delete anchor01;
delete anchor02;
};
Symbol 1241 MovieClip [mc_screen_level_03_23_3] Frame 1
var plataform01 = new clsPlatformFall(this, 190, 150, "mc_plataform_mask_fall_small", 30, 80, 10);
var plataform02 = new clsPlatformFall(this, 310, 150, "mc_plataform_mask_fall_small", 30, 80, 10);
var plataform03 = new clsPlatformFall(this, 422, 150, "mc_plataform_mask_fall_small", 30, 80, 10);
var bonus1 = new clsBonus(this, "mc_bonus_health", 560, 125);
this.onEnterFrame = function () {
plataform01.update();
plataform02.update();
plataform03.update();
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
};
this.onUnload = function () {
plataform01.free();
plataform02.free();
plataform03.free();
bonus1.free();
delete bonus1;
delete plataform01;
delete plataform02;
delete plataform03;
};
Symbol 1242 MovieClip [mc_screen_level_03_22_2] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 120, 300);
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 370, 100);
this.onUnload = function () {
anchor01.free();
anchor02.free();
delete anchor01;
delete anchor02;
};
Symbol 1244 MovieClip [mc_screen_level_03_22_1] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 400, 160);
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 570, 350);
this.onUnload = function () {
anchor01.free();
anchor02.free();
delete anchor01;
delete anchor02;
};
Symbol 1246 MovieClip [mc_screen_level_03_21_1] Frame 1
var enemy1 = new clsEnemyAerial(this, "mc_enemy_bird03", 2, 1, 300, 210, 280, 108, 0);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1255 MovieClip [mc_screen_level_03_24_2] Frame 1
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 120, 120);
var enemy1 = new clsEnemyAmphibian(this, "mc_enemy_frog02", 300, 315, 1);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
anchor02.free();
delete anchor02;
delete enemy1;
};
Symbol 1256 MovieClip [mc_screen_level_03_15_1] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 50, 170);
var anchor03 = new clsAerialAnchor(this, "mc_aerial_anchor", 280, 330);
this.onUnload = function () {
anchor01.free();
anchor03.free();
delete anchor01;
delete anchor03;
};
Symbol 1258 MovieClip [mc_screen_level_03_14_1] Frame 1
var enemy1 = new clsEnemyAerial(this, "mc_enemy_bat02", 2, 1, 300, 210, 280, 108, 0);
this.onEnterFrame = function () {
enemy1.update();
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1261 MovieClip [mc_screen_level_03_13_1] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 30, 120);
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 300, 190);
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 500, 307);
this.onEnterFrame = function () {
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
};
this.onUnload = function () {
anchor01.free();
anchor02.free();
bonus1.free();
delete bonus1;
delete anchor01;
delete anchor02;
};
Symbol 1266 MovieClip [mc_screen_level_03_13_3] Frame 1
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 40, 125);
var mine1 = new clsEnemyMine(this, "mc_mine", 235, 330);
var mine2 = new clsEnemyMine(this, "mc_mine", 360, 330);
var mine3 = new clsEnemyMine(this, "mc_mine", 400, 330);
var mine4 = new clsEnemyMine(this, "mc_mine", 560, 330);
this.onEnterFrame = function () {
mine1.update();
mine2.update();
mine3.update();
mine4.update();
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
if (mine1.state == _global.ST_KILL) {
delete mine1;
}
if (mine2.state == _global.ST_KILL) {
delete mine2;
}
if (mine3.state == _global.ST_KILL) {
delete mine3;
}
if (mine4.state == _global.ST_KILL) {
delete mine4;
}
};
this.onUnload = function () {
mine1.free();
mine2.free();
mine3.free();
mine4.free();
bonus1.free();
delete bonus1;
delete mine1;
delete mine2;
delete mine3;
delete mine4;
};
Symbol 1268 MovieClip [mc_screen_level_03_14_3] Frame 1
var enemy1 = new clsEnemyAmphibian(this, "mc_enemy_frog02", 200, 310, 1);
var enemy2 = new clsEnemyAmphibian(this, "mc_enemy_frog02", 425, 310, 1);
var mine1 = new clsEnemyMine(this, "mc_mine", 90, 330);
var mine2 = new clsEnemyMine(this, "mc_mine", 300, 330);
var mine3 = new clsEnemyMine(this, "mc_mine", 340, 330);
var mine4 = new clsEnemyMine(this, "mc_mine", 540, 330);
this.onEnterFrame = function () {
mine1.update();
mine2.update();
mine3.update();
mine4.update();
enemy1.update();
enemy2.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
if (enemy2.state == _global.ST_KILL) {
delete enemy2;
}
if (mine1.state == _global.ST_KILL) {
delete mine1;
}
if (mine2.state == _global.ST_KILL) {
delete mine2;
}
if (mine3.state == _global.ST_KILL) {
delete mine3;
}
if (mine4.state == _global.ST_KILL) {
delete mine4;
}
};
this.onUnload = function () {
mine1.free();
mine2.free();
mine3.free();
mine4.free();
enemy1.free();
enemy2.free();
delete enemy1;
delete enemy2;
delete mine1;
delete mine2;
delete mine3;
delete mine4;
};
Symbol 1273 MovieClip [mc_screen_level_03_15_3] Frame 1
var enemy1 = new clsEnemyAerial(this, "mc_enemy_bat02", 2, 1, 225, 190, 200, 130, 0);
var mine1 = new clsEnemyMine(this, "mc_mine", 50, 330);
var mine2 = new clsEnemyMine(this, "mc_mine", 90, 330);
var mine3 = new clsEnemyMine(this, "mc_mine", 220, 330);
var mine4 = new clsEnemyMine(this, "mc_mine", 340, 330);
var mine5 = new clsEnemyMine(this, "mc_mine", 380, 330);
this.onEnterFrame = function () {
mine1.update();
mine2.update();
mine3.update();
mine4.update();
mine5.update();
enemy1.update();
if (mine1.state == _global.ST_KILL) {
delete mine1;
}
if (mine5.state == _global.ST_KILL) {
delete mine5;
}
if (mine2.state == _global.ST_KILL) {
delete mine2;
}
if (mine3.state == _global.ST_KILL) {
delete mine3;
}
if (mine4.state == _global.ST_KILL) {
delete mine4;
}
};
this.onUnload = function () {
mine1.free();
mine2.free();
mine3.free();
mine4.free();
mine5.free();
enemy1.free();
delete enemy1;
delete mine1;
delete mine5;
delete mine2;
delete mine3;
delete mine4;
};
Symbol 1277 MovieClip [mc_screen_level_03_13_4] Frame 1
var plataform01 = new clsPlatformObject(this, 400, 270, "mc_plataform_elevador", _global.MOVE_HH, 4, 130, 90, 20);
var enemy1 = new clsEnemyAmphibian(this, "mc_enemy_frog02", 110, 310, 1);
this.onEnterFrame = function () {
plataform01.update();
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
plataform01.free();
enemy1.free();
delete enemy1;
delete plataform01;
};
Symbol 1281 MovieClip [mc_screen_level_03_14_4] Frame 1
var plataform01 = new clsPlatformObject(this, 400, 270, "mc_plataform_elevador", _global.MOVE_HH, 4, 125, 90, 20);
var bonus1 = new clsBonus(this, "mc_bonus_health", 150, 320);
this.onEnterFrame = function () {
plataform01.update();
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
};
this.onUnload = function () {
plataform01.free();
bonus1.free();
delete bonus1;
delete plataform01;
};
Symbol 1286 MovieClip [mc_screen_level_03_15_4] Frame 1
var plataform01 = new clsPlatformObject(this, 350, 270, "mc_plataform_elevador", _global.MOVE_HH, 4, 97, 90, 20);
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 550, 320);
this.onEnterFrame = function () {
plataform01.update();
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
};
this.onUnload = function () {
plataform01.free();
bonus1.free();
delete plataform01;
delete bonus1;
};
Symbol 1288 MovieClip [mc_screen_level_03_15_2] Frame 1
var anchor01 = newclsAerialAnchor(this, "mc_aerial_anchor", 490, 130);
this.onUnload = function () {
anchor01.free();
delete anchor01;
};
Symbol 1291 MovieClip [mc_screen_level_03_12_3] Frame 1
var plataform01 = new clsPlatformFall(this, 530, 140, "mc_plataform_mask_fall_small", 30, 80, 10);
var plataform02 = new clsPlatformFall(this, 430, 185, "mc_plataform_mask_fall_small", 30, 80, 10);
var plataform03 = new clsPlatformFall(this, 305, 220, "mc_plataform_mask_fall_small", 30, 80, 10);
var plataform04 = new clsPlatformFall(this, 180, 260, "mc_plataform_mask_fall_small", 30, 80, 10);
this.onEnterFrame = function () {
plataform01.update();
plataform02.update();
plataform03.update();
plataform04.update();
};
this.onUnload = function () {
plataform01.free();
plataform02.free();
plataform03.free();
plataform04.free();
delete plataform01;
delete plataform04;
delete plataform02;
delete plataform03;
};
Symbol 1295 MovieClip [mc_screen_level_03_11_3] Frame 1
var enemy2 = new clsEnemyAquatic(this, "mc_enemy_fish05", 250, 370, 2, 1, 200, 80, 260);
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 40, 280);
var bonus2 = new clsBonus(this, "mc_bonus_health", 550, 280);
this.onEnterFrame = function () {
enemy2.update();
bonus1.update();
bonus2.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
if (bonus2.state == _global.ST_KILL) {
delete bonus2;
}
if (enemy2.state == _global.ST_KILL) {
delete enemy2;
}
};
this.onUnload = function () {
enemy2.free();
bonus1.free();
bonus2.free();
delete bonus1;
delete enemy2;
delete bonus2;
};
Symbol 1298 MovieClip [mc_screen_level_03_12_4] Frame 1
var plataform01 = new clsPlatformFall(this, 360, 160, "mc_plataform_mask_fall_small", 30, 80, 10);
var plataform02 = new clsPlatformFall(this, 445, 240, "mc_plataform_mask_fall_small", 30, 80, 10);
var plataform03 = new clsPlatformFall(this, 540, 300, "mc_plataform_mask_fall_small", 30, 80, 10);
this.onEnterFrame = function () {
plataform01.update();
plataform02.update();
plataform03.update();
};
this.onUnload = function () {
plataform01.free();
plataform02.free();
plataform03.free();
delete plataform01;
delete plataform02;
delete plataform03;
};
Symbol 1300 MovieClip [mc_screen_level_03_11_1] Frame 1
var enemy1 = new clsEnemyAerial(this, "mc_enemy_bird03", 2, 1, 300, 210, 280, 108, 0);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1303 MovieClip [mc_screen_level_03_12_1] Frame 1
var enemy1 = new clsEnemyAerial(this, "mc_enemy_bird03", 2, 1, 300, 210, 280, 108, 0);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1310 MovieClip [mc_limit_right_lv02] Frame 1
#initclip 114
Object.registerClass("mc_limit_right_lv02", clsLimitRight);
#endinitclip
Symbol 1311 MovieClip [mc_screen_level_02_21_3] Frame 1
var enemy1 = new clsEnemyAerial(this, "mc_enemy_bat02", 2, 1, 200, 65, 150, 170, 1);
var mine1 = new clsEnemyMine(this, "mc_mine", 90, 230);
var mine2 = new clsEnemyMine(this, "mc_mine", 130, 230);
var mine3 = new clsEnemyMine(this, "mc_mine", 250, 230);
var mine4 = new clsEnemyMine(this, "mc_mine", 375, 230);
var bonus1 = new clsBonus(this, "mc_bonus_health", 30, 225);
this.onEnterFrame = function () {
enemy1.update();
mine1.update();
mine2.update();
mine3.update();
mine4.update();
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
if (mine1.state == _global.ST_KILL) {
delete mine1;
}
if (mine2.state == _global.ST_KILL) {
delete mine2;
}
if (mine3.state == _global.ST_KILL) {
delete mine3;
}
if (mine4.state == _global.ST_KILL) {
delete mine4;
}
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
mine1.free();
mine2.free();
mine3.free();
mine4.free();
bonus1.free();
delete bonus1;
delete mine1;
delete mine2;
delete mine3;
delete mine4;
delete enemy1;
};
Symbol 1317 MovieClip [mc_limit_left_lv02] Frame 1
#initclip 115
Object.registerClass("mc_limit_left_lv02", clsLimitLeft);
#endinitclip
Symbol 1318 MovieClip [mc_screen_level_02_22_3] Frame 1
var enemy1 = new clsEnemyHorWait(this, "mc_enemy_worm02", 325, 25, 1, 1, 200, 300);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1323 MovieClip [mc_screen_level_02_24_3] Frame 1
var plataform01 = new clsPlatformFall(this, 95, 235, "mc_plataform_mask_fall_big", 30, 120, 20);
this.onEnterFrame = function () {
plataform01.update();
};
this.onUnload = function () {
plataform01.free();
delete plataform01;
};
Symbol 1327 MovieClip [mc_danger_lv02] Frame 1
#initclip 116
Object.registerClass("mc_danger_lv02", clsCollisionDangerFloor);
#endinitclip
Symbol 1331 MovieClip [mc_screen_level_02_21_4] Frame 1
stop();
if (_global.level == 4) {
this.gotoAndStop(2);
}
var plataform01 = new clsPlatformObject(this, 235, 240, "mc_plataform_elevador", _global.MOVE_HH, 2, 95, 100, 20);
this.onEnterFrame = function () {
plataform01.update();
};
this.onUnload = function () {
plataform01.free();
delete plataform01;
};
Symbol 1336 MovieClip [mc_screen_level_02_22_4] Frame 1
var enemy1 = new clsEnemyHorWait(this, "mc_enemy_worm02", 420, 130, 1, 1, 140, 200);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1346 MovieClip [mc_screen_level_02_23_4] Frame 1
var enemy1 = new clsEnemyPirana(this, "mc_enemy_fish04", 355, 205, 1, 0);
var enemy2 = new clsEnemyPirana(this, "mc_enemy_fish04", 150, 205, 1, 2);
this.onEnterFrame = function () {
enemy1.update();
enemy2.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
if (enemy2.state == _global.ST_KILL) {
delete enemy2;
}
};
this.onUnload = function () {
enemy1.free();
enemy2.free();
delete enemy1;
delete enemy2;
};
Symbol 1348 MovieClip [mc_screen_level_02_24_4] Frame 1
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 180, 30);
this.onEnterFrame = function () {
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
};
this.onUnload = function () {
bonus1.free();
delete bonus1;
};
Symbol 1350 MovieClip [mc_screen_level_02_23_2] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 200, 120);
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 440, 305);
this.onUnload = function () {
anchor01.free();
anchor02.free();
delete anchor01;
delete anchor02;
};
Symbol 1353 MovieClip [mc_screen_level_02_22_2] Frame 1
Symbol 1360 MovieClip [mc_screen_level_02_23_3] Frame 1
var plataform01 = new clsPlatformFall(this, 210, 60, "mc_plataform_mask_fall_small", 30, 80, 20);
this.onEnterFrame = function () {
plataform01.update();
};
this.onUnload = function () {
plataform01.free();
delete plataform01;
};
Symbol 1369 MovieClip [mc_screen_level_02_22_1] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 260, 140);
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 550, 370);
this.onUnload = function () {
anchor01.free();
anchor02.free();
delete anchor01;
delete anchor02;
};
Symbol 1371 MovieClip [mc_screen_level_02_21_1] Frame 1
var enemy1 = new clsEnemyAerial(this, "mc_enemy_bat02", 2, 1, 300, 200, 250, 100, 1);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1374 MovieClip [mc_screen_level_02_20_1] Frame 1
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 230, 140);
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 475, 310);
this.onEnterFrame = function () {
bonus1.update();
if (bonus1.state == _global.ST.KILL) {
delete bonus1;
}
};
this.onUnload = function () {
bonus1.free();
anchor02.free();
delete anchor02;
delete bonus1;
};
Symbol 1378 MovieClip [mc_screen_level_02_19_1] Frame 1
var enemy1 = new clsEnemyAerial(this, "mc_enemy_bat02", 2, 1, 300, 200, 250, 100, 0);
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 575, 170);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
anchor01.free();
delete anchor01;
delete enemy1;
};
Symbol 1380 MovieClip [mc_screen_level_02_18_1] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 530, 140);
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 300, 330);
this.onUnload = function () {
anchor01.free();
anchor02.free();
delete anchor01;
delete anchor02;
};
Symbol 1392 MovieClip [mc_screen_level_02_16_3] Frame 1
Symbol 1396 MovieClip [mc_screen_level_02_17_3] Frame 1
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 75, 220);
var tramps01 = new clsEnemyToxicGas(this, "mc_toxic_gases", 300, 120, 4);
var tramps02 = new clsEnemyToxicGas(this, "mc_toxic_gases", 500, 120, 3);
this.onEnterFrame = function () {
bonus1.update();
tramps01.update();
tramps02.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
};
this.onUnload = function () {
bonus1.free();
tramps01.free();
tramps02.free();
delete bonus1;
delete tramps01;
delete tramps02;
};
Symbol 1399 MovieClip [mc_screen_level_02_18_3] Frame 1
var tramps01 = new clsEnemyToxicGas(this, "mc_toxic_gases", 100, 120, 4);
var tramps02 = new clsEnemyToxicGas(this, "mc_toxic_gases", 300, 120, 3);
var tramps03 = new clsEnemyToxicGas(this, "mc_toxic_gases", 500, 120, 5);
this.onEnterFrame = function () {
tramps01.update();
tramps02.update();
tramps03.update();
};
this.onUnload = function () {
tramps01.free();
tramps02.free();
tramps03.free();
delete tramps01;
delete tramps02;
delete tramps03;
};
Symbol 1406 MovieClip [mc_screen_level_02_19_3] Frame 1
var plataform01 = new clsPlatformFall(this, 325, 133, "mc_plataform_mask_fall_small", 30, 90, 20);
var bonus1 = new clsBonus(this, "mc_bonus_health", 505, 325);
var tramps01 = new clsEnemyToxicGas(this, "mc_toxic_gases", 57, 120, 4);
this.onEnterFrame = function () {
plataform01.update();
bonus1.update();
tramps01.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
};
this.onUnload = function () {
plataform01.free();
bonus1.free();
tramps01.free();
delete tramps01;
delete bonus1;
delete plataform01;
};
Symbol 1411 MovieClip [mc_screen_level_02_20_3] Frame 1
var enemy1 = new clsEnemyAerial(this, "mc_enemy_bird03", 2, 1, 350, 100, 200, 110, 1);
var mine1 = new clsEnemyMine(this, "mc_mine", 145, 230);
var mine2 = new clsEnemyMine(this, "mc_mine", 235, 230);
var mine3 = new clsEnemyMine(this, "mc_mine", 365, 230);
var mine4 = new clsEnemyMine(this, "mc_mine", 510, 230);
var mine5 = new clsEnemyMine(this, "mc_mine", 550, 230);
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 445, 225);
this.onEnterFrame = function () {
enemy1.update();
mine1.update();
mine2.update();
mine3.update();
mine4.update();
mine5.update();
bonus1.update();
if (bonus1.state == _global.ST.KILL) {
delete bonus1;
}
if (mine1.state == _global.ST_KILL) {
delete mine1;
}
if (mine2.state == _global.ST_KILL) {
delete mine2;
}
if (mine3.state == _global.ST_KILL) {
delete mine3;
}
if (mine4.state == _global.ST_KILL) {
delete mine4;
}
if (mine5.state == _global.ST_KILL) {
delete mine5;
}
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
mine1.free();
mine2.free();
mine3.free();
mine4.free();
mine5.free();
bonus1.free();
delete bonus1;
delete mine1;
delete mine2;
delete mine3;
delete mine4;
delete mine5;
delete enemy1;
};
Symbol 1422 MovieClip [mc_screen_level_02_17_4] Frame 1
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 260, 220);
this.onEnterFrame = function () {
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
};
this.onUnload = function () {
bonus1.free();
delete bonus1;
};
Symbol 1426 MovieClip [mc_screen_level_02_18_4] Frame 1
var mine1 = new clsEnemyMine(this, "mc_mine", 20, 325);
var mine2 = new clsEnemyMine(this, "mc_mine", 60, 325);
var mine3 = new clsEnemyMine(this, "mc_mine", 200, 325);
var mine4 = new clsEnemyMine(this, "mc_mine", 340, 325);
var mine5 = new clsEnemyMine(this, "mc_mine", 380, 325);
var mine6 = new clsEnemyMine(this, "mc_mine", 570, 325);
this.onEnterFrame = function () {
mine1.update();
mine2.update();
mine3.update();
mine4.update();
mine5.update();
mine6.update();
if (mine1.state == _global.ST_KILL) {
delete mine1;
}
if (mine2.state == _global.ST_KILL) {
delete mine2;
}
if (mine3.state == _global.ST_KILL) {
delete mine3;
}
if (mine4.state == _global.ST_KILL) {
delete mine4;
}
if (mine5.state == _global.ST_KILL) {
delete mine5;
}
if (mine6.state == _global.ST_KILL) {
delete mine6;
}
};
this.onUnload = function () {
mine1.free();
mine2.free();
mine3.free();
mine4.free();
mine5.free();
mine6.free();
delete mine1;
delete mine2;
delete mine3;
delete mine4;
delete mine5;
delete mine6;
};
Symbol 1431 MovieClip [mc_screen_level_02_19_4] Frame 1
var plataform01 = new clsPlatformObject(this, 350, 220, "mc_plataform_elevador", _global.MOVE_VV, 3, 150, 100, 20);
var mine1 = new clsEnemyMine(this, "mc_mine", 20, 325);
var mine2 = new clsEnemyMine(this, "mc_mine", 60, 325);
var mine3 = new clsEnemyMine(this, "mc_mine", 200, 325);
var enemy1 = new clsEnemyHorWait(this, "mc_enemy_worm02", 485, 315, 1, 1, 50, 200);
this.onEnterFrame = function () {
plataform01.update();
mine1.update();
mine2.update();
mine3.update();
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
if (mine1.state == _global.ST_KILL) {
delete mine1;
}
if (mine2.state == _global.ST_KILL) {
delete mine2;
}
if (mine3.state == _global.ST_KILL) {
delete mine3;
}
};
this.onUnload = function () {
plataform01.free();
mine1.free();
mine2.free();
mine3.free();
enemy1.free();
delete enemy1;
delete mine1;
delete mine2;
delete mine3;
delete plataform01;
};
Symbol 1434 MovieClip [mc_screen_level_02_20_4] Frame 1
var plataform01 = new clsPlatformObject(this, 230, 240, "mc_plataform_elevador", _global.MOVE_HH, 2, 240, 100, 20);
var bonus1 = new clsBonus(this, "mc_bonus_health", 570, 325);
this.onEnterFrame = function () {
plataform01.update();
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
};
this.onUnload = function () {
plataform01.free();
bonus1.free();
delete bonus1;
delete plataform01;
};
Symbol 1439 MovieClip [mc_screen_level_02_17_2] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 320, 305);
this.onUnload = function () {
anchor01.free();
delete anchor01;
};
Symbol 1445 MovieClip [mc_screen_level_02_18_2] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 50, 150);
this.onUnload = function () {
anchor01.free();
delete anchor01;
};
Symbol 1449 MovieClip [mc_screen_level_02_7_3] Frame 1
var plataform01 = new clsPlatformFall(this, 225, 275, "mc_plataform_mask_fall_big", 30, 100, 20);
var plataform02 = new clsPlatformFall(this, 415, 275, "mc_plataform_mask_fall_big", 30, 100, 20);
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 560, 220);
this.onEnterFrame = function () {
plataform01.update();
plataform02.update();
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
};
this.onUnload = function () {
plataform01.free();
plataform02.free();
bonus1.free();
delete bonus1;
delete plataform01;
delete plataform02;
};
Symbol 1453 MovieClip [mc_screen_level_02_8_3] Frame 1
var enemy1 = new clsEnemyAerial(this, "mc_enemy_bat02", 2, 1, 350, 160, 220, 160, 1);
var mine1 = new clsEnemyMine(this, "mc_mine", 120, 325);
var mine2 = new clsEnemyMine(this, "mc_mine", 250, 325);
var mine3 = new clsEnemyMine(this, "mc_mine", 300, 325);
var mine4 = new clsEnemyMine(this, "mc_mine", 420, 325);
var mine5 = new clsEnemyMine(this, "mc_mine", 540, 325);
var mine6 = new clsEnemyMine(this, "mc_mine", 580, 325);
this.onEnterFrame = function () {
mine1.update();
mine2.update();
mine3.update();
mine4.update();
mine5.update();
mine6.update();
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
if (mine1.state == _global.ST_KILL) {
delete mine1;
}
if (mine2.state == _global.ST_KILL) {
delete mine2;
}
if (mine3.state == _global.ST_KILL) {
delete mine3;
}
if (mine4.state == _global.ST_KILL) {
delete mine4;
}
if (mine5.state == _global.ST_KILL) {
delete mine5;
}
if (mine6.state == _global.ST_KILL) {
delete mine6;
}
};
this.onUnload = function () {
mine1.free();
mine2.free();
mine3.free();
mine4.free();
mine5.free();
mine6.free();
enemy1.free();
delete enemy1;
delete mine1;
delete mine2;
delete mine3;
delete mine4;
delete mine5;
delete mine6;
};
Symbol 1456 MovieClip [mc_screen_level_02_9_3] Frame 1
var enemy1 = new clsEnemyAerial(this, "mc_enemy_bat02", 2, 1, 300, 200, 250, 100, 1);
var mine1 = new clsEnemyMine(this, "mc_mine", 90, 325);
var mine2 = new clsEnemyMine(this, "mc_mine", 200, 325);
var mine3 = new clsEnemyMine(this, "mc_mine", 240, 325);
var mine4 = new clsEnemyMine(this, "mc_mine", 360, 325);
var mine5 = new clsEnemyMine(this, "mc_mine", 450, 325);
var mine6 = new clsEnemyMine(this, "mc_mine", 490, 325);
var mine7 = new clsEnemyMine(this, "mc_mine", 580, 325);
this.onEnterFrame = function () {
mine1.update();
mine2.update();
mine3.update();
mine4.update();
mine5.update();
mine6.update();
mine7.update();
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
if (mine1.state == _global.ST_KILL) {
delete mine1;
}
if (mine2.state == _global.ST_KILL) {
delete mine2;
}
if (mine3.state == _global.ST_KILL) {
delete mine3;
}
if (mine4.state == _global.ST_KILL) {
delete mine4;
}
if (mine5.state == _global.ST_KILL) {
delete mine5;
}
if (mine6.state == _global.ST_KILL) {
delete mine6;
}
if (mine7.state == _global.ST_KILL) {
delete mine7;
}
};
this.onUnload = function () {
mine1.free();
mine2.free();
mine3.free();
mine4.free();
mine5.free();
mine6.free();
mine7.free();
enemy1.free();
delete enemy1;
delete mine1;
delete mine2;
delete mine3;
delete mine4;
delete mine5;
delete mine6;
delete mine7;
};
Symbol 1461 MovieClip [mc_screen_level_02_10_3] Frame 1
var plataform01 = new clsPlatformFall(this, 308, 205, "mc_plataform_mask_fall_small", 30, 80, 20);
var plataform02 = new clsPlatformFall(this, 420, 140, "mc_plataform_mask_fall_small", 30, 80, 20);
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 550, 65);
this.onEnterFrame = function () {
bonus1.update();
plataform01.update();
plataform02.update();
if (bonus1.state == _global.ST.KILL) {
delete bonus1;
}
};
this.onUnload = function () {
plataform01.free();
plataform02.free();
bonus1.free();
delete bonus1;
delete plataform01;
delete plataform02;
};
Symbol 1465 MovieClip [mc_screen_level_02_7_4] Frame 1
var plataform01 = new clsPlatformObject(this, 400, 220, "mc_plataform_elevador", _global.MOVE_VV, 1, 130, 80, 20);
this.onEnterFrame = function () {
plataform01.update();
};
this.onUnload = function () {
plataform01.free();
delete plataform01;
};
Symbol 1469 MovieClip [mc_screen_level_02_8_4] Frame 1
var enemy1 = new clsEnemyHorizontal(this, "mc_enemy_hamsters02", 300, 305, 2, 1, 270);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
plataform01.free();
delete enemy1;
};
Symbol 1473 MovieClip [mc_screen_level_02_9_4] Frame 1
var enemy1 = new clsEnemyHorizontal(this, "mc_enemy_hamsters02", 300, 305, 2, 1, 270);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1483 MovieClip [mc_screen_level_02_10_4] Frame 1
stop();
if (_global.level == 4) {
this.gotoAndStop(2);
}
var enemy1 = new clsEnemyHorizontal(this, "mc_enemy_hamsters02", 350, 305, 2, 1, 100);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1497 MovieClip [mc_screen_level_02_6_3] Frame 1
var plataform01 = new clsPlatformFall(this, 217, 235, "mc_plataform_mask_fall_small", 30, 90, 20);
var tramps01 = new clsEnemyToxicGas(this, "mc_toxic_gases", 55, 220, 4);
var tramps02 = new clsEnemyToxicGas(this, "mc_toxic_gases", 420, 220, 3);
this.onEnterFrame = function () {
plataform01.update();
tramps01.update();
tramps02.update();
};
this.onUnload = function () {
plataform01.free();
tramps01.free();
tramps02.free();
delete tramps01;
delete tramps02;
delete plataform01;
};
Symbol 1498 MovieClip [mc_screen_level_02_6_2] Frame 1
Symbol 1500 MovieClip [mc_screen_level_02_10_1] Frame 1
var enemy1 = new clsEnemyAerial(this, "mc_enemy_bird03", 2, 1, 300, 200, 250, 100, 0);
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 180, 130);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
anchor02.free();
delete anchor02;
delete enemy1;
};
Symbol 1502 MovieClip [mc_screen_level_02_9_1] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 400, 140);
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 270, 310);
this.onEnterFrame = function () {
bonus1.update();
if (bonus1.state == _global.ST.KILL) {
delete bonus1;
}
};
this.onUnload = function () {
bonus1.free();
anchor01.free();
delete anchor01;
delete bonus1;
};
Symbol 1505 MovieClip [mc_screen_level_02_8_1] Frame 1
var enemy1 = new clsEnemyAerial(this, "mc_enemy_bird03", 2, 1, 300, 200, 250, 100, 1);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1508 MovieClip [mc_screen_level_02_7_1] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 140, 140);
this.onUnload = function () {
anchor01.free();
delete anchor01;
};
Symbol 1509 MovieClip [mc_screen_level_02_6_1] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 150, 240);
var anchor03 = new clsAerialAnchor(this, "mc_aerial_anchor", 510, 240);
this.onUnload = function () {
anchor01.free();
anchor03.free();
delete anchor01;
delete anchor03;
};
Symbol 1513 MovieClip [mc_screen_level_02_4_3] Frame 1
var enemy2 = new clsEnemyAquatic(this, "mc_enemy_fish05", 240, 345, 2, 1, 210, 180, 260);
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 570, 215);
this.onEnterFrame = function () {
enemy2.update();
bonus1.update();
if (bonus1.state == _global.ST.KILL) {
delete bonus1;
}
if (enemy2.state == _global.ST_KILL) {
delete enemy2;
}
};
this.onUnload = function () {
bonus1.free();
enemy2.free();
delete bonus1;
delete enemy2;
};
Symbol 1522 MovieClip [mc_screen_level_02_1_3] Frame 1
Symbol 1533 MovieClip [mc_screen_level_02_5_3] Frame 1
var bonus1 = new clsBonus(this, "mc_bonus_health", 200, 125);
var tramps01 = new clsEnemyToxicGas(this, "mc_toxic_gases", 425, 220, 3);
this.onEnterFrame = function () {
tramps01.update();
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
};
this.onUnload = function () {
tramps01.free();
bonus1.free();
delete bonus1;
delete tramps01;
};
Symbol 1536 MovieClip [mc_screen_level_02_5_2] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 515, 45);
var anchor03 = new clsAerialAnchor(this, "mc_aerial_anchor", 330, 270);
this.onUnload = function () {
anchor01.free();
anchor03.free();
delete anchor01;
delete anchor03;
};
Symbol 1541 MovieClip [mc_screen_level_02_2_3] Frame 1
var enemy1 = new clsEnemyAerial(this, "mc_enemy_bat02", 2, 1, 300, 220, 250, 100, 1);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1543 MovieClip [mc_screen_level_02_2_1] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 350, 150);
var bonus1 = new clsBonus(this, "mc_bonus_health", 130, 310);
this.onEnterFrame = function () {
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
};
this.onUnload = function () {
anchor01.free();
bonus1.free();
delete bonus1;
delete anchor01;
};
Symbol 1550 MovieClip [mc_screen_level_02_3_3] Frame 1
var enemy2 = new clsEnemyAquatic(this, "mc_enemy_fish05", 360, 345, 2, 1, 200, 160, 260);
this.onEnterFrame = function () {
enemy2.update();
if (enemy2.state == _global.ST_KILL) {
delete enemy2;
}
};
this.onUnload = function () {
enemy2.free();
delete enemy2;
};
Symbol 1553 MovieClip [mc_screen_level_02_5_1] Frame 1
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 340, 140);
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 50, 310);
this.onEnterFrame = function () {
bonus1.update();
if (bonus1.state == _global.ST.KILL) {
delete bonus1;
}
};
this.onUnload = function () {
bonus1.free();
anchor02.free();
delete anchor02;
delete bonus1;
};
Symbol 1555 MovieClip [mc_screen_level_02_4_1] Frame 1
var enemy1 = new clsEnemyAerial(this, "mc_enemy_bird03", 2, 1, 300, 200, 250, 100, 0);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1557 MovieClip [mc_screen_level_02_3_1] Frame 1
var enemy1 = new clsEnemyAerial(this, "mc_enemy_bat02", 2, 1, 300, 200, 250, 100, 0);
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 90, 150);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
anchor01.free();
delete anchor01;
delete enemy1;
};
Symbol 1565 MovieClip [mc_screen_level_02_12_1] Frame 1
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 250, 360);
this.onUnload = function () {
anchor02.free();
delete anchor02;
};
Symbol 1568 MovieClip [mc_screen_level_02_11_1] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 470, 170);
this.onUnload = function () {
anchor01.free();
delete anchor01;
};
Symbol 1570 MovieClip [mc_screen_level_02_13_2] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 240, 315);
this.onUnload = function () {
anchor01.free();
delete anchor01;
};
Symbol 1574 MovieClip [mc_screen_level_02_12_3] Frame 1
var plataform01 = new clsPlatformFall(this, 215, 110, "mc_plataform_mask_fall_small", 30, 80, 20);
var plataform02 = new clsPlatformFall(this, 335, 145, "mc_plataform_mask_fall_small", 30, 80, 20);
this.onEnterFrame = function () {
plataform01.update();
plataform02.update();
};
this.onUnload = function () {
plataform01.free();
plataform02.free();
delete plataform01;
delete plataform02;
};
Symbol 1578 MovieClip [mc_screen_level_02_13_3] Frame 1
var plataform01 = new clsPlatformFall(this, 240, 140, "mc_plataform_mask_fall_small", 30, 80, 20);
var plataform02 = new clsPlatformFall(this, 110, 185, "mc_plataform_mask_fall_small", 30, 80, 20);
var enemy1 = new clsEnemyHorWait(this, "mc_enemy_worm02", 325, 320, 1, 1, 220, 200);
this.onEnterFrame = function () {
enemy1.update();
plataform01.update();
plataform02.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
plataform01.free();
plataform02.free();
delete plataform01;
delete plataform02;
delete enemy1;
};
Symbol 1584 MovieClip [mc_screen_level_02_14_3] Frame 1
var enemy1 = new clsEnemyAerial(this, "mc_enemy_bat02", 2, 1, 275, 190, 250, 120, 1);
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 580, 220);
this.onEnterFrame = function () {
enemy1.update();
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
bonus1.free();
delete bonus1;
delete enemy1;
};
Symbol 1589 MovieClip [mc_screen_level_02_15_3] Frame 1
var enemy1 = new clsEnemyAquatic(this, "mc_enemy_fish05", 150, 345, 2, 1, 110, 90, 260);
var enemy2 = new clsEnemyAquatic(this, "mc_enemy_fish05", 350, 345, 2, 1, 110, 90, 260);
var bonus1 = new clsBonus(this, "mc_bonus_health", 570, 220);
this.onEnterFrame = function () {
enemy1.update();
enemy2.update();
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
if (enemy2.state == _global.ST_KILL) {
delete enemy2;
}
};
this.onUnload = function () {
enemy1.free();
enemy2.free();
bonus1.free();
delete bonus1;
delete enemy1;
delete enemy2;
};
Symbol 1597 MovieClip [mc_screen_level_02_11_4] Frame 1
var enemy1 = new clsEnemyPirana(this, "mc_enemy_fish04", 145, 300, 1, 0);
var enemy2 = new clsEnemyPirana(this, "mc_enemy_fish04", 550, 180, 1, 2);
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 50, 215);
this.onEnterFrame = function () {
enemy1.update();
enemy2.update();
bonus1.update();
if (bonus1.state == _global.ST.KILL) {
delete bonus1;
}
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
if (enemy2.state == _global.ST_KILL) {
delete enemy2;
}
};
this.onUnload = function () {
enemy1.free();
enemy2.free();
bonus1.free();
delete bonus1;
delete enemy1;
delete enemy2;
};
Symbol 1603 MovieClip [mc_screen_level_02_12_4] Frame 1
var enemy1 = new clsEnemyPirana(this, "mc_enemy_fish04", 145, 115, 1, 3);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1614 MovieClip [mc_screen_level_02_12_2] Frame 1
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 560, 150);
this.onUnload = function () {
anchor02.free();
delete anchor02;
};
Symbol 1619 MovieClip [mc_screen_level_02_11_3] Frame 1
var plataform01 = new clsPlatformFall(this, 200, 90, "mc_plataform_mask_fall_small", 30, 80, 20);
var plataform02 = new clsPlatformFall(this, 350, 90, "mc_plataform_mask_fall_small", 30, 80, 20);
var bonus1 = new clsBonus(this, "mc_bonus_health", 40, 65);
this.onEnterFrame = function () {
bonus1.update();
plataform01.update();
plataform02.update();
if (bonus1.state == _global.ST.KILL) {
delete bonus1;
}
};
this.onUnload = function () {
plataform01.free();
plataform02.free();
bonus1.free();
delete bonus1;
delete plataform01;
delete plataform02;
};
Symbol 1624 MovieClip [mc_screen_level_01_22_2] Frame 1
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 100, 170);
var anchor03 = new clsAerialAnchor(this, "mc_aerial_anchor", 400, 320);
this.onUnload = function () {
anchor02.free();
anchor03.free();
delete anchor02;
delete anchor03;
};
Symbol 1626 MovieClip [mc_screen_level_01_23_2] Frame 1
Symbol 1628 MovieClip [mc_screen_level_01_21_2] Frame 1
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 350, 95);
this.onUnload = function () {
anchor02.free();
delete anchor02;
};
Symbol 1629 MovieClip [mc_screen_level_01_21_1] Frame 1
Symbol 1634 MovieClip [mc_screen_level_01_24_3] Frame 1
var enemy1 = new clsEnemyHorizontal(this, "mc_enemy_hamsters02", 225, 118, 2, 1, 160);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1637 MovieClip [mc_limit_right] Frame 1
#initclip 117
Object.registerClass("mc_limit_right", clsLimitRight);
#endinitclip
Symbol 1638 MovieClip [mc_limit_left] Frame 1
#initclip 118
Object.registerClass("mc_limit_left", clsLimitLeft);
#endinitclip
Symbol 1644 MovieClip [mc_screen_level_01_23_3] Frame 1
var bonus1 = newclsBonus(this, "mc_bonus_sphere", 250, 130);
this.onEnterFrame = function () {
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
};
this.onUnload = function () {
bonus1.free();
delete bonus1;
};
Symbol 1650 MovieClip [mc_screen_level_01_21_4] Frame 1
var enemy1 = new clsEnemyHorWait(this, "mc_enemy_worm02", 300, 325, 1, 1, 270, 200);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1654 MovieClip [mc_screen_level_01_21_3] Frame 1
var mine1 = new clsEnemyMine(this, "mc_mine", 110, 235);
var mine2 = new clsEnemyMine(this, "mc_mine", 150, 235);
var mine3 = new clsEnemyMine(this, "mc_mine", 300, 235);
var mine4 = new clsEnemyMine(this, "mc_mine", 430, 235);
var mine5 = new clsEnemyMine(this, "mc_mine", 470, 235);
var mine6 = new clsEnemyMine(this, "mc_mine", 575, 235);
this.onEnterFrame = function () {
mine1.update();
mine2.update();
mine3.update();
mine4.update();
mine5.update();
mine6.update();
if (mine1.state == _global.ST_KILL) {
delete mine1;
}
if (mine6.state == _global.ST_KILL) {
delete mine6;
}
if (mine5.state == _global.ST_KILL) {
delete mine5;
}
if (mine2.state == _global.ST_KILL) {
delete mine2;
}
if (mine3.state == _global.ST_KILL) {
delete mine3;
}
if (mine4.state == _global.ST_KILL) {
delete mine4;
}
};
this.onUnload = function () {
mine1.free();
mine2.free();
mine3.free();
mine4.free();
mine5.free();
mine6.free();
delete mine1;
delete mine6;
delete mine5;
delete mine2;
delete mine3;
delete mine4;
};
Symbol 1663 MovieClip [mc_screen_level_01_22_3] Frame 1
stop();
if (_global.level == 1) {
this.gotoAndStop(2);
}
var bonus1 = new clsBonus(this, "mc_bonus_health", 125, 130);
this.onEnterFrame = function () {
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
};
this.onUnload = function () {
bonus1.free();
delete bonus1;
};
Symbol 1668 MovieClip [mc_screen_level_01_22_4] Frame 1
var enemy1 = new clsEnemyHorizontal(this, "mc_enemy_bat02", 100, 300, 2, 1, 170);
var plataform01 = new clsPlatformFall(this, 420, 220, "mc_plataform_mask_fall_small", 30, 80, 10);
this.onEnterFrame = function () {
enemy1.update();
plataform01.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
plataform01.free();
delete enemy1;
delete plataform01;
};
Symbol 1669 MovieClip [mc_screen_level_01_10_2] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 210, 125);
this.onUnload = function () {
anchor01.free();
delete anchor01;
};
Symbol 1678 MovieClip [mc_screen_level_01_7_1] Frame 1
var anchor03 = new clsAerialAnchor(this, "mc_aerial_anchor", 205, 210);
this.onUnload = function () {
anchor01.free();
delete anchor01;
};
Symbol 1679 MovieClip [mc_screen_level_01_6_1] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 320, 220);
this.onUnload = function () {
anchor01.free();
delete anchor01;
};
Symbol 1682 MovieClip [mc_screen_level_01_9_2] Frame 1
var anchor03 = new clsAerialAnchor(this, "mc_aerial_anchor", 500, 280);
this.onUnload = function () {
anchor03.free();
delete anchor03;
};
Symbol 1687 MovieClip [mc_screen_level_01_8_2] Frame 1
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 300, 20);
this.onEnterFrame = function () {
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
};
this.onUnload = function () {
bonus1.free();
delete bonus1;
};
Symbol 1688 MovieClip [mc_screen_level_01_8_1] Frame 1
var enemy1 = new clsEnemyAerial(this, "mc_enemy_bird03", 3, 1, 300, 300, 270, 100, 0);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1689 MovieClip [mc_screen_level_01_9_1] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 280, 245);
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 520, 380);
this.onUnload = function () {
anchor01.free();
anchor02.free();
delete anchor01;
delete anchor02;
};
Symbol 1690 MovieClip [mc_screen_level_01_10_1] Frame 1
var anchor03 = new clsAerialAnchor(this, "mc_aerial_anchor", 440, 355);
this.onUnload = function () {
anchor03.free();
delete anchor03;
};
Symbol 1695 MovieClip [mc_screen_level_01_9_3] Frame 1
var enemy1 = new clsEnemyHorWait(this, "mc_enemy_worm02", 300, 320, 2, 1, 260, 250);
var plataform01 = new clsPlatformFall(this, 160, 180, "mc_plataform_mask_fall_small", 30, 80, 20);
var plataform02 = new clsPlatformFall(this, 69, 220, "mc_plataform_mask_fall_small", 30, 80, 20);
this.onEnterFrame = function () {
plataform01.update();
plataform02.update();
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
plataform01.free();
plataform02.free();
enemy1.free();
delete enemy1;
delete plataform01;
delete plataform02;
};
Symbol 1700 MovieClip [mc_screen_level_01_8_3] Frame 1
var tramps01 = new clsEnemyToxicGas(this, "mc_toxic_gases", 100, 315, 4);
var tramps02 = new clsEnemyToxicGas(this, "mc_toxic_gases", 280, 315, 3);
var tramps03 = new clsEnemyToxicGas(this, "mc_toxic_gases", 460, 315, 4);
this.onEnterFrame = function () {
tramps01.update();
tramps02.update();
tramps03.update();
};
this.onUnload = function () {
tramps01.free();
tramps02.free();
tramps03.free();
delete tramps01;
delete tramps02;
delete tramps03;
};
Symbol 1704 MovieClip [mc_screen_level_01_7_3] Frame 1
var plataform01 = new clsPlatformFall(this, 190, 350, "mc_plataform_mask_fall_small", 30, 80, 20);
var plataform02 = new clsPlatformFall(this, 305, 350, "mc_plataform_mask_fall_small", 30, 80, 20);
var tramps01 = new clsEnemyToxicGas(this, "mc_toxic_gases", 520, 315, 3);
this.onEnterFrame = function () {
plataform01.update();
plataform02.update();
tramps01.update();
};
this.onUnload = function () {
plataform01.free();
plataform02.free();
tramps01.free();
delete tramps01;
delete plataform01;
delete plataform02;
};
Symbol 1708 MovieClip [mc_screen_level_01_6_3] Frame 1
var plataform01 = new clsPlatformFall(this, 300, 350, "mc_plataform_mask_fall_small", 30, 80, 20);
var plataform02 = new clsPlatformFall(this, 170, 350, "mc_plataform_mask_fall_small", 30, 80, 20);
var plataform03 = new clsPlatformFall(this, 50, 350, "mc_plataform_mask_fall_small", 30, 80, 20);
this.onEnterFrame = function () {
plataform01.update();
plataform02.update();
plataform03.update();
};
this.onUnload = function () {
plataform01.free();
plataform02.free();
plataform03.free();
delete plataform01;
delete plataform02;
delete plataform03;
};
Symbol 1714 MovieClip [mc_screen_level_01_6_4] Frame 1
var enemy1 = new clsEnemyHorizontal(this, "mc_enemy_hamsters02", 175, 100, 2, 1, 150);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1720 MovieClip [mc_screen_level_01_8_4] Frame 1
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 320, 320);
this.onEnterFrame = function () {
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
};
this.onUnload = function () {
bonus1.free();
delete bonus1;
};
Symbol 1725 MovieClip [mc_screen_level_01_9_4] Frame 1
var enemy1 = new clsEnemyHorWait(this, "mc_enemy_worm02", 300, 320, 2, 1, 270, 200);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1730 MovieClip [mc_screen_level_01_10_4] Frame 1
var enemy1 = new clsEnemyHorWait(this, "mc_enemy_worm02", 185, 320, 1, 1, 145, 300);
var plataform01 = new clsPlatformObject(this, 450, 170, "mc_plataform_elevador", _global.MOVE_VV, 3, 150, 100, 20);
this.onEnterFrame = function () {
enemy1.update();
plataform01.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
plataform01.free();
enemy1.free();
delete enemy1;
delete plataform01;
};
Symbol 1734 MovieClip [mc_screen_level_01_10_3] Frame 1
var plataform01 = new clsPlatformFall(this, 410, 330, "mc_plataform_mask_fall_small", 30, 100, 20);
this.onEnterFrame = function () {
plataform01.update();
};
this.onUnload = function () {
plataform01.free();
delete plataform01;
};
Symbol 1739 MovieClip [mc_screen_level_01_4_1] Frame 1
var enemy1 = new clsEnemyAerial(this, "mc_enemy_bat01", 3, 1, 380, 300, 180, 100, 1);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1753 MovieClip [mc_screen_level_01_5_1] Frame 1
var enemy1 = new clsEnemyAerial(this, "mc_enemy_bird03", 3, 1, 300, 300, 270, 100, 0);
this.onEnterFrame = function () {
enemy1.update();
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1757 MovieClip [mc_screen_level_01_4_3] Frame 1
var plataform01 = new clsPlatformObject(this, 230, 130, "mc_plataform_elevador", _global.MOVE_VV, 3, 110, 100, 20);
var enemy1 = new clsEnemyHorizontal(this, "mc_enemy_hamsters02", 300, 314, 2, 1, 260);
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 50, 15);
this.onEnterFrame = function () {
plataform01.update();
enemy1.update();
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
plataform01.free();
enemy1.free();
bonus1.free();
delete bonus1;
delete enemy1;
delete plataform01;
};
Symbol 1762 MovieClip [mc_screen_level_01_3_3] Frame 1
var plataform01 = new clsPlatformFall(this, 330, 105, "mc_plataform_mask_fall_small", 40, 80, 20);
var plataform02 = new clsPlatformFall(this, 240, 170, "mc_plataform_mask_fall_small", 40, 80, 20);
var plataform03 = new clsPlatformFall(this, 145, 220, "mc_plataform_mask_fall_small", 40, 80, 20);
this.onEnterFrame = function () {
plataform01.update();
plataform02.update();
plataform03.update();
};
this.onUnload = function () {
plataform01.free();
plataform02.free();
plataform03.free();
delete plataform01;
delete plataform02;
delete plataform03;
};
Symbol 1768 MovieClip [mc_screen_level_01_2_3] Frame 1
var enemy1 = new clsEnemyHorizontal(this, "mc_enemy_hamsters02", 300, 314, 2, 1, 260);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1777 MovieClip [mc_screen_level_01_5_3] Frame 1
var plataform01 = new clsPlatformFall(this, 520, 350, "mc_plataform_mask_fall_small", 30, 80, 20);
var bonus1 = new clsBonus(this, "mc_bonus_health", 400, 320);
this.onEnterFrame = function () {
plataform01.update();
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
};
this.onUnload = function () {
bonus1.free();
plataform01.free();
delete plataform01;
delete bonus1;
};
Symbol 1780 MovieClip [mc_screen_level_01_5_4] Frame 1
Symbol 1783 MovieClip [mc_screen_level_01_20_2] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 50, 50);
this.onUnload = function () {
anchor01.free();
delete anchor01;
};
Symbol 1784 MovieClip [mc_screen_level_01_20_1] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 300, 300);
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 570, 355);
this.onUnload = function () {
anchor02.free();
anchor02.free();
delete anchor02;
delete anchor02;
};
Symbol 1785 MovieClip [mc_screen_level_01_19_2] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 450, 180);
var anchor03 = new clsAerialAnchor(this, "mc_aerial_anchor", 155, 335);
this.onUnload = function () {
anchor01.free();
anchor03.free();
delete anchor01;
delete anchor03;
};
Symbol 1798 MovieClip [mc_screen_level_01_16_3] Frame 1
Symbol 1808 MovieClip [mc_screen_level_01_18_3] Frame 1
Symbol 1812 MovieClip [mc_screen_level_01_17_3] Frame 1
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 500, 125);
this.onEnterFrame = function () {
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
};
this.onUnload = function () {
bonus1.free();
delete bonus1;
};
Symbol 1816 MovieClip [mc_screen_level_01_19_3] Frame 1
var plataform01 = new clsPlatformFall(this, 320, 160, "mc_plataform_mask_fall_small", 30, 80, 10);
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 500, 125);
this.onEnterFrame = function () {
plataform01.update();
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
};
this.onUnload = function () {
plataform01.free();
bonus1.free();
delete bonus1;
delete plataform01;
};
Symbol 1821 MovieClip [mc_screen_level_01_19_4] Frame 1
var plataform01 = new clsPlatformFall(this, 230, 220, "mc_plataform_mask_fall_small", 30, 80, 10);
this.onEnterFrame = function () {
plataform01.update();
};
this.onUnload = function () {
plataform01.free();
delete plataform01;
};
Symbol 1828 MovieClip [mc_screen_level_01_20_3] Frame 1
var mine1 = new clsEnemyMine(this, "mc_mine", 245, 235);
var mine2 = new clsEnemyMine(this, "mc_mine", 385, 235);
var mine3 = new clsEnemyMine(this, "mc_mine", 435, 235);
var mine4 = new clsEnemyMine(this, "mc_mine", 575, 235);
this.onEnterFrame = function () {
mine1.update();
mine2.update();
mine3.update();
mine4.update();
if (mine1.state == _global.ST_KILL) {
delete mine1;
}
if (mine2.state == _global.ST_KILL) {
delete mine2;
}
if (mine3.state == _global.ST_KILL) {
delete mine3;
}
if (mine4.state == _global.ST_KILL) {
delete mine4;
}
};
this.onUnload = function () {
mine1.free();
mine2.free();
mine3.free();
mine4.free();
delete mine1;
delete mine2;
delete mine3;
delete mine4;
};
Symbol 1832 MovieClip [mc_screen_level_01_20_4] Frame 1
var enemy1 = new clsEnemyHorWait(this, "mc_enemy_worm02", 300, 325, 1, 1, 250, 300);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1834 MovieClip [mc_screen_level_01_13_2] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 450, 50);
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 100, 50);
this.onUnload = function () {
anchor01.free();
anchor02.free();
delete anchor01;
delete anchor02;
};
Symbol 1835 MovieClip [mc_screen_level_01_14_2] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 110, 50);
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 290, 260);
this.onUnload = function () {
anchor01.free();
anchor02.free();
delete anchor01;
delete anchor02;
};
Symbol 1836 MovieClip [mc_screen_level_01_14_1] Frame 1
Symbol 1839 MovieClip [mc_screen_level_01_13_1] Frame 1
Symbol 1840 MovieClip [mc_screen_level_01_12_1] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 150, 360);
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 450, 360);
this.onUnload = function () {
anchor01.free();
anchor02.free();
delete anchor01;
delete anchor02;
};
Symbol 1842 MovieClip [mc_screen_level_01_11_2] Frame 1
var anchor01 = new clsAerialAnchor(this, "mc_aerial_anchor", 110, 40);
var anchor02 = new clsAerialAnchor(this, "mc_aerial_anchor", 450, 45);
this.onUnload = function () {
anchor01.free();
anchor02.free();
delete anchor01;
delete anchor02;
};
Symbol 1843 MovieClip [mc_screen_level_01_11_1] Frame 1
Symbol 1846 MovieClip [mc_screen_level_01_13_3] Frame 1
var mine1 = new clsEnemyMine(this, "mc_mine", 95, 330);
var mine2 = new clsEnemyMine(this, "mc_mine", 145, 330);
var mine3 = new clsEnemyMine(this, "mc_mine", 275, 330);
var mine4 = new clsEnemyMine(this, "mc_mine", 455, 330);
var mine5 = new clsEnemyMine(this, "mc_mine", 500, 330);
this.onEnterFrame = function () {
mine1.update();
mine2.update();
mine3.update();
mine4.update();
mine5.update();
if (mine1.state == _global.ST_KILL) {
delete mine1;
}
if (mine5.state == _global.ST_KILL) {
delete mine5;
}
if (mine2.state == _global.ST_KILL) {
delete mine2;
}
if (mine3.state == _global.ST_KILL) {
delete mine3;
}
if (mine4.state == _global.ST_KILL) {
delete mine4;
}
};
this.onUnload = function () {
mine1.free();
mine2.free();
mine3.free();
mine4.free();
mine5.free();
delete mine1;
delete mine5;
delete mine2;
delete mine3;
delete mine4;
};
Symbol 1850 MovieClip [mc_screen_level_01_12_3] Frame 1
var enemy1 = new clsEnemyAerial(this, "mc_enemy_bat01", 3, 1, 300, 200, 250, 100, 1);
var mine1 = new clsEnemyMine(this, "mc_mine", 95, 330);
var mine2 = new clsEnemyMine(this, "mc_mine", 265, 330);
var mine3 = new clsEnemyMine(this, "mc_mine", 325, 330);
var mine4 = new clsEnemyMine(this, "mc_mine", 475, 330);
this.onEnterFrame = function () {
enemy1.update();
mine1.update();
mine2.update();
mine3.update();
mine4.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
if (mine1.state == _global.ST_KILL) {
delete mine1;
}
if (mine4.state == _global.ST_KILL) {
delete mine4;
}
if (mine2.state == _global.ST_KILL) {
delete mine2;
}
if (mine3.state == _global.ST_KILL) {
delete mine3;
}
};
this.onUnload = function () {
enemy1.free();
mine1.free();
mine2.free();
mine3.free();
mine4.free();
delete mine1;
delete mine4;
delete mine2;
delete mine3;
delete enemy1;
};
Symbol 1853 MovieClip [mc_screen_level_01_11_3] Frame 1
var mine1 = new clsEnemyMine(this, "mc_mine", 175, 330);
var mine2 = new clsEnemyMine(this, "mc_mine", 230, 330);
var mine3 = new clsEnemyMine(this, "mc_mine", 380, 330);
var mine4 = new clsEnemyMine(this, "mc_mine", 530, 330);
var mine5 = new clsEnemyMine(this, "mc_mine", 580, 330);
var bonus1 = new clsBonus(this, "mc_bonus_health", 70, 320);
this.onEnterFrame = function () {
mine1.update();
mine2.update();
mine3.update();
mine4.update();
mine5.update();
bonus1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
if (mine1.state == _global.ST_KILL) {
delete mine1;
}
if (mine5.state == _global.ST_KILL) {
delete mine5;
}
if (mine2.state == _global.ST_KILL) {
delete mine2;
}
if (mine3.state == _global.ST_KILL) {
delete mine3;
}
if (mine4.state == _global.ST_KILL) {
delete mine4;
}
};
this.onUnload = function () {
mine1.free();
mine2.free();
mine3.free();
mine4.free();
mine5.free();
bonus1.free();
delete bonus1;
delete mine1;
delete mine5;
delete mine2;
delete mine3;
delete mine4;
};
Symbol 1859 MovieClip [mc_screen_level_01_13_4] Frame 1
var enemy1 = new clsEnemyHorizontal(this, "mc_enemy_hamsters02", 300, 310, 2, 1, 270);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1865 MovieClip [mc_screen_level_01_12_4] Frame 1
var bonus1 = new clsBonus(this, "mc_bonus_sphere", 450, 320);
var enemy1 = new clsEnemyHorizontal(this, "mc_enemy_bat02", 300, 212, 2, 1, 270);
this.onEnterFrame = function () {
bonus1.update();
enemy1.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
bonus1.free();
enemy1.update();
delete bonus1;
delete enemy1;
};
Symbol 1870 MovieClip [mc_screen_level_01_11_4] Frame 1
var enemy1 = new clsEnemyHorizontal(this, "mc_enemy_hamsters02", 300, 310, 2, 1, 250);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1881 MovieClip [mc_screen_level_01_14_3] Frame 1
var enemy1 = new clsEnemyHorizontal(this, "mc_enemy_hamsters02", 230, 108, 2, 1, 40);
this.onEnterFrame = function () {
enemy1.update();
if (enemy1.state == _global.ST_KILL) {
delete enemy1;
}
};
this.onUnload = function () {
enemy1.free();
delete enemy1;
};
Symbol 1886 MovieClip [mc_screen_level_01_15_3] Frame 1
stop();
if (_global.level == 1) {
this.gotoAndStop(2);
}
var bonus1 = new clsBonus(this, "mc_bonus_health", 420, 125);
var plataform01 = new clsPlatformObject(this, 245, 215, "mc_plataform_elevador", _global.MOVE_VV, 2, 150, 100, 20);
this.onEnterFrame = function () {
bonus1.update();
plataform01.update();
if (bonus1.state == _global.ST_KILL) {
delete bonus1;
}
};
this.onUnload = function () {
bonus1.free();
plataform01.free();
delete bonus1;
delete plataform01;
};
Symbol 1890 MovieClip [mc_danger_lv01] Frame 1
#initclip 119
Object.registerClass("mc_danger_lv01", clsCollisionDangerFloor);
#endinitclip
Symbol 1892 MovieClip [mc_limit_up] Frame 1
#initclip 120
Object.registerClass("mc_limit_up", clsLimitUp);
#endinitclip
Symbol 1918 MovieClip Frame 19
this._parent.gotoAndStop("WALK");
Symbol 1925 MovieClip Frame 23
this._parent.gotoAndStop("WALK");
Symbol 1926 MovieClip Frame 55
this._parent.removeMovieClip();
Symbol 1932 MovieClip Frame 47
this._parent.gotoAndStop("WALK");
Symbol 1933 MovieClip Frame 50
this._parent.removeMovieClip();
Symbol 1948 MovieClip Frame 33
this._parent.removeMovieClip();
Symbol 1962 MovieClip Frame 33
this._parent.removeMovieClip();
Symbol 1978 MovieClip Frame 35
this._parent.gotoAndStop("SHOOT");
Symbol 1979 MovieClip Frame 20
this._parent.gotoAndStop("WALK");
Symbol 1982 MovieClip Frame 31
this._parent.gotoAndStop("WALK");
Symbol 1984 MovieClip Frame 65
this._parent.removeMovieClip();
Symbol 2003 MovieClip Frame 24
this._parent.gotoAndStop("SHOOT");
Symbol 2005 MovieClip Frame 20
this._parent.gotoAndStop("STAND");
Symbol 2009 MovieClip Frame 20
this._parent.gotoAndStop("STAND");
Symbol 2010 MovieClip Frame 35
this._parent.removeMovieClip();
Symbol 2020 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_global.player.mGpx.mc_area)) {
_global.player.action.mPassable = true;
}
};
Symbol 2067 MovieClip [mc_fx_mine_explosion] Frame 21
stop();
this.removeMovieClip();
Symbol 2068 MovieClip [mc_boss02_explosion] Frame 20
this.removeMovieClip();
Symbol 2070 MovieClip [mc_fx_glow_AlienToAlien] Frame 4
clsFla.iniFxChangeAlienToAlien();
Symbol 2070 MovieClip [mc_fx_glow_AlienToAlien] Frame 8
clsFla.endChangeAlienToAlien(this);
Symbol 2071 MovieClip [mc_fx_glow_AlienToBen] Frame 4
clsFla.endFxChangeToBen();
Symbol 2071 MovieClip [mc_fx_glow_AlienToBen] Frame 8
this.removeMovieClip();
Symbol 2072 MovieClip [mc_fx_glow02] Frame 8
clsFla.endFxChangeToAlien();
this.removeMovieClip();
Symbol 2075 MovieClip [mc_fx_bonus_glow] Frame 8
this.removeMovieClip();
Symbol 2077 MovieClip [mc_fx_hit] Frame 8
this.removeMovieClip();
Symbol 2081 MovieClip Frame 1
stop();
Symbol 2085 MovieClip Frame 31
stop();
gotoAndPlay (11);
Symbol 2090 MovieClip [mc_platform_fall] Frame 1
#initclip 121
Object.registerClass("mc_platform_fall", clsPlatformFall);
#endinitclip
Symbol 2100 MovieClip Frame 28
this._parent.gotoAndStop("STAND");
Symbol 2130 MovieClip Frame 21
stop();
Symbol 2162 MovieClip Frame 21
stop();
Symbol 2163 MovieClip [mc_plataform_mask_fall_small] Frame 1
stop();
Symbol 2205 MovieClip Frame 32
this._parent.gotoAndStop("ACTION");
Symbol 2217 MovieClip Frame 34
this._parent.gotoAndStop("STAND");
Symbol 2243 Button
on (release) {
if (_global.instruction_mode_screen) {
this._parent.gotoAndStop("PROLOGUE");
} else {
_global.setPause(false);
_quality = "MEDIUM";
this.removeMovieClip();
}
}
Symbol 2247 MovieClip [mc_instructions3] Frame 1
_quality = "HIGH";
stop();
Symbol 2256 Button
on (release) {
if (_global.instruction_mode_screen) {
this._parent.gotoAndStop("INSTRUCTIONS3");
} else {
_global.game.panelInstructions("mc_instructions3");
}
}
Symbol 2272 MovieClip [mc_instruccions2] Frame 1
stop();
_quality = "HIGH";
Symbol 2274 Button
on (release) {
if (_global.instruction_mode_screen) {
this._parent.gotoAndStop("INSTRUCTIONS2");
} else {
_global.game.panelInstructions("mc_instruccions2");
}
}
Symbol 2285 MovieClip [mc_instructions1] Frame 1
_quality = "HIGH";
this.onKeyDown = function () {
if (Key.isDown(32)) {
if (!_global.instruction_mode_screen) {
_global.game.panelInstructions("mc_instruccions2");
}
}
};
Key.addListener(this);
Symbol 2285 MovieClip [mc_instructions1] Frame 40
stop();
Symbol 2288 Button
on (release) {
var fakeVar = new Date().getTime();
loadMovieNum ("http://www.cartoonnetwork.com/games/ben10/savagepursuit/tracker.swf?" + fakeVar, 10000);
this._parent.gotoAndStop("INSTRUCTIONS1");
}
Symbol 2290 MovieClip Frame 20
stop();
Symbol 2391 MovieClip [__Packages.clsFla] Frame 0
class clsFla
{
function clsFla () {
}
static function playerInitChange() {
_global.game.createEffect("mc_fx_glow02", _global.player.mGpx._x, _global.player.mGpx._y - 50);
}
static function endFxChangeToAlien() {
_global.setPause(false);
}
static function endChangeToAlien() {
_global.player.activeActionPlayer();
}
static function endFxChangeToBen() {
_global.playerTemp = _global.PLAYER_BEN;
if (_global.actionEndEscene) {
return(undefined);
}
_global.player.activeActionPlayer();
}
static function iniFxChangeAlienToAlien() {
_global.player.activeActionPlayer();
}
static function endChangeAlienToAlien(clip) {
_global.setPause(false);
clip.removeMovieClip();
}
static function iniFade() {
_global.game.freePlayer();
if (_global.boss) {
_global.game.freeBoss();
}
}
static function endFade(clip) {
_global.game.updateNumLifes(-1);
_global.game.updateEnergyLife(100);
_global.panelInfo.updateEnergyTrans(100);
_global.game.createPlayer(_global.posX, _global.posY);
_global.setPause(false);
if (_global.level == 2) {
_global.game.createBoss_01();
} else if (_global.level == 5) {
_global.game.createBoss_02();
} else if (_global.level == 8) {
_global.game.createBoss_03();
} else if (_global.level == 10) {
_global.game.createBoss_04();
}
if (_global.bossReturn) {
_global.bossReturn.mGpx._x = _global.posX + 1800;
_global.bossReturn.mSpeed = _global.SPEED_B_RETURN;
}
clip.removeMovieClip();
}
static function beginFadeChangeLevel() {
_global.setPause(true);
_global.levelChanging = true;
}
static function iniFadeChangeLevel() {
_global.game.free();
_global.level++;
if ((_global.level == 2) || (_global.level == 4)) {
_global.game.updateScore(500);
} else if ((_global.level == 5) || (_global.level == 7)) {
_global.game.updateScore(1000);
} else if ((_global.level == 8) || (_global.level == 10)) {
_global.game.updateScore(1500);
}
var _local2 = _global.iniLevelLife - _global.playerNumLife;
if (_local2 < 0) {
_local2 = 0;
}
}
static function endFadeChangeLevel(clip) {
_global.levelChanging = false;
_global.game.createPlayer(_global.posX, _global.posY);
if (_global.level < 11) {
_global.createGame();
_global.setPause(false);
clip.removeMovieClip();
} else {
clip.removeMovieClip();
_root.winGame();
}
}
static function mediumFadeChangeLevel(clip) {
clip.mc_panel_resume._alpha = 0;
if (((_global.level == 4) || (_global.level == 7)) || (_global.level == 10)) {
clip.stop();
clip.mc_panel_resume._alpha = 100;
}
}
static function showCutSceneChangeLevel(clip) {
clip.mc_final_cutScene._alpha = 0;
if (_global.level == 10) {
clip.stop();
clip.mc_final_cutScene._alpha = 100;
}
}
static function loadDataResume(mGpx) {
mGpx.mc_score_u.gotoAndStop("N" + (_global.score % 10));
mGpx.mc_score_d.gotoAndStop("N" + (Math.floor(_global.score / 10) % 10));
mGpx.mc_score_c.gotoAndStop("N" + (Math.floor(_global.score / 100) % 10));
mGpx.mc_score_um.gotoAndStop("N" + (Math.floor(_global.score / 1000) % 10));
mGpx.mc_score_dm.gotoAndStop("N" + (Math.floor(_global.score / 10000) % 10));
mGpx.mc_score_cm.gotoAndStop("N" + (Math.floor(_global.score / 100000) % 10));
mGpx.mc_score_mm.gotoAndStop("N" + Math.floor(_global.score / 1000000));
mGpx.mc_coins_u.gotoAndStop("N" + (_global.game.coinsTaken() % 10));
mGpx.mc_coins_d.gotoAndStop("N" + (Math.floor(_global.game.coinsTaken() / 10) % 10));
mGpx.mc_sumo_cards.gotoAndStop("S_" + _global.game.coinsTaken());
var _local3 = _global.iniLevelLife - _global.playerNumLife;
if (_local3 < 0) {
_local3 = 0;
}
mGpx.mc_life_u.gotoAndStop("N" + (_local3 % 10));
mGpx.mc_enemy_u.gotoAndStop("N" + (_global.enemiesDie % 10));
mGpx.mc_enemy_d.gotoAndStop("N" + (Math.floor(_global.enemiesDie / 10) % 10));
}
static function endPlayerDie(clip) {
clip.stop();
_global.setPause(true);
_global.game.createPanel("mc_fade");
}
static function iniMessageStart() {
_global.setPause(true);
}
static function endMessageEnd(clip) {
_global.setPause(false);
clip.removeMovieClip();
}
static function endBossRecover(clip) {
clip.stop();
_global.pieceModulator.state = clsModulator.ST_FOLLOW;
}
static function endWinShortBen(clip) {
clip.stop();
_global.player.action.activeAnimation("WALK_L");
_global.player.showCollision(0);
_global.pieceModulator.state = clsModulator.ST_RUN;
}
static function endAttackBoss(clip) {
clip.stop();
_global.actionEndEscene.state = clsActionEnd.ST_SHOOT;
}
static function endNormalizeBoss(clip) {
clip.stop();
_global.player.action.activeAnimation("WIN");
_global.actionEndEscene.state = clsActionEnd.ST_NORMAL_BOSS;
}
static function endWinLevel(clip) {
clip.stop();
_global.game.createPanel("mc_fade_change_level", 0, 0);
}
static function endAnimationAnimo() {
_global.actionEndEscene = new endActionGame();
}
}
Symbol 2392 MovieClip [__Packages.clsModulator] Frame 0
class clsModulator
{
var mGpx, state, mGpxBoss;
function clsModulator (clip, x, y) {
var _local3 = clsGame.getNextDepthSup();
mGpx = _global.world.mGpx.attachMovie(clip, clip + _local3, _local3);
mGpx._x = x;
mGpx._y = 340;
if (_global.level == 2) {
mGpx.gotoAndStop("TRANS_A");
} else if (_global.level == 5) {
mGpx.gotoAndStop("TRANS_B");
} else if (_global.level == 8) {
mGpx.gotoAndStop("TRANS_C");
}
state = ST_INI;
if (_global.activePlayer != _global.PLAYER_BEN) {
_global.player.transformToBen();
}
}
function update() {
switch (state) {
case ST_INI :
if (mGpx.mc_collision.hitTest(_global.player.mGpx.mc_ben.mc_collision) || (mGpx.mc_collision.hitTest(_global.player.mGpx.mc_ben.mc_collision_invincible))) {
if ((((_global.player.state == _global.ST_PLAYER_STAND_RIGHT) || (_global.player.state == _global.ST_PLAYER_STAND_LEFT)) || (_global.player.state == _global.ST_PLAYER_WALK_RIGHT)) || (_global.player.state == _global.ST_PLAYER_WALK_LEFT)) {
_global.game.createEffect("mc_fx_bonus_glow", mGpx._x, mGpx._y);
mGpx.removeMovieClip();
_global.mode_collision = false;
_global.panelInfo.speedChange = 0;
_global.player.action.activeAnimation("WIN_SHORT");
state = ST_WIN;
}
}
break;
case ST_WIN :
break;
case ST_RUN :
_global.player.mGpx._x = _global.player.mGpx._x - 4;
if (_global.player.mGpx._x < -100) {
var _local3;
if (_global.level == 2) {
_local3 = "mc_boss_01";
} else if (_global.level == 5) {
_local3 = "mc_boss_02";
} else if (_global.level == 8) {
_local3 = "mc_boss_03";
}
var _local6 = clsGame.getNextDepthSup();
mGpxBoss = _global.world.mGpx.attachMovie(_local3, _local3 + _local6, _local6);
mGpxBoss._x = 300;
if (_local3 == "mc_boss_03") {
mGpxBoss._x = 400;
}
mGpxBoss._y = 350;
var _local5 = new Color(mGpxBoss);
var _local4 = _local5.getTransform();
_local4 = {ra:255, ga:255, ba:255};
_local5.setTransform(_local4);
mGpxBoss._alpha = 70;
mGpxBoss.gotoAndStop("RECOVER");
state = ST_REPEAR;
}
break;
case ST_REPEAR :
break;
case ST_FOLLOW :
mGpxBoss._x = mGpxBoss._x - 4;
if (mGpxBoss._x >= -150) {
break;
}
state = _global.ST_KILL;
}
}
function free() {
mGpx.removeMovieClip();
mGpxBoss.removeMovieClip();
_global.game.createPanel("mc_fade_change_level", 0, 0);
}
static var ST_INI = 1;
static var ST_RUN = 2;
static var ST_REPEAR = 3;
static var ST_FOLLOW = 4;
static var ST_WIN = 5;
}
Symbol 2393 MovieClip [__Packages.clsGame] Frame 0
class clsGame
{
var mzActors, mzBullets, mzBulletsEnemy, mzPosCoins, panelChange, messageIniLevel;
function clsGame () {
mzActors = new Array();
mzBullets = new Array();
mzBulletsEnemy = new Array();
mzPosCoins = new Array();
}
function init() {
_global.lineTime = new clslineTime("mc_lineTime_lvl01");
_global.panelInfo = new clsPanelInfo();
updateNumLifes(0);
_global.playerActiveChange = true;
}
function createBoss_01() {
_global.boss = new clsBoss_01(671, 322);
_global.boss.setInitHealth(30);
var _local2 = new clsActionBoss_01(_global.boss);
_local2.addAttackPosition(521, 322);
_local2.addAttackPosition(503.5, 277);
_local2.addAttackPosition(93, 277);
_global.boss.action = _local2;
_global.boss.action.active = true;
}
function createBoss_02() {
_global.boss = new clsBoss_02(800, 100);
_global.boss.setInitHealth(30);
var _local2 = new clsActionBoss_02(_global.boss);
_local2.addAttackPosition(500, 100);
_local2.addAttackPosition(100, 100);
_global.boss.action = _local2;
_global.boss.action.active = true;
}
function createBoss_03() {
_global.boss = new clsBoss_03(600, 342);
_global.boss.setInitHealth(50);
var _local2 = new clsActionBoss_03(_global.boss);
_local2.addAttackPosition(500, 342);
_local2.addAttackPosition(100, 342);
_local2.addAttackPosition(300, 342);
_global.boss.action = _local2;
_global.boss.action.active = true;
}
function createBoss_04() {
_global.boss = new clsBoss_04(600, 210);
_global.boss.setInitHealth(50);
var _local2 = new clsActionBoss_04(_global.boss);
_local2.addAttackPosition(-250, 360);
_local2.addAttackPosition(-250, 210);
_local2.addAttackPosition(850, 360);
_local2.addAttackPosition(850, 210);
_local2.addAttackPosition(160, 210);
_local2.addAttackPosition(440, 210);
_local2.addAttackPosition(585, 210);
_local2.addAttackPosition(15, 210);
_local2.addAttackPosition(600, 360);
_local2.addAttackPosition(600, 210);
_local2.addAttackPosition(0, 360);
_local2.addAttackPosition(0, 210);
_global.boss.action = _local2;
_global.boss.action.active = true;
}
function update() {
_global.player.update();
_global.world.update();
_global.lineTime.update();
_global.panelInfo.update();
updateBoss();
var _local3 = 0;
while (_local3 < mzBullets.length) {
mzBullets[_local3].update();
if (mzBullets[_local3].state == _global.ST_KILL) {
delete mzBullets[_local3];
mzBullets.splice(_local3, 1);
_local3--;
}
_local3++;
}
_local3 = 0;
while (_local3 < mzBulletsEnemy.length) {
mzBulletsEnemy[_local3].update();
if (mzBulletsEnemy[_local3].state == _global.ST_KILL) {
delete mzBulletsEnemy[_local3];
mzBulletsEnemy.splice(_local3, 1);
_local3--;
}
_local3++;
}
if (_global.pieceModulator) {
_global.pieceModulator.update();
if (_global.pieceModulator.state == _global.ST_KILL) {
_global.pieceModulator.free();
}
}
if (_global.actionEndEscene) {
_global.actionEndEscene.update();
}
}
function updateBoss() {
if (_global.boss) {
_global.boss.update();
if (_global.boss.state == _global.ST_KILL) {
if (_global.activePlayer != _global.PLAYER_BEN) {
_global.player.transformToBen();
_global.playerActiveChange = false;
}
if (_global.level != 10) {
_global.pieceModulator = new clsModulator("mc_modulator", _global.boss.gpx.getX(), null);
}
var _local3;
if (_global.level == 2) {
_local3 = _global.priceBoss01;
} else if (_global.level == 5) {
_local3 = _global.priceBoss02;
} else if (_global.level == 8) {
_local3 = _global.priceBoss03;
} else if (_global.level == 10) {
_local3 = _global.priceBoss04;
}
updateScore(_local3);
_global.boss.free();
delete _global.boss;
_global.boss = null;
}
}
}
function createBulletPlayer(nameMovie, x, y, speed, type, damage, angleBase, angleRange, quantity, limit, scale) {
var _local5 = 0;
if (angleBase == undefined) {
angleBase = 180;
}
if (((quantity == 0) || (quantity == 1)) || (quantity == undefined)) {
quantity = 1;
_local5 = 0;
} else if ((angleRange == 0) || (angleRange == undefined)) {
_local5 = angleRange;
} else {
_local5 = angleRange / (quantity - 1);
}
var _local2 = 0;
while (_local2 < quantity) {
var _local3 = angleBase + (_local5 * _local2);
var _local4 = new clsBulletPlayer(nameMovie, x, y, speed, type, damage, _local3, limit, scale);
mzBullets.push(_local4);
_local2++;
}
}
function createBulletEnemy(nameMovie, x, y, speed, type, damage, angleBase, angleRange, quantity, limit, scale) {
var _local5 = 0;
if (angleBase == undefined) {
angleBase = 180;
}
if (((quantity == 0) || (quantity == 1)) || (quantity == undefined)) {
quantity = 1;
_local5 = 0;
} else if ((angleRange == 0) || (angleRange == undefined)) {
_local5 = angleRange;
} else {
_local5 = angleRange / (quantity - 1);
}
var _local2 = 0;
while (_local2 < quantity) {
var _local3 = angleBase + (_local5 * _local2);
var _local4 = new clsBulletEnemy(nameMovie, x, y, speed, type, damage, _local3, limit, scale);
mzBulletsEnemy.push(_local4);
_local2++;
}
}
function createCoins() {
if (_global.mzCoins == undefined) {
_global.mzCoins = new Array();
var _local3 = 0;
while (_local3 < mzPosCoins.length) {
var _local5 = getNextCreationDepth();
var _local4 = _global.world.mGpx.attachMovie("mc_coin", "mc_coin" + _local5, _local5);
_local4._x = mzPosCoins[_local3][0];
_local4._y = mzPosCoins[_local3][1];
_global.mzCoins.push([_local4, mzPosCoins[_local3][0], mzPosCoins[_local3][1], true]);
_local3++;
}
} else {
var _local3 = 0;
while (_local3 < _global.mzCoins.length) {
if (_global.mzCoins[_local3][3]) {
var _local5 = getNextCreationDepth();
var _local4 = _global.world.mGpx.attachMovie("mc_coin", "mc_coin" + _local5, _local5);
_local4._x = _global.mzCoins[_local3][1];
_local4._y = _global.mzCoins[_local3][2];
_global.mzCoins[_local3][0] = _local4;
}
_local3++;
}
}
}
function removeCoin(index) {
createEffect("mc_fx_bonus_glow", _global.mzCoins[index][0]._x, _global.mzCoins[index][0]._y);
_global.mzCoins[index][0].removeMovieClip();
_global.mzCoins[index][3] = false;
updateScore(_global.priceCoin);
}
function coinsTaken() {
_global.sumoCheck = 0;
var _local2 = 0;
while (_local2 < _global.mzCoins.length) {
if (!_global.mzCoins[_local2][3]) {
_global.sumoCheck++;
}
_local2++;
}
return(_global.sumoCheck);
}
function createPrice(price, x, y) {
if ((x != undefined) && (y != undefined)) {
var _local5 = price % 10;
var _local6 = Math.floor(price / 10) % 10;
var _local7 = Math.floor(price / 100) % 10;
var _local3 = getNextCreationDepth();
var _local2 = _global.world.mGpx.attachMovie("mc_price", "mc_price" + _local3, _local3);
_local2._x = x;
_local2._y = y;
_local2.mc_u.gotoAndStop("N" + _local5);
_local2.mc_d.gotoAndStop("N" + _local6);
_local2.mc_c.gotoAndStop("N" + _local7);
}
}
function createMessage(clip) {
var _local3 = _root.attachMovie(clip, clip, _global.DEPTH_PANEL_CHANGE);
_local3._x = 300;
_local3._y = 200;
}
function createEffect(clip, x, y) {
if ((x != undefined) && (y != undefined)) {
var _local2 = getNextDepthSup();
var _local3 = _global.world.mGpx.attachMovie(clip, "mc_effect" + _local2, _local2);
_local3._x = x;
_local3._y = y;
}
}
function createEffectInPlayer(clip) {
var _local2 = getNextDepthSup();
var _local3 = _global.player.mGpx.attachMovie(clip, "mc_effect" + _local2, _local2);
_local3._x = 0;
_local3._y = 0;
}
static function getNextCreationDepth() {
if (mDepth >= DEPTH_MAX_CREATE) {
mDepth = DEPTH_MIN_CREATE;
} else {
mDepth++;
}
return(mDepth);
}
static function getNextDepthSup() {
if (mDepthSup >= DEPTH_MAX_OBJECT_SUP) {
mDepth = DEPTH_MIN_OBJECT_SUP;
} else {
mDepthSup++;
}
return(mDepthSup);
}
function createPanelChange() {
if (_global.player.shooting || (_global.player.jumping)) {
return(undefined);
}
if (((((_global.player.state == _global.ST_PLAYER_STAND_RIGHT) || (_global.player.state == _global.ST_PLAYER_STAND_LEFT)) || (_global.player.state == _global.ST_PLAYER_WALK_RIGHT)) || (_global.player.state == _global.ST_PLAYER_WALK_LEFT)) || (_global.player.state == _global.player.action.ST_STAND)) {
if (_global.activePlayer != _global.PLAYER_WILDVINE) {
if (_global.player.dir == _global.DIR_RIGHT) {
_global.player.action.activeAnimation("STAND_R");
_global.player.action.state = _global.ST_PLAYER_STAND_RIGHT;
} else {
_global.player.action.activeAnimation("STAND_L");
_global.player.action.state = _global.ST_PLAYER_STAND_LEFT;
}
} else {
_global.player.action.activeAnimation("STAND_R");
_global.player.action.state = _global.player.action.ST_STAND;
}
_global.player.action.toRight = false;
_global.player.action.toLeft = false;
_global.setPause(true);
panelChange = _root.attachMovie("mc_panel_trans", "mc_panel_trans", _global.DEPTH_PANEL_CHANGE);
panelChange._x = 0;
panelChange._y = 0;
_global.activePanelChange = true;
}
}
function removePanelChange() {
panelChange.removeMovieClip();
_global.activePanelChange = false;
}
function createPanelWilmutt() {
_global.setPause(true);
_global.panelWilmutt = true;
_global.mc_panel_wilmutt = _root.attachMovie("mc_panel_wilmutt", "mc_panel_wilmutt", _global.DEPTH_PANEL_WILMUTT);
}
function createPanelCheckMsn() {
_global.setPause(true);
_global.panelCheckMsn = _root.attachMovie("mc_panel_cheat", "mc_panel_cheat", _global.DEPTH_PANEL_INSTRUCTIONS);
_global.panelCheckMsn.mc_checkValue.gotoAndStop("WORNG");
}
function removePanelCheckMsn() {
_global.setPause(false);
_global.panelCheat = false;
_global.panelCheckMsn.removeMovieClip();
delete _global.panelCheckMsn;
}
function checkPointForward() {
if (_global.player._x > (_global.world.width - 200)) {
createPanel("mc_fade_change_level", 0, 0);
}
}
function checkPointBackward() {
if ((_global.player._x < 100) && (!_global.actionEndEscene)) {
if (((((_global.player.state == _global.ST_PLAYER_STAND_RIGHT) || (_global.player.state == _global.ST_PLAYER_STAND_LEFT)) || (_global.player.state == _global.ST_PLAYER_WALK_RIGHT)) || (_global.player.state == _global.ST_PLAYER_WALK_LEFT)) || (_global.player.action.onground)) {
_global.actionEndEscene = new clsActionEnd();
}
}
}
function removePanelWilmutt() {
_global.setPause(false);
_global.panelWilmutt = false;
_global.mc_panel_wilmutt.removeMovieClip();
}
function createPanel(namePanel, x, y) {
_global.panel = _root.attachMovie(namePanel, "mc_panel", _global.DEPTH_PANEL);
_global.panel._x = x;
_global.panel._y = y;
}
function updateScore(num) {
_global.score = _global.score + num;
if (_global.score > _global.scoreExtraLife) {
updateNumLifes(1);
_global.scoreExtraLife = _global.scoreExtraLife + _global.scoreNextExtraLife;
}
_global.panelInfo.updateScore(_global.score);
}
function updateEnergyLife(num) {
_global.playerEnergyLife = _global.playerEnergyLife + num;
if (_global.playerEnergyLife > 100) {
_global.playerEnergyLife = 100;
}
if (_global.playerEnergyLife <= 1) {
_global.playerEnergyLife = 1;
_global.player.action.die();
}
_global.panelInfo.updateEnergyLife(_global.playerEnergyLife);
}
function updateNumLifes(num) {
_global.playerNumLife = _global.playerNumLife + num;
if (_global.playerNumLife > 9) {
_global.playerNumLife = 9;
}
if (_global.playerNumLife < 0) {
_root.loseGame();
}
_global.panelInfo.updateNumLifes(_global.playerNumLife);
}
function updateEnergyTrans(num) {
_global.playerEnergyTrans = _global.playerEnergyTrans + num;
if (_global.playerEnergyTrans > 100) {
_global.playerEnergyTrans = 100;
}
if (_global.playerEnergyTrans < 0) {
_global.playerEnergyTrans = 0;
_global.player.transformToBen();
_global.panelInfo.penalty();
}
_global.panelInfo.mGpx.mc_energy._xscale = _global.playerEnergyTrans;
}
function removePanel() {
_global.panel.removeMovieClip();
delete _global.panel;
}
function panelInstructions(clip) {
_global.setPause(true);
_global.panel = _root.attachMovie(clip, "mc_panel", _global.DEPTH_PANEL_INSTRUCTIONS);
_global.panel._x = 300;
_global.panel._y = 200;
}
function createPlayer(x, y) {
if (_global.player) {
freePlayer();
}
_global.player = new clsPlayer(x, y);
}
function freePlayer() {
_global.player.free();
delete _global.player;
}
function freeBoss() {
_global.boss.free();
delete _global.boss;
_global.boss = null;
}
function freeBossReturn() {
if (_global.bossReturn) {
_global.bossReturn.free();
delete _global.bossReturn;
}
}
function free() {
messageIniLevel.removeMovieClip();
freeBoss();
freeBossReturn();
_global.player.free();
_global.world.free();
_global.world_move.free();
_global.lineTime.free();
_global.panelInfo.free();
delete _global.player;
delete _global.world;
delete _global.world_move;
delete _global.lineTime;
delete _global.panelInfo;
if (_global.pieceModulator) {
delete _global.pieceModulator;
}
if (_global.actionEndEscene) {
delete _global.actionEndEscene;
}
_global.stopSound(_global.snd_world, "snd_loopGame");
}
static var DEPTH_MIN_CREATE = 1000;
static var DEPTH_MAX_CREATE = 1999;
static var mDepth = DEPTH_MIN_CREATE;
static var DEPTH_MIN_OBJECT_SUP = 5100;
static var DEPTH_MAX_OBJECT_SUP = 5999;
static var mDepthSup = DEPTH_MIN_OBJECT_SUP;
var mzPoint = new Array();
}
Symbol 2394 MovieClip [__Packages.clslineTime] Frame 0
class clslineTime
{
var mGpx, mFace, mFaceBoss, mDiff;
function clslineTime (nameClip) {
mGpx = _root.attachMovie(nameClip, "mc_lineTime", _global.DEPTH_LINE_TIME);
mGpx._x = 20;
mGpx._y = 380;
switch (_global.level) {
case 1 :
mGpx.gotoAndStop("BOSS1");
break;
case 3 :
mGpx.gotoAndStop("BOSS1_BACK");
break;
case 4 :
mGpx.gotoAndStop("BOSS2");
break;
case 6 :
mGpx.gotoAndStop("BOSS2_BACK");
break;
case 7 :
mGpx.gotoAndStop("BOSS3");
break;
case 9 :
mGpx.gotoAndStop("BOSS3_BACK");
}
mFace = mGpx.mc_face_ben;
mFaceBoss = mGpx.mc_face_boss;
if ((((_global.level == 2) || (_global.level == 5)) || (_global.level == 8)) || (_global.level == 10)) {
mGpx._alpha = 0;
}
if (((_global.level == 3) || (_global.level == 6)) || (_global.level == 9)) {
mGpx.mc_face_ben._xscale = -100;
}
}
function update() {
mDiff = mFaceBoss._x - mFace._x;
if (mDiff < 80) {
mGpx.mc_line.gotoAndPlay("ALERT2");
} else if ((mDiff >= 80) && (mDiff < 250)) {
mGpx.mc_line.gotoAndStop("ALERT1");
} else if (mDiff >= 250) {
mGpx.mc_line.gotoAndStop("NORMAL");
}
if (_global.boss) {
return(undefined);
}
mFace._x = -(X_END * (_global.world._x / (_global.world.width - 600)));
if (mFace._x < X_INI) {
mFace._x = X_INI;
}
if (mFace._x > X_END) {
mFace._x = X_END;
}
if (_global.bossReturn) {
mFaceBoss._x = (X_2_BOSS / X_END_BOSS) * _global.bossReturn.mGpx._x;
if (mFaceBoss._x > X_2_BOSS) {
mFaceBoss._x = X_2_BOSS;
}
if (mFaceBoss._x < X_1_BOSS) {
mFaceBoss._x = X_1_BOSS;
}
}
}
function free() {
mFace.removeMovieClip();
mFaceBoss.removeMovieClip();
mGpx.removeMovieClip();
}
static var X_INI = 28;
static var X_END = 515;
static var X_1_BOSS = 30;
static var X_2_BOSS = 550;
static var X_INI_BOSS = 0;
static var X_END_BOSS = 14600;
}
Symbol 2395 MovieClip [__Packages.clsPanelInfo] Frame 0
class clsPanelInfo
{
var mGpx, mLifeBoss, sc_u, sc_d, sc_c, sc_m, sc_ml, sc_mll, sc_mlll;
function clsPanelInfo () {
mGpx = _root.attachMovie("mc_panel_info", "mc_panel_info", _global.DEPTH_PANEL_INFO);
mGpx._x = 10;
mGpx._y = 10;
updateScore(_global.score);
if (_global.level == 2) {
mGpx.gotoAndStop("BOSS1");
} else if (_global.level == 5) {
mGpx.gotoAndStop("BOSS2");
} else if (_global.level == 8) {
mGpx.gotoAndStop("BOSS3");
} else if (_global.level == 10) {
mGpx.gotoAndStop("BOSS4");
} else {
mGpx.gotoAndStop("NORMAL");
}
mGpx.mc_energy_penalty._alpha = 0;
_global.panelInfo.updateEnergyTrans(0);
mGpx.mc_energy_life.gotoAndStop(100);
mGpx.btn_sound.onRelease = function () {
if (_global.stopSounds) {
_global.snd.setVolume(100);
_global.game.startSound(_global.snd_world, "snd_loopGame", 99999);
_global.stopSounds = false;
} else {
_global.snd.setVolume(0);
_global.game.stopSound(_global.snd_world, "snd_loopGame");
_global.stopSounds = true;
}
};
mGpx.btn_help.onRelease = function () {
_global.instruction_mode_screen = false;
_global.game.panelInstructions("mc_instructions1");
};
}
function update() {
if ((_global.playerTemp != _global.PLAYER_BEN) && (_global.activePlayer != _global.PLAYER_BEN)) {
if (!_global.infiniteTransformation) {
updateEnergyTrans(-speedChange);
}
} else if ((_global.activePlayer == _global.PLAYER_BEN) && (mGpx.mc_energy_penalty._alpha == 0)) {
updateEnergyTrans(speedRecharge);
}
if (_global.boss) {
if (mLifeBoss == undefined) {
mLifeBoss = _global.boss.health;
}
mGpx.mc_energy_life_boss._width = (_global.boss.health * WIDTH_BOSS_ENERGY) / mLifeBoss;
}
if (mGpx.mc_energy_penalty._alpha == 100) {
mGpx.mc_energy_penalty._xscale = mGpx.mc_energy_penalty._xscale - SPEED_PENALTY;
if (mGpx.mc_energy_penalty._xscale < 0) {
removePenalty();
}
}
}
function penalty() {
_global.playerActiveChange = false;
mGpx.mc_energy_penalty._alpha = 100;
}
function removePenalty() {
mGpx.mc_energy_penalty._alpha = 0;
mGpx.mc_energy_penalty._xscale = 100;
_global.panelInfo.updateEnergyTrans(100);
if (_global.pieceModulator || (_global.actionEndEscene)) {
return(undefined);
}
_global.playerActiveChange = true;
}
function updateEnergyLife(num) {
mGpx.mc_energy_life.gotoAndStop(num);
}
function updateEnergyTrans(num) {
_global.playerEnergyTrans = _global.playerEnergyTrans + num;
if (_global.playerEnergyTrans > 100) {
_global.playerEnergyTrans = 100;
}
if (_global.playerEnergyTrans < 0) {
_global.playerEnergyTrans = 0;
_global.player.transformToBen();
penalty();
}
mGpx.mc_energy._xscale = _global.playerEnergyTrans;
}
function updateNumLifes(num) {
mGpx.mc_num_life.gotoAndStop("N" + num);
}
function updateScore(num) {
sc_u = num % 10;
sc_d = Math.floor(num / 10) % 10;
sc_c = Math.floor(num / 100) % 10;
sc_m = Math.floor(num / 1000) % 10;
sc_ml = Math.floor(num / 10000) % 10;
sc_mll = Math.floor(num / 100000) % 10;
sc_mlll = Math.floor(num / 1000000);
mGpx.mc_sc_u.gotoAndStop("N" + sc_u);
mGpx.mc_sc_d.gotoAndStop("N" + sc_d);
mGpx.mc_sc_c.gotoAndStop("N" + sc_c);
mGpx.mc_sc_m.gotoAndStop("N" + sc_m);
mGpx.mc_sc_ml.gotoAndStop("N" + sc_ml);
mGpx.mc_sc_mll.gotoAndStop("N" + sc_mll);
mGpx.mc_sc_mlll.gotoAndStop("N" + sc_mlll);
}
function free() {
mGpx.removeMovieClip();
}
var speedChange = 0.2;
var speedRecharge = 0.025;
static var WIDTH_BOSS_ENERGY = 140;
static var SPEED_PENALTY = 0.45;
}
Symbol 2396 MovieClip [__Packages.clsActor] Frame 0
class clsActor
{
var mState;
function clsActor (nameClip, x, y, depth) {
mGpx = new clsMCE(nameClip, nameClip + depth, depth);
mIniX = x;
mIniY = y;
mGpx.setPosition(mIniX, mIniY);
mState = _global.ST_BEGIN;
}
function set action(act) {
mAction = act;
//return(action);
}
function get action() {
return(mAction);
}
function get left() {
return(mLeft);
}
function get gpx() {
return(mGpx);
}
function get health() {
return(mHealth);
}
function get initHealth() {
return(mInitHealth);
}
function set state(st) {
mState = st;
//return(state);
}
function get state() {
return(mState);
}
function setInitHealth(health) {
mHealth = health;
mInitHealth = health;
}
function disableCollision(disable) {
mCollisionOn = !disable;
}
function isCollisionActive() {
return(mCollisionOn);
}
function setInvincible(invincible) {
mInvincible = invincible;
}
function isInvincible() {
return(mInvincible);
}
function orderLeftSmall() {
}
function orderStand() {
}
function orderStandRight() {
}
function orderStandLeft() {
}
function orderLeft() {
}
function orderRight() {
}
function orderMutate() {
}
function orderAlert() {
}
function orderShootLiquid() {
}
function orderReleaseRat() {
}
function orderHit() {
}
function orderDie() {
}
function orderShootLeft() {
}
function orderShootRight() {
}
function orderAttackLeft() {
}
function orderAttackRight() {
}
function orderAttackCenter() {
}
function orderAgonize() {
}
function orderFall() {
}
function orderJumpUpSmall() {
}
function orderJumpDownSmall() {
}
function orderJumpUpLeft() {
}
function orderJumpDownLeft() {
}
function orderJumpUpRight() {
}
function orderJumpDownRight() {
}
function orderAttack1Left() {
}
function orderAttack1Right() {
}
function orderAttack2Left() {
}
function orderAttack2Right() {
}
function orderAttack3() {
}
function orderDieFall() {
}
function orderEmpty() {
}
function orderAlertLeft() {
}
function orderAlertRight() {
}
function free() {
if (mDeleted) {
return(undefined);
}
mGpx.free();
delete mGpx;
mGpx = null;
if (mAction) {
mAction.free();
delete mAction;
mAction = null;
}
mDeleted = true;
}
function onAnimationEnd() {
if (mAction) {
if (mAction.__get__active()) {
mAction.onAnimationEnd();
}
}
}
function processHit(type, damage, param) {
if (mInvincible) {
return(undefined);
}
if (onHitFx != 0) {
return(undefined);
}
if (mHealth > 0) {
processHitFX();
switch (type) {
case _global.DAMAGE_FIXED :
mHealth = mHealth - damage;
break;
case _global.DAMAGE_TOTAL :
mHealth = 0;
}
}
if (mAction) {
if (mAction.__get__active()) {
mAction.onHit(param);
}
}
}
function processHitFX() {
if (!mColorHit) {
mColorHit = new Color(mGpx.__get__clip());
}
mInitColor = mColorHit.getTransform();
mTransform = mInitColor;
mTransform = {ra:180, ga:0, ba:0, aa:100};
mColorHit.setTransform(mTransform);
onHitFx = setInterval(this, "restoreHitFX", 150);
}
function restoreHitFX() {
clearInterval(onHitFx);
mColorHit.setTransform(mInitColor);
onHitFx = 0;
}
function checkCollision(clip, damage) {
if (mAction) {
if (mAction.__get__active()) {
return(mAction.checkCollision(clip, damage));
}
}
return(false);
}
function update() {
if (mGpx) {
mGpx.update();
}
if (mAction) {
if (mAction.__get__active()) {
mAction.update();
}
}
}
var mIniX = 0;
var mIniY = 0;
var mEndX = 0;
var mEndY = 0;
var mGpx = null;
var mAction = null;
var mHealth = 0;
var mInitHealth = 0;
var mInvincible = false;
var mCollisionOn = true;
var mDeleted = false;
var mLeft = true;
var mColorHit = null;
var mTransform = null;
var mInitColor = null;
var onHitFx = 0;
}
Symbol 2397 MovieClip [__Packages.clsMCE] Frame 0
class clsMCE
{
var mResponseMode, mAngle, mState, mVelX, mVelY, mWorldLimitUp, mWorldLimitDown, mWorldLimitLeft, mWorldLimitRight, mMount_x, mMount_y;
function clsMCE (nameMc, nameId, depth) {
movieClip = _global.world.mGpx.attachMovie(nameMc, nameId, depth);
setVelocity(0, 0);
setWorldLimit(DEF_WORLD_LIMIT_UP, DEF_WORLD_LIMIT_DOWN, DEF_WORLD_LIMIT_LEFT, DEF_WORLD_LIMIT_RIGHT);
mResponseMode = RESPONSE_MODE_KILL;
mAngle = 0;
mState = _global.ST_BEGIN;
}
function set _parent(obj) {
mParent = obj;
//return(_parent);
}
function get _parent() {
return(mParent);
}
function get state() {
return(mState);
}
function set state(st) {
mState = st;
//return(state);
}
function get clip() {
return(movieClip);
}
function set _velX(vx) {
mVelX = vx;
//return(_velX);
}
function set _velY(vy) {
mVelY = vy;
//return(_velY);
}
function get _velX() {
return(mVelX);
}
function get _velY() {
return(mVelY);
}
function get pause() {
return(mPause);
}
function setVelocity(velx, vely) {
mVelX = velx;
mVelY = vely;
mTime = _global.TIMER;
}
function setWorldLimit(up, down, left, right) {
mWorldLimitUp = up;
mWorldLimitDown = down;
mWorldLimitLeft = left;
mWorldLimitRight = right;
}
function setResponseMode(mode) {
mResponseMode = mode;
}
function mount(gpx, x, y) {
if (mMount) {
return(undefined);
}
mGpxMounted = gpx;
mMount_x = x;
mMount_y = y;
mMount = true;
}
function isMounted() {
return(mMount);
}
function dismount() {
mGpxMounted = null;
mMount = false;
}
function getX(x) {
return(movieClip._x);
}
function getY(y) {
return(movieClip._y);
}
function setPosition(x, y) {
movieClip._x = x;
movieClip._y = y;
}
function setScale(nScale) {
movieClip._xscale = nScale;
movieClip._yscale = nScale;
}
function resize(w, h) {
movieClip._width = w;
movieClip._height = h;
}
function rotate(ang) {
mAngle = mAngle + ang;
movieClip._rotation = _global.DegToRad(mAngle);
}
function addLinkPoint(x, y) {
if (mzLinkPoints == null) {
mzLinkPoints = new Array();
}
var _local2 = mzLinkPoints.length;
mzLinkPoints[_local2] = [x, y];
return(_local2);
}
function getLinkPoint(k) {
if (mzLinkPoints == null) {
return(null);
}
return(mzLinkPoints[k]);
}
function onWordLimit() {
switch (mResponseMode) {
case RESPONSE_MODE_KILL :
setVelocity(0, 0);
mState = _global.ST_KILL;
break;
case RESPONSE_MODE_RIGID :
if (movieClip._x < mWorldLimitLeft) {
movieClip._x = mWorldLimitLeft;
} else if (movieClip._x > mWorldLimitRight) {
movieClip._x = mWorldLimitRight;
}
if (movieClip._y < mWorldLimitUp) {
movieClip._y = mWorldLimitUp;
} else {
if (movieClip._y <= mWorldLimitDown) {
break;
}
movieClip._y = mWorldLimitDown;
}
}
}
function checkWorldLimit() {
if ((movieClip._x < mWorldLimitLeft) || (movieClip._x > mWorldLimitRight)) {
onWordLimit();
} else if ((movieClip._y < mWorldLimitUp) || (movieClip._y > mWorldLimitDown)) {
onWordLimit();
}
}
function setPause(pause) {
mPause = pause;
if (!mPause) {
mTime = _global.TIMER;
}
}
function update() {
if (mPause) {
return(undefined);
}
if (mState == _global.ST_KILL) {
return(undefined);
}
if (mMount) {
movieClip._x = mGpxMounted.__get__clip()._x + mMount_x;
movieClip._y = mGpxMounted.__get__clip()._y + mMount_y;
} else if (mVelX || (mVelY)) {
var _local3 = (_global.TIMER - mTime) / 100;
mTime = _global.TIMER;
if (mVelX) {
movieClip._x = movieClip._x + (mVelX * _local3);
}
if (mVelY) {
movieClip._y = movieClip._y + (mVelY * _local3);
}
}
checkWorldLimit();
}
function free() {
if (mDeleted) {
return(undefined);
}
mState = _global.ST_KILL;
removeMovieClip(movieClip);
movieClip = null;
dismount();
if (mzLinkPoints) {
delete mzLinkPoints;
mzLinkPoints = null;
}
mDeleted = true;
}
static var DEF_WORLD_LIMIT_UP = -125;
static var DEF_WORLD_LIMIT_DOWN = 525;
static var DEF_WORLD_LIMIT_LEFT = -300;
static var DEF_WORLD_LIMIT_RIGHT = 900;
static var RESPONSE_MODE_KILL = 1;
static var RESPONSE_MODE_RIGID = 2;
var mParent = null;
var movieClip = null;
var mGpxMounted = null;
var mMount = false;
var mzLinkPoints = null;
var mTime = 0;
var mDeleted = false;
var mPause = false;
}
Symbol 2398 MovieClip [__Packages.clsAction] Frame 0
class clsAction
{
var mIniX, mIniY, mState, mSubState;
function clsAction (actor) {
mActor = actor;
mGpx = mActor.gpx;
mIniX = mGpx.getX();
mIniY = mGpx.getY();
mState = _global.ST_BEGIN;
mSubState = _global.ST_BEGIN;
}
function set active(active) {
mActive = active;
//return(this.active);
}
function get active() {
return(mActive);
}
function addAttackPosition(x, y) {
if (mzAttackPositions) {
var _local2 = mzAttackPositions.length;
mzAttackPositions[_local2] = [x, y];
}
}
function subUpdate(subAction) {
if (!(subAction.mState === _global.ST_FINISH)) {
} else {
mSubAction.free();
delete mSubAction;
mSubAction = null;
onSubActionEnd();
}
}
function checkCollision(clip, damage) {
return(false);
}
function update() {
}
function onSubActionEnd() {
}
function onHit(param) {
}
function onAnimationEnd() {
}
function free() {
}
var mGpx = null;
var mActive = false;
var mActor = null;
var mzAttackPositions = null;
var mCurrPosition = -1;
var mSubAction = null;
var mTime = 0;
var mController = null;
}
Symbol 2399 MovieClip [__Packages.clsBoss_01] Frame 0
class clsBoss_01 extends clsActor
{
var mGpx, mLeft, __get__gpx;
function clsBoss_01 (posx, posy) {
super("mc_boss_01", posx, posy, _global.DEPTH_BOSS);
mGpx.setResponseMode(clsMCE.RESPONSE_MODE_RIGID);
mLeft = true;
}
function orderStandSmall() {
mGpx.__get__clip().gotoAndStop("STAND_SMALL");
}
function orderLeftSmall() {
mGpx.__get__clip().gotoAndStop("LEFT_SMALL");
}
function orderStand() {
mGpx.__get__clip().gotoAndStop("STAND");
}
function orderStandRight() {
mGpx.__get__clip().gotoAndStop("STAND");
if (mLeft) {
__get__gpx().clip._xscale = -100;
}
mLeft = false;
}
function orderStandLeft() {
mGpx.__get__clip().gotoAndStop("STAND");
mGpx.__get__clip()._xscale = 100;
mLeft = true;
}
function orderLeft() {
mGpx.__get__clip().gotoAndStop("WALK");
__get__gpx().clip._xscale = 100;
mLeft = true;
}
function orderRight() {
mGpx.__get__clip().gotoAndStop("WALK");
if (mLeft) {
__get__gpx().clip._xscale = -100;
}
mLeft = false;
}
function orderMutate() {
mGpx.__get__clip().gotoAndStop("MUTATE");
}
function orderAlert() {
mGpx.__get__clip().gotoAndStop("ALERT");
}
function orderShootLiquid() {
mGpx.__get__clip().gotoAndStop("SHOOT_LIQUID");
if (!mLeft) {
__get__gpx().clip._xscale = -100;
}
}
function orderReleaseRat() {
mGpx.__get__clip().gotoAndStop("RELEASE_RAT");
if (!mLeft) {
__get__gpx().clip._xscale = -100;
}
}
function orderHit() {
mGpx.__get__clip().gotoAndStop("HIT");
if (!mLeft) {
__get__gpx().clip._xscale = -100;
}
}
function orderDie() {
mGpx.__get__clip().gotoAndStop("DIE");
if (!mLeft) {
__get__gpx().clip._xscale = -100;
}
}
}
Symbol 2400 MovieClip [__Packages.clsActionBoss_01] Frame 0
class clsActionBoss_01 extends clsAction
{
var mzAttackPositions, mActor, mState, mSubAction, mOldState, mNextState, mGpx;
function clsActionBoss_01 (actor) {
super(actor);
mzAttackPositions = new Array();
mActor.disableCollision(true);
mHamsterSet = new clsSimSet("mHamsterSet");
}
function update() {
switch (mState) {
case _global.ST_BEGIN :
mActor.orderLeftSmall();
mSubAction = new clsAcbMoveTo(mActor, mzAttackPositions[0], mSpeed, true, this);
mOldState = _global.ST_BEGIN;
mState = _global.ST_SUB_ACTION;
mNextState = ST_01;
break;
case ST_01 :
break;
case ST_02 :
mActor.disableCollision(false);
mActor.orderLeft();
mActor.__get__gpx().setPosition(mzAttackPositions[1][0], mzAttackPositions[1][1]);
mSubAction = new clsAcbMoveTo(mActor, mzAttackPositions[2], mSpeed, true, this);
mOldState = ST_02;
mState = _global.ST_SUB_ACTION;
mNextState = ST_D1;
break;
case ST_D1 :
if (mTimeRest <= _global.TIMER) {
mOldState = ST_D1;
mState = ST_03;
}
break;
case ST_03 :
mActor.orderRight();
mSubAction = new clsAcbMoveTo(mActor, mzAttackPositions[1], mSpeed, true, this);
mOldState = ST_03;
mState = _global.ST_SUB_ACTION;
mNextState = ST_04;
break;
case ST_04 :
if (mTimeRest <= _global.TIMER) {
mOldState = ST_04;
mState = ST_05;
}
break;
case ST_05 :
if (mOldState != ST_05) {
mActor.disableCollision(true);
mActor.orderShootLiquid();
mOldState = ST_05;
}
break;
case ST_06 :
if (mTimeRest <= _global.TIMER) {
mOldState = ST_06;
mState = ST_07;
}
break;
case ST_07 :
if (mOldState != ST_07) {
mActor.orderReleaseRat();
mOldState = ST_07;
}
break;
case ST_R1 :
if (mIntervalReleaseRat == null) {
onReleaseRats();
mIntervalReleaseRat = _global.TIMER;
mCountRats++;
} else if (((_global.TIMER - mIntervalReleaseRat) / 1000) >= INTERVAL_RELEASE) {
onReleaseRats();
mIntervalReleaseRat = _global.TIMER;
mCountRats++;
}
if (mCountRats >= RATS_RELEASE) {
mCountRats = 0;
mState = ST_D2;
mIntervalReleaseRat = null;
mActor.orderStandLeft();
mTimeRest = mVarTimeRest + _global.TIMER;
}
break;
case ST_D2 :
if (mTimeRest <= _global.TIMER) {
mOldState = ST_D2;
mState = ST_08;
}
break;
case ST_08 :
mActor.orderLeft();
mSubAction = new clsAcbMoveTo(mActor, mzAttackPositions[2], mSpeed, true, this);
mOldState = ST_08;
mState = _global.ST_SUB_ACTION;
mNextState = ST_09;
break;
case ST_09 :
if (mTimeRest <= _global.TIMER) {
mOldState = ST_09;
mState = ST_10;
}
break;
case ST_10 :
if (mOldState != ST_10) {
mActor.disableCollision(true);
mActor.orderShootLiquid();
mOldState = ST_10;
}
break;
case ST_11 :
if (mTimeRest <= _global.TIMER) {
mOldState = ST_11;
mState = ST_12;
}
break;
case ST_12 :
if (mOldState != ST_12) {
mActor.orderReleaseRat();
mOldState = ST_12;
}
break;
case ST_R2 :
if (mIntervalReleaseRat == null) {
onReleaseRats();
mIntervalReleaseRat = _global.TIMER;
mCountRats++;
} else if (((_global.TIMER - mIntervalReleaseRat) / 1000) >= INTERVAL_RELEASE) {
onReleaseRats();
mIntervalReleaseRat = _global.TIMER;
mCountRats++;
}
if (mCountRats >= RATS_RELEASE) {
mCountRats = 0;
mState = ST_D3;
mIntervalReleaseRat = null;
mActor.orderStandRight();
mTimeRest = mVarTimeRest + _global.TIMER;
}
break;
case ST_D3 :
if (mTimeRest <= _global.TIMER) {
mOldState = ST_D3;
mState = ST_13;
}
break;
case ST_13 :
mActor.orderRight();
mSubAction = new clsAcbMoveTo(mActor, mzAttackPositions[1], mSpeed, true, this);
mOldState = ST_13;
mState = _global.ST_SUB_ACTION;
mNextState = ST_14;
break;
case ST_14 :
if (mTimeRest <= _global.TIMER) {
mState = ST_02;
}
break;
case _global.ST_SUB_ACTION :
mSubAction.update();
}
_global.updateObjectsSet(mHamsterSet);
if (mGpx.__get__clip().mc_collision.hitTest(_global.player.mGpx.mc_ben.mc_collision)) {
_global.player.hit();
}
checkCollisionPunchPlayer();
}
function onSubActionEnd() {
switch (mOldState) {
case _global.ST_BEGIN :
mActor.orderMutate();
break;
case ST_02 :
mActor.orderStandRight();
mTimeRest = mVarTimeRest + _global.TIMER;
break;
case ST_03 :
mActor.orderStandLeft();
mTimeRest = mVarTimeRest + _global.TIMER;
break;
case ST_08 :
mActor.orderStandRight();
mTimeRest = mVarTimeRest + _global.TIMER;
break;
case ST_13 :
mActor.orderStandLeft();
mTimeRest = mVarTimeRest + _global.TIMER;
}
mState = mNextState;
}
function onAnimationEnd() {
switch (mState) {
case ST_01 :
mActor.orderStand();
mState = ST_02;
break;
case ST_05 :
mActor.orderStand();
mTimeRest = mVarTimeRest + _global.TIMER;
mState = ST_06;
mActor.disableCollision(false);
break;
case ST_07 :
mActor.orderStandLeft();
mState = ST_R1;
break;
case ST_10 :
mActor.orderStand();
mTimeRest = mVarTimeRest + _global.TIMER;
mState = ST_11;
mActor.disableCollision(false);
break;
case ST_12 :
mActor.orderStandRight();
mState = ST_R2;
break;
case _global.ST_DIE :
mActor.__set__state(_global.ST_KILL);
}
}
function onReleaseRats() {
var _local2 = new clsHamster(mGpx.getX(), -600);
_local2.setInitHealth(10);
_local2.action = new clsActionHamster(_local2, mActor);
_local2.action.active = true;
mHamsterSet.add(_local2);
}
function updateVars() {
if (mActor.__get__initHealth() <= 0) {
return(undefined);
}
var _local3 = (100 * mActor.__get__health()) / mActor.__get__initHealth();
var _local2 = (100 - _local3) / 100;
mSpeed = (_local2 * (SPEED_END - SPEED_INI)) + SPEED_INI;
mVarTimeRest = (_local2 * (TIME_REST_END - TIME_REST_INI)) + TIME_REST_INI;
}
function onHit(param) {
if (mActor.__get__health() <= 0) {
_global.playerActiveChange = false;
if (mSubAction) {
mSubAction.free();
delete mSubAction;
mSubAction = null;
}
mGpx.setVelocity(0, 0);
mActor.orderDie();
mState = _global.ST_DIE;
} else {
updateVars();
}
}
function checkCollision(clip, damage) {
var _local4;
var _local5 = false;
var _local3 = 0;
while (_local3 < mHamsterSet.getCount()) {
_local4 = mHamsterSet.getObject(_local3);
if (_local4.gpx.clip.hitTest(clip)) {
_local4.processHit(_global.DAMAGE_TOTAL, 0, 0);
_local5 = true;
break;
}
_local3++;
}
if (_local5) {
return(true);
}
if (mGpx.__get__clip().mc_collision_punch_bullets.hitTest(clip)) {
if (mActor.isCollisionActive()) {
mActor.processHit(_global.DAMAGE_FIXED, damage, 0);
}
_local5 = true;
}
return(_local5);
}
function checkCollisionPunchPlayer() {
if (_global.activePlayer != _global.PLAYER_CANNONBOLT) {
checkCollision(_global.player.mGpx.mc_ben.mc_collision_punch, _global.DMG_PUNCH);
} else {
checkCollision(_global.player.mGpx.mc_ben.mc_collision_invincible, _global.DMG_PUNCH);
}
}
function free() {
delete mzAttackPositions;
_global.clearSimSet(mHamsterSet);
mHamsterSet.free();
delete mHamsterSet;
mHamsterSet = null;
}
static var SPEED_INI = 20;
static var SPEED_END = 40;
static var TIME_REST_INI = 1000;
static var TIME_REST_END = 500;
var mSpeed = SPEED_INI;
var mVarTimeRest = TIME_REST_INI;
var mTimeRest = 0;
var mHamsterSet = null;
var mTemp = 0;
static var RATS_RELEASE = 4;
static var INTERVAL_RELEASE = 0.5;
var mCountRats = 0;
var mIntervalReleaseRat = null;
static var ST_01 = -100;
static var ST_02 = -101;
static var ST_03 = -102;
static var ST_04 = -103;
static var ST_05 = -104;
static var ST_06 = -105;
static var ST_07 = -106;
static var ST_08 = -107;
static var ST_09 = -108;
static var ST_10 = -109;
static var ST_11 = -110;
static var ST_12 = -111;
static var ST_13 = -112;
static var ST_14 = -113;
static var ST_15 = -114;
static var ST_16 = -115;
static var ST_17 = -116;
static var ST_18 = -117;
static var ST_D1 = -118;
static var ST_D2 = -119;
static var ST_D3 = -120;
static var ST_R1 = -121;
static var ST_R2 = -122;
}
Symbol 2401 MovieClip [__Packages.clsSimSet] Frame 0
class clsSimSet
{
var mName;
function clsSimSet (nameSet) {
mzSet = new Array();
mName = nameSet;
}
function add(obj) {
mzSet.push(obj);
}
function getCount() {
return(mzSet.length);
}
function getIndexObject(obj) {
var _local3 = mzSet.length;
var _local2 = 0;
while (_local2 < _local3) {
if (obj == getObject(_local2)) {
return(_local2);
}
_local2++;
}
return(-1);
}
function getObject(index) {
if ((index >= 0) && (index < mzSet.length)) {
return(mzSet[index]);
}
return(null);
}
function removeIndex(index) {
var _local3 = null;
if ((index >= 0) && (index < mzSet.length)) {
_local3 = mzSet[index];
mzSet.splice(index, 1);
}
return(_local3);
}
function remove(obj) {
var _local4 = mzSet.length;
var _local2 = 0;
while (_local2 < _local4) {
if (obj == mzSet[_local2]) {
break;
}
_local2++;
}
if (_local2 < _local4) {
var _local5 = new Array();
var _local3 = 0;
while (_local3 < _local4) {
if (_local3 != _local2) {
_local5.push(mzSet[_local3]);
}
_local3++;
}
delete mzSet;
mzSet = _local5;
}
}
function echo() {
var _local3 = mzSet.length;
var _local2 = 0;
while (_local2 < _local3) {
_local2++;
}
}
function free() {
if (mzSet) {
delete mzSet;
mzSet = null;
}
}
var mzSet = null;
}
Symbol 2402 MovieClip [__Packages.clsAcbMoveTo] Frame 0
class clsAcbMoveTo extends clsAction
{
var mVel, mIniX, mGpx, mIniY, mEndX, mEndY, mVelX, mVelY, mActive, mController, mState;
function clsAcbMoveTo (actor, endPos, vel, active, controller) {
super(actor);
mVel = Math.abs(vel);
mIniX = mGpx.getX();
mIniY = mGpx.getY();
mEndX = endPos[0];
mEndY = endPos[1];
mDist = _global.vectorLength(mIniX - mEndX, mIniY - mEndY);
var _local4 = Math.atan2(mEndY - mIniY, mEndX - mIniX);
mVelX = mVel * Math.cos(_local4);
mVelY = mVel * Math.sin(_local4);
mActive = active;
mController = controller;
}
function isEnd() {
if (mGpx.__get___velX() != mVelX) {
mGpx.__set___velX(mVelX);
}
if (mGpx.__get___velY() != mVelY) {
mGpx.__set___velY(mVelY);
}
var _local4 = mGpx.getX();
var _local3 = mGpx.getY();
var _local5 = _global.vectorLength(_local4 - mIniX, _local3 - mIniY);
if (_local5 >= mDist) {
return(true);
}
return(false);
}
function update() {
switch (mState) {
case _global.ST_BEGIN :
mGpx.setVelocity(mVelX, mVelY);
mState = _global.ST_MOVE_TO_END;
break;
case _global.ST_MOVE_TO_END :
if (isEnd()) {
mGpx.setVelocity(0, 0);
mGpx.setPosition(mEndX, mEndY);
mState = _global.ST_END;
}
break;
case _global.ST_END :
mState = _global.ST_FINISH;
mGpx.setVelocity(0, 0);
mController.subUpdate(this);
}
}
var mDist = 0;
}
Symbol 2403 MovieClip [__Packages.clsHamster] Frame 0
class clsHamster extends clsActor
{
var mGpx, mLeft, __get__gpx;
function clsHamster (posX, posY) {
super("mc_hamster", posX, posY, _global.getRandom(_global.DEPTH_HAMSTER_MIN, _global.DEPTH_HAMSTER_MAX));
mGpx.setResponseMode(clsMCE.RESPONSE_MODE_KILL);
mLeft = true;
}
function orderStandLeft() {
mGpx.__get__clip().gotoAndStop("STAND");
mGpx.__get__clip()._xscale = 100;
mLeft = true;
}
function orderStandRight() {
mGpx.__get__clip().gotoAndStop("STAND");
if (mLeft) {
__get__gpx().clip._xscale = -100;
}
mLeft = false;
}
function orderLeft() {
mGpx.__get__clip().gotoAndStop("RUN");
__get__gpx().clip._xscale = 100;
mLeft = true;
}
function orderRight() {
mGpx.__get__clip().gotoAndStop("RUN");
if (mLeft) {
__get__gpx().clip._xscale = -100;
}
mLeft = false;
}
function orderDie() {
mGpx.__get__clip().gotoAndStop("DIE");
}
static var SPEED_MIN = 30;
static var SPEED_MAX = 40;
}
Symbol 2404 MovieClip [__Packages.clsActionHamster] Frame 0
class clsActionHamster extends clsAction
{
var mGpx, mActor;
function clsActionHamster (actor, actorBase) {
super(actor);
if (actorBase.__get__left()) {
actor.orderLeft();
} else {
actor.orderRight();
}
var _local6 = actorBase.__get__gpx().getY() + (actorBase.__get__gpx().clip._height / 2);
if (actorBase.__get__gpx().getX() > LIMIT) {
var _local7 = L_RIGHT;
} else {
var _local7 = L_LEFT;
}
mGpx.setPosition(_local7, _local6);
mGpx.__set___velX(_global.getRandom(clsHamster.SPEED_MIN, clsHamster.SPEED_MAX) * (mActor.__get__left() ? -1 : 1));
}
function update() {
if (mGpx.__get__state() == _global.ST_KILL) {
mActor.__set__state(_global.ST_KILL);
} else if (mGpx.__get__clip().mc_collision.hitTest(_global.player.mGpx.mc_ben.mc_collision)) {
_global.player.hit();
}
}
function onHit(param) {
if (mActor.__get__health() <= 0) {
mGpx.setVelocity(0, 0);
_global.game.createEffect("mc_fx_hit", mGpx.getX(), mGpx.getY());
mActor.__set__state(_global.ST_KILL);
}
}
function free() {
}
static var LIMIT = 300;
static var L_RIGHT = 700;
static var L_LEFT = -100;
}
Symbol 2405 MovieClip [__Packages.clsBoss_02] Frame 0
class clsBoss_02 extends clsActor
{
var mGpx, mLeft, __get__gpx;
function clsBoss_02 (posx, posy) {
super("mc_boss_02", posx, posy, _global.DEPTH_BOSS);
mGpx.setResponseMode(clsMCE.RESPONSE_MODE_RIGID);
mLeft = true;
}
function shoot() {
var _local7 = 8;
var _local10 = _global.SHOOT_NORMAL;
var _local4 = 1;
var _local6 = 3;
var _local3 = 70;
var _local5 = 500;
nCountShoot++;
if (nCountShoot == 1) {
var _local8 = -15;
var _local9 = -60;
} else {
var _local8 = 195;
var _local9 = 60;
nCountShoot = 0;
}
_global.game.createBulletEnemy("mc_bullet_boss2", mGpx.getX(), mGpx.getY(), _local7, _local10, _local4, _local8, _local9, _local6, _local5, _local3);
}
function orderStandSmall() {
mGpx.__get__clip().gotoAndStop("STAND_SMALL");
}
function orderLeftSmall() {
mGpx.__get__clip().gotoAndStop("LEFT_SMALL");
}
function orderMutate() {
mGpx.__get__clip().gotoAndStop("MUTATE");
}
function orderLeft() {
mGpx.__get__clip().gotoAndStop("WALK");
__get__gpx().clip._xscale = 100;
mLeft = true;
}
function orderRight() {
mGpx.__get__clip().gotoAndStop("WALK");
if (mLeft) {
__get__gpx().clip._xscale = -100;
}
mLeft = false;
}
function orderStandLeft() {
mGpx.__get__clip().gotoAndStop("STAND");
__get__gpx().clip._xscale = 100;
mLeft = true;
}
function orderStandRight() {
mGpx.__get__clip().gotoAndStop("STAND");
if (mLeft) {
__get__gpx().clip._xscale = -100;
}
mLeft = false;
}
function orderShootLeft() {
mGpx.__get__clip().gotoAndStop("SHOOT");
__get__gpx().clip._xscale = 100;
mLeft = true;
}
function orderShootRight() {
mGpx.__get__clip().gotoAndStop("SHOOT");
if (mLeft) {
__get__gpx().clip._xscale = -100;
}
mLeft = false;
}
function orderAttackLeft() {
mGpx.__get__clip().gotoAndStop("ATTACK1");
__get__gpx().clip._xscale = 100;
mLeft = true;
}
function orderAttackRight() {
mGpx.__get__clip().gotoAndStop("ATTACK1");
if (mLeft) {
__get__gpx().clip._xscale = -100;
}
mLeft = false;
}
function orderAttackCenter() {
mGpx.__get__clip().gotoAndStop("ATTACK2");
}
function orderHit() {
mGpx.__get__clip().gotoAndStop("HIT");
}
function orderAgonize() {
mGpx.__get__clip().gotoAndStop("AGONIZE");
}
function orderFall() {
mGpx.__get__clip().gotoAndStop("FALL");
}
function orderDie() {
mGpx.__get__clip().gotoAndStop("DIE");
}
var nCountShoot = 0;
}
Symbol 2406 MovieClip [__Packages.clsActionBoss_02] Frame 0
class clsActionBoss_02 extends clsAction
{
var mzAttackPositions, mActor, mState, mSubAction, mOldState, mNextState, mh, mk, ma, mb, mX1, mX2, mGpx;
function clsActionBoss_02 (actor) {
super(actor);
mzAttackPositions = new Array();
mActor.disableCollision(true);
}
function update() {
switch (mState) {
case _global.ST_BEGIN :
mActor.orderLeftSmall();
mSubAction = new clsAcbMoveTo(mActor, mzAttackPositions[0], SPEED_LINEAL, true, this);
mOldState = _global.ST_BEGIN;
mState = ST_MOVE_LINEAL;
mNextState = ST_01;
mh = (mzAttackPositions[0][0] + mzAttackPositions[1][0]) / 2;
mk = mzAttackPositions[0][1];
ma = (mzAttackPositions[0][0] - mzAttackPositions[1][0]) / 2;
mb = MB;
mX1 = mzAttackPositions[0][0];
mX2 = mzAttackPositions[1][0];
break;
case ST_01 :
if (mOldState != mState) {
mActor.orderMutate();
mOldState = mState;
mNextState = ST_02;
}
break;
case ST_02 :
if (mTimeRest <= _global.TIMER) {
mOldState = mState;
mState = ST_03;
}
break;
case ST_03 :
mActor.orderLeft();
mTrajectory = new clsEllipse(mh, mk, ma, mb, mX1, "down", mX2, "down", SPEED_CURVE);
mOldState = mState;
mState = ST_MOVE_CURVE;
mNextState = ST_04;
break;
case ST_04 :
if (mTimeRest <= _global.TIMER) {
mOldState = mState;
mState = ST_05;
}
break;
case ST_05 :
if (mOldState != mState) {
mActor.disableCollision(true);
mActor.orderShootRight();
mOldState = mState;
mNextState = ST_06;
}
break;
case ST_06 :
if (mTimeRest <= _global.TIMER) {
mOldState = mState;
mState = ST_07;
}
break;
case ST_07 :
mActor.orderRight();
mTrajectory = new clsEllipse(mh, mk, ma, mb, mX2, "down", mX1, "down", -SPEED_CURVE);
mOldState = mState;
mState = ST_MOVE_CURVE;
mNextState = ST_08;
break;
case ST_08 :
if (mTimeRest <= _global.TIMER) {
mOldState = mState;
mState = ST_09;
}
break;
case ST_09 :
if (mOldState != mState) {
mActor.disableCollision(true);
mActor.orderShootLeft();
mOldState = mState;
mNextState = ST_10;
}
break;
case ST_10 :
if (mTimeRest <= _global.TIMER) {
mOldState = mState;
mState = ST_11;
}
break;
case ST_11 :
mActor.orderRight();
mSubAction = new clsAcbMoveTo(mActor, [F3_X, F2_Y], SPEED_LINEAL, true, this);
mOldState = mState;
mState = ST_MOVE_LINEAL;
mNextState = ST_12;
break;
case ST_12 :
if (mTimeRest <= _global.TIMER) {
mActor.disableCollision(false);
mOldState = mState;
mState = ST_13;
}
break;
case ST_13 :
mActor.orderAttackLeft();
mActor.__get__gpx().setPosition(F3_X, F3_Y);
mSubAction = new clsAcbMoveTo(mActor, [F1_X, F3_Y], SPEED_ATTACK, true, this);
mOldState = mState;
mState = ST_MOVE_LINEAL;
mNextState = ST_14;
break;
case ST_14 :
if (mTimeRest <= _global.TIMER) {
mActor.disableCollision(false);
mOldState = mState;
mState = ST_15;
}
break;
case ST_15 :
mActor.orderAttackRight();
mActor.__get__gpx().setPosition(F1_X, F2_Y);
mSubAction = new clsAcbMoveTo(mActor, [F3_X, F2_Y], SPEED_ATTACK, true, this);
mOldState = mState;
mState = ST_MOVE_LINEAL;
mNextState = ST_16;
break;
case ST_16 :
if (mTimeRest <= _global.TIMER) {
mOldState = mState;
mState = ST_17;
}
break;
case ST_17 :
mActor.__get__gpx().setPosition(F2_X, F1_Y);
mSubAction = new clsAcbMoveTo(mActor, [F2_X, F4_Y], SPEED_ATTACK_CENTER, true, this);
mActor.orderAttackCenter();
mOldState = mState;
mState = ST_MOVE_LINEAL;
mNextState = ST_18;
break;
case ST_18 :
if (mTimeRest <= _global.TIMER) {
mActor.disableCollision(false);
mOldState = mState;
mState = ST_19;
}
break;
case ST_19 :
mActor.__get__gpx().setPosition(F3_X, F2_Y);
mSubAction = new clsAcbMoveTo(mActor, mzAttackPositions[0], SPEED_LINEAL, true, this);
mActor.orderLeft();
mOldState = mState;
mState = ST_MOVE_LINEAL;
mNextState = ST_02;
break;
case ST_MOVE_LINEAL :
if ((mOldState == ST_17) && (mGpx.__get__pause() != true)) {
mScale = mScale + SPEED_GROW;
mActor.__get__gpx().setScale(mScale);
}
mSubAction.update();
break;
case ST_MOVE_CURVE :
mTrajectory.update();
mActor.__get__gpx().setPosition(mTrajectory.__get___X(), mTrajectory.__get___Y());
if (!mTrajectory.__get___End()) {
break;
}
onSubActionEnd();
delete mTrajectory;
mTrajectory = null;
}
if (mGpx.__get__clip().mc_collision.hitTest(_global.player.mGpx.mc_ben.mc_collision)) {
_global.player.hit();
}
checkCollisionPunchPlayer();
}
function onSubActionEnd() {
switch (mOldState) {
case _global.ST_BEGIN :
break;
case ST_03 :
mActor.orderStandRight();
mTimeRest = mVarTimeRest + _global.TIMER;
break;
case ST_07 :
mActor.orderStandLeft();
mTimeRest = mVarTimeRest + _global.TIMER;
break;
case ST_11 :
mActor.disableCollision(true);
mTimeRest = TIME_REST_OUT + _global.TIMER;
break;
case ST_13 :
mActor.disableCollision(true);
mTimeRest = TIME_REST_OUT + _global.TIMER;
break;
case ST_15 :
mActor.disableCollision(true);
mTimeRest = TIME_REST_OUT + _global.TIMER;
break;
case ST_17 :
mScale = SCALE_INI;
mActor.__get__gpx().setScale(SCALE_INI);
mTimeRest = TIME_REST_OUT + _global.TIMER;
break;
case ST_19 :
mActor.orderStandLeft();
mTimeRest = mVarTimeRest + _global.TIMER;
break;
case ST_AGONIZE :
mActor.orderDie();
}
mState = mNextState;
}
function onAnimationEnd() {
switch (mState) {
case ST_01 :
mActor.disableCollision(false);
mActor.orderStandLeft();
mTimeRest = mVarTimeRest + _global.TIMER;
mState = mNextState;
break;
case ST_05 :
mActor.orderStandRight();
mTimeRest = mVarTimeRest + _global.TIMER;
mState = mNextState;
mActor.disableCollision(false);
break;
case ST_09 :
mActor.orderStandLeft();
mTimeRest = mVarTimeRest + _global.TIMER;
mState = mNextState;
mActor.disableCollision(false);
break;
case ST_AGONIZE :
mActor.orderFall();
mSubAction = new clsAcbMoveTo(mActor, [mActor.__get__gpx().getX(), LIMIT_FALL], SPEED_FALL, true, this);
mOldState = ST_AGONIZE;
mState = ST_MOVE_LINEAL;
mNextState = ST_DIE;
break;
case ST_DIE :
mActor.__set__state(_global.ST_KILL);
}
}
function onHit(param) {
if (mActor.__get__health() <= 0) {
_global.playerActiveChange = false;
if (mSubAction) {
mSubAction.free();
delete mSubAction;
mSubAction = null;
}
if (mTrajectory) {
delete mTrajectory;
mTrajectory = null;
}
mGpx.setVelocity(0, 0);
mActor.orderAgonize();
mState = ST_AGONIZE;
mActor.disableCollision(true);
mGpx.setPause(false);
}
}
function checkCollision(clip, damage) {
var _local6;
var _local3 = false;
if (mGpx.__get__clip().mc_collision_punch_bullets.hitTest(clip)) {
if (mActor.isCollisionActive()) {
mActor.processHit(_global.DAMAGE_FIXED, damage, 0);
}
_local3 = true;
}
return(_local3);
}
function checkCollisionPunchPlayer() {
if (_global.activePlayer != _global.PLAYER_CANNONBOLT) {
checkCollision(_global.player.mGpx.mc_ben.mc_collision_punch, _global.DMG_PUNCH);
} else {
checkCollision(_global.player.mGpx.mc_ben.mc_collision_invincible, _global.DMG_PUNCH);
}
}
function free() {
delete mzAttackPositions;
delete mTrajectory;
}
static var SPEED_LINEAL = 20;
static var SPEED_ATTACK_CENTER = 40;
static var SPEED_ATTACK = 80;
static var SPEED_CURVE = 3;
static var SPEED_FALL = 20;
static var LIMIT_FALL = 280;
static var F1_Y = -100;
static var F2_Y = 100;
static var F3_Y = 275;
static var F4_Y = 520;
static var F1_X = -100;
static var F2_X = 300;
static var F3_X = 700;
var mTrajectory = null;
static var MB = 100;
static var SPEED_GROW = 6;
static var SCALE_INI = 100;
var mScale = SCALE_INI;
static var TIME_REST_INI = 2000;
static var TIME_REST_OUT = 0;
var mVarTimeRest = TIME_REST_INI;
var mTimeRest = 0;
static var ST_MOVE_LINEAL = -100;
static var ST_MOVE_CURVE = -99;
static var ST_01 = -101;
static var ST_02 = -102;
static var ST_03 = -103;
static var ST_04 = -104;
static var ST_05 = -105;
static var ST_06 = -106;
static var ST_07 = -107;
static var ST_08 = -108;
static var ST_09 = -109;
static var ST_10 = -110;
static var ST_11 = -111;
static var ST_12 = -112;
static var ST_13 = -113;
static var ST_14 = -114;
static var ST_15 = -115;
static var ST_16 = -116;
static var ST_17 = -117;
static var ST_18 = -118;
static var ST_19 = -119;
static var ST_AGONIZE = -120;
static var ST_DIE = -121;
}
Symbol 2407 MovieClip [__Packages.clsEllipse] Frame 0
class clsEllipse
{
var mh, mk, ma, mb, mX, mAng, mY, mX2, mVel, n, mQ, mQ_Old;
function clsEllipse (h, k, a, b, x1, dirXIni, x2, dirYEnd, theta) {
mh = h;
mk = k;
ma = a;
mb = b;
mX = x1;
mAng = Math.acos((x1 - mh) / ma);
if (dirXIni == "up") {
mAng = -mAng;
}
mY = mk + (mb * Math.sin(mAng));
mX2 = x2;
mVel = theta * (Math.PI/180);
PositionEnd(dirYEnd);
}
function get _End() {
return(mEnd);
}
function get _X() {
return(mX);
}
function get _Y() {
return(mY);
}
function PositionEnd(S) {
switch (S) {
case "up" :
if (mX2 > mh) {
n = 2;
} else if (mX2 < mh) {
n = 3;
} else if (mX2 == mh) {
n = -1;
}
break;
case "down" :
if (mX2 > mh) {
n = 1;
} else if (mX2 < mh) {
n = 4;
} else {
if (mX2 != mh) {
break;
}
n = -2;
}
}
}
function update() {
mAng = mAng + mVel;
mX = mh + (ma * Math.cos(mAng));
mY = mk + (mb * Math.sin(mAng));
checkQuadrant();
switch (mQ) {
case 1 :
checkMoveDown();
mQ_Old = mQ;
break;
case 2 :
checkMoveUp();
mQ_Old = mQ;
break;
case 3 :
checkMoveUp();
mQ_Old = mQ;
break;
case 4 :
checkMoveDown();
mQ_Old = mQ;
break;
case 5 :
}
}
function checkMoveDown() {
if ((mQ == n) || (n == -2)) {
if (mVel > 0) {
if (mX <= mX2) {
mX = mX2;
mAng = Math.acos((mX2 - mh) / ma);
mY = mk + (mb * Math.sin(mAng));
mQ = 5;
mEnd = true;
}
} else if (mX >= mX2) {
mX = mX2;
mAng = Math.acos((mX2 - mh) / ma);
mY = mk + (mb * Math.sin(mAng));
mQ = 5;
mEnd = true;
}
} else if (((mQ_Old == 2) && (mX2 == (mh + ma))) || ((mQ_Old == 3) && (mX2 == (mh - ma)))) {
mX = mX2;
mAng = Math.acos((mX2 - mh) / ma);
mY = mk - (mb * Math.sin(mAng));
mQ = 5;
mEnd = true;
}
}
function checkMoveUp() {
if ((mQ == n) || (n == -1)) {
if (mVel > 0) {
if (mX >= mX2) {
mX = mX2;
mAng = Math.acos((mX2 - mh) / ma);
mY = mk - (mb * Math.sin(mAng));
mQ = 5;
mEnd = true;
}
} else if (mX <= mX2) {
mX = mX2;
mAng = Math.acos((mX2 - mh) / ma);
mY = mk - (mb * Math.sin(mAng));
mQ = 5;
mEnd = true;
}
} else if (((mQ_Old == 1) && (mX2 == (mh + ma))) || ((mQ_Old == 4) && (mX2 == (mh - ma)))) {
mX = mX2;
mAng = Math.acos((mX2 - mh) / ma);
mY = mk + (mb * Math.sin(mAng));
mQ = 5;
mEnd = true;
}
}
function checkQuadrant() {
if ((mX > mh) && (mY > mk)) {
mQ = 1;
} else if ((mX > mh) && (mY < mk)) {
mQ = 2;
} else if ((mX < mh) && (mY < mk)) {
mQ = 3;
} else if ((mX < mh) && (mY > mk)) {
mQ = 4;
}
}
var mEnd = false;
}
Symbol 2408 MovieClip [__Packages.clsBoss_03] Frame 0
class clsBoss_03 extends clsActor
{
var mGpx, mLeft, __get__gpx;
function clsBoss_03 (posx, posy) {
super("mc_boss_03", posx, posy, _global.DEPTH_BOSS);
mGpx.setResponseMode(clsMCE.RESPONSE_MODE_RIGID);
mLeft = true;
}
function orderJumpUpSmall() {
mGpx.__get__clip().gotoAndStop("JMP_UP_SMALL");
}
function orderJumpDownSmall() {
mGpx.__get__clip().gotoAndStop("JMP_DOWN_SMALL");
}
function orderMutate() {
mGpx.__get__clip().gotoAndStop("MUTATE");
}
function orderStandLeft() {
mGpx.__get__clip().gotoAndStop("STAND");
__get__gpx().clip._xscale = 100;
mLeft = true;
}
function orderStandRight() {
mGpx.__get__clip().gotoAndStop("STAND");
if (mLeft) {
__get__gpx().clip._xscale = -100;
}
mLeft = false;
}
function orderJumpUpLeft() {
mGpx.__get__clip().gotoAndStop("JUMP_UP");
__get__gpx().clip._xscale = 100;
mLeft = true;
}
function orderJumpDownLeft() {
mGpx.__get__clip().gotoAndStop("JUMP_DOWN");
__get__gpx().clip._xscale = 100;
mLeft = true;
}
function orderJumpUpRight() {
mGpx.__get__clip().gotoAndStop("JUMP_UP");
if (mLeft) {
__get__gpx().clip._xscale = -100;
}
mLeft = false;
}
function orderJumpDownRight() {
mGpx.__get__clip().gotoAndStop("JUMP_DOWN");
if (mLeft) {
__get__gpx().clip._xscale = -100;
}
mLeft = false;
}
function orderAttack1Left() {
mGpx.__get__clip().gotoAndStop("ATTACK_DOWN_1");
__get__gpx().clip._xscale = 100;
mLeft = true;
}
function orderAttack1Right() {
mGpx.__get__clip().gotoAndStop("ATTACK_DOWN_1");
if (mLeft) {
__get__gpx().clip._xscale = -100;
}
mLeft = false;
}
function orderAttack2Left() {
mGpx.__get__clip().gotoAndStop("ATTACK_DOWN_2");
__get__gpx().clip._xscale = 100;
mLeft = true;
}
function orderAttack2Right() {
mGpx.__get__clip().gotoAndStop("ATTACK_DOWN_2");
if (mLeft) {
__get__gpx().clip._xscale = -100;
}
mLeft = false;
}
function orderAttack3() {
mGpx.__get__clip().gotoAndStop("ATTACK_UP");
}
function orderHit() {
mGpx.__get__clip().gotoAndStop("HIT");
}
function orderAgonize() {
mGpx.__get__clip().gotoAndStop("AGONIZE");
}
function orderFall() {
mGpx.__get__clip().gotoAndStop("FALL");
}
function orderDie() {
mGpx.__get__clip().gotoAndStop("DIE");
}
function orderDieFall() {
mGpx.__get__clip().gotoAndStop("DIE_FALL");
}
}
Symbol 2409 MovieClip [__Packages.clsActionBoss_03] Frame 0
class clsActionBoss_03 extends clsAction
{
var mzAttackPositions, mActor, mState, mOldState, mNextState, mh, mk, ma, mb, mX1, mX2, mSubAction, mGpx, numMotion, idMotion;
function clsActionBoss_03 (actor) {
super(actor);
mzAttackPositions = new Array();
mActor.disableCollision(true);
mState = ST_01;
}
function update() {
switch (mState) {
case ST_01 :
mTrajectory = new clsEllipse(mzAttackPositions[0][0] + JUMP_SMALL, mzAttackPositions[0][1], JUMP_SMALL, JUMP_SMALL, mzAttackPositions[0][0] + (2 * JUMP_SMALL), "up", mzAttackPositions[0][0] + JUMP_SMALL, "up", -SPEED_JUMP);
mActor.orderJumpUpSmall();
mOldState = mState;
mState = ST_MOVE_CURVE;
mNextState = ST_02;
break;
case ST_02 :
mTrajectory = new clsEllipse(mzAttackPositions[0][0] + JUMP_SMALL, mzAttackPositions[0][1], JUMP_SMALL, JUMP_SMALL, mzAttackPositions[0][0] + JUMP_SMALL, "up", mzAttackPositions[0][0], "up", -SPEED_JUMP);
mActor.orderJumpDownSmall();
mOldState = mState;
mState = ST_MOVE_CURVE;
mNextState = ST_03;
break;
case ST_03 :
if (mOldState != mState) {
mActor.orderMutate();
mOldState = mState;
mNextState = ST_04;
}
break;
case ST_04 :
if (mTimeRest <= _global.TIMER) {
mOldState = mState;
mState = ST_05;
}
break;
case ST_05 :
mh = (mzAttackPositions[0][0] + mzAttackPositions[1][0]) / 2;
mk = mzAttackPositions[0][1];
ma = (mzAttackPositions[0][0] - mzAttackPositions[1][0]) / 2;
mb = JUMP_HIGH;
mX1 = mzAttackPositions[0][0];
mX2 = mzAttackPositions[1][0];
mActor.orderJumpUpLeft();
mTrajectory = new clsEllipse(mh, mk, ma, mb, mX1, "up", mh, "up", -SPEED_JUMP);
mOldState = mState;
mState = ST_MOVE_CURVE;
mNextState = ST_06;
break;
case ST_06 :
mActor.orderJumpDownLeft();
mTrajectory = new clsEllipse(mh, mk, ma, mb, mh, "up", mX2, "up", -SPEED_JUMP);
mOldState = mState;
mState = ST_MOVE_CURVE;
mNextState = ST_07;
break;
case ST_07 :
rock1.update();
rock2.update();
rock3.update();
if (rock1.state == _global.ST_KILL) {
delete rock1;
}
if (rock2.state == _global.ST_KILL) {
delete rock2;
}
if (rock3.state == _global.ST_KILL) {
delete rock3;
}
if ((((!rock1) && (!rock2)) && (!rock3)) && (mNextState != ST_DIE)) {
mOldState = mState;
mState = ST_08;
}
break;
case ST_08 :
mh = (mzAttackPositions[1][0] + mzAttackPositions[2][0]) / 2;
ma = (mzAttackPositions[2][0] - mzAttackPositions[1][0]) / 2;
mb = JUMP_HIGH_SMALL;
mX1 = mzAttackPositions[1][0];
mX2 = mzAttackPositions[2][0];
mActor.orderJumpUpRight();
mTrajectory = new clsEllipse(mh, mk, ma, mb, mX1, "up", mh, "up", SPEED_JUMP);
mOldState = mState;
mState = ST_MOVE_CURVE;
mNextState = ST_09;
break;
case ST_09 :
mActor.orderJumpDownRight();
mTrajectory = new clsEllipse(mh, mk, ma, mb, mh, "up", mX2, "up", SPEED_JUMP);
mOldState = mState;
mState = ST_MOVE_CURVE;
mNextState = ST_10;
break;
case ST_10 :
if (mTimeRest <= _global.TIMER) {
mOldState = mState;
mState = ST_11;
}
break;
case ST_11 :
if (mOldState != mState) {
mActor.orderAttack1Right();
mOldState = mState;
mNextState = ST_12;
}
break;
case ST_12 :
if (mTimeRest <= _global.TIMER) {
mOldState = mState;
mState = ST_13;
}
break;
case ST_13 :
if (mOldState != mState) {
mActor.orderAttack2Right();
mOldState = mState;
mNextState = ST_14;
}
break;
case ST_14 :
if (mTimeRest <= _global.TIMER) {
mOldState = mState;
mState = ST_17;
}
break;
case ST_15 :
if (mOldState != mState) {
mActor.orderAttack3();
mOldState = mState;
mNextState = ST_16;
}
break;
case ST_16 :
if (mTimeRest <= _global.TIMER) {
mOldState = mState;
mState = ST_17;
}
break;
case ST_17 :
if (mOldState != mState) {
mActor.orderAttack2Left();
mOldState = mState;
mNextState = ST_18;
}
break;
case ST_18 :
if (mTimeRest <= _global.TIMER) {
mOldState = mState;
mState = ST_19;
}
break;
case ST_19 :
if (mOldState != mState) {
mActor.orderAttack1Left();
mOldState = mState;
mNextState = ST_20;
}
break;
case ST_20 :
if (mTimeRest <= _global.TIMER) {
mOldState = mState;
mState = ST_21;
}
break;
case ST_21 :
mb = JUMP_HIGH_SMALL;
mActor.orderJumpUpLeft();
mTrajectory = new clsEllipse(mh, mk, ma, mb, mX2, "up", mh, "up", -SPEED_JUMP);
mOldState = mState;
mState = ST_MOVE_CURVE;
mNextState = ST_22;
break;
case ST_22 :
mActor.orderJumpDownLeft();
mTrajectory = new clsEllipse(mh, mk, ma, mb, mh, "up", mX1, "up", -SPEED_JUMP);
mOldState = mState;
mState = ST_MOVE_CURVE;
mNextState = ST_23;
break;
case ST_23 :
if (mTimeRest <= _global.TIMER) {
mOldState = mState;
mState = ST_24;
}
break;
case ST_24 :
mh = (mzAttackPositions[0][0] + mzAttackPositions[1][0]) / 2;
mk = mzAttackPositions[0][1];
ma = (mzAttackPositions[0][0] - mzAttackPositions[1][0]) / 2;
mb = JUMP_HIGH;
mX1 = mzAttackPositions[1][0];
mX2 = mzAttackPositions[0][0];
mActor.orderJumpUpRight();
mTrajectory = new clsEllipse(mh, mk, ma, mb, mX1, "up", mh, "up", SPEED_JUMP);
mOldState = mState;
mState = ST_MOVE_CURVE;
mNextState = ST_25;
break;
case ST_25 :
mActor.orderJumpDownRight();
mTrajectory = new clsEllipse(mh, mk, ma, mb, mh, "up", mX2, "up", SPEED_JUMP);
mOldState = mState;
mState = ST_MOVE_CURVE;
mNextState = ST_26;
break;
case ST_26 :
rock1.update();
rock2.update();
rock3.update();
if (rock1.state == _global.ST_KILL) {
delete rock1;
}
if (rock2.state == _global.ST_KILL) {
delete rock2;
}
if (rock3.state == _global.ST_KILL) {
delete rock3;
}
if ((((!rock1) && (!rock2)) && (!rock3)) && (mNextState != ST_DIE)) {
mOldState = mState;
mState = ST_27;
}
break;
case ST_27 :
mh = (mzAttackPositions[0][0] + mzAttackPositions[2][0]) / 2;
ma = (mzAttackPositions[0][0] - mzAttackPositions[2][0]) / 2;
mb = JUMP_HIGH_SMALL;
mX1 = mzAttackPositions[0][0];
mX2 = mzAttackPositions[2][0];
mActor.orderJumpUpLeft();
mTrajectory = new clsEllipse(mh, mk, ma, mb, mX1, "up", mh, "up", -SPEED_JUMP);
mOldState = mState;
mState = ST_MOVE_CURVE;
mNextState = ST_28;
break;
case ST_28 :
mActor.orderJumpDownLeft();
mTrajectory = new clsEllipse(mh, mk, ma, mb, mh, "up", mX2, "up", -SPEED_JUMP);
mOldState = mState;
mState = ST_MOVE_CURVE;
mNextState = ST_29;
break;
case ST_29 :
if (mTimeRest <= _global.TIMER) {
mOldState = mState;
mState = ST_30;
}
break;
case ST_30 :
if (mOldState != mState) {
mActor.orderAttack1Left();
mOldState = mState;
mNextState = ST_31;
}
break;
case ST_31 :
if (mTimeRest <= _global.TIMER) {
mOldState = mState;
mState = ST_32;
}
break;
case ST_32 :
if (mOldState != mState) {
mActor.orderAttack2Left();
mOldState = mState;
mNextState = ST_33;
}
break;
case ST_33 :
if (mTimeRest <= _global.TIMER) {
mOldState = mState;
mState = ST_36;
}
break;
case ST_34 :
if (mOldState != mState) {
mActor.orderAttack3();
mOldState = mState;
mNextState = ST_35;
}
break;
case ST_35 :
if (mTimeRest <= _global.TIMER) {
mOldState = mState;
mState = ST_36;
}
break;
case ST_36 :
if (mOldState != mState) {
mActor.orderAttack2Right();
mOldState = mState;
mNextState = ST_37;
}
break;
case ST_37 :
if (mTimeRest <= _global.TIMER) {
mOldState = mState;
mState = ST_38;
}
break;
case ST_38 :
if (mOldState != mState) {
mActor.orderAttack1Right();
mOldState = mState;
mNextState = ST_39;
}
break;
case ST_39 :
if (mTimeRest <= _global.TIMER) {
mOldState = mState;
mState = ST_40;
}
break;
case ST_40 :
mh = (mzAttackPositions[0][0] + mzAttackPositions[2][0]) / 2;
ma = (mzAttackPositions[0][0] - mzAttackPositions[2][0]) / 2;
mb = JUMP_HIGH_SMALL;
mX1 = mzAttackPositions[2][0];
mX2 = mzAttackPositions[0][0];
mActor.orderJumpUpRight();
mTrajectory = new clsEllipse(mh, mk, ma, mb, mX1, "up", mh, "up", SPEED_JUMP);
mOldState = mState;
mState = ST_MOVE_CURVE;
mNextState = ST_41;
break;
case ST_41 :
mActor.orderJumpDownRight();
mTrajectory = new clsEllipse(mh, mk, ma, mb, mh, "up", mX2, "up", SPEED_JUMP);
mOldState = mState;
mState = ST_MOVE_CURVE;
mNextState = ST_04;
break;
case ST_MOVE_LINEAL :
mSubAction.update();
break;
case ST_MOVE_CURVE :
mTrajectory.update();
mActor.__get__gpx().setPosition(mTrajectory.__get___X(), mTrajectory.__get___Y());
if (!mTrajectory.__get___End()) {
break;
}
onSubActionEnd();
delete mTrajectory;
mTrajectory = null;
}
if (mGpx.__get__clip().mc_collision.hitTest(_global.player.mGpx.mc_ben.mc_collision)) {
_global.player.hit();
}
checkCollisionPunchPlayer();
}
function motionBack() {
numMotion++;
if (numMotion < 6) {
_root._x = -3 + random(6);
_root._y = -3 + random(6);
} else {
numMotion = 0;
_root._x = 0;
_root._y = 0;
clearInterval(idMotion);
}
}
function onSubActionEnd() {
switch (mOldState) {
case ST_06 :
numMotion = 0;
clearInterval(idMotion);
idMotion = setInterval(this, "motionBack", 50);
mActor.orderStandRight();
rock1 = new clsRock(_root, "mc_rock1", ROCK2_X, ROCK_Y, SP_ROCK2);
rock2 = new clsRock(_root, "mc_rock2", ROCK3_X, ROCK_Y, SP_ROCK3);
rock3 = new clsRock(_root, "mc_rock3", ROCK4_X, ROCK_Y, SP_ROCK4);
break;
case ST_09 :
mActor.orderStandRight();
mTimeRest = REST_JUMP + _global.TIMER;
break;
case ST_22 :
mActor.orderStandRight();
mTimeRest = REST_JUMP + _global.TIMER;
break;
case ST_25 :
numMotion = 0;
clearInterval(idMotion);
idMotion = setInterval(this, "motionBack", 50);
mActor.orderStandLeft();
rock1 = new clsRock(_root, "mc_rock1", ROCK1_X, ROCK_Y, SP_ROCK1);
rock2 = new clsRock(_root, "mc_rock2", ROCK2_X, ROCK_Y, SP_ROCK2);
rock3 = new clsRock(_root, "mc_rock3", ROCK3_X, ROCK_Y, SP_ROCK3);
break;
case ST_28 :
mActor.orderStandLeft();
mTimeRest = REST_JUMP + _global.TIMER;
break;
case ST_41 :
mActor.orderStandLeft();
mTimeRest = REST_JUMP + _global.TIMER;
break;
case ST_AGONIZE :
mActor.orderDieFall();
}
mState = mNextState;
}
function onAnimationEnd() {
switch (mState) {
case ST_03 :
mActor.orderStandLeft();
mState = mNextState;
mTimeRest = REST_JUMP + _global.TIMER;
mActor.disableCollision(false);
break;
case ST_07 :
if (mNextState == ST_DIE) {
mState = ST_DIE;
mActor.__set__state(_global.ST_KILL);
rock1.free();
rock2.free();
rock3.free();
delete rock1;
delete rock2;
delete rock3;
}
break;
case ST_11 :
mActor.orderStandRight();
mState = mNextState;
mTimeRest = REST_ATTACK + _global.TIMER;
break;
case ST_13 :
mActor.orderStandRight();
mState = mNextState;
mTimeRest = REST_ATTACK + _global.TIMER;
break;
case ST_15 :
mActor.orderStandLeft();
mState = mNextState;
mTimeRest = REST_ATTACK + _global.TIMER;
break;
case ST_17 :
mActor.orderStandLeft();
mState = mNextState;
mTimeRest = REST_ATTACK + _global.TIMER;
break;
case ST_19 :
mActor.orderStandLeft();
mState = mNextState;
mTimeRest = REST_JUMP + _global.TIMER;
break;
case ST_26 :
if (mNextState == ST_DIE) {
mState = ST_DIE;
mActor.__set__state(_global.ST_KILL);
rock1.free();
rock2.free();
rock3.free();
delete rock1;
delete rock2;
delete rock3;
}
break;
case ST_30 :
mActor.orderStandLeft();
mState = mNextState;
mTimeRest = REST_ATTACK + _global.TIMER;
break;
case ST_32 :
mActor.orderStandLeft();
mState = mNextState;
mTimeRest = REST_ATTACK + _global.TIMER;
break;
case ST_34 :
mActor.orderStandLeft();
mState = mNextState;
mTimeRest = REST_ATTACK + _global.TIMER;
break;
case ST_36 :
mActor.orderStandRight();
mState = mNextState;
mTimeRest = REST_ATTACK + _global.TIMER;
break;
case ST_38 :
mActor.orderStandRight();
mState = mNextState;
mTimeRest = REST_JUMP + _global.TIMER;
break;
case ST_AGONIZE :
mSubAction = new clsAcbMoveTo(mActor, [mActor.__get__gpx().getX(), mk], SPEED_FALL, true, this);
mOldState = ST_AGONIZE;
mState = ST_MOVE_LINEAL;
mNextState = ST_DIE;
break;
case ST_DIE :
mActor.__set__state(_global.ST_KILL);
}
}
function onHit(param) {
if (mActor.__get__health() <= 0) {
_global.playerActiveChange = false;
if (mTrajectory) {
delete mTrajectory;
mTrajectory = null;
}
mGpx.setVelocity(0, 0);
if (mState == ST_MOVE_CURVE) {
mActor.orderAgonize();
mState = ST_AGONIZE;
} else {
switch (mState) {
case ST_07 :
case ST_26 :
mActor.orderDie();
mNextState = ST_DIE;
break;
default :
mActor.orderDie();
mState = ST_DIE;
}
}
mActor.disableCollision(true);
}
}
function checkCollision(clip, damage) {
var _local6;
var _local3 = false;
if (mGpx.__get__clip().mc_collision_punch_bullets.hitTest(clip)) {
if (mActor.isCollisionActive()) {
mActor.processHit(_global.DAMAGE_FIXED, damage, 0);
}
_local3 = true;
}
return(_local3);
}
function checkCollisionPunchPlayer() {
if (_global.activePlayer != _global.PLAYER_CANNONBOLT) {
checkCollision(_global.player.mGpx.mc_ben.mc_collision_punch, _global.DMG_PUNCH);
} else {
checkCollision(_global.player.mGpx.mc_ben.mc_collision_invincible, _global.DMG_PUNCH);
}
}
function free() {
rock1.free();
rock2.free();
rock3.free();
delete mzAttackPositions;
delete rock1;
delete rock2;
delete rock3;
}
var mTimeRest = 0;
static var REST_ATTACK = 0;
static var REST_JUMP = 1000;
var mTrajectory = null;
static var JUMP_SMALL = 50;
static var JUMP_HIGH = 250;
static var JUMP_HIGH_SMALL = 140;
static var SPEED_JUMP = 5;
static var SPEED_FALL = 20;
static var ST_MOVE_LINEAL = -99;
static var ST_MOVE_CURVE = -100;
static var ST_01 = -101;
static var ST_02 = -102;
static var ST_03 = -103;
static var ST_04 = -104;
static var ST_05 = -105;
static var ST_06 = -106;
static var ST_07 = -107;
static var ST_08 = -108;
static var ST_09 = -109;
static var ST_10 = -110;
static var ST_11 = -111;
static var ST_12 = -112;
static var ST_13 = -113;
static var ST_14 = -114;
static var ST_15 = -115;
static var ST_16 = -116;
static var ST_17 = -117;
static var ST_18 = -118;
static var ST_19 = -119;
static var ST_20 = -120;
static var ST_21 = -121;
static var ST_22 = -122;
static var ST_23 = -123;
static var ST_24 = -124;
static var ST_25 = -125;
static var ST_26 = -126;
static var ST_27 = -127;
static var ST_28 = -128;
static var ST_29 = -129;
static var ST_30 = -130;
static var ST_31 = -131;
static var ST_32 = -132;
static var ST_33 = -133;
static var ST_34 = -134;
static var ST_35 = -135;
static var ST_36 = -136;
static var ST_37 = -137;
static var ST_38 = -138;
static var ST_39 = -139;
static var ST_40 = -140;
static var ST_41 = -141;
static var ST_AGONIZE = -142;
static var ST_DIE = -143;
static var ST_HIT = -144;
var rock1 = null;
var rock2 = null;
var rock3 = null;
static var ROCK1_X = 72;
static var ROCK2_X = 227;
static var ROCK3_X = 372;
static var ROCK4_X = 517;
static var ROCK_Y = -10;
static var SP_ROCK1 = 8;
static var SP_ROCK2 = 10;
static var SP_ROCK3 = 12;
static var SP_ROCK4 = 9;
}
Symbol 2410 MovieClip [__Packages.clsRock] Frame 0
class clsRock
{
var mGpx;
function clsRock (parent, clip, x, y, sp) {
var _local2 = clsGame.getNextCreationDepth();
mGpx = parent.attachMovie(clip, clip + _local2, _local2);
mGpx._x = x;
mGpx._y = y;
mSpeed = sp;
mGpx.gotoAndStop("STAND");
}
function update() {
mGpx._y = mGpx._y + mSpeed;
if (mGpx.hitTest(_global.player.mGpx.mc_ben.mc_collision)) {
_global.player.hit();
if (_global.level == 10) {
_global.boss.mAction.mAnimo.activeAnimation("CHEER");
}
}
if (mGpx._y >= LIMIT_Y) {
free();
}
}
function free() {
mGpx.removeMovieClip();
state = _global.ST_KILL;
}
var state = 0;
var mSpeed = 0;
static var LIMIT_Y = 450;
}
Symbol 2411 MovieClip [__Packages.clsBoss_04] Frame 0
class clsBoss_04 extends clsActor
{
var mGpx, mLeft, __get__gpx;
function clsBoss_04 (posx, posy) {
super("mc_boss_04", posx, posy, _global.DEPTH_BOSS);
mGpx.setResponseMode(clsMCE.RESPONSE_MODE_RIGID);
mLeft = true;
}
function shoot() {
var _local6 = 8;
var _local9 = _global.SHOOT_NORMAL;
var _local3 = 0;
var _local5 = 1;
var _local2 = 232.6;
var _local4 = 500;
var _local7 = 90;
var _local8 = 0;
_global.game.createBulletEnemy("mc_bullet_animo", ANIMO_X, ANIMO_Y, _local6, _local9, _local3, _local7, _local8, _local5, _local4, _local2);
}
function orderStandLeft() {
mGpx.__get__clip().gotoAndStop("STAND");
__get__gpx().clip._xscale = 100;
mLeft = true;
}
function orderStandRight() {
mGpx.__get__clip().gotoAndStop("STAND");
if (mLeft) {
__get__gpx().clip._xscale = -100;
}
mLeft = false;
}
function orderLeft() {
mGpx.__get__clip().gotoAndStop("WALK");
__get__gpx().clip._xscale = 100;
mLeft = true;
}
function orderRight() {
mGpx.__get__clip().gotoAndStop("WALK");
if (mLeft) {
__get__gpx().clip._xscale = -100;
}
mLeft = false;
}
function orderJumpUpLeft() {
mGpx.__get__clip().gotoAndStop("JUMP_UP");
__get__gpx().clip._xscale = 100;
mLeft = true;
}
function orderJumpDownLeft() {
mGpx.__get__clip().gotoAndStop("JUMP_DOWN");
__get__gpx().clip._xscale = 100;
mLeft = true;
}
function orderJumpUpRight() {
mGpx.__get__clip().gotoAndStop("JUMP_UP");
if (mLeft) {
__get__gpx().clip._xscale = -100;
}
mLeft = false;
}
function orderJumpDownRight() {
mGpx.__get__clip().gotoAndStop("JUMP_DOWN");
if (mLeft) {
__get__gpx().clip._xscale = -100;
}
mLeft = false;
}
function orderAttack1Left() {
mGpx.__get__clip().gotoAndStop("ATTACK1");
__get__gpx().clip._xscale = 100;
mLeft = true;
}
function orderAttack1Right() {
mGpx.__get__clip().gotoAndStop("ATTACK1");
if (mLeft) {
__get__gpx().clip._xscale = -100;
}
mLeft = false;
}
function orderHit() {
mGpx.__get__clip().gotoAndStop("HIT");
}
function orderAgonize() {
mGpx.__get__clip().gotoAndStop("AGONIZE");
}
function orderDie() {
mGpx.__get__clip().gotoAndStop("DIE");
}
function orderDieFall() {
mGpx.__get__clip().gotoAndStop("DIE_FALL");
}
function orderAlertLeft() {
mGpx.__get__clip().gotoAndStop("ALERT");
__get__gpx().clip._xscale = 100;
mLeft = true;
}
function orderAlertRight() {
mGpx.__get__clip().gotoAndStop("ALERT");
if (mLeft) {
__get__gpx().clip._xscale = -100;
}
mLeft = false;
}
function orderEmpty() {
mGpx.__get__clip().gotoAndStop("EMPTY");
}
static var ANIMO_X = 320;
static var ANIMO_Y = 220;
}
Symbol 2412 MovieClip [__Packages.clsActionBoss_04] Frame 0
class clsActionBoss_04 extends clsAction
{
var mzAttackPositions, mState, mOldState, mActor, mNextState, mSubAction, numMotion, idMotion, mGpx;
function clsActionBoss_04 (actor) {
super(actor);
mzAttackPositions = new Array();
mState = ST_00;
mAnimo = new clsAnimo("mc_animo", 320, 240);
}
function update() {
switch (mState) {
case ST_00 :
if (mOldState != mState) {
mActor.orderAlertLeft();
mOldState = mState;
mNextState = ST_01;
}
break;
case ST_01 :
mSubAction = new clsAcbMoveTo(mActor, mzAttackPositions[6], SPEED_WALK, true, this);
mActor.orderLeft();
mOldState = mState;
mState = ST_MOVE_LINEAL;
mNextState = ST_02;
break;
case ST_02 :
if (mTimeRest <= _global.TIMER) {
mOldState = mState;
mState = ST_03;
}
break;
case ST_03 :
if (mOldState != mState) {
mActor.orderAttack1Left();
mOldState = mState;
mNextState = ST_04;
}
break;
case ST_04 :
mSubAction = new clsAcbMoveTo(mActor, mzAttackPositions[3], SPEED_WALK, true, this);
mActor.orderRight();
mOldState = mState;
mState = ST_MOVE_LINEAL;
mNextState = ST_05;
break;
case ST_05 :
if (mTimeRest <= _global.TIMER) {
mOldState = mState;
mState = ST_06;
}
break;
case ST_06 :
mActor.disableCollision(false);
mActor.__get__gpx().setPosition(mzAttackPositions[2][0], mzAttackPositions[2][1]);
mSubAction = new clsAcbMoveTo(mActor, mzAttackPositions[8], SPEED_WALK, true, this);
mActor.orderLeft();
mOldState = mState;
mState = ST_MOVE_LINEAL;
mNextState = ST_07;
break;
case ST_07 :
if (mOldState != mState) {
mActor.orderAlertLeft();
mOldState = mState;
mNextState = ST_08;
}
break;
case ST_08 :
mSubAction = new clsAcbMoveTo(mActor, mzAttackPositions[0], SPEED_WALK, true, this);
mActor.orderLeft();
mOldState = mState;
mState = ST_MOVE_LINEAL;
mNextState = ST_09;
break;
case ST_09 :
if (mOldState != mState) {
mAnimo.activeAnimation("SHOT");
mOldState = mState;
mNextState = ST_10;
}
break;
case ST_10 :
if (mOldState != mState) {
if (_global.game.mzBulletsEnemy[0]._Y <= 0) {
numMotion = 0;
clearInterval(idMotion);
idMotion = setInterval(this, "motionBack", 50);
rock1 = new clsRock(_root, "mc_rock1", ROCK1_X, ROCK_Y, SP_ROCK1);
rock2 = new clsRock(_root, "mc_rock2", ROCK2_X, ROCK_Y, SP_ROCK2);
rock3 = new clsRock(_root, "mc_rock3", ROCK3_X, ROCK_Y, SP_ROCK3);
mOldState = mState;
}
} else if (((!rock1) && (!rock2)) && (!rock3)) {
mState = ST_11;
}
break;
case ST_11 :
mActor.disableCollision(false);
mActor.__get__gpx().setPosition(mzAttackPositions[1][0], mzAttackPositions[1][1]);
mSubAction = new clsAcbMoveTo(mActor, mzAttackPositions[11], SPEED_WALK, true, this);
mActor.orderRight();
mOldState = mState;
mState = ST_MOVE_LINEAL;
mNextState = ST_12;
break;
case ST_12 :
if (mOldState != mState) {
mActor.orderAlertRight();
mOldState = mState;
mNextState = ST_13;
}
break;
case ST_13 :
mSubAction = new clsAcbMoveTo(mActor, mzAttackPositions[7], SPEED_WALK, true, this);
mActor.orderRight();
mOldState = mState;
mState = ST_MOVE_LINEAL;
mNextState = ST_14;
break;
case ST_14 :
if (mOldState != mState) {
mActor.orderAttack1Right();
mOldState = mState;
mNextState = ST_15;
}
break;
case ST_15 :
mSubAction = new clsAcbMoveTo(mActor, mzAttackPositions[1], SPEED_WALK, true, this);
mActor.orderLeft();
mOldState = mState;
mState = ST_MOVE_LINEAL;
mNextState = ST_16;
break;
case ST_16 :
if (mTimeRest <= _global.TIMER) {
mOldState = mState;
mState = ST_17;
}
break;
case ST_17 :
mActor.disableCollision(false);
mActor.__get__gpx().setPosition(mzAttackPositions[0][0], mzAttackPositions[0][1]);
mSubAction = new clsAcbMoveTo(mActor, mzAttackPositions[10], SPEED_WALK, true, this);
mActor.orderRight();
mOldState = mState;
mState = ST_MOVE_LINEAL;
mNextState = ST_18;
break;
case ST_18 :
if (mOldState != mState) {
mActor.orderAlertRight();
mOldState = mState;
mNextState = ST_19;
}
break;
case ST_19 :
mSubAction = new clsAcbMoveTo(mActor, mzAttackPositions[2], SPEED_WALK, true, this);
mActor.orderRight();
mOldState = mState;
mState = ST_MOVE_LINEAL;
mNextState = ST_20;
break;
case ST_20 :
if (mOldState != mState) {
mAnimo.activeAnimation("SHOT");
mOldState = mState;
mNextState = ST_21;
}
break;
case ST_21 :
if (mOldState != mState) {
if (_global.game.mzBulletsEnemy[0]._Y <= 0) {
numMotion = 0;
clearInterval(idMotion);
idMotion = setInterval(this, "motionBack", 50);
rock1 = new clsRock(_root, "mc_rock1", ROCK1_X, ROCK_Y, SP_ROCK1);
rock2 = new clsRock(_root, "mc_rock2", ROCK2_X, ROCK_Y, SP_ROCK2);
rock3 = new clsRock(_root, "mc_rock3", ROCK3_X, ROCK_Y, SP_ROCK3);
mOldState = mState;
}
} else if (((!rock1) && (!rock2)) && (!rock3)) {
mState = ST_22;
}
break;
case ST_22 :
mActor.disableCollision(false);
mActor.__get__gpx().setPosition(mzAttackPositions[3][0], mzAttackPositions[3][1]);
mSubAction = new clsAcbMoveTo(mActor, mzAttackPositions[9], SPEED_WALK, true, this);
mActor.orderLeft();
mOldState = mState;
mState = ST_MOVE_LINEAL;
mNextState = ST_00;
break;
case ST_MOVE_LINEAL :
mSubAction.update();
break;
case ST_MOVE_CURVE :
mTrajectory.update();
mActor.__get__gpx().setPosition(mTrajectory.__get___X(), mTrajectory.__get___Y());
if (!mTrajectory.__get___End()) {
break;
}
onSubActionEnd();
delete mTrajectory;
mTrajectory = null;
}
updateRocks();
}
function updateRocks() {
if ((rock1 || (rock2)) || (rock3)) {
rock1.update();
rock2.update();
rock3.update();
if (rock1.state == _global.ST_KILL) {
delete rock1;
}
if (rock2.state == _global.ST_KILL) {
delete rock2;
}
if (rock3.state == _global.ST_KILL) {
delete rock3;
}
}
}
function motionBack() {
numMotion++;
if (numMotion < 6) {
_root._x = -3 + random(6);
_root._y = -3 + random(6);
} else {
numMotion = 0;
_root._x = 0;
_root._y = 0;
clearInterval(idMotion);
}
}
function onSubActionEnd() {
switch (mOldState) {
case ST_04 :
case ST_15 :
mActor.orderEmpty();
mActor.disableCollision(true);
mTimeRest = REST + _global.TIMER;
break;
case ST_08 :
case ST_19 :
mActor.orderEmpty();
mActor.disableCollision(true);
break;
case ST_AGONIZE :
mActor.orderDieFall();
}
mState = mNextState;
}
function onAnimationEnd() {
switch (mState) {
case ST_00 :
mAnimo.activeAnimation("INDICATIONS");
mAnimo.direction(_global.DIR_LEFT);
mState = mNextState;
break;
case ST_03 :
mState = mNextState;
break;
case ST_07 :
mAnimo.activeAnimation("INDICATIONS");
mAnimo.direction(_global.DIR_LEFT);
mState = mNextState;
break;
case ST_09 :
case ST_20 :
mAnimo.activeAnimation("STAND");
mState = mNextState;
break;
case ST_12 :
mAnimo.activeAnimation("INDICATIONS");
mAnimo.direction(_global.DIR_RIGHT);
mState = mNextState;
break;
case ST_14 :
mState = mNextState;
break;
case ST_18 :
mAnimo.activeAnimation("INDICATIONS");
mAnimo.direction(_global.DIR_RIGHT);
mState = mNextState;
break;
case ST_AGONIZE :
mSubAction = new clsAcbMoveTo(mActor, [mActor.__get__gpx().getX(), mzAttackPositions[0][1]], SPEED_FALL, true, this);
mOldState = ST_AGONIZE;
mState = ST_MOVE_LINEAL;
mNextState = ST_DIE;
break;
case ST_DIE :
mAnimo.activeAnimation("DIE");
}
}
function onHit(param) {
mAnimo.activeAnimation("ANGRY");
if (mActor.__get__health() <= 0) {
_global.playerActiveChange = false;
if (mTrajectory) {
delete mTrajectory;
mTrajectory = null;
}
mGpx.setVelocity(0, 0);
if (mActor.__get__gpx().getY() < mzAttackPositions[0][1]) {
mActor.orderAgonize();
mState = ST_AGONIZE;
_global.playerActiveChange = false;
} else {
if (mSubAction) {
mSubAction.free();
delete mSubAction;
mSubAction = null;
}
mActor.orderDie();
mState = ST_DIE;
_global.playerActiveChange = false;
}
mActor.disableCollision(true);
}
}
function free() {
rock1.free();
rock2.free();
rock3.free();
mAnimo.free();
delete mzAttackPositions;
delete rock1;
delete rock2;
delete rock3;
delete mAnimo;
}
static var SPEED_WALK = 45;
static var SPEED_CURVE = 10;
static var SPEED_FALL = 20;
var mTimeRest = 0;
static var REST = 2000;
var mTrajectory = null;
static var MB = 50;
static var ST_MOVE_LINEAL = -98;
static var ST_MOVE_CURVE = -99;
static var ST_00 = -100;
static var ST_01 = -101;
static var ST_02 = -102;
static var ST_03 = -103;
static var ST_04 = -104;
static var ST_05 = -105;
static var ST_06 = -106;
static var ST_07 = -107;
static var ST_08 = -108;
static var ST_09 = -109;
static var ST_10 = -110;
static var ST_11 = -111;
static var ST_12 = -112;
static var ST_13 = -113;
static var ST_14 = -114;
static var ST_15 = -115;
static var ST_16 = -116;
static var ST_17 = -117;
static var ST_18 = -118;
static var ST_19 = -119;
static var ST_20 = -120;
static var ST_21 = -121;
static var ST_22 = -122;
static var ST_23 = -123;
static var ST_24 = -124;
static var ST_25 = -125;
static var ST_26 = -126;
static var ST_27 = -127;
static var ST_28 = -128;
static var ST_29 = -129;
static var ST_30 = -130;
static var ST_AGONIZE = -146;
static var ST_DIE = -147;
var rock1 = null;
var rock2 = null;
var rock3 = null;
static var ROCK1_X = 160;
static var ROCK2_X = 300;
static var ROCK3_X = 440;
static var ROCK_Y = -10;
static var SP_ROCK1 = 8;
static var SP_ROCK2 = 10;
static var SP_ROCK3 = 12;
var mAnimo = null;
}
Symbol 2413 MovieClip [__Packages.clsAnimo] Frame 0
class clsAnimo
{
var mGpx;
function clsAnimo (clip, x, y) {
mGpx = _global.world.mGpx.attachMovie(clip, clip, _global.DEPTH_ANIMO);
mGpx._x = x;
mGpx._y = y;
mGpx.gotoAndStop("STAND");
}
function activeAnimation(s) {
mGpx.gotoAndStop(s);
}
function direction(dir) {
if (dir == _global.DIR_LEFT) {
mGpx._xscale = 100;
} else if (dir == _global.DIR_RIGHT) {
mGpx._xscale = -100;
}
}
function free() {
mGpx.removeMovieClip();
}
}
Symbol 2414 MovieClip [__Packages.clsBullet] Frame 0
class clsBullet
{
var mX, mY, mType, mSpeed, mDamage, mLimit, mScale, mGpx, mLimitMax_x, mLimitMin_x, mLimitMax_y, mLimitMin_y, mAngleDir, dy, dx, dCos, dSin, mG, mPosX, mPosY, vy, vx;
function clsBullet (nameMovie, x, y, speed, type, damage, angledir, limit, scale) {
mX = x;
mY = y;
mType = type;
mSpeed = speed;
mDamage = damage;
mLimit = limit;
mScale = scale;
if (mLimit == undefined) {
mLimit = LIMIT_DEFAULT;
}
if (mScale == undefined) {
mScale = 100;
}
var _local6 = clsGame.getNextCreationDepth();
mGpx = _global.world.mGpx.attachMovie(nameMovie, "mc_bullet_" + _local6, _local6);
mGpx._x = mX;
mGpx._y = mY;
mGpx._xscale = mScale;
mGpx._yscale = mScale;
mLimitMax_x = mX + mLimit;
mLimitMin_x = mX - mLimit;
mLimitMax_y = mY + mLimit;
mLimitMin_y = mY - mLimit;
if (mType == _global.SHOOT_NORMAL) {
if (angledir == undefined) {
angledir = 180;
}
mAngleDir = angledir;
mGpx._rotation = (-mAngleDir) + 90;
}
dy = _global.player._y - mGpx._y;
dx = _global.player._x - mGpx._x;
var _local7 = Math.atan(dx / dy);
if (mType == _global.SHOOT_SPECIAL) {
mGpx._rotation = (180 * Math.atan2(mGpx._y - _root.mc_player._y, mGpx._x - _root.mc_player._x)) / Math.PI;
}
dCos = Math.cos(_local7);
dSin = Math.sin(_local7);
if (mType == _global.SHOOT_ARC) {
mG = 0.5;
dx = 100;
dy = 90;
mPosX = mGpx._x;
mPosY = mGpx._y;
vy = -1 * Math.sqrt((2 * mG) * dy);
var _local5 = Math.abs(vy / mG);
if (angledir == undefined) {
angledir = 0;
}
if (angledir == _global.DIR_RIGHT) {
vx = dx / _local5;
} else if (angledir == _global.DIR_LEFT) {
vx = (-dx) / _local5;
}
}
}
function get _Y() {
return(mGpx._y);
}
function update() {
switch (mType) {
case _global.SHOOT_NORMAL :
moveNormal();
break;
case _global.SHOOT_DIRECT :
moveDirect();
break;
case _global.SHOOT_ARC :
moveArc();
}
if (state != _global.ST_KILL) {
if ((mGpx._x <= mLimitMin_x) || (mGpx._x >= mLimitMax_x)) {
free();
}
if ((mGpx._y <= mLimitMin_y) || (mGpx._y >= mLimitMax_y)) {
free();
}
}
}
function moveNormal() {
mGpx._x = mGpx._x + (mSpeed * Math.sin((mAngleDir + 90) * (Math.PI/180)));
mGpx._y = mGpx._y + (mSpeed * Math.cos((mAngleDir + 90) * (Math.PI/180)));
}
function moveDirect() {
if (dy > 0) {
mGpx._y = mGpx._y + (mSpeed * dCos);
mGpx._x = mGpx._x + (mSpeed * dSin);
}
if (dy < 0) {
mGpx._y = mGpx._y - (mSpeed * dCos);
mGpx._x = mGpx._x - (mSpeed * dSin);
}
}
function moveArc() {
vy = vy + mG;
mGpx._x = mGpx._x + vx;
mGpx._y = mGpx._y + vy;
}
function free() {
mGpx.removeMovieClip();
state = _global.ST_KILL;
}
static var LIMIT_DEFAULT = 300;
var state = 0;
}
Symbol 2415 MovieClip [__Packages.clsBulletPlayer] Frame 0
class clsBulletPlayer extends clsBullet
{
var mDamage, mGpx, free;
function clsBulletPlayer (nameMovie, x, y, speed, type, damage, angledir, limit, scale) {
super(nameMovie, x, y, speed, type, damage, angledir, limit, scale);
mDamage = _global.DMG_SHOOT;
}
function update() {
super.update();
if (_global.boss && (_global.level != 10)) {
if (_global.boss.checkCollision(mGpx.mc_collision, mDamage)) {
free();
}
}
}
}
Symbol 2416 MovieClip [__Packages.clsBulletEnemy] Frame 0
class clsBulletEnemy extends clsBullet
{
var mGpx, free;
function clsBulletEnemy (nameMovie, x, y, speed, type, damage, angledir, limit, scale) {
super(nameMovie, x, y, speed, type, damage, angledir, limit, scale);
}
function update() {
super.update();
if (mGpx.mc_collision.hitTest(_global.player.mGpx.mc_ben.mc_collision)) {
_global.player.hit();
free();
}
if (_global.boss) {
if (mGpx._y >= LIMIT_Y) {
_global.game.createEffect("mc_boss02_explosion", mGpx._x, mGpx._y);
free();
}
}
}
static var LIMIT_Y = 320;
}
Symbol 2417 MovieClip [__Packages.clsActionEnd] Frame 0
class clsActionEnd
{
var state, animationShoot, mGpxShoot;
function clsActionEnd () {
_global.mode_collision = false;
_global.playerActiveChange = false;
_global.player.action.mSpecial = false;
_global.player.action.shooting = false;
_global.player.mGpx._xscale = 100;
if (_global.activePlayer != _global.PLAYER_BEN) {
_global.player.transformToBen();
}
_global.player.mGpx.gotoAndStop("PLAYER_" + _global.PLAYER_BEN);
_global.player.showCollision(0);
state = ST_INI;
_global.bossReturn.mGpx._x = 900;
if (_global.level == 3) {
animationShoot = "ATTACK_BOSS1";
_global.bossReturn.mGpx._y = _global.player._y;
} else if (_global.level == 6) {
animationShoot = "ATTACK_BOSS2";
_global.bossReturn.mGpx._y = _global.player._y - 20;
} else if (_global.level == 9) {
animationShoot = "ATTACK_BOSS3";
_global.bossReturn.mGpx._y = _global.player._y + 60;
}
}
function update() {
switch (state) {
case ST_INI :
_global.bossReturn.mGpx._x = _global.bossReturn.mGpx._x - 2.5;
_global.player.action.activeAnimation("STAND_R");
if (_global.bossReturn.mGpx._x < 350) {
_global.player.action.activeAnimation(animationShoot);
state = ST_WAIT_SHOOT;
}
break;
case ST_WAIT_SHOOT :
break;
case ST_SHOOT :
var _local5 = clsGame.getNextDepthSup();
mGpxShoot = _global.world.mGpx.attachMovie("mc_ben_shoot_end", "mc_ben_shoot_end" + _local5, _local5);
mGpxShoot._x = _global.player._x + 50;
mGpxShoot._y = _global.player._y - 30;
state = ST_MOVE_SHOOT;
break;
case ST_MOVE_SHOOT :
mGpxShoot._x = mGpxShoot._x + 3;
if (mGpxShoot._x > 350) {
mGpxShoot.removeMovieClip();
_global.bossReturn.mGpx.gotoAndStop("NORMALIZE");
_global.player.action.activeAnimation("STAND_R");
_global.player.showCollision(0);
state = ST_EMPTY;
}
break;
case ST_NORMAL_BOSS :
var _local4 = new Color(_global.bossReturn.mGpx);
var _local3 = _local4.getTransform();
_local3 = {ra:100, ga:100, ba:100};
_local4.setTransform(_local3);
_global.bossReturn.mGpx._alpha = 100;
state = ST_EMPTY;
case ST_EMPTY :
}
}
static var ST_INI = 1;
static var ST_WAIT_SHOOT = 2;
static var ST_SHOOT = 3;
static var ST_MOVE_SHOOT = 4;
static var ST_EMPTY = 5;
static var ST_NORMAL_BOSS = 6;
}
Symbol 2418 MovieClip [__Packages.clsPlayer] Frame 0
class clsPlayer
{
var mGpx, x_limit_rg, x_limit_lf, idInvisible;
function clsPlayer (xx, yy) {
_global.activePlayer = _global.PLAYER_BEN;
_global.playerAlive = true;
mGpx = _global.world.mGpx.attachMovie("mc_player", "mc_player", _global.DEPTH_PLAYER);
mGpx._x = xx;
mGpx._y = yy;
mGpx.gotoAndStop("PLAYER_" + _global.activePlayer);
x_limit_rg = _global.world.width - 50;
x_limit_lf = 50;
_global.playerAlive = true;
action = new clsActionBen(this, xx, yy);
mAnchorPoints = new clsSimSet("anchors");
_global.mode_collision = true;
if (_global.showCollision) {
showCollision(30);
} else {
showCollision(0);
}
if (((_global.level == 3) || (_global.level == 6)) || (_global.level == 9)) {
action.mDir = _global.DIR_LEFT;
}
}
function set dx(ddx) {
action.dx = ddx;
//return(dx);
}
function get dx() {
return(action.dx);
}
function set shooting(sh) {
action.shooting = sh;
//return(shooting);
}
function get shooting() {
return(action.shooting);
}
function set jumping(jp) {
action.jumping = jp;
//return(jumping);
}
function get jumping() {
return(action.jumping);
}
function get _x() {
return(mGpx._x);
}
function get _y() {
return(mGpx._y);
}
function set _x(x) {
mGpx._x = x;
//return(_x);
}
function set _y(y) {
mGpx._y = y;
//return(_y);
}
function get state() {
return(action.state);
}
function get dir() {
return(action.mDir);
}
function showCollision(alpha) {
mGpx.mc_area._alpha = alpha;
mGpx.mc_area_plataform._alpha = alpha;
mGpx.mc_ben.mc_collision._alpha = alpha;
mGpx.mc_ben.mc_collision2._alpha = alpha;
}
function invisible() {
mGpx._alpha = 50;
_global.invincible = true;
if (_global.statePlayer != _global.ST_PLAYER_SHOOT) {
_global.statePlayer = _global.ST_PLAYER_NORMAL;
}
idInvisible = setInterval(this, "deleteInvisible", 2000);
}
function deleteInvisible() {
mGpx._alpha = 100;
_global.invincible = false;
clearInterval(idInvisible);
idInvisible = null;
}
function update() {
if (_global.mode_collision) {
action.checkState();
if (mGpx._y > (_global.world.height + 100)) {
_global.game.createPanel("mc_fade");
_global.playerAlive = false;
clsFla.endPlayerDie();
}
var _local3 = 0;
while (_local3 < _global.mzCoins.length) {
if (_global.mzCoins[_local3][0].hitTest(mGpx.mc_ben.mc_collision) || (_global.mzCoins[_local3][0].hitTest(mGpx.mc_ben.mc_collision_invincible))) {
_global.game.removeCoin(_local3);
}
_local3++;
}
} else if (((!_global.mode_collision) && (!_global.pieceModulator)) && (!_global.actionEndEscene)) {
if (Key.isDown(37)) {
action.x = action.x - 40;
}
if (Key.isDown(39)) {
action.x = action.x + 40;
}
if (Key.isDown(38)) {
action.y = action.y - 40;
}
if (Key.isDown(40)) {
action.y = action.y + 40;
}
action.moveWorld();
}
move_world();
}
function move_world() {
_global.world_move.mGpx._x = _global.world._x * (((-_global.world_move.width) + _global.S_W) / ((-_global.world.width) + _global.S_W));
_global.world_move.mGpx._y = _global.world._y * (((-_global.world_move.height) + _global.S_H) / ((-_global.world.height) + _global.S_H));
}
function activeActionPlayer() {
var _local7 = false;
if (action) {
var _local6 = action.onground;
var _local13 = action.shooting;
var _local5 = action.jumping;
var _local8 = action.mElevation;
var _local12 = action.toRight;
var _local9 = action.toLeft;
var _local10 = action.toAction;
var _local11 = action.toUp;
var _local4 = action.mDir;
var _local3 = action.state;
_local7 = true;
switch (_local3) {
case action.ST_STAND :
if (_local4 == _global.DIR_RIGHT) {
_local3 = _global.ST_PLAYER_STAND_RIGHT;
} else {
_local3 = _global.ST_PLAYER_STAND_LEFT;
}
break;
case action.ST_WALK :
if (_local4 == _global.DIR_RIGHT) {
_local3 = _global.ST_PLAYER_WALK_RIGHT;
} else {
_local3 = _global.ST_PLAYER_WALK_LEFT;
}
break;
case action.ST_SHOOT :
if (_local4 == _global.DIR_RIGHT) {
_local3 = _global.ST_PLAYER_SHOOT_RIGHT;
} else {
_local3 = _global.ST_PLAYER_SHOOT_LEFT;
}
break;
case action.ST_SWING :
if (_local4 == _global.DIR_RIGHT) {
_local3 = 4;
} else {
_local3 = -4;
}
_local5 = true;
_local6 = false;
break;
case action.ST_WAITING_FALL :
if (_local4 == _global.DIR_RIGHT) {
_local3 = 4;
} else {
_local3 = -4;
}
_local5 = true;
_local6 = false;
break;
case action.ST_FALL_WAIT :
if (_local4 == _global.DIR_RIGHT) {
_local3 = 4;
} else {
_local3 = -4;
}
_local5 = true;
_local6 = false;
break;
case action.ST_FALL :
if (_local4 == _global.DIR_RIGHT) {
_local3 = 4;
} else {
_local3 = -4;
}
_local5 = true;
_local6 = false;
}
action.free();
delete action;
}
var _local14 = _global.activePlayer;
_global.activePlayer = _global.playerTemp;
switch (_global.activePlayer) {
case _global.PLAYER_BEN :
action = new clsActionBen(this, _x, _y);
break;
case _global.PLAYER_HEATBLAST :
action = new clsActionHeatblast(this, _x, _y);
break;
case _global.PLAYER_WILDMUTT :
action = new clsActionWilmutt(this, _x, _y);
break;
case _global.PLAYER_WILDVINE :
action = new clsActionWildvine(this, _x, _y);
break;
case _global.PLAYER_CANNONBOLT :
action = new clsActionCannonbolt(this, _x, _y);
}
if (_local7) {
action.onground = _local6;
action.jumping = _local5;
action.mElevation = _local8;
action.toRight = _local12;
action.toLeft = _local9;
action.toAction = _local10;
action.toUp = _local11;
action.mDir = _local4;
action.state = _local3;
if (action.jumping) {
action.mElevation = 100;
}
}
action.mDir = _local4;
mGpx.gotoAndStop("PLAYER_" + _global.activePlayer);
if (_global.showCollision) {
showCollision(30);
} else {
showCollision(0);
}
action.init();
_global.playerTemp = 0;
}
function hit() {
action.hit();
}
function changeBen() {
mGpx.mc_ben.gotoAndStop("CHANGE");
}
function transformToBen() {
_global.playerTemp = _global.PLAYER_BEN;
_global.game.createEffectInPlayer("mc_fx_glow_AlienToBen");
}
function transformAlienToAlien() {
_global.setPause(true);
_global.game.createEffectInPlayer("mc_fx_glow_AlienToAlien");
}
function transformToBenHit() {
_global.game.createEffectInPlayer("mc_fx_glow_AlienToBen");
}
function free() {
mGpx.removeMovieClip();
delete action;
}
function setPosition(x, y) {
}
function registerAnchorPoint(anchor) {
mAnchorPoints.add(anchor);
}
function unregisterAnchorPoint(anchor) {
mAnchorPoints.remove(anchor);
}
var action = null;
var mAnchorPoints = null;
}
Symbol 2419 MovieClip [__Packages.clsActionPlayer] Frame 0
class clsActionPlayer
{
var mPlayer, x, y, width, height, dy, dx, mKey, mElevation, mDir, onground;
function clsActionPlayer (player, xx, yy) {
mPlayer = player;
x = xx;
y = yy;
width = 50;
height = 30;
dy = 0.5;
dx = 0;
mKey = new clsKeyBoard();
mElevation = 0;
mDir = _global.DIR_RIGHT;
mKey.addCmdKey(38, subKeyUpIni, subKeyUpEnd, this);
mKey.addCmdKey(39, subKeyRightIni, subKeyRightEnd, this);
mKey.addCmdKey(37, subKeyLeftIni, subKeyLeftEnd, this);
mKey.addCmdKey(32, subKeySpaceIni, subKeySpaceEnd, this);
}
function subKeyRightIni(parent) {
if (parent == undefined) {
parent = this;
}
parent.toRight = true;
parent.mDir = _global.DIR_RIGHT;
}
function subKeyRightEnd(parent) {
if (parent == undefined) {
parent = this;
}
parent.toRight = false;
}
function subKeyLeftIni(parent) {
if (parent == undefined) {
parent = this;
}
parent.toLeft = true;
parent.mDir = _global.DIR_LEFT;
}
function subKeyLeftEnd(parent) {
if (parent == undefined) {
parent = this;
}
parent.toLeft = false;
}
function subKeySpaceIni(parent) {
if (parent == undefined) {
parent = this;
}
parent.toAction = true;
}
function subKeySpaceEnd(parent) {
if (parent == undefined) {
parent = this;
}
parent.toAction = false;
}
function subKeyUpIni(parent) {
if (parent == undefined) {
parent = this;
}
parent.toUp = true;
}
function subKeyUpEnd(parent) {
if (parent == undefined) {
parent = this;
}
parent.toUp = false;
parent.mElevation = 100;
}
function hit(parent) {
if (parent == undefined) {
parent = this;
}
if (!_global.invincible) {
_global.game.updateEnergyLife(-21);
parent.mPlayer.invisible();
var _local5 = new Color(parent.mPlayer.mGpx);
var _local4 = _local5.getTransform();
_local4 = {ra:180, ga:0, ba:0};
_local5.setTransform(_local4);
parent.idColor = setInterval(parent, "removeColorHit", 200);
}
}
function removeColorHit() {
var _local3 = new Color(mPlayer.mGpx);
var _local2 = _local3.getTransform();
_local2 = {ra:100, ga:100, ba:100};
_local3.setTransform(_local2);
clearInterval(idColor);
}
function die() {
if (_global.activePlayer != _global.PLAYER_BEN) {
mPlayer.transformToBen();
}
_global.playerAlive = false;
}
function checkOrderKey() {
if (mKey.Key_UP) {
mElevation++;
}
if ((!toRight) && (!toLeft)) {
if (_global.activePlayer != _global.PLAYER_CANNONBOLT) {
dx = 0;
}
}
if (!_global.playerAlive) {
toAction = false;
toUp = false;
}
if (((((((!toRight) && (!toLeft)) && (!toAction)) && (!toUp)) && (!shooting)) && (!jumping)) && (_global.playerAlive)) {
if (mDir == _global.DIR_RIGHT) {
state = _global.ST_PLAYER_STAND_RIGHT;
} else {
state = _global.ST_PLAYER_STAND_LEFT;
}
}
if (((((!shooting) && (!jumping)) && (onground)) && (toRight)) && (_global.playerAlive)) {
state = _global.ST_PLAYER_WALK_RIGHT;
}
if (((((!shooting) && (!jumping)) && (onground)) && (toLeft)) && (_global.playerAlive)) {
state = _global.ST_PLAYER_WALK_LEFT;
}
if ((((!shooting) && (!jumping)) && (onground)) && (toAction)) {
if (mDir == _global.DIR_RIGHT) {
state = _global.ST_PLAYER_SHOOT_RIGHT;
} else {
state = _global.ST_PLAYER_SHOOT_LEFT;
}
}
if ((((!shooting) && (!jumping)) && (onground)) && (toUp)) {
if (mDir == _global.DIR_RIGHT) {
state = _global.ST_PLAYER_JUMP_RIGHT;
} else {
state = _global.ST_PLAYER_JUMP_LEFT;
}
}
if (((!shooting) && (jumping)) && (toAction)) {
if (mDir == _global.DIR_RIGHT) {
state = _global.ST_PLAYER_JUMP_SHOOT_RIGHT;
} else {
state = _global.ST_PLAYER_JUMP_SHOOT_LEFT;
}
}
}
function checkState() {
mKey.update();
checkOrderKey();
if (_global.panelWilmutt) {
return(undefined);
}
switch (state) {
case _global.ST_PLAYER_STAND_RIGHT :
orderStand(_global.DIR_RIGHT);
break;
case _global.ST_PLAYER_STAND_LEFT :
orderStand(_global.DIR_LEFT);
break;
case _global.ST_PLAYER_WALK_RIGHT :
orderWalk(_global.DIR_RIGHT);
break;
case _global.ST_PLAYER_WALK_LEFT :
orderWalk(_global.DIR_LEFT);
break;
case _global.ST_PLAYER_SHOOT_RIGHT :
orderShoot(_global.DIR_RIGHT);
break;
case _global.ST_PLAYER_SHOOT_LEFT :
orderShoot(_global.DIR_LEFT);
break;
case _global.ST_PLAYER_JUMP_RIGHT :
orderJump(_global.DIR_RIGHT);
break;
case _global.ST_PLAYER_JUMP_LEFT :
orderJump(_global.DIR_LEFT);
break;
case _global.ST_PLAYER_JUMP_SHOOT_RIGHT :
orderShootJump(_global.DIR_RIGHT);
break;
case _global.ST_PLAYER_JUMP_SHOOT_LEFT :
orderShootJump(_global.DIR_LEFT);
break;
case _global.ST_PLAYER_DIE :
orderDie();
}
updatePosition();
}
function updatePosition() {
checkCollision();
mPassable = false;
moveWorld();
if (mLimitRight) {
if (dx > 0) {
dx = 0;
}
}
if (mLimitLeft) {
if (dx < 0) {
dx = 0;
}
}
x = x + dx;
y = y + dy;
mLimitRight = false;
mLimitLeft = false;
}
function onEndAnimation() {
switch (state) {
case _global.ST_PLAYER_SHOOT_RIGHT :
shooting = false;
orderStand(_global.DIR_RIGHT);
break;
case _global.ST_PLAYER_SHOOT_LEFT :
shooting = false;
orderStand(_global.DIR_LEFT);
break;
case _global.ST_PLAYER_JUMP_SHOOT_RIGHT :
shooting = false;
state = _global.ST_PLAYER_JUMP_RIGHT;
activeAnimation("FALL_R");
break;
case _global.ST_PLAYER_JUMP_SHOOT_LEFT :
shooting = false;
state = _global.ST_PLAYER_JUMP_LEFT;
activeAnimation("FALL_L");
break;
case _global.ST_PLAYER_DIE :
}
}
function orderStand(dir) {
dx = 0;
if (dir == _global.DIR_RIGHT) {
activeAnimation("STAND_R");
} else {
activeAnimation("STAND_L");
}
if (!_global.playerAlive) {
state = _global.ST_PLAYER_DIE;
}
}
function orderWalk(dir) {
if (shooting || (jumping)) {
return(undefined);
}
if (dir == _global.DIR_RIGHT) {
activeAnimation("WALK_R");
dx = DX_MAX;
} else {
activeAnimation("WALK_L");
dx = -DX_MAX;
}
if (!_global.playerAlive) {
state = _global.ST_PLAYER_DIE;
}
}
function orderShoot(dir) {
if (shooting) {
return(undefined);
}
dx = 0;
shooting = true;
if (dir == _global.DIR_RIGHT) {
activeAnimation("SHOOT_R");
} else {
activeAnimation("SHOOT_L");
}
}
function orderShootJump(dir) {
if (shooting) {
return(undefined);
}
shooting = true;
if (dir == _global.DIR_RIGHT) {
activeAnimation("SHOOT_JUMP_R");
} else {
activeAnimation("SHOOT_JUMP_L");
}
}
function orderJump(dir) {
if (toRight) {
dx = DX_MAX_JUMP;
} else if (toLeft) {
dx = -DX_MAX_JUMP;
}
if (onground && (!_global.playerAlive)) {
state = _global.ST_PLAYER_DIE;
return(undefined);
}
if (onground) {
mElevation = 0;
}
if ((mElevation > MAX_TIME_JUMP) && (jumping)) {
return(undefined);
}
dx = 0;
if (toRight) {
dx = DX_MAX_JUMP;
} else if (toLeft) {
dx = -DX_MAX_JUMP;
}
onground = false;
shooting = false;
jumping = true;
jumpsetup = true;
jumpsetup = false;
dy = IMPULSE;
if (dir == _global.DIR_RIGHT) {
activeAnimation("JUMP_R");
} else {
activeAnimation("JUMP_L");
}
}
function jumper(dir) {
jumpsetup = false;
dy = IMPULSE;
clearInterval(idJump);
if (dir == _global.DIR_RIGHT) {
activeAnimation("JUMP_R");
} else {
activeAnimation("JUMP_L");
}
}
function orderDie(parent) {
dx = 0;
mPlayer.mGpx.swapDepths(_global.DEPTH_PLAYER_DIE);
activeAnimation("DIE");
}
function activeAnimation(animation) {
mPlayer.mGpx.mc_ben.gotoAndStop(animation);
}
function moveWorld() {
_global.world._x = Math.round(300 - x);
_global.world._y = Math.round(FLOOR_Y - y);
if (_global.world._x > 0) {
_global.world._x = 0;
}
if (_global.world._x < (-(_global.world.width - 600))) {
_global.world._x = -(_global.world.width - 600);
}
if (_global.world._y > 0) {
_global.world._y = 0;
}
if (_global.world._y < (-(_global.world.height - 400))) {
_global.world._y = -(_global.world.height - 400);
}
mPlayer.mGpx._x = Math.floor(x);
mPlayer.mGpx._y = Math.floor(y);
if (x < mPlayer.x_limit_lf) {
x = mPlayer.x_limit_lf;
}
if (x > mPlayer.x_limit_rg) {
x = mPlayer.x_limit_rg;
}
}
function init() {
}
function checkCollision() {
dy = dy + GRAVITY;
var _local6 = Math.ceil(y + dy);
var _local8 = x + dx;
onground = false;
if (dy >= 0) {
var _local5 = 0;
while (_local5 < _global.world.screenClips.length) {
var _local7 = _global.world.screenClips[_local5].mGpx.mc_terrain;
if (_local7.hitTest(x + _global.world._x, _local6 + _global.world._y, true) && (!jumpsetup)) {
onground = true;
jumping = false;
var _local4 = 0;
var _local3 = Math.floor(_local6);
while (_local7.hitTest(x + _global.world._x, _local3 + _global.world._y, true)) {
_local4++;
_local3 = _local3 - TY;
}
if (_local4 < 60) {
y = _local3;
dy = 0;
} else {
x = x - dx;
dx = 0;
}
} else if ((dy > 7) && (!shooting)) {
if (mPassable) {
return(undefined);
}
jumping = true;
mElevation = 100;
if ((mPlayer.mGpx.mc_ben._currentframe == FRAME_FALL_ATTACK_L) || (mPlayer.mGpx.mc_ben._currentframe == FRAME_FALL_ATTACK_R)) {
} else if (mDir == _global.DIR_RIGHT) {
activeAnimation("FALL_R");
} else {
activeAnimation("FALL_L");
}
}
_local5++;
}
} else if (dy < 0) {
if (!mPassable) {
var _local5 = 0;
while (_local5 < _global.world.screenClips.length) {
var _local7 = _global.world.screenClips[_local5].mGpx.mc_terrain;
if (_local7.hitTest(x + _global.world._x, (_local6 + _global.world._y) - height, true)) {
dy = 1;
}
_local5++;
}
}
}
if (dy > DY_MAX) {
dy = DY_MAX;
}
}
function getDefaultGravity() {
return(GRAVITY);
}
function free() {
}
static var FRAME_STAND_R = 1;
static var FRAME_STAND_L = 10;
static var FRAME_WALK_R = 20;
static var FRAME_WALK_L = 30;
static var FRAME_SHOOT_R = 40;
static var FRAME_SHOOT_L = 50;
static var FRAME_SHOOT_JUMP_R = 60;
static var FRAME_SHOOT_JUMP_L = 70;
static var FRAME_JUMP_R = 80;
static var FRAME_JUMP_L = 90;
static var FRAME_FALL_R = 100;
static var FRAME_FALL_L = 110;
static var FRAME_FALL_ATTACK_R = 170;
static var FRAME_FALL_ATTACK_L = 180;
var GRAVITY = 1.5;
var FLOOR_Y = 250;
static var TY = 2;
var DY_MAX = 10;
var DX_MAX = 6;
var DX_MAX_JUMP = 5;
var IMPULSE = -16;
var jumpsetup = false;
var jumping = false;
var shooting = false;
var idJump = 0;
var idColor = 0;
var toLeft = false;
var toRight = false;
var toUp = false;
var toFall = false;
var toAction = false;
var toDie = false;
static var MAX_TIME_JUMP = 6;
var state = 1;
var mLimitRight = false;
var mLimitLeft = true;
var mPassable = false;
}
Symbol 2420 MovieClip [__Packages.clsKeyBoard] Frame 0
class clsKeyBoard
{
function clsKeyBoard () {
mFunctions = {};
}
function addCmdKey(keyCode, functionTrue, functionFalse, parent) {
mFunctions["KEY_" + keyCode] = {};
mFunctions["KEY_" + keyCode].fn1 = functionTrue;
mFunctions["KEY_" + keyCode].fn2 = functionFalse;
mFunctions["KEY_" + keyCode].parent = parent;
}
function orderKeyEvent(keyCode, value) {
if (value) {
mFunctions["KEY_" + keyCode].fn1(mFunctions["KEY_" + keyCode].parent);
} else {
mFunctions["KEY_" + keyCode].fn2(mFunctions["KEY_" + keyCode].parent);
}
}
function update() {
Key_UP = (Key.isDown(KEY_UP_CODE) ? true : false);
if (Key_UP_tmp != Key_UP) {
orderKeyEvent(KEY_UP_CODE, Key_UP);
Key_UP_tmp = Key_UP;
}
Key_DOWN = (Key.isDown(Key_DOWN_CODE) ? true : false);
if (Key_DOWN_tmp != Key_DOWN) {
orderKeyEvent(Key_DOWN_CODE, Key_DOWN);
Key_DOWN_tmp = Key_DOWN;
}
Key_RIGHT = (Key.isDown(Key_RIGHT_CODE) ? true : false);
if (Key_RIGHT_tmp != Key_RIGHT) {
orderKeyEvent(Key_RIGHT_CODE, Key_RIGHT);
Key_RIGHT_tmp = Key_RIGHT;
}
Key_LEFT = (Key.isDown(Key_LEFT_CODE) ? true : false);
if (Key_LEFT_tmp != Key_LEFT) {
orderKeyEvent(Key_LEFT_CODE, Key_LEFT);
Key_LEFT_tmp = Key_LEFT;
}
Key_SPACE = (Key.isDown(Key_SPACE_CODE) ? true : false);
if (Key_SPACE_tmp != Key_SPACE) {
orderKeyEvent(Key_SPACE_CODE, Key_SPACE);
Key_SPACE_tmp = Key_SPACE;
}
Key_H = (Key.isDown(Key_H_CODE) ? true : false);
if (Key_H_tmp != Key_H) {
orderKeyEvent(Key_H_CODE, Key_H);
Key_H_tmp = Key_H;
}
Key_D = (Key.isDown(Key_D_CODE) ? true : false);
if (Key_D_tmp != Key_D) {
orderKeyEvent(Key_D_CODE, Key_D);
Key_D_tmp = Key_D;
}
Key_Z = (Key.isDown(Key_Z_CODE) ? true : false);
if (Key_Z_tmp != Key_Z) {
orderKeyEvent(Key_Z_CODE, Key_Z);
Key_Z_tmp = Key_Z;
}
Key_P = (Key.isDown(Key_P_CODE) ? true : false);
if (Key_P_tmp != Key_P) {
orderKeyEvent(Key_P_CODE, Key_P);
Key_P_tmp = Key_P;
}
Key_C = (Key.isDown(Key_C_CODE) ? true : false);
if (Key_C_tmp != Key_C) {
orderKeyEvent(Key_C_CODE, Key_C);
Key_C_tmp = Key_C;
}
Key_I = (Key.isDown(Key_I_CODE) ? true : false);
if (Key_I_tmp != Key_I) {
orderKeyEvent(Key_I_CODE, Key_I);
Key_I_tmp = Key_I;
}
Key_L = (Key.isDown(Key_L_CODE) ? true : false);
if (Key_L_tmp != Key_L) {
orderKeyEvent(Key_L_CODE, Key_L);
Key_L_tmp = Key_L;
}
Key_T = (Key.isDown(Key_T_CODE) ? true : false);
if (Key_T_tmp != Key_T) {
orderKeyEvent(Key_T_CODE, Key_T);
Key_T_tmp = Key_T;
}
}
function free() {
delete mFunctions;
}
var mFunctions = new Object();
var Key_UP = false;
var Key_UP_tmp = false;
static var KEY_UP_CODE = 38;
var Key_DOWN = false;
var Key_DOWN_tmp = false;
static var Key_DOWN_CODE = 40;
var Key_RIGHT = false;
var Key_RIGHT_tmp = false;
static var Key_RIGHT_CODE = 39;
var Key_LEFT = false;
var Key_LEFT_tmp = false;
static var Key_LEFT_CODE = 37;
var Key_SPACE = false;
var Key_SPACE_tmp = false;
static var Key_SPACE_CODE = 32;
var Key_H = false;
var Key_H_tmp = false;
static var Key_H_CODE = 72;
var Key_D = false;
var Key_D_tmp = false;
static var Key_D_CODE = 68;
var Key_Z = false;
var Key_Z_tmp = false;
static var Key_Z_CODE = 90;
var Key_P = false;
var Key_P_tmp = false;
static var Key_P_CODE = 80;
var Key_C = false;
var Key_C_tmp = false;
static var Key_C_CODE = 67;
var Key_I = false;
var Key_I_tmp = false;
static var Key_I_CODE = 73;
var Key_L = false;
var Key_L_tmp = false;
static var Key_L_CODE = 76;
var Key_T = false;
var Key_T_tmp = false;
static var Key_T_CODE = 84;
}
Symbol 2421 MovieClip [__Packages.clsActionBen] Frame 0
class clsActionBen extends clsActionPlayer
{
function clsActionBen (player, xx, yy) {
super(player, xx, yy);
}
}
Symbol 2422 MovieClip [__Packages.clsActionHeatblast] Frame 0
class clsActionHeatblast extends clsActionPlayer
{
var height, shooting, dx, activeAnimation, angleShoot, mPlayer;
function clsActionHeatblast (player, xx, yy) {
super(player, xx, yy);
_global.panelInfo.speedChange = 0.2;
height = 50;
}
function orderShoot(dir) {
if (shooting) {
return(undefined);
}
dx = 0;
shooting = true;
if (dir == _global.DIR_RIGHT) {
activeAnimation("SHOOT_R");
angleShoot = 0;
} else {
activeAnimation("SHOOT_L");
angleShoot = 180;
}
_global.game.createBulletPlayer("mc_player_bullet", mPlayer.mGpx._x, mPlayer.mGpx._y - 60, BULLET_SPEED, _global.SHOOT_NORMAL, 5, angleShoot, 1, 1, 600);
}
function orderShootJump(dir) {
if (shooting) {
return(undefined);
}
shooting = true;
if (dir == _global.DIR_RIGHT) {
activeAnimation("SHOOT_JUMP_R");
angleShoot = 0;
} else {
activeAnimation("SHOOT_JUMP_L");
angleShoot = 180;
}
_global.game.createBulletPlayer("mc_player_bullet", mPlayer.mGpx._x, mPlayer.mGpx._y - 60, BULLET_SPEED, _global.SHOOT_NORMAL, 5, angleShoot, 1, 1, 600);
}
static var BULLET_SPEED = 10;
}
Symbol 2423 MovieClip [__Packages.clsActionWilmutt] Frame 0
class clsActionWilmutt extends clsActionPlayer
{
var height;
function clsActionWilmutt (player, xx, yy) {
super(player, xx, yy);
height = 40;
_global.panelInfo.speedChange = 0.2;
}
function subKeySpaceIni(parent) {
if (parent == undefined) {
parent = this;
}
if ((((_global.player.state == _global.ST_PLAYER_STAND_RIGHT) || (_global.player.state == _global.ST_PLAYER_STAND_LEFT)) || (_global.player.state == _global.ST_PLAYER_WALK_RIGHT)) || (_global.player.state == _global.ST_PLAYER_WALK_LEFT)) {
if (!_global.panelWilmutt) {
if (parent.mDir == _global.DIR_RIGHT) {
_global.player.mGpx.mc_ben.gotoAndStop("SHOOT_R");
} else {
_global.player.mGpx.mc_ben.gotoAndStop("SHOOT_L");
}
_global.game.createPanelWilmutt();
}
}
}
function subKeySpaceEnd(parent) {
}
function orderShoot(dir) {
}
function orderShootJump(dir) {
}
var IMPULSE = -18;
}
Symbol 2424 MovieClip [__Packages.clsActionWildvine] Frame 0
class clsActionWildvine extends clsActionPlayer
{
var height, mPlayer, state, mArmLength, mSwAng, mSwDir, mSwObj, dx, mTimerImpulse, onground, activeAnimation, mKey, toUp, toLeft, DX_MAX, toRight, toAction, shooting, GRAVITY, dy, getDefaultGravity, moveWorld, x, y, jumpsetup, jumping, mPassable, DY_MAX;
function clsActionWildvine (player, xx, yy) {
super(player, xx, yy);
height = 50;
_global.panelInfo.speedChange = 0.15;
if (DEBUG) {
mPlayer.mGpx.createEmptyMovieClip("dbgAnchorZone_mc", 2);
dbgDrawAnchorZone(mPlayer.mGpx.dbgAnchorZone_mc, mR1, mR2, mAng1, mAng2);
}
}
function init() {
state = ST_STAND;
super.activeAnimation("STAND_R");
}
function makeSwing() {
if (mArmLength != ARM_LEN) {
if ((mArmLength - DIFF_ELASTIC) > ARM_LEN) {
mArmLength = mArmLength - DIFF_ELASTIC;
} else if ((mArmLength + DIFF_ELASTIC) < ARM_LEN) {
mArmLength = mArmLength + DIFF_ELASTIC;
} else {
mArmLength = ARM_LEN;
}
}
if (mSwAng >= ANG_SWING) {
mSwDir = -1;
}
if (mSwAng <= (-ANG_SWING)) {
mSwDir = 1;
}
var _local6 = ANG_VEL * (1 - ((0.45 * Math.min(Math.abs(mSwAng), ANG_SWING)) / ANG_SWING));
mSwAng = mSwAng + (_local6 * mSwDir);
var _local3 = {x:0, y:0};
var _local5 = mSwObj.mGpx._xscale;
var _local4 = mSwObj.mGpx._yscale;
mSwObj.mGpx._xscale = 100;
mSwObj.mGpx._yscale = 100;
_local3.x = mArmLength * Math.cos(((mSwAng + 90) * Math.PI) / 180);
_local3.y = mArmLength * Math.sin(((mSwAng + 90) * Math.PI) / 180);
mSwObj.mGpx.localToGlobal(_local3);
mSwObj.mGpx._xscale = _local5;
mSwObj.mGpx._yscale = _local4;
_global.world.mGpx.globalToLocal(_local3);
mPlayer.action.y = _local3.y - ARM_Y;
if (mArmLength != ARM_LEN) {
var _local7 = mArmClip._rotation;
mArmClip._rotation = 0;
mArmClip._xscale = 100;
mArmClip._xscale = (100 * mArmLength) / mArmClip._width;
}
if (mSwDir > 0) {
mPlayer.action.x = _local3.x + ARM_X;
mPlayer.mGpx._xscale = -100;
mArmClip._rotation = 270 - mSwAng;
} else {
mPlayer.action.x = _local3.x - ARM_X;
mPlayer.mGpx._xscale = 100;
mArmClip._rotation = mSwAng - 90;
}
}
function searchAnchors() {
var _local14 = _global.player.mAnchorPoints.getCount();
var _local4 = null;
var _local8 = Number.MAX_VALUE;
var _local11 = null;
var _local13;
var _local12;
var _local7;
var _local5;
var _local15;
var _local6 = 0;
while (_local6 < _local14) {
_local4 = _global.player.mAnchorPoints.getObject(_local6);
var _local3 = {x:0, y:0};
_local4.mGpx.localToGlobal(_local3);
mPlayer.mGpx.globalToLocal(_local3);
_local5 = Math.sqrt((_local3.x * _local3.x) + (_local3.y * _local3.y));
if ((_local5 >= mR1) && (_local5 <= mR2)) {
_local7 = _global.arcTangent(-_local3.y, _local3.x);
if (((_local7 >= mAng1) && (_local7 <= mAng2)) && (_local5 < _local8)) {
if ((!mSwinging) || (mOldIDAnchor != _local4.id)) {
_local8 = _local5;
_local11 = _local4;
mOldIDAnchor = _local4.id;
_local13 = _local3.x;
_local12 = _local3.y;
_local15 = _local7;
}
}
}
_local6++;
}
if (_local11 != null) {
if (mArmClip != null) {
mArmClip.removeMovieClip();
}
mArmClip = mPlayer.mGpx.attachMovie("mc_player_wildvine_arm", "mc_player_arm", mPlayer.mGpx.getNextHighestDepth(), {_x:ARM_X, _y:ARM_Y});
mArmLength = Math.sqrt(((_local13 - ARM_X) * (_local13 - ARM_X)) + ((_local12 - ARM_Y) * (_local12 - ARM_Y)));
mArmClip._xscale = (100 * mArmLength) / mArmClip._width;
mArmClip._rotation = _global.arcTangent(_local12 - ARM_Y, _local13 - ARM_X);
mSwObj = _local11;
swing();
return(true);
}
return(false);
}
function makeImpulseAir() {
dx = ((-mSwDir) * Math.max(1 - (mImpulseFac / IMPULSE_FAC_X), 0)) * IMPULSE_X;
}
function cancelImpulseAir() {
clearInterval(mTimerImpulse);
mImpulseAir = false;
}
function swing() {
mSwinging = true;
onground = false;
activeAnimation("SWING_R");
mSwDir = -(_global.player.mGpx._xscale / 100);
mSwAng = (-mSwDir) * (90 + mArmClip._rotation);
state = ST_SWING;
}
function checkState() {
mKey.update();
switch (state) {
case ST_STAND :
dx = 0;
if (mImpulseAir) {
cancelImpulseAir();
}
if (toUp) {
searchAnchors();
} else if (toLeft) {
state = _global.ST_PLAYER_WALK_LEFT;
mPlayer.mGpx._xscale = -100;
activeAnimation("WALK_R");
dx = -DX_MAX;
} else if (toRight) {
state = _global.ST_PLAYER_WALK_RIGHT;
mPlayer.mGpx._xscale = 100;
activeAnimation("WALK_R");
dx = DX_MAX;
} else if (toAction && (onground)) {
state = ST_SHOOT;
}
super.updatePosition();
break;
case ST_SHOOT :
super.updatePosition();
if (shooting) {
return(undefined);
}
shooting = true;
dx = 0;
activeAnimation("SHOOT_R");
var _local4;
if (mPlayer.mGpx._xscale > 0) {
_local4 = _global.DIR_RIGHT;
} else {
_local4 = _global.DIR_LEFT;
}
_global.game.createBulletPlayer("mc_bullet_player_wildvine", mPlayer.mGpx._x, mPlayer.mGpx._y - 35, 10, _global.SHOOT_ARC, 5, _local4, 1, 1);
break;
case _global.ST_PLAYER_WALK_LEFT :
if (toUp) {
searchAnchors();
} else if (!toLeft) {
state = ST_STAND;
activeAnimation("STAND_R");
mPlayer.mGpx._xscale = -100;
dx = 0;
} else if (toAction && (onground)) {
state = ST_SHOOT;
}
super.updatePosition();
break;
case _global.ST_PLAYER_WALK_RIGHT :
if (toUp) {
searchAnchors();
} else if (!toRight) {
state = ST_STAND;
activeAnimation("STAND_R");
mPlayer.mGpx._xscale = 100;
dx = 0;
} else if (toAction && (onground)) {
state = ST_SHOOT;
}
super.updatePosition();
break;
case ST_SWING :
GRAVITY = GRAVITY_AIR;
if (!toUp) {
state = ST_WAITING_FALL;
}
makeSwing();
updatePosition();
break;
case ST_WAITING_FALL :
if (toUp) {
freeArm();
activeAnimation("JUMP_R");
if (!searchAnchors()) {
mImpulseFac = Math.abs(mSwAng) / ANG_SWING;
dy = (1 + (IMPULSE_FAC_Y * mImpulseFac)) * IMPULSE_Y;
clearInterval(mTimerImpulse);
mTimerImpulse = setInterval(this, "cancelImpulseAir", IMPULSE_TIME);
mImpulseAir = true;
mSwinging = false;
state = ST_FALL_WAIT;
}
} else {
makeSwing();
}
updatePosition();
break;
case ST_FALL_WAIT :
if (!toUp) {
state = ST_FALL;
}
if (mImpulseAir) {
makeImpulseAir();
} else if (toLeft) {
if (mImpulseAir) {
cancelImpulseAir();
}
mPlayer.mGpx._xscale = -100;
dx = -DX_MAX;
} else if (toRight) {
if (mImpulseAir) {
cancelImpulseAir();
}
mPlayer.mGpx._xscale = 100;
dx = DX_MAX;
}
super.updatePosition();
if (onground) {
GRAVITY = getDefaultGravity();
if (mImpulseAir) {
cancelImpulseAir();
}
activeAnimation("STAND_R");
state = ST_STAND;
mSwinging = false;
}
break;
case ST_FALL :
GRAVITY = GRAVITY_AIR;
dx = 0;
if (mImpulseAir) {
makeImpulseAir();
}
if (toUp) {
searchAnchors();
} else if (toLeft) {
if (mImpulseAir) {
cancelImpulseAir();
}
mPlayer.mGpx._xscale = -100;
dx = -DX_MAX;
} else if (toRight) {
if (mImpulseAir) {
cancelImpulseAir();
}
mPlayer.mGpx._xscale = 100;
dx = DX_MAX;
}
super.updatePosition();
if (!onground) {
break;
}
GRAVITY = getDefaultGravity();
if (mImpulseAir) {
cancelImpulseAir();
}
activeAnimation("STAND_R");
state = ST_STAND;
mSwinging = false;
}
}
function dbgDrawAnchorZone(mc, r1, r2, ang1, ang2) {
var _local7 = 1 + ((0.4142 * (ang2 - ang1)) / 90);
mPlayer.mGpx.dbgAnchorZone_mc.lineStyle(0, 65280);
mc.moveTo(r1 * Math.cos(((-ang1) * Math.PI) / 180), r1 * Math.sin(((-ang1) * Math.PI) / 180));
mc.curveTo((_local7 * r1) * Math.cos(((-(ang2 + ang1)) * Math.PI) / 360), (_local7 * r1) * Math.sin(((-(ang2 + ang1)) * Math.PI) / 360), r1 * Math.cos(((-ang2) * Math.PI) / 180), r1 * Math.sin(((-ang2) * Math.PI) / 180));
mPlayer.mGpx.dbgAnchorZone_mc.lineStyle(0, 65280);
mc.moveTo(r2 * Math.cos(((-ang1) * Math.PI) / 180), r2 * Math.sin(((-ang1) * Math.PI) / 180));
mc.curveTo((_local7 * r2) * Math.cos(((-(ang2 + ang1)) * Math.PI) / 360), (_local7 * r2) * Math.sin(((-(ang2 + ang1)) * Math.PI) / 360), r2 * Math.cos(((-ang2) * Math.PI) / 180), r2 * Math.sin(((-ang2) * Math.PI) / 180));
mPlayer.mGpx.dbgAnchorZone_mc.lineStyle(0, 65280);
mc.moveTo(r2 * Math.cos(((-ang1) * Math.PI) / 180), r2 * Math.sin(((-ang1) * Math.PI) / 180));
mc.lineTo(r1 * Math.cos(((-ang1) * Math.PI) / 180), r1 * Math.sin(((-ang1) * Math.PI) / 180));
mPlayer.mGpx.dbgAnchorZone_mc.lineStyle(0, 65280);
mc.moveTo(r2 * Math.cos(((-ang2) * Math.PI) / 180), r2 * Math.sin(((-ang2) * Math.PI) / 180));
mc.lineTo(r1 * Math.cos(((-ang2) * Math.PI) / 180), r1 * Math.sin(((-ang2) * Math.PI) / 180));
}
function freeArm() {
if (mArmClip != null) {
mArmClip.removeMovieClip();
mArmClip = null;
}
}
function free() {
freeArm();
clearInterval(mTimerImpulse);
if (DEBUG) {
mPlayer.mGpx.dbgAnchorZone_mc.removeMovieClip();
}
mPlayer.mGpx._xscale = 100;
}
function updatePosition() {
moveWorld();
x = x + dx;
y = y + dy;
}
function checkCollision() {
dy = dy + GRAVITY;
var _local6 = Math.ceil(y + dy);
var _local8 = x + dx;
onground = false;
if (dy >= 0) {
var _local5 = 0;
while (_local5 < _global.world.screenClips.length) {
var _local7 = _global.world.screenClips[_local5].mGpx.mc_terrain;
if (_local7.hitTest(x + _global.world._x, _local6 + _global.world._y, true) && (!jumpsetup)) {
onground = true;
jumping = false;
var _local4 = 0;
var _local3 = Math.floor(_local6);
while (_local7.hitTest(x + _global.world._x, _local3 + _global.world._y, true)) {
_local4++;
_local3 = _local3 - clsActionPlayer.TY;
}
if (_local4 < 10) {
y = _local3;
dy = 0;
} else {
x = x - dx;
dx = 0;
}
}
_local5++;
}
} else if (dy < 0) {
if (!mPassable) {
var _local5 = 0;
while (_local5 < _global.world.screenClips.length) {
var _local7 = _global.world.screenClips[_local5].mGpx.mc_terrain;
if (_local7.hitTest(x + _global.world._x, (_local6 + _global.world._y) - height, true)) {
dy = 1;
}
_local5++;
}
}
}
if (dy > DY_MAX) {
dy = DY_MAX;
}
}
function onEndAnimation() {
if ((state = ST_SHOOT)) {
shooting = false;
state = ST_STAND;
activeAnimation("STAND_R");
dx = 0;
}
}
var DEBUG = false;
var GRAVITY_AIR = 0.35;
var FLOOR_Y = 350;
static var ARM_X = 0;
static var ARM_Y = -80;
static var ANG_SWING = 70;
static var ARM_LEN = 140;
static var ANG_VEL = 4;
static var IMPULSE_TIME = 2000;
static var IMPULSE_Y = -5;
static var IMPULSE_X = 6;
static var IMPULSE_FAC_Y = 1.5;
static var IMPULSE_FAC_X = 1.35;
static var DIFF_ELASTIC = 1;
var mR1 = 100;
var mR2 = 275;
var mAng1 = 0;
var mAng2 = 85;
var mGpxDebug = null;
var mKeyUpPressed = false;
var mSwinging = false;
var mImpulseAir = false;
var mImpulseFac = 1;
var mArmClip = null;
var mOldIDAnchor = 0;
var ST_STAND = 1000;
var ST_WALK = 1002;
var ST_SWING = 1003;
var ST_WAITING_FALL = 1004;
var ST_FALL_WAIT = 1005;
var ST_FALL = 1006;
var ST_SHOOT = 1007;
}
Symbol 2425 MovieClip [__Packages.clsActionCannonbolt] Frame 0
class clsActionCannonbolt extends clsActionPlayer
{
var mSpecial, height, dx, state, shooting, jumping, toRight, toLeft, onground, mElevation, jumpsetup, dy, mDir, mPlayer;
function clsActionCannonbolt (player, xx, yy) {
super(player, xx, yy);
mSpecial = false;
height = 60;
}
function subKeySpaceIni(parent) {
if (parent == undefined) {
parent = this;
}
if (parent.mSpecial) {
parent.mSpecial = false;
parent.DX_MAX = 3;
parent.DX_MAX_JUMP = 2;
parent.IMPULSE = -10;
_global.panelInfo.speedChange = 0.2;
} else {
parent.mSpecial = true;
parent.DX_MAX = 13;
parent.DX_MAX_JUMP = 12;
parent.IMPULSE = -17;
_global.panelInfo.speedChange = 0.7;
}
}
function orderStand(dir) {
if (mSpecial) {
if (dx > 1) {
dx = dx - DIF_SPIN;
} else if (dx < -1) {
dx = dx + DIF_SPIN;
} else {
dx = 0;
}
} else {
dx = 0;
}
if (dir == _global.DIR_RIGHT) {
activeAnimation("STAND_R");
} else {
activeAnimation("STAND_L");
}
if (!_global.playerAlive) {
state = _global.ST_PLAYER_DIE;
}
}
function orderWalk(dir) {
if (shooting || (jumping)) {
return(undefined);
}
if (dir == _global.DIR_RIGHT) {
activeAnimation("WALK_R");
if (mSpecial) {
if (dx < DX_MAX) {
dx = dx + DIF_SPIN;
} else {
dx = DX_MAX;
}
} else {
dx = DX_MAX;
}
} else {
activeAnimation("WALK_L");
if (mSpecial) {
if (dx > (-DX_MAX)) {
dx = dx - DIF_SPIN;
} else {
dx = -DX_MAX;
}
} else {
dx = -DX_MAX;
}
}
if (!_global.playerAlive) {
state = _global.ST_PLAYER_DIE;
}
}
function orderJump(dir) {
if (toRight) {
if (mSpecial) {
if (dx < DX_MAX) {
dx = dx + DIF_SPIN;
} else {
dx = DX_MAX;
}
} else {
dx = DX_MAX_JUMP;
}
} else if (toLeft) {
if (mSpecial) {
if (dx > (-DX_MAX)) {
dx = dx - DIF_SPIN;
} else {
dx = -DX_MAX;
}
} else {
dx = -DX_MAX_JUMP;
}
}
if (onground && (!_global.playerAlive)) {
state = _global.ST_PLAYER_DIE;
return(undefined);
}
if (onground) {
mElevation = 0;
}
if ((mElevation > clsActionPlayer.MAX_TIME_JUMP) && (jumping)) {
return(undefined);
}
if (toRight) {
if (mSpecial) {
if (dx < DX_MAX) {
dx = dx + DIF_SPIN;
} else {
dx = DX_MAX;
}
} else {
dx = DX_MAX_JUMP;
}
} else if (toLeft) {
if (mSpecial) {
if (dx > (-DX_MAX)) {
dx = dx - DIF_SPIN;
} else {
dx = -DX_MAX;
}
} else {
dx = -DX_MAX_JUMP;
}
}
onground = false;
shooting = false;
jumping = true;
jumpsetup = true;
jumpsetup = false;
dy = IMPULSE;
if (dir == _global.DIR_RIGHT) {
activeAnimation("JUMP_R");
} else {
activeAnimation("JUMP_L");
}
}
function activeAnimation(animation) {
if (mSpecial) {
if (mDir == _global.DIR_RIGHT) {
mPlayer.mGpx.mc_ben.gotoAndStop("SHOOT_R");
} else {
mPlayer.mGpx.mc_ben.gotoAndStop("SHOOT_L");
}
return(undefined);
}
mPlayer.mGpx.mc_ben.gotoAndStop(animation);
}
var IMPULSE = -15.5;
var DX_MAX = 3;
var DX_MAX_JUMP = 2;
var GRAVITY = 1.5;
static var DIF_SPIN = 0.4;
}
Symbol 2426 MovieClip [__Packages.clsAerialAnchor] Frame 0
class clsAerialAnchor
{
var mGpx, id;
function clsAerialAnchor (parent, clip, x, y) {
var _local3 = clsGame.getNextCreationDepth();
mGpx = parent.attachMovie(clip, clip + _local3, _local3);
mGpx._x = x;
mGpx._y = y;
mGpx._xscale = 60;
mGpx._yscale = 60;
ID_ANCHOR++;
if (ID_ANCHOR > MAX_ID_ANCHOR) {
ID_ANCHOR = 1;
}
id = ID_ANCHOR;
_global.player.registerAnchorPoint(this);
}
function free() {
_global.player.unregisterAnchorPoint(this);
mGpx.removeMovieClip();
}
static var ID_ANCHOR = 0;
static var MAX_ID_ANCHOR = 1000000;
}
Symbol 2427 MovieClip [__Packages.endActionGame] Frame 0
class endActionGame
{
var state;
function endActionGame () {
state = ST_INI;
}
function update() {
switch (state) {
case ST_INI :
if ((((_global.player.state == _global.ST_PLAYER_STAND_RIGHT) || (_global.player.state == _global.ST_PLAYER_STAND_LEFT)) || (_global.player.state == _global.ST_PLAYER_WALK_RIGHT)) || (_global.player.state == _global.ST_PLAYER_WALK_LEFT)) {
_global.mode_collision = false;
_global.playerActiveChange = false;
_global.player.action.mSpecial = false;
_global.player.action.shooting = false;
_global.player.mGpx._xscale = 100;
if (_global.activePlayer != _global.PLAYER_BEN) {
_global.player.transformToBen();
}
_global.player.mGpx.gotoAndStop("PLAYER_" + _global.PLAYER_BEN);
_global.player.action.activeAnimation("STAND_R");
_global.player.showCollision(0);
_global.player.action.activeAnimation("WIN");
state = ST_EMPTY;
}
break;
case ST_EMPTY :
}
}
static var ST_INI = 1;
static var ST_EMPTY = 0;
}
Symbol 2428 MovieClip [__Packages.clsActorEnemy] Frame 0
class clsActorEnemy
{
var mParent, mClip, mGpx;
function clsActorEnemy (parent, clip, x, y) {
mParent = parent;
mClip = clip;
var _local2 = clsGame.getNextCreationDepth();
mGpx = parent.attachMovie(mClip, mClip + _local2, _local2);
mGpx._x = x;
mGpx._y = y;
mGpx.gotoAndStop("STAND");
}
function get dir() {
if (mGpx._xscale > 0) {
return(_global.DIR_LEFT);
}
return(_global.DIR_RIGHT);
}
function activeAnimation(anima) {
mGpx.gotoAndStop(anima);
}
function direction(dir) {
if (dir == _global.DIR_LEFT) {
mGpx._xscale = 100;
} else if (dir == _global.DIR_RIGHT) {
mGpx._xscale = -100;
} else if (dir == _global.DIR_UP) {
mGpx._yscale = 100;
} else if (dir == _global.DIR_DOWN) {
mGpx._yscale = -100;
}
}
function free() {
mGpx.removeMovieClip();
state = _global.ST_KILL;
}
var state = 0;
}
Symbol 2429 MovieClip [__Packages.clsEnemy] Frame 0
class clsEnemy extends clsActorEnemy
{
var timeShoot, numLife, speed, mShooting, mGpx, activeAnimation, state, mParent;
function clsEnemy (parent, clip, x, y, nSpeed, nLife) {
super(parent, clip, x, y);
timeShoot = 10;
numLife = nLife;
speed = nSpeed;
mShooting = false;
}
function update() {
if (!_global.pause) {
if (mGpx.mc_collision.hitTest(_global.player.mGpx.mc_ben.mc_collision)) {
_global.player.hit();
}
if (mGpx.mc_collision.hitTest(_global.player.mGpx.mc_ben.mc_collision_punch)) {
hit(_global.DMG_PUNCH_ENEMY);
}
if (mGpx.hitTest(_global.player.mGpx.mc_area_attack) && ((_global.player.mGpx.mc_ben._currentframe == clsActionPlayer.FRAME_FALL_L) || (_global.player.mGpx.mc_ben._currentframe == clsActionPlayer.FRAME_FALL_R))) {
if (_global.player.mGpx.mc_ben._currentframe == clsActionPlayer.FRAME_FALL_L) {
_global.player.action.activeAnimation("FALL_ATTACK_L");
}
if (_global.player.mGpx.mc_ben._currentframe == clsActionPlayer.FRAME_FALL_R) {
_global.player.action.activeAnimation("FALL_ATTACK_R");
}
}
if (mGpx.hitTest(_global.player.mGpx.mc_area_bottom) && (_global.player.action.jumping)) {
hit(_global.DMG_PUNCH_ENEMY);
}
if (_global.game.mzBullets.length != 0) {
var _local3 = 0;
while (_local3 < _global.game.mzBullets.length) {
if (_global.game.mzBullets[_local3].mGpx.mc_collision.hitTest(mGpx.mc_collision)) {
hit(_global.DMG_SHOOT);
_global.game.mzBullets[_local3].free();
}
_local3++;
}
}
if (mGpx.mc_collision.hitTest(_global.player.mGpx.mc_ben.mc_collision_invincible)) {
hit(_global.DMG_SPIN);
}
}
}
function hit(damage) {
numLife = numLife - damage;
if (numLife <= 0) {
activeAnimation("DIE");
_global.game.updateScore(mPriceDie);
state = _global.ST_KILL;
_global.game.createPrice(mPriceDie, mParent._x + mGpx._x, (mParent._y + mGpx._y) - 70);
_global.enemiesDie++;
} else {
activeAnimation("HIT");
_global.game.updateScore(mPriceHit);
}
_global.game.createEffect("mc_fx_hit", mParent._x + mGpx._x, (mParent._y + mGpx._y) - 10);
}
function attack() {
activeAnimation("ALERT");
}
function shoot() {
activeAnimation("SHOOT");
}
static var FRAME_STAND = 1;
static var FRAME_WALK = 10;
static var FRAME_ALERT = 20;
static var FRAME_SHOOT = 30;
static var FRAME_HIT = 40;
static var FRAME_DIE = 50;
var mPriceHit = 100;
var mPriceDie = 200;
}
Symbol 2430 MovieClip [__Packages.clsEnemyAmphibian] Frame 0
class clsEnemyAmphibian extends clsEnemy
{
var mTime, state, mGpx, activeAnimation, mParent, direction;
function clsEnemyAmphibian (parent, clip, x, y, nLife) {
super(parent, clip, x, y, 0, nLife);
mTime = _global.TIMER;
}
function update() {
if (((!_global.pause) && (state != _global.ST_KILL)) && (mGpx._currentframe != clsEnemy.FRAME_HIT)) {
super.update();
if (((_global.TIMER - mTime) / 1000) >= TIME_ATTACK) {
activeAnimation("ALERT");
mTime = _global.TIMER;
}
if (_global.player._x < (mParent._x + mGpx._x)) {
direction(_global.DIR_LEFT);
} else {
direction(_global.DIR_RIGHT);
}
}
}
static var TIME_ATTACK = 3;
var mPriceDie = 150;
}
Symbol 2431 MovieClip [__Packages.clsBonus] Frame 0
class clsBonus
{
var mParent, mGpx, mType, mPrice, state;
function clsBonus (parent, clip, x, y) {
mParent = parent;
var _local4 = clsGame.getNextCreationDepth();
mGpx = parent.attachMovie(clip, clip + _local4, _local4);
mGpx._x = x;
mGpx._y = y;
mGpx.gotoAndStop("STAND");
if (clip == "mc_bonus_sphere") {
mType = TYPE_ENERGY;
mPrice = 100;
} else if (clip == "mc_bonus_health") {
mType = TYPE_HEALTH;
mPrice = 150;
} else if (clip == "mc_bonus_life") {
mType = TYPE_LIFE;
mPrice = 200;
}
state = 0;
if (_global.showCollision) {
mGpx.mc_collision._alpha = 50;
} else {
mGpx.mc_collision._alpha = 0;
}
}
function update() {
if (!_global.pause) {
if (mGpx.mc_collision.hitTest(_global.player.mGpx.mc_ben.mc_collision) || (mGpx.mc_collision.hitTest(_global.player.mGpx.mc_ben.mc_collision_invincible))) {
_global.game.createEffect("mc_fx_bonus_glow", mParent._x + mGpx._x, mParent._y + mGpx._y);
_global.game.updateScore(mPrice);
switch (mType) {
case TYPE_ENERGY :
updateTypeEnergy();
break;
case TYPE_HEALTH :
updateTypeHealth();
break;
case TYPE_LIFE :
updateTypeLife();
}
free();
}
}
}
function updateTypeEnergy() {
if (!_global.playerActiveChange) {
_global.panelInfo.removePenalty();
}
_global.panelInfo.updateEnergyTrans(100);
}
function updateTypeHealth() {
_global.game.updateEnergyLife(100);
}
function updateTypeLife() {
_global.game.updateNumLifes(1);
}
function free() {
state = _global.ST_KILL;
mGpx.removeMovieClip();
}
static var TYPE_ENERGY = 1;
static var TYPE_HEALTH = 2;
static var TYPE_LIFE = 3;
}
Symbol 2432 MovieClip [__Packages.clsEnemyHorizontal] Frame 0
class clsEnemyHorizontal extends clsEnemy
{
var limitMove, limit_min, mGpx, limit_max, direction, state, speed, activeAnimation;
function clsEnemyHorizontal (parent, clip, x, y, nSpeed, nLife, nLimit) {
super(parent, clip, x, y, nSpeed, nLife);
limitMove = nLimit;
limit_min = mGpx._x - limitMove;
limit_max = mGpx._x + limitMove;
direction(_global.DIR_RIGHT);
}
function update() {
if (((!_global.pause) && (state != _global.ST_KILL)) && (mGpx._currentframe != clsEnemy.FRAME_HIT)) {
if ((mGpx._x < limit_min) || (mGpx._x > limit_max)) {
speed = -speed;
if (speed > 0) {
direction(_global.DIR_RIGHT);
} else {
direction(_global.DIR_LEFT);
}
}
mGpx._x = mGpx._x + speed;
if (speed != 0) {
activeAnimation("WALK");
} else {
activeAnimation("STAND");
}
super.update();
}
}
}
Symbol 2433 MovieClip [__Packages.clsEnemyHorWait] Frame 0
class clsEnemyHorWait extends clsEnemy
{
var time_shoot, limitMove, limit_min, mGpx, limit_max, state, direction, speedBase, speed, initTime, initTimeShoot, activeAnimation, mShooting, attack, mParent, mClip, __get__dir;
function clsEnemyHorWait (parent, clip, x, y, nSpeed, nLife, nLimit, nShoot) {
super(parent, clip, x, y, nSpeed, nLife);
time_shoot = nShoot;
limitMove = nLimit;
limit_min = mGpx._x - limitMove;
limit_max = mGpx._x + limitMove;
state = ST_WALK_RIGTH;
direction(_global.DIR_RIGHT);
speedBase = speed;
initTime = 1;
initTimeShoot = 1;
}
function update() {
if (((((!_global.pause) && (state != _global.ST_KILL)) && (mGpx._currentframe != clsEnemy.FRAME_HIT)) && (mGpx._currentframe != clsEnemy.FRAME_SHOOT)) && (mGpx._currentframe != clsEnemy.FRAME_ALERT)) {
switch (state) {
case ST_WALK_RIGTH :
if (mGpx._x > limit_max) {
state = ST_WAIT_RIGTH;
direction(_global.DIR_LEFT);
speed = 0;
}
break;
case ST_WAIT_RIGTH :
initTime++;
if ((initTime % time_wait) == 0) {
speed = -Math.abs(speedBase);
state = ST_WALK_LEFT;
initTime = 1;
}
break;
case ST_WALK_LEFT :
if (mGpx._x < limit_min) {
state = ST_WAIT_LEFT;
direction(_global.DIR_RIGHT);
speed = 0;
}
break;
case ST_WAIT_LEFT :
initTime++;
if ((initTime % time_wait) != 0) {
break;
}
speed = Math.abs(speedBase);
state = ST_WALK_RIGTH;
initTime = 1;
}
if (speed != 0) {
activeAnimation("WALK");
} else {
activeAnimation("STAND");
}
mGpx._x = mGpx._x + speed;
initTimeShoot++;
if ((initTimeShoot % time_shoot) == 0) {
initTimeShoot = 1;
mShooting = true;
attack();
}
super.update();
}
if (((!_global.pause) && (mGpx._currentframe == clsEnemy.FRAME_SHOOT)) && (mShooting)) {
shoot();
mShooting = false;
}
}
function shoot() {
super.shoot();
var _local8 = mGpx._x + mParent._x;
var _local6 = (mGpx._y - 5) + mParent._y;
var _local10 = mClip + "_bullet";
var _local12 = _global.SHOOT_NORMAL;
var _local11 = 3;
var _local7 = 1;
var _local9 = 3;
var _local4;
var _local5;
if (__get__dir() == _global.DIR_RIGHT) {
_local4 = 0;
_local5 = 0;
} else {
_local4 = 180;
_local5 = 0;
}
_global.game.createBulletEnemy(_local10, _local8, _local6, _local11, _local12, _local9, _local4, _local5, _local7);
}
static var ST_WALK_RIGTH = 1;
static var ST_WAIT_RIGTH = 2;
static var ST_WALK_LEFT = 3;
static var ST_WAIT_LEFT = 4;
var time_wait = 200;
}
Symbol 2434 MovieClip [__Packages.clsPlatformObject] Frame 0
class clsPlatformObject
{
var typeMove, limitMove, speed, mGpx, mGpxMask, limit_min, limit_max;
function clsPlatformObject (parent, x, y, mask, nTypeMove, nSpeed, nLimit, nW, nH) {
var _local3;
if (parent.mc_terrain == undefined) {
_local3 = parent.createEmptyMovieClip("mc_terrain", 1);
_local3._x = 0;
_local3._y = 0;
} else {
_local3 = parent.mc_terrain;
}
var _local4 = clsGame.getNextCreationDepth();
typeMove = nTypeMove;
limitMove = nLimit;
speed = nSpeed;
mGpx = _local3.attachMovie("mc_platform", "mc_platform" + _local4, _local4);
mGpx._x = x;
mGpx._y = y;
mGpxMask = parent.attachMovie(mask, mask + _local4, _local4);
mGpxMask._x = x;
mGpxMask._y = y;
if (nW != undefined) {
mGpx._width = nW;
}
if (nH != undefined) {
mGpx._height = nH;
}
if (typeMove == _global.MOVE_HH) {
limit_min = mGpx._x - limitMove;
limit_max = mGpx._x + limitMove;
} else if (typeMove == _global.MOVE_VV) {
limit_min = mGpx._y - limitMove;
limit_max = mGpx._y + limitMove;
mGpx._height = 20;
}
if (_global.showCollision) {
_local3._alpha = 100;
} else {
_local3._alpha = 0;
}
mGpx.onEnterFrame = function () {
if (this.hitTest(_global.player.mGpx.mc_area)) {
_global.player.action.mPassable = true;
}
};
}
function update() {
if (!_global.pause) {
if (typeMove == _global.MOVE_HH) {
moveHorizontal();
} else if (typeMove == _global.MOVE_VV) {
moveVertical();
}
}
}
function moveHorizontal() {
if ((mGpxMask._x < limit_min) || (mGpxMask._x > limit_max)) {
speed = -speed;
}
mGpx._x = mGpx._x + speed;
mGpxMask._x = mGpxMask._x + speed;
if (mGpx.hitTest(_global.player.mGpx.mc_area_plataform)) {
_global.player.action.x = _global.player.action.x + speed;
_global.player.mGpx._x = _global.player.action.x;
}
}
function moveVertical() {
if ((mGpxMask._y < limit_min) || (mGpxMask._y > limit_max)) {
speed = -speed;
}
mGpx._y = mGpx._y + speed;
mGpxMask._y = mGpxMask._y + speed;
if (mGpx.hitTest(_global.player.mGpx.mc_area_plataform)) {
_global.player.action.y = _global.player.action.y + speed;
}
}
function free() {
mGpx.removeMovieClip();
mGpxMask.removeMovieClip();
}
}
Symbol 2435 MovieClip [__Packages.clsEnemyAerial] Frame 0
class clsEnemyAerial extends clsEnemy
{
var mPointIni, mPointEnd, direction, speed, mH, mK, mA, mB, mdir, state, mGpx, mParent, mClip, __get__dir;
function clsEnemyAerial (parent, clip, nSpeed, nLife, h, k, a, b, dir) {
if ((dir == 1) || (dir == undefined)) {
super(parent, clip, h - a, k, nSpeed, nLife);
mPointIni = h - a;
mPointEnd = h + a;
direction(_global.DIR_RIGHT);
} else {
super(parent, clip, h + a, k, nSpeed, nLife);
mPointIni = h + a;
mPointEnd = h - a;
speed = -speed;
direction(_global.DIR_LEFT);
}
mH = h;
mK = k;
mA = a;
mB = b;
mdir = dir;
mTime = _global.TIMER;
state = ST_1;
}
function update() {
if ((((!_global.pause) && (state != _global.ST_KILL)) && (mGpx._currentframe != clsEnemy.FRAME_HIT)) && (mGpx._currentframe != clsEnemy.FRAME_SHOOT)) {
switch (state) {
case ST_1 :
if (((_global.TIMER - mTime) / 1000) >= 2) {
state = ST_2;
}
break;
case ST_2 :
shoot();
state = ST_3;
mTime = _global.TIMER;
break;
case ST_3 :
if (((_global.TIMER - mTime) / 1000) >= 3) {
state = ST_4;
}
break;
case ST_4 :
mTrayectory = new clsEllipse(mH, mK, mA, mB, mPointIni, "down", mPointEnd, "down", -speed);
mGpx._x = mTrayectory._X;
mGpx._y = mTrayectory._Y;
state = ST_5;
break;
case ST_5 :
mTrayectory.update();
mGpx._x = mTrayectory._X;
mGpx._y = mTrayectory._Y;
if (mTrayectory.__get___End() == true) {
delete mTrayectory;
mTrayectory = null;
state = ST_6;
mTime = _global.TIMER;
if ((mdir == 1) || (mdir == undefined)) {
direction(_global.DIR_LEFT);
} else if (mdir == 0) {
direction(_global.DIR_RIGHT);
}
}
break;
case ST_6 :
if (((_global.TIMER - mTime) / 1000) >= 3) {
state = ST_7;
}
break;
case ST_7 :
shoot();
state = ST_8;
mTime = _global.TIMER;
break;
case ST_8 :
if (((_global.TIMER - mTime) / 1000) >= 3) {
state = ST_9;
}
break;
case ST_9 :
mTrayectory = new clsEllipse(mH, mK, mA, mB, mPointEnd, "down", mPointIni, "down", speed);
mGpx._x = mTrayectory._X;
mGpx._y = mTrayectory._Y;
state = ST_10;
break;
case ST_10 :
mTrayectory.update();
mGpx._x = mTrayectory._X;
mGpx._y = mTrayectory._Y;
if (mTrayectory.__get___End() != true) {
break;
}
delete mTrayectory;
mTrayectory = null;
state = ST_1;
mTime = _global.TIMER;
if ((mdir == 1) || (mdir == undefined)) {
direction(_global.DIR_RIGHT);
} else {
if (mdir != 0) {
break;
}
direction(_global.DIR_LEFT);
}
}
super.update();
}
}
function shoot() {
super.shoot();
var _local8 = mGpx._x + mParent._x;
var _local6 = mGpx._y + mParent._y;
var _local10 = mClip + "_bullet";
var _local12 = _global.SHOOT_NORMAL;
var _local11 = 5;
var _local7 = 3;
var _local9 = 3;
var _local4;
var _local5;
if (__get__dir() == _global.DIR_RIGHT) {
_local4 = -30;
_local5 = -15;
} else {
_local4 = -150;
_local5 = 15;
}
_global.game.createBulletEnemy(_local10, _local8, _local6, _local11, _local12, _local9, _local4, _local5, _local7);
}
static var ST_1 = 1;
static var ST_2 = 2;
static var ST_3 = 3;
static var ST_4 = 4;
static var ST_5 = 5;
static var ST_6 = 6;
static var ST_7 = 7;
static var ST_8 = 8;
static var ST_9 = 9;
static var ST_10 = 10;
var mTime = 0;
var mTrayectory = null;
var mPriceDie = 250;
}
Symbol 2436 MovieClip [__Packages.clsEnemyAquatic] Frame 0
class clsEnemyAquatic extends clsEnemy
{
var ma, mb, limitMove, limit_min, mGpx, limit_max, mState, direction, state, mDir, activeAnimation, speed;
function clsEnemyAquatic (parent, clip, x, y, nSpeed, nLife, nLimit, nA, nB) {
super(parent, clip, x, y, nSpeed, nLife);
ma = nA / 2;
mb = nB;
limitMove = nLimit;
limit_min = mGpx._x - limitMove;
limit_max = mGpx._x + limitMove;
mTime = _global.TIMER;
mState = ST_1;
direction(_global.DIR_RIGHT);
}
function update() {
if (((!_global.pause) && (state != _global.ST_KILL)) && (mGpx._currentframe != clsEnemy.FRAME_HIT)) {
super.update();
switch (mState) {
case ST_1 :
swim();
if (((_global.TIMER - mTime) / 1000) >= 2) {
var _local4 = jump();
if (_local4 != null) {
mState = ST_2;
switch (_local4) {
case "left" :
mDir = _local4;
break;
case "right" :
mDir = _local4;
}
}
}
break;
case ST_2 :
if (mTimeAlert == 0) {
activeAnimation("ALERT");
mTimeAlert = _global.TIMER;
}
if (((_global.TIMER - mTimeAlert) / 1000) >= TIME_ALERT) {
mState = ST_3;
mTimeAlert = 0;
}
break;
case ST_3 :
activeAnimation("WALK");
if (mDir == "left") {
mTrayJump = new clsEllipse(mGpx._x - ma, mGpx._y, ma, mb, mGpx._x, "up", mGpx._x - ma, "up", -VEL_JUMP);
mGpx._rotation = 90;
} else {
mTrayJump = new clsEllipse(mGpx._x + ma, mGpx._y, ma, mb, mGpx._x, "up", mGpx._x + ma, "up", VEL_JUMP);
mGpx._rotation = -90;
}
mState = ST_4;
break;
case ST_4 :
mTrayJump.update();
mGpx._x = mTrayJump._X;
mGpx._y = mTrayJump._Y;
if (mTrayJump.__get___End() == true) {
delete mTrayJump;
mTrayJump = null;
mState = ST_5;
}
break;
case ST_5 :
if (mDir == "left") {
mTrayJump = new clsEllipse(mGpx._x, mGpx._y + mb, ma, mb, mGpx._x, "up", mGpx._x - ma, "up", -VEL_JUMP);
mGpx._rotation = -90;
} else {
mTrayJump = new clsEllipse(mGpx._x, mGpx._y + mb, ma, mb, mGpx._x, "up", mGpx._x + ma, "up", VEL_JUMP);
mGpx._rotation = 90;
}
mState = ST_6;
break;
case ST_6 :
mTrayJump.update();
mGpx._x = mTrayJump._X;
mGpx._y = mTrayJump._Y;
if (mTrayJump.__get___End() != true) {
break;
}
delete mTrayJump;
mTrayJump = null;
mGpx._rotation = 0;
activeAnimation("STAND");
mTime = _global.TIMER;
mState = ST_1;
}
}
}
function swim() {
if ((mGpx._x < limit_min) || (mGpx._x > limit_max)) {
speed = -speed;
if (speed > 0) {
direction(_global.DIR_RIGHT);
} else {
direction(_global.DIR_LEFT);
}
}
mGpx._x = mGpx._x + speed;
}
function jump() {
if ((speed < 0) && ((mGpx._x - limit_min) > (2 * ma))) {
return("left");
}
if ((speed > 0) && ((limit_max - mGpx._x) > (2 * ma))) {
return("right");
}
return(null);
}
var mTime = 0;
var mTimeAlert = 0;
var mTrayJump = null;
static var ST_1 = 1;
static var ST_2 = 2;
static var ST_3 = 3;
static var ST_4 = 4;
static var ST_5 = 5;
static var ST_6 = 6;
static var VEL_JUMP = 3;
static var TIME_ALERT = 1;
}
Symbol 2437 MovieClip [__Packages.clsPlatformFall] Frame 0
class clsPlatformFall extends clsPlatformObject
{
var xIni, yIni, mGpx, timeFall, iniTime, timeWait, iniTimeWait, speedFall, limitFall, state, mGpxMask;
function clsPlatformFall (parent, x, y, mask, nTime, nW, nH) {
super(parent, x, y, mask);
xIni = x;
yIni = y;
if (nW != undefined) {
mGpx._width = nW;
}
if (nH != undefined) {
mGpx._height = nH;
}
timeFall = nTime;
iniTime = 0;
timeWait = 150;
iniTimeWait = 0;
speedFall = 10;
limitFall = mGpx._y + 1000;
state = ST_START;
mGpxMask.gotoAndStop("STAND");
}
function update() {
if (!_global.pause) {
if (state == ST_START) {
if (mGpx.hitTest(_global.player.mGpx.mc_area_plataform)) {
iniTime++;
if (iniTime > timeFall) {
state = ST_FALL;
}
mGpxMask.gotoAndStop("OVER");
} else {
iniTime = 0;
}
} else if (state == ST_FALL) {
iniTime = 0;
mGpxMask.gotoAndStop("DESTROY");
state = ST_WAIT;
} else if (state == ST_WAIT) {
mGpx._y = mGpx._y + speedFall;
iniTimeWait++;
if (iniTimeWait > timeWait) {
mGpxMask.gotoAndStop("RESTORE");
iniTimeWait = 0;
state = ST_RESTORE;
}
} else if (state == ST_RESTORE) {
mGpx._x = xIni;
mGpx._y = yIni;
state = ST_START;
} else if (state == ST_DIE) {
mGpx.removeMovieClip();
mGpxMask.removeMovieClip();
}
}
}
static var ST_START = 0;
static var ST_FALL = 1;
static var ST_DIE = 2;
static var ST_WAIT = 3;
static var ST_EMPTY = 4;
static var ST_RESTORE = 5;
}
Symbol 2438 MovieClip [__Packages.clsEnemyToxicGas] Frame 0
class clsEnemyToxicGas extends clsEnemy
{
var mTimeActive, mTime, mGpx, activeAnimation;
function clsEnemyToxicGas (parent, clip, x, y, time) {
super(parent, clip, x, y, 0, 1);
mTimeActive = time;
mTime = _global.TIMER;
}
function update() {
if ((!_global.pause) && (mGpx._currentframe != ACTIVE)) {
if (((_global.TIMER - mTime) / 1000) >= mTimeActive) {
activeAnimation("ALERT");
mTime = _global.TIMER;
}
}
if (mGpx.mc_collision.hitTest(_global.player.mGpx.mc_ben.mc_collision)) {
if (_global.activePlayer != _global.PLAYER_HEATBLAST) {
_global.player.hit();
}
}
if (_global.game.mzBullets.length != 0) {
var _local3 = 0;
while (_local3 < _global.game.mzBullets.length) {
if (_global.game.mzBullets[_local3].mGpx.mc_collision.hitTest(mGpx.mc_collision)) {
_global.game.mzBullets[_local3].free();
}
_local3++;
}
}
}
static var ACTIVE = 20;
}
Symbol 2439 MovieClip [__Packages.clsEnemyMine] Frame 0
class clsEnemyMine extends clsEnemy
{
var mGpx, mParent, free, activeAnimation;
function clsEnemyMine (parent, clip, x, y) {
super(parent, clip, x, y, 0, 1);
}
function update() {
if (mGpx.hitTest(_global.player.mGpx.mc_area_plataform)) {
if (!_global.player.action.mSpecial) {
_global.player.hit();
}
_global.game.createEffect("mc_fx_mine_explosion", mParent._x + mGpx._x, mParent._y + mGpx._y);
free();
}
if (_global.panelWilmutt == true) {
activeAnimation("ALERT");
}
if (_global.game.mzBullets.length != 0) {
var _local3 = 0;
while (_local3 < _global.game.mzBullets.length) {
if (_global.game.mzBullets[_local3].mGpx.mc_collision.hitTest(mGpx)) {
_global.game.createEffect("mc_fx_mine_explosion", mParent._x + mGpx._x, mParent._y + mGpx._y);
free();
}
_local3++;
}
}
}
}
Symbol 2440 MovieClip [__Packages.clsEnemyPirana] Frame 0
class clsEnemyPirana extends clsEnemy
{
var mlimit_max, mGpx, state, activeAnimation;
function clsEnemyPirana (parent, clip, x, y, nLife, time) {
super(parent, clip, x, y, 0, nLife);
mTime = _global.TIMER - (time * 1000);
mlimit_max = mGpx._y;
}
function update() {
if (((!_global.pause) && (state != _global.ST_KILL)) && (mGpx._currentframe != clsEnemy.FRAME_HIT)) {
attack();
super.update();
}
}
function attack() {
if (((_global.TIMER - mTime) / 1000) >= TIME_JUMP) {
if (mTimeAlert == 0) {
activeAnimation("ALERT");
mTimeAlert = _global.TIMER;
}
if (((_global.TIMER - mTimeAlert) / 1000) >= TIME_ALERT) {
mSpeedY = mSpeedY + GRAVITY;
if (!mJump) {
mGpx._y = mGpx._y - 1;
mSpeedY = IMPULSO;
mJump = true;
activeAnimation("WALK");
mGpx._rotation = 90;
}
if (mSpeedY >= 0) {
mGpx._rotation = -90;
}
if (mGpx._y >= mlimit_max) {
mTime = _global.TIMER;
mTimeAlert = 0;
mJump = false;
mSpeedY = 0;
mGpx._y = mlimit_max;
activeAnimation("STAND");
mGpx._rotation = 0;
}
mGpx._y = mGpx._y + mSpeedY;
}
}
}
static var TIME_JUMP = 4;
static var TIME_ALERT = 1;
static var GRAVITY = 1;
static var IMPULSO = -19;
var mSpeedY = 0;
var mJump = false;
var mTime = 0;
var mTimeAlert = 0;
}
Symbol 2441 MovieClip [__Packages.clsCollisionLiquid] Frame 0
class clsCollisionLiquid extends MovieClip
{
var collision, xpoint, hitTest, stop, play;
function clsCollisionLiquid () {
super();
}
function onEnterFrame() {
collision = _global.player.mGpx.mc_ben.mc_collision2;
xpoint = {x:collision._x, y:collision._y};
_global.player.mGpx.mc_ben.localToGlobal(xpoint);
if (hitTest(xpoint.x, xpoint.y, true)) {
_global.player.hit();
}
if (_global.pause) {
stop();
} else {
play();
}
}
}
Symbol 2442 MovieClip [__Packages.clsCollisionBoss] Frame 0
class clsCollisionBoss extends MovieClip
{
var collision, xpoint, hitTest, stop, play;
function clsCollisionBoss () {
super();
}
function onEnterFrame() {
collision = _global.player.mGpx.mc_ben.mc_collision2;
xpoint = {x:collision._x, y:collision._y};
_global.player.mGpx.mc_ben.localToGlobal(xpoint);
if (hitTest(xpoint.x, xpoint.y, true)) {
_global.player.hit();
_global.boss.mAction.mAnimo.activeAnimation("CHEER");
}
if (_global.activePlayer != _global.PLAYER_CANNONBOLT) {
if (_global.game.mzBullets.length != 0) {
var _local3 = 0;
while (_local3 < _global.game.mzBullets.length) {
collision = _global.game.mzBullets[_local3].mGpx.mc_collision2;
xpoint = {x:collision._x, y:collision._y};
_global.game.mzBullets[_local3].mGpx.localToGlobal(xpoint);
if (hitTest(xpoint.x, xpoint.y, true)) {
_global.boss.processHit(_global.DAMAGE_FIXED, _global.DMG_SHOOT, 0);
_global.game.mzBullets[_local3].free();
}
_local3++;
}
}
collision = _global.player.mGpx.mc_ben.mc_collision_punch;
xpoint = {x:collision._x, y:collision._y};
_global.player.mGpx.mc_ben.localToGlobal(xpoint);
if (hitTest(xpoint.x, xpoint.y, true)) {
_global.boss.processHit(_global.DAMAGE_FIXED, _global.DMG_PUNCH, 0);
}
} else {
collision = _global.player.mGpx.mc_ben.mc_collision_invincible2;
xpoint = {x:collision._x, y:collision._y};
_global.player.mGpx.mc_ben.localToGlobal(xpoint);
if (hitTest(xpoint.x, xpoint.y, true)) {
_global.boss.processHit(_global.DAMAGE_FIXED, _global.DMG_PUNCH, 0);
}
}
if (_global.pause) {
stop();
} else {
play();
}
}
}
Symbol 2443 MovieClip [__Packages.clsLimitLeft] Frame 0
class clsLimitLeft extends MovieClip
{
var _alpha, hitTest;
function clsLimitLeft () {
super();
}
function onLoad() {
if (_global.showCollision) {
_alpha = 70;
} else {
_alpha = 0;
}
}
function onEnterFrame() {
if (hitTest(_global.player.mGpx.mc_area)) {
_global.player.action.mLimitLeft = true;
}
}
}
Symbol 2444 MovieClip [__Packages.clsLimitRight] Frame 0
class clsLimitRight extends MovieClip
{
var _alpha, hitTest;
function clsLimitRight () {
super();
}
function onLoad() {
if (_global.showCollision) {
_alpha = 70;
} else {
_alpha = 0;
}
}
function onEnterFrame() {
if (hitTest(_global.player.mGpx.mc_area)) {
_global.player.action.mLimitRight = true;
}
}
}
Symbol 2445 MovieClip [__Packages.clsCollisionDangerFloor] Frame 0
class clsCollisionDangerFloor extends MovieClip
{
var collision, xpoint, hitTest;
function clsCollisionDangerFloor () {
super();
}
function onEnterFrame() {
collision = _global.player.mGpx.mc_area_plataform;
xpoint = {x:collision._x, y:collision._y};
_global.player.mGpx.localToGlobal(xpoint);
if (hitTest(xpoint.x, xpoint.y, true)) {
if (!_global.player.action.mSpecial) {
_global.player.hit();
}
}
}
}
Symbol 2446 MovieClip [__Packages.clsLimitUp] Frame 0
class clsLimitUp extends MovieClip
{
var hitTest;
function clsLimitUp () {
super();
}
function onEnterFrame() {
if (hitTest(_global.player.mGpx.mc_area)) {
_global.player.dy = 0;
_global.player.onground = true;
_global.player.mGpx._y = 0;
_global.player.mGpx._x = 0;
}
}
}
Symbol 2447 MovieClip [__Packages.clsGameLv02Boss] Frame 0
class clsGameLv02Boss extends clsGame
{
var createPlayer, init, createBoss_02;
function clsGameLv02Boss () {
super();
_global.N_S = 1;
_global.M_S = 1;
_global.posX = 100;
_global.posY = 320;
_global.world = new clsWorld("level_05_boss");
createPlayer(_global.posX, _global.posY);
_global.startSound(_global.snd_world, "snd_loopGame", 99999);
init();
createBoss_02();
}
}
Symbol 2448 MovieClip [__Packages.clsWorld] Frame 0
class clsWorld
{
var mMapName, mGpx, width, height, screenClips, oldX, oldY, d1, d2, d3, d4;
function clsWorld (mapName) {
mMapName = mapName;
if (((mMapName == "level_01") || (mMapName == "level_02")) || (mMapName == "level_03")) {
_global.world_move = new clsWorldMove("level_01", _global.DEPTH_BG01);
}
mGpx = _root.createEmptyMovieClip(mapName, _global.DEPTH_WORLD);
width = _global.S_W * _global.N_S;
height = _global.S_H * _global.M_S;
screenClips = new Array();
}
function get _x() {
return(mGpx._x);
}
function get _y() {
return(mGpx._y);
}
function set _x(x) {
mGpx._x = x;
//return(_x);
}
function set _y(y) {
mGpx._y = y;
//return(_y);
}
function update() {
checkZone();
}
function checkZone() {
var _local4 = Math.floor(Math.abs(_x / _global.S_W)) + 1;
var _local3 = Math.floor(Math.abs(_y / _global.S_H)) + 1;
if ((_local4 != oldX) || (_local3 != oldY)) {
checkScreen(_local4, _local3);
createScreen(_local4, _local3);
oldX = _local4;
oldY = _local3;
}
}
function checkScreen(nX, nY) {
d1 = nX + (_global.N_S * (nY - 1));
d2 = (nX + 1) + (_global.N_S * (nY - 1));
d3 = nX + (_global.N_S * nY);
d4 = (nX + 1) + (_global.N_S * nY);
var _local3 = 0;
while (_local3 < screenClips.length) {
if ((((screenClips[_local3].depth != d1) && (screenClips[_local3].depth != d2)) && (screenClips[_local3].depth != d3)) && (screenClips[_local3].depth != d4)) {
screenClips[_local3].free();
delete screenClips[_local3];
screenClips.splice(_local3, 1);
_local3--;
}
_local3++;
}
}
function createScreen(nX, nY) {
if (_global.world.mGpx.getInstanceAtDepth(d1) == undefined) {
var _local5 = new clsScreen(mMapName, nX, nY);
screenClips.push(_local5);
}
if (_global.world.mGpx.getInstanceAtDepth(d2) == undefined) {
var _local5 = new clsScreen(mMapName, nX + 1, nY);
screenClips.push(_local5);
}
if (_global.world.mGpx.getInstanceAtDepth(d3) == undefined) {
var _local5 = new clsScreen(mMapName, nX, nY + 1);
screenClips.push(_local5);
}
if (_global.world.mGpx.getInstanceAtDepth(d4) == undefined) {
var _local5 = new clsScreen(mMapName, nX + 1, nY + 1);
screenClips.push(_local5);
}
}
function free() {
mGpx.removeMovieClip();
}
}
Symbol 2449 MovieClip [__Packages.clsWorldMove] Frame 0
class clsWorldMove
{
var mGpx, width, height;
function clsWorldMove (mapName, mDepth) {
mGpx = _root.attachMovie(mapName + "_bg", mapName + "_bg", mDepth);
mGpx._x = 0;
mGpx._y = -200;
width = 1200;
height = 800;
}
function free() {
mGpx.removeMovieClip();
}
static var Y_MIN = 0;
static var Y_MAX = -400;
static var X_MIN = 0;
static var X_MAX = -600;
}
Symbol 2450 MovieClip [__Packages.clsScreen] Frame 0
class clsScreen
{
var depth, mGpx, xx, yy;
function clsScreen (nameMap, nX, nY) {
depth = nX + (_global.N_S * (nY - 1));
mGpx = _global.world.mGpx.attachMovie((((("mc_screen_" + nameMap) + "_") + nX) + "_") + nY, (("mc_screen_" + nX) + "_") + nY, depth);
xx = nX;
yy = nY;
mGpx._x = (xx - 1) * _global.S_W;
mGpx._y = (yy - 1) * _global.S_H;
if (_global.showCollision) {
mGpx.mc_terrain._alpha = 100;
} else {
mGpx.mc_terrain._alpha = 0;
}
}
function free() {
mGpx.removeMovieClip();
}
}
Symbol 2451 MovieClip [__Packages.clsGameLv03Boss] Frame 0
class clsGameLv03Boss extends clsGame
{
var createPlayer, init, createBoss_03;
function clsGameLv03Boss () {
super();
_global.N_S = 1;
_global.M_S = 1;
_global.posX = 100;
_global.posY = 320;
_global.world = new clsWorld("level_08_boss");
createPlayer(_global.posX, _global.posY);
_global.startSound(_global.snd_world, "snd_loopGame", 99999);
init();
createBoss_03();
}
}
Symbol 2452 MovieClip [__Packages.clsGameLv01] Frame 0
class clsGameLv01 extends clsGame
{
var mPlayerX, mzPoint, createPlayer, createMessage, checkPointForward, mzPosCoins, createCoins;
function clsGameLv01 () {
super();
_global.N_S = 24;
_global.M_S = 4;
mPlayerX = 0;
mzPoint = [[100, 1129], [4022, 1130], [9622, 930]];
_global.posX = mzPoint[0][0];
_global.posY = mzPoint[0][1];
_global.world = new clsWorld("level_01");
createPlayer(_global.posX, _global.posY);
_global.startSound(_global.snd_world, "snd_loopGame", 99999);
init();
createMessage("mc_start_level_01");
_global.enemiesDie = 0;
_global.iniLevelLife = _global.playerNumLife;
}
function update() {
super.update();
checkPointForward();
}
function init() {
super.init();
delete _global.mzCoins;
mzPosCoins = [[13650, 915], [12874.5, 1108], [11138.75, 1112], [9864, 912], [8457, 1108], [6600, 1518], [4465.5, 1512], [2955, 1310], [4870.75, 411.5], [2152.5, 407.5]];
createCoins();
}
}
Symbol 2453 MovieClip [__Packages.clsGameLv02] Frame 0
class clsGameLv02 extends clsGame
{
var mPlayerX, mzPoint, createPlayer, createMessage, checkPointForward, mzPosCoins, createCoins;
function clsGameLv02 () {
super();
_global.N_S = 24;
_global.M_S = 4;
mPlayerX = 0;
mzPoint = [[100, 1127], [4160, 1030], [9770, 933]];
_global.posX = mzPoint[0][0];
_global.posY = mzPoint[0][1];
_global.world = new clsWorld("level_02");
createPlayer(_global.posX, _global.posY);
_global.startSound(_global.snd_world, "snd_loopGame", 99999);
init();
createMessage("mc_start_level_02");
_global.enemiesDie = 0;
_global.iniLevelLife = _global.playerNumLife;
}
function update() {
super.update();
checkPointForward();
}
function init() {
super.init();
delete _global.mzCoins;
mzPosCoins = [[14049, 1110], [12039.25, 1510], [12654.25, 310], [11164.5, 310], [9864.5, 1515], [8649.5, 1015], [6649.75, 1210], [5399.75, 1515], [3949.75, 305], [655, 310]];
createCoins();
}
}
Symbol 2454 MovieClip [__Packages.clsGameLv03] Frame 0
class clsGameLv03 extends clsGame
{
var mPlayerX, mzPoint, createPlayer, createMessage, checkPointForward, mzPosCoins, createCoins;
function clsGameLv03 () {
super();
_global.N_S = 24;
_global.M_S = 4;
mPlayerX = 0;
mzPoint = [[100, 1124], [4822, 831], [9070, 929]];
_global.posX = mzPoint[0][0];
_global.posY = mzPoint[0][1];
_global.world = new clsWorld("level_03");
createPlayer(_global.posX, _global.posY);
_global.startSound(_global.snd_world, "snd_loopGame", 99999);
init();
createMessage("mc_start_level_03");
_global.enemiesDie = 0;
_global.iniLevelLife = _global.playerNumLife;
}
function update() {
super.update();
checkPointForward();
}
function init() {
super.init();
delete _global.mzCoins;
mzPosCoins = [[13959, 805], [12659, 915], [11939.25, 1310], [10869.25, 310], [8569.5, 1510], [7024.5, 315], [4854.75, 810], [3300, 1510], [2659.75, 320], [1970, 1320]];
createCoins();
}
}
Symbol 2455 MovieClip [__Packages.clsGameLv01Back] Frame 0
class clsGameLv01Back extends clsGame
{
var mzPoint, createPlayer, mPlayerX, init, createMessage, createCoins, checkPointBackward;
function clsGameLv01Back () {
super();
_global.N_S = 24;
_global.M_S = 4;
mzPoint = [[14200, 935], [9622, 930], [4022, 1130]];
_global.posX = mzPoint[0][0];
_global.posY = mzPoint[0][1];
_global.world = new clsWorld("level_01");
createPlayer(_global.posX, _global.posY);
mPlayerX = _global.world.width;
_global.startSound(_global.snd_world, "snd_loopGame", 99999);
init();
_global.bossReturn = new clsBossReturn("mc_boss_01");
createMessage("mc_start_back_level");
createCoins();
}
function update() {
super.update();
_global.bossReturn.update();
checkPointBackward();
}
}
Symbol 2456 MovieClip [__Packages.clsBossReturn] Frame 0
class clsBossReturn
{
var mGpx, mSpeed, mDetect, dx, dy, angle;
function clsBossReturn (nameClip) {
mGpx = _global.world.mGpx.attachMovie(nameClip, "mc_boss_return", _global.DEPTH_BOSS);
mSpeed = _global.SPEED_B_RETURN;
mGpx.gotoAndStop("RETURN");
mGpx._x = 15000;
var _local4 = new Color(mGpx);
var _local3 = _local4.getTransform();
_local3 = {ra:255, ga:255, ba:255};
_local4.setTransform(_local3);
mGpx._alpha = 70;
mDetect = true;
}
function update() {
if (!_global.actionEndEscene) {
dx = _global.player._x - mGpx._x;
dy = _global.player._y - mGpx._y;
angle = Math.atan2(dy, dx);
mGpx._x = mGpx._x + (mSpeed * Math.cos(angle));
mGpx._y = mGpx._y + (mSpeed * Math.sin(angle));
if (mGpx.mc_collision.hitTest(_global.player.mGpx.mc_ben) && (mDetect)) {
if (_global.activePlayer != _global.PLAYER_BEN) {
_global.player.transformToBen();
mDetect = false;
}
_global.game.updateEnergyLife(-200);
mSpeed = 0;
}
}
}
function free() {
mGpx.removeMovieClip();
}
}
Symbol 2457 MovieClip [__Packages.clsGameLv02Back] Frame 0
class clsGameLv02Back extends clsGame
{
var mzPoint, createPlayer, mPlayerX, init, createMessage, createCoins, checkPointBackward;
function clsGameLv02Back () {
super();
_global.N_S = 24;
_global.M_S = 4;
mzPoint = [[14158, 1124], [9770, 933], [4160, 1030]];
_global.posX = mzPoint[0][0];
_global.posY = mzPoint[0][1];
_global.world = new clsWorld("level_02");
createPlayer(_global.posX, _global.posY);
mPlayerX = _global.world.width;
_global.startSound(_global.snd_world, "snd_loopGame", 99999);
init();
_global.bossReturn = new clsBossReturn("mc_boss_02");
createMessage("mc_start_back_level");
createCoins();
}
function update() {
super.update();
_global.bossReturn.update();
checkPointBackward();
}
}
Symbol 2458 MovieClip [__Packages.clsGameLv04Boss] Frame 0
class clsGameLv04Boss extends clsGame
{
var createPlayer, init, createBoss_04;
function clsGameLv04Boss () {
super();
_global.N_S = 1;
_global.M_S = 1;
_global.posX = 100;
_global.posY = 320;
_global.world = new clsWorld("level_10_boss");
createPlayer(_global.posX, _global.posY);
_global.startSound(_global.snd_world, "snd_loopGame", 99999);
init();
createBoss_04();
}
}
Symbol 2459 MovieClip [__Packages.clsGameLv03Back] Frame 0
class clsGameLv03Back extends clsGame
{
var mzPoint, createPlayer, mPlayerX, init, createMessage, createCoins, checkPointBackward;
function clsGameLv03Back () {
super();
_global.N_S = 24;
_global.M_S = 4;
mzPoint = [[14176, 728], [9070, 929], [4822, 831]];
_global.posX = mzPoint[0][0];
_global.posY = mzPoint[0][1];
_global.world = new clsWorld("level_03");
createPlayer(_global.posX, _global.posY);
mPlayerX = _global.world.width;
_global.startSound(_global.snd_world, "snd_loopGame", 99999);
init();
_global.bossReturn = new clsBossReturn("mc_boss_03");
createMessage("mc_start_back_level");
createCoins();
}
function update() {
super.update();
_global.bossReturn.update();
checkPointBackward();
}
}
Symbol 2460 MovieClip [__Packages.clsGameLv01Boss] Frame 0
class clsGameLv01Boss extends clsGame
{
var createPlayer, init, createBoss_01;
function clsGameLv01Boss () {
super();
_global.N_S = 1;
_global.M_S = 1;
_global.posX = 100;
_global.posY = 320;
_global.world = new clsWorld("level_01_boss");
createPlayer(_global.posX, _global.posY);
_global.startSound(_global.snd_world, "snd_loopGame", 99999);
init();
createBoss_01();
}
}
Symbol 15 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local2 = __width;
var _local3 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local2, oldHeight:_local3});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = createObject(className.symbolOwner.symbolName, id, depth, initobj);
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.126";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 16 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.126";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 17 MovieClip [__Packages.mx.controls.TextInput] Frame 0
class mx.controls.TextInput extends mx.core.UIComponent
{
var owner, enterListener, label, tabChildren, tabEnabled, focusTextField, _color, _parent, border_mc, createClassObject, dispatchValueChangedEvent, __get__width, __get__height, tfx, tfy, tfw, tfh, getStyle, bind, updateModel, _getTextFormat, enabled;
function TextInput () {
super();
}
function addEventListener(event, handler) {
if (event == "enter") {
addEnterEvents();
}
super.addEventListener(event, handler);
}
function enterOnKeyDown() {
if (Key.getAscii() == 13) {
owner.dispatchEvent({type:"enter"});
}
}
function addEnterEvents() {
if (enterListener == undefined) {
enterListener = new Object();
enterListener.owner = this;
enterListener.onKeyDown = enterOnKeyDown;
}
}
function init(Void) {
super.init();
label.styleName = this;
tabChildren = true;
tabEnabled = false;
focusTextField = label;
_color = mx.core.UIObject.textColorList;
label.onSetFocus = function () {
this._parent.onSetFocus();
};
label.onKillFocus = function (n) {
this._parent.onKillFocus(n);
};
label.drawFocus = function (b) {
this._parent.drawFocus(b);
};
label.onChanged = onLabelChanged;
}
function setFocus() {
Selection.setFocus(label);
}
function onLabelChanged(Void) {
_parent.dispatchEvent({type:"change"});
_parent.dispatchValueChangedEvent(text);
}
function createChildren(Void) {
super.createChildren();
if (border_mc == undefined) {
createClassObject(_global.styles.rectBorderClass, "border_mc", 0, {styleName:this});
}
border_mc.swapDepths(label);
label.autoSize = "none";
}
function get html() {
return(getHtml());
}
function set html(value) {
setHtml(value);
//return(html);
}
function getHtml() {
return(label.html);
}
function setHtml(value) {
if (value != label.html) {
label.html = value;
}
}
function get text() {
return(getText());
}
function set text(t) {
setText(t);
//return(text);
}
function getText() {
if (initializing) {
return(initText);
}
if (label.html == true) {
return(label.htmlText);
}
return(label.text);
}
function setText(t) {
if (initializing) {
initText = t;
} else {
var _local2 = label;
if (_local2.html == true) {
_local2.htmlText = t;
} else {
_local2.text = t;
}
}
dispatchValueChangedEvent(t);
}
function size(Void) {
border_mc.setSize(__get__width(), __get__height());
var _local2 = border_mc.__get__borderMetrics();
var _local6 = _local2.left + _local2.right;
var _local3 = _local2.top + _local2.bottom;
var _local5 = _local2.left;
var _local4 = _local2.top;
tfx = _local5;
tfy = _local4;
tfw = __get__width() - _local6;
tfh = __get__height() - _local3;
label.move(tfx, tfy);
label.setSize(tfw, tfh + 1);
}
function setEnabled(enable) {
label.type = (((__editable == true) || (enable == false)) ? "input" : "dynamic");
label.selectable = enable;
var _local2 = getStyle((enable ? "color" : "disabledColor"));
if (_local2 == undefined) {
_local2 = (enable ? 0 : 8947848);
}
setColor(_local2);
}
function setColor(col) {
label.textColor = col;
}
function onKillFocus(newFocus) {
if (enterListener != undefined) {
Key.removeListener(enterListener);
}
if (bind != undefined) {
updateModel(text);
}
super.onKillFocus(newFocus);
}
function onSetFocus(oldFocus) {
var f = Selection.getFocus();
var o = eval (f);
if (o != label) {
Selection.setFocus(label);
return(undefined);
}
if (enterListener != undefined) {
Key.addListener(enterListener);
}
super.onSetFocus(oldFocus);
}
function draw(Void) {
var _local2 = label;
var _local4 = getText();
if (initializing) {
initializing = false;
delete initText;
}
var _local3 = _getTextFormat();
_local2.embedFonts = _local3.embedFonts == true;
if (_local3 != undefined) {
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
}
_local2.multiline = false;
_local2.wordWrap = false;
if (_local2.html == true) {
_local2.setTextFormat(_local3);
_local2.htmlText = _local4;
} else {
_local2.text = _local4;
}
_local2.type = (((__editable == true) || (enabled == false)) ? "input" : "dynamic");
size();
}
function setEditable(s) {
__editable = s;
label.type = (s ? "input" : "dynamic");
}
function get maxChars() {
return(label.maxChars);
}
function set maxChars(w) {
label.maxChars = w;
//return(maxChars);
}
function get length() {
return(label.length);
}
function get restrict() {
return(label.restrict);
}
function set restrict(w) {
label.restrict = ((w == "") ? null : (w));
//return(restrict);
}
function get hPosition() {
return(label.hscroll);
}
function set hPosition(w) {
label.hscroll = w;
//return(hPosition);
}
function get maxHPosition() {
return(label.maxhscroll);
}
function get editable() {
return(__editable);
}
function set editable(w) {
setEditable(w);
//return(editable);
}
function get password() {
return(label.password);
}
function set password(w) {
label.password = w;
//return(password);
}
function get tabIndex() {
return(label.tabIndex);
}
function set tabIndex(w) {
label.tabIndex = w;
//return(tabIndex);
}
function set _accProps(val) {
label._accProps = val;
//return(_accProps);
}
function get _accProps() {
return(label._accProps);
}
static var symbolName = "TextInput";
static var symbolOwner = mx.controls.TextInput;
static var version = "2.0.2.126";
var className = "TextInput";
var initializing = true;
var clipParameters = {text:1, editable:1, password:1, maxChars:1, restrict:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextInput.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var _maxWidth = mx.core.UIComponent.kStretch;
var __editable = true;
var initText = "";
}
Symbol 36 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 37 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(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;
});
}
}
Symbol 38 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var 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};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var 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};
}
Symbol 39 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 40 MovieClip [__Packages.mx.skins.Border] Frame 0
class mx.skins.Border extends mx.core.UIObject
{
function Border () {
super();
}
function init(Void) {
super.init();
}
static var symbolName = "Border";
static var symbolOwner = mx.skins.Border;
var className = "Border";
var tagBorder = 0;
var idNames = new Array("border_mc");
}
Symbol 41 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border
{
var __width, __height, offset, __borderMetrics;
function RectBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function draw(Void) {
size();
}
function getBorderMetrics(Void) {
var _local2 = offset;
if (__borderMetrics == undefined) {
__borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2};
} else {
__borderMetrics.left = _local2;
__borderMetrics.top = _local2;
__borderMetrics.right = _local2;
__borderMetrics.bottom = _local2;
}
return(__borderMetrics);
}
function get borderMetrics() {
return(getBorderMetrics());
}
function drawBorder(Void) {
}
function size(Void) {
drawBorder();
}
function setColor(Void) {
drawBorder();
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.RectBorder;
static var version = "2.0.2.126";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 42 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 43 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher
{
var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener;
function UIEventDispatcher () {
super();
}
static function addKeyEvents(obj) {
if (obj.keyHandler == undefined) {
var _local1 = (obj.keyHandler = new Object());
_local1.owner = obj;
_local1.onKeyDown = _fEventDispatcher.onKeyDown;
_local1.onKeyUp = _fEventDispatcher.onKeyUp;
}
Key.addListener(obj.keyHandler);
}
static function removeKeyEvents(obj) {
Key.removeListener(obj.keyHandler);
}
static function addLoadEvents(obj) {
if (obj.onLoad == undefined) {
obj.onLoad = _fEventDispatcher.onLoad;
obj.onUnload = _fEventDispatcher.onUnload;
if (obj.getBytesTotal() == obj.getBytesLoaded()) {
obj.doLater(obj, "onLoad");
}
}
}
static function removeLoadEvents(obj) {
delete obj.onLoad;
delete obj.onUnload;
}
static function initialize(obj) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.UIEventDispatcher();
}
obj.addEventListener = _fEventDispatcher.__addEventListener;
obj.__origAddEventListener = _fEventDispatcher.addEventListener;
obj.removeEventListener = _fEventDispatcher.removeEventListener;
obj.dispatchEvent = _fEventDispatcher.dispatchEvent;
obj.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(mx.events.EventDispatcher, eventObj);
dispatchQueue(this, eventObj);
}
function onKeyDown(Void) {
owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onKeyUp(Void) {
owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onLoad(Void) {
if (__sentLoadEvent != true) {
dispatchEvent({type:"load"});
}
__sentLoadEvent = true;
}
function onUnload(Void) {
dispatchEvent({type:"unload"});
}
function __addEventListener(event, handler) {
__origAddEventListener(event, handler);
var _local3 = lowLevelEvents;
for (var _local5 in _local3) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local2 = _local3[_local5][0];
mx.events.UIEventDispatcher[_local2](this);
}
}
}
function removeEventListener(event, handler) {
var _local6 = "__q_" + event;
mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler);
if (this[_local6].length == 0) {
var _local2 = lowLevelEvents;
for (var _local5 in _local2) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local3 = _local2[_local5][1];
mx.events.UIEventDispatcher[_local2[_local5][1]](this);
}
}
}
}
static var keyEvents = {keyDown:1, keyUp:1};
static var loadEvents = {load:1, unload:1};
static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]};
static var _fEventDispatcher = undefined;
}
Symbol 44 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0
class mx.skins.ColoredSkinElement
{
var getStyle, _color, onEnterFrame;
function ColoredSkinElement () {
}
function setColor(c) {
if (c != undefined) {
var _local2 = new Color(this);
_local2.setRGB(c);
}
}
function draw(Void) {
setColor(getStyle(_color));
onEnterFrame = undefined;
}
function invalidateStyle(Void) {
onEnterFrame = draw;
}
static function setColorStyle(p, colorStyle) {
if (p._color == undefined) {
p._color = colorStyle;
}
p.setColor = mixins.setColor;
p.invalidateStyle = mixins.invalidateStyle;
p.draw = mixins.draw;
p.setColor(p.getStyle(colorStyle));
}
static var mixins = new mx.skins.ColoredSkinElement();
}
Symbol 45 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] Frame 0
class mx.core.ext.UIObjectExtensions
{
function UIObjectExtensions () {
}
static function addGeometry(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);
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
var _local6 = mx.core.UIObject.prototype;
var _local9 = mx.skins.SkinElement.prototype;
addGeometry(_local9, _local6);
mx.events.UIEventDispatcher.initialize(_local6);
var _local13 = mx.skins.ColoredSkinElement;
mx.styles.CSSTextStyles.addTextStyles(_local6);
var _local5 = MovieClip.prototype;
_local5.getTopLevel = _local6.getTopLevel;
_local5.createLabel = _local6.createLabel;
_local5.createObject = _local6.createObject;
_local5.createClassObject = _local6.createClassObject;
_local5.createEmptyObject = _local6.createEmptyObject;
_local5.destroyObject = _local6.destroyObject;
_global.ASSetPropFlags(_local5, "getTopLevel", 1);
_global.ASSetPropFlags(_local5, "createLabel", 1);
_global.ASSetPropFlags(_local5, "createObject", 1);
_global.ASSetPropFlags(_local5, "createClassObject", 1);
_global.ASSetPropFlags(_local5, "createEmptyObject", 1);
_global.ASSetPropFlags(_local5, "destroyObject", 1);
_local5.__getTextFormat = _local6.__getTextFormat;
_local5._getTextFormat = _local6._getTextFormat;
_local5.getStyleName = _local6.getStyleName;
_local5.getStyle = _local6.getStyle;
_global.ASSetPropFlags(_local5, "__getTextFormat", 1);
_global.ASSetPropFlags(_local5, "_getTextFormat", 1);
_global.ASSetPropFlags(_local5, "getStyleName", 1);
_global.ASSetPropFlags(_local5, "getStyle", 1);
var _local7 = TextField.prototype;
addGeometry(_local7, _local6);
_local7.addProperty("enabled", function () {
return(this.__enabled);
}, function (x) {
this.__enabled = x;
this.invalidateStyle();
});
_local7.move = _local9.move;
_local7.setSize = _local9.setSize;
_local7.invalidateStyle = function () {
this.invalidateFlag = true;
};
_local7.draw = function () {
if (this.invalidateFlag) {
this.invalidateFlag = false;
var _local2 = this._getTextFormat();
this.setTextFormat(_local2);
this.setNewTextFormat(_local2);
this.embedFonts = _local2.embedFonts == true;
if (this.__text != undefined) {
if (this.text == "") {
this.text = this.__text;
}
delete this.__text;
}
this._visible = true;
}
};
_local7.setColor = function (color) {
this.textColor = color;
};
_local7.getStyle = _local5.getStyle;
_local7.__getTextFormat = _local6.__getTextFormat;
_local7.setValue = function (v) {
this.text = v;
};
_local7.getValue = function () {
return(this.text);
};
_local7.addProperty("value", function () {
return(this.getValue());
}, function (v) {
this.setValue(v);
});
_local7._getTextFormat = function () {
var _local2 = this.stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
this.__getTextFormat(_local2);
this.stylecache.tf = _local2;
if (this.__enabled == false) {
if (this.enabledColor == undefined) {
var _local4 = this.getTextFormat();
this.enabledColor = _local4.color;
}
var _local3 = this.getStyle("disabledColor");
_local2.color = _local3;
} else if (this.enabledColor != undefined) {
if (_local2.color == undefined) {
_local2.color = this.enabledColor;
}
}
return(_local2);
};
_local7.getPreferredWidth = function () {
this.draw();
return(this.textWidth + 4);
};
_local7.getPreferredHeight = function () {
this.draw();
return(this.textHeight + 4);
};
TextFormat.prototype.getTextExtent2 = function (s) {
var _local3 = _root._getTextExtent;
if (_local3 == undefined) {
_root.createTextField("_getTextExtent", -2, 0, 0, 1000, 100);
_local3 = _root._getTextExtent;
_local3._visible = false;
}
_root._getTextExtent.text = s;
var _local4 = this.align;
this.align = "left";
_root._getTextExtent.setTextFormat(this);
this.align = _local4;
return({width:_local3.textWidth, height:_local3.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 _local4 = _root;
while (_local4._parent != undefined) {
_local4 = _local4._parent;
}
_local4.addProperty("width", function () {
return(Stage.width);
}, null);
_local4.addProperty("height", function () {
return(Stage.height);
}, null);
_global.ASSetPropFlags(_local4, "width", 1);
_global.ASSetPropFlags(_local4, "height", 1);
return(true);
}
static var bExtended = false;
static var UIObjectExtended = Extensions();
static var UIObjectDependency = mx.core.UIObject;
static var SkinElementDependency = mx.skins.SkinElement;
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
static var UIEventDispatcherDependency = mx.events.UIEventDispatcher;
}
Symbol 46 MovieClip [__Packages.mx.skins.halo.RectBorder] Frame 0
class mx.skins.halo.RectBorder extends mx.skins.RectBorder
{
var offset, getStyle, borderStyleName, __borderMetrics, className, borderColorName, backgroundColorName, shadowColorName, highlightColorName, buttonColorName, __get__width, __get__height, clear, _color, drawRoundRect, beginFill, drawRect, endFill;
function RectBorder () {
super();
}
function init(Void) {
borderWidths.default = 3;
super.init();
}
function getBorderMetrics(Void) {
if (offset == undefined) {
var _local3 = getStyle(borderStyleName);
offset = borderWidths[_local3];
}
if ((getStyle(borderStyleName) == "default") || (getStyle(borderStyleName) == "alert")) {
__borderMetrics = {left:3, top:1, right:3, bottom:3};
return(__borderMetrics);
}
return(super.getBorderMetrics());
}
function drawBorder(Void) {
var _local6 = _global.styles[className];
if (_local6 == undefined) {
_local6 = _global.styles.RectBorder;
}
var _local5 = getStyle(borderStyleName);
var _local7 = getStyle(borderColorName);
if (_local7 == undefined) {
_local7 = _local6[borderColorName];
}
var _local8 = getStyle(backgroundColorName);
if (_local8 == undefined) {
_local8 = _local6[backgroundColorName];
}
var _local16 = getStyle("backgroundImage");
if (_local5 != "none") {
var _local14 = getStyle(shadowColorName);
if (_local14 == undefined) {
_local14 = _local6[shadowColorName];
}
var _local13 = getStyle(highlightColorName);
if (_local13 == undefined) {
_local13 = _local6[highlightColorName];
}
var _local12 = getStyle(buttonColorName);
if (_local12 == undefined) {
_local12 = _local6[buttonColorName];
}
var _local11 = getStyle(borderCapColorName);
if (_local11 == undefined) {
_local11 = _local6[borderCapColorName];
}
var _local10 = getStyle(shadowCapColorName);
if (_local10 == undefined) {
_local10 = _local6[shadowCapColorName];
}
}
offset = borderWidths[_local5];
var _local9 = offset;
var _local3 = __get__width();
var _local4 = __get__height();
clear();
_color = undefined;
if (_local5 == "none") {
} else if (_local5 == "inset") {
_color = colorList;
draw3dBorder(_local11, _local12, _local7, _local13, _local14, _local10);
} else if (_local5 == "outset") {
_color = colorList;
draw3dBorder(_local11, _local7, _local12, _local14, _local13, _local10);
} else if (_local5 == "alert") {
var _local15 = getStyle("themeColor");
drawRoundRect(0, 5, _local3, _local4 - 5, 5, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, 4, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, _local15, 50);
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, 2, 16777215, 100);
} else if (_local5 == "default") {
drawRoundRect(0, 5, _local3, _local4 - 5, {tl:5, tr:5, br:0, bl:0}, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, {tl:4, tr:4, br:0, bl:0}, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, {tl:3, tr:3, br:0, bl:0}, [12897484, 11844796], 100, 0, "radial");
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, {tl:2, tr:2, br:0, bl:0}, 16777215, 100);
} else if (_local5 == "dropDown") {
drawRoundRect(0, 0, _local3 + 1, _local4, {tl:4, tr:0, br:0, bl:4}, [13290186, 7895160], 100, -10, "linear");
drawRoundRect(1, 1, _local3 - 1, _local4 - 2, {tl:3, tr:0, br:0, bl:3}, 16777215, 100);
} else if (_local5 == "menuBorder") {
var _local15 = getStyle("themeColor");
drawRoundRect(4, 4, _local3 - 2, _local4 - 3, 0, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(4, 4, _local3 - 1, _local4 - 2, 0, 6184542, 10);
drawRoundRect(0, 0, _local3 + 1, _local4, 0, [0, 14342874], 100, 250, "linear");
drawRoundRect(0, 0, _local3 + 1, _local4, 0, _local15, 50);
drawRoundRect(2, 2, _local3 - 3, _local4 - 4, 0, 16777215, 100);
} else if (_local5 == "comboNonEdit") {
} else {
beginFill(_local7);
drawRect(0, 0, _local3, _local4);
drawRect(1, 1, _local3 - 1, _local4 - 1);
endFill();
_color = borderColorName;
}
if (_local8 != undefined) {
beginFill(_local8);
drawRect(_local9, _local9, __get__width() - _local9, __get__height() - _local9);
endFill();
}
}
function draw3dBorder(c1, c2, c3, c4, c5, c6) {
var _local3 = __get__width();
var _local2 = __get__height();
beginFill(c1);
drawRect(0, 0, _local3, _local2);
drawRect(1, 0, _local3 - 1, _local2);
endFill();
beginFill(c2);
drawRect(1, 0, _local3 - 1, 1);
endFill();
beginFill(c3);
drawRect(1, _local2 - 1, _local3 - 1, _local2);
endFill();
beginFill(c4);
drawRect(1, 1, _local3 - 1, 2);
endFill();
beginFill(c5);
drawRect(1, _local2 - 2, _local3 - 1, _local2 - 1);
endFill();
beginFill(c6);
drawRect(1, 2, _local3 - 1, _local2 - 2);
drawRect(2, 2, _local3 - 2, _local2 - 2);
endFill();
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.styles.rectBorderClass = mx.skins.halo.RectBorder;
_global.skinRegistry.RectBorder = true;
return(true);
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.halo.RectBorder;
static var version = "2.0.2.126";
var borderCapColorName = "borderCapColor";
var shadowCapColorName = "shadowCapColor";
var colorList = {highlightColor:0, borderColor:0, buttonColor:0, shadowColor:0, borderCapColor:0, shadowCapColor:0};
var borderWidths = {none:0, solid:1, inset:2, outset:2, alert:3, dropDown:2, menuBorder:2, comboNonEdit:2};
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 47 MovieClip [__Packages.mx.skins.halo.Defaults] Frame 0
class mx.skins.halo.Defaults
{
var beginGradientFill, beginFill, moveTo, lineTo, curveTo, endFill;
function Defaults () {
}
static function setThemeDefaults() {
var _local2 = _global.style;
_local2.themeColor = 8453965 /* 0x80FF4D */;
_local2.disabledColor = 8684164 /* 0x848284 */;
_local2.modalTransparency = 0;
_local2.filled = true;
_local2.stroked = true;
_local2.strokeWidth = 1;
_local2.strokeColor = 0;
_local2.fillColor = 16777215 /* 0xFFFFFF */;
_local2.repeatInterval = 35;
_local2.repeatDelay = 500;
_local2.fontFamily = "_sans";
_local2.fontSize = 12;
_local2.selectionColor = 13500353 /* 0xCDFFC1 */;
_local2.rollOverColor = 14942166 /* 0xE3FFD6 */;
_local2.useRollOver = true;
_local2.backgroundDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDuration = 200;
_local2.openDuration = 250;
_local2.borderStyle = "inset";
_local2.color = 734012 /* 0x0B333C */;
_local2.textSelectedColor = 24371;
_local2.textRollOverColor = 2831164 /* 0x2B333C */;
_local2.textDisabledColor = 16777215 /* 0xFFFFFF */;
_local2.vGridLines = true;
_local2.hGridLines = false;
_local2.vGridLineColor = 6710886 /* 0x666666 */;
_local2.hGridLineColor = 6710886 /* 0x666666 */;
_local2.headerColor = 15395562 /* 0xEAEAEA */;
_local2.indentation = 17;
_local2.folderOpenIcon = "TreeFolderOpen";
_local2.folderClosedIcon = "TreeFolderClosed";
_local2.defaultLeafIcon = "TreeNodeIcon";
_local2.disclosureOpenIcon = "TreeDisclosureOpen";
_local2.disclosureClosedIcon = "TreeDisclosureClosed";
_local2.popupDuration = 150;
_local2.todayColor = 6710886 /* 0x666666 */;
_local2 = (_global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration());
_local2.backgroundColor = 16777215 /* 0xFFFFFF */;
_local2.borderColor = 13290186 /* 0xCACACA */;
_local2.borderStyle = "inset";
_local2 = (_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration());
_local2.borderStyle = "inset";
_local2 = (_global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration());
_local2.textAlign = "center";
_local2 = (_global.styles.RectBorder = new mx.styles.CSSStyleDeclaration());
_local2.borderColor = 14015965 /* 0xD5DDDD */;
_local2.buttonColor = 7305079 /* 0x6F7777 */;
_local2.shadowColor = 15658734 /* 0xEEEEEE */;
_local2.highlightColor = 12897484 /* 0xC4CCCC */;
_local2.shadowCapColor = 14015965 /* 0xD5DDDD */;
_local2.borderCapColor = 9542041 /* 0x919999 */;
var _local4 = new Object();
_local4.borderColor = 16711680 /* 0xFF0000 */;
_local4.buttonColor = 16711680 /* 0xFF0000 */;
_local4.shadowColor = 16711680 /* 0xFF0000 */;
_local4.highlightColor = 16711680 /* 0xFF0000 */;
_local4.shadowCapColor = 16711680 /* 0xFF0000 */;
_local4.borderCapColor = 16711680 /* 0xFF0000 */;
mx.core.UIComponent.prototype.origBorderStyles = _local4;
var _local3;
_local3 = (_global.styles.TextInput = new mx.styles.CSSStyleDeclaration());
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderStyle = "inset";
_global.styles.TextArea = _global.styles.TextInput;
_local3 = (_global.styles.Window = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "default";
_local3 = (_global.styles.windowStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.Alert = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "alert";
_local3 = (_global.styles.ScrollView = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "inset";
_local3 = (_global.styles.View = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "none";
_local3 = (_global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration());
_local3.color = 11187123 /* 0xAAB3B3 */;
_local3.fontWeight = "bold";
_local3 = (_global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = "11";
_local3 = (_global.styles.Accordion = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "solid";
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderColor = 9081738 /* 0x8A938A */;
_local3.headerHeight = 22;
_local3.marginLeft = (_local3.marginRight = (_local3.marginTop = (_local3.marginBottom = -1)));
_local3.verticalGap = -1;
_local3 = (_global.styles.DateChooser = new mx.styles.CSSStyleDeclaration());
_local3.borderColor = 9542041 /* 0x919999 */;
_local3.headerColor = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 10;
_local3.textAlign = "right";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = 11;
_local3.textAlign = "center";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration());
_local3.color = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 12;
_local3.fontWeight = "bold";
_local3.textAlign = "center";
}
function drawRoundRect(x, y, w, h, r, c, alpha, rot, gradient, ratios) {
if (typeof(r) == "object") {
var _local18 = r.br;
var _local16 = r.bl;
var _local15 = r.tl;
var _local10 = r.tr;
} else {
var _local10 = r;
var _local15 = _local10;
var _local16 = _local15;
var _local18 = _local16;
}
if (typeof(c) == "object") {
if (typeof(alpha) != "object") {
var _local9 = [alpha, alpha];
} else {
var _local9 = alpha;
}
if (ratios == undefined) {
ratios = [0, 255];
}
var _local14 = h * 0.7;
if (typeof(rot) != "object") {
var _local11 = {matrixType:"box", x:-_local14, y:_local14, w:w * 2, h:h * 4, r:rot * 0.0174532925199433 /* Math.PI/180 */};
} else {
var _local11 = rot;
}
if (gradient == "radial") {
beginGradientFill("radial", c, _local9, ratios, _local11);
} else {
beginGradientFill("linear", c, _local9, ratios, _local11);
}
} else if (c != undefined) {
beginFill(c, alpha);
}
r = _local18;
var _local13 = r - (r * 0.707106781186547);
var _local12 = r - (r * 0.414213562373095);
moveTo(x + w, (y + h) - r);
lineTo(x + w, (y + h) - r);
curveTo(x + w, (y + h) - _local12, (x + w) - _local13, (y + h) - _local13);
curveTo((x + w) - _local12, y + h, (x + w) - r, y + h);
r = _local16;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x + r, y + h);
curveTo(x + _local12, y + h, x + _local13, (y + h) - _local13);
curveTo(x, (y + h) - _local12, x, (y + h) - r);
r = _local15;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x, y + r);
curveTo(x, y + _local12, x + _local13, y + _local13);
curveTo(x + _local12, y, x + r, y);
r = _local10;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo((x + w) - r, y);
curveTo((x + w) - _local12, y, (x + w) - _local13, y + _local13);
curveTo(x + w, y + _local12, x + w, y + r);
lineTo(x + w, (y + h) - r);
if (c != undefined) {
endFill();
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
setThemeDefaults();
mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
static var UIObjectDependency = mx.core.UIObject;
}
Symbol 48 MovieClip [__Packages.mx.managers.SystemManager] Frame 0
class mx.managers.SystemManager
{
static var _xAddEventListener, addEventListener, __addEventListener, _xRemoveEventListener, removeEventListener, __removeEventListener, form, __screen, dispatchEvent;
function SystemManager () {
}
static function init(Void) {
if (_initialized == false) {
_initialized = true;
mx.events.EventDispatcher.initialize(mx.managers.SystemManager);
Mouse.addListener(mx.managers.SystemManager);
Stage.addListener(mx.managers.SystemManager);
_xAddEventListener = addEventListener;
addEventListener = __addEventListener;
_xRemoveEventListener = removeEventListener;
removeEventListener = __removeEventListener;
}
}
static function addFocusManager(f) {
form = f;
f.focusManager.activate();
}
static function removeFocusManager(f) {
}
static function onMouseDown(Void) {
var _local1 = form;
_local1.focusManager._onMouseDown();
}
static function onResize(Void) {
var _local7 = Stage.width;
var _local6 = Stage.height;
var _local9 = _global.origWidth;
var _local8 = _global.origHeight;
var _local3 = Stage.align;
var _local5 = (_local9 - _local7) / 2;
var _local4 = (_local8 - _local6) / 2;
if (_local3 == "T") {
_local4 = 0;
} else if (_local3 == "B") {
_local4 = _local8 - _local6;
} else if (_local3 == "L") {
_local5 = 0;
} else if (_local3 == "R") {
_local5 = _local9 - _local7;
} else if (_local3 == "LT") {
_local4 = 0;
_local5 = 0;
} else if (_local3 == "TR") {
_local4 = 0;
_local5 = _local9 - _local7;
} else if (_local3 == "LB") {
_local4 = _local8 - _local6;
_local5 = 0;
} else if (_local3 == "RB") {
_local4 = _local8 - _local6;
_local5 = _local9 - _local7;
}
if (__screen == undefined) {
__screen = new Object();
}
__screen.x = _local5;
__screen.y = _local4;
__screen.width = _local7;
__screen.height = _local6;
_root.focusManager.relocate();
dispatchEvent({type:"resize"});
}
static function get screen() {
init();
if (__screen == undefined) {
onResize();
}
return(__screen);
}
static var _initialized = false;
static var idleFrames = 0;
static var isMouseDown = false;
static var forms = new Array();
}
Symbol 49 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent
{
static var emphasizedStyleDeclaration;
var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle;
function SimpleButton () {
super();
}
function init(Void) {
super.init();
if (preset == undefined) {
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
useHandCursor = false;
}
function createChildren(Void) {
if (preset != undefined) {
var _local2 = this[idNames[preset]];
this[refNames[preset]] = _local2;
skinName = _local2;
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
initializing = false;
} else if (__state == true) {
setStateVar(true);
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
}
}
function setIcon(tag, linkageName) {
return(setSkin(tag + 8, linkageName));
}
function changeIcon(tag, linkageName) {
linkLength = linkageName.length;
var _local2 = stateNames[tag] + "Icon";
this[_local2] = linkageName;
this[idNames[tag + 8]] = _local2;
setStateVar(getState());
}
function changeSkin(tag, linkageName) {
var _local2 = stateNames[tag] + "Skin";
this[_local2] = linkageName;
this[idNames[tag]] = _local2;
setStateVar(getState());
}
function viewIcon(varName) {
var _local4 = varName + "Icon";
var _local3 = this[_local4];
if (typeof(_local3) == "string") {
var _local5 = _local3;
if (__emphasized) {
if (this[_local3 + "Emphasized"].length > 0) {
_local3 = _local3 + "Emphasized";
}
}
if (this[_local3].length == 0) {
return(undefined);
}
_local3 = setIcon(tagMap[_local5], this[_local3]);
if ((_local3 == undefined) && (_global.isLivePreview)) {
_local3 = setIcon(0, "ButtonIcon");
}
this[_local4] = _local3;
}
iconName._visible = false;
iconName = _local3;
iconName._visible = true;
}
function removeIcons() {
var _local3 = 0;
while (_local3 < 2) {
var _local2 = 8;
while (_local2 < 16) {
destroyObject(idNames[_local2]);
this[stateNames[_local2 - 8] + "Icon"] = "";
_local2++;
}
_local3++;
}
refresh();
}
function setSkin(tag, linkageName, initobj) {
var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this})));
calcSize(tag, _local3);
return(_local3);
}
function calcSize(Void) {
__width = _width;
__height = _height;
}
function viewSkin(varName, initObj) {
var _local3 = varName + "Skin";
var _local2 = this[_local3];
if (typeof(_local2) == "string") {
var _local4 = _local2;
if (__emphasized) {
if (this[_local2 + "Emphasized"].length > 0) {
_local2 = _local2 + "Emphasized";
}
}
if (this[_local2].length == 0) {
return(undefined);
}
_local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this})));
this[_local3] = _local2;
}
skinName._visible = false;
skinName = _local2;
skinName._visible = true;
}
function showEmphasized(e) {
if (e && (!__emphatic)) {
if (emphasizedStyleDeclaration != undefined) {
__emphaticStyleName = styleName;
styleName = emphasizedStyleDeclaration;
}
__emphatic = true;
} else {
if (__emphatic) {
styleName = __emphaticStyleName;
}
__emphatic = false;
}
}
function refresh(Void) {
var _local2 = getState();
if (enabled == false) {
viewIcon("disabled");
viewSkin("disabled");
} else {
viewSkin(phase);
viewIcon(phase);
}
setView(phase == "down");
iconName.enabled = enabled;
}
function setView(offset) {
if (iconName == undefined) {
return(undefined);
}
var _local2 = (offset ? (btnOffset) : 0);
iconName._x = ((__width - iconName._width) / 2) + _local2;
iconName._y = ((__height - iconName._height) / 2) + _local2;
}
function setStateVar(state) {
if (state) {
if (trueOverSkin.length == 0) {
rolloverSkin = tus;
} else {
rolloverSkin = trs;
}
if (trueOverIcon.length == 0) {
rolloverIcon = tui;
} else {
rolloverIcon = tri;
}
upSkin = tus;
downSkin = tds;
disabledSkin = dts;
upIcon = tui;
downIcon = tdi;
disabledIcon = dti;
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
} else {
rolloverSkin = frs;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
} else {
rolloverIcon = fri;
}
upSkin = fus;
downSkin = fds;
disabledSkin = dfs;
upIcon = fui;
downIcon = fdi;
disabledIcon = dfi;
}
__state = state;
}
function setState(state) {
if (state != __state) {
setStateVar(state);
invalidate();
}
}
function size(Void) {
refresh();
}
function draw(Void) {
if (initializing) {
initializing = false;
skinName.visible = true;
iconName.visible = true;
}
size();
}
function getState(Void) {
return(__state);
}
function setToggle(val) {
__toggle = val;
if (__toggle == false) {
setState(false);
}
}
function getToggle(Void) {
return(__toggle);
}
function set toggle(val) {
setToggle(val);
//return(toggle);
}
function get toggle() {
return(getToggle());
}
function set value(val) {
setSelected(val);
//return(value);
}
function get value() {
return(getSelected());
}
function set selected(val) {
setSelected(val);
//return(selected);
}
function get selected() {
return(getSelected());
}
function setSelected(val) {
if (__toggle) {
setState(val);
} else {
setState((initializing ? (val) : (__state)));
}
}
function getSelected() {
return(__state);
}
function setEnabled(val) {
if (enabled != val) {
super.setEnabled(val);
invalidate();
}
}
function onPress(Void) {
pressFocus();
phase = "down";
refresh();
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
interval = setInterval(this, "onPressDelay", getStyle("repeatDelay"));
}
}
function onPressDelay(Void) {
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
clearInterval(interval);
interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval"));
}
}
function onPressRepeat(Void) {
dispatchEvent({type:"buttonDown"});
updateAfterEvent();
}
function onRelease(Void) {
releaseFocus();
phase = "rollover";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
if (getToggle()) {
setState(!getState());
} else {
refresh();
}
dispatchEvent({type:"click"});
}
function onDragOut(Void) {
phase = "up";
refresh();
dispatchEvent({type:"buttonDragOut"});
}
function onDragOver(Void) {
if (phase != "up") {
onPress();
return(undefined);
}
phase = "down";
refresh();
}
function onReleaseOutside(Void) {
releaseFocus();
phase = "up";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
}
function onRollOver(Void) {
phase = "rollover";
refresh();
}
function onRollOut(Void) {
phase = "up";
refresh();
}
function getLabel(Void) {
return(fui.text);
}
function setLabel(val) {
if (typeof(fui) == "string") {
createLabel("fui", 8, val);
fui.styleName = this;
} else {
fui.text = val;
}
var _local4 = fui._getTextFormat();
var _local2 = _local4.getTextExtent2(val);
fui._width = _local2.width + 5;
fui._height = _local2.height + 5;
iconName = fui;
setView(__state);
}
function get emphasized() {
return(__emphasized);
}
function set emphasized(val) {
__emphasized = val;
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]] = stateNames[_local2] + "Skin";
if (typeof(this[idNames[_local2 + 8]]) == "movieclip") {
this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon";
}
_local2++;
}
showEmphasized(__emphasized);
setStateVar(__state);
invalidateStyle();
//return(emphasized);
}
function keyDown(e) {
if (e.code == 32) {
onPress();
}
}
function keyUp(e) {
if (e.code == 32) {
onRelease();
}
}
function onKillFocus(newFocus) {
super.onKillFocus();
if (phase != "up") {
phase = "up";
refresh();
}
}
static var symbolName = "SimpleButton";
static var symbolOwner = mx.controls.SimpleButton;
static var version = "2.0.2.126";
var className = "SimpleButton";
var style3dInset = 4;
var btnOffset = 1;
var __toggle = false;
var __state = false;
var __emphasized = false;
var __emphatic = false;
static var falseUp = 0;
static var falseDown = 1;
static var falseOver = 2;
static var falseDisabled = 3;
static var trueUp = 4;
static var trueDown = 5;
static var trueOver = 6;
static var trueDisabled = 7;
var falseUpSkin = "SimpleButtonUp";
var falseDownSkin = "SimpleButtonIn";
var falseOverSkin = "";
var falseDisabledSkin = "SimpleButtonUp";
var trueUpSkin = "SimpleButtonIn";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "SimpleButtonIn";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var phase = "up";
var fui = "falseUpIcon";
var fus = "falseUpSkin";
var fdi = "falseDownIcon";
var fds = "falseDownSkin";
var frs = "falseOverSkin";
var fri = "falseOverIcon";
var dfi = "falseDisabledIcon";
var dfs = "falseDisabledSkin";
var tui = "trueUpIcon";
var tus = "trueUpSkin";
var tdi = "trueDownIcon";
var tds = "trueDownSkin";
var trs = "trueOverSkin";
var tri = "trueOverIcon";
var dts = "trueDisabledSkin";
var dti = "trueDisabledIcon";
var rolloverSkin = mx.controls.SimpleButton.prototype.frs;
var rolloverIcon = mx.controls.SimpleButton.prototype.fri;
var upSkin = mx.controls.SimpleButton.prototype.fus;
var downSkin = mx.controls.SimpleButton.prototype.fds;
var disabledSkin = mx.controls.SimpleButton.prototype.dfs;
var upIcon = mx.controls.SimpleButton.prototype.fui;
var downIcon = mx.controls.SimpleButton.prototype.fdi;
var disabledIcon = mx.controls.SimpleButton.prototype.dfi;
var initializing = true;
var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"];
var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"];
var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"];
var 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};
}
Symbol 50 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager
{
var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth;
function DepthManager () {
MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = createChildAtDepth;
MovieClip.prototype.setDepthTo = setDepthTo;
MovieClip.prototype.setDepthAbove = setDepthAbove;
MovieClip.prototype.setDepthBelow = setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = shuffleDepths;
MovieClip.prototype.getDepthByFlag = getDepthByFlag;
MovieClip.prototype.buildDepthTable = 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);
}
static function sortFunction(a, b) {
if (a.getDepth() > b.getDepth()) {
return(1);
}
return(-1);
}
static function test(depth) {
if (depth == reservedDepth) {
return(false);
}
return(true);
}
static function createClassObjectAtDepth(className, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createClassChildAtDepth(className, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createClassChildAtDepth(className, kTop, initObj);
break;
}
return(_local1);
}
static function createObjectAtDepth(linkageName, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createChildAtDepth(linkageName, kTop, initObj);
break;
}
return(_local1);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function setDepthTo(depthFlag) {
var _local2 = _parent.buildDepthTable();
var _local3 = _parent.getDepthByFlag(depthFlag, _local2);
if (_local2[_local3] != undefined) {
shuffleDepths(this, _local3, _local2, undefined);
} else {
swapDepths(_local3);
}
if (depthFlag == kTopmost) {
_topmost = true;
} else {
delete _topmost;
}
}
function setDepthAbove(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local2 = targetInstance.getDepth() + 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local2] != undefined) && (getDepth() < _local2)) {
_local2 = _local2 - 1;
}
if (_local2 > highestDepth) {
_local2 = highestDepth;
}
if (_local2 == highestDepth) {
_parent.shuffleDepths(this, _local2, _local3, "down");
} else if (_local3[_local2] != undefined) {
_parent.shuffleDepths(this, _local2, _local3, undefined);
} else {
swapDepths(_local2);
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local6 = targetInstance.getDepth() - 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local6] != undefined) && (getDepth() > _local6)) {
_local6 = _local6 + 1;
}
var _local4 = lowestDepth + numberOfAuthortimeLayers;
var _local5;
for (_local5 in _local3) {
var _local2 = _local3[_local5];
if (_local2._parent != undefined) {
_local4 = Math.min(_local4, _local2.getDepth());
}
}
if (_local6 < _local4) {
_local6 = _local4;
}
if (_local6 == _local4) {
_parent.shuffleDepths(this, _local6, _local3, "up");
} else if (_local3[_local6] != undefined) {
_parent.shuffleDepths(this, _local6, _local3, undefined);
} else {
swapDepths(_local6);
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local5 = lowestDepth + numberOfAuthortimeLayers;
if (targetDepth < _local5) {
targetDepth = _local5;
}
if (depthTable[targetDepth] == undefined) {
return(targetDepth);
}
var _local2 = targetDepth;
var _local1 = targetDepth;
if (direction == "down") {
while (depthTable[_local1] != undefined) {
_local1--;
}
return(_local1);
}
while (depthTable[_local2] != undefined) {
_local2++;
}
return(_local2);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local9 = lowestDepth + numberOfAuthortimeLayers;
var _local8 = _local9;
var _local5;
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local9 = Math.min(_local9, _local7.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local1 = new Array();
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local1.push(_local7);
}
}
_local1.sort(sortFunction);
if (direction == "up") {
var _local3;
var _local11;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.pop();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
_local11 = subject.getDepth();
_local3 = _local1.pop();
var _local4 = _local3.getDepth();
if (_local11 > (_local4 + 1)) {
if (_local4 >= 0) {
subject.swapDepths(_local4 + 1);
} else if ((_local11 > _local8) && (_local4 < _local8)) {
subject.swapDepths(_local8);
}
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
} else if (direction == "down") {
var _local3;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.shift();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
var _local11 = _local3.getDepth();
_local3 = _local1.shift();
var _local4 = _local3.getDepth();
if ((_local11 < (_local4 - 1)) && (_local4 > 0)) {
subject.swapDepths(_local4 - 1);
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local2 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var _local5 = 0;
var _local7 = false;
var _local8;
for (_local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
if (!_local9._topmost) {
_local2 = Math.max(_local2, _local9.getDepth());
} else if (!_local7) {
_local5 = _local9.getDepth();
_local7 = true;
} else {
_local5 = Math.min(_local5, _local9.getDepth());
}
}
}
}
_local2 = _local2 + 20;
if (_local7) {
if (_local2 >= _local5) {
_local2 = _local5 - 1;
}
}
} else if (depthFlag == kBottom) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.min(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 - 20;
} else if (depthFlag == kTopmost) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.max(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 + 100;
}
if (_local2 >= highestDepth) {
_local2 = highestDepth;
}
var _local6 = lowestDepth + numberOfAuthortimeLayers;
for (var _local9 in depthTable) {
var _local4 = depthTable[_local9];
if (_local4._parent != undefined) {
_local6 = Math.min(_local6, _local4.getDepth());
}
}
if (_local2 <= _local6) {
_local2 = _local6;
}
return(_local2);
}
function buildDepthTable(Void) {
var _local5 = new Array();
var _local4;
for (_local4 in this) {
var _local2 = this[_local4];
var _local3 = typeof(_local2);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) {
if (_local2._parent == this) {
_local5[_local2.getDepth()] = _local2;
}
}
}
return(_local5);
}
static var reservedDepth = 1048575;
static var highestDepth = 1048574;
static var lowestDepth = -16383;
static var numberOfAuthortimeLayers = 383;
static var kCursor = 101;
static var kTooltip = 102;
static var kTop = 201;
static var kBottom = 202;
static var kTopmost = 203;
static var kNotopmost = 204;
static var holder = _root.createEmptyMovieClip("reserved", reservedDepth);
static var __depthManager = new mx.managers.DepthManager();
}
Symbol 51 MovieClip [__Packages.mx.managers.FocusManager] Frame 0
class mx.managers.FocusManager extends mx.core.UIComponent
{
var __defaultPushButton, defPushButton, form, move, tabEnabled, _width, _height, _x, _y, _alpha, _parent, tabCapture, watch, lastMouse, _visible, lastFocus, doLater, lastSelFocus, cancelAllDoLaters, _searchKey, _lastTarget, _firstNode, _nextIsNext, _nextNode, _lastx, _prevNode, _needPrev, _foundList, _prevObj, _nextObj, _firstObj, _lastObj, _lastNode, lastTabFocus, findFocusFromObject;
function FocusManager () {
super();
}
function get defaultPushButton() {
return(__defaultPushButton);
}
function set defaultPushButton(x) {
if (x != __defaultPushButton) {
__defaultPushButton.__set__emphasized(false);
__defaultPushButton = x;
defPushButton = x;
x.__set__emphasized(true);
}
//return(defaultPushButton);
}
function getMaxTabIndex(o) {
var _local3 = 0;
var _local6;
for (_local6 in o) {
var _local2 = o[_local6];
if (_local2._parent == o) {
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex > _local3) {
_local3 = _local2.tabIndex;
}
}
if (_local2.tabChildren == true) {
var _local4 = getMaxTabIndex(_local2);
if (_local4 > _local3) {
_local3 = _local4;
}
}
}
}
return(_local3);
}
function getNextTabIndex(Void) {
return(getMaxTabIndex(form) + 1);
}
function get nextTabIndex() {
return(getNextTabIndex());
}
function relocate(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
move(_local2.x - 1, _local2.y - 1);
}
function init(Void) {
super.init();
tabEnabled = false;
_width = (_height = 1);
_x = (_y = -1);
_alpha = 0;
_parent.focusManager = this;
_parent.tabChildren = true;
_parent.tabEnabled = false;
form = _parent;
_parent.addEventListener("hide", this);
_parent.addEventListener("reveal", this);
mx.managers.SystemManager.init();
mx.managers.SystemManager.addFocusManager(form);
tabCapture.tabIndex = 0;
watch("enabled", enabledChanged);
Selection.addListener(this);
lastMouse = new Object();
_global.ASSetPropFlags(_parent, "focusManager", 1);
_global.ASSetPropFlags(_parent, "tabChildren", 1);
_global.ASSetPropFlags(_parent, "tabEnabled", 1);
}
function enabledChanged(id, oldValue, newValue) {
_visible = newValue;
return(newValue);
}
function activate(Void) {
Key.addListener(this);
activated = (_visible = true);
if (lastFocus != undefined) {
bNeedFocus = true;
if (!mx.managers.SystemManager.isMouseDown) {
doLater(this, "restoreFocus");
}
}
}
function deactivate(Void) {
Key.removeListener(this);
activated = (_visible = false);
var _local2 = getSelectionFocus();
var _local3 = getActualFocus(_local2);
if (isOurFocus(_local3)) {
lastSelFocus = _local2;
lastFocus = _local3;
}
cancelAllDoLaters();
}
function isOurFocus(o) {
if (o.focusManager == this) {
return(true);
}
while (o != undefined) {
if (o.focusManager != undefined) {
return(false);
}
if (o._parent == _parent) {
return(true);
}
o = o._parent;
}
return(false);
}
function onSetFocus(o, n) {
if (n == null) {
if (activated) {
bNeedFocus = true;
}
} else {
var _local2 = getFocus();
if (isOurFocus(_local2)) {
bNeedFocus = false;
lastFocus = _local2;
lastSelFocus = n;
}
}
}
function restoreFocus(Void) {
var _local2 = lastSelFocus.hscroll;
if (_local2 != undefined) {
var _local5 = lastSelFocus.scroll;
var _local4 = lastSelFocus.background;
}
lastFocus.setFocus();
var _local3 = Selection;
Selection.setSelection(_local3.lastBeginIndex, _local3.lastEndIndex);
if (_local2 != undefined) {
lastSelFocus.scroll = _local5;
lastSelFocus.hscroll = _local2;
lastSelFocus.background = _local4;
}
}
function onUnload(Void) {
mx.managers.SystemManager.removeFocusManager(form);
}
function setFocus(o) {
if (o == null) {
Selection.setFocus(null);
} else if (o.setFocus == undefined) {
Selection.setFocus(o);
} else {
o.setFocus();
}
}
function getActualFocus(o) {
var _local1 = o._parent;
while (_local1 != undefined) {
if (_local1.focusTextField != undefined) {
while (_local1.focusTextField != undefined) {
o = _local1;
_local1 = _local1._parent;
if (_local1 == undefined) {
return(undefined);
}
if (_local1.focusTextField == undefined) {
return(o);
}
}
}
if (_local1.tabEnabled != true) {
return(o);
}
o = _local1;
_local1 = o._parent;
}
return(undefined);
}
function getSelectionFocus() {
var m = Selection.getFocus();
var o = eval (m);
return(o);
}
function getFocus(Void) {
var _local2 = getSelectionFocus();
return(getActualFocus(_local2));
}
function walkTree(p, index, groupName, dir, lookup, firstChild) {
var _local5 = true;
var _local11;
for (_local11 in p) {
var _local2 = p[_local11];
if ((((_local2._parent == p) && (_local2.enabled != false)) && (_local2._visible != false)) && ((_local2.tabEnabled == true) || ((_local2.tabEnabled != false) && ((((((((_local2.onPress != undefined) || (_local2.onRelease != undefined)) || (_local2.onReleaseOutside != undefined)) || (_local2.onDragOut != undefined)) || (_local2.onDragOver != undefined)) || (_local2.onRollOver != undefined)) || (_local2.onRollOut != undefined)) || (_local2 instanceof TextField))))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_local2 != _lastTarget) {
if (((_local2.groupName != undefined) || (groupName != undefined)) && (_local2.groupName == groupName)) {
continue;
}
if ((_local2 instanceof TextField) && (_local2.selectable == false)) {
continue;
}
if (_local5 || (((_local2.groupName != undefined) && (_local2.groupName == _firstNode.groupName)) && (_local2.selected == true))) {
if (firstChild) {
_firstNode = _local2;
firstChild = false;
}
}
if (_nextIsNext == true) {
if ((((_local2.groupName != undefined) && (_local2.groupName == _nextNode.groupName)) && (_local2.selected == true)) || ((_nextNode == undefined) && ((_local2.groupName == undefined) || ((_local2.groupName != undefined) && (_local2.groupName != groupName))))) {
_nextNode = _local2;
}
}
if ((_local2.groupName == undefined) || (groupName != _local2.groupName)) {
if (((_lastx.groupName != undefined) && (_local2.groupName == _lastx.groupName)) && (_lastx.selected == true)) {
} else {
_lastx = _local2;
}
}
} else {
_prevNode = _lastx;
_needPrev = false;
_nextIsNext = true;
}
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex == index) {
if (_foundList[_local2._name] == undefined) {
if (_needPrev) {
_prevObj = _local2;
_needPrev = false;
}
_nextObj = _local2;
}
}
if (dir && (_local2.tabIndex > index)) {
if (((_nextObj == undefined) || ((_nextObj.tabIndex > _local2.tabIndex) && (((_local2.groupName == undefined) || (_nextObj.groupName == undefined)) || (_local2.groupName != _nextObj.groupName)))) || ((((_nextObj.groupName != undefined) && (_nextObj.groupName == _local2.groupName)) && (_nextObj.selected != true)) && ((_local2.selected == true) || (_nextObj.tabIndex > _local2.tabIndex)))) {
_nextObj = _local2;
}
} else if ((!dir) && (_local2.tabIndex < index)) {
if (((_prevObj == undefined) || ((_prevObj.tabIndex < _local2.tabIndex) && (((_local2.groupName == undefined) || (_prevObj.groupName == undefined)) || (_local2.groupName != _prevObj.groupName)))) || ((((_prevObj.groupName != undefined) && (_prevObj.groupName == _local2.groupName)) && (_prevObj.selected != true)) && ((_local2.selected == true) || (_prevObj.tabIndex < _local2.tabIndex)))) {
_prevObj = _local2;
}
}
if (((_firstObj == undefined) || ((_local2.tabIndex < _firstObj.tabIndex) && (((_local2.groupName == undefined) || (_firstObj.groupName == undefined)) || (_local2.groupName != _firstObj.groupName)))) || ((((_firstObj.groupName != undefined) && (_firstObj.groupName == _local2.groupName)) && (_firstObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex < _firstObj.tabIndex)))) {
_firstObj = _local2;
}
if (((_lastObj == undefined) || ((_local2.tabIndex > _lastObj.tabIndex) && (((_local2.groupName == undefined) || (_lastObj.groupName == undefined)) || (_local2.groupName != _lastObj.groupName)))) || ((((_lastObj.groupName != undefined) && (_lastObj.groupName == _local2.groupName)) && (_lastObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex > _lastObj.tabIndex)))) {
_lastObj = _local2;
}
}
if (_local2.tabChildren) {
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
} else if (((_local2._parent == p) && (_local2.tabChildren == true)) && (_local2._visible != false)) {
if (_local2 == _lastTarget) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_prevNode == undefined) {
var _local3 = _lastx;
var _local7 = false;
while (_local3 != undefined) {
if (_local3 == _local2) {
_local7 = true;
break;
}
_local3 = _local3._parent;
}
if (_local7 == false) {
_prevNode = _lastx;
}
}
_needPrev = false;
if (_nextNode == undefined) {
_nextIsNext = true;
}
} else if (!((_local2.focusManager != undefined) && (_local2.focusManager._parent == _local2))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
}
}
_lastNode = _lastx;
if (lookup) {
if (p._parent != undefined) {
if (p != _parent) {
if ((_prevNode == undefined) && (dir)) {
_needPrev = true;
} else if ((_nextNode == undefined) && (!dir)) {
_nextIsNext = false;
}
_lastTarget = _lastTarget._parent;
getTabCandidate(p._parent, index, groupName, dir, true);
}
}
}
}
function getTabCandidate(o, index, groupName, dir, firstChild) {
var _local2;
var _local3 = true;
if (o == _parent) {
_local2 = o;
_local3 = false;
} else {
_local2 = o._parent;
if (_local2 == undefined) {
_local2 = o;
_local3 = false;
}
}
walkTree(_local2, index, groupName, dir, _local3, firstChild);
}
function getTabCandidateFromChildren(o, index, groupName, dir, firstChild) {
walkTree(o, index, groupName, dir, false, firstChild);
}
function getFocusManagerFromObject(o) {
while (o != undefined) {
if (o.focusManager != undefined) {
return(o.focusManager);
}
o = o._parent;
}
return(undefined);
}
function tabHandler(Void) {
bDrawFocus = true;
var _local5 = getSelectionFocus();
var _local4 = getActualFocus(_local5);
if (_local4 != _local5) {
_local5 = _local4;
}
if (getFocusManagerFromObject(_local5) != this) {
_local5 == undefined;
}
if (_local5 == undefined) {
_local5 = form;
} else if (_local5.tabIndex != undefined) {
if ((_foundList != undefined) || (_foundList.tabIndex != _local5.tabIndex)) {
_foundList = new Object();
_foundList.tabIndex = _local5.tabIndex;
}
_foundList[_local5._name] = _local5;
}
var _local3 = Key.isDown(16) != true;
_searchKey = getTimer();
_needPrev = true;
_nextIsNext = false;
_lastx = undefined;
_firstNode = undefined;
_lastNode = undefined;
_nextNode = undefined;
_prevNode = undefined;
_firstObj = undefined;
_lastObj = undefined;
_nextObj = undefined;
_prevObj = undefined;
_lastTarget = _local5;
var _local6 = _local5;
getTabCandidate(_local6, ((_local5.tabIndex == undefined) ? 0 : (_local5.tabIndex)), _local5.groupName, _local3, true);
var _local2;
if (_local3) {
if (_nextObj != undefined) {
_local2 = _nextObj;
} else {
_local2 = _firstObj;
}
} else if (_prevObj != undefined) {
_local2 = _prevObj;
} else {
_local2 = _lastObj;
}
if (_local2.tabIndex != _local5.tabIndex) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
_foundList[_local2._name] = _local2;
} else {
if (_foundList == undefined) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
}
_foundList[_local2._name] = _local2;
}
if (_local2 == undefined) {
if (_local3 == false) {
if (_nextNode != undefined) {
_local2 = _nextNode;
} else {
_local2 = _firstNode;
}
} else if ((_prevNode == undefined) || (_local5 == form)) {
_local2 = _lastNode;
} else {
_local2 = _prevNode;
}
}
if (_local2 == undefined) {
return(undefined);
}
lastTabFocus = _local2;
setFocus(_local2);
if (_local2.emphasized != undefined) {
if (defPushButton != undefined) {
_local5 = defPushButton;
defPushButton = _local2;
_local5.emphasized = false;
_local2.emphasized = true;
}
} else if ((defPushButton != undefined) && (defPushButton != __defaultPushButton)) {
_local5 = defPushButton;
defPushButton = __defaultPushButton;
_local5.emphasized = false;
__defaultPushButton.__set__emphasized(true);
}
}
function onKeyDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
if (defaultPushButtonEnabled) {
if (Key.getCode() == 13) {
if (defaultPushButton != undefined) {
doLater(this, "sendDefaultPushButtonEvent");
}
}
}
}
function sendDefaultPushButtonEvent(Void) {
defPushButton.dispatchEvent({type:"click"});
}
function getMousedComponentFromChildren(x, y, o) {
for (var _local7 in o) {
var _local2 = o[_local7];
if (((_local2._visible && (_local2.enabled)) && (_local2._parent == o)) && (_local2._searchKey != _searchKey)) {
_local2._searchKey = _searchKey;
if (_local2.hitTest(x, y, true)) {
if ((_local2.onPress != undefined) || (_local2.onRelease != undefined)) {
return(_local2);
}
var _local3 = getMousedComponentFromChildren(x, y, _local2);
if (_local3 != undefined) {
return(_local3);
}
return(_local2);
}
}
}
return(undefined);
}
function mouseActivate(Void) {
if (!bNeedFocus) {
return(undefined);
}
_searchKey = getTimer();
var _local2 = getMousedComponentFromChildren(lastMouse.x, lastMouse.y, form);
if (_local2 instanceof mx.core.UIComponent) {
return(undefined);
}
_local2 = findFocusFromObject(_local2);
if (_local2 == lastFocus) {
return(undefined);
}
if (_local2 == undefined) {
doLater(this, "restoreFocus");
return(undefined);
}
var _local3 = _local2.hscroll;
if (_local3 != undefined) {
var _local6 = _local2.scroll;
var _local5 = _local2.background;
}
setFocus(_local2);
var _local4 = Selection;
Selection.setSelection(_local4.lastBeginIndex, _local4.lastEndIndex);
if (_local3 != undefined) {
_local2.scroll = _local6;
_local2.hscroll = _local3;
_local2.background = _local5;
}
}
function _onMouseDown(Void) {
bDrawFocus = false;
if (lastFocus != undefined) {
lastFocus.drawFocus(false);
}
mx.managers.SystemManager.idleFrames = 0;
var _local3 = Selection;
_local3.lastBeginIndex = Selection.getBeginIndex();
_local3.lastEndIndex = Selection.getEndIndex();
lastMouse.x = _root._xmouse;
lastMouse.y = _root._ymouse;
_root.localToGlobal(lastMouse);
}
function onMouseUp(Void) {
if (_visible) {
doLater(this, "mouseActivate");
}
}
function handleEvent(e) {
if (e.type == "reveal") {
mx.managers.SystemManager.activate(form);
} else {
mx.managers.SystemManager.deactivate(form);
}
}
static function enableFocusManagement() {
if (!initialized) {
initialized = true;
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
}
}
static var symbolName = "FocusManager";
static var symbolOwner = mx.managers.FocusManager;
static var version = "2.0.2.126";
var className = "FocusManager";
var bNeedFocus = false;
var bDrawFocus = false;
var defaultPushButtonEnabled = true;
var activated = true;
static var initialized = false;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 52 MovieClip [__Packages.mx.skins.halo.FocusRect] Frame 0
class mx.skins.halo.FocusRect extends mx.skins.SkinElement
{
var boundingBox_mc, _xscale, _yscale, clear, beginFill, drawRoundRect, endFill, _visible;
function FocusRect () {
super();
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function draw(o) {
o.adjustFocusRect();
}
function setSize(w, h, r, a, rectCol) {
_xscale = (_yscale = 100);
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);
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, r);
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);
beginFill(rectCol, a * 0.3);
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);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
} else {
var _local5;
if (r != 0) {
_local5 = r - 2;
} else {
_local5 = 0;
}
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
beginFill(rectCol, a * 0.3);
if (r != 0) {
_local5 = r - 2;
r = r - 1;
} else {
_local5 = 0;
r = 0;
}
drawRoundRect(1, 1, w - 2, h - 2, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
}
}
function handleEvent(e) {
if (e.type == "unload") {
_visible = true;
} else if (e.type == "resize") {
e.target.adjustFocusRect();
} else if (e.type == "move") {
e.target.adjustFocusRect();
}
}
static function classConstruct() {
mx.core.UIComponent.prototype.drawFocus = function (focused) {
var _local2 = this._parent.focus_mc;
if (!focused) {
_local2._visible = false;
this.removeEventListener("unload", _local2);
this.removeEventListener("move", _local2);
this.removeEventListener("resize", _local2);
} else {
if (_local2 == undefined) {
_local2 = this._parent.createChildAtDepth("FocusRect", mx.managers.DepthManager.kTop);
_local2.tabEnabled = false;
this._parent.focus_mc = _local2;
} else {
_local2._visible = true;
}
_local2.draw(this);
if (_local2.getDepth() < this.getDepth()) {
_local2.setDepthAbove(this);
}
this.addEventListener("unload", _local2);
this.addEventListener("move", _local2);
this.addEventListener("resize", _local2);
}
};
mx.core.UIComponent.prototype.adjustFocusRect = function () {
var _local2 = this.getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = this._parent.focus_mc;
_local3.setSize(this.width + 4, this.height + 4, 0, 100, _local2);
_local3.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);
}
static var classConstructed = classConstruct();
static var DefaultsDependency = mx.skins.halo.Defaults;
static var UIComponentDependency = mx.core.UIComponent;
}
Symbol 53 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0
class mx.managers.OverlappedWindows
{
function OverlappedWindows () {
}
static function checkIdle(Void) {
if (mx.managers.SystemManager.idleFrames > 10) {
mx.managers.SystemManager.dispatchEvent({type:"idle"});
} else {
mx.managers.SystemManager.idleFrames++;
}
}
static function __addEventListener(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);
}
static function __removeEventListener(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);
}
}
static function onMouseDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
mx.managers.SystemManager.isMouseDown = true;
var _local5 = _root;
var _local3;
var _local8 = _root._xmouse;
var _local7 = _root._ymouse;
if (mx.managers.SystemManager.form.modalWindow == undefined) {
if (mx.managers.SystemManager.forms.length > 1) {
var _local6 = mx.managers.SystemManager.forms.length;
var _local4;
_local4 = 0;
while (_local4 < _local6) {
var _local2 = mx.managers.SystemManager.forms[_local4];
if (_local2._visible) {
if (_local2.hitTest(_local8, _local7)) {
if (_local3 == undefined) {
_local3 = _local2.getDepth();
_local5 = _local2;
} else if (_local3 < _local2.getDepth()) {
_local3 = _local2.getDepth();
_local5 = _local2;
}
}
}
_local4++;
}
if (_local5 != mx.managers.SystemManager.form) {
mx.managers.SystemManager.activate(_local5);
}
}
}
var _local9 = mx.managers.SystemManager.form;
_local9.focusManager._onMouseDown();
}
static function onMouseMove(Void) {
mx.managers.SystemManager.idleFrames = 0;
}
static function onMouseUp(Void) {
mx.managers.SystemManager.isMouseDown = false;
mx.managers.SystemManager.idleFrames = 0;
}
static function activate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form != f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local1 = mx.managers.SystemManager.form;
_local1.focusManager.deactivate();
}
}
mx.managers.SystemManager.form = f;
f.focusManager.activate();
}
static function deactivate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form == f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local5 = mx.managers.SystemManager.form;
_local5.focusManager.deactivate();
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
var _local2;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
_local1 = _local1 + 1;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
mx.managers.SystemManager.form = _local2;
break;
}
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
_local5 = mx.managers.SystemManager.form;
_local5.focusManager.activate();
}
}
}
static function addFocusManager(f) {
mx.managers.SystemManager.forms.push(f);
mx.managers.SystemManager.activate(f);
}
static function removeFocusManager(f) {
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
if (mx.managers.SystemManager.form == f) {
mx.managers.SystemManager.deactivate(f);
}
mx.managers.SystemManager.forms.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
static function enableOverlappedWindows() {
if (!initialized) {
initialized = true;
mx.managers.SystemManager.checkIdle = checkIdle;
mx.managers.SystemManager.__addEventListener = __addEventListener;
mx.managers.SystemManager.__removeEventListener = __removeEventListener;
mx.managers.SystemManager.onMouseDown = onMouseDown;
mx.managers.SystemManager.onMouseMove = onMouseMove;
mx.managers.SystemManager.onMouseUp = onMouseUp;
mx.managers.SystemManager.activate = activate;
mx.managers.SystemManager.deactivate = deactivate;
mx.managers.SystemManager.addFocusManager = addFocusManager;
mx.managers.SystemManager.removeFocusManager = removeFocusManager;
}
}
static var initialized = false;
static var SystemManagerDependency = mx.managers.SystemManager;
}
Symbol 54 MovieClip [__Packages.mx.styles.CSSSetStyle] Frame 0
class mx.styles.CSSSetStyle
{
var styleName, stylecache, _color, setColor, invalidateStyle;
function CSSSetStyle () {
}
function _setStyle(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 _local7 = mx.styles.StyleManager.colorNames.haloBlue;
var _local6 = mx.styles.StyleManager.colorNames.haloGreen;
var _local8 = mx.styles.StyleManager.colorNames.haloOrange;
var _local4 = {};
_local4[_local7] = 12188666 /* 0xB9FBFA */;
_local4[_local6] = 13500353 /* 0xCDFFC1 */;
_local4[_local8] = 16766319 /* 0xFFD56F */;
var _local5 = {};
_local5[_local7] = 13958653 /* 0xD4FDFD */;
_local5[_local6] = 14942166 /* 0xE3FFD6 */;
_local5[_local8] = 16772787 /* 0xFFEEB3 */;
var _local9 = _local4[newValue];
var _local10 = _local5[newValue];
if (_local9 == undefined) {
_local9 = newValue;
}
if (_local10 == undefined) {
_local10 = newValue;
}
setStyle("selectionColor", _local9);
setStyle("rollOverColor", _local10);
}
_level0.changeColorStyleInChildren(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(styleName, styleProp, newValue);
}
}
function changeTextStyleInChildren(styleProp) {
var _local4 = getTimer();
var _local5;
for (_local5 in this) {
var _local2 = this[_local5];
if (_local2._parent == this) {
if (_local2.searchKey != _local4) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache.tf;
delete _local2.stylecache[styleProp];
}
_local2.invalidateStyle(styleProp);
_local2.changeTextStyleInChildren(styleProp);
_local2.searchKey = _local4;
}
}
}
}
function changeColorStyleInChildren(sheetName, colorStyle, newValue) {
var _local6 = getTimer();
var _local7;
for (_local7 in this) {
var _local2 = this[_local7];
if (_local2._parent == this) {
if (_local2.searchKey != _local6) {
if (((_local2.getStyleName() == sheetName) || (sheetName == undefined)) || (sheetName == "_global")) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[colorStyle];
}
if (typeof(_local2._color) == "string") {
if (_local2._color == colorStyle) {
var _local4 = _local2.getStyle(colorStyle);
if (colorStyle == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = _local4;
}
}
_local2.setColor(_local4);
}
} else if (_local2._color[colorStyle] != undefined) {
if (typeof(_local2) != "movieclip") {
_local2._parent.invalidateStyle();
} else {
_local2.invalidateStyle(colorStyle);
}
}
}
_local2.changeColorStyleInChildren(sheetName, colorStyle, newValue);
_local2.searchKey = _local6;
}
}
}
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
var _local5 = getTimer();
var _local6;
for (_local6 in this) {
var _local2 = this[_local6];
if (_local2._parent == this) {
if (_local2.searchKey != _local5) {
if (((_local2.styleName == sheetName) || ((_local2.styleName != undefined) && (typeof(_local2.styleName) == "movieclip"))) || (sheetName == undefined)) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[styleProp];
delete _local2.stylecache.tf;
}
delete _local2.enabledColor;
_local2.invalidateStyle(styleProp);
}
_local2.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
_local2.searchKey = _local5;
}
}
}
}
function setStyle(styleProp, newValue) {
if (stylecache != undefined) {
delete stylecache[styleProp];
delete 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 _local10 = mx.styles.StyleManager.colorNames.haloBlue;
var _local9 = mx.styles.StyleManager.colorNames.haloGreen;
var _local11 = mx.styles.StyleManager.colorNames.haloOrange;
var _local6 = {};
_local6[_local10] = 12188666 /* 0xB9FBFA */;
_local6[_local9] = 13500353 /* 0xCDFFC1 */;
_local6[_local11] = 16766319 /* 0xFFD56F */;
var _local7 = {};
_local7[_local10] = 13958653 /* 0xD4FDFD */;
_local7[_local9] = 14942166 /* 0xE3FFD6 */;
_local7[_local11] = 16772787 /* 0xFFEEB3 */;
var _local12 = _local6[newValue];
var _local13 = _local7[newValue];
if (_local12 == undefined) {
_local12 = newValue;
}
if (_local13 == undefined) {
_local13 = newValue;
}
setStyle("selectionColor", _local12);
setStyle("rollOverColor", _local13);
}
if (typeof(_color) == "string") {
if (_color == styleProp) {
if (styleProp == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = newValue;
}
}
setColor(newValue);
}
} else if (_color[styleProp] != undefined) {
invalidateStyle(styleProp);
}
changeColorStyleInChildren(undefined, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
invalidateStyle(styleProp);
}
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (styleProp == "styleName")) {
var _local8;
var _local5 = newValue;
if (styleProp == "styleName") {
_local8 = ((typeof(newValue) == "string") ? (_global.styles[newValue]) : (_local5));
_local5 = _local8.themeColor;
if (_local5 != undefined) {
_local8.rollOverColor = (_local8.selectionColor = _local5);
}
}
notifyStyleChangeInChildren(undefined, styleProp, newValue);
}
}
static function enableRunTimeCSS() {
}
static function classConstruct() {
var _local2 = MovieClip.prototype;
var _local3 = mx.styles.CSSSetStyle.prototype;
mx.styles.CSSStyleDeclaration.prototype.setStyle = _local3._setStyle;
_local2.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
_local2.changeColorStyleInChildren = _local3.changeColorStyleInChildren;
_local2.notifyStyleChangeInChildren = _local3.notifyStyleChangeInChildren;
_local2.setStyle = _local3.setStyle;
_global.ASSetPropFlags(_local2, "changeTextStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "changeColorStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "notifyStyleChangeInChildren", 1);
_global.ASSetPropFlags(_local2, "setStyle", 1);
var _local4 = TextField.prototype;
_local4.setStyle = _local2.setStyle;
_local4.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
}
Symbol 55 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] Frame 0
class mx.core.ext.UIComponentExtensions
{
function UIComponentExtensions () {
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
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();
}
static var bExtended = false;
static var UIComponentExtended = Extensions();
static var UIComponentDependency = mx.core.UIComponent;
static var FocusManagerDependency = mx.managers.FocusManager;
static var OverlappedWindowsDependency = mx.managers.OverlappedWindows;
}
Symbol 2356 Button
on (release) {
this._parent.gotoAndStop("GAME");
}
Symbol 2375 Button
on (release) {
this._parent.gotoAndStop("TITLE SCREEN");
}
Symbol 2377 MovieClip Frame 20
stop();
Symbol 2389 Button
on (release) {
var fakeVar = new Date().getTime();
loadMovieNum ("http://www.cartoonnetwork.com/games/ben10/savagepursuit/tracker.swf?" + fakeVar, 10000);
this._parent.gotoAndStop("GAME");
}
Symbol 2390 MovieClip Frame 20
stop();