Frame 1
_quality = "MEDIUM";
_global.oGame = new Object();
_global.oPerso = new Object();
_root.eventID = "td_prrescue";
_root.subject = "";
_root.playerscore = 0;
_root.fsdplayagain = function () {
var _local1 = _root;
_local1.timerInterface.chrono.startTime = getTimer();
_local1.playerscore = 0;
_local1.transition.gotoAndStop("over");
_global.oGame.displayLife();
_local1.gotoAndPlay("MainLoop");
};
Frame 2
sounds.loadMovie("sound.swf");
_global.oGame.PlaySound = function (theSound, loop) {
sounds.startsound(theSound, loop);
};
_global.oGame.StopSound = function (theSound) {
sounds.Stopsound(theSound);
};
_global.oGame.ChangeVolume = function (theSound, volume) {
sounds.SetSoundVolume(theSound, volume);
};
_global.oGame.SoundIsPlaying = function (theSound) {
return(sounds.GetPosition(theSound));
};
Frame 4
if (sounds.getBytesTotal() != 4) {
loading = sounds.getBytesLoaded() + _root.getBytesLoaded();
total = 1188604 /* 0x1222FC */;
percent = percent - ((percent - ((loading / total) * 100)) * 0.25);
Loaderframe = Math.floor((int(percent) / 4) + 1);
mc_percent.gotoAndStop(Loaderframe);
if (loading >= total) {
ifFrameLoaded (68) {
gotoAndPlay ("loaded");
}
}
}
Frame 6
gotoAndPlay ("loading");
Instance of Symbol 421 MovieClip [BGHit_l1_2] "BGHit2" in Frame 9
/* no clip actions */
Instance of Symbol 459 MovieClip [BGHit_l1_4] "BGHit_4" in Frame 9
onClipEvent (unload) {
_global.oGame.StopSound("fire1");
_global.oGame.StopSound("fire2");
}
Instance of Symbol 759 MovieClip [BGHit_l1_7] in Frame 9
/* no clip actions */
Frame 15
stopAllSounds();
_global.oGame.PlaySound("heavy_2", 999);
stop();
Instance of Symbol 1111 MovieClip "transitR" in Frame 39
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1111 MovieClip "transitL" in Frame 39
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1111 MovieClip "transitD" in Frame 39
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1111 MovieClip "transitU" in Frame 39
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1480 MovieClip "moveZone" in Frame 39
onClipEvent (load) {
_global.oGame.moveZone = this;
}
Instance of Symbol 1551 MovieClip "btnPause" in Frame 39
onClipEvent (load) {
this.onRelease = function () {
if (!_global.oGame.freeze) {
_global.oGame.PauseGame();
}
};
}
Frame 40
function death() {
var _local1 = _global;
_local1.oPerso.persoIsDying = true;
if (!_local1.oPerso.egg2) {
_local1.oPerso.persoLife--;
_root.powerLifeBar.lifeCounter.gotoAndStop(_local1.oPerso.persoLife + 1);
_local1.oGame.lifelost = _local1.oGame.lifelost + 1;
}
_local1.oGame.maxTime = 599;
_root.timerInterface.chrono.startTime = getTimer();
_local1.oPerso.persoXSpeed = 0;
_local1.oGame.persoAnim("death");
_local1.oPerso.persoIsRunning = false;
}
Array.prototype.deleteOne = function (element) {
var _local1 = this;
var _local2 = element;
thisLength = _local1.length;
i = 0;
while (i < thisLength) {
if (_local1[i] == _local2) {
_local1.splice(i, 1);
return;
}
i++;
}
};
Array.prototype.getPos = function (element) {
var _local1 = this;
var _local2 = element;
thisLength = _local1.length;
i = 0;
while (i < thisLength) {
if (_local1[i] == _local2) {
return(i);
}
i++;
}
return(null);
};
_global.b.addListener(_global.oGame);
_global.oGame.onPause = function () {
stop();
};
_global.oGame.onPlay = function () {
play();
};
_global.oGame.level1 = new Object();
_global.oGame.PauseAll = new Array();
_global.oGame.BGActions = new Array();
_global.oGame.laserBlock = new Array();
_global.oGame.laserSide = new Array();
_global.oGame.laserDmg = new Array();
_global.oGame.wallList = new Array();
_global.oGame.wallBreakPoint = new Array();
_global.oGame.plateforme = new Array();
_global.oGame.headCrusher = new Array();
_global.oGame.leftblocker = new Array();
_global.oGame.rightblocker = new Array();
_global.oGame.mover = new Array();
_global.oGame.moverDirection = new Array();
_global.oGame.powerUps = new Array();
_global.oGame.powerType = new Array();
_global.oGame.SwitchList = new Array();
_global.oGame.SwitchState = new Array();
_global.oGame.LaserHitZone = new Array();
_global.oGame.AttackHitZone = new Array();
_global.oGame.BadGuysHitZone = new Array();
_global.oGame.lifelost = 0;
_global.oGame.enemyTab = new Array();
_global.oGame.damagedEnemyTab = new Array();
_global.oGame.level1.bg1 = [0, 0, 150, 450, 0, 0, 1, 0];
_global.oGame.level1.bg2 = [1, 0, 450, 250, -1, 1, -1, 1];
_global.oGame.level1.bg3 = [2, 0, 50, 150, -1, 1, 1, 2];
_global.oGame.level1.bg4 = [2, -1, 50, 100, -1, 1, 1, 1];
_global.oGame.level1.bg5 = [3, -1, 200, 50, -1, 1, 1, 1];
_global.oGame.level1.bg6 = [3, 0, 50, 450, -1, 1, 1, 1];
_global.oGame.level1.bg7 = [4, 0, 540, 150, -1, 1, 1, 1];
_global.oGame.level1.bg8 = [5, 0, 100, 450, -1, 1, -1, 1];
_global.oGame.freeze = false;
_global.oGame.laserDamage = 1;
_global.oGame.BombDamage = 5;
_global.oGame.gamePaused = false;
_global.oGame.quiting = false;
_global.oGame.clockStop = false;
_global.oGame.scoreTotal = 0;
scoreDisplay.scoreText.text = _global.oGame.scoreTotal;
_global.oGame.transitAccel = 3.5;
_global.oGame.damagedEnemyNum = 0;
_global.oGame.accroche = 8;
_global.oGame.inTransit = 0;
_global.oGame.transitNewX = 0;
_global.oGame.transitXSpeed = 0;
_global.oGame.transitNewY = 0;
_global.oGame.transitYSpeed = 0;
_global.oGame.BGVCur = 1;
_global.oGame.BGLast = 1;
_global.oGame.BGCur = 1;
_global.oGame.CurrentBG = 1;
_global.oGame.BGWidth = 580;
_global.oGame.BGHeight = 480;
_global.oGame.level = 1;
_global.oGame.moveZone.attachMovie(("BGHit_l" + _global.oGame.level) + "_1", "BG_1", 1);
_global.oGame.moveZone.BG_1._x = 0;
_global.oGame.moveZone.BG_1._y = 0;
_global.oGame.moveZone._x = 580 * (-eval ("_global.oGame.level1.bg" + _global.oGame.CurrentBG)[0]);
_global.oGame.moveZone._y = 480 * (-eval ("_global.oGame.level1.bg" + _global.oGame.CurrentBG)[1]);
_global.oGame.maxTime = 599;
_global.oGame.doorOpen = false;
_global.oGame.blocked = false;
_global.oGame.crusher = false;
_global.oGame.boxA = "A";
_global.oGame.boxB = "A";
_global.oGame.boxAAnim = "0";
_global.oGame.boxBAnim = "0";
_global.oGame.BackGroundAction = "waiting";
_global.oGame.isMoving = false;
_global.oGame.isMovingX = false;
if (_global.oGame.level == 1) {
_global.oPerso.perso._x = 150;
_global.oPerso.perso._y = 450;
}
_global.oPerso.persoXSpeed = 0;
_global.oPerso.persoYSpeed = 0;
_global.oPerso.persoIsBusy = false;
_global.oPerso.persoIsBouncing = false;
_global.oPerso.persoIsRunning = false;
_global.oPerso.persoIsJumping = false;
_global.oPerso.persoIsFalling = false;
_global.oPerso.persoIsDucking = false;
_global.oPerso.persoIsLanding = false;
_global.oPerso.persoIsAttacking = false;
_global.oPerso.persoIsSuperAttacking = false;
_global.oPerso.persoIsInPain = false;
_global.oPerso.persoIsDying = false;
_global.oPerso.persoIsTeleporting = false;
_global.oPerso.persoIsReturning = false;
_global.oPerso.PersoIsThrowing = false;
_global.oPerso.IsBatman = true;
_global.oPerso.IsBlue = false;
_global.oPerso.IsYellow = false;
_global.oPerso.IsRed = true;
_global.oPerso.persoSwitchOn = "";
_global.oPerso.persoSwitchOff = "";
_global.oPerso.persoCurAction = "idle";
_global.oPerso.firstTouch = true;
_global.oGame.moveY = 0;
_global.oGame.moveX;
_global.oPerso.persoJumpSpeed = 20;
_global.oPerso.persoJumpDecel = 2;
_global.oPerso.persoXAccel = 1;
_global.oPerso.persoXDecel = 4;
_global.oPerso.persoMaxXSpeed = 7;
_global.oPerso.persoMaxYSpeed = 20;
_global.oPerso.persoDino = 1;
_global.oPerso.persoLife = 3;
_global.oPerso.persoFullHealth = 30;
_global.oPerso.persoHealth = 30;
_global.oPerso.persoFullPower = 100;
_global.oPerso.persoPower = 100;
_global.oPerso.powerShot = 25;
_global.oPerso.comboCheck = 0;
_global.oPerso.egg1 = false;
_global.oPerso.egg2 = false;
_global.oPerso.persoBoss = "DOWN";
_global.oPerso.powerBoost = function () {
var _local1 = _global;
if (!_local1.oGame.freeze) {
if (!_local1.oPerso.egg1) {
if ((_local1.oPerso.persoPower + 5) <= _local1.oPerso.persoFullPower) {
_local1.oPerso.persoPower = _local1.oPerso.persoPower + 5;
if (_local1.oPerso.persoPower != 0) {
_local1.oGame.powerBar.gotoAndStop(Math.round((100 / _local1.oPerso.persoFullPower) * (_local1.oPerso.persoFullPower - _local1.oPerso.persoPower)) + 1);
} else {
_local1.oGame.powerBar.gotoAndStop(100);
}
} else {
_local1.oPerso.persoPower = _local1.oPerso.persoFullPower;
_local1.oGame.powerBar.gotoAndStop(1);
}
}
}
};
_global.oGame.scoreBoost = function () {
_global.oGame.AddScore(10);
};
_global.oGame.powerPoint = function (mcPower) {
var _local1 = mcPower;
var _local2 = _global;
if (_local2.oGame.powerState(_local1) == "gone") {
_local1.gotoAndStop(2);
} else if (_local2.oGame.powerState(_local1) == -1) {
_local2.oGame.addPowerUp(_local1, "point");
}
};
_global.oGame.powerHealth = function (mcPower) {
var _local1 = mcPower;
var _local2 = _global;
if (_local2.oGame.powerState(_local1) == "gone") {
_local1.gotoAndStop(2);
} else if (_local2.oGame.powerState(_local1) == -1) {
_local2.oGame.addPowerUp(_local1, "health");
}
};
_global.oGame.powerPower = function (mcPower) {
var _local1 = mcPower;
var _local2 = _global;
if (_local2.oGame.powerState(_local1) == "gone") {
_local1.gotoAndStop(2);
} else if (_local2.oGame.powerState(_local1) == -1) {
_local2.oGame.addPowerUp(_local1, "power");
}
};
_global.oGame.powerLife = function (mcPower) {
var _local1 = mcPower;
var _local2 = _global;
if (_local2.oGame.powerState(_local1) == "gone") {
_local1.gotoAndStop(2);
} else if (_local2.oGame.powerState(_local1) == -1) {
_local2.oGame.addPowerUp(_local1, "life");
}
};
_global.oGame.powerDino = function (mcPower) {
var _local1 = mcPower;
var _local2 = _global;
if (_local2.oGame.powerState(_local1) == "gone") {
_local1.gotoAndStop(2);
} else if (_local2.oGame.powerState(_local1) == -1) {
_local2.oGame.addPowerUp(_local1, "dino");
}
};
_global.KeyListener = new Object();
_global.KeyListener.zPress = false;
_global.KeyListener.upPress = false;
_global.KeyListener.downPress = false;
_global.KeyListener.leftPress = false;
_global.KeyListener.rightPress = false;
_global.KeyListener.spacePress = false;
_global.KeyListener.ctrlPress = false;
_global.KeyListener.xPress = false;
_global.KeyListener.stillPressingKeyAtt = false;
_global.KeyListener.stillPressingKeyUp = false;
_global.KeyListener.stillPressingKeySpace;
_global.KeyListener.onKeyUp = function () {
var _local1 = this;
var _local2 = _global;
switch (Key.getCode()) {
case 90 :
_local1.zPress = false;
return;
case 38 :
_local1.upPress = false;
_local1.stillPressingKeyUp = false;
return;
case 40 :
_local1.downPress = false;
return;
case 37 :
_local1.leftPress = false;
return;
case 39 :
_local1.rightPress = false;
return;
case 8 :
trace("FirstTouch = " + _local2.oPerso.firstTouch);
trace("IsSuperAttacking = " + _local2.oPerso.persoIsSuperAttacking);
trace("IsRunning = " + _local2.oPerso.persoIsRunning);
trace("IsDucking = " + _local2.oPerso.persoIsDucking);
return;
case 80 :
if (!_local2.oGame.freeze) {
_local2.oGame.PauseGame();
}
return;
case 17 :
_local1.ctrlPress = true;
_local1.stillPressingKeySpace = false;
return;
case 88 :
_local1.xPress = false;
return;
case 32 :
_local1.spacePress = false;
_local1.stillPressingKeyAtt = false;
return;
case 87 :
}
};
_global.KeyListener.onKeyDown = function () {
var _local1 = this;
switch (Key.getCode()) {
case 90 :
_local1.zPress = true;
return;
case 38 :
_local1.upPress = true;
return;
case 40 :
_local1.downPress = true;
return;
case 37 :
_local1.leftPress = true;
return;
case 39 :
_local1.rightPress = true;
return;
case 32 :
_local1.spacePress = true;
return;
case 17 :
_local1.ctrlPress = false;
return;
case 88 :
_local1.xPress = true;
}
};
Key.addListener(_global.KeyListener);
_global.oGame.PlaySound = function (theSound, loop) {
sounds.startsound(theSound, loop);
};
_global.oGame.StopSound = function (theSound) {
sounds.Stopsound(theSound);
};
_global.oGame.ChangeVolume = function (theSound, volume) {
sounds.SetSoundVolume(theSound, volume);
};
_global.oGame.SoundIsPlaying = function (theSound) {
return(sounds.GetPosition(theSound));
};
_global.oGame.displayLife = function () {
if (!_global.oPerso.egg2) {
_root.powerLifeBar.lifeCounter.gotoAndStop(_global.oPerso.persoLife + 1);
} else {
_root.powerLifeBar.lifeCounter.gotoAndStop(11);
}
};
_global.oGame.displayDino = function () {
_root.powerLifeBar.dinoCounter.gotoAndStop(_global.oPerso.persoDino + 1);
};
_global.oGame.displayLife();
_global.oGame.displayDino();
_global.oGame.addToPause = function (obj) {
_global.oGame.PauseAll.push(obj);
};
_global.oGame.removeToPause = function (obj) {
_global.oGame.PauseAll.deleteone(obj);
};
_global.oGame.addBGAction = function (obj) {
_global.oGame.BGActions.push(obj);
};
_global.oGame.removeBGAction = function (obj) {
_global.oGame.BGActions.deleteone(obj);
};
_global.oGame.addPause = function (obj) {
_global.oGame.pauseThunder.push(obj);
};
_global.oGame.removePause = function (obj) {
_global.oGame.pauseThunder.deleteone(obj);
};
_global.oGame.addLaserBlock = function (obj, laserSide, laserHit) {
var _local1 = _global;
_local1.oGame.laserBlock.push(obj);
_local1.oGame.laserSide.push(laserSide);
_local1.oGame.laserDmg.push(laserHit);
};
_global.oGame.addPowerUp = function (obj, type) {
_global.oGame.powerUps.push(obj);
_global.oGame.powerType.push(type);
};
_global.oGame.powerState = function (obj) {
var _local1 = _global;
var _local2 = obj;
i = 0;
while (i < _local1.oGame.powerUps.length) {
if (_local2 == _local1.oGame.powerUps[i]) {
return(_local1.oGame.powerType[i]);
}
i++;
}
return(-1);
};
_global.oGame.PauseGame = function () {
var _local1 = _global;
var _local3 = _root;
if (((!_local1.oPerso.persoIsDying) && (!_local1.oPerso.persoIsInPain)) && (!_local1.oPerso.persoIsSuperAttacking)) {
if (!_local1.oGame.freeze) {
stopAllSounds();
_local3.btnPause.gotoAndStop(2);
transition.gotoAndStop("gamePause");
_local1.oGame.elapsed = _local3.timerInterface.chrono.elapsed;
_local1.oGame.freeze = true;
var _local2 = 0;
while (_local2 < _local1.oGame.PauseAll.length) {
_local1.oGame.PauseAll[_local2].stop();
_local2++;
}
} else {
transition.gotoAndStop("over");
_local1.oGame.freeze = false;
_local3.btnPause.gotoAndStop(1);
_local3.timerInterface.chrono.startTime = getTimer() - _local1.oGame.elapsed;
_local1.oGame.PlaySound("planant", 999);
if (_local1.oGame.CurrentBG == 1) {
_local1.oGame.PlaySound("fire1", 999);
_local1.oGame.ChangeVolume("fire1", 50);
}
if ((_local1.oGame.CurrentBG == 2) && (_local1.oGame.stateOfSwitch2("switch2_2") != "OFF")) {
_local1.oGame.PlaySound("fire2", 999);
_local1.oGame.ChangeVolume("fire2", 250);
}
if ((_local1.oGame.CurrentBG == 4) && (_local1.oGame.stateOfSwitch2("switch4_2") != "OFF")) {
_local1.oGame.PlaySound("fire2", 999);
}
if ((_local1.oGame.CurrentBG == 5) && (_local1.oGame.crusher)) {
_local1.oGame.PlaySound("tapis2", 999);
}
if (_local1.oGame.CurrentBG == 7) {
_local1.oGame.PlaySound("tapis2", 999);
_local1.oGame.ChangeVolume("tapis2", 50);
}
if ((_local1.oGame.CurrentBG == 8) && (_local1.oGame.stateOfSwitch2("switch8_2") == "OFF")) {
_local1.oGame.PlaySound("tapis2", 999);
_local1.oGame.ChangeVolume("tapis2", 50);
}
var _local2 = 0;
while (_local2 < _local1.oGame.PauseAll.length) {
_local1.oGame.PauseAll[_local2].play();
_local2++;
}
}
}
};
_global.oGame.PauseGame2 = function () {
var _local1 = _global;
var _local3 = _root;
if (((!_local1.oPerso.persoIsDying) && (!_local1.oPerso.persoIsInPain)) && (!_local1.oPerso.persoIsSuperAttacking)) {
if (!_local1.oGame.freeze) {
_local3.btnPause.gotoAndStop(2);
_local1.oGame.elapsed = _local3.timerInterface.chrono.elapsed;
_local1.oGame.freeze = true;
var _local2 = 0;
while (_local2 < _local1.oGame.PauseAll.length) {
_local1.oGame.PauseAll[_local2].stop();
_local2++;
}
_local3.dinoAttack.play();
} else {
_local1.oGame.freeze = false;
_local3.btnPause.gotoAndStop(1);
_local3.timerInterface.chrono.startTime = getTimer() - _local1.oGame.elapsed;
var _local2 = 0;
while (_local2 < _local1.oGame.PauseAll.length) {
_local1.oGame.PauseAll[_local2].play();
_local2++;
}
_local1.oGame.dinoAttacking();
}
}
};
_global.oGame.addWall = function (obj, breakpoint) {
_global.oGame.wallList.push(obj);
_global.oGame.wallBreakPoint.push(breakpoint);
};
_global.oGame.removeWall = function (obj) {
var _local1 = _global;
var _local2 = obj;
i = 0;
while (i < _local1.oGame.wallList.length) {
if (_local2 == _local1.oGame.wallList[i]) {
_local1.oGame.wallBreakPoint[i].splice(i, 1);
_local1.oGame.wallList.deleteOne(_local2);
}
i++;
}
};
_global.oGame.addPlateforme = function (obj) {
_global.oGame.Plateforme.push(obj);
};
_global.oGame.removePlateforme = function (obj) {
_global.oGame.Plateforme.deleteone(obj);
};
_global.oGame.addSwitch = function (obj, state) {
_global.oGame.switchList.push(obj);
_global.oGame.switchState.push(state);
};
_global.oGame.switchInList = function (obj) {
var _local1 = _global;
var _local2 = obj;
i = 0;
while (i < _local1.oGame.SwitchList.length) {
if (_local2 == _local1.oGame.SwitchList[i]) {
return(true);
}
i++;
}
return(false);
};
_global.oGame.switchNewState = function (obj, state) {
var _local1 = _global;
var _local2 = obj;
var _local3 = state;
i = 0;
while (i < _local1.oGame.SwitchList.length) {
if (_local2 == _local1.oGame.SwitchList[i]) {
_local1.oGame.SwitchState[i] = _local3;
}
i++;
}
};
_global.oGame.stateOfSwitch = function (obj) {
var _local1 = _global;
var _local2 = obj;
i = 0;
while (i < _local1.oGame.SwitchList.length) {
if (_local2 == _local1.oGame.SwitchList[i]) {
return(_local1.oGame.SwitchState[i]);
}
i++;
}
return(-1);
};
_global.oGame.stateOfSwitch2 = function (switchName) {
var _local2 = _global;
var _local3 = switchName;
var _local1 = 0;
while (_local1 < _local2.oGame.SwitchList.length) {
if (_local3 == _local2.oGame.SwitchList[_local1]._name) {
return(_local2.oGame.SwitchState[_local1]);
}
_local1++;
}
return(-1);
};
_global.oGame.RemoveSwitch = function (obj) {
var _local1 = _global;
var _local2 = obj;
i = 0;
while (i < _local1.oGame.SwitchList.length) {
if (_local2 == _local1.oGame.SwitchList[i]) {
_local1.oGame.SwitchState[i].splice(i, 1);
}
i++;
}
_local1.oGame.SwitchList.deleteOne(_local2);
};
_global.oGame.addHeadCrusher = function (obj) {
if (obj != undefined) {
_global.oGame.headCrusher.push(obj);
}
};
_global.oGame.addLeftBlocker = function (obj) {
if (obj != undefined) {
_global.oGame.leftblocker.push(obj);
}
};
_global.oGame.addRightBlocker = function (obj) {
if (obj != undefined) {
_global.oGame.rightblocker.push(obj);
}
};
_global.oGame.addTapis = function (obj, speed) {
if (obj != undefined) {
_global.oGame.mover.push(obj);
_global.oGame.moverDirection.push(speed);
}
};
_global.oGame.RemoveTapis = function (obj) {
_global.oGame.mover.deleteOne(obj);
};
_global.oGame.AddAttackHitZone = function (obj) {
_global.oGame.AttackHitZone.push(obj);
};
_global.oGame.RemoveAttackHitZone = function (obj) {
_global.oGame.AttackHitZone.deleteOne(obj);
};
_global.oGame.AddLampHitZone = function (obj) {
_global.oGame.LampHitZone.push(obj);
};
_global.oGame.RemoveLampHitZone = function (obj) {
_global.oGame.LampHitZone.deleteOne(obj);
};
_global.oGame.VerifyLamp = function (obj) {
if (_global.oGame.level1.Lamp[obj.LampNumber]) {
obj.gotoAndStop("exploded");
}
};
_global.oGame.AddBadGuysHitZone = function (obj) {
_global.oGame.BadGuysHitZone.push(obj);
};
_global.oGame.RemoveBadGuysHitZone = function (obj) {
_global.oGame.BadGuysHitZone.deleteOne(obj);
};
_global.oGame.AddLaserHitZone = function (obj) {
_global.oGame.LaserHitZone.push(obj);
};
_global.oGame.RemoveLaserHitZone = function (obj) {
_global.oGame.LaserHitZone.deleteOne(obj);
};
_global.oGame.AddScore = function (points) {
var _local1 = _global;
_local1.oGame.scoreTotal = _local1.oGame.scoreTotal + points;
_root.gScore = _local1.oGame.scoreTotal;
scoreDisplay.scoreText.text = _local1.oGame.scoreTotal;
};
_global.oGame.FinalScore = function () {
var _local1 = _global;
if (!_local1.oGame.egg2) {
lifeBonus = 1500 * _local1.oPerso.persoLife;
} else {
lifeBonus = 4500;
}
timeBonus = 150 * (_root.timerInterface.chrono.sec / 10);
timeBonus = timeBonus + (900 * _root.timerInterface.chrono.min);
_local1.oGame.scoretotal = _local1.oGame.scoretotal + lifeBonus;
_local1.oGame.scoretotal = _local1.oGame.scoretotal + timeBonus;
return([_local1.oGame.scoretotal, lifeBonus, timeBonus]);
};
_global.oGame.AddLife = function () {
var _local1 = _global;
if (!_local1.oPerso.egg2) {
_local1.oPerso.persoLife++;
_root.powerLifeBar.lifeCounter.gotoAndStop(_local1.oPerso.persoLife + 1);
} else {
_root.powerLifeBar.lifeCounter.gotoAndStop(11);
}
};
_global.oGame.dinoAttacking = function () {
var _local2 = _global;
BadGuyLength = _local2.oGame.BadGuysHitZone.length;
if (_local2.oGame.CurrentBG != 8) {
var _local1 = 0;
while (_local1 < BadGuyLength) {
if ((_local2.oGame.BadGuysHitZone[_local1]._parent._name == (("BadGuy" + _local2.oGame.currentBG) + "_1")) || (_local2.oGame.BadGuysHitZone[_local1]._parent._name == (("BadGuy" + _local2.oGame.currentBG) + "_2"))) {
_local2.oGame.setDamage(_local2.oGame.BadGuysHitZone[_local1]._parent._name, 3);
_local2.oGame.BadGuysHitZone[_local1]._parent.gotoAndPlay("dinoAttack");
}
_local1++;
}
} else {
_local2.oGame.boss.gotoAndPlay("dinoAttack");
}
};
_global.oGame.AddDino = function () {
_global.oPerso.persoDino++;
_root.powerLifeBar.dinoCounter.gotoAndStop(_global.oPerso.persoDino + 1);
};
_global.oGame.LoseGame = function () {
_global.oPerso.perso._x = 4000;
eval ("_global.oGame.moveZone.BG_" + _global.oGame.CurrentBG).removeMovieClip();
transition.gotoAndStop("lose");
};
_global.oGame.WinGame = function () {
_global.oPerso.perso._x = 4000;
eval ("_global.oGame.moveZone.BG_" + _global.oGame.CurrentBG).removeMovieClip();
transition.gotoAndStop("win");
};
_global.oGame.faceOff = function (AttackZone) {
var _local1 = _global;
var _local3 = AttackZone;
point = new Object();
point2 = new Object();
point2.x = _local1.oPerso.perso._x;
point2.y = _local1.oPerso.perso._y;
_local1.oPerso.perso.localToGlobal(point2);
point.x = _local3._x;
point.y = _local3._y;
_local3.localToGlobal(point);
var _local2 = point.x - point2.x;
if ((point2.x > _local2) && (_local1.oPerso.perso._xscale > 0)) {
return(true);
}
if ((point2.x < _local2) && (_local1.oPerso.perso._xscale < 0)) {
return(true);
}
return(false);
};
_global.oGame.blueDef = function () {
if (_global.oPerso.IsBlue && (_global.oPerso.persoIsSuperAttacking)) {
return(true);
}
return(false);
};
_global.oGame.resetPlay = function () {
if (((_global.oGame.level == 3) && (_global.oGame.CurrentBG == 1)) || ((_global.oGame.level == 3) && (_global.oGame.CurrentBG == 2))) {
if (!_global.oPerso.IsBatman) {
_global.oPerso.perso._x = eval ("_global.oGame.level1.bg" + _global.oGame.CurrentBG)[8] - _global.oGame.moveZone._x;
_global.oPerso.perso._y = eval ("_global.oGame.level1.bg" + _global.oGame.CurrentBG)[9] - _global.oGame.moveZone._y;
} else {
_global.oPerso.perso._x = eval ("_global.oGame.level1.bg" + _global.oGame.CurrentBG)[2] - _global.oGame.moveZone._x;
_global.oPerso.perso._y = eval ("_global.oGame.level1.bg" + _global.oGame.CurrentBG)[3] - _global.oGame.moveZone._y;
}
} else {
_global.oPerso.perso._x = eval ("_global.oGame.level1.bg" + _global.oGame.CurrentBG)[2] - _global.oGame.moveZone._x;
_global.oPerso.perso._y = eval ("_global.oGame.level1.bg" + _global.oGame.CurrentBG)[3] - _global.oGame.moveZone._y;
}
_global.oPerso.perso._xscale = Math.abs(_global.oPerso.perso._xscale);
_global.oGame.lifeBar.gotoAndStop(1);
_global.oPerso.persoHealth = _global.oPerso.persoFullHealth;
if (!_global.oPerso.egg1) {
_global.oGame.powerBar.gotoAndStop(1);
_global.oPerso.persoPower = _global.oPerso.persoFullPower;
}
_global.oPerso.persoIsDying = false;
_global.oGame.maxTime = 599;
};
_global.oGame.SwitchPerso = function (newBG, newx, newy, reallySwitch) {
_global.oGame.LastConsoleText = 0;
eval ("_global.oGame.moveZone.BG_" + _global.oGame.CurrentBG).removeMovieClip();
trace("1- old BG : " + _global.oGame.CurrentBG);
_global.oGame.CurrentBG = newBG;
trace("2- new BG : " + _global.oGame.CurrentBG);
_global.oGame.moveZone._x = 500 * (-eval ("_global.oGame.level1.bg" + _global.oGame.CurrentBG)[0]);
_global.oGame.moveZone._y = 375 * (-eval ("_global.oGame.level1.bg" + _global.oGame.CurrentBG)[1]);
_global.oGame.BGCur = 1 + eval ("_global.oGame.level1.bg" + _global.oGame.CurrentBG)[0];
_global.oGame.BGVCur = 1 + eval ("_global.oGame.level1.bg" + _global.oGame.CurrentBG)[1];
_global.oGame.pauseAll = new Array();
_global.oGame.moveZone.attachMovie((("BGHit_l" + _global.oGame.level) + "_") + _global.oGame.CurrentBG, "BG_" + _global.oGame.CurrentBG, _global.oGame.CurrentBG);
with (eval ("_global.oGame.moveZone.BG_" + _global.oGame.CurrentBG)) {
_x = -_global.oGame.moveZone._x;
_y = -_global.oGame.moveZone._y;
}
if (newx == undefined) {
_global.oPerso.perso._x = eval ("_global.oGame.level1.bg" + _global.oGame.CurrentBG)[2] - _global.oGame.moveZone._x;
_global.oPerso.perso._y = eval ("_global.oGame.level1.bg" + _global.oGame.CurrentBG)[3] - _global.oGame.moveZone._y;
} else {
_global.oPerso.perso._x = newx - _global.oGame.moveZone._x;
_global.oPerso.perso._y = newy - _global.oGame.moveZone._y;
}
_global.oPerso.persoXSpeed = 0;
_global.oPerso.persoYSpeed = 0;
_global.oPerso.persoCurAction = "idle";
_global.oPerso.perso._xscale = Math.abs(_global.oPerso.perso._xscale);
if (reallySwitch == undefined) {
_global.oPerso.IsBatman = !_global.oPerso.IsBatman;
_global.oPerso.perso.gotoAndStop(1);
if (_global.oPerso.IsBatman) {
batmanLifeBar.gotoAndStop(1);
_global.oGame.transitionPerso.gotoAndStop(2);
} else {
batmanLifeBar.gotoAndStop(2);
_global.oGame.transitionPerso.gotoAndStop(3);
}
}
};
_global.oGame.setDamage = function (instanceName, damageAmount) {
var _local1 = _global;
var _local2 = instanceName;
var _local3 = damageAmount;
instTemp = -1;
j = 0;
while (j <= _local1.oGame.damagedEnemyNum) {
if (String(_local1.oGame.enemyTab[j]) eq String(_local2)) {
_local1.oGame.damagedEnemyTab[j] = _local1.oGame.damagedEnemyTab[j] + _local3;
instTemp = j;
}
j++;
}
if (instTemp == -1) {
_local1.oGame.enemyTab[_local1.oGame.damagedEnemyNum] = String(_local2);
_local1.oGame.damagedEnemyTab[_local1.oGame.damagedEnemyNum] = _local3;
_local1.oGame.damagedEnemyNum++;
}
};
_global.oGame.getDamage = function (instanceName) {
var _local1 = _global;
var _local2 = instanceName;
j = 0;
while (j <= _local1.oGame.damagedEnemyNum) {
if (String(_local1.oGame.enemyTab[j]) eq String(_local2)) {
return(_local1.oGame.damagedEnemyTab[j]);
}
j++;
}
return(-1);
};
_global.oGame.damage = function (damageAmount) {
var _local1 = _global;
_local1.oPerso.persoHealth = _local1.oPerso.persoHealth - damageAmount;
_local1.oGame.lifeBar.gotoAndStop(Math.round((100 / _local1.oPerso.persoFullHealth) * (_local1.oPerso.persoFullHealth - _local1.oPerso.persoHealth)) + 1);
if (_local1.oPerso.persoHealth <= 0) {
_local1.oGame.lifeBar.gotoAndStop(100);
_local1.oPerso.persoXSpeed = 0;
_local1.oGame.maxTime = 599;
death();
}
};
_global.oGame.usePower = function () {
var _local1 = _global;
if (!_local1.oPerso.egg1) {
_local1.oPerso.persoPower = _local1.oPerso.persoPower - _local1.oPerso.powerShot;
if (_local1.oPerso.persoPower != 0) {
_local1.oGame.powerBar.gotoAndStop(Math.round((100 / _local1.oPerso.persoFullPower) * (_local1.oPerso.persoFullPower - _local1.oPerso.persoPower)) + 1);
} else {
_local1.oGame.powerBar.gotoAndStop(100);
}
}
};
_global.oGame.persoAnim = function (action) {
var _local1 = _global;
var _local2 = action;
if (_local1.oPerso.persoIsDying) {
_local2 = "death";
} else if (_local1.oPerso.persoIsInPain) {
_local2 = "hit";
}
switch (_local2) {
case "idle" :
if (_local1.oPerso.persoIsAttacking) {
_local2 = "attack";
} else if (_local1.oPerso.persoIsLanding) {
_local2 = "land";
} else if (_local1.oPerso.persoIsSuperAttacking) {
_local2 = "power";
}
break;
case "run" :
if (_local1.oPerso.persoIsFalling) {
_local2 = "fall";
} else if (_local1.oPerso.persoIsLanding) {
_local2 = "land";
} else if (_local1.oPerso.persoIsAttacking) {
_local2 = "attack";
} else if (_local1.oPerso.persoIsSuperAttacking) {
_local2 = "power";
_local1.oPerso.persoXSpeed = 0;
}
break;
case "jump" :
break;
case "fall" :
if (_local1.oPerso.persoIsAttacking) {
_local2 = "jumpAttack";
}
if (_local1.oPerso.persoIsSuperAttacking) {
_local2 = "power";
}
break;
case "land" :
_local1.oPerso.persoIsLanding = true;
break;
case "dodge" :
if (_local1.oPerso.persoIsAttacking) {
_local2 = "attack";
} else if (_local1.oPerso.persoIsSuperAttacking) {
_local2 = "power";
_local1.oPerso.persoXSpeed = 0;
}
break;
case "attack" :
break;
case "jumpAttack" :
break;
case "death" :
_local1.oPerso.persoXSpeed = 0;
_local2 = "death";
}
if (_local1.oPerso.persoCurAction != _local2) {
_local1.oPerso.perso.gotoAndStop(_local2);
_local1.oPerso.persoCurAction = _local2;
}
};
_global.oGame.transitTo = function (GoH, transitionDir, direction) {
_global.oGame.LastConsoleText = 0;
_global.oGame.inTransit = transitionDir;
_global.oGame.BGLast = _global.oGame.CurrentBG;
_global.oGame.mover = new Array();
_global.oGame.moverDirection = new Array();
switch (direction) {
case "left" :
var moveDir = eval ("_global.oGame.level1.bg" + _global.oGame.CurrentBG)[4];
break;
case "right" :
var moveDir = eval ("_global.oGame.level1.bg" + _global.oGame.CurrentBG)[5];
break;
case "up" :
var moveDir = eval ("_global.oGame.level1.bg" + _global.oGame.CurrentBG)[6];
break;
case "down" :
var moveDir = eval ("_global.oGame.level1.bg" + _global.oGame.CurrentBG)[7];
}
_global.oGame.CurrentBG = _global.oGame.CurrentBG + moveDir;
if (GoH) {
_global.oGame.transitDirectionHorizontal = true;
_global.oGame.transitNewX = (-_global.oGame.BGWidth) * ((_global.oGame.BGCur + transitionDir) - 1);
_global.oGame.BGCur = _global.oGame.BGCur + transitionDir;
} else {
_global.oGame.transitDirectionHorizontal = false;
_global.oGame.transitOldY = _global.oGame.transitNewY;
_global.oGame.transitNewY = (-_global.oGame.BGHeight) * ((_global.oGame.BGVCur + transitionDir) - 1);
_global.oGame.BGVCur = _global.oGame.BGVCur + transitionDir;
}
_global.oGame.pauseAll = new Array();
_global.oGame.moveZone.attachMovie((("BGHit_l" + _global.oGame.level) + "_") + _global.oGame.CurrentBG, "BG_" + _global.oGame.CurrentBG, eval ("_global.oGame.moveZone.BG_" + _global.oGame.BGLast).getDepth() + 1);
with (eval ("_global.oGame.moveZone.BG_" + _global.oGame.CurrentBG)) {
_x = _global.oGame.BGWidth * (_global.oGame.BGCur - 1);
_y = _global.oGame.BGheight * (_global.oGame.BGVCur - 1);
}
};
_global.oGame.LevelOver = function () {
var _local1 = _global;
_local1.oPerso.perso._x = 4000;
_local1.oGame.freeze = true;
transition.gotoAndStop("level" + _local1.oGame.level);
};
_global.oGame.BeginLevel = function (NewLevel) {
var _local1 = _global;
_local1.oPerso.persoHealth = _local1.oPerso.persoFullHealth;
_local1.oPerso.persoPower = _local1.oPerso.persoFullPower;
_local1.oGame.freeze = false;
_local1.oGame.level = 1;
_local1.oGame.PlaySound("planant", 999);
if (_local1.oGame.level == 1) {
_local1.oGame.SwitchPerso(1, 50, 300, false);
} else if (_local1.oGame.level == 2) {
_local1.oGame.SwitchPerso(1, 400, 100, false);
_local1.oGame.displayLife();
_local1.oGame.displayDino();
} else {
_local1.oGame.displayLife();
_local1.oGame.displayDino();
_local1.oPerso.IsBatman = !_local1.oPerso.IsBatman;
_local1.oPerso.perso.gotoAndStop(1);
batmanLifeBar.gotoAndStop(1);
_local1.oGame.SwitchPerso(1, 4000, 4000, false);
}
};
_global.oGame.myRand = function (valMin, valMax) {
x = Math.round(Math.random() * (valMax - valMin)) + valMin;
return(x);
};
_global.oGame.myRandDec = function (valMin, valMax) {
return((Math.random() * (valMax - valMin)) + valMin);
};
MovingEnterFrame = function (obj) {
var _local1 = obj;
var _local2 = _global;
_local1.tempx = _local1._x + _local1.xspeed;
_local1.tempy = _local1._y + _local1.yspeed;
if (_local1.xspeed > 0) {
if (_local1.tempx < (_local1.homex + _local1.maxxmov)) {
_local1._x = _local1.tempx;
} else {
_local1._x = _local1.tempx;
if (!_local1.OneWay) {
_local1.xspeed = -Math.abs(_local1.xspeed);
} else {
_local1.direction = "left";
_local1.init();
_local2.oGame.mover.DeleteOne(_local1);
}
}
}
if (_local1.xspeed < 0) {
if (_local1.tempx > (_local1.homex - _local1.maxxmov)) {
_local1._x = _local1.tempx;
} else {
_local1._x = _local1.tempx;
if (!_local1.OneWay) {
_local1.xspeed = Math.abs(_local1.xspeed);
} else {
_local1.direction = "right";
_local1.init();
_local2.oGame.mover.DeleteOne(_local1);
}
}
}
if (_local1.yspeed > 0) {
if (_local1.tempy < (_local1.homey + _local1.maxymov)) {
_local1._y = _local1.tempy;
} else {
_local1._y = _local1.tempy;
if (!_local1.OneWay) {
_local1.yspeed = -Math.abs(_local1.yspeed);
} else {
_local1.direction = "up";
_local1.init();
_local1.automatic = false;
_local2.oGame.mover.DeleteOne(_local1);
}
}
}
if (_local1.yspeed < 0) {
if (_local1.tempy > (_local1.homey - _local1.maxymov)) {
_local1._y = _local1.tempy;
} else {
_local1._y = _local1.tempy;
if (!_local1.OneWay) {
_local1.yspeed = Math.abs(_local1.yspeed);
} else {
_local1.direction = "down";
_local1.init();
_local1.automatic = false;
_local2.oGame.mover.DeleteOne(_local1);
}
}
}
};
frameAction = function () {
if (!_global.oGame.freeze) {
if (((_global.oPerso.persoXSpeed != 0) && (!_global.oPerso.persoIsJumping)) && (!_global.oPerso.persoIsFalling)) {
_global.oPerso.persoIsRunning = true;
}
if (_global.oPerso.persoYSpeed < 0) {
_global.oPerso.persoIsJumping = true;
_global.oPerso.persoIsRunning = false;
_global.oPerso.persoIsDucking = false;
_global.oPerso.persoIsFalling = false;
} else if ((_global.oPerso.persoYSpeed > 0) && (_global.oPerso.persoYSpeed < 3)) {
_global.oPerso.persoIsBouncing = false;
if (_global.oPerso.firstTouch) {
_global.oPerso.persoIsFalling = true;
}
_global.oPerso.persoIsJumping = false;
_global.oPerso.persoIsDucking = false;
} else if (((_global.oPerso.persoYSpeed >= 3) && (!_global.oPerso.persoIsAttacking)) && (!_global.oPerso.persoIsSuperAttacking)) {
_global.oGame.persoAnim("fall");
_global.oPerso.persoIsRunning = false;
}
if (_global.oPerso.persoIsRunning || (_global.oPerso.movingBlock != -1)) {
_global.oPerso.perso._x = _global.oPerso.perso._x + (_global.oPerso.persoXSpeed + _global.oGame.mover[_global.oPerso.movingBlock].xspeed);
}
if (_global.oPerso.persoYSpeed <= _global.oPerso.persoMaxYSpeed) {
_global.oPerso.persoYSpeed = _global.oPerso.persoYSpeed + _global.oPerso.persoJumpDecel;
}
_global.oPerso.perso._y = _global.oPerso.perso._y + _global.oPerso.persoYSpeed;
if (_global.oPerso.perso.persoBody.hitTest(transitR) && (_global.oGame.inTransit == 0)) {
if (!_global.oPerso.persoIsDying) {
_global.oGame.transitTo(true, 1, "right");
}
} else if (_global.oPerso.perso.persoBody.hitTest(transitL) && (_global.oGame.inTransit == 0)) {
if (!_global.oPerso.persoIsDying) {
_global.oGame.transitTo(true, -1, "left");
}
} else if ((_global.oPerso.perso.hitTest(transitU) && (_global.oGame.inTransit == 0)) && (_global.oGame.currentBG == 1)) {
if (((!_global.oPerso.persoIsDying) && (!_global.oPerso.persoIsJumping)) && (!_global.oPerso.persoIsFalling)) {
_global.oGame.transitTo(false, -1, "up");
}
} else if ((_global.oPerso.perso.persoBody.hitTest(transitD) && (_global.oGame.inTransit == 0)) && ((_global.oGame.currentBG == 3) || (_global.oGame.currentBG == 6))) {
if (!_global.oPerso.persoIsDying) {
_global.oGame.transitTo(false, 1, "down");
}
}
if (_global.oGame.inTransit != 0) {
if (_global.oGame.transitDirectionHorizontal) {
_global.oGame.transitXSpeed = (_global.oGame.moveZone._x - _global.oGame.transitNewX) / _global.oGame.transitAccel;
_global.oGame.moveZone._x = _global.oGame.moveZone._x - _global.oGame.transitXSpeed;
} else {
_global.oGame.transitYSpeed = (_global.oGame.moveZone._y - _global.oGame.transitNewY) / _global.oGame.transitAccel;
_global.oGame.moveZone._y = _global.oGame.moveZone._y - _global.oGame.transitYSpeed;
}
if (_global.oGame.transitDirectionHorizontal) {
if ((_global.oGame.moveZone._x >= (_global.oGame.transitNewX - 2)) && (_global.oGame.moveZone._x <= (_global.oGame.transitNewX + 2))) {
_global.oGame.moveZone._x = _global.oGame.transitNewX;
_global.oGame.inTransit = 0;
eval ("_global.oGame.moveZone.BG_" + _global.oGame.BGLast).removeMovieClip();
}
} else if ((_global.oGame.moveZone._y >= (_global.oGame.transitNewY - 2)) && (_global.oGame.moveZone._y <= (_global.oGame.transitNewY + 2))) {
_global.oGame.moveZone._y = _global.oGame.transitNewY;
_global.oGame.inTransit = 0;
eval ("_global.oGame.moveZone.BG_" + _global.oGame.BGLast).removeMovieClip();
if (_global.oGame.CurrentBG == 3) {
trace("i'm learnding");
_global.oGame.moveZone.BG_5.doAction();
}
}
}
if (!_global.oPerso.persoIsJumping) {
if (_global.oPerso.persoIsFalling && (_global.oPerso.persoYSpeed > _global.oGame.accroche)) {
j = _global.oPerso.persoMaxYSpeed;
} else {
j = _global.oGame.accroche;
}
i = j;
while (i >= 0) {
if (eval (("_global.oGame.moveZone.BG_" + _global.oGame.CurrentBG) + ".hitZoneX").hitTest(_global.oPerso.perso._x + _global.oGame.moveZone._x, (_global.oPerso.perso._y + _global.oGame.moveZone._y) - i, true)) {
_global.oPerso.perso._y = _global.oPerso.perso._y - (i - 1);
if (_global.oPerso.persoIsFalling) {
if (_global.oPerso.persoYSpeed > 8) {
_global.oGame.persoAnim("land");
_global.oPerso.persoIsRunning = false;
}
_global.oPerso.persoIsAttacking = false;
_global.oPerso.persoIsFalling = false;
_global.oPerso.persoIsDucking = false;
_global.oPerso.persoIsSuperAttacking = false;
_global.oPerso.persoIsBouncing = false;
_global.oPerso.persoXSpeed = Math.floor(_global.oPerso.persoXSpeed / 2);
}
_global.oPerso.persoYSpeed = 0;
break;
}
if (_global.oPerso.perso.hitTest(_global.oGame.deathZone) && (!_global.oPerso.persoIsDying)) {
death();
}
i--;
}
}
k = 1;
if (eval (("_global.oGame.moveZone.BG_" + _global.oGame.CurrentBG) + ".hitZoneY").hitTest(_global.oPerso.perso._x + _global.oGame.moveZone._x, _global.oPerso.perso._y + _global.oGame.moveZone._y, true)) {
while (eval (("_global.oGame.moveZone.BG_" + _global.oGame.CurrentBG) + ".hitZoneY").hitTest((_global.oPerso.perso._x + _global.oGame.moveZone._x) + k, _global.oPerso.perso._y + _global.oGame.moveZone._y, true)) {
k = -k;
if (k < 0) {
k--;
}
}
_global.oPerso.perso._x = _global.oPerso.perso._x + k;
}
if ((!_global.oPerso.persoIsDying) && (!_global.oPerso.persoIsInPain)) {
if (((((_global.KeyListener.zPress && (_global.oPerso.persoDino >= 1)) && (!_global.oPerso.persoIsJumping)) && (!_global.oPerso.persoIsFalling)) && (!_global.oPerso.persoIsAttacking)) && (!_global.oPerso.persoIsSuperAttacking)) {
_global.oGame.PauseGame2();
_global.oPerso.persoDino--;
_global.oGame.displayDino();
} else {
if ((!_global.KeyListener.xPress) && (_global.oPerso.persoIsSuperAttacking)) {
_global.oGame.persoAnim("idle");
_global.oPerso.persoIsRunning = false;
}
if ((((_global.KeyListener.xPress && (!_global.oPerso.persoIsJumping)) && (!_global.oPerso.persoIsFalling)) && (!_global.oPerso.persoIsAttacking)) && (!_global.oPerso.persoIsSuperAttacking)) {
if (_global.oPerso.persoPower >= _global.oPerso.powerShot) {
_global.oGame.persoAnim("power");
_global.oPerso.persoIsRunning = false;
_global.oPerso.persoXSpeed = 0;
} else {
_global.oGame.persoAnim("idle");
_global.oPerso.persoXSpeed = 0;
_global.oPerso.persoIsRunning = false;
}
} else if (((_global.KeyListener.spacePress && (!_global.oPerso.persoIsTeleporting)) && (!_global.KeyListener.stillPressingKeyAtt)) && (!_global.oPerso.persoIsBusy)) {
if ((!_global.oPerso.persoIsJumping) && (!_global.oPerso.persoIsFalling)) {
if ((!_global.oPerso.PersoIsThrowing) && (!_global.oPerso.persoIsSuperAttacking)) {
_global.oGame.persoAnim("attack");
_global.oPerso.persoXSpeed = 0;
_global.oPerso.persoIsRunning = false;
_global.KeyListener.stillPressingKeyAtt = true;
}
} else {
_global.oGame.persoAnim("jumpAttack");
_global.oPerso.persoIsRunning = false;
_global.KeyListener.stillPressingKeyAtt = true;
}
} else if ((((((_global.KeyListener.downPress && (!_global.oPerso.persoIsTeleporting)) && (!_global.oPerso.persoIsJumping)) && (!_global.oPerso.persoIsFalling)) && (!_global.oPerso.persoIsAttacking)) && (!_global.oPerso.persoIsBusy)) && (!_global.oPerso.persoIsSuperAttacking)) {
_global.oPerso.persoIsAttacking = false;
_global.oPerso.persoIsDucking = true;
_global.oPerso.persoXSpeed = 0;
_global.oGame.persoAnim("dodge");
_global.oPerso.persoIsRunning = false;
} else if ((((((_global.KeyListener.rightPress && (!_global.KeyListener.leftPress)) && (!_global.oPerso.persoIsSuperAttacking)) && (!_global.oPerso.persoIsTeleporting)) && (!_global.oPerso.persoIsAttacking)) && (!_global.oPerso.persoIsBouncing)) && (!_global.oPerso.persoIsBusy)) {
if ((!_global.oPerso.persoIsJumping) && (!_global.oPerso.persoIsFalling)) {
_global.oPerso.persoIsAttacking = false;
_global.oGame.persoAnim("run");
_global.oPerso.persoIsRunning = true;
}
if (_global.oPerso.persoXSpeed < _global.oPerso.persoMaxXSpeed) {
if (_global.oPerso.persoXSpeed < 0) {
_global.oPerso.persoXSpeed = 0;
}
if (!_global.oPerso.persoIsJumping) {
_global.oPerso.persoXSpeed = _global.oPerso.persoXSpeed + _global.oPerso.persoXAccel;
} else {
global.oPerso.persoXSpeed = global.oPerso.persoXSpeed + (_global.oPerso.persoXAccel / 2);
}
if (_global.oPerso.persoXSpeed > _global.oPerso.persoMaxXSpeed) {
_global.oPerso.persoXSpeed = _global.oPerso.persoMaxXSpeed;
}
}
_global.oPerso.perso._xscale = Math.abs(_global.oPerso.perso._xscale);
} else if ((((((_global.KeyListener.leftPress && (!_global.KeyListener.rightPress)) && (!_global.oPerso.persoIsSuperAttacking)) && (!_global.oPerso.persoIsTeleporting)) && (!_global.oPerso.persoIsAttacking)) && (!_global.oPerso.persoIsBouncing)) && (!_global.oPerso.persoIsBusy)) {
if ((!_global.oPerso.persoIsJumping) && (!_global.oPerso.persoIsFalling)) {
_global.oPerso.persoIsAttacking = false;
_global.oGame.persoAnim("run");
_global.oPerso.persoIsRunning = true;
}
if (_global.oPerso.persoXSpeed > (-_global.oPerso.persoMaxXSpeed)) {
if (_global.oPerso.persoXSpeed > 0) {
_global.oPerso.persoXSpeed = 0;
}
_global.oPerso.persoXSpeed = _global.oPerso.persoXSpeed - _global.oPerso.persoXAccel;
if (_global.oPerso.persoXSpeed < (-_global.oPerso.persoMaxXSpeed)) {
_global.oPerso.persoXSpeed = -_global.oPerso.persoMaxXSpeed;
}
}
_global.oPerso.perso._xscale = -Math.abs(_global.oPerso.perso._xscale);
} else if ((!_global.oPerso.persoIsJumping) && (!_global.oPerso.persoIsFalling)) {
if (_global.oPerso.persoXSpeed < 0) {
_global.oPerso.persoXSpeed = _global.oPerso.persoXSpeed + _global.oPerso.persoXDecel;
if (_global.oPerso.persoXSpeed > 0) {
_global.oPerso.persoXSpeed = 0;
}
_global.oGame.persoAnim("run");
_global.oPerso.persoIsRunning = true;
} else if (_global.oPerso.persoXSpeed != 0) {
_global.oPerso.persoXSpeed = _global.oPerso.persoXSpeed - _global.oPerso.persoXDecel;
if (_global.oPerso.persoXSpeed < 0) {
_global.oPerso.persoXSpeed = 0;
}
_global.oGame.persoAnim("run");
_global.oGame.persoIsRunning = true;
} else {
_global.oGame.persoAnim("idle");
_global.oPerso.persoIsRunning = false;
}
}
if ((((((((_global.KeyListener.upPress && (!_global.oPerso.persoIsSuperAttacking)) && (!_global.oGame.mover[_global.oPerso.movingBlock].blocking)) && (!_global.KeyListener.stillPressingKeyUp)) && (!_global.oPerso.persoIsTeleporting)) && (!_global.oPerso.persoIsJumping)) && (!_global.oPerso.persoIsFalling)) && (!_global.oPerso.persoIsBusy)) && (!_global.oGame.inTransit)) {
_global.oGame.persoAnim("jump");
_global.oPerso.persoIsRunning = false;
_global.oPerso.persoYSpeed = -(_global.oPerso.persoJumpSpeed + (Math.abs(_global.oPerso.persoXSpeed) / 7));
_global.KeyListener.stillPressingKeyUp = true;
}
}
} else if (_global.KeyListener.stillPressingKeyAtt) {
_global.oPerso.persoIsAttacking = false;
}
}
if (_global.oGame.BackGroundAction == "waiting") {
ActionsLength = _global.oGame.BGActions.length;
var i = 0;
while (i < ActionsLength) {
if (_global.oGame.BGActions[i].hitTest(_global.oPerso.perso)) {
_global.oGame.BGActions[i].doAction();
}
i++;
}
}
LaserBlockLength = _global.oGame.laserBlock.length;
var i = 0;
while (i < LaserBlockLength) {
if (_global.oGame.laserSide[i] == "left") {
if (((_global.oPerso.perso._xscale < 0) && (_global.oGame.blueDef())) && (_global.oGame.laserBlock[i].hitTest(_global.oPerso.perso))) {
_global.oPerso.sparks.gotoAndPlay("go");
} else if ((_global.oGame.laserBlock[i].hitTest(_global.oPerso.perso.persoBody) || (_global.oGame.laserBlock[i].hitTest(_global.oPerso.perso.persoPower.persoBody))) && (!_global.oPerso.persoIsDying)) {
_global.oGame.damage(_global.oGame.laserDmg[i]);
_global.oGame.persoAnim("hit");
_global.oPerso.persoIsRunning = false;
_global.oPerso.persoXSpeed = 0;
_global.oPerso.persoIsInPain = true;
_global.oGame.StopSound("power_punch1");
_global.oGame.StopSound("power_scream");
_global.oGame.StopSound("power_scream");
if (_global.oGame.CurrentBG != 1) {
_global.oGame.PlaySound("electricite", 1);
} else {
_global.oGame.PlaySound("fire2", 1);
}
}
} else if (_global.oGame.laserSide[i] == "right") {
if (((_global.oPerso.perso._xscale > 0) && (_global.oGame.blueDef())) && (_global.oGame.laserBlock[i].hitTest(_global.oPerso.perso))) {
_global.oPerso.sparks.gotoAndPlay("go");
} else if (((_global.oGame.laserBlock[i].hitTest(_global.oPerso.perso.persoBody) || (_global.oGame.laserBlock[i].hitTest(_global.oPerso.perso.persoPower.persoBody))) && (!_global.oPerso.persoIsDying)) && (!_global.oPerso.persoIsInPain)) {
_global.oGame.damage(_global.oGame.laserDmg[i]);
if (_global.oGame.CurrentBG == 8) {
_root.BGHit8.boss.gotoAndPlay("attack");
}
_global.oGame.persoAnim("hit");
_global.oPerso.persoIsRunning = false;
_global.oPerso.persoXSpeed = 0;
_global.oPerso.persoIsInPain = true;
_global.oGame.StopSound("power_punch1");
_global.oGame.StopSound("power_scream");
_global.oGame.StopSound("power_scream");
if (_global.oGame.CurrentBG != 1) {
_global.oGame.PlaySound("electricite", 1);
} else {
_global.oGame.PlaySound("fire2", 1);
}
}
}
i++;
}
SwitchLength = _global.oGame.switchList.length;
var i = 0;
while (i < SwitchLength) {
if (_global.oGame.stateOfSwitch(_global.oGame.switchList[i]) == "ON") {
if (_global.oGame.switchList[i].switchCondition()) {
_global.oGame.switchList[i].doAction();
}
}
i++;
}
WallLength = _global.oGame.wallList.length;
var i = 0;
while (i < WallLength) {
if (((_global.oGame.wallList[i].hitTest(_global.oPerso.perso.attackZone) && (_global.oPerso.IsYellow)) && (_global.oPerso.persoIsSuperAttacking)) && (_global.oGame.wallList[i].breakpoint > _global.oGame.wallList[i]._currentframe)) {
if (_global.oGame.wallList[i]._currrentframe <= _global.oGame.wallList[i].breakPoint) {
_global.oGame.wallList[i].gotoAndPlay(_global.oGame.wallList[i]._currentFrame + 1);
if (_global.oGame.wallList[i]._currentframe >= _global.oGame.wallList[i].breakpoint) {
_global.oGame.wallList[i].doAction();
}
}
}
i++;
}
PlateformeLength = _global.oGame.plateforme.length;
if (plateformeLength == 0) {
_global.oPerso.firstTouch = true;
}
var i = 0;
while (i < PlateformeLength) {
if (((_global.oGame.plateforme[i].hitTest(_global.oPerso.perso) && (!_global.oPerso.persoIsJumping)) && (!_global.oPerso.persoIsFalling)) && (_global.oPerso.firstTouch)) {
_global.oPerso.firstTouch = false;
_global.oGame.moveX = _global.oGame.plateforme[i]._x;
_global.oGame.moveY = _global.oGame.plateforme[i]._y;
} else if (((_global.oGame.plateforme[i].hitTest(_global.oPerso.perso) && (!_global.oPerso.persoIsJumping)) && (!_global.oPerso.persoIsFalling)) && (!_global.oPerso.firstTouch)) {
_global.oPerso.perso._x = _global.oPerso.perso._x + (_global.oGame.plateforme[i]._x - _global.oGame.moveX);
_global.oPerso.perso._y = _global.oPerso.perso._y + (_global.oGame.plateforme[i]._y - _global.oGame.moveY);
_global.oGame.moveX = _global.oGame.plateforme[i]._x;
_global.oGame.moveY = _global.oGame.plateforme[i]._y;
} else if ((!_global.oPerso.firstTouch) && (((!_global.oGame.plateforme[i].hitTest(_global.oPerso.perso)) || (_global.oPerso.persoIsJumping)) || (_global.oPerso.persoIsFalling))) {
_global.oPerso.firstTouch = true;
}
i++;
}
CrusherLength = _global.oGame.headCrusher.length;
var i = 0;
while (i < CrusherLength) {
if ((((!_global.oPerso.persoIsInPain) && (!_global.oPerso.persoIsDying)) && (!_global.oPerso.persoIsJumping)) && (_global.oGame.headCrusher[i].hitTest(_global.oPerso.perso))) {
_global.oGame.damage(_global.oGame.BombDamage);
if (_global.oGame.BGCur == 8) {
_global.oGame.boss.gotoAndPlay("attack");
_root.BGHit8.boss.gotoAndPlay("attack");
}
_global.oGame.persoAnim("hit");
_global.oPerso.persoIsRunning = false;
_global.oPerso.persoXSpeed = 2;
_global.oPerso.persoIsInPain = true;
} else if ((_global.oPerso.persoIsJumping || (_global.oPerso.persoIsFalling)) && (_global.oGame.headCrusher[i].hitTest(_global.oPerso.perso))) {
if (_global.oPerso.persoYSpeed > 0) {
_global.oGame.persoYSpeed = 0;
} else {
_global.oGame.persoYSpeed = _global.oGame.persoYSpeed - 2;
}
}
i++;
}
BlockerLength = _global.oGame.leftblocker.length;
var i = 0;
while (i < BlockerLength) {
if (_global.oGame.leftBlocker[i].hitTest(_global.oPerso.perso)) {
_global.oGame.blocked = true;
if (_global.oPerso.persoXSpeed > 0) {
_global.oPerso.persoXSpeed = 0;
}
} else if (_global.oGame.blocked) {
_global.oGame.blocked = false;
} else if ((_global.oPerso.perso._xscale < 0) && (_global.oGame.rightBlocker[i].hitTest(_global.oPerso.perso))) {
if (_global.oPerso.persoXSpeed < 0) {
_global.oPerso.persoXSpeed = 0;
}
}
i++;
}
TapisLength = _global.oGame.mover.length;
if (!_global.oGame.freeze) {
var i = 0;
while (i < TapisLength) {
if ((((!_global.oGame.blocked) && (!_global.oPerso.persoIsJumping)) && (!_global.oPerso.persoIsFalling)) && (_global.oGame.mover[i].hitTest(_global.oPerso.perso))) {
_global.oPerso.perso._x = _global.oPerso.perso._x + _global.oGame.moverDirection[i];
}
i++;
}
}
BadGuyLength = _global.oGame.BadGuysHitZone.length;
var i = 0;
while (i < BadGuyLength) {
if (_global.oPerso.persoIsAttacking || (_global.oPerso.persoIsSuperAttacking)) {
if (_global.oPerso.perso.attackZone.hitTest(_global.oGame.BadGuysHitZone[i]) || (_global.oPerso.perso.powerAttackZone.hitTest(_global.oGame.BadGuysHitZone[i]))) {
if (_global.oPerso.persoIsAttacking) {
_global.oGame.setDamage(_global.oGame.BadGuysHitZone[i]._parent._name, 1);
}
if (_global.oPerso.persoIsSuperAttacking) {
if (_global.oPerso.IsYellow) {
_global.oGame.addScore(10);
_global.oGame.setDamage(_global.oGame.BadGuysHitZone[i]._parent._name, 0.25);
} else if (_global.oPerso.IsRed) {
_global.oGame.addScore(100);
_global.oGame.setDamage(_global.oGame.BadGuysHitZone[i]._parent._name, 3);
}
}
if (_global.oGame.BadGuysHitZone[i]._parent._name != "FreezeFinal") {
_global.oGame.BadGuysHitZone[i]._parent.gotoAndPlay("hit");
} else {
_global.oGame.BadGuysHitZone[i]._parent.gotoAndPlay("hit" + _global.oGame.BadGuysHitZone[i]._parent.VerPos);
}
}
} else if (_global.oPerso.perso.persoBody.hitTest(_global.oGame.BadGuysHitZone[i])) {
pt = new Object();
pt.x = _global.oGame.BadGuysHitZone[i]._x;
pt.y = _global.oGame.BadGuysHitZone[i]._y;
_global.oGame.BadGuysHitZone[i].localToGlobal(pt);
var temp = (pt.x - _global.ogame.movezone._x);
if (_global.oPerso.perso._x > temp) {
if (_global.oPerso.persoIsJumping || (_global.oPerso.persoIsFalling)) {
_global.oPerso.persoXSpeed = 0;
} else {
_global.oPerso.persoXSpeed = -5;
}
} else if (_global.oPerso.perso._x < temp) {
if (_global.oPerso.persoIsJumping || (_global.oPerso.persoIsFalling)) {
_global.oPerso.persoXSpeed = 0;
} else {
_global.oPerso.persoXSpeed = 5;
}
}
}
i++;
}
laserLength = _global.oGame.LaserHitZone.length;
var i = 0;
while (i < laserLength) {
if ((_global.oPerso.perso.persoBody.hitTest(_global.oGame.LaserHitZone[i]) || (_global.oPerso.perso.persoPower.persoBody.hitTest(_global.oGame.LaserHitZone[i]))) && (!_global.oPerso.persoIsInPain)) {
_global.oGame.damage(_global.oGame.laserDamage);
_global.oGame.persoAnim("hit");
_global.oPerso.persoIsRunning = false;
if (_global.oGame.CurrentBG == 8) {
_global.oGame.boss.gotoAndPlay("attack");
_root.BGHit8.boss.gotoAndPlay("attack");
}
_global.oPerso.persoXSpeed = 0;
_global.oPerso.persoIsInPain = true;
_global.oGame.StopSound("power_punch1");
_global.oGame.StopSound("power_scream");
_global.oGame.PlaySound("electricite", 1);
_global.oGame.LaserHitZone[i]._parent.haveTouch = true;
}
i++;
}
attackHitLength = _global.oGame.AttackHitZone.length;
var i = 0;
while (i < attackHitLength) {
if (((_global.oPerso.perso.persoBody.hitTest(_global.oGame.AttackHitZone[i]) || (_global.oPerso.perso.persoPower.persoBody.hitTest(_global.oGame.AttackHitZone[i]))) && (!_global.oPerso.persoIsInPain)) && (!(_global.oGame.blueDef() && (_global.oGame.faceOff(_global.oGame.AttackHitZone[i]))))) {
_global.oGame.damage(_global.oGame.BombDamage);
if (_global.oGame.CurrentBG == 8) {
_global.oGame.boss.gotoAndPlay("attack");
_root.BGHit8.boss.gotoAndPlay("attack");
}
_global.oGame.persoAnim("hit");
_global.oPerso.persoIsRunning = false;
if (_global.oPerso.perso._xscale > 0) {
_global.oPerso.persoXSpeed = -2;
} else {
_global.oPerso.persoXSpeed = 2;
}
_global.oPerso.persoIsInPain = true;
}
i++;
}
if (((_global.KeyListener.ctrlPress && (!_global.oPerso.persoIsSuperAttacking)) && (!_global.oPerso.persoIsInPain)) && (!_global.oPerso.persoIsDying)) {
if (_global.oPerso.IsYellow) {
_global.oPerso.IsYellow = false;
_global.oPerso.perso.yellow._visible = false;
_global.oPerso.IsBlue = true;
_global.oPerso.perso.blue._visible = true;
} else if (_global.oPerso.IsBlue) {
_global.oPerso.IsBlue = false;
_global.oPerso.perso.blue._visible = false;
_global.oPerso.IsRed = true;
_global.oPerso.perso.red._visible = true;
} else if (_global.oPerso.IsRed) {
_global.oPerso.IsRed = false;
_global.oPerso.perso.red._visible = false;
_global.oPerso.IsYellow = true;
_global.oPerso.perso.yellow._visible = true;
}
_global.KeyListener.ctrlPress = false;
_global.oPerso.perso.bubble.play();
} else {
_global.KeyListener.ctrlPress = false;
}
PowerLength = _global.oGame.powerUps.length;
i = 0;
while (i < PowerLength) {
if (_global.oPerso.perso.persoBody.hitTest(_global.oGame.powerUps[i]) || (_global.oPerso.perso.persoPower.persoBody.hitTest(_global.oGame.powerUps[i]))) {
switch (_global.oGame.powerType[i]) {
case "point" :
_global.oGame.AddScore(100);
_global.oGame.powerUps[i].gotoAndStop(2);
_global.oGame.powerType[i] = "gone";
break;
case "life" :
_global.oGame.AddScore(250);
_global.oGame.powerUps[i].gotoAndStop(2);
_global.oGame.powerType[i] = "gone";
_global.oPerso.persoLife++;
_global.oGame.displayLife();
break;
case "power" :
_global.oGame.AddScore(50);
_global.oGame.powerUps[i].gotoAndStop(2);
_global.oGame.powerType[i] = "gone";
if (!_global.oPerso.egg1) {
if ((_global.oPerso.persoPower + 25) >= _global.oPerso.persoFullPower) {
_global.oPerso.persoPower = _global.oPerso.persoFullPower;
} else {
_global.oPerso.persoPower = _global.oPerso.persoPower + 25;
}
if (_global.oPerso.persoPower != 0) {
_global.oGame.powerBar.gotoAndStop(Math.round((100 / _global.oPerso.persoFullPower) * (_global.oPerso.persoFullPower - _global.oPerso.persoPower)) + 1);
} else {
_global.oGame.powerBar.gotoAndStop(100);
}
}
break;
case "health" :
_global.oGame.AddScore(50);
_global.oGame.powerUps[i].gotoAndStop(2);
_global.oGame.powerType[i] = "gone";
if ((_global.oPerso.persoHealth + 5) >= _global.oPerso.persoFullHealth) {
_global.oPerso.persoHealth = _global.oPerso.persoFullHealth;
} else {
_global.oPerso.persoHealth = _global.oPerso.persoHealth + 5;
}
_global.oGame.lifeBar.gotoAndStop(Math.round((100 / _global.oPerso.persoFullHealth) * (_global.oPerso.persoFullHealth - _global.oPerso.persoHealth)) + 1);
break;
case "dino" :
_global.oGame.AddScore(250);
_global.oGame.powerUps[i].gotoAndStop(2);
_global.oGame.powerType[i] = "gone";
_global.oPerso.persoDino++;
_global.oGame.displayDino();
break;
case "gone" :
}
_global.oGame.PlaySound("icon_pickup", 1);
}
i++;
}
};
stop();
Frame 46
_root.iLevelPauseTimer.restartTimer();
Frame 76
stop();
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 18
_global.oGame.ChangeVolume("dino_thunder", 500);
_global.oGame.PlaySound("dino_thunder", 1);
Instance of Symbol 49 MovieClip in Symbol 79 MovieClip Frame 18
onClipEvent (load) {
if (_global.oPerso.IsRed) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 56 MovieClip in Symbol 79 MovieClip Frame 18
onClipEvent (load) {
if (_global.oPerso.IsYellow) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 63 MovieClip in Symbol 79 MovieClip Frame 18
onClipEvent (load) {
if (_global.oPerso.IsBlue) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 44 MovieClip in Symbol 79 MovieClip Frame 23
onClipEvent (load) {
if (_global.oPerso.IsRed) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 46 MovieClip in Symbol 79 MovieClip Frame 23
onClipEvent (load) {
if (_global.oPerso.IsRed) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 48 MovieClip in Symbol 79 MovieClip Frame 23
onClipEvent (load) {
if (_global.oPerso.IsRed) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 51 MovieClip in Symbol 79 MovieClip Frame 23
onClipEvent (load) {
if (_global.oPerso.IsYellow) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 53 MovieClip in Symbol 79 MovieClip Frame 23
onClipEvent (load) {
if (_global.oPerso.IsYellow) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 55 MovieClip in Symbol 79 MovieClip Frame 23
onClipEvent (load) {
if (_global.oPerso.IsYellow) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 58 MovieClip in Symbol 79 MovieClip Frame 23
onClipEvent (load) {
if (_global.oPerso.IsBlue) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 60 MovieClip in Symbol 79 MovieClip Frame 23
onClipEvent (load) {
if (_global.oPerso.IsBlue) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 62 MovieClip in Symbol 79 MovieClip Frame 23
onClipEvent (load) {
if (_global.oPerso.IsBlue) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 44 MovieClip in Symbol 79 MovieClip Frame 34
onClipEvent (load) {
if (_global.oPerso.IsYellow) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 46 MovieClip in Symbol 79 MovieClip Frame 34
onClipEvent (load) {
if (_global.oPerso.IsYellow) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 48 MovieClip in Symbol 79 MovieClip Frame 34
onClipEvent (load) {
if (_global.oPerso.IsYellow) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 44 MovieClip in Symbol 79 MovieClip Frame 34
onClipEvent (load) {
if (_global.oPerso.IsBlue) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 46 MovieClip in Symbol 79 MovieClip Frame 34
onClipEvent (load) {
if (_global.oPerso.IsBlue) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 48 MovieClip in Symbol 79 MovieClip Frame 34
onClipEvent (load) {
if (_global.oPerso.IsBlue) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 79 MovieClip Frame 39
_global.oGame.PauseGame2();
Symbol 86 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 34
stop();
Symbol 95 MovieClip Frame 1
_global.oGame.powerHealth(this);
stop();
Symbol 95 MovieClip Frame 2
stop();
Symbol 99 MovieClip Frame 1
_global.oGame.powerPower(this);
stop();
Symbol 99 MovieClip Frame 2
stop();
Symbol 102 MovieClip Frame 1
_global.oGame.powerPoint(this);
stop();
Symbol 102 MovieClip Frame 2
stop();
Symbol 116 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 2
stop();
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 8
stop();
Symbol 124 MovieClip Frame 18
stop();
Instance of Symbol 116 MovieClip "egg1" in Symbol 124 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_global.oPerso.perso)) {
this.gotoAndPlay(2);
_root.powerLifeBar.powerBar.gotoAndStop(101);
_global.oPerso.persoPower = _global.oPerso.persoFullPower;
_global.oPerso.egg1 = true;
_global.oGame.PlaySound("icon_pickup", 1);
}
}
Symbol 137 MovieClip Frame 1
this._visible = 0;
stop();
Symbol 138 MovieClip Frame 1
_global.oGame.displayLife();
_global.oGame.damage(0);
stop();
Instance of Symbol 135 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 135 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((!_global.oPerso.persoIsInPain) && (!_global.oPerso.persoIsDying)) && (this.hitTest(_global.oPerso.perso.persoBody))) && (!((_global.oPerso.perso._xscale > 0) && (_global.oGame.blueDef())))) {
_global.oGame.damage(15);
} else if (((_global.oPerso.perso._xscale > 0) && (_global.oGame.blueDef())) && (this.hitTest(_global.oPerso.perso))) {
_global.oPerso.sparks.gotoAndPlay("go");
_global.oGame.PlaySound("fire1", 1);
_global.oGame.ChangeVolume("fire1", 30);
}
}
Symbol 150 MovieClip Frame 1
var gave_point = false;
stop();
Symbol 150 MovieClip Frame 2
if (!gave_point) {
_global.oGame.addScore(150);
}
stop();
Symbol 150 MovieClip Frame 3
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 4
_global.oGame.PlaySound("box_hit_ground", 1);
Symbol 154 MovieClip Frame 7
_global.oGame.addScore(500);
stop();
Symbol 159 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 2
_global.oGame.addToPause(this);
Symbol 159 MovieClip Frame 27
_global.oGame.removeToPause(this);
stop();
Symbol 169 MovieClip Frame 1
_visible = false;
stop();
Symbol 170 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 2
if (_global.oGame.PauseAll.getPos(this) == null) {
_global.oGame.addToPause(this);
}
_global.oGame.PlaySound("plateforme_grince2", 1);
Instance of Symbol 169 MovieClip in Symbol 170 MovieClip Frame 22
onClipEvent (load) {
_global.oGame.addPlateforme(this);
}
onClipEvent (unload) {
_global.oGame.removePlateforme(this);
}
Symbol 170 MovieClip Frame 36
_global.oGame.PlaySound("plateforme_grince2", 1);
Symbol 170 MovieClip Frame 108
_global.oGame.PlaySound("plateforme_grince2", 1);
Symbol 170 MovieClip Frame 193
_global.oGame.PlaySound("plateforme_grince2", 1);
Instance of Symbol 169 MovieClip in Symbol 170 MovieClip Frame 196
onClipEvent (load) {
_global.oGame.addPlateforme(this);
}
onClipEvent (unload) {
_global.oGame.removePlateforme(this);
}
Symbol 170 MovieClip Frame 279
gotoAndPlay ("loop");
Symbol 183 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 2
stop();
Symbol 188 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 30
stop();
Instance of Symbol 183 MovieClip "egg2" in Symbol 188 MovieClip Frame 30
onClipEvent (enterFrame) {
if (_global.oPerso.persoIsAttacking && (this.hitTest(_global.oPerso.perso))) {
this.gotoAndPlay(2);
_global.oPerso.egg2 = true;
_global.oGame.addLife();
_root.powerLifeBar.gotoAndStop(2);
_global.oGame.PlaySound("icon_pickup", 1);
}
}
Symbol 191 MovieClip Frame 1
this._visible = false;
stop();
Symbol 191 MovieClip Frame 2
stop();
Symbol 197 MovieClip Frame 1
_visible = false;
stop();
Symbol 197 MovieClip Frame 2
_global.oGame.addToPause(this);
Symbol 197 MovieClip Frame 26
_global.oGame.removeToPause(this);
stop();
Symbol 197 MovieClip Frame 27
stop();
Symbol 197 MovieClip Frame 28
_global.oGame.addToPause(this);
Symbol 197 MovieClip Frame 305
_global.oGame.removeToPause(this);
gotoAndPlay ("loop");
Symbol 274 MovieClip Frame 1
if (_global.oGame.getDamage(this._name) >= 5) {
this.gotoAndStop("dead");
} else {
this.attLeft = true;
this.attRight = true;
this.haveTouch = false;
this.gotoAndPlay(Math.floor(Math.random() * 80) + 1);
}
_global.oGame.addToPause(this);
Instance of Symbol 137 MovieClip in Symbol 274 MovieClip Frame 1
onClipEvent (load) {
_global.oGame.AddBadGuysHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeBadGuysHitZone(this);
}
Instance of Symbol 137 MovieClip in Symbol 274 MovieClip Frame 1
onClipEvent (load) {
_parent.detectZone = this;
}
Instance of Symbol 137 MovieClip "backCheck" in Symbol 274 MovieClip Frame 1
onClipEvent (load) {
_parent.backCheck = this;
}
onClipEvent (enterFrame) {
if (_global.oPerso.perso.hitTest(_parent.backCheck)) {
_parent._xscale = _parent._xscale * -1;
}
}
Symbol 274 MovieClip Frame 5
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 274 MovieClip Frame 10
if (global.oPerso.perso.hitTest(backCheck)) {
this._xscale = this._xscale * -1;
}
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 274 MovieClip Frame 15
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 274 MovieClip Frame 20
if (global.oPerso.perso.hitTest(backCheck)) {
this._xscale = this._xscale * -1;
}
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 274 MovieClip Frame 25
if (global.oPerso.perso.hitTest(backCheck)) {
this._xscale = this._xscale * -1;
}
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 274 MovieClip Frame 30
if (global.oPerso.perso.hitTest(backCheck)) {
this._xscale = this._xscale * -1;
}
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 274 MovieClip Frame 35
if (global.oPerso.perso.hitTest(backCheck)) {
this._xscale = this._xscale * -1;
}
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 274 MovieClip Frame 40
if (global.oPerso.perso.hitTest(backCheck)) {
this._xscale = this._xscale * -1;
}
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 274 MovieClip Frame 45
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 274 MovieClip Frame 50
if (global.oPerso.perso.hitTest(backCheck)) {
this._xscale = this._xscale * -1;
}
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 274 MovieClip Frame 55
if (global.oPerso.perso.hitTest(backCheck)) {
this._xscale = this._xscale * -1;
}
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 274 MovieClip Frame 60
if (global.oPerso.perso.hitTest(backCheck)) {
this._xscale = this._xscale * -1;
}
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 274 MovieClip Frame 65
if (global.oPerso.perso.hitTest(backCheck)) {
this._xscale = this._xscale * -1;
}
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 274 MovieClip Frame 70
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 274 MovieClip Frame 75
if (global.oPerso.perso.hitTest(backCheck)) {
this._xscale = this._xscale * -1;
}
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 274 MovieClip Frame 80
if (global.oPerso.perso.hitTest(backCheck)) {
this._xscale = this._xscale * -1;
}
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
gotoAndPlay ("idle");
Symbol 274 MovieClip Frame 81
if (_global.oGame.getDamage(this._name) >= 5) {
_global.oGame.AddScore(100);
this.gotoAndPlay("death");
} else {
_global.oGame.addScore(25);
_global.oGame.playSound("hit1");
}
Symbol 274 MovieClip Frame 90
this.gotoAndPlay("idle");
Symbol 274 MovieClip Frame 190
gotoAndPlay ("hit");
Instance of Symbol 137 MovieClip in Symbol 274 MovieClip Frame 191
onClipEvent (load) {
_global.oGame.AddBadGuysHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeBadGuysHitZone(this);
}
Instance of Symbol 137 MovieClip in Symbol 274 MovieClip Frame 201
onClipEvent (load) {
name = "patate";
_global.oGame.AddAttackHitZone(this);
}
onClipEvent (unload) {
_global.oGame.RemoveAttackHitZone(this);
}
Symbol 274 MovieClip Frame 213
this.haveTouch = false;
this.gotoAndPlay("idle");
Instance of Symbol 137 MovieClip in Symbol 274 MovieClip Frame 220
onClipEvent (load) {
name = "patate";
_global.oGame.AddAttackHitZone(this);
}
onClipEvent (unload) {
_global.oGame.RemoveAttackHitZone(this);
}
Symbol 274 MovieClip Frame 236
this.haveTouch = false;
this.gotoAndPlay("idle");
Symbol 274 MovieClip Frame 249
_global.oGame.PlaySound("badguy_die", 1);
Symbol 274 MovieClip Frame 256
stop();
Symbol 275 MovieClip [BGHit_l1_1] Frame 1
var switch1On = false;
var switch2on = false;
var box1Moved = false;
stopAllSounds();
_global.oGame.PlaySound("planant", 999);
_global.oGame.ChangeVolume("planant", 30);
Instance of Symbol 138 MovieClip in Symbol 275 MovieClip [BGHit_l1_1] Frame 1
onClipEvent (load) {
_global.oGame.PlaySound("fire1", 999);
_global.oGame.ChangeVolume("fire1", 50);
}
onClipEvent (unload) {
_global.oGame.StopSound("fire1");
}
Instance of Symbol 150 MovieClip "switch1_1" in Symbol 275 MovieClip [BGHit_l1_1] Frame 1
onClipEvent (load) {
_global.oGame.addSwitch(this, "ON");
this.switchCondition = function () {
var _local1 = _global;
var _local2 = this;
if (_local2._currentframe == 1) {
if ((_local2.hitTest(_local1.oPerso.perso.attackZone) && (_local1.oPerso.persoIsAttacking)) && (!_local1.oPerso.persoIsJumping)) {
return(true);
}
return(false);
}
if (_local2._currentframe == 2) {
if ((_local2.hitTest(_local1.oPerso.perso.attackZone) && (_local1.oPerso.IsRed)) && (_local1.oPerso.persoIsSuperAttacking)) {
return(true);
}
return(false);
}
return(undefined);
};
this.doAction = function () {
var _local1 = this;
var _local2 = _parent;
var _local3 = _global;
if (_local1._currentframe == 1) {
_local1.gotoAndStop(2);
_local2.step1.play();
_local3.oGame.PlaySound("plateforme_grince", 1);
_local2.eggDoor.play();
_local2.hitZoneX.play();
} else if (_local1._currentframe == 2) {
_local1.gotoAndStop(3);
_local2.eggDoor.play();
_local3.oGame.PlaySound("power_punch2", 1);
_local3.oGame.switchNewState(_local1, "OFF");
}
};
}
Instance of Symbol 150 MovieClip "switch1_2" in Symbol 275 MovieClip [BGHit_l1_1] Frame 1
onClipEvent (load) {
_global.oGame.addSwitch(this, "ON");
this.switchCondition = function () {
if ((this.hitTest(_global.oPerso.perso.attackZone) && (!global.oPerso.persoIsSuperAttacking)) && (this._currentframe == 1)) {
return(true);
}
return(false);
};
this.doAction = function () {
var _local1 = this;
_parent.crochet1.play();
_parent.hitZoneX.play();
_local1.gotoAndStop(2);
_local1.switchNewState(_local1, "OFF");
};
}
Instance of Symbol 154 MovieClip "box1" in Symbol 275 MovieClip [BGHit_l1_1] Frame 1
onClipEvent (load) {
_global.oGame.addSwitch(this, "ON");
this.switchCondition = function () {
var _local1 = _global;
if (((this.hitTest(_local1.oPerso.perso.attackZone) && (_local1.oPerso.persoIsSuperAttacking)) && (_local1.oPerso.IsRed)) && (_local1.oPerso.perso._x > this._x)) {
return(true);
}
return(false);
};
this.doAction = function () {
this.gotoAndPlay(2);
_parent.hitZoneY.gotoAndPlay(2);
_parent.hitZoneX.play();
_global.oGame.PlaySound("power_punch2", 1);
_global.oGame.switchNewState(this, "OFF");
};
}
Instance of Symbol 170 MovieClip "crochet1" in Symbol 275 MovieClip [BGHit_l1_1] Frame 1
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 180 MovieClip in Symbol 275 MovieClip [BGHit_l1_1] Frame 1
onClipEvent (load) {
_global.oGame.AddLaserHitZone(this);
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
_global.oGame.RemoveLaserHitZone(this);
}
Instance of Symbol 188 MovieClip "eggbox" in Symbol 275 MovieClip [BGHit_l1_1] Frame 1
onClipEvent (load) {
_global.oGame.addSwitch(this, "ON");
this.switchCondition = function () {
var _local1 = _global;
if (((((this._currentframe == 1) && (this.hitTest(_local1.oPerso.perso.attackZone))) && (_local1.oPerso.IsYellow)) && (_local1.oPerso.persoIsSuperAttacking)) && (_local1.oPerso.perso._xscale > 0)) {
return(true);
}
return(false);
};
this.doAction = function () {
this.play();
_global.oGame.PlaySound("wall_break", 1);
_global.oGame.switchNewState(this, "OFF");
};
}
Instance of Symbol 197 MovieClip "hitZoneX" in Symbol 275 MovieClip [BGHit_l1_1] Frame 1
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 274 MovieClip "BadGuy1_1" in Symbol 275 MovieClip [BGHit_l1_1] Frame 1
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 274 MovieClip "BadGuy1_2" in Symbol 275 MovieClip [BGHit_l1_1] Frame 1
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Symbol 285 MovieClip Frame 1
_global.oGame.powerDino(this);
stop();
Symbol 285 MovieClip Frame 2
stop();
Symbol 297 MovieClip Frame 1
_global.oGame.powerLife(this);
stop();
Symbol 297 MovieClip Frame 2
stop();
Symbol 305 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 2
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 305 MovieClip Frame 3
stop();
Symbol 305 MovieClip Frame 4
stop();
Symbol 305 MovieClip Frame 5
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 305 MovieClip Frame 6
stop();
Symbol 305 MovieClip Frame 7
stop();
Symbol 305 MovieClip Frame 8
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 305 MovieClip Frame 9
stop();
Symbol 305 MovieClip Frame 10
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 305 MovieClip Frame 11
stop();
Symbol 305 MovieClip Frame 12
stop();
Symbol 305 MovieClip Frame 13
_global.oGame.addScore(350);
_global.oGame.StopSound("wall_crack");
_global.oGame.PlaySound("wall_broke", 1);
play();
Symbol 305 MovieClip Frame 20
_parent.hitZoneY.play();
stop();
Symbol 307 MovieClip Frame 1
_visible = false;
_global.oGame.deathZone = this;
Symbol 309 MovieClip Frame 1
stop();
Symbol 317 MovieClip Frame 1
stop();
Symbol 317 MovieClip Frame 19
stop();
Symbol 317 MovieClip Frame 28
_global.oGame.addScore(500);
_global.oGame.PlaySound("box_hit_ground2", 1);
stop();
Symbol 331 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 2
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 331 MovieClip Frame 3
stop();
Symbol 331 MovieClip Frame 4
stop();
Symbol 331 MovieClip Frame 5
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 331 MovieClip Frame 6
stop();
Symbol 331 MovieClip Frame 7
stop();
Symbol 331 MovieClip Frame 8
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 331 MovieClip Frame 9
stop();
Symbol 331 MovieClip Frame 10
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 331 MovieClip Frame 11
stop();
Symbol 331 MovieClip Frame 12
_global.oGame.addScore(350);
_global.oGame.StopSound("wall_crack");
_global.oGame.PlaySound("wall_broke");
Symbol 331 MovieClip Frame 19
stop();
Symbol 336 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 2
_global.oGame.PlaySound("box_slide", 1);
Symbol 336 MovieClip Frame 12
stop();
Symbol 375 MovieClip Frame 20
_global.oGame.PlaySound("fire1", 99);
_global.oGame.ChangeVolume("fire1", 100);
Instance of Symbol 137 MovieClip in Symbol 375 MovieClip Frame 20
onClipEvent (load) {
_global.oGame.addAttackHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeAttackHitZone(this);
}
Symbol 375 MovieClip Frame 62
_global.oGame.StopSound("fire1");
Symbol 378 MovieClip Frame 1
if (_global.oGame.getDamage(this._name) >= 5) {
this.gotoAndStop("dead");
} else {
this.attLeft = true;
this.attRight = true;
this.haveTouch = false;
this.gotoAndPlay(Math.floor(Math.random() * 80) + 1);
}
_global.oGame.addToPause(this);
Instance of Symbol 137 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
_global.oGame.AddBadGuysHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeBadGuysHitZone(this);
}
Instance of Symbol 137 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
_parent.detectZone = this;
}
Symbol 378 MovieClip Frame 5
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 378 MovieClip Frame 10
if (global.oPerso.perso.hitTest(backCheck)) {
this._xscale = this._xscale * -1;
}
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 378 MovieClip Frame 15
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 378 MovieClip Frame 20
if (global.oPerso.perso.hitTest(backCheck)) {
this._xscale = this._xscale * -1;
}
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 378 MovieClip Frame 25
if (global.oPerso.perso.hitTest(backCheck)) {
this._xscale = this._xscale * -1;
}
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 378 MovieClip Frame 30
if (global.oPerso.perso.hitTest(backCheck)) {
this._xscale = this._xscale * -1;
}
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 378 MovieClip Frame 35
if (global.oPerso.perso.hitTest(backCheck)) {
this._xscale = this._xscale * -1;
}
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 378 MovieClip Frame 40
if (global.oPerso.perso.hitTest(backCheck)) {
this._xscale = this._xscale * -1;
}
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 378 MovieClip Frame 45
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 378 MovieClip Frame 50
if (global.oPerso.perso.hitTest(backCheck)) {
this._xscale = this._xscale * -1;
}
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 378 MovieClip Frame 55
if (global.oPerso.perso.hitTest(backCheck)) {
this._xscale = this._xscale * -1;
}
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 378 MovieClip Frame 60
if (global.oPerso.perso.hitTest(backCheck)) {
this._xscale = this._xscale * -1;
}
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 378 MovieClip Frame 65
if (global.oPerso.perso.hitTest(backCheck)) {
this._xscale = this._xscale * -1;
}
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 378 MovieClip Frame 70
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 378 MovieClip Frame 75
if (global.oPerso.perso.hitTest(backCheck)) {
this._xscale = this._xscale * -1;
}
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
Symbol 378 MovieClip Frame 80
if (global.oPerso.perso.hitTest(backCheck)) {
this._xscale = this._xscale * -1;
}
if (_global.oPerso.perso.hitTest(detectZone) && (!_global.oPerso.persoIsInPain)) {
if (_global.oPerso.persoIsJumping) {
this.gotoAndPlay("attackUp");
} else if (_global.oPerso.persoIsDucking) {
this.gotoAndPlay("attackDown");
} else {
this.gotoAndPlay("attackUp");
}
}
gotoAndPlay ("idle");
Symbol 378 MovieClip Frame 81
if (_global.oGame.getDamage(this._name) >= 5) {
_global.oGame.AddScore(100);
this.gotoAndPlay("death");
} else {
_global.oGame.addScore(25);
_global.oGame.playSound("hit1");
}
Symbol 378 MovieClip Frame 90
this.gotoAndPlay("idle");
Symbol 378 MovieClip Frame 190
gotoAndPlay ("hit");
Instance of Symbol 137 MovieClip in Symbol 378 MovieClip Frame 191
onClipEvent (load) {
_global.oGame.AddBadGuysHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeBadGuysHitZone(this);
}
Instance of Symbol 137 MovieClip in Symbol 378 MovieClip Frame 201
onClipEvent (load) {
name = "patate";
_global.oGame.AddAttackHitZone(this);
}
onClipEvent (unload) {
_global.oGame.RemoveAttackHitZone(this);
}
Symbol 378 MovieClip Frame 213
this.haveTouch = false;
this.gotoAndPlay("idle");
Instance of Symbol 137 MovieClip in Symbol 378 MovieClip Frame 220
onClipEvent (load) {
name = "patate";
_global.oGame.AddAttackHitZone(this);
}
onClipEvent (unload) {
_global.oGame.RemoveAttackHitZone(this);
}
Symbol 378 MovieClip Frame 236
this.haveTouch = false;
this.gotoAndPlay("idle");
Symbol 378 MovieClip Frame 249
_global.oGame.PlaySound("badguy_die", 1);
Symbol 378 MovieClip Frame 256
stop();
Symbol 384 MovieClip Frame 1
_visible = false;
stop();
Symbol 384 MovieClip Frame 2
stop();
Symbol 384 MovieClip Frame 3
stop();
Symbol 384 MovieClip Frame 4
stop();
Symbol 384 MovieClip Frame 5
stop();
Symbol 389 MovieClip Frame 1
_visible = false;
stop();
Symbol 389 MovieClip Frame 2
stop();
Symbol 389 MovieClip Frame 3
stop();
Symbol 389 MovieClip Frame 4
stop();
Instance of Symbol 305 MovieClip "switch3_4" in Symbol 390 MovieClip [BGHit_l1_3] Frame 1
onClipEvent (load) {
if (_global.oGame.stateOfSwitch(this) == "OFF") {
this.gotoAndStop("broke");
} else {
_global.oGame.addWall(this, 13);
_global.oGame.addSwitch(this, "ON");
}
this.doAction = function () {
this.gotoAndPlay("break");
_global.oGame.switchNewState(this, "OFF");
};
this.breakpoint = 13;
}
Instance of Symbol 317 MovieClip "switch3_3" in Symbol 390 MovieClip [BGHit_l1_3] Frame 1
onClipEvent (load) {
if (!_global.oGame.switchInList(this)) {
_global.oGame.addSwitch(this, "ON");
} else if (_global.oGame.stateOfSwitch(this) == "OFF") {
this.gotoAndStop("down");
}
this.switchCondition = function () {
var _local1 = _global;
if ((((this.hitTest(_local1.oPerso.perso.attackZone) && (_local1.oPerso.persoIsSuperAttacking)) && (_local1.oPerso.IsRed)) && (_local1.oPerso.perso._x > this._x)) && (_local1.oGame.stateOfSwitch(_parent.switch3_1) == "OFF")) {
return(true);
}
return(false);
};
this.doAction = function () {
var _local1 = _parent;
var _local2 = _global;
this.play();
if (_local2.oGame.doorOpen == true) {
_local1.hitZoneY.gotoAndStop(4);
_local1.hitZoneX.gotoAndStop(4);
} else {
_local1.hitZoneY.play();
_local1.hitZoneX.play();
}
_local2.oGame.switchNewState(this, "OFF");
_local2.oGame.PlaySound("power_punch2", 1);
};
}
Instance of Symbol 331 MovieClip "switch3_2" in Symbol 390 MovieClip [BGHit_l1_3] Frame 1
onClipEvent (load) {
if (_global.oGame.stateOfSwitch(this) == "OFF") {
this.gotoAndStop("broke");
} else {
_global.oGame.addWall(this, 12);
_global.oGame.addSwitch(this, "ON");
}
this.doAction = function () {
this.gotoAndPlay("break");
_global.oGame.switchNewState(this, "OFF");
_parent.hitZoneY.play();
_global.oGame.level1.bg3[2] = 400;
};
this.breakpoint = 12;
}
Instance of Symbol 150 MovieClip "switch3_1" in Symbol 390 MovieClip [BGHit_l1_3] Frame 1
onClipEvent (load) {
if (!_global.oGame.switchInList(this)) {
_global.oGame.addSwitch(this, "ON");
} else if (_global.oGame.stateOfSwitch(this) == "OFF") {
this.gotoAndStop(2);
}
this.switchCondition = function () {
var _local1 = _global;
if ((((this.hitTest(_local1.oPerso.perso.attackZone) && (_local1.oPerso.persoIsAttacking)) && (!_local1.oPerso.persoIsJumping)) && (this._currentframe == 1)) && (_local1.oGame.stateOfSwitch(_parent.switch3_2) == "OFF")) {
return(true);
}
return(false);
};
this.doAction = function () {
var _local1 = _parent;
_global.oGame.switchNewState(this, "OFF");
this.gotoAndStop(2);
_local1.switch3_3.play();
_local1.hitZoneY.play();
_local1.hitZoneX.play();
_global.oGame.PlaySound("plateforme_grince", 1);
};
}
Instance of Symbol 336 MovieClip "porte3_1" in Symbol 390 MovieClip [BGHit_l1_3] Frame 1
onClipEvent (load) {
if (_global.oGame.stateOfSwitch2("switch4_3") == "OFF") {
gotoAndStop ("open");
}
}
Instance of Symbol 375 MovieClip in Symbol 390 MovieClip [BGHit_l1_3] Frame 1
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.StopSound("fire1");
_global.oGame.removeToPause(this);
}
Instance of Symbol 378 MovieClip "BadGuy3_2" in Symbol 390 MovieClip [BGHit_l1_3] Frame 1
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 378 MovieClip "BadGuy3_1" in Symbol 390 MovieClip [BGHit_l1_3] Frame 1
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 389 MovieClip "hitZoneX" in Symbol 390 MovieClip [BGHit_l1_3] Frame 1
onClipEvent (load) {
if ((_global.oGame.stateOfSwitch2("switch4_3") == "OFF") && (_global.oGame.stateOfSwitch(_parent.switch3_3) == "OFF")) {
this.gotoAndStop(4);
_parent.hitZoneY.gotoAndStop(4);
} else if (_global.oGame.stateOfSwitch(_parent.switch3_3) == "OFF") {
this.gotoAndStop(3);
_parent.hitZoneY.gotoAndStop(4);
} else if (_global.oGame.stateOfSwitch(_parent.switch3_1) == "OFF") {
this.gotoAndStop(2);
_parent.hitZoneY.gotoAndStop(3);
_parent.switch3_3.gotoAndStop("right");
} else if (_global.oGame.stateOfSwitch(_parent.switch3_2) == "OFF") {
_parent.hitZoneY.gotoAndStop(2);
}
}
Symbol 393 MovieClip Frame 10
if (_global.oGame.stateOfSwitch(_parent.switch2_2) != "OFF") {
gotoAndPlay ("fireOn");
}
Symbol 393 MovieClip Frame 23
_global.oGame.removeToPause(this);
stop();
Symbol 394 MovieClip Frame 51
stop();
Symbol 394 MovieClip Frame 74
stop();
Symbol 407 MovieClip Frame 1
stop();
Instance of Symbol 399 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Symbol 411 MovieClip Frame 1
stop();
Symbol 411 MovieClip Frame 2
_global.oGame.addScore(150);
stop();
Symbol 411 MovieClip Frame 3
stop();
Symbol 414 MovieClip Frame 1
stop();
Symbol 414 MovieClip Frame 2
stop();
Symbol 414 MovieClip Frame 3
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 414 MovieClip Frame 4
stop();
Symbol 414 MovieClip Frame 5
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 414 MovieClip Frame 6
stop();
Symbol 414 MovieClip Frame 7
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 414 MovieClip Frame 8
stop();
Symbol 414 MovieClip Frame 9
stop();
Symbol 414 MovieClip Frame 10
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 414 MovieClip Frame 11
stop();
Symbol 414 MovieClip Frame 12
stop();
Symbol 414 MovieClip Frame 13
_global.oGame.addScore(350);
_global.oGame.StopSound("wall_crack");
_global.oGame.PlaySound("wall_broke", 1);
Symbol 414 MovieClip Frame 21
stop();
Symbol 418 MovieClip Frame 1
_visible = false;
stop();
Symbol 420 MovieClip Frame 1
_visible = false;
Instance of Symbol 164 MovieClip in Symbol 420 MovieClip Frame 11
onClipEvent (load) {
firstTouch = true;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_global.oPerso.perso) && (!_global.oPerso.persoIsJumping)) && (firstTouch)) {
firstTouch = false;
moveY = this._y;
} else if ((this.hitTest(_global.oPerso.perso) && (!_global.oPerso.persoIsJumping)) && (!firstTouch)) {
_global.oPerso.perso._y = _global.oPerso.perso._y + (this._y - moveY);
moveY = this._y;
} else if ((!firstTouch) && ((!this.hitTest(_global.oPerso.perso)) || (_global.oPerso.persoIsJumping))) {
firstTouch = true;
}
}
Symbol 420 MovieClip Frame 50
stop();
Symbol 420 MovieClip Frame 80
stop();
Instance of Symbol 393 MovieClip "feu999" in Symbol 421 MovieClip [BGHit_l1_2] Frame 1
onClipEvent (load) {
if (_global.oGame.stateOfSwitch(_parent.switch2_2) == "OFF") {
this.gotoAndStop("Off");
} else {
_global.oGame.PlaySound("fire2", 999);
_global.oGame.ChangeVolume("fire2", 250);
}
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 394 MovieClip "grue2" in Symbol 421 MovieClip [BGHit_l1_2] Frame 1
onClipEvent (load) {
if (_global.oGame.switchInList(_parent.switch2_1) && (_global.oGame.stateOfSwitch(_parent.switch2_1) == "OFF")) {
this.gotoAndStop("final");
}
}
Instance of Symbol 407 MovieClip "elec2" in Symbol 421 MovieClip [BGHit_l1_2] Frame 1
onClipEvent (load) {
if (_global.oGame.stateOfSwitch(_parent.switch2_3) == "OFF") {
gotoAndStop ("Off");
}
}
Instance of Symbol 411 MovieClip "switch2_1" in Symbol 421 MovieClip [BGHit_l1_2] Frame 1
onClipEvent (load) {
if (!_global.oGame.switchInList(this)) {
_global.oGame.addSwitch(this, "ON");
} else if (_global.oGame.stateOfSwitch(this) == "OFF") {
this.gotoAndStop(2);
}
this.switchCondition = function () {
var _local1 = _global;
if (((this.hitTest(_local1.oPerso.perso.attackZone) && (_local1.oPerso.persoIsAttacking)) && (!_local1.oPerso.persoIsJumping)) && (this._currentframe == 1)) {
return(true);
}
return(false);
};
this.doAction = function () {
_global.oGame.switchNewState(this, "OFF");
this.gotoAndStop(2);
_global.oGame.PlaySound("plateforme_grince2", 1);
_parent.grue2.play();
_parent.hitZoneX.play();
};
}
Instance of Symbol 407 MovieClip "elec1" in Symbol 421 MovieClip [BGHit_l1_2] Frame 1
onClipEvent (load) {
if (_global.oGame.stateOfSwitch(_parent.switch2_3) == "OFF") {
gotoAndStop ("Off");
}
}
Instance of Symbol 137 MovieClip "fireZone1" in Symbol 421 MovieClip [BGHit_l1_2] Frame 1
onClipEvent (load) {
if (_global.oGame.stateOfSwitch(_parent.switch2_2) != "OFF") {
_global.oGame.addAttackHitZone(this);
}
}
Instance of Symbol 150 MovieClip "switch2_3" in Symbol 421 MovieClip [BGHit_l1_2] Frame 1
onClipEvent (load) {
if (!_global.oGame.switchInList(this)) {
_global.oGame.addSwitch(this, "ON");
} else if (_global.oGame.stateOfSwitch(this) == "OFF") {
this.gotoAndStop(2);
}
this.switchCondition = function () {
var _local1 = _global;
if (((this.hitTest(_local1.oPerso.perso.attackZone) && (_local1.oPerso.persoIsAttacking)) && (!_local1.oPerso.persoIsJumping)) && (this._currentframe == 1)) {
return(true);
}
return(false);
};
this.doAction = function () {
var _local1 = _parent;
var _local2 = _global;
_local2.oGame.switchNewState(this, "OFF");
this.gotoAndStop(2);
_local2.oGame.RemoveLaserHitZone(_local1.ElecHit1);
_local1.ElecHit1._x = 4000;
_local1.ElecHit2._x = 4000;
_local2.oGame.RemoveLaserHitZone(_local1.ElecHit2);
_local1.elec1.gotoAndStop("Off");
_local1.elec2.gotoAndStop("Off");
_local2.oGame.PlaySound("power_off", 1);
};
}
Instance of Symbol 150 MovieClip "switch2_2" in Symbol 421 MovieClip [BGHit_l1_2] Frame 1
onClipEvent (load) {
if (!_global.oGame.switchInList(this)) {
_global.oGame.addSwitch(this, "ON");
} else if (_global.oGame.stateOfSwitch(this) == "OFF") {
this.gotoAndStop(2);
}
this.switchCondition = function () {
var _local1 = _global;
if (((((_parent.wall1._currentframe == 21) && (this.hitTest(_local1.oPerso.perso.attackZone))) && (_local1.oPerso.persoIsAttacking)) && (!_local1.oPerso.persoIsJumping)) && (this._currentframe == 1)) {
return(true);
}
return(false);
};
this.doAction = function () {
var _local1 = _global;
_local1.oGame.switchNewState(this, "OFF");
this.gotoAndStop(2);
_parent.feu999.gotoAndPlay("fireOff");
_local1.oGame.removeAttackHitZone(_parent.fireZone1);
_local1.oGame.StopSound("fire2");
};
}
Instance of Symbol 414 MovieClip "wall1" in Symbol 421 MovieClip [BGHit_l1_2] Frame 1
onClipEvent (load) {
if (_global.oGame.stateOfSwitch(_parent.switch2_2) == "OFF") {
this.gotoAndStop("broke");
} else {
_global.oGame.addWall(this, 13);
}
this.doAction = function () {
};
this.breakpoint = 13;
}
Instance of Symbol 274 MovieClip "BadGuy2_1" in Symbol 421 MovieClip [BGHit_l1_2] Frame 1
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 274 MovieClip "BadGuy2_2" in Symbol 421 MovieClip [BGHit_l1_2] Frame 1
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 416 MovieClip "ElecHit1" in Symbol 421 MovieClip [BGHit_l1_2] Frame 1
onClipEvent (load) {
this._visible = false;
if (_global.oGame.stateOfSwitch(_parent.switch2_3) != "OFF") {
_global.oGame.AddLaserHitZone(this);
} else {
this._x = 4000;
this._y = 4000;
}
}
Instance of Symbol 416 MovieClip "ElecHit2" in Symbol 421 MovieClip [BGHit_l1_2] Frame 1
onClipEvent (load) {
this._visible = false;
if (_global.oGame.stateOfSwitch(_parent.switch2_3) != "OFF") {
_global.oGame.AddLaserHitZone(this);
} else {
this._x = 4000;
this._y = 4000;
}
}
Instance of Symbol 420 MovieClip "hitZoneX" in Symbol 421 MovieClip [BGHit_l1_2] Frame 1
onClipEvent (load) {
if (_global.oGame.switchInList(_parent.switch2_1) && (_global.oGame.stateOfSwitch(_parent.switch2_1) == "OFF")) {
this.gotoAndStop("final");
}
}
Instance of Symbol 137 MovieClip in Symbol 428 MovieClip Frame 10
onClipEvent (load) {
_global.oGame.addAttackHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeAttackHitZone(this);
}
Symbol 428 MovieClip Frame 16
_global.oGame.PlaySound("fire1", 99);
Symbol 428 MovieClip Frame 62
_global.oGame.StopSound("fire1");
Symbol 429 MovieClip Frame 1
_global.oGame.addToPause(this);
Symbol 429 MovieClip Frame 9
gotoAndPlay ("fireOn");
Symbol 429 MovieClip Frame 18
_global.oGame.removeToPause(this);
stop();
Symbol 430 MovieClip Frame 1
_global.oGame.PlaySound("fire2", 999);
stop();
Instance of Symbol 429 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 137 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) {
_global.oGame.addAttackHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeAttackHitZone(this);
}
Symbol 430 MovieClip Frame 6
_global.oGame.StopSound("fire2");
Symbol 430 MovieClip Frame 23
stop();
Symbol 443 MovieClip Frame 1
stop();
Symbol 443 MovieClip Frame 2
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 443 MovieClip Frame 3
stop();
Symbol 443 MovieClip Frame 4
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 443 MovieClip Frame 5
stop();
Symbol 443 MovieClip Frame 6
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 443 MovieClip Frame 7
stop();
Symbol 443 MovieClip Frame 8
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 443 MovieClip Frame 9
stop();
Symbol 443 MovieClip Frame 10
stop();
Symbol 443 MovieClip Frame 11
_global.oGame.addScore(350);
_global.oGame.StopSound("wall_crack");
_global.oGame.PlaySound("wall_broke", 1);
Symbol 443 MovieClip Frame 19
stop();
Symbol 447 MovieClip Frame 1
stop();
Instance of Symbol 446 MovieClip in Symbol 447 MovieClip Frame 1
onClipEvent (load) {
firstTouch = true;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_global.oPerso.perso) && (!_global.oPerso.persoIsJumping)) && (firstTouch)) {
firstTouch = false;
moveY = this._y;
} else if ((this.hitTest(_global.oPerso.perso) && (!_global.oPerso.persoIsJumping)) && (!firstTouch)) {
_global.oPerso.perso._y = _global.oPerso.perso._y + (this._Y - moveY);
moveY = this._y;
} else if ((!firstTouch) && ((!this.hitTest(_global.oPerso.perso)) || (_global.oPerso.persoIsJumping))) {
firstTouch = true;
}
}
Instance of Symbol 446 MovieClip in Symbol 447 MovieClip Frame 1
onClipEvent (load) {
firstTouch = true;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_global.oPerso.perso) && (!_global.oPerso.persoIsJumping)) && (firstTouch)) {
firstTouch = false;
moveY = this._y;
} else if ((this.hitTest(_global.oPerso.perso) && (!_global.oPerso.persoIsJumping)) && (!firstTouch)) {
_global.oPerso.perso._y = _global.oPerso.perso._y + (this._Y - moveY);
moveY = this._y;
} else if ((!firstTouch) && ((!this.hitTest(_global.oPerso.perso)) || (_global.oPerso.persoIsJumping))) {
firstTouch = true;
}
}
Symbol 447 MovieClip Frame 2
if (_global.oGame.PauseAll.getPos(this) == null) {
_global.oGame.addToPause(this);
}
Symbol 447 MovieClip Frame 3
_global.oGame.PlaySound("plateforme_grince2", 1);
Symbol 447 MovieClip Frame 126
_global.oGame.PlaySound("plateforme_grince2", 1);
Symbol 447 MovieClip Frame 243
gotoAndPlay ("loop");
Symbol 454 MovieClip Frame 1
this._visible = false;
stop();
Symbol 454 MovieClip Frame 2
_global.oGame.removeToPause(this);
stop();
Symbol 458 MovieClip Frame 1
_visible = false;
stop();
Symbol 458 MovieClip Frame 2
play();
if (_global.oGame.PauseAll.getPos(this) == null) {
_global.oGame.addToPause(this);
}
Instance of Symbol 169 MovieClip in Symbol 458 MovieClip Frame 2
onClipEvent (load) {
_global.oGame.addPlateforme(this);
}
onClipEvent (unload) {
_global.oGame.removePlateforme(this);
}
Instance of Symbol 169 MovieClip in Symbol 458 MovieClip Frame 2
onClipEvent (load) {
_global.oGame.addPlateforme(this);
}
onClipEvent (unload) {
_global.oGame.removePlateforme(this);
}
Symbol 458 MovieClip Frame 243
gotoAndPlay ("loop");
Symbol 458 MovieClip Frame 244
play();
Symbol 458 MovieClip Frame 485
gotoAndPlay ("loop2");
Instance of Symbol 428 MovieClip in Symbol 459 MovieClip [BGHit_l1_4] Frame 1
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 430 MovieClip "switch4_2" in Symbol 459 MovieClip [BGHit_l1_4] Frame 1
onClipEvent (load) {
if (!_global.oGame.switchInList(this)) {
_global.oGame.addSwitch(this, "ON");
} else if (_global.oGame.stateOfSwitch(this) == "OFF") {
this.gotoAndStop("stop");
_parent.hitZoneY.gotoAndStop(2);
}
this.switchCondition = function () {
var _local1 = _global;
if (((this.hitTest(_local1.oPerso.perso.attackZone) && (_local1.oPerso.persoIsSuperAttacking)) && (_local1.oPerso.IsRed)) && (_local1.oGame.stateOfSwitch(this) != "OFF")) {
return(true);
}
return(false);
};
this.doAction = function () {
var _local1 = _parent;
this.play();
_global.oGame.switchNewState(this, "OFF");
_local1.hitZoneY.gotoAndStop(2);
_local1.hitZoneX.gotoAndPlay(_local1.hitZoneX._currentframe + 242);
_global.oGame.PlaySound("power_punch2", 1);
};
}
onClipEvent (unload) {
_global.oGame.stopSound("fire2");
}
Instance of Symbol 150 MovieClip "switch4_1" in Symbol 459 MovieClip [BGHit_l1_4] Frame 1
onClipEvent (load) {
if (!_global.oGame.switchInList(this)) {
_global.oGame.addSwitch(this, "ON");
} else if (_global.oGame.stateOfSwitch(this) == "OFF") {
this.gotoAndStop(2);
}
this.switchCondition = function () {
var _local1 = _global;
if ((((this.hitTest(_local1.oPerso.perso.attackZone) && (_local1.oPerso.persoIsAttacking)) && (!_local1.oPerso.persoIsJumping)) && (this._currentframe == 1)) && (_local1.oGame.stateOfSwitch(_parent.switch4_4) == "OFF")) {
return(true);
}
return(false);
};
this.doAction = function () {
_global.oGame.switchNewState(this, "OFF");
this.gotoAndStop(2);
_parent.hitZoneX.gotoAndPlay("loop");
_parent.grue4_1.gotoAndPlay("loop");
};
}
Instance of Symbol 443 MovieClip "switch4_4" in Symbol 459 MovieClip [BGHit_l1_4] Frame 1
onClipEvent (load) {
if (!_global.oGame.switchInList(this)) {
_global.oGame.addSwitch(this, "ON");
_global.oGame.addWall(this, 11);
} else if (_global.oGame.stateOfSwitch(this) == "OFF") {
this.gotoAndStop("broke");
}
this.doAction = function () {
_global.oGame.switchNewState(this, "OFF");
};
this.breakpoint = 11;
}
Instance of Symbol 447 MovieClip "grue4_1" in Symbol 459 MovieClip [BGHit_l1_4] Frame 1
onClipEvent (load) {
if (_global.oGame.stateOfSwitch(_parent.switch4_2) == "OFF") {
_parent.hitZoneX.gotoAndPlay("loop2");
} else if (_global.oGame.stateOfSwitch(_parent.switch4_1) == "OFF") {
_parent.hitZoneX.gotoAndStop("loop");
}
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 150 MovieClip "switch4_3" in Symbol 459 MovieClip [BGHit_l1_4] Frame 1
onClipEvent (load) {
if (!_global.oGame.switchInList(this)) {
_global.oGame.addSwitch(this, "ON");
} else if (_global.oGame.stateOfSwitch(this) == "OFF") {
this.gotoAndStop(2);
}
this.switchCondition = function () {
var _local1 = _global;
if (((this.hitTest(_local1.oPerso.perso.attackZone) && (_local1.oPerso.persoIsAttacking)) && (!_local1.oPerso.persoIsJumping)) && (this._currentframe == 1)) {
return(true);
}
return(false);
};
this.doAction = function () {
var _local1 = _global;
_local1.oGame.switchNewState(this, "OFF");
_local1.oGame.doorOpen = true;
_local1.oGame.addScore(1000);
this.gotoAndStop(2);
_local1.oGame.PlaySound("box_slide1", 1);
_local1.oGame.ChangeVolume("box_slide1", 150);
};
}
Instance of Symbol 448 MovieClip in Symbol 459 MovieClip [BGHit_l1_4] Frame 1
onClipEvent (load) {
_global.oGame.addLaserBlock(this, "left", 30);
}
Instance of Symbol 448 MovieClip in Symbol 459 MovieClip [BGHit_l1_4] Frame 1
onClipEvent (load) {
_global.oGame.addLaserBlock(this, "left", 30);
}
Instance of Symbol 451 MovieClip in Symbol 459 MovieClip [BGHit_l1_4] Frame 1
onClipEvent (load) {
_global.oGame.addAttackHitZone(this);
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeAttackHitZone(this);
_global.oGame.removeToPause(this);
}
Instance of Symbol 274 MovieClip "BadGuy4_1" in Symbol 459 MovieClip [BGHit_l1_4] Frame 1
onClipEvent (load) {
if (_global.oGame.getDamage(this._name) >= 3) {
this.gotoAndStop("dead");
} else {
this.attLeft = true;
this.attRight = true;
this.haveTouch = false;
this._xscale = this._xscale * -1;
this.gotoAndPlay(Math.floor(Math.random() * 80) + 1);
}
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 458 MovieClip "hitZoneX" in Symbol 459 MovieClip [BGHit_l1_4] Frame 1
onClipEvent (load) {
hitZoneX = this;
if (_global.oGame.stateOfSwitch(_parent.switch4_2) == "OFF") {
_parent.grue4_1.gotoAndPlay("loop");
} else if (_global.oGame.stateOfSwitch(_parent.switch4_1) == "OFF") {
_parent.grue4_1.gotoAndPlay("loop");
}
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Symbol 462 MovieClip Frame 1
stop();
Symbol 462 MovieClip Frame 2
stop();
Symbol 462 MovieClip Frame 3
stop();
Symbol 480 MovieClip Frame 1
stop();
Symbol 480 MovieClip Frame 2
_global.oGame.StopSound("wall_crack", 1);
stop();
Symbol 480 MovieClip Frame 3
stop();
Symbol 480 MovieClip Frame 4
_global.oGame.StopSound("wall_crack", 1);
stop();
Symbol 480 MovieClip Frame 5
stop();
Symbol 480 MovieClip Frame 6
_global.oGame.StopSound("wall_crack", 1);
stop();
Symbol 480 MovieClip Frame 7
stop();
Symbol 480 MovieClip Frame 8
_global.oGame.StopSound("wall_crack", 1);
stop();
Symbol 480 MovieClip Frame 9
stop();
Symbol 480 MovieClip Frame 10
_global.oGame.addScore(350);
_global.oGame.StopSound("wall_crack", 1);
_global.oGame.PlaySound("wall_broke");
Symbol 480 MovieClip Frame 25
stop();
Symbol 484 MovieClip Frame 1
stop();
Symbol 484 MovieClip Frame 2
_global.oGame.addToPause(this);
Symbol 484 MovieClip Frame 59
_global.oGame.isMoving = false;
_global.oGame.removeToPause(this);
stop();
Symbol 484 MovieClip Frame 60
_global.oGame.addToPause(this);
Symbol 484 MovieClip Frame 150
_global.oGame.isMoving = false;
_global.oGame.removeToPause(this);
Symbol 487 MovieClip Frame 1
stop();
Instance of Symbol 137 MovieClip in Symbol 487 MovieClip Frame 1
onClipEvent (load) {
_global.oGame.addAttackHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeAttackHitZone(this);
}
Symbol 499 MovieClip Frame 1
_visible = false;
Symbol 500 MovieClip Frame 1
stop();
Symbol 500 MovieClip Frame 2
_global.oGame.PlaySound("tapis2", 999);
stop();
Instance of Symbol 496 MovieClip in Symbol 500 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_global.oPerso.perso) && (_global.oPerso.YSpeed == 0)) {
_global.oPerso.perso._x = _global.oPerso.perso._x + 2;
}
}
Instance of Symbol 499 MovieClip "hitZone5_1" in Symbol 500 MovieClip Frame 2
onClipEvent (load) {
_global.oGame.AddTapis(this, 1);
}
Symbol 506 MovieClip Frame 1
stop();
stop();
Instance of Symbol 169 MovieClip in Symbol 506 MovieClip Frame 1
onClipEvent (load) {
_global.oGame.addPlateforme(this);
}
onClipEvent (unload) {
_global.oGame.removePlateforme(this);
}
Symbol 506 MovieClip Frame 10
_global.oGame.PlaySound("metal_slide1", 1);
Symbol 506 MovieClip Frame 57
_global.oGame.PlaySound("metal_slide1", 1);
Symbol 506 MovieClip Frame 101
gotoAndPlay ("loop");
Symbol 516 MovieClip Frame 1
_visible = false;
_global.oGame.AddLeftBlocker(this);
stop();
Symbol 517 MovieClip Frame 1
_visible = false;
_global.oGame.AddRightBlocker(this);
stop();
Symbol 519 MovieClip Frame 1
_visible = false;
_global.oGame.addHeadCrusher(this);
stop();
Symbol 522 MovieClip Frame 1
stop();
Symbol 523 MovieClip Frame 17
_global.oGame.PlaySound("thud1", 1);
_global.oGame.ChangeVolume("thud1", 130);
Symbol 523 MovieClip Frame 50
_global.oGame.PlaySound("thud1", 1);
Symbol 524 MovieClip Frame 1
stop();
Symbol 524 MovieClip Frame 2
stop();
Instance of Symbol 523 MovieClip in Symbol 524 MovieClip Frame 2
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Symbol 525 MovieClip Frame 1
stop();
Symbol 525 MovieClip Frame 36
gotoAndPlay ("loop");
Symbol 542 MovieClip Frame 1
_visible = false;
stop();
Symbol 542 MovieClip Frame 2
stop();
Symbol 542 MovieClip Frame 3
stop();
Symbol 542 MovieClip Frame 4
stop();
Symbol 547 MovieClip Frame 1
stop();
Symbol 547 MovieClip Frame 2
_global.oGame.addToPause(this);
Symbol 547 MovieClip Frame 59
_global.oGame.isMovingX = false;
_global.oGame.removeToPause(this);
stop();
Symbol 547 MovieClip Frame 60
_global.oGame.addToPause(this);
Symbol 547 MovieClip Frame 150
_global.oGame.isMovingX = false;
_global.oGame.removeToPause(this);
Symbol 548 MovieClip Frame 1
stop();
Symbol 548 MovieClip Frame 101
gotoAndPlay ("loop");
Symbol 550 MovieClip Frame 1
_visible = false;
stop();
Instance of Symbol 547 MovieClip "plateforme5_1" in Symbol 550 MovieClip Frame 1
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 548 MovieClip "plateforme5_2" in Symbol 550 MovieClip Frame 1
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Symbol 550 MovieClip Frame 2
stop();
Symbol 552 MovieClip [BGHit_l1_5] Frame 1
_global.oGame.isMoving = false;
_global.oGame.isMovingX = false;
Instance of Symbol 462 MovieClip "switch5_1" in Symbol 552 MovieClip [BGHit_l1_5] Frame 1
onClipEvent (load) {
if (!_global.oGame.switchInList(this)) {
_global.oGame.addSwitch(this, "ON");
this.gotoAndStop(1);
}
this.switchCondition = function () {
var _local1 = _global;
if (((this.hitTest(_local1.oPerso.perso.attackZone) && (!_local1.oPerso.persoIsSuperAttacking)) && (!_local1.oGame.isMovingX)) && (!_local1.oGame.isMoving)) {
return(true);
}
return(false);
};
this.doAction = function () {
var _local1 = this;
if (_local1._currentframe == 1) {
_local1.gotoAndStop(2);
} else {
_local1.gotoAndStop(1);
}
_global.oGame.isMoving = true;
_global.oGame.isMovingX = true;
_parent.lift5_1.play();
_parent.hitZoneX.plateforme5_1.play();
};
}
Instance of Symbol 480 MovieClip "switch5_2" in Symbol 552 MovieClip [BGHit_l1_5] Frame 1
onClipEvent (load) {
if (!_global.oGame.switchInList(this)) {
_global.oGame.addSwitch(this, "ON");
_global.oGame.addWall(this, 10);
} else if (_global.oGame.stateOfSwitch(this) == "OFF") {
this.gotoAndStop("broke");
if (_global.oGame.crusher) {
_parent.hitZoneY.gotoAndStop(4);
} else {
_parent.hitZoneY.gotoAndStop(2);
}
}
this.doAction = function () {
var _local1 = _parent;
_global.oGame.switchNewState(this, "OFF");
_local1.hitZoneX.gotoAndStop(2);
if (_global.oGame.crusher) {
_local1.hitZoneY.gotoAndStop(4);
} else {
_local1.hitZoneY.gotoAndStop(2);
}
};
this.breakpoint = 10;
}
Instance of Symbol 484 MovieClip "lift5_1" in Symbol 552 MovieClip [BGHit_l1_5] Frame 1
onClipEvent (load) {
if (_global.oGame.stateOfSwitch(this) == -1) {
_global.oGame.addSwitch(this, "UP");
} else if (_global.oGame.stateOfSwitch(this) == "UP") {
this.gotoAndStop(1);
_parent.hitZoneX.plateforme5_1.gotoAndStop(1);
} else if (_global.oGame.stateOfSwitch(this) == "DOWN") {
this.gotoAndStop(59);
_parent.hitZoneX.plateforme5_1.gotoAndStop(59);
}
}
onClipEvent (unload) {
if (this._currentframe == 1) {
_global.oGame.switchNewState(this, "UP");
} else if (this._currentframe == 59) {
_global.oGame.switchNewState(this, "DOWN");
}
_global.oGame.removeToPause(this);
}
Instance of Symbol 462 MovieClip "switch5_3" in Symbol 552 MovieClip [BGHit_l1_5] Frame 1
onClipEvent (load) {
if (!_global.oGame.switchInList(this)) {
_global.oGame.addSwitch(this, "ON");
}
this.switchCondition = function () {
var _local1 = _global;
if (((this.hitTest(_local1.oPerso.perso.attackZone) && (!_local1.oPerso.persoIsSuperAttacking)) && (!_local1.oGame.isMoving)) && (!_local1.oGame.isMovingX)) {
return(true);
}
return(false);
};
this.doAction = function () {
var _local1 = this;
if (_local1._currentframe == 1) {
_local1.gotoAndStop(2);
} else {
_local1.gotoAndStop(1);
}
_global.oGame.isMoving = true;
_global.oGame.isMovingX = true;
_parent.lift5_1.play();
_parent.hitZoneX.plateforme5_1.play();
};
}
Instance of Symbol 500 MovieClip "tapis5_1" in Symbol 552 MovieClip [BGHit_l1_5] Frame 1
onClipEvent (unload) {
_global.oGame.stopSound("tapis2");
}
Instance of Symbol 506 MovieClip "lift5_2" in Symbol 552 MovieClip [BGHit_l1_5] Frame 1
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 525 MovieClip "laser5_1" in Symbol 552 MovieClip [BGHit_l1_5] Frame 1
onClipEvent (load) {
_global.oGame.addLaserBlock(this, "right", 1);
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 137 MovieClip "hitzone1" in Symbol 552 MovieClip [BGHit_l1_5] Frame 1
onClipEvent (load) {
_global.oGame.addBGAction(this);
this.doAction = function () {
var _local1 = _parent;
var _local2 = _global;
if (_local2.oGame.BackGroundAction == "waiting") {
_local2.oGame.BackGroundAction = "done";
_local2.oGame.removeBGAction(this);
_local1.hitZone3._x = -4000;
_local1.hitZone2._x = -4000;
_local1.laser5_1.play();
_local1.lift5_2.play();
_local1.fire5_1.play();
_local1.hitZoneX.plateforme5_2.play();
_local2.oPerso.persoYSpeed = 0;
if (_local2.oGame.crusher) {
_local1.crusher5_1.play();
_local1.scie5_1.play();
_local1.tapis5_1.play();
}
}
};
}
onClipEvent (unload) {
_global.oGame.BackGroundAction = "waiting";
_global.oGame.removeBGAction(this);
}
Instance of Symbol 137 MovieClip "hitzone3" in Symbol 552 MovieClip [BGHit_l1_5] Frame 1
onClipEvent (load) {
_global.oGame.addBGAction(this);
this.doAction = function () {
var _local1 = _parent;
var _local2 = _global;
if (_local2.oGame.BackGroundAction == "waiting") {
_local2.oGame.BackGroundAction = "done";
_local2.oGame.removeBGAction(this);
_local1.hitZone2._x = -4000;
_local1.hitZone1._x = -4000;
_local1.laser5_1.play();
_local1.lift5_2.play();
_local1.fire5_1.play();
_local1.hitZoneX.plateforme5_2.play();
_local2.oPerso.persoYSpeed = 0;
if (_local2.oGame.crusher) {
_local1.crusher5_1.play();
_local1.scie5_1.play();
_local1.tapis5_1.play();
}
}
};
}
onClipEvent (unload) {
_global.oGame.BackGroundAction = "waiting";
_global.oGame.removeBGAction(this);
}
Instance of Symbol 137 MovieClip "hitzone2" in Symbol 552 MovieClip [BGHit_l1_5] Frame 1
onClipEvent (load) {
_global.oGame.addBGAction(this);
this.doAction = function () {
var _local1 = _parent;
var _local2 = _global;
if (_local2.oGame.BackGroundAction == "waiting") {
_local2.oGame.BackGroundAction = "done";
_local2.oGame.removeBGAction(this);
_local1.hitZone3._x = -4000;
_local1.hitZone1._x = -4000;
_local1.laser5_1.play();
_local1.lift5_2.play();
_local1.fire5_1.play();
_local1.hitZoneX.plateforme5_2.play();
_local2.oPerso.persoYSpeed = 0;
if (_local2.oGame.crusher) {
_local1.crusher5_1.play();
_local1.scie5_1.play();
_local1.tapis5_1.play();
}
}
};
}
onClipEvent (unload) {
_global.oGame.BackGroundAction = "waiting";
_global.oGame.removeBGAction(this);
}
Instance of Symbol 274 MovieClip "BadGuy5_1" in Symbol 552 MovieClip [BGHit_l1_5] Frame 1
onClipEvent (load) {
if (_global.oGame.getDamage(this._name) >= 3) {
this.gotoAndStop("dead");
} else {
this.attLeft = true;
this.attRight = true;
this.haveTouch = false;
this._xscale = this._xscale * -1;
this.gotoAndPlay(Math.floor(Math.random() * 80) + 1);
}
}
Instance of Symbol 542 MovieClip "hitZoneY" in Symbol 552 MovieClip [BGHit_l1_5] Frame 1
onClipEvent (load) {
if (_global.oGame.crusher) {
if (_global.oGame.stateOfSwitch(switch5_2) == "OFF") {
this.gotoAndStop(4);
} else {
this.gotoAndStop(3);
}
}
}
Instance of Symbol 550 MovieClip "hitZoneX" in Symbol 552 MovieClip [BGHit_l1_5] Frame 1
onClipEvent (load) {
if (_global.oGame.stateOfSwitch(_parent.switch5_2) == "OFF") {
this.gotoAndStop(2);
}
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Symbol 561 MovieClip Frame 1
stop();
Symbol 561 MovieClip Frame 2
stop();
Symbol 565 MovieClip Frame 1
stop();
Instance of Symbol 399 MovieClip in Symbol 565 MovieClip Frame 1
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 137 MovieClip in Symbol 565 MovieClip Frame 1
onClipEvent (load) {
_global.oGame.addLaserHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeLaserHitZone(this);
}
Symbol 565 MovieClip Frame 2
stop();
Symbol 568 MovieClip Frame 1
stop();
Symbol 571 MovieClip Frame 1
stop();
Symbol 584 MovieClip Frame 1
stop();
Symbol 584 MovieClip Frame 2
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 584 MovieClip Frame 3
stop();
Symbol 584 MovieClip Frame 4
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 584 MovieClip Frame 5
stop();
Symbol 584 MovieClip Frame 6
stop();
Symbol 584 MovieClip Frame 7
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 584 MovieClip Frame 8
stop();
Symbol 584 MovieClip Frame 9
stop();
Symbol 584 MovieClip Frame 10
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 584 MovieClip Frame 11
stop();
Symbol 584 MovieClip Frame 12
_global.oGame.StopSound("wall_crack");
_global.oGame.PlaySound("wall_broke", 1);
_global.oGame.addScore(350);
Symbol 584 MovieClip Frame 19
stop();
Symbol 594 MovieClip Frame 1
stop();
Symbol 594 MovieClip Frame 2
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 594 MovieClip Frame 3
stop();
Symbol 594 MovieClip Frame 4
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 594 MovieClip Frame 5
stop();
Symbol 594 MovieClip Frame 6
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 594 MovieClip Frame 7
stop();
Symbol 594 MovieClip Frame 8
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 594 MovieClip Frame 9
stop();
Symbol 594 MovieClip Frame 10
_global.oGame.StopSound("wall_crack");
_global.oGame.PlaySound("wall_broke", 1);
_global.oGame.addScore(350);
Symbol 594 MovieClip Frame 25
stop();
Symbol 595 MovieClip Frame 1
stop();
Instance of Symbol 503 MovieClip in Symbol 595 MovieClip Frame 1
onClipEvent (load) {
firstTouch = true;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_global.oPerso.perso) && (!_global.oPerso.persoIsJumping)) && (firstTouch)) {
firstTouch = false;
moveY = this._y;
} else if ((this.hitTest(_global.oPerso.perso) && (!_global.oPerso.persoIsJumping)) && (!firstTouch)) {
_global.oPerso.perso._y = _global.oPerso.perso._y + (this._Y - moveY);
moveY = this._y;
} else if ((!firstTouch) && ((!this.hitTest(_global.oPerso.perso)) || (_global.oPerso.persoIsJumping))) {
firstTouch = true;
}
}
Symbol 595 MovieClip Frame 15
_global.oGame.PlaySound("plateforme_grince2", 1);
Symbol 595 MovieClip Frame 62
_global.oGame.PlaySound("plateforme_grince2", 1);
Symbol 595 MovieClip Frame 98
gotoAndPlay ("loop");
Symbol 596 MovieClip Frame 1
_global.oGame.boxA = "A";
_parent.hitZoneX.boxA.gotoAndStop("A");
_parent.hitZoneY.boxA.gotoAndStop("A");
stop();
Instance of Symbol 499 MovieClip in Symbol 596 MovieClip Frame 1
onClipEvent (load) {
this._visible = 0;
}
onClipEvent (enterFrame) {
if (_global.oGame.boxAAnim == "DEUX") {
_parent.gotoAndPlay("DEUX");
_global.oGame.boxAAnim == "0";
} else if (_global.oGame.boxAAnim == "DIX") {
_parent.gotoAndPlay("DIX");
_global.oGame.boxAAnim == "0";
} else if (_global.oGame.boxAAnim == "ONZE") {
_parent.gotoAndPlay("ONZE");
_global.oGame.boxAAnim == "0";
}
if (((((_global.oGame.boxA == "A") && (this.hitTest(_global.oPerso.perso.attackZone))) && (_global.oPerso.persoIsSuperAttacking)) && (_global.oPerso.IsRed)) && (_global.oPerso.perso._xscale > 0)) {
if (_global.oGame.boxB == "C") {
_parent.gotoAndPlay("HUIT");
_global.oGame.boxA = "B";
} else {
_parent.gotoAndPlay("NEUF");
_global.oGame.boxA = "C";
}
_global.oGame.PlaySound("power_punch2", 1);
_global.oGame.ChangeVolume("power_punch2", 200);
} else if (((((_global.oGame.boxA == "A") && (this.hitTest(_global.oPerso.perso.attackZone))) && (_global.oPerso.persoIsSuperAttacking)) && (_global.oPerso.IsRed)) && (_global.oPerso.perso._xscale < 0)) {
if (_parent._parent.blocA == "broke") {
_parent.gotoAndPlay("TREIZE");
_global.oGame.boxA = "F";
} else {
_parent.gotoAndPlay("DOUZE");
}
_global.oGame.PlaySound("power_punch2", 1);
_global.oGame.ChangeVolume("power_punch2", 200);
}
}
Symbol 596 MovieClip Frame 5
_global.oGame.boxA = "B";
_parent.hitZoneX.boxA.gotoAndStop("B");
_parent.hitZoneY.boxA.gotoAndStop("B");
stop();
Symbol 596 MovieClip Frame 9
_global.oGame.boxA = "C";
_parent.hitZoneX.boxA.gotoAndStop("C");
_parent.hitZoneY.boxA.gotoAndStop("C");
stop();
Symbol 596 MovieClip Frame 13
_global.oGame.boxA = "D";
_parent.hitZoneX.boxA.gotoAndStop("D");
_parent.hitZoneY.boxA.gotoAndStop("D");
stop();
Symbol 596 MovieClip Frame 17
_global.oGame.boxA = "E";
_parent.hitZoneX.boxA.gotoAndStop("E");
_parent.hitZoneY.boxA.gotoAndStop("E");
stop();
Symbol 596 MovieClip Frame 21
_global.oGame.boxA = "F";
_parent.hitZoneX.boxA.gotoAndStop("F");
_parent.hitZoneY.boxA.gotoAndStop("F");
stop();
Symbol 596 MovieClip Frame 25
_global.oGame.boxA = "G";
_parent.hitZoneX.boxA.gotoAndStop("G");
_parent.hitZoneY.boxA.gotoAndStop("G");
stop();
Symbol 596 MovieClip Frame 29
_global.oGame.boxA = "H";
_parent.hitZoneX.boxA.gotoAndStop("H");
_parent.hitZoneY.boxA.gotoAndStop("H");
stop();
Symbol 596 MovieClip Frame 39
_global.oGame.PlaySound("thud2", 1);
Symbol 596 MovieClip Frame 41
gotoAndStop ("D");
Symbol 596 MovieClip Frame 42
_global.oGame.PlaySound("power_punch2", 1);
Symbol 596 MovieClip Frame 47
_global.oGame.PlaySound("box_hit_ground", 1);
Symbol 596 MovieClip Frame 49
gotoAndStop ("B");
Symbol 596 MovieClip Frame 50
_global.oGame.PlaySound("power_punch2", 1);
Symbol 596 MovieClip Frame 56
_global.oGame.PlaySound("box_hit_ground", 1);
Symbol 596 MovieClip Frame 59
gotoAndStop ("C");
Symbol 596 MovieClip Frame 64
_global.oGame.PlaySound("thud2", 1);
Symbol 596 MovieClip Frame 67
gotoAndStop ("G");
Symbol 596 MovieClip Frame 73
_global.oGame.PlaySound("thud2", 1);
Symbol 596 MovieClip Frame 75
gotoAndStop ("H");
Symbol 596 MovieClip Frame 76
_global.oGame.PlaySound("power_punch2", 1);
Symbol 596 MovieClip Frame 89
_global.oGame.PlaySound("thud2", 1);
Symbol 596 MovieClip Frame 94
gotoAndStop ("E");
Symbol 596 MovieClip Frame 95
_global.oGame.PlaySound("power_punch2", 1);
Symbol 596 MovieClip Frame 105
_global.oGame.PlaySound("thud2", 1);
Symbol 596 MovieClip Frame 110
gotoAndStop ("F");
Symbol 596 MovieClip Frame 136
gotoAndStop ("Off");
Symbol 596 MovieClip Frame 162
gotoAndStop ("Off");
Symbol 596 MovieClip Frame 163
_global.oGame.boxA = "Off";
_parent.hitZoneX.boxA.gotoAndStop("Off");
_parent.hitZoneY.boxA.gotoAndStop("Off");
stop();
Symbol 597 MovieClip Frame 1
_global.oGame.boxB = "A";
_parent.hitZoneX.boxB.gotoAndStop("A");
_parent.hitZoneY.boxB.gotoAndStop("A");
stop();
Instance of Symbol 499 MovieClip in Symbol 597 MovieClip Frame 1
onClipEvent (load) {
this._visible = 0;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_global.oPerso.perso.attackZone) && (_global.oPerso.persoIsSuperAttacking)) && (_global.oPerso.IsRed)) && (_global.oPerso.perso._xscale > 0)) {
if (_global.oGame.boxA == "C") {
_parent.gotoAndPlay("TROIS");
} else if (_global.oGame.boxA == "H") {
_parent.gotoAndPlay("SEPT");
} else {
_parent.gotoAndPlay("DEUX");
}
_global.oGame.PlaySound("power_punch2", 1);
_global.oGame.ChangeVolume("power_punch2", 200);
}
}
Symbol 597 MovieClip Frame 5
_global.oGame.boxB = "B";
_parent.hitZoneX.boxB.gotoAndStop("B");
_parent.hitZoneY.boxB.gotoAndStop("B");
stop();
Symbol 597 MovieClip Frame 9
_global.oGame.boxB = "C";
_parent.hitZoneX.boxB.gotoAndStop("C");
_parent.hitZoneY.boxB.gotoAndStop("C");
stop();
Symbol 597 MovieClip Frame 13
_global.oGame.boxB = "D";
_parent.hitZoneX.boxB.gotoAndStop("D");
_parent.hitZoneY.boxB.gotoAndStop("D");
stop();
Symbol 597 MovieClip Frame 17
_global.oGame.PlaySound("power_punch2", 1);
Symbol 597 MovieClip Frame 28
_global.oGame.PlaySound("thud2", 1);
Symbol 597 MovieClip Frame 35
gotoAndStop ("C");
Symbol 597 MovieClip Frame 36
_global.oGame.PlaySound("power_punch2", 1);
Symbol 597 MovieClip Frame 48
_global.oGame.PlaySound("thud2", 1);
Symbol 597 MovieClip Frame 53
gotoAndPlay ("B");
Symbol 597 MovieClip Frame 60
_global.oGame.PlaySound("thud2", 1);
Symbol 597 MovieClip Frame 61
gotoAndStop ("C");
Symbol 597 MovieClip Frame 62
_global.oGame.PlaySound("thud2", 1);
Symbol 597 MovieClip Frame 69
gotoAndStop ("D");
Symbol 597 MovieClip Frame 70
_global.oGame.PlaySound("power_punch2", 1);
Symbol 597 MovieClip Frame 83
_global.oGame.PlaySound("thud2", 1);
Symbol 597 MovieClip Frame 88
gotoAndStop ("D");
Symbol 597 MovieClip Frame 113
gotoAndStop ("Off");
Symbol 597 MovieClip Frame 138
gotoAndStop ("Off");
Symbol 597 MovieClip Frame 139
_global.oGame.boxB = "Off";
_parent.hitZoneX.boxB.gotoAndStop("Off");
_parent.hitZoneY.boxB.gotoAndStop("Off");
stop();
Symbol 600 MovieClip Frame 1
stop();
Symbol 600 MovieClip Frame 5
stop();
Symbol 600 MovieClip Frame 9
stop();
Symbol 600 MovieClip Frame 17
stop();
Symbol 601 MovieClip Frame 1
stop();
Symbol 601 MovieClip Frame 5
stop();
Symbol 601 MovieClip Frame 9
stop();
Symbol 601 MovieClip Frame 13
stop();
Symbol 601 MovieClip Frame 17
stop();
Symbol 601 MovieClip Frame 21
stop();
Symbol 601 MovieClip Frame 25
stop();
Symbol 601 MovieClip Frame 29
stop();
Symbol 601 MovieClip Frame 33
stop();
Symbol 602 MovieClip Frame 1
stop();
Symbol 602 MovieClip Frame 2
stop();
Symbol 603 MovieClip Frame 1
_visible = false;
stop();
Symbol 605 MovieClip Frame 1
this.attachMovie(member, "graphique", 0);
this.graphique._y = this.graphique._y + ((this.graphique._height / 2) - 10);
this.graphique._x = this.graphique._x + (this.graphique._width / 2);
this.hitZone = true;
init = function () {
var _local1 = this;
if ((_local1.direction == "up") && (_local1.diagonal)) {
if (_local1.UpperLeft) {
_local1.homex = _local1._x - _local1.maxxmov;
_local1.homey = _local1._y - _local1.maxymov;
_local1.xspeed = _local1.xspeed * -1;
} else {
_local1.homex = _local1._x;
_local1.homey = _local1._y;
_local1.xspeed = _local1.xspeed * 1;
}
_local1.yspeed = _local1.yspeed * -1;
} else if ((_local1.direction == "down") && (_local1.diagonal)) {
if (_local1.UpperLeft) {
_local1.homex = _local1._x + _local1.maxxmov;
_local1.homey = _local1._y + _local1.maxymov;
} else {
_local1.homex = _local1._x;
_local1.homey = _local1._y;
_local1.xspeed = _local1.xspeed * -1;
}
} else if (_local1.direction == "up") {
_local1.homey = _local1._y - _local1.maxymov;
_local1.xspeed = 0;
_local1.yspeed = _local1.yspeed * -1;
} else if (_local1.direction == "down") {
_local1.homey = _local1._y + _local1.maxymov;
_local1.xspeed = 0;
} else if (_local1.direction == "left") {
_local1.homex = _local1._x - _local1.maxxmov;
_local1.xspeed = _local1.xspeed * -1;
_local1.yspeed = 0;
} else if (_local1.direction == "right") {
_local1.homex = _local1._x + _local1.maxxmov;
_local1.yspeed = 0;
}
};
this.init();
Symbol 606 MovieClip Frame 1
stop();
Symbol 606 MovieClip Frame 5
stop();
Symbol 606 MovieClip Frame 9
stop();
Symbol 606 MovieClip Frame 17
stop();
Symbol 607 MovieClip Frame 1
stop();
Symbol 607 MovieClip Frame 5
stop();
Symbol 607 MovieClip Frame 9
stop();
Symbol 607 MovieClip Frame 13
stop();
Symbol 607 MovieClip Frame 17
stop();
Symbol 607 MovieClip Frame 21
stop();
Symbol 607 MovieClip Frame 25
stop();
Symbol 607 MovieClip Frame 29
stop();
Symbol 607 MovieClip Frame 33
stop();
Symbol 609 MovieClip Frame 1
stop();
Symbol 609 MovieClip Frame 2
stop();
Symbol 611 MovieClip Frame 1
stop();
Symbol 611 MovieClip Frame 2
stop();
Symbol 612 MovieClip Frame 1
stop();
Symbol 612 MovieClip Frame 98
gotoAndPlay ("loop");
Symbol 613 MovieClip Frame 1
_visible = false;
stop();
Instance of Symbol 605 MovieClip in Symbol 613 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
this.maxxmov = 20;
this.maxymov = 47;
this.xspeed = 1;
this.yspeed = 1;
this.direction = "down";
this.diagonal = false;
this.UpperLeft = false;
member = "ascenseur";
LeftOffset = 0;
RightOffset = 0;
SpeedCorrection = false;
OneWay = true;
}
onClipEvent (load) {
this.automatic = true;
this.blocking = true;
}
onClipEvent (enterFrame) {
if (this.hitTest(_global.oPerso.perso)) {
if (this._y < (_global.oPerso.perso._y + 10)) {
if (_global.oGame.mover.getPos(this) == null) {
if (_global.KeyListener.spacePress || (this.automatic)) {
_global.oGame.addmetoMovinglist(this);
}
}
}
}
}
Instance of Symbol 611 MovieClip "floor6_2" in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
if (_global.oGame.stateOfSwitch(_parent._parent.switch6_1) == "OFF") {
gotoAndStop (2);
}
}
Instance of Symbol 612 MovieClip "grue6_1" in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 561 MovieClip "switch6_2" in Symbol 614 MovieClip [BGHit_l1_6] Frame 1
onClipEvent (load) {
if (_global.oGame.stateOfSwitch(this) == "OFF") {
this.gotoAndStop(2);
} else if (_global.oGame.stateOfSwitch(this) == -1) {
_global.oGame.addSwitch(this, "ON");
}
this.switchCondition = function () {
var _local1 = _global;
if (((((this.hitTest(_local1.oPerso.perso.attackZone) && (_local1.oPerso.persoIsAttacking)) && (!_local1.oPerso.persoIsJumping)) && (!_local1.oPerso.persoIsSuperAttacking)) && (this._currentframe == 1)) && (_local1.oGame.stateOfSwitch(_parent.switch6_7) == "OFF")) {
return(true);
}
return(false);
};
this.doAction = function () {
var _local1 = _global;
var _local2 = _parent;
_local1.oGame.switchNewState(this, "OFF");
_local1.oGame.crusher = true;
gotoAndStop (2);
_local2.scie6_1.gotoAndStop(2);
_local2.scie6_2.gotoAndStop(2);
_local2.scie6_3.gotoAndStop(2);
_local1.oGame.crusher = true;
_local1.oGame.addScore(500);
_local1.oGame.PlaySound("power_on", 1);
};
}
Instance of Symbol 150 MovieClip "switch6_1" in Symbol 614 MovieClip [BGHit_l1_6] Frame 1
onClipEvent (load) {
if (_global.oGame.stateOfSwitch(this) == "OFF") {
this.gotoAndStop(2);
} else if (_global.oGame.stateOfSwitch(this) == -1) {
_global.oGame.addSwitch(this, "ON");
}
this.switchCondition = function () {
if ((this.hitTest(_global.oPerso.perso.attackZone) && (!_global.oPerso.persoIsSuperAttacking)) && (this._currentframe == 1)) {
return(true);
}
return(false);
};
this.doAction = function () {
var _local1 = _parent;
var _local2 = _global;
this.gotoAndStop(2);
_local1.door6_1.play();
_local2.oGame.switchNewState(this, "OFF");
_local2.oGame.addScore(1000);
if (_local1.switch6_6._currentframe != 25) {
_local1.switch6_6.gotoAndPlay("break");
_local1.blocD = "broke";
_local1.hitZoneX.briqueD.gotoAndStop("broke");
_local1.hitZoneY.briqueD.gotoAndStop("broke");
_local2.oGame.switchNewState(_local1.switch6_6, "OFF");
}
if (_local1.switch6_5._currentframe != 25) {
_local1.switch6_5.gotoAndPlay("break");
_local1.blocC = "broke";
_local1.hitZoneX.briqueC.gotoAndStop("broke");
_local1.hitZoneY.briqueC.gotoAndStop("broke");
_local2.oGame.switchNewState(_local1.switch6_5, "OFF");
}
if (_local2.oGame.boxA == "C") {
_local1.boiteA.gotoAndPlay("QUATORZE");
} else {
_local1.boiteA.gotoAndPlay("QUINZE");
}
if (_local2.oGame.boxB == "B") {
_local1.boiteB.gotoAndPlay("HUIT");
} else {
_local1.boiteB.gotoAndPlay("NEUF");
}
};
}
Instance of Symbol 568 MovieClip "scie6_2" in Symbol 614 MovieClip [BGHit_l1_6] Frame 1
onClipEvent (load) {
_global.oGame.addAttackHitZone(this);
if (_global.oGame.stateOfSwitch(_parent.switch6_2) == "OFF") {
gotoAndStop (2);
}
}
onClipEvent (unload) {
_global.oGame.removeAttackHitZone(this);
}
Instance of Symbol 571 MovieClip "scie6_3" in Symbol 614 MovieClip [BGHit_l1_6] Frame 1
onClipEvent (load) {
_global.oGame.addAttackHitZone(this);
if (_global.oGame.stateOfSwitch(_parent.switch6_2) == "OFF") {
gotoAndStop (2);
}
}
onClipEvent (unload) {
_global.oGame.removeAttackHitZone(this);
}
Instance of Symbol 584 MovieClip "switch6_7" in Symbol 614 MovieClip [BGHit_l1_6] Frame 1
onClipEvent (load) {
if (_global.oGame.stateOfSwitch(this) == "OFF") {
this.gotoAndStop("broke");
} else if (_global.oGame.stateOfSwitch(this) == -1) {
_global.oGame.addSwitch(this, "ON");
_global.oGame.addWall(this, 12);
}
this.doAction = function () {
_global.oGame.switchNewState(this, "OFF");
};
this.breakpoint = 12;
}
Instance of Symbol 336 MovieClip "door6_1" in Symbol 614 MovieClip [BGHit_l1_6] Frame 1
onClipEvent (load) {
if (_global.oGame.stateOfSwitch(_parent.switch6_1) == "OFF") {
this.gotoAndStop("open");
}
}
Instance of Symbol 594 MovieClip "switch6_3" in Symbol 614 MovieClip [BGHit_l1_6] Frame 1
onClipEvent (load) {
if (_global.oGame.stateOfSwitch(this) == "OFF") {
this.gotoAndStop("broke");
_parent.blocA = "broke";
_parent.hitZoneX.briqueA.gotoAndStop("broke");
_parent.hitZoneY.briqueA.gotoAndStop("broke");
} else if (_global.oGame.stateOfSwitch(this) == -1) {
_global.oGame.addWall(this, 10);
_global.oGame.addSwitch(this, "ON");
_parent.blocA = "ok";
_parent.hitZoneX.briqueA.gotoAndStop(1);
_parent.hitZoneY.briqueA.gotoAndStop(1);
} else {
_parent.hitZoneX.briqueA.gotoAndStop(1);
_parent.hitZoneY.briqueA.gotoAndStop(1);
}
this.doAction = function () {
var _local1 = _parent;
_local1.blocA = "broke";
_local1.hitZoneX.briqueA.gotoAndStop("broke");
_local1.hitZoneY.briqueA.gotoAndStop("broke");
};
this.breakpoint = 10;
}
onClipEvent (unload) {
if (_global.oGame.crusher) {
if (_parent.blocA == "broke") {
_global.oGame.switchNewState(this, "OFF");
}
}
}
Instance of Symbol 594 MovieClip "switch6_4" in Symbol 614 MovieClip [BGHit_l1_6] Frame 1
onClipEvent (load) {
if (_global.oGame.stateOfSwitch(this) == "OFF") {
this.gotoAndStop("broke");
_parent.blocB = "broke";
_parent.hitZoneX.briqueB.gotoAndStop("broke");
_parent.hitZoneY.briqueB.gotoAndStop("broke");
} else if (_global.oGame.stateOfSwitch(this) == -1) {
_global.oGame.addSwitch(this, "ON");
_parent.blocB = "ok";
_global.oGame.addWall(this, 10);
_parent.hitZoneX.briqueB.gotoAndStop(1);
_parent.hitZoneY.briqueB.gotoAndStop(1);
} else {
_parent.hitZoneX.briqueB.gotoAndStop(1);
_parent.hitZoneY.briqueB.gotoAndStop(1);
}
this.doAction = function () {
var _local1 = _parent;
_local1.blocB = "broke";
_local1.hitZoneX.briqueB.gotoAndStop("broke");
_local1.hitZoneY.briqueB.gotoAndStop("broke");
if (_global.oGame.boxA == "A") {
_local1.boiteA.gotoAndPlay("DEUX");
}
};
this.breakpoint = 10;
}
onClipEvent (unload) {
if (_global.oGame.crusher) {
if (_parent.blocB == "broke") {
_global.oGame.switchNewState(this, "OFF");
}
}
}
Instance of Symbol 594 MovieClip "switch6_5" in Symbol 614 MovieClip [BGHit_l1_6] Frame 1
onClipEvent (load) {
if ((_global.oGame.stateOfSwitch(_parent.switch6_1) == "OFF") || (_global.oGame.stateOfSwitch(this) == "OFF")) {
this.gotoAndStop("broke");
_parent.blocC = "broke";
_parent.hitZoneX.briqueC.gotoAndStop("broke");
_parent.hitZoneY.briqueC.gotoAndStop("broke");
} else if (_global.oGame.stateOfSwitch(this) == -1) {
_global.oGame.addSwitch(this, "ON");
_parent.blocC = "ok";
_global.oGame.addWall(this, 10);
_parent.hitZoneX.briqueC.gotoAndStop(1);
_parent.hitZoneY.briqueC.gotoAndStop(1);
} else {
_parent.hitZoneX.briqueC.gotoAndStop(1);
_parent.hitZoneY.briqueC.gotoAndStop(1);
}
this.doAction = function () {
var _local1 = _parent;
_local1.blocC = "broke";
_local1.hitZoneX.briqueC.gotoAndStop("broke");
_local1.hitZoneY.briqueC.gotoAndStop("broke");
if (_global.oGame.boxA == "B") {
_local1.boiteA.gotoAndPlay("DIX");
}
};
this.breakpoint = 10;
}
onClipEvent (unload) {
if (_global.oGame.crusher) {
if (_parent.blocC == "broke") {
_global.oGame.switchNewState(this, "OFF");
}
}
}
Instance of Symbol 594 MovieClip "switch6_6" in Symbol 614 MovieClip [BGHit_l1_6] Frame 1
onClipEvent (load) {
if ((_global.oGame.stateOfSwitch(_parent.switch6_1) == "OFF") || (_global.oGame.stateOfSwitch(this) == "OFF")) {
this.gotoAndStop("broke");
_parent.blocD = "broke";
_parent.hitZoneX.briqueD.gotoAndStop("broke");
_parent.hitZoneY.briqueD.gotoAndStop("broke");
} else if (_global.oGame.stateOfSwitch(this) == -1) {
_global.oGame.addSwitch(this, "ON");
_parent.blocD = "ok";
_global.oGame.addWall(this, 10);
_parent.hitZoneX.briqueC.gotoAndStop(1);
_parent.hitZoneY.briqueC.gotoAndStop(1);
} else {
_parent.hitZoneX.briqueC.gotoAndStop(1);
_parent.hitZoneY.briqueC.gotoAndStop(1);
}
this.doAction = function () {
var _local1 = _parent;
_local1.blocD = "broke";
_local1.hitZoneX.briqueD.gotoAndStop("broke");
_local1.hitZoneY.briqueD.gotoAndStop("broke");
if (_global.oGame.boxA == "C") {
_local1.boiteA.gotoAndPlay("ONZE");
}
if (_global.oGame.boxB == "B") {
_local1.boiteB.gotoAndPlay("SIX");
}
};
this.breakpoint = 10;
}
onClipEvent (unload) {
if (_global.oGame.crusher) {
if (_parent.blocD == "broke") {
_global.oGame.switchNewState(this, "OFF");
}
}
}
Instance of Symbol 595 MovieClip "grue6_1" in Symbol 614 MovieClip [BGHit_l1_6] Frame 1
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 596 MovieClip "boiteA" in Symbol 614 MovieClip [BGHit_l1_6] Frame 1
onClipEvent (load) {
_global.oGame.boxAAnim = "0";
this.gotoAndStop(_global.oGame.boxA);
_parent.hitZoneX.boxA.gotoAndStop(_global.oGame.boxB);
_parent.hitZoneY.boxA.gotoAndStop(_global.oGame.boxB);
}
onClipEvent (unload) {
if (!_global.oGame.crusher) {
_global.oGame.boxA = "A";
}
}
Instance of Symbol 597 MovieClip "boiteB" in Symbol 614 MovieClip [BGHit_l1_6] Frame 1
onClipEvent (load) {
_global.oGame.boxBAnim = "0";
this.gotoAndStop(_global.oGame.boxB);
_parent.hitZoneX.boxB.gotoAndStop(_global.oGame.boxB);
_parent.hitZoneY.boxB.gotoAndStop(_global.oGame.boxB);
}
onClipEvent (unload) {
if (!_global.oGame.crusher) {
_global.oGame.boxB = "A";
}
}
Instance of Symbol 499 MovieClip in Symbol 614 MovieClip [BGHit_l1_6] Frame 1
onClipEvent (load) {
_global.oGame.addBGAction(this);
this.doAction = function () {
var _local1 = _parent;
var _local2 = _global;
if (this.hitTest(_local2.oPerso.perso)) {
_local1.hitZoneX.grue6_1.play();
_local1.grue6_1.play();
_local1.hitZoneX.floor6_1.gotoAndStop(2);
if (_local2.oGame.stateOfSwitch(_local1.switch6_1) == "OFF") {
_local1.hitZoneX.floor6_2.gotoAndStop(2);
}
}
_local2.oGame.BackGroundAction = "done";
};
}
onClipEvent (unload) {
_global.oGame.BackGroundAction = "waiting";
_global.oGame.removeBGAction(this);
}
Symbol 630 MovieClip Frame 26
stop();
Symbol 631 MovieClip Frame 1
_global.oGame.PlaySound("plateforme_grince", 1);
Instance of Symbol 503 MovieClip in Symbol 631 MovieClip Frame 1
onClipEvent (load) {
firstTouch = true;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_global.oPerso.perso) && (!_global.oPerso.persoIsJumping)) && (firstTouch)) {
firstTouch = false;
moveY = this._y;
} else if ((this.hitTest(_global.oPerso.perso) && (!_global.oPerso.persoIsJumping)) && (!firstTouch)) {
_global.oPerso.perso._y = _global.oPerso.perso._y + (this._Y - moveY);
moveY = this._y;
} else if ((!firstTouch) && ((!this.hitTest(_global.oPerso.perso)) || (_global.oPerso.persoIsJumping))) {
firstTouch = true;
}
}
Symbol 631 MovieClip Frame 37
_global.oGame.PlaySound("thud2", 1);
Instance of Symbol 503 MovieClip in Symbol 631 MovieClip Frame 86
onClipEvent (load) {
firstTouch = true;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_global.oPerso.perso) && (!_global.oPerso.persoIsJumping)) && (firstTouch)) {
firstTouch = false;
moveY = this._y;
} else if ((this.hitTest(_global.oPerso.perso) && (!_global.oPerso.persoIsJumping)) && (!firstTouch)) {
_global.oPerso.perso._y = _global.oPerso.perso._y + (this._Y - moveY);
moveY = this._y;
} else if ((!firstTouch) && ((!this.hitTest(_global.oPerso.perso)) || (_global.oPerso.persoIsJumping))) {
firstTouch = true;
}
}
Symbol 631 MovieClip Frame 115
if (_global.oPerso.persoBoss == "DOWN") {
gotoAndPlay ("loop");
} else {
gotoAndStop (1);
}
Symbol 632 MovieClip Frame 1
stop();
Instance of Symbol 399 MovieClip in Symbol 632 MovieClip Frame 1
onClipEvent (load) {
_global.oGame.addLaserHitZone(this);
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
_global.oGame.removeLaserHitZone(this);
}
Symbol 632 MovieClip Frame 2
stop();
Symbol 634 MovieClip Frame 1
stop();
Instance of Symbol 399 MovieClip in Symbol 634 MovieClip Frame 1
onClipEvent (load) {
_global.oGame.addLaserHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeLaserHitZone(this);
}
Symbol 634 MovieClip Frame 2
stop();
Symbol 635 MovieClip Frame 95
if (_global.oPerso.persoBoss == "UP") {
gotoAndStop (1);
} else {
gotoAndPlay ("loop");
}
Symbol 646 MovieClip Frame 2
_global.oGame.PlaySound("tapis2", 99);
Instance of Symbol 137 MovieClip in Symbol 646 MovieClip Frame 2
onClipEvent (load) {
_global.oGame.AddTapis(this, 3);
}
Symbol 646 MovieClip Frame 47
_global.oGame.StopSound("tapis2");
Symbol 646 MovieClip Frame 100
if (_global.oPerso.persoBoss == "DOWN") {
gotoAndPlay ("loop");
} else {
gotoAndStop (1);
}
Symbol 651 MovieClip Frame 1
stop();
Symbol 651 MovieClip Frame 2
_global.oGame.PlaySound("tapis2", 999);
_global.oGame.ChangeVolume("tapis2", 50);
Symbol 651 MovieClip Frame 3
if (_global.oGame.PauseAll.getPos(this) == null) {
_global.oGame.addToPause(this);
}
Instance of Symbol 137 MovieClip in Symbol 651 MovieClip Frame 3
onClipEvent (load) {
_global.oGame.AddTapis(this, -10);
}
Symbol 651 MovieClip Frame 5
gotoAndPlay ("loop");
Symbol 659 MovieClip Frame 1
stop();
Instance of Symbol 137 MovieClip in Symbol 659 MovieClip Frame 2
onClipEvent (enterFrame) {
if (((this.hitTest(_global.oPerso.perso.attackZone) && (_global.oPerso.persoIsSuperAttacking)) && (_global.oPerso.IsRed)) && (_global.oPerso.perso._xscale > 0)) {
if (_global.oGame.stateOfSwitch2("switch8_2") == "OFF") {
_parent.gotoAndPlay("bossDie");
} else {
_parent.gotoAndPlay("attack1");
_global.oGame.PlaySound("power_punch2", 1);
}
}
}
Symbol 659 MovieClip Frame 31
if (_global.oPerso.persoBoss == "UP") {
gotoAndPlay ("bossAttack2");
} else {
gotoAndStop ("Off");
}
Symbol 659 MovieClip Frame 32
_global.oGame.PlaySound("metal_slide1", 1);
Symbol 659 MovieClip Frame 39
_global.oGame.StopSound("metal_slide1");
_global.oGame.PlaySound("metal_hit", 1);
Symbol 659 MovieClip Frame 62
_global.oGame.PlaySound("metal_slide1", 1);
Instance of Symbol 137 MovieClip in Symbol 659 MovieClip Frame 62
onClipEvent (load) {
_global.oGame.addAttackHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeAttackHitZone(this);
}
Symbol 659 MovieClip Frame 78
_global.oGame.StopSound("metal_slide1");
_global.oGame.PlaySound("metal_hit", 1);
Symbol 659 MovieClip Frame 88
if (_global.oPerso.persoBoss == "UP") {
gotoAndPlay ("still");
} else {
gotoAndStop ("Off");
}
Symbol 659 MovieClip Frame 90
_global.oGame.PlaySound("metal_slide1", 1);
Instance of Symbol 137 MovieClip in Symbol 659 MovieClip Frame 104
onClipEvent (load) {
_global.oGame.addAttackHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeAttackHitZone(this);
}
Symbol 659 MovieClip Frame 117
_global.oGame.StopSound("metal_slide1");
Symbol 659 MovieClip Frame 125
_global.oGame.PlaySound("metal_slide1", 1);
Symbol 659 MovieClip Frame 135
_global.oGame.StopSound("metal_slide1");
_global.oGame.PlaySound("metal_hit", 1);
Symbol 659 MovieClip Frame 147
if (_global.oPerso.persoBoss == "UP") {
gotoAndPlay ("still");
} else {
gotoAndStop ("Off");
}
Symbol 659 MovieClip Frame 148
_global.oGame.PlaySound("power_punch2", 1);
_global.oGame.PlaySound("metal_slide1", 1);
Symbol 659 MovieClip Frame 162
_parent.boss.gotoAndPlay("die");
_global.oGame.StopSound("metal_slide1");
Symbol 659 MovieClip Frame 213
Symbol 670 MovieClip Frame 2
_global.oGame.PlaySound("scie", 99);
Instance of Symbol 669 MovieClip in Symbol 670 MovieClip Frame 2
onClipEvent (load) {
_global.oGame.addAttackHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeAttackHitZone(this);
}
Instance of Symbol 669 MovieClip in Symbol 670 MovieClip Frame 6
onClipEvent (load) {
_global.oGame.addAttackHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeAttackHitZone(this);
}
Instance of Symbol 669 MovieClip in Symbol 670 MovieClip Frame 39
onClipEvent (load) {
_global.oGame.addAttackHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeAttackHitZone(this);
}
Symbol 670 MovieClip Frame 45
_global.oGame.StopSound("scie");
_global.oGame.PlaySound("scie_fin", 1);
Symbol 670 MovieClip Frame 100
if (_global.oPerso.persoBoss == "DOWN") {
gotoAndPlay ("loop");
} else {
gotoAndStop (1);
}
Symbol 704 MovieClip Frame 41
gotoAndPlay ("move");
Symbol 704 MovieClip Frame 42
_global.oGame.ChangeSound("boss_laugh", 500);
_global.oGame.PlaySound("boss_laugh", 1);
_global.oGame.ChangeSound("boss_laugh", 500);
Symbol 704 MovieClip Frame 56
gotoAndPlay ("idle");
Symbol 704 MovieClip Frame 57
_global.oGame.PlaySound("boss_die", 1);
Symbol 704 MovieClip Frame 62
gotoAndPlay ("idle");
_global.oGame.StopSound("boss_laugh");
Symbol 704 MovieClip Frame 117
gotoAndPlay ("idle");
Symbol 704 MovieClip Frame 118
_global.oGame.addScore(25000);
_global.oGame.PlaySound("boss_die", 1);
_global.oGame.ChangeVolume("boss_die", 300);
Symbol 704 MovieClip Frame 137
_global.oGame.WinGame();
stop();
Symbol 704 MovieClip Frame 138
_parent.grue8_2.stop();
_global.oGame.PlaySound("boss_die", 1);
Symbol 704 MovieClip Frame 183
gotoAndPlay ("idle");
_parent.grue8_2.play();
_global.oGame.StopSound("boss_die");
Symbol 714 MovieClip Frame 1
stop();
Symbol 714 MovieClip Frame 2
stop();
Symbol 714 MovieClip Frame 3
stop();
Symbol 714 MovieClip Frame 4
stop();
Symbol 714 MovieClip Frame 5
stop();
Symbol 714 MovieClip Frame 6
stop();
Symbol 714 MovieClip Frame 7
stop();
Symbol 714 MovieClip Frame 8
stop();
Symbol 714 MovieClip Frame 9
stop();
Symbol 714 MovieClip Frame 10
stop();
Symbol 714 MovieClip Frame 11
stop();
Symbol 714 MovieClip Frame 13
_global.oGame.PlaySound("vitre1", 1);
Symbol 714 MovieClip Frame 19
stop();
Symbol 717 MovieClip Frame 1
_visible = false;
Symbol 717 MovieClip Frame 15
stop();
Instance of Symbol 137 MovieClip in Symbol 719 MovieClip Frame 28
onClipEvent (enterFrame) {
if (this.hitTest(_global.oPerso.perso) && (!_global.oPerso.persoIsInPain)) {
_global.oGame.damage(_global.oGame.BombDamage);
if (_global.oGame.BGCur == 8) {
_global.oGame.boss.gotoAndPlay("attack");
}
_global.oGame.persoAnim("hit");
if (_global.oPerso.perso._xscale > 0) {
_global.oPerso.persoXSpeed = -2;
} else {
_global.oPerso.persoXSpeed = 2;
}
_global.oPerso.persoIsInPain = true;
_root.BGHit8.boss.gotoAndPlay("attack");
}
}
Instance of Symbol 137 MovieClip in Symbol 719 MovieClip Frame 37
onClipEvent (enterFrame) {
if (this.hitTest(_global.oPerso.perso) && (!_global.oPerso.persoIsInPain)) {
_global.oGame.damage(_global.oGame.BombDamage);
if (_global.oGame.BGCur == 8) {
_global.oGame.boss.gotoAndPlay("attack");
}
_global.oGame.persoAnim("hit");
if (_global.oPerso.perso._xscale > 0) {
_global.oPerso.persoXSpeed = -2;
} else {
_global.oPerso.persoXSpeed = 2;
}
_global.oPerso.persoIsInPain = true;
}
}
Symbol 719 MovieClip Frame 115
if (_global.oPerso.persoBoss == "DOWN") {
gotoAndPlay ("loop");
} else {
gotoAndStop (1);
}
Symbol 720 MovieClip Frame 1
_visible = false;
stop();
Instance of Symbol 719 MovieClip "grue8_1" in Symbol 720 MovieClip Frame 1
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 611 MovieClip "floor8_2" in Symbol 720 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 611 MovieClip "floor8_1" in Symbol 720 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 631 MovieClip "grue8_1" in Symbol 721 MovieClip [BGHit_l1_8] Frame 1
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 635 MovieClip "laser8_1" in Symbol 721 MovieClip [BGHit_l1_8] Frame 1
onClipEvent (load) {
_global.oGame.addLaserBlock(this, "right", 1);
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 635 MovieClip "laser8_2" in Symbol 721 MovieClip [BGHit_l1_8] Frame 1
onClipEvent (load) {
_global.oGame.addLaserBlock(this, "right", 1);
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 646 MovieClip "tapis8_1" in Symbol 721 MovieClip [BGHit_l1_8] Frame 1
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 150 MovieClip "switch8_1" in Symbol 721 MovieClip [BGHit_l1_8] Frame 1
onClipEvent (load) {
_global.oGame.addSwitch(this, "ON");
this.switchCondition = function () {
if (this.hitTest(_global.oPerso.perso.attackZone) && (!_global.oPerso.persoIsSuperAttacking)) {
return(true);
}
return(false);
};
this.doAction = function () {
var _local1 = _parent;
var _local2 = _global;
this.gotoAndStop(2);
_local1.elec8_1.gotoAndStop(2);
_local1.elec8_2.gotoAndStop(2);
_local1.hitZoneX.floor8_1.gotoAndStop(1);
_local1.hitZoneX.floor8_2.gotoAndStop(1);
_local2.oGame.addScore(4850);
_local2.oGame.PlaySound("power_off", 1);
_local2.oGame.switchNewState(this, "OFF");
};
}
Instance of Symbol 659 MovieClip "grue8_2" in Symbol 721 MovieClip [BGHit_l1_8] Frame 1
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 670 MovieClip "scie8_1" in Symbol 721 MovieClip [BGHit_l1_8] Frame 1
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 704 MovieClip "boss" in Symbol 721 MovieClip [BGHit_l1_8] Frame 1
onClipEvent (load) {
_global.oGame.boss = this;
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 714 MovieClip "switch8_2" in Symbol 721 MovieClip [BGHit_l1_8] Frame 1
onClipEvent (load) {
_global.oGame.addSwitch(this, "ON");
}
onClipEvent (enterFrame) {
if ((((this._currentframe < 19) && (this.hitTest(_global.oPerso.perso.attackZone))) && (_global.oPerso.IsYellow)) && (_global.oPerso.persoIsSuperAttacking)) {
this.gotoAndPlay(this._currentframe + 1);
}
if ((this._currentframe == 19) && (_global.oGame.stateOfSwitch(this) != "OFF")) {
_global.oGame.switchNewState(this, "OFF");
_parent.tapis8_2.play();
_global.oGame.addScore(10000);
_global.oGame.PlaySound("tapis1", 999);
_parent.boss.gotoAndPlay("hit");
}
}
Instance of Symbol 137 MovieClip in Symbol 721 MovieClip [BGHit_l1_8] Frame 1
onClipEvent (load) {
_global.oGame.addBGAction(this);
this.doAction = function () {
var _local1 = _parent;
if (_global.oPerso.persoBoss == "UP") {
_global.oPerso.persoBoss = "DOWN";
_local1.laser8_1.play();
_local1.laser8_2.play();
_local1.scie8_1.play();
_local1.grue8_1.play();
_local1.tapis8_1.play();
_local1.hitZoneX.grue8_1.play();
}
};
}
onClipEvent (unload) {
_global.oGame.removeBGAction(this);
}
Instance of Symbol 137 MovieClip in Symbol 721 MovieClip [BGHit_l1_8] Frame 1
onClipEvent (load) {
_global.oGame.addBGAction(this);
this.doAction = function () {
if (_global.oPerso.persoBoss == "DOWN") {
_global.oPerso.persoBoss = "UP";
_parent.grue8_2.play();
}
};
}
onClipEvent (unload) {
_global.oGame.removeBGAction(this);
}
Symbol 744 MovieClip Frame 1
stop();
Instance of Symbol 499 MovieClip in Symbol 744 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this.hitTest(_global.oPerso.perso.attackZone) && (_global.oPerso.IsYellow)) && (_global.oPerso.persoIsSuperAttacking)) {
_parent.gotoAndPlay(_parent._currentframe + 1);
}
}
Symbol 744 MovieClip Frame 2
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 744 MovieClip Frame 3
stop();
Symbol 744 MovieClip Frame 4
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 744 MovieClip Frame 5
stop();
Symbol 744 MovieClip Frame 6
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 744 MovieClip Frame 7
stop();
Symbol 744 MovieClip Frame 8
stop();
Symbol 744 MovieClip Frame 9
_global.oGame.PlaySound("wall_crack", 1);
stop();
Symbol 744 MovieClip Frame 10
stop();
Symbol 744 MovieClip Frame 11
_parent.hitZoneX.box7_1.play();
_parent.hitZoneY.box7_1.play();
_global.oGame.StopSound("wall_crack");
_global.oGame.PlaySound("wall_broke", 1);
_global.oGame.addScore(350);
Symbol 744 MovieClip Frame 26
stop();
Instance of Symbol 499 MovieClip in Symbol 744 MovieClip Frame 26
onClipEvent (enterFrame) {
if (((this.hitTest(_global.oPerso.perso.attackZone) && (_global.oPerso.persoIsSuperAttacking)) && (_global.oPerso.IsRed)) && (_global.oPerso.perso._xscale < 0)) {
_parent.play();
_global.oGame.PlaySound("power_punch2", 1);
}
}
Symbol 744 MovieClip Frame 27
_parent.hitZoneX.box7_1.play();
_parent.hitZoneY.box7_1.play();
Symbol 744 MovieClip Frame 36
stop();
Instance of Symbol 499 MovieClip in Symbol 744 MovieClip Frame 36
onClipEvent (enterFrame) {
if (((this.hitTest(_global.oPerso.perso.attackZone) && (_global.oPerso.persoIsSuperAttacking)) && (_global.oPerso.IsRed)) && (_global.oPerso.perso._xscale < 0)) {
_parent.play();
_global.oGame.PlaySound("power_punch2", 1);
}
}
Symbol 744 MovieClip Frame 37
_parent.hitZoneX.box7_1.play();
_parent.hitZoneY.box7_1.play();
Symbol 744 MovieClip Frame 45
stop();
Instance of Symbol 137 MovieClip in Symbol 747 MovieClip Frame 1
onClipEvent (load) {
_global.oGame.addAttackHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeAttackHitZone(this);
}
Symbol 747 MovieClip Frame 13
_global.oGame.PlaySound("box_hit_ground2");
_global.oGame.ChangeVolume("box_hit_ground2", 150);
Instance of Symbol 137 MovieClip in Symbol 747 MovieClip Frame 19
onClipEvent (load) {
_global.oGame.addAttackHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeAttackHitZone(this);
}
Symbol 747 MovieClip Frame 34
_global.oGame.PlaySound("box_hit_ground2");
_global.oGame.ChangeVolume("box_hit_ground2", 150);
Instance of Symbol 137 MovieClip in Symbol 747 MovieClip Frame 37
onClipEvent (load) {
_global.oGame.addAttackHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeAttackHitZone(this);
}
Instance of Symbol 137 MovieClip in Symbol 747 MovieClip Frame 40
onClipEvent (load) {
_global.oGame.addAttackHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeAttackHitZone(this);
}
Symbol 747 MovieClip Frame 53
_global.oGame.PlaySound("box_hit_ground2");
_global.oGame.ChangeVolume("box_hit_ground2", 150);
Instance of Symbol 137 MovieClip in Symbol 747 MovieClip Frame 56
onClipEvent (load) {
_global.oGame.addAttackHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeAttackHitZone(this);
}
Instance of Symbol 137 MovieClip in Symbol 747 MovieClip Frame 59
onClipEvent (load) {
_global.oGame.addAttackHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeAttackHitZone(this);
}
Symbol 747 MovieClip Frame 72
_global.oGame.PlaySound("box_hit_ground2");
_global.oGame.ChangeVolume("box_hit_ground2", 150);
Instance of Symbol 137 MovieClip in Symbol 747 MovieClip Frame 75
onClipEvent (load) {
_global.oGame.addAttackHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeAttackHitZone(this);
}
Instance of Symbol 137 MovieClip in Symbol 747 MovieClip Frame 78
onClipEvent (load) {
_global.oGame.addAttackHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeAttackHitZone(this);
}
Instance of Symbol 137 MovieClip in Symbol 747 MovieClip Frame 127
onClipEvent (load) {
_global.oGame.addAttackHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeAttackHitZone(this);
}
Symbol 747 MovieClip Frame 131
_global.oPerso.firstTouch = true;
Symbol 748 MovieClip Frame 1
stop();
Symbol 748 MovieClip Frame 2
_global.oGame.PlaySound("box_slide1", 1);
Symbol 748 MovieClip Frame 12
stop();
Symbol 750 MovieClip Frame 1
stop();
Symbol 750 MovieClip Frame 12
stop();
Symbol 751 MovieClip Frame 1
stop();
Symbol 751 MovieClip Frame 2
stop();
Symbol 751 MovieClip Frame 3
stop();
Symbol 751 MovieClip Frame 4
stop();
Symbol 753 MovieClip Frame 1
_visible = false;
stop();
Symbol 753 MovieClip Frame 2
stop();
Symbol 755 MovieClip Frame 1
stop();
Symbol 755 MovieClip Frame 2
stop();
Symbol 755 MovieClip Frame 3
stop();
Symbol 755 MovieClip Frame 4
stop();
Symbol 758 MovieClip Frame 1
_visible = false;
stop();
Instance of Symbol 757 MovieClip "crusher7_1" in Symbol 758 MovieClip Frame 1
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 725 MovieClip in Symbol 759 MovieClip [BGHit_l1_7] Frame 1
onClipEvent (load) {
_global.oGame.addAttackHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeAttackHitZone(this);
}
Instance of Symbol 725 MovieClip in Symbol 759 MovieClip [BGHit_l1_7] Frame 1
onClipEvent (load) {
_global.oGame.addAttackHitZone(this);
}
onClipEvent (unload) {
_global.oGame.removeAttackHitZone(this);
}
Instance of Symbol 726 MovieClip in Symbol 759 MovieClip [BGHit_l1_7] Frame 1
onClipEvent (load) {
_global.oGame.PlaySound("tapis2", 999);
_global.oGame.ChangeVolume("tapis2", 50);
_global.oGame.AddTapis(this, -2);
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
_global.oGame.StopSound("tapis2");
}
Instance of Symbol 727 MovieClip in Symbol 759 MovieClip [BGHit_l1_7] Frame 1
onClipEvent (load) {
_global.oGame.addLaserHitZone(this);
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeLaserHitZone(this);
_global.oGame.removeToPause(this);
}
Instance of Symbol 150 MovieClip "switch7_1" in Symbol 759 MovieClip [BGHit_l1_7] Frame 1
onClipEvent (load) {
_global.oGame.addSwitch(this, "ON");
this.switchCondition = function () {
if ((this.hitTest(_global.oPerso.perso.attackZone) && (!_global.oPerso.persoIsSuperAttacking)) && (this._currentframe == 1)) {
return(true);
}
return(false);
};
this.doAction = function () {
this.gotoAndStop(2);
_parent.porte7_1.play();
_global.oGame.addScore(350);
_parent.hitZoneY.porte7_1.play();
};
}
Instance of Symbol 480 MovieClip "bloc7_1" in Symbol 759 MovieClip [BGHit_l1_7] Frame 1
onClipEvent (load) {
_global.oGame.addWall(this, 10);
this.doAction = function () {
_parent.hitZoneY.gotoAndStop(2);
};
this.breakpoint = 10;
}
Instance of Symbol 747 MovieClip "crusher7_1" in Symbol 759 MovieClip [BGHit_l1_7] Frame 1
onClipEvent (load) {
_global.oGame.addPlateForme(this);
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removePlateForme(this);
_global.oGame.removeToPause(this);
}
Instance of Symbol 274 MovieClip "BadGuy7_1" in Symbol 759 MovieClip [BGHit_l1_7] Frame 1
onClipEvent (load) {
if (_global.oGame.getDamage(this._name) >= 3) {
this.gotoAndStop("dead");
} else {
this.attLeft = true;
this.attRight = true;
this.haveTouch = false;
this._xscale = this._xscale * -1;
this.gotoAndPlay(Math.floor(Math.random() * 80) + 1);
}
}
Instance of Symbol 274 MovieClip "BadGuy7_2" in Symbol 759 MovieClip [BGHit_l1_7] Frame 1
onClipEvent (load) {
if (_global.oGame.getDamage(this._name) >= 3) {
this.gotoAndStop("dead");
} else {
this.attLeft = true;
this.attRight = true;
this.haveTouch = false;
this._xscale = this._xscale * -1;
this.gotoAndPlay(Math.floor(Math.random() * 80) + 1);
}
}
Symbol 788 Button
on (release) {
_parent.gotoAndStop("play");
}
Symbol 789 Button
on (release) {
_parent.gotoAndPlay("instruction");
}
Symbol 790 MovieClip Frame 48
stop();
Symbol 806 Button
on (release) {
if (!_global.oGame.freeze) {
_parent.gotoAndStop("play");
} else {
_global.oGame.PauseGame();
_root.transition.gotoAndStop("over");
}
}
Symbol 812 Button
on (release) {
nextFrame();
}
Symbol 828 Button
on (release) {
prevFrame();
}
Symbol 897 MovieClip Frame 11
stop();
Symbol 959 MovieClip Frame 1
btnPress.play();
Symbol 959 MovieClip Frame 34
btnPress.gotoAndStop(1);
Symbol 959 MovieClip Frame 60
btnPress.play();
Symbol 959 MovieClip Frame 103
btnPress.gotoAndStop(1);
Symbol 959 MovieClip Frame 135
btnPress.play();
Symbol 959 MovieClip Frame 193
btnPress.gotoAndStop(1);
Symbol 1012 MovieClip Frame 1
var CurFrame = 1;
stop();
Symbol 1012 MovieClip Frame 2
stop();
Symbol 1012 MovieClip Frame 3
stop();
Symbol 1012 MovieClip Frame 4
stop();
Symbol 1024 Button
on (release) {
gotoAndStop ("highscore");
}
Symbol 1035 Button
on (release) {
_global.oGame.stopSound("Musique" + _global.oGame.level);
_global.oGame.stopSound("Musique4");
_root.timerInterface.chrono.startTime = getTimer();
_parent.gotoAndPlay("MainLoop");
this.gotoAndStop("over");
}
Symbol 1061 Button
on (release) {
_root.timerInterface.chrono.startTime = getTimer();
_parent.gotoAndPlay("MainLoop");
this.gotoAndStop("over");
}
Symbol 1069 Button
on (release) {
gotoAndStop ("highscore");
}
Symbol 1093 MovieClip Frame 1
stop();
Symbol 1100 MovieClip Frame 1
stop();
Symbol 1106 MovieClip Frame 1
stop();
Symbol 1107 MovieClip Frame 1
stop();
Symbol 1107 MovieClip Frame 7
stop();
Symbol 1107 MovieClip Frame 16
_parent.gotoAndPlay("MainLoop");
Symbol 1107 MovieClip Frame 22
scoreFinal = new Array();
scoreFinal = _global.oGame.FinalScore();
total = scoreFinal[0];
bonusLife = scoreFinal[1];
bonusTime = scoreFinal[2];
_root.playerscore = total;
stop();
Symbol 1107 MovieClip Frame 29
total = _global.oGame.scoretotal;
_root.playerscore = total;
stop();
Symbol 1107 MovieClip Frame 36
stop();
Symbol 1107 MovieClip Frame 42
highscore.loadMovie("http://disney.go.com/jetix/global/game/scoredisplays/fsd.swf", 1);
_root.playerscore = _global.oGame.scoretotal;
stop();
Symbol 1107 MovieClip Frame 47
stop();
Instance of Symbol 1093 MovieClip in Symbol 1107 MovieClip Frame 47
onClipEvent (load) {
this.trackAsMenu = true;
this.onRelease = function () {
_root.transition.gotoAndStop("instruction");
};
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onPress = function () {
this.gotoAndStop(3);
};
this.onReleaseOutside = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 1100 MovieClip in Symbol 1107 MovieClip Frame 47
onClipEvent (load) {
this.trackAsMenu = true;
this.onRelease = function () {
_global.oGame.PauseGame();
_root.transition.gotoAndStop("over");
};
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onPress = function () {
this.gotoAndStop(3);
};
this.onReleaseOutside = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 1106 MovieClip in Symbol 1107 MovieClip Frame 47
onClipEvent (load) {
this.trackAsMenu = true;
this.onRelease = function () {
_root.transition.gotoAndStop("highscore");
};
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onPress = function () {
this.gotoAndStop(3);
};
this.onReleaseOutside = function () {
this.gotoAndStop(1);
};
}
Symbol 1115 MovieClip Frame 1
_parent.frameAction();
this._visible = 0;
Symbol 1115 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1118 MovieClip Frame 1
if (!_global.oPerso.IsYellow) {
_visible = false;
} else {
_visible = true;
}
Symbol 1118 MovieClip Frame 2
if (!_global.oPerso.IsYellow) {
_visible = false;
} else {
_visible = true;
}
Symbol 1119 MovieClip Frame 1
if (!_global.oPerso.IsBlue) {
_visible = false;
} else {
_visible = true;
}
Symbol 1119 MovieClip Frame 2
if (!_global.oPerso.IsBlue) {
_visible = false;
} else {
_visible = true;
}
Symbol 1120 MovieClip Frame 1
if (!_global.oPerso.IsRed) {
_visible = false;
} else {
_visible = true;
}
Symbol 1120 MovieClip Frame 2
if (!_global.oPerso.IsRed) {
_visible = false;
} else {
_visible = true;
}
Symbol 1123 MovieClip Frame 1
stop();
Symbol 1123 MovieClip Frame 2
_global.oGame.PlaySound("power_switch", 1);
_global.oGame.ChangeVolume("power_switch", 200);
Symbol 1123 MovieClip Frame 5
_global.oGame.StopSound("power_switch");
Symbol 1125 MovieClip Frame 1
_visible = false;
_parent._parent.attackZone = this;
Symbol 1146 MovieClip Frame 1
if (!_global.oPerso.IsYellow) {
_visible = false;
} else {
_visible = true;
}
Symbol 1146 MovieClip Frame 25
stop();
Symbol 1161 MovieClip Frame 1
if (!_global.oPerso.IsBlue) {
_visible = false;
} else {
_visible = true;
}
Symbol 1176 MovieClip Frame 1
if (!_global.oPerso.IsRed) {
_visible = false;
} else {
_visible = true;
}
_global.oPerso.persoIsAttacking = true;
_global.oPerso.comboCheck = 0;
attackKey = new Object();
attackKey.onKeyUp = function () {
if (!(Key.getCode() === 32)) {
} else {
_global.oPerso.comboCheck++;
}
};
attackKey.onKeyDown = function () {
if (!(Key.getCode() === 32)) {
} else {
_global.oPerso.comboCheck++;
}
};
Key.addListener(attackKey);
var temp = (Math.floor(Math.random() * 3) + 1);
if (_global.oPerso.IsYellow) {
switch (temp) {
case 1 :
_global.oGame.PlaySound("power_attack1v2");
break;
case 2 :
_global.oGame.PlaySound("power_attack2v2");
break;
case 3 :
_global.oGame.PlaySound("power_attack3v2");
}
} else {
switch (temp) {
case 1 :
_global.oGame.PlaySound("power_attack1");
break;
case 2 :
_global.oGame.PlaySound("power_attack2");
break;
case 3 :
_global.oGame.PlaySound("power_attack3");
}
}
Symbol 1176 MovieClip Frame 8
if (_global.oPerso.comboCheck < 3) {
_global.oPerso.persoIsAttacking = false;
Key.removeListener(attackKey);
stop();
}
Symbol 1176 MovieClip Frame 9
var temp = (Math.floor(Math.random() * 3) + 1);
if (_global.oPerso.IsYellow) {
switch (temp) {
case 1 :
_global.oGame.PlaySound("power_attack1v2");
break;
case 2 :
_global.oGame.PlaySound("power_attack2v2");
break;
case 3 :
_global.oGame.PlaySound("power_attack3v2");
}
} else {
switch (temp) {
case 1 :
_global.oGame.PlaySound("power_attack1");
break;
case 2 :
_global.oGame.PlaySound("power_attack2");
break;
case 3 :
_global.oGame.PlaySound("power_attack3");
}
}
Symbol 1176 MovieClip Frame 13
if (_global.oPerso.comboCheck <= 7) {
_global.oPerso.persoIsAttacking = false;
Key.removeListener(attackKey);
stop();
}
Symbol 1176 MovieClip Frame 20
var temp = (Math.floor(Math.random() * 3) + 1);
if (_global.oPerso.IsYellow) {
switch (temp) {
case 1 :
_global.oGame.PlaySound("power_attack1v2");
break;
case 2 :
_global.oGame.PlaySound("power_attack2v2");
break;
case 3 :
_global.oGame.PlaySound("power_attack3v2");
}
} else {
switch (temp) {
case 1 :
_global.oGame.PlaySound("power_attack1");
break;
case 2 :
_global.oGame.PlaySound("power_attack2");
break;
case 3 :
_global.oGame.PlaySound("power_attack3");
}
}
Symbol 1176 MovieClip Frame 25
_global.oPerso.persoIsAttacking = false;
Key.removeListener(attackKey);
stop();
Symbol 1183 MovieClip Frame 1
if (!_global.oPerso.IsYellow) {
_visible = false;
} else {
_visible = true;
}
Symbol 1183 MovieClip Frame 10
if (_global.KeyListener.downPress) {
gotoAndPlay ("loop");
}
Symbol 1188 MovieClip Frame 1
if (!_global.oPerso.IsBlue) {
_visible = false;
} else {
_visible = true;
}
Symbol 1188 MovieClip Frame 10
if (_global.KeyListener.downPress) {
gotoAndPlay ("loop");
}
Symbol 1195 MovieClip Frame 1
if (!_global.oPerso.IsRed) {
_visible = false;
} else {
_visible = true;
}
Symbol 1195 MovieClip Frame 2
_global.oPerso.persoIsLanding = false;
_global.oPerso.persoIsSuperAttacking = false;
if (!_global.KeyListener.downPress) {
gotoAndPlay ("end");
}
Symbol 1195 MovieClip Frame 3
if (!_global.KeyListener.downPress) {
gotoAndPlay ("end");
}
Symbol 1195 MovieClip Frame 4
if (!_global.KeyListener.downPress) {
gotoAndPlay ("end");
}
Symbol 1195 MovieClip Frame 5
if (!_global.KeyListener.downPress) {
gotoAndPlay ("end");
}
Symbol 1195 MovieClip Frame 6
if (!_global.KeyListener.downPress) {
gotoAndPlay ("end");
}
Symbol 1195 MovieClip Frame 7
if (!_global.KeyListener.downPress) {
gotoAndPlay ("end");
}
Symbol 1195 MovieClip Frame 8
if (!_global.KeyListener.downPress) {
gotoAndPlay ("end");
}
Symbol 1195 MovieClip Frame 9
if (!_global.KeyListener.downPress) {
gotoAndPlay ("end");
}
Symbol 1195 MovieClip Frame 10
if (_global.KeyListener.downPress) {
gotoAndPlay ("loop");
}
Symbol 1195 MovieClip Frame 11
_global.oPerso.persoIsDucking = false;
Symbol 1195 MovieClip Frame 12
stop();
Symbol 1196 MovieClip Frame 1
stop();
Symbol 1196 MovieClip Frame 2
_global.oGame.PlaySound("power_switch", 1);
_global.oGame.ChangeVolume("power_switch", 200);
Symbol 1196 MovieClip Frame 4
_global.oGame.StopSound("power_switch");
Symbol 1198 MovieClip Frame 1
_parent.persoHead = this;
Symbol 1201 MovieClip Frame 1
_visible = false;
_parent._parent.defenseZone = this;
Symbol 1202 MovieClip Frame 1
stop();
Symbol 1203 MovieClip Frame 1
_global.oPerso.persoIsLanding = false;
_global.oPerso.persoIsSuperAttacking = true;
call("code1");
if (_global.oPerso.IsRed) {
_global.oGame.PlaySound("power_punch1");
}
Instance of Symbol 1117 MovieClip "persoBody" in Symbol 1203 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1198 MovieClip in Symbol 1203 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 1203 MovieClip Frame 2
call("code1");
Symbol 1203 MovieClip Frame 3
call("code1");
Symbol 1203 MovieClip Frame 4
call("code1");
Symbol 1203 MovieClip Frame 5
call("code1");
Symbol 1203 MovieClip Frame 6
call("code1");
Symbol 1203 MovieClip Frame 7
call("code1");
Symbol 1203 MovieClip Frame 8
call("code1");
Symbol 1203 MovieClip Frame 9
call("code1");
Symbol 1203 MovieClip Frame 10
call("code1");
Symbol 1203 MovieClip Frame 11
call("code1");
Symbol 1203 MovieClip Frame 12
call("code1");
Symbol 1203 MovieClip Frame 13
call("code1");
Symbol 1203 MovieClip Frame 14
call("code1");
Symbol 1203 MovieClip Frame 15
call("code1");
Symbol 1203 MovieClip Frame 16
call("code1");
Symbol 1203 MovieClip Frame 17
call("code1");
Symbol 1203 MovieClip Frame 18
call("code1");
Symbol 1203 MovieClip Frame 19
_global.oGame.StopSound("power_punch1");
_global.oGame.usePower();
Instance of Symbol 1117 MovieClip "persoBody" in Symbol 1203 MovieClip Frame 28
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1198 MovieClip in Symbol 1203 MovieClip Frame 28
onClipEvent (load) {
this._visible = false;
}
Symbol 1203 MovieClip Frame 37
_global.oPerso.persoIsSuperAttacking = false;
stop();
Symbol 1203 MovieClip Frame 38
_global.oPerso.persoIsLanding = false;
_global.oPerso.persoIsSuperAttacking = true;
call("code1");
Symbol 1203 MovieClip Frame 39
call("code1");
Symbol 1203 MovieClip Frame 40
call("code1");
Symbol 1203 MovieClip Frame 41
call("code1");
Symbol 1203 MovieClip Frame 42
call("code1");
Symbol 1203 MovieClip Frame 43
call("code1");
Symbol 1203 MovieClip Frame 44
call("code1");
Symbol 1203 MovieClip Frame 45
call("code1");
Symbol 1203 MovieClip Frame 46
_global.oGame.usePower();
call("code2");
Symbol 1203 MovieClip Frame 47
_global.oGame.PlaySound("power_scream", 1);
call("code2");
Symbol 1203 MovieClip Frame 48
call("code2");
Symbol 1203 MovieClip Frame 49
call("code2");
Symbol 1203 MovieClip Frame 50
call("code2");
Symbol 1203 MovieClip Frame 51
call("code2");
Symbol 1203 MovieClip Frame 52
call("code2");
Symbol 1203 MovieClip Frame 53
call("code2");
Symbol 1203 MovieClip Frame 54
call("code2");
Symbol 1203 MovieClip Frame 55
call("code2");
Symbol 1203 MovieClip Frame 56
call("code2");
Symbol 1203 MovieClip Frame 57
call("code2");
Symbol 1203 MovieClip Frame 58
call("code2");
Symbol 1203 MovieClip Frame 59
call("code2");
Symbol 1203 MovieClip Frame 60
call("code2");
Symbol 1203 MovieClip Frame 61
call("code2");
Symbol 1203 MovieClip Frame 62
call("code2");
Symbol 1203 MovieClip Frame 63
call("code2");
Symbol 1203 MovieClip Frame 64
call("code2");
Symbol 1203 MovieClip Frame 65
call("code2");
Symbol 1203 MovieClip Frame 66
call("code2");
Symbol 1203 MovieClip Frame 67
call("code2");
Symbol 1203 MovieClip Frame 68
call("code2");
Symbol 1203 MovieClip Frame 69
call("code2");
Symbol 1203 MovieClip Frame 70
call("code2");
Symbol 1203 MovieClip Frame 71
call("code2");
Symbol 1203 MovieClip Frame 72
call("code2");
Symbol 1203 MovieClip Frame 73
call("code2");
Symbol 1203 MovieClip Frame 74
call("code2");
Symbol 1203 MovieClip Frame 75
call("code2");
Symbol 1203 MovieClip Frame 76
call("code2");
Symbol 1203 MovieClip Frame 77
call("code2");
Symbol 1203 MovieClip Frame 78
call("code2");
Symbol 1203 MovieClip Frame 79
_global.oGame.StopSound("power_scream");
Symbol 1203 MovieClip Frame 88
_global.oPerso.persoIsSuperAttacking = false;
stop();
Symbol 1203 MovieClip Frame 89
_global.oGame.usePower();
Symbol 1203 MovieClip Frame 90
_global.oPerso.persoIsLanding = false;
_global.oPerso.persoIsSuperAttacking = true;
call("code");
Instance of Symbol 1201 MovieClip "shield" in Symbol 1203 MovieClip Frame 90
onClipEvent (load) {
_global.oPerso.shield = this;
}
Symbol 1203 MovieClip Frame 91
call("code");
Instance of Symbol 1202 MovieClip in Symbol 1203 MovieClip Frame 91
onClipEvent (load) {
_global.oPerso.sparks = this;
}
Symbol 1203 MovieClip Frame 92
call("code");
Symbol 1203 MovieClip Frame 93
call("code");
Symbol 1203 MovieClip Frame 94
call("code");
Symbol 1203 MovieClip Frame 95
call("code");
Symbol 1203 MovieClip Frame 96
call("code");
Symbol 1203 MovieClip Frame 97
call("code");
Symbol 1203 MovieClip Frame 98
gotoAndPlay ("loop");
Instance of Symbol 1198 MovieClip in Symbol 1203 MovieClip Frame 99
onClipEvent (load) {
this._visible = false;
}
Symbol 1203 MovieClip Frame 100
_global.oPerso.persoIsSuperAttacking = false;
stop();
Symbol 1203 MovieClip Frame 101
if (!_global.KeyListener.xPress) {
gotoAndPlay ("blueEnd");
}
Symbol 1203 MovieClip Frame 102
if (!_global.KeyListener.xPress) {
_global.oPerso.persoIsSuperAttacking = false;
_global.oGame.StopSound("power_punch1");
stop();
}
Symbol 1203 MovieClip Frame 103
if (!_global.KeyListener.xPress) {
_global.oPerso.persoIsSuperAttacking = false;
gotoAndPlay ("yellowEnd");
_global.oGame.StopSound("power_scream");
stop();
}
Symbol 1205 MovieClip Frame 1
if (!_global.oPerso.IsYellow) {
_visible = false;
} else {
_visible = true;
}
Symbol 1205 MovieClip Frame 2
if (!_global.oPerso.IsYellow) {
_visible = false;
} else {
_visible = true;
}
Symbol 1207 MovieClip Frame 1
if (!_global.oPerso.IsBlue) {
_visible = false;
} else {
_visible = true;
}
Symbol 1207 MovieClip Frame 2
if (!_global.oPerso.IsBlue) {
_visible = false;
} else {
_visible = true;
}
Symbol 1209 MovieClip Frame 1
if (!_global.oPerso.IsRed) {
_visible = false;
} else {
_visible = true;
}
Symbol 1209 MovieClip Frame 2
if (!_global.oPerso.IsRed) {
_visible = false;
} else {
_visible = true;
}
Symbol 1210 MovieClip Frame 1
if (!_global.oPerso.IsRed) {
_visible = false;
} else {
_visible = true;
}
Symbol 1210 MovieClip Frame 2
if (!_global.oPerso.IsRed) {
_visible = false;
} else {
_visible = true;
}
Symbol 1212 MovieClip Frame 1
if (!_global.oPerso.IsYellow) {
_visible = false;
} else {
_visible = true;
}
Symbol 1212 MovieClip Frame 2
if (!_global.oPerso.IsYellow) {
_visible = false;
} else {
_visible = true;
}
Symbol 1214 MovieClip Frame 1
if (!_global.oPerso.IsBlue) {
_visible = false;
} else {
_visible = true;
}
Symbol 1214 MovieClip Frame 2
if (!_global.oPerso.IsBlue) {
_visible = false;
} else {
_visible = true;
}
Symbol 1216 MovieClip Frame 1
if (!_global.oPerso.IsRed) {
_visible = false;
} else {
_visible = true;
}
_global.oPerso.persoIsLanding = false;
_global.oPerso.persoIsAttacking = false;
Symbol 1216 MovieClip Frame 2
if (!_global.oPerso.IsRed) {
_visible = false;
} else {
_visible = true;
}
Symbol 1223 MovieClip Frame 1
if (!_global.oPerso.IsYellow) {
_visible = false;
} else {
_visible = true;
}
Symbol 1223 MovieClip Frame 3
if (_global.oPerso.IsYellow) {
_visible = true;
} else {
_visible = false;
}
Symbol 1223 MovieClip Frame 6
if (_global.oPerso.IsYellow) {
_visible = true;
} else {
_visible = false;
}
Symbol 1223 MovieClip Frame 8
if (_global.oPerso.IsYellow) {
_visible = true;
} else {
_visible = false;
}
Symbol 1223 MovieClip Frame 10
if (_global.oPerso.IsYellow) {
_visible = true;
} else {
_visible = false;
}
Symbol 1223 MovieClip Frame 11
gotoAndPlay ("miniloop");
Symbol 1230 MovieClip Frame 1
if (!_global.oPerso.IsBlue) {
_visible = false;
} else {
_visible = true;
}
Symbol 1230 MovieClip Frame 3
if (!_global.oPerso.IsBlue) {
_visible = false;
} else {
_visible = true;
}
Symbol 1230 MovieClip Frame 6
if (!_global.oPerso.IsBlue) {
_visible = false;
} else {
_visible = true;
}
Symbol 1230 MovieClip Frame 8
if (!_global.oPerso.IsBlue) {
_visible = false;
} else {
_visible = true;
}
Symbol 1230 MovieClip Frame 10
if (_global.oPerso.IsBlue) {
_visible = true;
} else {
_visible = false;
}
Symbol 1230 MovieClip Frame 11
gotoAndPlay ("miniloop");
Symbol 1237 MovieClip Frame 1
if (!_global.oPerso.IsRed) {
_visible = false;
} else {
_visible = true;
}
_global.oPerso.persoIsAttacking = true;
Symbol 1237 MovieClip Frame 3
if (!_global.oPerso.IsRed) {
_visible = false;
} else {
_visible = true;
}
Symbol 1237 MovieClip Frame 4
var temp = (Math.floor(Math.random() * 3) + 1);
if (!_global.oPerso.IsYellow) {
switch (temp) {
case 1 :
_global.oGame.PlaySound("power_attack1");
break;
case 2 :
_global.oGame.PlaySound("power_attack2");
break;
case 3 :
_global.oGame.PlaySound("power_attack3");
}
} else {
switch (temp) {
case 1 :
_global.oGame.PlaySound("power_attack1v2");
break;
case 2 :
_global.oGame.PlaySound("power_attack2v2");
break;
case 3 :
_global.oGame.PlaySound("power_attack3v2");
}
}
Instance of Symbol 1125 MovieClip in Symbol 1237 MovieClip Frame 4
onClipEvent (load) {
attackZone = this;
}
Symbol 1237 MovieClip Frame 6
if (!_global.oPerso.IsRed) {
_visible = false;
} else {
_visible = true;
}
Symbol 1237 MovieClip Frame 8
if (!_global.oPerso.IsRed) {
_visible = false;
} else {
_visible = true;
}
Instance of Symbol 1125 MovieClip in Symbol 1237 MovieClip Frame 8
onClipEvent (load) {
attackZone = this;
}
Symbol 1237 MovieClip Frame 10
if (_global.oPerso.IsRed) {
_visible = true;
} else {
_visible = false;
}
Symbol 1237 MovieClip Frame 11
gotoAndPlay ("miniloop");
Symbol 1301 MovieClip Frame 1
if (!_global.oPerso.IsYellow) {
_visible = false;
} else {
_visible = true;
}
Symbol 1361 MovieClip Frame 1
if (!_global.oPerso.IsBlue) {
_visible = false;
} else {
_visible = true;
}
Symbol 1411 MovieClip Frame 1
if (!_global.oPerso.IsRed) {
_visible = false;
} else {
_visible = true;
}
Symbol 1411 MovieClip Frame 2
call("code");
Symbol 1411 MovieClip Frame 3
call("code");
Symbol 1411 MovieClip Frame 4
call("code");
Symbol 1411 MovieClip Frame 5
call("code");
Symbol 1411 MovieClip Frame 6
call("code");
Symbol 1411 MovieClip Frame 7
call("code");
Symbol 1411 MovieClip Frame 8
call("code");
Symbol 1411 MovieClip Frame 9
call("code");
Symbol 1411 MovieClip Frame 10
call("code");
Symbol 1411 MovieClip Frame 11
call("code");
Symbol 1411 MovieClip Frame 12
call("code");
Symbol 1411 MovieClip Frame 13
call("code");
Symbol 1411 MovieClip Frame 14
call("code");
Symbol 1411 MovieClip Frame 15
call("code");
Symbol 1411 MovieClip Frame 16
call("code");
Symbol 1411 MovieClip Frame 17
call("code");
Symbol 1411 MovieClip Frame 18
call("code");
Symbol 1411 MovieClip Frame 19
call("code");
Symbol 1411 MovieClip Frame 20
call("code");
Symbol 1411 MovieClip Frame 21
call("code");
if (_global.KeyListener.rightPress || (_global.KeyListener.leftPress)) {
gotoAndPlay ("loop");
}
Symbol 1411 MovieClip Frame 22
if ((!_global.KeyListener.rightPress) && (!_global.KeyListener.leftPress)) {
_global.oPerso.persoIsRunning = false;
}
Symbol 1412 MovieClip Frame 1
stop();
Symbol 1412 MovieClip Frame 2
_global.oGame.PlaySound("power_switch", 1);
_global.oGame.ChangeVolume("power_switch", 200);
Symbol 1412 MovieClip Frame 4
_global.oGame.StopSound("power_switch");
Symbol 1415 MovieClip Frame 1
if (!_global.oPerso.IsYellow) {
_visible = false;
} else {
_visible = true;
}
Symbol 1418 MovieClip Frame 1
if (!_global.oPerso.IsBlue) {
_visible = false;
} else {
_visible = true;
}
Symbol 1421 MovieClip Frame 1
if (!_global.oPerso.IsRed) {
_visible = false;
} else {
_visible = true;
}
_global.oGame.StopSound("power_punch1");
_global.oGame.StopSound("power_scream");
Symbol 1421 MovieClip Frame 2
if (!_global.oPerso.IsYellow) {
var temp = (Math.floor(Math.random() * 2) + 1);
switch (temp) {
case 1 :
_global.oGame.PlaySound("power_hit1");
break;
case 2 :
_global.oGame.PlaySound("power_hit2");
}
} else {
_global.oGame.PlaySound("power_hit3");
}
Symbol 1421 MovieClip Frame 10
_global.oPerso.persoIsInPain = false;
Symbol 1440 MovieClip Frame 1
if (!_global.oPerso.IsYellow) {
_visible = false;
} else {
_visible = true;
}
Symbol 1459 MovieClip Frame 1
if (!_global.oPerso.IsBlue) {
_visible = false;
} else {
_visible = true;
}
Symbol 1478 MovieClip Frame 1
if (!_global.oPerso.IsRed) {
_visible = false;
} else {
_visible = true;
}
_global.oPerso.persoXSpeed = 0;
_global.oGame.StopSound("power_punch1");
_global.oGame.StopSound("power_scream");
Symbol 1478 MovieClip Frame 22
if (_global.oPerso.persoLife <= 0) {
if (!_global.oPerso.egg2) {
_global.oGame.LoseGame();
}
} else {
_global.oPerso.persoIsInPain = false;
_global.oGame.resetPlay();
}
global.oPerso.persoXSpeed = 0;
stop();
Instance of Symbol 1117 MovieClip "persoBody" in Symbol 1479 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1123 MovieClip "bubble" in Symbol 1479 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 1146 MovieClip "yellow" in Symbol 1479 MovieClip Frame 11
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 1161 MovieClip "blue" in Symbol 1479 MovieClip Frame 11
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 1176 MovieClip "red" in Symbol 1479 MovieClip Frame 11
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 1183 MovieClip "yellow" in Symbol 1479 MovieClip Frame 21
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 1188 MovieClip "blue" in Symbol 1479 MovieClip Frame 21
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 1195 MovieClip "red" in Symbol 1479 MovieClip Frame 21
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 1196 MovieClip "bubble" in Symbol 1479 MovieClip Frame 21
/* no clip actions */
Instance of Symbol 1203 MovieClip "persoPower" in Symbol 1479 MovieClip Frame 31
onClipEvent (load) {
if (_global.oPerso.IsRed) {
this.gotoAndPlay("red");
} else if (_global.oPerso.IsYellow) {
this.gotoAndPlay("yellow");
} else {
this.gotoAndPlay("blue");
}
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 1117 MovieClip "persoBody" in Symbol 1479 MovieClip Frame 41
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1123 MovieClip "bubble" in Symbol 1479 MovieClip Frame 41
/* no clip actions */
Instance of Symbol 1223 MovieClip "yellow" in Symbol 1479 MovieClip Frame 71
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 1230 MovieClip "blue" in Symbol 1479 MovieClip Frame 71
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 1237 MovieClip "red" in Symbol 1479 MovieClip Frame 71
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 1301 MovieClip "yellow" in Symbol 1479 MovieClip Frame 81
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 1361 MovieClip "blue" in Symbol 1479 MovieClip Frame 81
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 1411 MovieClip "red" in Symbol 1479 MovieClip Frame 81
onClipEvent (load) {
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 1415 MovieClip in Symbol 1479 MovieClip Frame 91
onClipEvent (load) {
if (!_global.oPerso.IsYellow) {
this._visible = false;
} else {
this._visible = true;
}
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 1418 MovieClip in Symbol 1479 MovieClip Frame 91
onClipEvent (load) {
if (!_global.oPerso.IsBlue) {
this._visible = false;
} else {
this._visible = true;
}
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 1421 MovieClip in Symbol 1479 MovieClip Frame 91
onClipEvent (load) {
if (!_global.oPerso.IsRed) {
this._visible = false;
} else {
this._visible = true;
}
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 1440 MovieClip in Symbol 1479 MovieClip Frame 101
onClipEvent (load) {
if (!_global.oPerso.IsYellow) {
this._visible = false;
} else {
this._visible = true;
}
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 1459 MovieClip in Symbol 1479 MovieClip Frame 101
onClipEvent (load) {
if (!_global.oPerso.IsBlue) {
this._visible = false;
} else {
this._visible = true;
}
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Instance of Symbol 1478 MovieClip in Symbol 1479 MovieClip Frame 101
onClipEvent (load) {
if (!_global.oPerso.IsRed) {
this._visible = false;
} else {
this._visible = true;
}
_global.oGame.addToPause(this);
}
onClipEvent (unload) {
_global.oGame.removeToPause(this);
}
Symbol 1480 MovieClip Frame 1
stop();
Instance of Symbol 1479 MovieClip "persoAnim" in Symbol 1480 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(100);
_global.oPerso.perso = this;
}
Symbol 1494 MovieClip Frame 120
if (!_global.oGame.freeze) {
_global.oGame.AddScore(10);
}
Instance of Symbol 1491 MovieClip "chrono" in Symbol 1495 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
countAmount = 20;
}
onClipEvent (load) {
var startTime = getTimer();
var countAmount;
var elapsed = 0;
}
onClipEvent (enterFrame) {
if (!_global.oGame.freeze) {
elapsed = getTimer() - startTime;
if (elapsed <= (_global.oGame.maxTime * 1000)) {
counterOutput = _global.oGame.maxTime - Math.floor(elapsed / 1000);
this.sec = int(counterOutput % 60);
this.min = int(counterOutput / 60);
if (sec < 10) {
sec = "0" + sec;
}
counterOutput = this.min + this.sec;
} else {
this.sec = "00";
counterOutput = _global.oGame.maxTime - Math.floor(elapsed / 1000);
startTime = getTimer();
_root.death();
}
}
}
Symbol 1504 MovieClip Frame 1
stop();
Symbol 1504 MovieClip Frame 100
stop();
Symbol 1504 MovieClip Frame 101
stop();
Symbol 1520 MovieClip Frame 1
stop();
Symbol 1520 MovieClip Frame 2
stop();
Symbol 1520 MovieClip Frame 3
stop();
Symbol 1536 MovieClip Frame 1
stop();
Symbol 1536 MovieClip Frame 2
stop();
Symbol 1536 MovieClip Frame 3
stop();
Symbol 1536 MovieClip Frame 4
stop();
Symbol 1536 MovieClip Frame 5
stop();
Symbol 1536 MovieClip Frame 6
stop();
Symbol 1536 MovieClip Frame 7
stop();
Symbol 1536 MovieClip Frame 8
stop();
Symbol 1536 MovieClip Frame 9
stop();
Symbol 1536 MovieClip Frame 10
stop();
Symbol 1536 MovieClip Frame 11
stop();
Symbol 1542 MovieClip Frame 1
stop();
Instance of Symbol 1504 MovieClip "lifeBar" in Symbol 1542 MovieClip Frame 1
onClipEvent (load) {
_global.oGame.lifeBar = this;
}
Instance of Symbol 1504 MovieClip "powerBar" in Symbol 1542 MovieClip Frame 1
onClipEvent (load) {
_global.oGame.powerBar = this;
_global.oPerso.powerInterval = setInterval(_global.oPerso, "powerBoost", 3000);
}
onClipEvent (unload) {
clearInterval(_global.oPerso.powerInterval);
}
Instance of Symbol 1520 MovieClip in Symbol 1542 MovieClip Frame 1
onClipEvent (load) {
if (_global.oPerso.IsBlue) {
this.gotoAndStop(1);
} else if (_global.oPerso.IsRed) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (_global.oPerso.IsBlue) {
this.gotoAndStop(1);
} else if (_global.oPerso.IsRed) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(3);
}
}
Symbol 1542 MovieClip Frame 2
stop();
this.lifeCounter._visible = false;
Symbol 1551 MovieClip Frame 1
stop();
Symbol 1551 MovieClip Frame 2
stop();