Frame 1
function fsdPlayAgain() {
var _local2 = _global;
stopAllSounds();
_local2.level = 1;
_local2.trueLevel = 1;
theDoge.unloadMovie();
_local2.musicIsPlaying = false;
_local2.patchRestart = true;
gotoAndStop("titlecard");
}
_quality = "MEDIUM";
_global.musicIsPlaying = false;
Stage.showMenu = false;
_focusrect = false;
_root.eventID = "jetix_witchrescue_5656";
playerScore = 0;
_global.mainTimeline = this;
_global.level = 1;
_global.trueLevel = 1;
_global.lives = 3;
_global.freeze = true;
_global.gameNumber = 0;
_root.score = 0;
_global.PlaySound = function (theSound, loop) {
sounds.startsound(theSound, loop);
};
_global.StopSound = function (theSound) {
sounds.Stopsound(theSound);
};
_global.ChangeVolume = function (theSound, volume) {
sounds.SetSoundVolume(theSound, volume);
};
stop();
_global.allSounds = new Sound(_root);
Instance of Symbol 2 MovieClip in Frame 1
onClipEvent (load) {
this._quality = "HIGH";
}
Instance of Symbol 21 MovieClip in Frame 1
onClipEvent (load) {
_parent.txtPercent.text = 0;
}
onClipEvent (enterFrame) {
if (_parent.getBytesLoaded() == _parent.getBytesTotal()) {
_parent.gotoAndStop("titlecard");
} else {
percent = Math.round(100 * (_parent.getBytesLoaded() / _parent.getBytesTotal()));
_parent.loadBar.gotoAndStop(percent);
_parent.txtPercent.text = percent;
}
}
Frame 7
_global.gameNumber++;
_global.level = Math.ceil(Math.random() * 5);
_global.firstLevel = (_global.lastLevel = _global.level);
tempLevel = Math.ceil(Math.random() * 4) + 1;
while ((tempLevel == _global.lastLevel) or (tempLevel == _global.firstLevel)) {
tempLevel = Math.ceil(Math.random() * 4) + 1;
}
if ((tempLevel == 4) and (_global.firstLevel == 5)) {
tempLevel = Math.ceil(Math.random() * 2) + 1;
while ((tempLevel == _global.lastLevel) or (tempLevel == _global.firstLevel)) {
tempLevel = Math.ceil(Math.random() * 2) + 1;
}
} else if ((tempLevel == 5) and (_global.firstLevel == 4)) {
tempLevel = Math.ceil(Math.random() * 2) + 1;
while ((tempLevel == _global.lastLevel) or (tempLevel == _global.firstLevel)) {
tempLevel = Math.ceil(Math.random() * 2) + 1;
}
}
_global.secondLevel = tempLevel;
tempLevel2 = Math.ceil(Math.random() * 4) + 1;
while (((tempLevel2 == _global.lastLevel) or (tempLevel2 == _global.firstLevel)) or (tempLevel2 == _global.secondLevel)) {
tempLevel2 = Math.ceil(Math.random() * 4) + 1;
}
if ((tempLevel2 == 4) and (_global.firstLevel == 5)) {
tempLevel2 = Math.ceil(Math.random() * 2) + 1;
while (((tempLevel2 == _global.lastLevel) or (tempLevel2 == _global.firstLevel)) or (tempLevel2 == _global.secondLevel)) {
tempLevel2 = Math.ceil(Math.random() * 2) + 1;
}
} else if ((tempLevel2 == 5) and (_global.firstLevel == 4)) {
tempLevel2 = Math.ceil(Math.random() * 2) + 1;
while (((tempLevel2 == _global.lastLevel) or (tempLevel2 == _global.firstLevel)) or (tempLevel2 == _global.secondLevel)) {
tempLevel2 = Math.ceil(Math.random() * 2) + 1;
}
}
_global.thirdLevel = tempLevel2;
_global.lives = 3;
_root.score = 0;
_global.energy = 1;
_global.timeStop = false;
_global.inGame = false;
clearInterval(_root.mcGame.createEnemyInterval);
nextFrame();
if (_global.musicIsPlaying == false) {
_global.PlaySound("music", 99999);
_global.musicIsPlaying = true;
}
acidLoop = new Sound("acidLoop");
acidLoop.attachSound("acidLoop");
acidLoop.start(0, 500);
Frame 13
_global.inMenu = false;
Instance of Symbol 1181 MovieClip "instruc" in Frame 13
onClipEvent (load) {
this._quality = "HIGH";
if (_root.instruction != "") {
temp = _root.instruction;
_root.instruction = "";
this.gotoAndStop(temp);
}
}
Frame 17
_quality = "MEDIUM";
_global.inMenu = false;
Frame 21
_global.inMenu = true;
Frame 26
out.play();
_global.inMenu = false;
Frame 31
_global.freeze = true;
_global.inMenu = false;
Instance of Symbol 2 MovieClip in Frame 31
onClipEvent (load) {
this._quality = "HIGH";
}
Instance of Symbol 1256 MovieClip in Frame 31
onClipEvent (load) {
this.gotoAndStop(_global.level);
}
Frame 32
_root.gotoAndStop("play");
Frame 36
_global.freeze = true;
_global.inMenu = false;
Instance of Symbol 1273 MovieClip in Frame 36
onClipEvent (load) {
this.gotoAndStop(_global.level);
}
Frame 37
_root.gotoAndStop("play");
Frame 40
_global.StopSound("portalLoop");
_global.StopSound("fireLoop");
_global.StopSound("acidLoop");
this.attachMovie("boss", "boss", 1);
Instance of Symbol 2 MovieClip in Frame 40
onClipEvent (load) {
this._quality = "HIGH";
}
Frame 44
playerScore = _root.score;
Frame 48
playerScore = _root.score;
_global.StopSound("acidLoop");
_global.StopSound("fireLoop");
_global.StopSound("portalLoop");
Instance of Symbol 1281 MovieClip in Frame 48
onClipEvent (load) {
this._quality = "HIGH";
}
Frame 52
playerScore = _root.score;
theDoge.loadMovie(_level0.fsd, 1);
stop();
Frame 56
_global.gameNumber++;
_global.energy = 1;
_global.lives--;
_global.patchRestart = true;
if (_global.lives == 0) {
gotoAndStop ("lose");
} else {
gotoAndStop ("play");
}
Symbol 6005 MovieClip Frame 4
gotoAndPlay ("loop");
Symbol 6006 MovieClip [allshot] Frame 1
gotoAndStop(_global.selectedWitch);
stop();
Symbol 6028 Button
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
on (release) {
gotoAndStop(_currentframe + 1);
}
Symbol 6199 Button
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
on (release) {
_global.playSound("btnclick", 1);
if (_global.level == "boss") {
gotoAndStop ("menu");
} else {
_global.root.gotoAndStop(2);
this.gotoAndStop("over");
}
}
Symbol 6228 Button
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
on (release) {
Key.removeListener(_global.KeyListener2);
stopAllSounds();
_global.musicIsPlaying = false;
_global.level = 1;
_global.trueLevel = 1;
_global.gameNumber = 1;
_global.patchRestart = true;
_global.playSound("btnclick", 1);
_parent.gotoAndStop(1);
_global.mainTimeline.gotoAndStop("titlecard");
this.gotoAndStop("over");
}
Symbol 6231 Button
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
on (release) {
_global.playSound("btnclick", 1);
}
Symbol 6268 Button
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
on (release) {
stopAllSounds();
_global.musicIsPlaying = false;
_global.level = 1;
_global.trueLevel = 1;
_global.gameNumber = 1;
_global.patchRestart = true;
_global.playSound("btnclick", 1);
_parent.gotoAndStop(1);
_global.mainTimeline.gotoAndStop("titlecard");
this.gotoAndStop("over");
}
Symbol 6276 Button
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
on (release) {
_global.playSound("btnclick", 1);
_global.root.instruction.gotoAndStop(_currentframe + 1);
}
Symbol 6279 Button
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
on (release) {
_global.playSound("btnclick", 1);
_global.root.instruction.gotoAndStop("lastInstructions");
}
Symbol 6282 Button
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
on (release) {
_global.playSound("btnclick", 1);
_global.root.instruction.gotoAndStop("over");
_global.PauseGame();
}
Symbol 6286 Button
on (release) {
_global.playSound("btnclick", 1);
_global.root.instruction.gotoAndStop(_currentframe - 1);
}
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
Symbol 6289 Button
on (release) {
_global.playSound("btnclick", 1);
_global.allSounds.setVolume(100);
_global.musicIsPlaying = false;
stopAllSounds();
_global.root.instruction.gotoAndStop("badEnd");
}
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
Symbol 6290 MovieClip Frame 1
stop();
Instance of Symbol 6009 MovieClip "preloader" in Symbol 6290 MovieClip Frame 1
onClipEvent (load) {
_parent.btnPlay._visible = false;
}
onClipEvent (enterFrame) {
if (_parent._framesloaded >= 2) {
_parent.gotoAndStop(_parent._currentframe + 1);
}
}
Instance of Symbol 6009 MovieClip "preloader" in Symbol 6290 MovieClip Frame 2
onClipEvent (load) {
_parent.btnPlay._visible = false;
}
onClipEvent (enterFrame) {
if (_parent.getBytesLoaded() == _parent.getBytesTotal()) {
this._visible = false;
_parent.btnPlay._visible = true;
}
}
Symbol 6290 MovieClip Frame 4
score = _root.score;
Symbol 6290 MovieClip Frame 5
score = _root.score;
_global.StopSound("acidLoop");
_global.StopSound("fireLoop");
_global.StopSound("portalLoop");
Symbol 6334 MovieClip Frame 1
this.onEnterFrame = function () {
if (!_global.bossIsShooting) {
_global.bossIsAttacking = true;
if (!_parent.shield._visible) {
_parent.shield._visible = true;
}
delete this.onEnterFrame;
}
};
Symbol 6336 MovieClip Frame 1
this._visible = false;
Symbol 6348 MovieClip Frame 2
if (_parent._visible) {
_global.playSound("bouclierHurt", 1);
}
Symbol 6348 MovieClip Frame 8
_parent.gotoAndStop("idle");
Symbol 6349 MovieClip Frame 1
_global.playSound("bouclierDispear", 1);
Symbol 6349 MovieClip Frame 6
stop();
Symbol 6350 MovieClip Frame 1
_global.playSound("bouclierAppear", 1);
Symbol 6350 MovieClip Frame 18
_parent.gotoAndStop("idle");
Symbol 6351 MovieClip Frame 1
stop();
Instance of Symbol 6345 MovieClip in Symbol 6351 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (unload) {
}
Symbol 6351 MovieClip Frame 15
stop();
Instance of Symbol 6348 MovieClip in Symbol 6351 MovieClip Frame 15
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6351 MovieClip Frame 28
stop();
Instance of Symbol 6349 MovieClip in Symbol 6351 MovieClip Frame 28
onClipEvent (load) {
}
onClipEvent (unload) {
}
Symbol 6351 MovieClip Frame 44
stop();
Instance of Symbol 6350 MovieClip in Symbol 6351 MovieClip Frame 44
onClipEvent (load) {
}
onClipEvent (unload) {
}
Symbol 6378 MovieClip Frame 14
stop();
Symbol 6379 MovieClip Frame 21
gotoAndPlay ("idle");
Symbol 6379 MovieClip Frame 22
_global.shotDown = true;
stop();
Symbol 6380 MovieClip Frame 1
stop();
Symbol 6384 MovieClip Frame 9
stop();
Symbol 6385 MovieClip Frame 1
stop();
Symbol 6385 MovieClip Frame 2
_global.shotDown = true;
stop();
Symbol 6386 MovieClip Frame 1
stop();
Symbol 6390 MovieClip Frame 14
stop();
Symbol 6391 MovieClip Frame 99
gotoAndPlay ("idle");
Symbol 6391 MovieClip Frame 100
_global.shotDown = true;
stop();
Symbol 6392 MovieClip Frame 1
stop();
Symbol 6396 MovieClip Frame 9
stop();
Symbol 6397 MovieClip Frame 1
stop();
Symbol 6397 MovieClip Frame 2
_global.shotDown = true;
stop();
Symbol 6398 MovieClip Frame 1
stop();
Symbol 6406 MovieClip Frame 11
stop();
Symbol 6407 MovieClip Frame 1
stop();
Symbol 6407 MovieClip Frame 2
_global.shotDown = true;
stop();
Symbol 6408 MovieClip Frame 1
stop();
Symbol 6409 MovieClip Frame 1
gotoAndStop(_global.attackNB);
stop();
Symbol 6418 MovieClip Frame 25
_global.bossIsShooting = true;
_parent._parent.bossShots.gotoAndStop(1);
Symbol 6418 MovieClip Frame 39
_global.root.bossShots.play();
Symbol 6418 MovieClip Frame 50
_global.boss.gotoAndStop("idle");
Symbol 6427 MovieClip Frame 1
_global.bossIsMad = true;
Instance of Symbol 6426 MovieClip in Symbol 6427 MovieClip Frame 7
onClipEvent (load) {
}
onClipEvent (unload) {
}
Symbol 6427 MovieClip Frame 36
_global.bossIsMad = false;
_parent.shield.gotoAndStop("on");
_parent.gotoAndStop("idle");
Symbol 6443 MovieClip Frame 1
_parent.shield._visible = false;
Symbol 6443 MovieClip Frame 20
_parent.shield.gotoAndStop("on");
_parent.gotoAndStop("idle");
Symbol 6457 MovieClip Frame 1
_parent.shield._visible = false;
Symbol 6457 MovieClip Frame 52
_global.root.instruction.gotoAndStop("goodEnd");
_global.root.gotoAndStop(1);
Symbol 6458 MovieClip Frame 1
stop();
Instance of Symbol 6334 MovieClip in Symbol 6458 MovieClip Frame 1
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Instance of Symbol 6336 MovieClip "boss_controller" in Symbol 6458 MovieClip Frame 1
onClipEvent (load) {
_global.level = "boss";
_global.bossIsShooting = false;
_global.bossEnergy = 100;
_global.bossIsAttacking = false;
_global.bossIsHurt = false;
_global.bossIsDying = false;
_global.attackNB = 0;
_global.attackWitch = 0;
_global.shotDown = false;
}
onClipEvent (enterFrame) {
if (!_global.freeze) {
if (_global.bossIsAttacking) {
_global.bossIsAttacking = false;
var totEnergy = 0;
var i = 1;
while (i < 6) {
totEnergy = totEnergy + eval ("_global.witch" + i).energy;
i++;
}
if (totEnergy > 0) {
_global.attackWitch = Math.round(Math.random() * 4) + 1;
do {
_global.attackNB = Math.round(Math.random() * 4) + 1;
if ((_global.attackNB == 1) && (_global.witch1.energy <= 0)) {
_global.attackNB = 0;
} else if ((_global.attackNB == 2) && (_global.witch2.energy <= 0)) {
_global.attackNB = 0;
} else if ((_global.attackNB == 3) && (_global.witch3.energy <= 0)) {
_global.attackNB = 0;
} else if ((_global.attackNB == 4) && (_global.witch4.energy <= 0)) {
_global.attackNB = 0;
} else if ((_global.attackNB == 5) && (_global.witch5.energy <= 0)) {
_global.attackNB = 0;
}
} while (_global.attackNB == 0);
_global.boss.gotoAndStop("attack");
} else {
_global.boss.gotoAndStop("idle");
}
}
}
}
Symbol 6458 MovieClip Frame 11
stop();
Instance of Symbol 6418 MovieClip in Symbol 6458 MovieClip Frame 11
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6458 MovieClip Frame 21
stop();
Instance of Symbol 6427 MovieClip in Symbol 6458 MovieClip Frame 21
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6458 MovieClip Frame 31
stop();
Instance of Symbol 6443 MovieClip in Symbol 6458 MovieClip Frame 31
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6458 MovieClip Frame 41
Key.addListener(_global.KeyListener2);
_global.freeze = true;
stop();
Instance of Symbol 6457 MovieClip in Symbol 6458 MovieClip Frame 41
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6459 MovieClip Frame 26
_global.witchHurt();
stop();
Symbol 6460 MovieClip Frame 26
_global.witchHurt();
stop();
Symbol 6461 MovieClip Frame 26
_global.witchHurt();
stop();
Symbol 6462 MovieClip Frame 26
_global.witchHurt();
stop();
Symbol 6463 MovieClip Frame 26
_global.witchHurt();
stop();
Symbol 6464 MovieClip Frame 1
if (_global.attackWitch == 1) {
gotoAndPlay ("attack1");
} else if (_global.attackWitch == 2) {
gotoAndPlay ("attack2");
} else if (_global.attackWitch == 3) {
gotoAndPlay ("attack3");
} else if (_global.attackWitch == 4) {
gotoAndPlay ("attack4");
} else if (_global.attackWitch == 5) {
gotoAndPlay ("attack5");
}
Instance of Symbol 6379 MovieClip in Symbol 6464 MovieClip Frame 1
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6464 MovieClip Frame 9
stop();
Instance of Symbol 6459 MovieClip "attack" in Symbol 6464 MovieClip Frame 9
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6464 MovieClip Frame 17
stop();
Instance of Symbol 6460 MovieClip "attack" in Symbol 6464 MovieClip Frame 17
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6464 MovieClip Frame 25
stop();
Instance of Symbol 6461 MovieClip "attack" in Symbol 6464 MovieClip Frame 25
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6464 MovieClip Frame 33
stop();
Instance of Symbol 6462 MovieClip "attack" in Symbol 6464 MovieClip Frame 33
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6464 MovieClip Frame 42
stop();
Instance of Symbol 6463 MovieClip "attack" in Symbol 6464 MovieClip Frame 42
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6465 MovieClip Frame 26
_global.witchHurt();
stop();
Symbol 6466 MovieClip Frame 26
_global.witchHurt();
stop();
Symbol 6467 MovieClip Frame 26
_global.witchHurt();
stop();
Symbol 6468 MovieClip Frame 26
_global.witchHurt();
stop();
Symbol 6469 MovieClip Frame 26
_global.witchHurt();
stop();
Symbol 6470 MovieClip Frame 1
if (_global.attackWitch == 1) {
gotoAndPlay ("attack1");
} else if (_global.attackWitch == 2) {
gotoAndPlay ("attack2");
} else if (_global.attackWitch == 3) {
gotoAndPlay ("attack3");
} else if (_global.attackWitch == 4) {
gotoAndPlay ("attack4");
} else if (_global.attackWitch == 5) {
gotoAndPlay ("attack5");
}
Instance of Symbol 6385 MovieClip in Symbol 6470 MovieClip Frame 1
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6470 MovieClip Frame 9
stop();
Instance of Symbol 6465 MovieClip "attack" in Symbol 6470 MovieClip Frame 9
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6470 MovieClip Frame 17
stop();
Instance of Symbol 6466 MovieClip "attack" in Symbol 6470 MovieClip Frame 17
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6470 MovieClip Frame 25
stop();
Instance of Symbol 6467 MovieClip "attack" in Symbol 6470 MovieClip Frame 25
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6470 MovieClip Frame 33
stop();
Instance of Symbol 6468 MovieClip "attack" in Symbol 6470 MovieClip Frame 33
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6470 MovieClip Frame 42
stop();
Instance of Symbol 6469 MovieClip in Symbol 6470 MovieClip Frame 42
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6471 MovieClip Frame 26
_global.witchHurt();
stop();
Symbol 6472 MovieClip Frame 26
_global.witchHurt();
stop();
Symbol 6473 MovieClip Frame 26
_global.witchHurt();
stop();
Symbol 6474 MovieClip Frame 26
_global.witchHurt();
stop();
Symbol 6475 MovieClip Frame 26
_global.witchHurt();
stop();
Symbol 6476 MovieClip Frame 1
if (_global.attackWitch == 1) {
gotoAndPlay ("attack1");
} else if (_global.attackWitch == 2) {
gotoAndPlay ("attack2");
} else if (_global.attackWitch == 3) {
gotoAndPlay ("attack3");
} else if (_global.attackWitch == 4) {
gotoAndPlay ("attack4");
} else if (_global.attackWitch == 5) {
gotoAndPlay ("attack5");
}
Instance of Symbol 6391 MovieClip in Symbol 6476 MovieClip Frame 1
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6476 MovieClip Frame 9
stop();
Instance of Symbol 6471 MovieClip "attack" in Symbol 6476 MovieClip Frame 9
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6476 MovieClip Frame 17
stop();
Instance of Symbol 6472 MovieClip "attack" in Symbol 6476 MovieClip Frame 17
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6476 MovieClip Frame 25
stop();
Instance of Symbol 6473 MovieClip "attack" in Symbol 6476 MovieClip Frame 25
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6476 MovieClip Frame 33
stop();
Instance of Symbol 6474 MovieClip "attack" in Symbol 6476 MovieClip Frame 33
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6476 MovieClip Frame 42
stop();
Instance of Symbol 6475 MovieClip in Symbol 6476 MovieClip Frame 42
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6477 MovieClip Frame 26
_global.witchHurt();
stop();
Symbol 6478 MovieClip Frame 26
_global.witchHurt();
stop();
Symbol 6479 MovieClip Frame 26
_global.witchHurt();
stop();
Symbol 6480 MovieClip Frame 26
_global.witchHurt();
stop();
Symbol 6481 MovieClip Frame 26
_global.witchHurt();
stop();
Symbol 6482 MovieClip Frame 1
if (_global.attackWitch == 1) {
gotoAndPlay ("attack1");
} else if (_global.attackWitch == 2) {
gotoAndPlay ("attack2");
} else if (_global.attackWitch == 3) {
gotoAndPlay ("attack3");
} else if (_global.attackWitch == 4) {
gotoAndPlay ("attack4");
} else if (_global.attackWitch == 5) {
gotoAndPlay ("attack5");
}
Instance of Symbol 6397 MovieClip in Symbol 6482 MovieClip Frame 1
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6482 MovieClip Frame 9
stop();
Instance of Symbol 6477 MovieClip "attack" in Symbol 6482 MovieClip Frame 9
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6482 MovieClip Frame 17
stop();
Instance of Symbol 6478 MovieClip "attack" in Symbol 6482 MovieClip Frame 17
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6482 MovieClip Frame 25
stop();
Instance of Symbol 6479 MovieClip "attack" in Symbol 6482 MovieClip Frame 25
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6482 MovieClip Frame 33
stop();
Instance of Symbol 6480 MovieClip "attack" in Symbol 6482 MovieClip Frame 33
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6482 MovieClip Frame 42
stop();
Instance of Symbol 6481 MovieClip in Symbol 6482 MovieClip Frame 42
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6483 MovieClip Frame 26
_global.witchHurt();
stop();
Symbol 6484 MovieClip Frame 26
_global.witchHurt();
stop();
Symbol 6485 MovieClip Frame 26
_global.witchHurt();
stop();
Symbol 6486 MovieClip Frame 26
_global.witchHurt();
stop();
Symbol 6487 MovieClip Frame 26
_global.witchHurt();
stop();
Symbol 6488 MovieClip Frame 1
if (_global.attackWitch == 1) {
gotoAndPlay ("attack1");
} else if (_global.attackWitch == 2) {
gotoAndPlay ("attack2");
} else if (_global.attackWitch == 3) {
gotoAndPlay ("attack3");
} else if (_global.attackWitch == 4) {
gotoAndPlay ("attack4");
} else if (_global.attackWitch == 5) {
gotoAndPlay ("attack5");
}
Instance of Symbol 6407 MovieClip in Symbol 6488 MovieClip Frame 1
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6488 MovieClip Frame 9
stop();
Instance of Symbol 6483 MovieClip "attack" in Symbol 6488 MovieClip Frame 9
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6488 MovieClip Frame 17
stop();
Instance of Symbol 6484 MovieClip "attack" in Symbol 6488 MovieClip Frame 17
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6488 MovieClip Frame 25
stop();
Instance of Symbol 6485 MovieClip "attack" in Symbol 6488 MovieClip Frame 25
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6488 MovieClip Frame 33
stop();
Instance of Symbol 6486 MovieClip "attack" in Symbol 6488 MovieClip Frame 33
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6488 MovieClip Frame 42
stop();
Instance of Symbol 6487 MovieClip "attack" in Symbol 6488 MovieClip Frame 42
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6489 MovieClip Frame 1
stop();
Symbol 6489 MovieClip Frame 2
gotoAndStop(_global.attackNB + 2);
Instance of Symbol 6464 MovieClip in Symbol 6489 MovieClip Frame 3
onClipEvent (load) {
_global.shot = this;
_global.playSound("wind", 6);
}
onClipEvent (unload) {
_global.stopSound("wind");
}
Instance of Symbol 6470 MovieClip in Symbol 6489 MovieClip Frame 4
onClipEvent (load) {
_global.shot = this;
_global.playSound("fireLoop", 999);
_global.changeVolume("fireLoop", 50);
}
onClipEvent (unload) {
_global.stopSound("fireLoop");
}
Instance of Symbol 6476 MovieClip in Symbol 6489 MovieClip Frame 5
onClipEvent (load) {
_global.shot = this;
_global.playSound("portalLoop", 999);
_global.changeVolume("portalLoop", 50);
}
onClipEvent (unload) {
_global.stopSound("portalLoop");
}
Instance of Symbol 6482 MovieClip in Symbol 6489 MovieClip Frame 6
onClipEvent (load) {
_global.shot = this;
_global.playSound("acidLoop", 999);
}
onClipEvent (unload) {
_global.stopSound("acidLoop");
}
Instance of Symbol 6488 MovieClip in Symbol 6489 MovieClip Frame 7
onClipEvent (load) {
_global.shot = this;
}
Symbol 6535 MovieClip Frame 1
_global.witchIsHurt = 1;
Symbol 6535 MovieClip Frame 25
_global.witchIsHurt = 0;
_parent.gotoAndPlay("idle");
Symbol 6550 MovieClip Frame 6
_global.attack(40, 200, _root._xmouse, _root._ymouse);
Symbol 6550 MovieClip Frame 15
_global.witchIsAttacking = false;
_parent.gotoAndPlay("idle");
Symbol 6558 MovieClip Frame 6
_global.attack(120, 200, _root._xmouse, _root._ymouse);
Symbol 6558 MovieClip Frame 15
_global.witchIsAttacking = false;
_parent.gotoAndPlay("idle");
Symbol 6561 MovieClip Frame 33
_global.removeToPause(this);
_global.loseGame();
stop();
Symbol 6562 MovieClip Frame 12
_parent.gotoAndPlay("idle");
Symbol 6563 MovieClip Frame 1
stop();
Instance of Symbol 6509 MovieClip "glow" in Symbol 6563 MovieClip Frame 1
onClipEvent (load) {
_global.witch1.glow = this;
_visible = false;
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6563 MovieClip Frame 8
_global.playSound("hurt", 1);
stop();
Instance of Symbol 6535 MovieClip in Symbol 6563 MovieClip Frame 8
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6563 MovieClip Frame 19
stop();
Instance of Symbol 6550 MovieClip in Symbol 6563 MovieClip Frame 19
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6563 MovieClip Frame 31
stop();
Instance of Symbol 6558 MovieClip in Symbol 6563 MovieClip Frame 31
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6563 MovieClip Frame 45
_global.playSound("death", 1);
stop();
Instance of Symbol 6561 MovieClip in Symbol 6563 MovieClip Frame 45
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Instance of Symbol 6562 MovieClip in Symbol 6563 MovieClip Frame 84
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6599 MovieClip Frame 1
_global.witchIsHurt = 2;
Symbol 6599 MovieClip Frame 25
_global.witchIsHurt = 0;
_parent.gotoAndPlay("idle");
Symbol 6612 MovieClip Frame 6
_global.attack(155, 200, _root._xmouse, _root._ymouse);
Symbol 6612 MovieClip Frame 15
_global.witchIsAttacking = false;
_parent.gotoAndPlay("idle");
Symbol 6621 MovieClip Frame 6
_global.attack(240, 200, _root._xmouse, _root._ymouse);
Symbol 6621 MovieClip Frame 15
_global.witchIsAttacking = false;
_parent.gotoAndPlay("idle");
Symbol 6624 MovieClip Frame 33
_global.removeToPause(this);
_global.loseGame();
stop();
Symbol 6626 MovieClip Frame 11
_parent.gotoAndPlay("idle");
Symbol 6627 MovieClip Frame 1
stop();
Instance of Symbol 6509 MovieClip "glow" in Symbol 6627 MovieClip Frame 1
onClipEvent (load) {
_global.witch2.glow = this;
_visible = false;
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6627 MovieClip Frame 8
_global.playSound("hurt", 1);
stop();
Instance of Symbol 6599 MovieClip in Symbol 6627 MovieClip Frame 8
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6627 MovieClip Frame 33
stop();
Instance of Symbol 6612 MovieClip in Symbol 6627 MovieClip Frame 33
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6627 MovieClip Frame 49
stop();
Instance of Symbol 6621 MovieClip in Symbol 6627 MovieClip Frame 49
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6627 MovieClip Frame 66
_global.playSound("death", 1);
stop();
Instance of Symbol 6624 MovieClip in Symbol 6627 MovieClip Frame 66
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6627 MovieClip Frame 113
stop();
Instance of Symbol 6626 MovieClip in Symbol 6627 MovieClip Frame 113
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6650 MovieClip Frame 1
_global.witchIsHurt = 3;
Symbol 6650 MovieClip Frame 25
_global.witchIsHurt = 0;
_parent.gotoAndPlay("idle");
Instance of Symbol 6640 MovieClip in Symbol 6660 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (unload) {
}
Symbol 6660 MovieClip Frame 6
_global.attack(270, 200, _root._xmouse, _root._ymouse);
Symbol 6660 MovieClip Frame 15
_global.witchIsAttacking = false;
_parent.gotoAndPlay("idle");
Symbol 6666 MovieClip Frame 6
_global.attack(350, 200, _root._xmouse, _root._ymouse);
Symbol 6666 MovieClip Frame 15
_global.witchIsAttacking = false;
_parent.gotoAndPlay("idle");
Symbol 6669 MovieClip Frame 33
_global.removeToPause(this);
_global.loseGame();
stop();
Symbol 6670 MovieClip Frame 12
_parent.gotoAndPlay("idle");
Symbol 6671 MovieClip Frame 1
stop();
Instance of Symbol 6509 MovieClip "glow" in Symbol 6671 MovieClip Frame 1
onClipEvent (load) {
_global.witch3.glow = this;
_visible = false;
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6671 MovieClip Frame 8
_global.playSound("hurt", 1);
stop();
Instance of Symbol 6650 MovieClip in Symbol 6671 MovieClip Frame 8
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6671 MovieClip Frame 33
stop();
Instance of Symbol 6660 MovieClip in Symbol 6671 MovieClip Frame 33
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6671 MovieClip Frame 49
stop();
Instance of Symbol 6666 MovieClip in Symbol 6671 MovieClip Frame 49
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6671 MovieClip Frame 66
_global.playSound("death", 1);
stop();
Instance of Symbol 6669 MovieClip in Symbol 6671 MovieClip Frame 66
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6671 MovieClip Frame 81
stop();
Instance of Symbol 6670 MovieClip in Symbol 6671 MovieClip Frame 81
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6704 MovieClip Frame 1
_global.witchIsHurt = 4;
Symbol 6704 MovieClip Frame 25
_global.witchIsHurt = 0;
_parent.gotoAndPlay("idle");
Symbol 6706 MovieClip Frame 12
_parent.gotoAndPlay("idle");
Symbol 6716 MovieClip Frame 6
_global.attack(415, 200, _root._xmouse, _root._ymouse);
Symbol 6716 MovieClip Frame 15
_global.witchIsAttacking = false;
_parent.gotoAndPlay("idle");
Symbol 6724 MovieClip Frame 6
_global.attack(335, 200, _root._xmouse, _root._ymouse);
Symbol 6724 MovieClip Frame 15
_global.witchIsAttacking = false;
_parent.gotoAndPlay("idle");
Symbol 6725 MovieClip Frame 34
_global.removeToPause(this);
_global.loseGame();
stop();
Symbol 6726 MovieClip Frame 1
stop();
Instance of Symbol 6509 MovieClip "glow" in Symbol 6726 MovieClip Frame 1
onClipEvent (load) {
_global.witch4.glow = this;
_visible = false;
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6726 MovieClip Frame 13
_global.playSound("hurt", 1);
stop();
Instance of Symbol 6704 MovieClip in Symbol 6726 MovieClip Frame 13
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6726 MovieClip Frame 26
stop();
Instance of Symbol 6706 MovieClip in Symbol 6726 MovieClip Frame 26
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6726 MovieClip Frame 38
stop();
Instance of Symbol 6716 MovieClip in Symbol 6726 MovieClip Frame 38
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6726 MovieClip Frame 54
stop();
Instance of Symbol 6724 MovieClip in Symbol 6726 MovieClip Frame 54
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6726 MovieClip Frame 71
_global.playSound("death", 1);
stop();
Instance of Symbol 6725 MovieClip in Symbol 6726 MovieClip Frame 71
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6744 MovieClip Frame 1
_global.witchIsHurt = 5;
Symbol 6744 MovieClip Frame 25
_global.witchIsHurt = 0;
_parent.gotoAndPlay("idle");
Symbol 6748 MovieClip Frame 11
_parent.gotoAndPlay("idle");
Symbol 6756 MovieClip Frame 6
_global.attack(540, 200, _root._xmouse, _root._ymouse);
Symbol 6756 MovieClip Frame 15
_global.witchIsAttacking = false;
_parent.gotoAndPlay("idle");
Symbol 6760 MovieClip Frame 6
_global.attack(455, 200, _root._xmouse, _root._ymouse);
Symbol 6760 MovieClip Frame 15
_global.witchIsAttacking = false;
_parent.gotoAndPlay("idle");
Symbol 6761 MovieClip Frame 34
_global.loseGame();
_global.removeToPause(this);
stop();
Symbol 6762 MovieClip Frame 1
stop();
Instance of Symbol 6509 MovieClip "glow" in Symbol 6762 MovieClip Frame 1
onClipEvent (load) {
_global.witch5.glow = this;
_visible = false;
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6762 MovieClip Frame 9
_global.playSound("hurt", 1);
stop();
Instance of Symbol 6744 MovieClip in Symbol 6762 MovieClip Frame 9
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6762 MovieClip Frame 20
stop();
Instance of Symbol 6748 MovieClip in Symbol 6762 MovieClip Frame 20
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6762 MovieClip Frame 34
stop();
Instance of Symbol 6756 MovieClip in Symbol 6762 MovieClip Frame 34
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6762 MovieClip Frame 50
stop();
Instance of Symbol 6760 MovieClip in Symbol 6762 MovieClip Frame 50
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Symbol 6762 MovieClip Frame 67
_global.playSound("death", 1);
stop();
Instance of Symbol 6761 MovieClip in Symbol 6762 MovieClip Frame 67
onClipEvent (load) {
_global.addToPause(this);
}
onClipEvent (unload) {
_global.removeToPause(this);
}
Instance of Symbol 6770 MovieClip "healthBar" in Symbol 6776 MovieClip Frame 1
onClipEvent (load) {
stop();
_global.bossHealth = this;
}
Symbol 6781 MovieClip Frame 1
stop();
Symbol 6785 MovieClip Frame 1
stop();
Symbol 6785 MovieClip Frame 2
stop();
Symbol 6785 MovieClip Frame 3
stop();
Symbol 6785 MovieClip Frame 4
stop();
Symbol 6786 MovieClip Frame 1
stop();
Symbol 6790 MovieClip Frame 1
stop();
Symbol 6790 MovieClip Frame 2
stop();
Symbol 6790 MovieClip Frame 3
stop();
Symbol 6790 MovieClip Frame 4
stop();
Symbol 6791 MovieClip Frame 1
stop();
Symbol 6795 MovieClip Frame 1
stop();
Symbol 6795 MovieClip Frame 2
stop();
Symbol 6795 MovieClip Frame 3
stop();
Symbol 6795 MovieClip Frame 4
stop();
Symbol 6796 MovieClip Frame 1
stop();
Symbol 6800 MovieClip Frame 1
stop();
Symbol 6800 MovieClip Frame 2
stop();
Symbol 6800 MovieClip Frame 3
stop();
Symbol 6800 MovieClip Frame 4
stop();
Symbol 6801 MovieClip Frame 1
stop();
Symbol 6805 MovieClip Frame 1
stop();
Symbol 6805 MovieClip Frame 2
stop();
Symbol 6805 MovieClip Frame 3
stop();
Symbol 6805 MovieClip Frame 4
stop();
Symbol 6808 Button
on (release) {
if (!_global.freeze) {
_global.playSound("btnclick", 1);
_global.PauseGame();
_global.root.instruction.gotoAndStop("menu");
}
}
Symbol 6814 MovieClip Frame 1
stop();
Symbol 6814 MovieClip Frame 2
stop();
Instance of Symbol 6814 MovieClip "btnMute" in Symbol 6815 MovieClip Frame 1
onClipEvent (load) {
if (_global.musicIsPlaying == true) {
this.gotoAndStop(1);
var musicIsPlaying = true;
} else {
this.gotoAndStop(2);
var musicIsPlaying = false;
}
this.onRelease = function () {
if (musicIsPlaying) {
_global.stopSound("music");
this.gotoAndStop(2);
musicIsPlaying = false;
} else {
_global.playSound("music", 9999);
this.gotoAndStop(1);
musicIsPlaying = true;
}
};
}
Symbol 6842 MovieClip Frame 1
stop();
Symbol 6843 MovieClip [boss] Frame 1
_global.root = this;
_global.level = "load";
_global.keepWill = false;
_global.keepIrma = false;
_global.keepTaranee = false;
_global.keepCornelia = false;
_global.keepHay = false;
stop();
Symbol 6843 MovieClip [boss] Frame 2
_global.root.HUD.score = _global.score;
_root.score = _global.score;
stop();
Instance of Symbol 6458 MovieClip "phobos" in Symbol 6843 MovieClip [boss] Frame 2
onClipEvent (load) {
_global.boss = this;
}
Instance of Symbol 6336 MovieClip "witch_controller" in Symbol 6843 MovieClip [boss] Frame 2
onClipEvent (load) {
Array.prototype.deleteOne = function (element) {
var _local2 = this;
var _local3 = element;
thisLength = _local2.length;
i = 0;
while (i < thisLength) {
if (_local2[i] == _local3) {
_local2.splice(i, 1);
break;
}
i++;
}
};
Array.prototype.getPos = function (element) {
var _local2 = this;
var _local3 = element;
thisLength = _local2.length;
i = 0;
while (i < thisLength) {
if (_local2[i] == _local3) {
return(i);
}
i++;
}
return(null);
};
_global.attack = function (shotX, shotY, aimX, aimY) {
delete _global.root.onMouseDown;
_global.playSound("magicBall", 1);
_global.root.allShot._x = shotX - 50;
_global.root.allShot.initHeight = _global.root.allShot._height;
_global.root.allShot._y = shotY - 50;
_global.root.allShot.aimX = aimX + 50;
_global.root.allShot.aimY = aimY + 50;
if (aimY >= 320) {
_global.root.allShot.step = 1;
} else if (aimY >= 310) {
_global.root.allShot.step = 1;
} else if (aimY >= 300) {
_global.root.allShot.step = 2;
} else if (aimY >= 290) {
_global.root.allShot.step = 2;
} else if (aimY >= 280) {
_global.root.allShot.step = 3;
} else if (aimY >= 270) {
_global.root.allShot.step = 3;
} else if (aimY >= 260) {
_global.root.allShot.step = 4;
} else if (aimY >= 250) {
_global.root.allShot.step = 4;
} else if (aimY >= 240) {
_global.root.allShot.step = 5;
} else if (aimY >= 230) {
_global.root.allShot.step = 5;
} else if (aimY >= 220) {
_global.root.allShot.step = 6;
} else if (aimY >= 210) {
_global.root.allShot.step = 6;
} else if (aimY >= 200) {
_global.root.allShot.step = 7;
} else {
_global.root.allShot.step = 7;
}
_global.root.allShot.xSpeed = ((-shotX) + aimX) / _global.root.allShot.step;
_global.root.allShot.ySpeed = ((-shotY) + aimY) / _global.root.allShot.step;
_global.root.allShot.gotoAndStop(_global.attackingWitch);
_global.root.allShot.countdown = 0;
_global.root.allShot.onEnterFrame = function () {
if (!_global.freeze) {
if (this.countdown != this.step) {
this.countdown = this.countdown + 1;
this._height = this._height - 10;
this._width = this._width - 10;
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if ((_global.bossIsShooting && (this.hitTest(_global.root.bossShots))) && (_global.attackNB == this._currentframe)) {
_global.boss.gotoAndStop("mad");
_global.bossIsMad = true;
_global.bossIsAttacking = false;
_global.bossIsShooting = false;
_global.boss.shield.gotoAndStop("off");
_global.root.bossShots.gotoAndStop(1);
_global.root.onMouseDown = _global.root.attackFunction;
this._x = -1000;
this._height = 100;
this._y = -1000;
this._width = 100;
_global.witchIsAttacking = false;
delete this.onEnterFrame;
} else if ((this._height <= 60) && (this.hitTest(_global.boss))) {
if (_global.bossIsMad) {
_global.bossIsMad = false;
_global.bossIsShooting = false;
_global.bossIsAttacking = false;
_global.bossEnergy = _global.bossEnergy - 10;
_root.score = _root.score + 250;
if (_global.bossEnergy == 0) {
_global.boss.gotoAndStop("die");
Key.removeListener(_global.KeyListener2);
_global.root.allShot._visible = false;
_global.root.onMouseDown = _global.root.attackFunction;
_root.score = _root.score + 5000;
var i = 1;
while (i < 6) {
if (eval ("_global.witch" + i).energy > 0) {
_root.score = _root.score + 2000;
}
i++;
}
} else {
_global.boss.gotoAndStop("hit");
_global.root.HUD.boss.healthBar.gotoAndStop((100 - _global.bossEnergy) + 1);
_global.root.onMouseDown = _global.root.attackFunction;
_global.witchCombo = _global.witchCombo + 1;
}
} else {
_global.boss.shield.gotoAndStop("react");
_global.root.onMouseDown = _global.root.attackFunction;
this._x = -1000;
this._height = 100;
this._y = -1000;
this._width = 100;
_global.witchIsAttacking = false;
delete this.onEnterFrame;
}
}
} else {
_global.root.onMouseDown = _global.root.attackFunction;
this._x = -1000;
this._height = 100;
this._y = -1000;
this._width = 100;
_global.witchIsAttacking = false;
delete this.onEnterFrame;
}
}
};
};
_global.root.attackFunction = function () {
var _local3 = _global;
var _local4 = _root;
if (!_local3.freeze) {
if ((!_local3.root.HUD.btnMute.hitTest(_local4._xmouse, _local4._ymouse)) && (!_local3.root.HUD.btnMenu.hitTest(_local4._xmouse, _local4._ymouse))) {
if ((_local3.root.HUD.witch1.hitTest(_local4._xmouse, _local4._ymouse) && (_local3.witch1.energy > 0)) && ((!_local3.selectedWitch) != 1)) {
_local3.witch1.glow._visible = true;
_local3.witch2.glow._visible = false;
_local3.witch3.glow._visible = false;
_local3.witch4.glow._visible = false;
_local3.witch5.glow._visible = false;
_local3.selectedWitch = 1;
_local3.keepHay = true;
_local3.root.bar1.gotoAndStop("start");
if (_local3.keepIrma == true) {
_local3.keepIrma = false;
_local3.root.bar2.gotoAndStop("stop");
}
if (_local3.keepWill == true) {
_local3.keepWill = false;
_local3.root.bar3.gotoAndStop("stop");
}
if (_local3.keepTaranee == true) {
_local3.keepTaranee = false;
_local3.root.bar4.gotoAndStop("stop");
}
if (_local3.keepCornelia == true) {
_local3.keepCornelia = false;
_local3.root.bar5.gotoAndStop("stop");
}
} else if ((_local3.root.HUD.witch2.hitTest(_local4._xmouse, _local4._ymouse) && (_local3.witch2.energy > 0)) && ((!_local3.selectedWitch) != 2)) {
_local3.witch2.glow._visible = true;
_local3.witch1.glow._visible = false;
_local3.witch3.glow._visible = false;
_local3.witch4.glow._visible = false;
_local3.witch5.glow._visible = false;
_local3.selectedWitch = 2;
_local3.keepIrma = true;
_local3.root.bar2.gotoAndStop("start");
if (_local3.keepHay == true) {
_local3.keepHay = false;
_local3.root.bar1.gotoAndStop("stop");
}
if (_local3.keepWill == true) {
_local3.keepWill = false;
_local3.root.bar3.gotoAndStop("stop");
}
if (_local3.keepTaranee == true) {
_local3.keepTaranee = false;
_local3.root.bar4.gotoAndStop("stop");
}
if (_local3.keepCornelia == true) {
_local3.keepCornelia = false;
_local3.root.bar5.gotoAndStop("stop");
}
} else if ((_local3.root.HUD.witch3.hitTest(_local4._xmouse, _local4._ymouse) && (_local3.witch3.energy > 0)) && ((!_local3.selectedWitch) != 3)) {
_local3.witch3.glow._visible = true;
_local3.witch2.glow._visible = false;
_local3.witch1.glow._visible = false;
_local3.witch4.glow._visible = false;
_local3.witch5.glow._visible = false;
_local3.selectedWitch = 3;
_local3.keepWill = true;
_local3.root.bar3.gotoAndStop("start");
if (_local3.keepIrma == true) {
_local3.keepIrma = false;
_local3.root.bar2.gotoAndStop("stop");
}
if (_local3.keepHay == true) {
_local3.keepHay = false;
_local3.root.bar1.gotoAndStop("stop");
}
if (_local3.keepTaranee == true) {
_local3.keepTaranee = false;
_local3.root.bar4.gotoAndStop("stop");
}
if (_local3.keepCornelia == true) {
_local3.keepCornelia = false;
_local3.root.bar5.gotoAndStop("stop");
}
} else if ((_local3.root.HUD.witch4.hitTest(_local4._xmouse, _local4._ymouse) && (_local3.witch4.energy > 0)) && ((!_local3.selectedWitch) != 4)) {
_local3.witch4.glow._visible = true;
_local3.witch2.glow._visible = false;
_local3.witch3.glow._visible = false;
_local3.witch1.glow._visible = false;
_local3.witch5.glow._visible = false;
_local3.selectedWitch = 4;
_local3.keepTaranee = true;
_local3.root.bar4.gotoAndStop("start");
if (_local3.keepIrma == true) {
_local3.keepIrma = false;
_local3.root.bar2.gotoAndStop("stop");
}
if (_local3.keepHay == true) {
_local3.keepHay = false;
_local3.root.bar1.gotoAndStop("stop");
}
if (_local3.keepWill == true) {
_local3.keepWill = false;
_local3.root.bar3.gotoAndStop("stop");
}
if (_local3.keepCornelia == true) {
_local3.keepCornelia = false;
_local3.root.bar5.gotoAndStop("stop");
}
} else if ((_local3.root.HUD.witch5.hitTest(_local4._xmouse, _local4._ymouse) && (_local3.witch5.energy > 0)) && ((!_local3.selectedWitch) != 5)) {
_local3.witch5.glow._visible = true;
_local3.witch2.glow._visible = false;
_local3.witch3.glow._visible = false;
_local3.witch4.glow._visible = false;
_local3.witch1.glow._visible = false;
_local3.selectedWitch = 5;
_local3.selectedWitch = 5;
_local3.keepCornelia = true;
_local3.root.bar5.gotoAndStop("start");
if (_local3.keepIrma == true) {
_local3.keepIrma = false;
_local3.root.bar2.gotoAndStop("stop");
}
if (_local3.keepHay == true) {
_local3.keepHay = false;
_local3.root.bar1.gotoAndStop("stop");
}
if (_local3.keepWill == true) {
_local3.keepWill = false;
_local3.root.bar3.gotoAndStop("stop");
}
if (_local3.keepTaranee == true) {
_local3.keepTaranee = false;
_local3.root.bar4.gotoAndStop("stop");
}
} else if ((!_local3.witchIsAttacking) && (_local3.selectedWitch != _local3.witchIsHurt)) {
_local3.witchIsAttacking = true;
_local3.attackingWitch = _local3.selectedWitch;
switch (_local3.selectedWitch) {
case 1 :
if ((_local4._xmouse - 120) <= _local3.witch1.perso._x) {
_local3.witch1.perso.gotoAndStop("attackLeft");
} else {
_local3.witch1.perso.gotoAndStop("attackRight");
}
break;
case 2 :
if ((_local4._xmouse - 120) <= _local3.witch2.perso._x) {
_local3.witch2.perso.gotoAndStop("attackLeft");
} else {
_local3.witch2.perso.gotoAndStop("attackRight");
}
break;
case 3 :
if ((_local4._xmouse - 120) <= _local3.witch3.perso._x) {
_local3.witch3.perso.gotoAndStop("attackLeft");
} else {
_local3.witch3.perso.gotoAndStop("attackRight");
}
break;
case 4 :
if ((_local4._xmouse - 120) <= _local3.witch4.perso._x) {
_local3.witch4.perso.gotoAndStop("attackLeft");
} else {
_local3.witch4.perso.gotoAndStop("attackRight");
}
break;
case 5 :
if ((_local4._xmouse - 120) <= _local3.witch5.perso._x) {
_local3.witch5.perso.gotoAndStop("attackLeft");
} else {
_local3.witch5.perso.gotoAndStop("attackRight");
}
}
}
}
}
};
_global.root.onMouseDown = _global.root.attackFunction;
_global.PauseAll = new Array();
_global.addToPause = function (obj) {
_global.PauseAll.push(obj);
};
_global.removeToPause = function (obj) {
_global.PauseAll.deleteone(obj);
};
_global.PauseGame = function () {
var _local3 = _global;
if (!_local3.freeze) {
_local3.allSounds.setVolume(20);
_local3.freeze = true;
var _local4 = _local3.PauseAll.length;
_local4 = _local3.PauseAll.length;
delete _local3.root.onMouseDown;
var _local2 = 0;
while (_local2 < _local4) {
_local3.PauseAll[_local2].stop();
_local2 = _local2 + 1;
}
} else {
_local3.root.HUD.chrono.startTime = getTimer() - _local3.root.HUD.chrono.elapsed;
_local3.freeze = false;
_local3.allSounds.setVolume(100);
var _local4 = _local3.PauseAll.length;
var _local2 = 0;
while (_local2 < _local4) {
_local3.PauseAll[_local2].play();
_local2 = _local2 + 1;
}
_local3.root.onMouseDown = _local3.root.attackFunction;
}
};
_global.freeze = false;
_global.witch1 = new Object();
_global.witch2 = new Object();
_global.witch3 = new Object();
_global.witch4 = new Object();
_global.witch5 = new Object();
_global.witch1.energy = 100;
_global.witch2.energy = 100;
_global.witch3.energy = 100;
_global.witch4.energy = 100;
_global.witch5.energy = 100;
_global.witch1.perso = _global.root.perso1;
_global.witch2.perso = _global.root.perso2;
_global.witch3.perso = _global.root.perso3;
_global.witch4.perso = _global.root.perso4;
_global.witch5.perso = _global.root.perso5;
_global.witch1.glow = _global.root.perso1.glow;
_global.witch2.glow = _global.root.perso2.glow;
_global.witch3.glow = _global.root.perso3.glow;
_global.witch4.glow = _global.root.perso4.glow;
_global.witch5.glow = _global.root.perso5.glow;
_global.witch1.healthBar = _global.root.HUD.witch1.healthBar;
_global.witch2.healthBar = _global.root.HUD.witch2.healthBar;
_global.witch3.healthBar = _global.root.HUD.witch3.healthBar;
_global.witch4.healthBar = _global.root.HUD.witch4.healthBar;
_global.witch5.healthBar = _global.root.HUD.witch5.healthBar;
_global.witch1.icone = _global.root.HUD.witch1.icone;
_global.witch2.icone = _global.root.HUD.witch2.icone;
_global.witch3.icone = _global.root.HUD.witch3.icone;
_global.witch4.icone = _global.root.HUD.witch4.icone;
_global.witch5.icone = _global.root.HUD.witch5.icone;
_global.witchCombo = 0;
_global.witchIsAttacking = false;
_global.witch3.glow._visible = true;
_global.witchIsHurt = 0;
_global.selectedWitch = 3;
_global.keepWill = true;
_global.root.bar3.gotoAndStop("start");
_global.KeyListener2 = new Object();
_global.KeyListener2.onKeyDown = function () {
var _local2 = _global;
switch (Key.getCode()) {
case 37 :
_local2.switchLeft();
break;
case 39 :
_local2.switchRight();
break;
case 32 :
_local2.root.attackFunction();
}
};
_global.loseGame = function () {
_global.witchIsAttacking = false;
var totEnergy = 0;
var i = 1;
while (i < 6) {
totEnergy = totEnergy + eval ("_global.witch" + i).energy;
i++;
}
if (totEnergy <= 0) {
_global.freeze = true;
_global.stopSound("wind");
_global.stopSound("fireLoop");
_global.stopSound("portalLoop");
_global.stopSound("acidLoop");
_parent.instruction.gotoAndStop("badEnd");
}
};
_global.showHealth = function (witchID) {
eval ("_global.witch" + witchID).healthBar.gotoAndStop((100 - eval ("_global.witch" + witchID).energy) + 1);
var totEnergy = 0;
var i = 1;
while (i < 6) {
totEnergy = totEnergy + eval ("_global.witch" + i).energy;
i++;
}
_global.root.HUD.allHealthBar.gotoAndStop((500 - totEnergy) - 1);
};
_global.reviveWitch = function (witchID) {
eval ("_global.witch" + witchID).energy = 100;
_global.showHealth(witchID);
eval ("_global.witch" + witchID).perso.gotoAndStop("rise");
eval ("_global.root.HUD.witch" + witchID).gotoAndStop(1);
if (_global.root.HUD.witch1._currentframe == 3) {
_global.root.HUD.witch1.gotoAndStop(2);
delete _global.witch1.perso.onRelease;
}
if (_global.root.HUD.witch2._currentframe == 3) {
_global.root.HUD.witch2.gotoAndStop(2);
delete _global.witch2.perso.onRelease;
}
if (_global.root.HUD.witch3._currentframe == 3) {
_global.root.HUD.witch3.gotoAndStop(2);
delete _global.witch3.perso.onRelease;
}
if (_global.root.HUD.witch4._currentframe == 3) {
_global.root.HUD.witch4.gotoAndStop(2);
delete _global.witch4.perso.onRelease;
}
if (_global.root.HUD.witch5._currentframe == 3) {
_global.root.HUD.witch5.gotoAndStop(2);
delete _global.witch5.perso.onRelease;
}
};
_global.witchHurt = function () {
_global.bossIsShooting = false;
if (eval ("_global.witch" + _global.attackWitch).energy > 25) {
eval ("_global.witch" + _global.attackWitch).perso.gotoAndStop("hit");
_global.witchIsAttacking = false;
eval ("_global.witch" + _global.attackWitch).energy = eval ("_global.witch" + _global.attackWitch).energy - 25;
_global.showHealth(_global.attackWitch);
} else if (eval ("_global.witch" + _global.attackWitch).energy > 0) {
eval ("_global.witch" + _global.attackWitch).energy = eval ("_global.witch" + _global.attackWitch).energy - 25;
_global.witchIsAttacking = false;
_global.showHealth(_global.attackWitch);
eval ("_global.witch" + _global.attackWitch).healthBar._parent.gotoAndStop(2);
eval ("_global.witch" + _global.attackWitch).perso.gotoAndStop("die");
if (_global.attackWitch == _global.selectedWitch) {
_global.switchLeft();
}
}
};
_global.switchLeft = function () {
var _local2 = _global;
if ((!_local2.freeze) && (!_local2.witchIsAttacking)) {
switch (_local2.selectedWitch) {
case 1 :
if (_local2.witch5.energy > 0) {
_local2.witch5.glow._visible = true;
_local2.witch1.glow._visible = false;
_local2.selectedWitch = 5;
_local2.keepCornelia = true;
_local2.root.bar5.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
break;
}
if (_local2.witch4.energy > 0) {
_local2.witch4.glow._visible = true;
_local2.witch1.glow._visible = false;
_local2.selectedWitch = 4;
_local2.keepTaranee = true;
_local2.root.bar4.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else if (_local2.witch3.energy > 0) {
_local2.witch3.glow._visible = true;
_local2.witch1.glow._visible = false;
_local2.selectedWitch = 3;
_local2.keepWill = true;
_local2.root.bar3.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else if (_local2.witch2.energy > 0) {
_local2.witch2.glow._visible = true;
_local2.witch1.glow._visible = false;
_local2.selectedWitch = 2;
_local2.keepIrma = true;
_local2.root.bar2.gotoAndStop("start");
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
}
break;
case 2 :
if (_local2.witch1.energy > 0) {
_local2.witch1.glow._visible = true;
_local2.witch2.glow._visible = false;
_local2.selectedWitch = 1;
_local2.keepHay = true;
_local2.root.bar1.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else {
if (_local2.witch5.energy > 0) {
_local2.witch5.glow._visible = true;
_local2.witch2.glow._visible = false;
_local2.selectedWitch = 5;
_local2.keepCornelia = true;
_local2.root.bar5.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
break;
}
if (_local2.witch4.energy > 0) {
_local2.witch4.glow._visible = true;
_local2.witch2.glow._visible = false;
_local2.selectedWitch = 4;
_local2.keepTaranee = true;
_local2.root.bar4.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else if (_local2.witch3.energy > 0) {
_local2.witch3.glow._visible = true;
_local2.witch2.glow._visible = false;
_local2.selectedWitch = 3;
_local2.keepWill = true;
_local2.root.bar3.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
}
}
break;
case 3 :
if (_local2.witch2.energy > 0) {
_local2.witch2.glow._visible = true;
_local2.witch3.glow._visible = false;
_local2.selectedWitch = 2;
_local2.keepIrma = true;
_local2.root.bar2.gotoAndStop("start");
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else if (_local2.witch1.energy > 0) {
_local2.witch1.glow._visible = true;
_local2.witch3.glow._visible = false;
_local2.selectedWitch = 1;
_local2.keepHay = true;
_local2.root.bar1.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else {
if (_local2.witch5.energy > 0) {
_local2.witch5.glow._visible = true;
_local2.witch3.glow._visible = false;
_local2.selectedWitch = 5;
_local2.keepCornelia = true;
_local2.root.bar5.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
break;
}
if (_local2.witch4.energy > 0) {
_local2.witch4.glow._visible = true;
_local2.witch3.glow._visible = false;
_local2.selectedWitch = 4;
}
}
break;
case 4 :
if (_local2.witch3.energy > 0) {
_local2.witch3.glow._visible = true;
_local2.witch4.glow._visible = false;
_local2.selectedWitch = 3;
_local2.keepWill = true;
_local2.root.bar3.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else if (_local2.witch2.energy > 0) {
_local2.witch2.glow._visible = true;
_local2.witch4.glow._visible = false;
_local2.selectedWitch = 2;
_local2.keepIrma = true;
_local2.root.bar2.gotoAndStop("start");
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else if (_local2.witch1.energy > 0) {
_local2.witch1.glow._visible = true;
_local2.witch4.glow._visible = false;
_local2.selectedWitch = 1;
_local2.keepHay = true;
_local2.root.bar1.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else if (_local2.witch5.energy > 0) {
_local2.witch5.glow._visible = true;
_local2.witch4.glow._visible = false;
_local2.selectedWitch = 5;
_local2.keepCornelia = true;
_local2.root.bar5.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
break;
}
break;
case 5 :
if (_local2.witch4.energy > 0) {
_local2.witch4.glow._visible = true;
_local2.witch5.glow._visible = false;
_local2.selectedWitch = 4;
_local2.keepTaranee = true;
_local2.root.bar4.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else if (_local2.witch3.energy > 0) {
_local2.witch3.glow._visible = true;
_local2.witch5.glow._visible = false;
_local2.selectedWitch = 3;
_local2.keepWill = true;
_local2.root.bar3.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else if (_local2.witch2.energy > 0) {
_local2.witch2.glow._visible = true;
_local2.witch5.glow._visible = false;
_local2.selectedWitch = 2;
_local2.keepIrma = true;
_local2.root.bar2.gotoAndStop("start");
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else {
if (_local2.witch1.energy <= 0) {
break;
}
_local2.witch1.glow._visible = true;
_local2.witch5.glow._visible = false;
_local2.selectedWitch = 1;
_local2.keepHay = true;
_local2.root.bar1.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
} else {
break;
}
}
}
}
};
_global.switchRight = function () {
var _local2 = _global;
if ((!_local2.freeze) && (!_local2.witchIsAttacking)) {
switch (_local2.selectedWitch) {
case 1 :
if (_local2.witch2.energy > 0) {
_local2.witch2.glow._visible = true;
_local2.witch1.glow._visible = false;
_local2.selectedWitch = 2;
_local2.keepIrma = true;
_local2.root.bar2.gotoAndStop("start");
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else if (_local2.witch3.energy > 0) {
_local2.witch3.glow._visible = true;
_local2.witch1.glow._visible = false;
_local2.selectedWitch = 3;
_local2.keepWill = true;
_local2.root.bar3.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else if (_local2.witch4.energy > 0) {
_local2.witch4.glow._visible = true;
_local2.witch1.glow._visible = false;
_local2.selectedWitch = 4;
_local2.keepTaranee = true;
_local2.root.bar4.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else if (_local2.witch5.energy > 0) {
_local2.witch5.glow._visible = true;
_local2.witch1.glow._visible = false;
_local2.selectedWitch = 5;
_local2.keepCornelia = true;
_local2.root.bar5.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
break;
}
break;
case 2 :
if (_local2.witch3.energy > 0) {
_local2.witch3.glow._visible = true;
_local2.witch2.glow._visible = false;
_local2.selectedWitch = 3;
_local2.keepWill = true;
_local2.root.bar3.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else if (_local2.witch4.energy > 0) {
_local2.witch4.glow._visible = true;
_local2.witch2.glow._visible = false;
_local2.selectedWitch = 4;
_local2.keepTaranee = true;
_local2.root.bar4.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else {
if (_local2.witch5.energy > 0) {
_local2.witch5.glow._visible = true;
_local2.witch2.glow._visible = false;
_local2.selectedWitch = 5;
_local2.keepCornelia = true;
_local2.root.bar5.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
break;
}
if (_local2.witch1.energy > 0) {
_local2.witch1.glow._visible = true;
_local2.witch2.glow._visible = false;
_local2.selectedWitch = 1;
_local2.keepHay = true;
_local2.root.bar1.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
}
}
break;
case 3 :
if (_local2.witch4.energy > 0) {
_local2.witch4.glow._visible = true;
_local2.witch3.glow._visible = false;
_local2.selectedWitch = 4;
_local2.keepTaranee = true;
_local2.root.bar4.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else {
if (_local2.witch5.energy > 0) {
_local2.witch5.glow._visible = true;
_local2.witch3.glow._visible = false;
_local2.selectedWitch = 5;
_local2.keepCornelia = true;
_local2.root.bar5.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
break;
}
if (_local2.witch1.energy > 0) {
_local2.witch1.glow._visible = true;
_local2.witch3.glow._visible = false;
_local2.selectedWitch = 1;
_local2.keepHay = true;
_local2.root.bar1.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else if (_local2.witch2.energy > 0) {
_local2.witch2.glow._visible = true;
_local2.witch3.glow._visible = false;
_local2.selectedWitch = 2;
_local2.keepIrma = true;
_local2.root.bar2.gotoAndStop("start");
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
}
}
break;
case 4 :
if (_local2.witch5.energy > 0) {
_local2.witch5.glow._visible = true;
_local2.witch4.glow._visible = false;
_local2.selectedWitch = 5;
_local2.keepCornelia = true;
_local2.root.bar5.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
} else {
if (_local2.witch1.energy > 0) {
_local2.witch1.glow._visible = true;
_local2.witch4.glow._visible = false;
_local2.selectedWitch = 1;
_local2.keepHay = true;
_local2.root.bar1.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else if (_local2.witch2.energy > 0) {
_local2.witch2.glow._visible = true;
_local2.witch4.glow._visible = false;
_local2.selectedWitch = 2;
_local2.keepIrma = true;
_local2.root.bar2.gotoAndStop("start");
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else if (_local2.witch3.energy > 0) {
_local2.witch3.glow._visible = true;
_local2.witch4.glow._visible = false;
_local2.selectedWitch = 3;
_local2.keepWill = true;
_local2.root.bar3.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
}
break;
if (_local2.witch1.energy > 0) {
_local2.witch1.glow._visible = true;
_local2.witch5.glow._visible = false;
_local2.selectedWitch = 1;
_local2.keepHay = true;
_local2.root.bar1.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else if (_local2.witch2.energy > 0) {
_local2.witch2.glow._visible = true;
_local2.witch5.glow._visible = false;
_local2.selectedWitch = 2;
_local2.keepIrma = true;
_local2.root.bar2.gotoAndStop("start");
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else if (_local2.witch3.energy > 0) {
_local2.witch3.glow._visible = true;
_local2.witch5.glow._visible = false;
_local2.selectedWitch = 3;
_local2.keepWill = true;
_local2.root.bar3.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else {
if (_local2.witch4.energy <= 0) {
break;
}
_local2.witch4.glow._visible = true;
_local2.witch5.glow._visible = false;
_local2.selectedWitch = 4;
_local2.keepTaranee = true;
_local2.root.bar4.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepCornelia != true) {
break;
}
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
}
case 5 :
if (_local2.witch1.energy > 0) {
_local2.witch1.glow._visible = true;
_local2.witch5.glow._visible = false;
_local2.selectedWitch = 1;
_local2.keepHay = true;
_local2.root.bar1.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else if (_local2.witch2.energy > 0) {
_local2.witch2.glow._visible = true;
_local2.witch5.glow._visible = false;
_local2.selectedWitch = 2;
_local2.keepIrma = true;
_local2.root.bar2.gotoAndStop("start");
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else if (_local2.witch3.energy > 0) {
_local2.witch3.glow._visible = true;
_local2.witch5.glow._visible = false;
_local2.selectedWitch = 3;
_local2.keepWill = true;
_local2.root.bar3.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepTaranee == true) {
_local2.keepTaranee = false;
_local2.root.bar4.gotoAndStop("stop");
}
if (_local2.keepCornelia == true) {
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
} else {
if (_local2.witch4.energy <= 0) {
break;
}
_local2.witch4.glow._visible = true;
_local2.witch5.glow._visible = false;
_local2.selectedWitch = 4;
_local2.keepTaranee = true;
_local2.root.bar4.gotoAndStop("start");
if (_local2.keepIrma == true) {
_local2.keepIrma = false;
_local2.root.bar2.gotoAndStop("stop");
}
if (_local2.keepHay == true) {
_local2.keepHay = false;
_local2.root.bar1.gotoAndStop("stop");
}
if (_local2.keepWill == true) {
_local2.keepWill = false;
_local2.root.bar3.gotoAndStop("stop");
}
if (_local2.keepCornelia != true) {
break;
}
_local2.keepCornelia = false;
_local2.root.bar5.gotoAndStop("stop");
}
}
}
};
Key.addListener(_global.KeyListener2);
}
onClipEvent (enterFrame) {
if (!_global.freeze) {
if ((_global.witch1.energy == 0) && (_global.witch1._currentframe != 60)) {
_global.witch1.healthBar._parent.gotoAndStop(2);
_global.witch1.perso.gotoAndStop("die");
}
if ((_global.witch2.energy == 0) && (_global.witch2._currentframe != 60)) {
_global.witch2.healthBar._parent.gotoAndStop(2);
_global.witch2.perso.gotoAndStop("die");
}
if ((_global.witch3.energy == 0) && (_global.witch3._currentframe != 60)) {
_global.witch3.healthBar._parent.gotoAndStop(2);
_global.witch3.perso.gotoAndStop("die");
}
if ((_global.witch4.energy == 0) && (_global.witch4._currentframe != 60)) {
_global.witch4.healthBar._parent.gotoAndStop(2);
_global.witch4.perso.gotoAndStop("die");
}
if ((_global.witch5.energy == 0) && (_global.witch5._currentframe != 60)) {
_global.witch5.healthBar._parent.gotoAndStop(2);
_global.witch5.perso.gotoAndStop("die");
}
if (_global.witchCombo >= 5) {
if (_global.witch1.energy == 0) {
if (_global.witch1.healthBar._parent._currentframe != 3) {
_global.witch1.healthBar._parent.gotoAndPlay(3);
_global.witch1.perso.onRelease = function () {
_global.witchCombo = 0;
_global.reviveWitch(1);
_root.score = _root.score + 2500;
delete this.onRelease;
};
}
}
if (_global.witch2.energy == 0) {
if (_global.witch2.healthBar._parent._currentframe != 3) {
_global.witch2.healthBar._parent.gotoAndPlay(3);
_global.witch2.perso.onRelease = function () {
_global.witchCombo = 0;
_global.reviveWitch(2);
_root.score = _root.score + 2500;
delete this.onRelease;
};
}
}
if (_global.witch3.energy == 0) {
if (_global.witch3.healthBar._parent._currentframe != 3) {
_global.witch3.healthBar._parent.gotoAndPlay(3);
_global.witch3.perso.onRelease = function () {
_global.witchCombo = 0;
_global.reviveWitch(3);
_root.score = _root.score + 2500;
delete this.onRelease;
};
}
}
if (_global.witch4.energy == 0) {
if (_global.witch4.healthBar._parent._currentframe != 3) {
_global.witch4.healthBar._parent.gotoAndPlay(3);
_global.witch4.perso.onRelease = function () {
_global.witchCombo = 0;
_global.reviveWitch(4);
_root.score = _root.score + 2500;
delete this.onRelease;
};
}
}
if (_global.witch5.energy == 0) {
if (_global.witch5.healthBar._parent._currentframe != 3) {
_global.witch5.healthBar._parent.gotoAndPlay(3);
_global.witch5.perso.onRelease = function () {
_global.witchCombo = 0;
_global.reviveWitch(5);
_root.score = _root.score + 2500;
delete this.onRelease;
};
}
}
}
this.HUD.score = _root.score;
}
}
Symbol 19 MovieClip Frame 1
stop();
Symbol 1502 MovieClip Frame 1
this.createEmptyMovieClip("acidLoop", 1);
this.createEmptyMovieClip("batAttack", 2);
this.createEmptyMovieClip("bouclierHurt", 3);
this.createEmptyMovieClip("fireLoop", 4);
this.createEmptyMovieClip("music", 5);
this.createEmptyMovieClip("portalLoop", 6);
this.createEmptyMovieClip("ratAttack", 7);
this.createEmptyMovieClip("rockAttack", 8);
this.createEmptyMovieClip("magicBall", 9);
this.createEmptyMovieClip("bossHurt", 10);
this.createEmptyMovieClip("btnClick", 11);
this.createEmptyMovieClip("btnRoll", 12);
this.createEmptyMovieClip("enemyExplode", 13);
this.createEmptyMovieClip("snakeAttack", 14);
this.createEmptyMovieClip("bouclierAppear", 15);
this.createEmptyMovieClip("bouclierDispear", 16);
this.createEmptyMovieClip("torchHit", 17);
this.createEmptyMovieClip("hurt", 18);
this.createEmptyMovieClip("death", 19);
this.createEmptyMovieClip("wind", 20);
wind = new Sound("wind");
wind.attachSound("wind");
acidLoop = new Sound("acidLoop");
acidLoop.attachSound("acidLoop");
batAttack = new Sound("batAttack");
batAttack.attachSound("batAttack");
bouclierHurt = new Sound("bouclierHurt");
bouclierHurt.attachSound("bouclierHurt");
fireLoop = new Sound("fireLoop");
fireLoop.attachSound("fireLoop");
music = new Sound("music");
music.attachSound("music");
music.setVolume(50);
portalLoop = new Sound("portalLoop");
portalLoop.attachSound("portalLoop");
ratAttack = new Sound("ratAttack");
ratAttack.attachSound("ratAttack");
rockAttack = new Sound("rockAttack");
rockAttack.attachSound("rockAttack");
magicBall = new Sound("magicBall");
magicBall.attachSound("magicBall");
btnClick = new Sound("btnClick");
btnClick.attachSound("btnClick");
btnRoll = new Sound("btnRoll");
btnRoll.attachSound("btnRoll");
enemyExplode = new Sound("enemyExplode");
enemyExplode.attachSound("enemyExplode");
snakeAttack = new Sound("snakeAttack");
snakeAttack.attachSound("snakeAttack");
bouclierAppear = new Sound("bouclierAppear");
bouclierAppear.attachSound("bouclierAppear");
bouclierDispear = new Sound("bouclierDispear");
bouclierDispear.attachSound("bouclierDispear");
torchHit = new Sound("torchHit");
torchHit.attachSound("torchHit");
hurt = new Sound("hurt");
hurt.attachSound("hurt");
death = new Sound("death");
death.attachSound("death");
startsound = function (theSound, loop) {
eval (theSound).start(0, loop);
};
stopsound = function (theSound) {
eval (theSound).stop();
};
SetSoundVolume = function (theSound, volume) {
eval (theSound).setVolume(volume);
};
stop();
Symbol 43 MovieClip Frame 9
_parent.destroy();
stop();
Symbol 44 MovieClip [WaterMovie] Frame 1
stop();
Symbol 44 MovieClip [WaterMovie] Frame 2
_global.PlaySound("enemyExplode", 1);
stop();
Symbol 55 MovieClip Frame 11
_parent.destroy();
stop();
Symbol 56 MovieClip [WallMovie] Frame 1
stop();
Symbol 56 MovieClip [WallMovie] Frame 2
_global.PlaySound("enemyExplode", 1);
stop();
Symbol 60 MovieClip Frame 4
if (_parent.toDestroy == true) {
gotoAndPlay ("exploded");
} else {
gotoAndPlay (1);
}
Symbol 60 MovieClip Frame 5
if (_global.kaboom != 0) {
var nbKaboom = _global.kaboom;
var i = 0;
while (i < nbKaboom) {
eval ("_root.mcGame.explosion" + i).removeMovieClip();
_global.kaboom--;
i++;
}
}
_global.kaboom++;
delete _parent.onEnterFrame;
play();
Symbol 60 MovieClip Frame 11
_global.kaboom--;
_parent.swapDepths(1001);
_parent.removeMovieClip();
Symbol 61 MovieClip [projectile] Frame 1
_global.PlaySound("magicBall", 1);
stop();
Symbol 61 MovieClip [projectile] Frame 2
_global.PlaySound("magicBall", 1);
Symbol 61 MovieClip [projectile] Frame 3
_global.PlaySound("magicBall", 1);
Symbol 61 MovieClip [projectile] Frame 4
_global.PlaySound("magicBall", 1);
Symbol 61 MovieClip [projectile] Frame 5
_global.PlaySound("magicBall", 1);
Symbol 65 MovieClip Frame 1
Symbol 65 MovieClip Frame 31
Symbol 67 MovieClip Frame 14
_parent.destroy();
stop();
Symbol 68 MovieClip [EnergyMovie] Frame 1
stop();
Symbol 68 MovieClip [EnergyMovie] Frame 2
_global.PlaySound("enemyExplode", 1);
stop();
Symbol 74 MovieClip Frame 14
_parent.destroy();
stop();
Symbol 75 MovieClip [FumeeMovie] Frame 1
stop();
Symbol 75 MovieClip [FumeeMovie] Frame 2
_global.PlaySound("enemyExplode", 1);
stop();
Symbol 81 MovieClip Frame 1
Symbol 81 MovieClip Frame 10
Symbol 83 MovieClip Frame 9
_parent.destroy();
stop();
Symbol 84 MovieClip [FireMovie] Frame 1
stop();
Symbol 84 MovieClip [FireMovie] Frame 2
_global.PlaySound("enemyExplode", 1);
stop();
Symbol 92 MovieClip Frame 1
this._visible = false;
_global.sCont.registerPauseAuto(this._parent);
Symbol 109 MovieClip Frame 5
_global.PlaySound("snakeAttack", 1);
Symbol 109 MovieClip Frame 15
_parent._parent.checkHit(hitzone);
_parent._parent.gotoAndStop("idle");
Symbol 110 MovieClip Frame 5
_global.PlaySound("snakeAttack", 1);
Symbol 110 MovieClip Frame 15
_parent._parent.checkHit(hitzone);
_parent._parent.gotoAndStop("idle");
Symbol 111 MovieClip Frame 5
_global.PlaySound("snakeAttack", 1);
Symbol 111 MovieClip Frame 15
_parent._parent.checkHit(hitzone);
_parent._parent.gotoAndStop("idle");
Symbol 112 MovieClip Frame 1
gotoAndStop(_parent.attackDirection);
Symbol 115 MovieClip Frame 18
_parent.destroy();
stop();
Symbol 116 MovieClip [SnakeMovie] Frame 1
this.state = "idle";
stop();
Symbol 116 MovieClip [SnakeMovie] Frame 3
_global.PlaySound("enemyExplode", 1);
Symbol 116 MovieClip [SnakeMovie] Frame 6
_global.PlaySound("enemyExplode", 1);
Symbol 121 MovieClip Frame 8
_parent._parent.destroy();
stop();
Symbol 127 MovieClip Frame 1
_global.PlaySound("rockAttack", 1);
Symbol 127 MovieClip Frame 18
this._parent.destroy();
stop();
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 2
_global.PlaySound("enemyExplode", 1);
Symbol 129 MovieClip [RockMovie] Frame 1
stop();
Symbol 129 MovieClip [RockMovie] Frame 2
stop();
Symbol 129 MovieClip [RockMovie] Frame 3
stop();
Symbol 129 MovieClip [RockMovie] Frame 4
stop();
Symbol 170 MovieClip Frame 3
_global.PlaySound("ratAttack", 1);
Symbol 170 MovieClip Frame 9
_parent.checkHit(this);
Symbol 170 MovieClip Frame 14
_parent.destroy();
stop();
Symbol 175 MovieClip Frame 13
_parent.destroy();
stop();
Symbol 193 MovieClip Frame 8
_parent.move = true;
_parent.gotoAndStop(_parent.nextMove);
Symbol 194 MovieClip [RatMovie] Frame 3
_global.PlaySound("enemyExplode", 1);
Symbol 194 MovieClip [RatMovie] Frame 5
nextMove = "moveRight";
Symbol 194 MovieClip [RatMovie] Frame 7
nextMove = "moveLeft";
Symbol 205 MovieClip Frame 13
_parent.destroy();
stop();
Symbol 206 MovieClip Frame 1
stop();
this.sound = false;
Symbol 206 MovieClip Frame 2
if (this.sound == false) {
_global.PlaySound("portalLoop", 100);
this.sound = true;
}
Symbol 206 MovieClip Frame 3
_global.StopSound("portalLoop");
this.sound = false;
_global.PlaySound("enemyExplode", 1);
Symbol 218 MovieClip Frame 1
_global.PlaySound("enemyExplode", 1);
Symbol 218 MovieClip Frame 7
_parent.destroy();
stop();
Symbol 219 MovieClip Frame 1
stop();
this.sound = false;
Symbol 219 MovieClip Frame 2
if (this.sound == false) {
_global.PlaySound("acidLoop", 99999);
this.sound = true;
}
stop();
Symbol 219 MovieClip Frame 3
_global.StopSound("acidLoop");
this.sound = false;
Symbol 223 MovieClip Frame 8
_parent.destroy();
stop();
Symbol 224 MovieClip Frame 1
stop();
this.sound = false;
Symbol 224 MovieClip Frame 2
if (this.sound == false) {
_global.PlaySound("fireLoop", 100);
this.sound = true;
}
Symbol 224 MovieClip Frame 3
_global.StopSound("fireLoop");
this.sound = false;
_global.PlaySound("enemyExplode", 1);
Symbol 238 MovieClip Frame 9
_parent.destroy();
stop();
Symbol 239 MovieClip Frame 1
stop();
Symbol 239 MovieClip Frame 3
_global.PlaySound("enemyExplode", 1);
Symbol 240 MovieClip [MagicMovie] Frame 1
stop();
Symbol 240 MovieClip [MagicMovie] Frame 2
stop();
Symbol 240 MovieClip [MagicMovie] Frame 3
stop();
Symbol 240 MovieClip [MagicMovie] Frame 4
stop();
Symbol 240 MovieClip [MagicMovie] Frame 5
stop();
Symbol 244 MovieClip [ColumnMovie] Frame 1
stop();
Symbol 244 MovieClip [ColumnMovie] Frame 2
stop();
Symbol 244 MovieClip [ColumnMovie] Frame 3
stop();
Symbol 244 MovieClip [ColumnMovie] Frame 4
stop();
Symbol 272 MovieClip Frame 4
_parent._parent.checkHit(onde);
Symbol 272 MovieClip Frame 6
_parent._parent.checkHit(onde);
Symbol 272 MovieClip Frame 8
_parent._parent.checkHit(onde);
Symbol 272 MovieClip Frame 10
_parent._parent.checkHit(onde);
Symbol 272 MovieClip Frame 12
_parent._parent.checkHit(onde);
Symbol 272 MovieClip Frame 14
_parent._parent.checkHit(onde);
Symbol 272 MovieClip Frame 16
_parent._parent.checkHit(onde);
Symbol 272 MovieClip Frame 18
_parent._parent.checkHit(onde);
Symbol 272 MovieClip Frame 20
_parent._parent.checkHit(onde);
Symbol 272 MovieClip Frame 22
_parent._parent.checkHit(onde);
Symbol 272 MovieClip Frame 24
_parent._parent.checkHit(onde);
Symbol 272 MovieClip Frame 26
_parent._parent.checkHit(onde);
Symbol 272 MovieClip Frame 28
_parent._parent.checkHit(onde);
_parent._parent.gotoAndStop("idle");
Symbol 273 MovieClip Frame 7
_global.PlaySound("batAttack", 1);
Symbol 273 MovieClip Frame 12
stop();
Symbol 275 MovieClip Frame 8
_parent._parent.destroy();
stop();
Symbol 276 MovieClip Frame 11
stop();
Symbol 277 MovieClip [BatMovie] Frame 1
this.state = "idle";
stop();
Symbol 277 MovieClip [BatMovie] Frame 3
_global.PlaySound("enemyExplode", 1);
Symbol 342 Button
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
on (release) {
_global.PlaySound("btnClick", 1);
instruction = 3;
gotoAndStop ("instr");
}
Symbol 345 Button
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
on (release) {
_global.inGame = false;
_global.PlaySound("btnClick", 1);
gotoAndStop ("instr");
}
Symbol 354 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 8
stop();
Symbol 399 MovieClip Frame 8
stop();
Symbol 400 MovieClip Frame 8
stop();
Symbol 401 MovieClip Frame 1
stop();
Instance of Symbol 397 MovieClip "flame" in Symbol 401 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent._parent._parent.mcCont.fFlameHit(this, energy);
}
Symbol 401 MovieClip Frame 3
_global.PlaySound("torchHit", 1);
Instance of Symbol 388 MovieClip "flame" in Symbol 401 MovieClip Frame 4
onClipEvent (enterFrame) {
_parent._parent._parent.mcCont.fFlameHit(this, speed);
}
Symbol 401 MovieClip Frame 5
_global.PlaySound("torchHit", 1);
Instance of Symbol 397 MovieClip "flame" in Symbol 401 MovieClip Frame 6
onClipEvent (enterFrame) {
_parent._parent._parent.mcCont.fFlameHit(this, points);
}
Symbol 401 MovieClip Frame 7
_global.PlaySound("torchHit", 1);
Symbol 417 MovieClip Frame 1
stop();
Symbol 417 MovieClip Frame 2
stop();
Symbol 417 MovieClip Frame 3
stop();
Symbol 417 MovieClip Frame 4
stop();
Symbol 417 MovieClip Frame 5
stop();
Symbol 424 MovieClip Frame 1
stop();
Symbol 424 MovieClip Frame 2
stop();
Symbol 424 MovieClip Frame 3
stop();
Symbol 424 MovieClip Frame 4
stop();
Symbol 424 MovieClip Frame 5
stop();
Symbol 691 MovieClip Frame 1
stop();
Symbol 715 MovieClip Frame 2
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 715 MovieClip Frame 3
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 715 MovieClip Frame 4
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 715 MovieClip Frame 5
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 715 MovieClip Frame 6
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 715 MovieClip Frame 7
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 715 MovieClip Frame 8
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 715 MovieClip Frame 9
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 715 MovieClip Frame 10
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 715 MovieClip Frame 11
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 715 MovieClip Frame 12
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 715 MovieClip Frame 13
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 715 MovieClip Frame 14
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 715 MovieClip Frame 15
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 715 MovieClip Frame 16
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 715 MovieClip Frame 17
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 715 MovieClip Frame 18
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 715 MovieClip Frame 19
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 715 MovieClip Frame 20
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 715 MovieClip Frame 21
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 715 MovieClip Frame 22
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 715 MovieClip Frame 23
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 715 MovieClip Frame 24
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 715 MovieClip Frame 25
stop();
_global.speed = _global.topSpeed;
_parent.present = this._currentframe;
Symbol 733 MovieClip Frame 1
_global.PlaySound("hurt", 1);
_global.speed = _global.normalSpeed;
Symbol 733 MovieClip Frame 25
stop();
_global.charLife--;
_parent.gotoAndStop("Idle");
Symbol 747 MovieClip Frame 2
_parent._parent._parent.mcCont.fShoot(-17, 20);
Symbol 747 MovieClip Frame 11
_parent.gotoAndStop("Idle");
Symbol 755 MovieClip Frame 2
_parent._parent._parent.mcCont.fShoot(76, 55);
Symbol 755 MovieClip Frame 11
_parent.gotoAndStop("Idle");
Symbol 757 MovieClip Frame 1
_global.speed = _global.normalSpeed;
_global.PlaySound("death", 1);
Symbol 757 MovieClip Frame 40
stop();
if (_global.lives <= 0) {
_parent._parent._parent.mcCont.gotoAndPlay(1);
} else {
_global.energy = 1;
_parent._parent._parent.mcInterface.energyBar.energy.gotoAndStop(1);
_parent.gotoAndStop("Idle");
}
Symbol 759 MovieClip Frame 2
_parent._parent._parent.mcCont.fShoot(-17, 0);
Symbol 759 MovieClip Frame 11
_parent.speedUp = true;
_parent.gotoAndStop("transitionAcc");
Symbol 761 MovieClip Frame 2
_parent._parent._parent.mcCont.fShoot(25, 30);
Symbol 761 MovieClip Frame 11
_parent.speedUp = true;
_parent.gotoAndStop("transitionAcc");
Symbol 762 MovieClip Frame 2
_global.speed = _global.speed - 2;
Symbol 762 MovieClip Frame 3
_global.speed = _global.speed - 2;
Symbol 762 MovieClip Frame 4
_global.speed = _global.speed - 2;
Symbol 762 MovieClip Frame 5
_global.speed = _global.speed - 2;
Symbol 762 MovieClip Frame 6
_global.speed = _global.speed - 2;
Symbol 762 MovieClip Frame 7
_global.speed = _global.speed - 2;
Symbol 762 MovieClip Frame 8
_global.speed = _global.speed - 2;
Symbol 762 MovieClip Frame 9
_global.speed = _global.speed - 2;
Symbol 762 MovieClip Frame 10
_global.speed = _global.speed - 2;
Symbol 762 MovieClip Frame 11
_global.speed = _global.speed - 2;
Symbol 762 MovieClip Frame 12
_global.speed = _global.speed - 2;
Symbol 762 MovieClip Frame 13
_global.speed = _global.speed - 2;
Symbol 762 MovieClip Frame 14
_global.speed = _global.speed - 2;
Symbol 762 MovieClip Frame 15
_global.speed = _global.speed - 2;
Symbol 762 MovieClip Frame 16
_global.speed = _global.speed - 2;
Symbol 762 MovieClip Frame 17
_global.speed = _global.speed - 2;
Symbol 762 MovieClip Frame 18
_global.speed = _global.speed - 2;
Symbol 762 MovieClip Frame 19
_global.speed = _global.speed - 2;
Symbol 762 MovieClip Frame 20
_global.speed = _global.speed - 2;
Symbol 762 MovieClip Frame 21
_global.speed = _global.speed - 2;
Symbol 762 MovieClip Frame 22
_global.speed = _global.speed - 2;
Symbol 762 MovieClip Frame 23
_global.speed = _global.speed - 2;
Symbol 762 MovieClip Frame 24
_global.speed = _global.speed - 2;
Symbol 762 MovieClip Frame 25
stop();
_global.speed = _global.normalSpeed;
_parent.gotoAndStop("Idle");
Symbol 763 MovieClip Frame 1
stop();
speedUp = false;
present = "";
Symbol 763 MovieClip Frame 2
if (speedUp == true) {
acc.gotoAndStop(25);
}
Symbol 763 MovieClip Frame 9
speedUp = false;
decel.gotoAndPlay(26 - present);
Symbol 779 MovieClip Frame 2
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 779 MovieClip Frame 3
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 779 MovieClip Frame 4
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 779 MovieClip Frame 5
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 779 MovieClip Frame 6
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 779 MovieClip Frame 7
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 779 MovieClip Frame 8
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 779 MovieClip Frame 9
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 779 MovieClip Frame 10
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 779 MovieClip Frame 11
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 779 MovieClip Frame 12
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 779 MovieClip Frame 13
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 779 MovieClip Frame 14
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 779 MovieClip Frame 15
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 779 MovieClip Frame 16
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 779 MovieClip Frame 17
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 779 MovieClip Frame 18
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 779 MovieClip Frame 19
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 779 MovieClip Frame 20
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 779 MovieClip Frame 21
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 779 MovieClip Frame 22
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 779 MovieClip Frame 23
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 779 MovieClip Frame 24
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 779 MovieClip Frame 25
stop();
_global.speed = _global.topSpeed;
_parent.present = this._currentframe;
Symbol 798 MovieClip Frame 1
_global.PlaySound("hurt", 1);
_global.speed = _global.normalSpeed;
Symbol 798 MovieClip Frame 25
stop();
_global.charLife--;
_parent.gotoAndStop("Idle");
Symbol 810 MovieClip Frame 1
_global.speed = _global.normalSpeed;
Symbol 810 MovieClip Frame 2
_parent._parent._parent.mcCont.fShoot(-17, 20);
Symbol 810 MovieClip Frame 11
_parent.gotoAndStop("Idle");
Symbol 817 MovieClip Frame 1
_global.speed = _global.normalSpeed;
Symbol 817 MovieClip Frame 6
_parent._parent._parent.mcCont.fShoot(76, 55);
Symbol 817 MovieClip Frame 11
_parent.gotoAndStop("Idle");
Symbol 819 MovieClip Frame 1
_global.speed = _global.normalSpeed;
_global.PlaySound("death", 1);
Symbol 819 MovieClip Frame 40
stop();
if (_global.lives <= 0) {
_parent._parent._parent.mcCont.gotoAndPlay(1);
} else {
_global.energy = 1;
_parent._parent._parent.mcInterface.energyBar.energy.gotoAndStop(1);
_parent.gotoAndStop("Idle");
}
Symbol 822 MovieClip Frame 2
_parent._parent._parent.mcCont.fShoot(-17, 0);
Symbol 822 MovieClip Frame 11
_parent.speedUp = true;
_parent.gotoAndStop("transitionAcc");
Symbol 824 MovieClip Frame 2
_parent._parent._parent.mcCont.fShoot(25, 30);
Symbol 824 MovieClip Frame 11
_parent.speedUp = true;
_parent.gotoAndStop("transitionAcc");
Symbol 825 MovieClip Frame 2
_global.speed = _global.speed - 2;
Symbol 825 MovieClip Frame 3
_global.speed = _global.speed - 2;
Symbol 825 MovieClip Frame 4
_global.speed = _global.speed - 2;
Symbol 825 MovieClip Frame 5
_global.speed = _global.speed - 2;
Symbol 825 MovieClip Frame 6
_global.speed = _global.speed - 2;
Symbol 825 MovieClip Frame 7
_global.speed = _global.speed - 2;
Symbol 825 MovieClip Frame 8
_global.speed = _global.speed - 2;
Symbol 825 MovieClip Frame 9
_global.speed = _global.speed - 2;
Symbol 825 MovieClip Frame 10
_global.speed = _global.speed - 2;
Symbol 825 MovieClip Frame 11
_global.speed = _global.speed - 2;
Symbol 825 MovieClip Frame 12
_global.speed = _global.speed - 2;
Symbol 825 MovieClip Frame 13
_global.speed = _global.speed - 2;
Symbol 825 MovieClip Frame 14
_global.speed = _global.speed - 2;
Symbol 825 MovieClip Frame 15
_global.speed = _global.speed - 2;
Symbol 825 MovieClip Frame 16
_global.speed = _global.speed - 2;
Symbol 825 MovieClip Frame 17
_global.speed = _global.speed - 2;
Symbol 825 MovieClip Frame 18
_global.speed = _global.speed - 2;
Symbol 825 MovieClip Frame 19
_global.speed = _global.speed - 2;
Symbol 825 MovieClip Frame 20
_global.speed = _global.speed - 2;
Symbol 825 MovieClip Frame 21
_global.speed = _global.speed - 2;
Symbol 825 MovieClip Frame 22
_global.speed = _global.speed - 2;
Symbol 825 MovieClip Frame 23
_global.speed = _global.speed - 2;
Symbol 825 MovieClip Frame 24
_global.speed = _global.speed - 2;
Symbol 825 MovieClip Frame 25
stop();
_global.speed = _global.normalSpeed;
_parent.gotoAndStop("Idle");
Symbol 826 MovieClip Frame 1
stop();
speedUp = false;
present = "";
Symbol 826 MovieClip Frame 2
if (speedUp == true) {
acc.gotoAndStop(25);
}
Symbol 826 MovieClip Frame 9
speedUp = false;
decel.gotoAndPlay(26 - present);
Symbol 849 MovieClip Frame 2
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 849 MovieClip Frame 3
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 849 MovieClip Frame 4
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 849 MovieClip Frame 5
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 849 MovieClip Frame 6
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 849 MovieClip Frame 7
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 849 MovieClip Frame 8
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 849 MovieClip Frame 9
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 849 MovieClip Frame 10
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 849 MovieClip Frame 11
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 849 MovieClip Frame 12
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 849 MovieClip Frame 13
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 849 MovieClip Frame 14
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 849 MovieClip Frame 15
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 849 MovieClip Frame 16
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 849 MovieClip Frame 17
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 849 MovieClip Frame 18
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 849 MovieClip Frame 19
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 849 MovieClip Frame 20
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 849 MovieClip Frame 21
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 849 MovieClip Frame 22
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 849 MovieClip Frame 23
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 849 MovieClip Frame 24
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 849 MovieClip Frame 25
stop();
_global.speed = _global.topSpeed;
_parent.present = this._currentframe;
Symbol 872 MovieClip Frame 1
_global.PlaySound("hurt", 1);
_global.speed = _global.normalSpeed;
Symbol 872 MovieClip Frame 25
stop();
_global.charLife--;
_parent.gotoAndStop("Idle");
Symbol 882 MovieClip Frame 1
_global.speed = _global.normalSpeed;
Symbol 882 MovieClip Frame 2
_parent._parent._parent.mcCont.fShoot(-17, 20);
Symbol 882 MovieClip Frame 11
_parent.gotoAndStop("Idle");
Symbol 890 MovieClip Frame 1
_global.speed = _global.normalSpeed;
Symbol 890 MovieClip Frame 6
_parent._parent._parent.mcCont.fShoot(76, 55);
Symbol 890 MovieClip Frame 11
_parent.gotoAndStop("Idle");
Symbol 892 MovieClip Frame 1
_global.speed = _global.normalSpeed;
_global.PlaySound("death", 1);
Symbol 892 MovieClip Frame 40
stop();
if (_global.lives <= 0) {
_parent._parent._parent.mcCont.gotoAndPlay(1);
} else {
_global.energy = 1;
_parent._parent._parent.mcInterface.energyBar.energy.gotoAndStop(1);
_parent.gotoAndStop("Idle");
}
Symbol 894 MovieClip Frame 2
_parent._parent._parent.mcCont.fShoot(-17, 0);
Symbol 894 MovieClip Frame 11
_parent.speedUp = true;
_parent.gotoAndStop("transitionAcc");
Symbol 896 MovieClip Frame 2
_parent._parent._parent.mcCont.fShoot(25, 30);
Symbol 896 MovieClip Frame 11
_parent.speedUp = true;
_parent.gotoAndStop("transitionAcc");
Symbol 897 MovieClip Frame 2
_global.speed = _global.speed - 2;
Symbol 897 MovieClip Frame 3
_global.speed = _global.speed - 2;
Symbol 897 MovieClip Frame 4
_global.speed = _global.speed - 2;
Symbol 897 MovieClip Frame 5
_global.speed = _global.speed - 2;
Symbol 897 MovieClip Frame 6
_global.speed = _global.speed - 2;
Symbol 897 MovieClip Frame 7
_global.speed = _global.speed - 2;
Symbol 897 MovieClip Frame 8
_global.speed = _global.speed - 2;
Symbol 897 MovieClip Frame 9
_global.speed = _global.speed - 2;
Symbol 897 MovieClip Frame 10
_global.speed = _global.speed - 2;
Symbol 897 MovieClip Frame 11
_global.speed = _global.speed - 2;
Symbol 897 MovieClip Frame 12
_global.speed = _global.speed - 2;
Symbol 897 MovieClip Frame 13
_global.speed = _global.speed - 2;
Symbol 897 MovieClip Frame 14
_global.speed = _global.speed - 2;
Symbol 897 MovieClip Frame 15
_global.speed = _global.speed - 2;
Symbol 897 MovieClip Frame 16
_global.speed = _global.speed - 2;
Symbol 897 MovieClip Frame 17
_global.speed = _global.speed - 2;
Symbol 897 MovieClip Frame 18
_global.speed = _global.speed - 2;
Symbol 897 MovieClip Frame 19
_global.speed = _global.speed - 2;
Symbol 897 MovieClip Frame 20
_global.speed = _global.speed - 2;
Symbol 897 MovieClip Frame 21
_global.speed = _global.speed - 2;
Symbol 897 MovieClip Frame 22
_global.speed = _global.speed - 2;
Symbol 897 MovieClip Frame 23
_global.speed = _global.speed - 2;
Symbol 897 MovieClip Frame 24
_global.speed = _global.speed - 2;
Symbol 897 MovieClip Frame 25
stop();
_global.speed = _global.normalSpeed;
_parent.gotoAndStop("Idle");
Symbol 898 MovieClip Frame 1
stop();
speedUp = false;
present = "";
Symbol 898 MovieClip Frame 2
if (speedUp == true) {
acc.gotoAndStop(25);
}
Symbol 898 MovieClip Frame 9
speedUp = false;
decel.gotoAndPlay(26 - present);
Symbol 909 MovieClip Frame 2
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 909 MovieClip Frame 3
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 909 MovieClip Frame 4
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 909 MovieClip Frame 5
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 909 MovieClip Frame 6
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 909 MovieClip Frame 7
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 909 MovieClip Frame 8
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 909 MovieClip Frame 9
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 909 MovieClip Frame 10
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 909 MovieClip Frame 11
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 909 MovieClip Frame 12
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 909 MovieClip Frame 13
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 909 MovieClip Frame 14
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 909 MovieClip Frame 15
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 909 MovieClip Frame 16
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 909 MovieClip Frame 17
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 909 MovieClip Frame 18
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 909 MovieClip Frame 19
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 909 MovieClip Frame 20
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 909 MovieClip Frame 21
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 909 MovieClip Frame 22
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 909 MovieClip Frame 23
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 909 MovieClip Frame 24
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 909 MovieClip Frame 25
stop();
_global.speed = _global.topSpeed;
_parent.present = this._currentframe;
Symbol 917 MovieClip Frame 1
_global.PlaySound("hurt", 1);
_global.speed = _global.normalSpeed;
Symbol 917 MovieClip Frame 25
stop();
_global.charLife--;
_parent.gotoAndStop("Idle");
Symbol 925 MovieClip Frame 1
_global.speed = _global.normalSpeed;
Symbol 925 MovieClip Frame 2
_parent._parent._parent.mcCont.fShoot(-17, 20);
Symbol 925 MovieClip Frame 11
_parent.gotoAndStop("Idle");
Symbol 929 MovieClip Frame 1
_global.speed = _global.normalSpeed;
Symbol 929 MovieClip Frame 6
_parent._parent._parent.mcCont.fShoot(76, 55);
Symbol 929 MovieClip Frame 11
_parent.gotoAndStop("Idle");
Symbol 931 MovieClip Frame 1
_global.speed = _global.normalSpeed;
_global.PlaySound("death", 1);
Symbol 931 MovieClip Frame 40
stop();
if (_global.lives <= 0) {
_parent._parent._parent.mcCont.gotoAndPlay(1);
} else {
_global.energy = 1;
_parent._parent._parent.mcInterface.energyBar.energy.gotoAndStop(1);
_parent.gotoAndStop("Idle");
}
Symbol 933 MovieClip Frame 2
_parent._parent._parent.mcCont.fShoot(-17, 0);
Symbol 933 MovieClip Frame 11
_parent.speedUp = true;
_parent.gotoAndStop("transitionAcc");
Symbol 935 MovieClip Frame 2
_parent._parent._parent.mcCont.fShoot(25, 30);
Symbol 935 MovieClip Frame 11
_parent.speedUp = true;
_parent.gotoAndStop("transitionAcc");
Symbol 936 MovieClip Frame 2
_global.speed = _global.speed - 2;
Symbol 936 MovieClip Frame 3
_global.speed = _global.speed - 2;
Symbol 936 MovieClip Frame 4
_global.speed = _global.speed - 2;
Symbol 936 MovieClip Frame 5
_global.speed = _global.speed - 2;
Symbol 936 MovieClip Frame 6
_global.speed = _global.speed - 2;
Symbol 936 MovieClip Frame 7
_global.speed = _global.speed - 2;
Symbol 936 MovieClip Frame 8
_global.speed = _global.speed - 2;
Symbol 936 MovieClip Frame 9
_global.speed = _global.speed - 2;
Symbol 936 MovieClip Frame 10
_global.speed = _global.speed - 2;
Symbol 936 MovieClip Frame 11
_global.speed = _global.speed - 2;
Symbol 936 MovieClip Frame 12
_global.speed = _global.speed - 2;
Symbol 936 MovieClip Frame 13
_global.speed = _global.speed - 2;
Symbol 936 MovieClip Frame 14
_global.speed = _global.speed - 2;
Symbol 936 MovieClip Frame 15
_global.speed = _global.speed - 2;
Symbol 936 MovieClip Frame 16
_global.speed = _global.speed - 2;
Symbol 936 MovieClip Frame 17
_global.speed = _global.speed - 2;
Symbol 936 MovieClip Frame 18
_global.speed = _global.speed - 2;
Symbol 936 MovieClip Frame 19
_global.speed = _global.speed - 2;
Symbol 936 MovieClip Frame 20
_global.speed = _global.speed - 2;
Symbol 936 MovieClip Frame 21
_global.speed = _global.speed - 2;
Symbol 936 MovieClip Frame 22
_global.speed = _global.speed - 2;
Symbol 936 MovieClip Frame 23
_global.speed = _global.speed - 2;
Symbol 936 MovieClip Frame 24
_global.speed = _global.speed - 2;
Symbol 936 MovieClip Frame 25
stop();
_global.speed = _global.normalSpeed;
_parent.gotoAndStop("Idle");
Symbol 937 MovieClip Frame 1
stop();
speedUp = false;
present = "";
Symbol 937 MovieClip Frame 2
if (speedUp == true) {
acc.gotoAndStop(25);
}
Symbol 937 MovieClip Frame 9
speedUp = false;
decel.gotoAndPlay(26 - present);
Symbol 958 MovieClip Frame 2
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 958 MovieClip Frame 3
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 958 MovieClip Frame 4
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 958 MovieClip Frame 5
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 958 MovieClip Frame 6
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 958 MovieClip Frame 7
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 958 MovieClip Frame 8
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 958 MovieClip Frame 9
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 958 MovieClip Frame 10
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 958 MovieClip Frame 11
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 958 MovieClip Frame 12
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 958 MovieClip Frame 13
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 958 MovieClip Frame 14
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 958 MovieClip Frame 15
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 958 MovieClip Frame 16
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 958 MovieClip Frame 17
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 958 MovieClip Frame 18
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 958 MovieClip Frame 19
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 958 MovieClip Frame 20
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 958 MovieClip Frame 21
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 958 MovieClip Frame 22
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 958 MovieClip Frame 23
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 958 MovieClip Frame 24
_global.speed = _global.speed + 2;
_parent.present = this._currentframe;
Symbol 958 MovieClip Frame 25
stop();
_global.speed = _global.topSpeed;
_parent.present = this._currentframe;
Symbol 970 MovieClip Frame 1
_global.PlaySound("hurt", 1);
_global.speed = _global.normalSpeed;
Symbol 970 MovieClip Frame 25
stop();
_global.charLife--;
_parent.gotoAndStop("Idle");
Symbol 980 MovieClip Frame 1
_global.speed = _global.normalSpeed;
Symbol 980 MovieClip Frame 2
_parent._parent._parent.mcCont.fShoot(-17, 20);
Symbol 980 MovieClip Frame 11
_parent.gotoAndStop("Idle");
Symbol 988 MovieClip Frame 1
_global.speed = _global.normalSpeed;
Symbol 988 MovieClip Frame 6
_parent._parent._parent.mcCont.fShoot(76, 55);
Symbol 988 MovieClip Frame 11
_parent.gotoAndStop("Idle");
Symbol 989 MovieClip Frame 1
_global.speed = _global.normalSpeed;
_global.PlaySound("death", 1);
Symbol 989 MovieClip Frame 40
stop();
if (_global.lives <= 0) {
_parent._parent._parent.mcCont.gotoAndPlay(1);
} else {
_global.energy = 1;
_parent._parent._parent.mcInterface.energyBar.energy.gotoAndStop(1);
_parent.gotoAndStop("Idle");
}
Symbol 991 MovieClip Frame 2
_parent._parent._parent.mcCont.fShoot(-17, 0);
Symbol 991 MovieClip Frame 11
_parent.speedUp = true;
_parent.gotoAndStop("transitionAcc");
Symbol 993 MovieClip Frame 2
_parent._parent._parent.mcCont.fShoot(25, 30);
Symbol 993 MovieClip Frame 11
_parent.speedUp = true;
_parent.gotoAndStop("transitionAcc");
Symbol 994 MovieClip Frame 2
_global.speed = _global.speed - 2;
Symbol 994 MovieClip Frame 3
_global.speed = _global.speed - 2;
Symbol 994 MovieClip Frame 4
_global.speed = _global.speed - 2;
Symbol 994 MovieClip Frame 5
_global.speed = _global.speed - 2;
Symbol 994 MovieClip Frame 6
_global.speed = _global.speed - 2;
Symbol 994 MovieClip Frame 7
_global.speed = _global.speed - 2;
Symbol 994 MovieClip Frame 8
_global.speed = _global.speed - 2;
Symbol 994 MovieClip Frame 9
_global.speed = _global.speed - 2;
Symbol 994 MovieClip Frame 10
_global.speed = _global.speed - 2;
Symbol 994 MovieClip Frame 11
_global.speed = _global.speed - 2;
Symbol 994 MovieClip Frame 12
_global.speed = _global.speed - 2;
Symbol 994 MovieClip Frame 13
_global.speed = _global.speed - 2;
Symbol 994 MovieClip Frame 14
_global.speed = _global.speed - 2;
Symbol 994 MovieClip Frame 15
_global.speed = _global.speed - 2;
Symbol 994 MovieClip Frame 16
_global.speed = _global.speed - 2;
Symbol 994 MovieClip Frame 17
_global.speed = _global.speed - 2;
Symbol 994 MovieClip Frame 18
_global.speed = _global.speed - 2;
Symbol 994 MovieClip Frame 19
_global.speed = _global.speed - 2;
Symbol 994 MovieClip Frame 20
_global.speed = _global.speed - 2;
Symbol 994 MovieClip Frame 21
_global.speed = _global.speed - 2;
Symbol 994 MovieClip Frame 22
_global.speed = _global.speed - 2;
Symbol 994 MovieClip Frame 23
_global.speed = _global.speed - 2;
Symbol 994 MovieClip Frame 24
_global.speed = _global.speed - 2;
Symbol 994 MovieClip Frame 25
stop();
_global.speed = _global.normalSpeed;
_parent.gotoAndStop("Idle");
Symbol 995 MovieClip Frame 1
stop();
speedUp = false;
present = "";
Symbol 995 MovieClip Frame 2
if (speedUp == true) {
acc.gotoAndStop(25);
}
Symbol 995 MovieClip Frame 9
speedUp = false;
decel.gotoAndPlay(26 - present);
Instance of Symbol 763 MovieClip "char" in Symbol 996 MovieClip Frame 1
onClipEvent (load) {
if (_global.currentWitch != "Will") {
_parent.gotoAndPlay(_global.currentWitch);
}
}
Symbol 996 MovieClip Frame 60
gotoAndPlay ("Will");
Instance of Symbol 826 MovieClip "char" in Symbol 996 MovieClip Frame 61
onClipEvent (load) {
if (_global.currentWitch != "Irma") {
_parent.gotoAndPlay(_global.currentWitch);
}
}
Symbol 996 MovieClip Frame 120
gotoAndPlay ("Irma");
Instance of Symbol 898 MovieClip "char" in Symbol 996 MovieClip Frame 121
onClipEvent (load) {
if (_global.currentWitch != "Taranee") {
_parent.gotoAndPlay(_global.currentWitch);
}
}
Symbol 996 MovieClip Frame 180
gotoAndPlay ("Taranee");
Instance of Symbol 937 MovieClip "char" in Symbol 996 MovieClip Frame 181
onClipEvent (load) {
if (_global.currentWitch != "Cornelia") {
_parent.gotoAndPlay(_global.currentWitch);
}
}
Symbol 996 MovieClip Frame 240
gotoAndPlay ("Cornelia");
Instance of Symbol 995 MovieClip "char" in Symbol 996 MovieClip Frame 241
onClipEvent (load) {
if (_global.currentWitch != "HayLin") {
_parent.gotoAndPlay(_global.currentWitch);
}
}
Symbol 996 MovieClip Frame 301
gotoAndPlay ("HayLin");
Symbol 1021 MovieClip Frame 1
stop();
Symbol 1027 MovieClip Frame 1
stop();
Symbol 1033 Button
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
on (release) {
_global.PlaySound("btnClick", 1);
if (!_global.freeze) {
_global.allSounds.setVolume(20);
_root.mcGame.mcCont.gamePause();
_root.gotoAndStop("menu");
} else {
_global.allSounds.setVolume(100);
_root.mcGame.mcCont.gameUnpause();
_root.gotoAndStop("play");
}
}
Symbol 1036 MovieClip Frame 1
stop();
Symbol 1096 MovieClip Frame 1
stop();
Symbol 1099 MovieClip Frame 30
this.update();
gotoAndPlay (1);
Symbol 1104 Button
on (release) {
_global.musicIsPlaying = false;
_global.StopSound("music");
this.gotoAndPlay(2);
}
Symbol 1105 Button
on (release) {
_global.musicIsPlaying = true;
_global.PlaySound("music", 99999);
this.gotoAndPlay(1);
}
Symbol 1106 MovieClip Frame 1
stop();
Symbol 1106 MovieClip Frame 2
stop();
Symbol 1107 MovieClip Frame 1
nbLife = _global.lives - 1;
Instance of Symbol 1099 MovieClip "mcChrono" in Symbol 1107 MovieClip Frame 1
onClipEvent (load) {
function setTime(seconds) {
var _local1 = this;
_local1.reachedZero = false;
_local1.time = seconds + 1;
_local1.doUpdate();
}
function update() {
if (!_global.freeze) {
this.doUpdate();
this.doEnemyInterval();
}
}
function doUpdate() {
var _local1 = this;
if (_local1.time > 0) {
_local1.time--;
} else if (!_local1.reachedZero) {
_local1.reachedZero = true;
_root.mcGame.mcCont.fDeath();
}
var _local3 = Math.floor(_local1.time / 60);
var _local2 = _local1.time - (_local3 * 60);
if (_local2 < 10) {
_local2 = "0" + _local2;
}
_local1.chronoValue = (_local3 + ":") + _local2;
}
function doEnemyInterval() {
var _local1 = _global;
_local1.enemyIntervalCount++;
if ((!_local1.enemyIntervalDone) && (_local1.enemyIntervalCount >= _local1.enemyInterval)) {
_local1.enemyIntervalDone = true;
_local1.sCont.createEnemy(_local1.gameNumber);
}
}
_global.chronoMC = this;
this.time = 0;
}
onClipEvent (enterFrame) {
if (_global.freeze || (_global.timeStop)) {
this.stop();
} else {
this.play();
}
}
Instance of Symbol 1106 MovieClip "stopSound" in Symbol 1107 MovieClip Frame 1
onClipEvent (load) {
if (_global.musicIsPlaying == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Symbol 1111 MovieClip Frame 1
stop();
Symbol 1111 MovieClip Frame 2
_global.PlaySound("enemyExplode", 1);
Symbol 1113 MovieClip Frame 2
function enemyInit(enemy, enemyType) {
var _local2 = _global;
var _local1 = enemy.object;
_local1.type = enemyType;
_local1.enabled = false;
_local1.speed = 5;
_local1.state = "idle";
_local1.reflex = 20;
_local1.canAvoid = false;
_local1.enable = enemyEnable;
_local1.disable = enemyDisable;
_local1.destroy = enemyDestroy;
_local1.checkHit = enemyCheckHit;
_local1.die = enemyDie;
switch (_local1.type) {
case "bat" :
_local1.behavior = enemyBehaviorBat;
_local1.setMove = enemySetMove;
_local1.attack = enemyAttackBat;
_local1.distanceBeforeAttack = _local2.batBeforeAttack;
_local1.distanceBeforeFollow = 1500;
_local1.delayBeforeNextAttack = _local2.batAttackDelay;
_local1.multipleAttack = true;
_local1.move = true;
_local1.speed = _local2.batSpeed;
_local1.firstMove = true;
_local1.type = "bat";
break;
case "snake" :
_local1.behavior = enemyBehaviorSnake;
_local1.setMove = enemySetMove;
_local1.attack = enemyAttackSnake;
_local1.distanceBeforeAttack = _local2.snackBeforeAttack;
_local1.distanceBeforeFollow = 1500;
_local1.delayBeforeNextAttack = _local2.snackAttackDelay;
_local1.multipleAttack = true;
_local1.move = false;
_local1.firstMove = true;
_local1.type = "snake";
break;
case "rat" :
_local1.behavior = enemyBehaviorRat;
_local1.setMove = enemyRatSetMove;
_local1.attack = enemyAttackRat;
_local1.checkHit = enemyRatCheckHit;
_local1.die = enemyRatDie;
_local1.doDie = enemyDie;
_local1.distanceBeforeAttack = 1500;
_local1.distanceBeforeFollow = 2500;
_local1.multipleAttack = false;
_local1.move = false;
_local1.reflex = _local2.ratReflex;
_local1.speed = _local2.ratSpeed;
_local1.type = "rat";
break;
case "column" :
_local1.canAvoid = true;
_local1.cantDie = true;
break;
case "rock" :
_local1.behavior = enemyBehaviorRock;
_local1.canAvoid = true;
break;
case "magicBall" :
_local1.die = enemyMagicBallDie;
_local1.canAvoid = true;
break;
case "magic" :
_local1.die = enemyMagicDie;
_local1.behavior = enemyBehaviorMagic;
}
_local1.onEnterFrame = enemyDoBehavior;
_local1.gotoAndStop(_local1.state);
}
function enemyEnable() {
this.enabled = true;
}
function enemyDisable() {
this.enabled = false;
}
function enemyDie() {
var _local1 = this;
if (((_local1.state != "death") && (!_local1.cantDie)) && (!(((_local1.type == "rat") && (_local1.hasAttacked)) && (_local1.state != "attack")))) {
_local1.state = "death";
_root.score = _root.score + 250;
_local1.gotoAndStop("Death");
}
}
function enemyRatDie() {
var _local1 = this;
if ((!_local1.hasAttacked) && (_local1.state != "attack")) {
_local1.doDie();
}
}
function enemyMagicDie() {
var _local1 = this;
if (((_local1.state != "death") && (!_local1.cantDie)) && (!(((_local1.type == "rat") && (_local1.hasAttacked)) && (_local1.state != "attack")))) {
_local1.state = "death";
_global.magicCanBeCreated = true;
_root.score = _root.score + 500;
_local1.gotoAndStop("Death");
}
}
function enemyMagicBallDie() {
var _local1 = this;
if (((_local1.state != "death") && (!_local1.cantDie)) && (!(((_local1.type == "rat") && (_local1.hasAttacked)) && (_local1.state != "attack")))) {
_local1.state = "death";
_root.score = _root.score + 500;
_local1.gotoAndStop("Death");
}
}
function enemyDestroy() {
var _local1 = this;
_local1.disable();
_local1.removeMovieClip();
}
function enemyDoBehavior() {
var _local1 = this;
var _local2 = _global;
if (_local1.enabled && (!_local2.freeze)) {
var mouseX = _root._xmouse;
var _local3 = (_local1._x + _local1._parent._x) + _local1._parent._parent._x;
var playerX = ((_local1._parent.mcChar._x + _local1._parent.mcChar._parent._x) + _local1._parent.mcChar._parent._parent._x);
if (_local1.move) {
_local1.o3Dpoints.x = _local1.o3Dpoints.x + (_local1.direction * _local1.speed);
if (_local1.o3Dpoints.x <= _local2.sCont.Xmin) {
_local1.o3Dpoints.x = _local2.sCont.Xmin;
}
if (_local1.o3Dpoints.x >= _local2.sCont.Xmax) {
_local1.o3Dpoints.x = _local2.sCont.Xmax;
}
}
if (_local1.firstMove) {
if (Math.round(Math.random() * _local1.reflex) == 1) {
if (_local1.o3Dpoints.z < _local1.distanceBeforeFollow) {
if (playerX > _local3) {
_local1.setMove(1);
} else {
_local1.setMove(-1);
}
} else if (mouseX < _local3) {
_local1.setMove(1);
} else {
_local1.setMove(-1);
}
}
}
if ((((_local1.o3Dpoints.z <= _local1.distanceBeforeAttack) && (!_local1.hasAttacked)) && (_local1.state != "attack")) && (_local1.state != "death")) {
_local1.state = "attack";
_local1.hasAttacked = true;
if (_local1.multipleAttack) {
_local1.nextAttackTimer = (getTimer() + _local1.delayBeforeNextAttack) + Math.round(Math.random() * 500);
}
_local1.attack();
}
if (_local1.nextAttackTimer < getTimer()) {
delete _local1.hasAttacked;
delete _local1.nextAttackTimer;
}
if (((_local1.o3Dpoints.z <= 0) && (!_local1.isOut)) && (_local1.state != "death")) {
if ((_local1.anim.hit && (_local1.anim.hit.hitTest(_local1._parent.mcChar))) || ((!_local1.anim.hit) && (_local1.hitTest(_local1._parent.mcChar)))) {
fPlayerHit(15);
} else if (!_local1.canAvoid) {
} else {
_root.score = _root.score + 250;
}
_local1.isOut = true;
}
_local1.behavior();
_local1.update();
}
}
function enemyCheckHit(mc) {
var _local1 = mc;
if (((_local1.hitTest(_parent.mcChar) && (!_local1.hasHit)) && (this.enabled)) && (this.state != "death")) {
_global.sCont.fPlayerHit(15);
_local1.hasHit = true;
}
}
function enemyRatCheckHit(mc) {
if (mc.hitTest(_parent.mcChar) && (this.state != "death")) {
_global.sCont.fPlayerHit(15);
}
}
function enemyBehaviorBat() {
if (this.o3Dpoints.z < 1000) {
this.o3Dpoints.y = this.o3Dpoints.y + 7;
}
}
function enemyBehaviorSnake() {
}
function enemyAttackSnake() {
var _local1 = this;
var _local3 = _parent;
var distance = (_local3.mcCont.Xmax - _local3.mcCont.Xmin);
var x = (_local1.o3Dpoints.x - _local3.mcCont.Xmin);
var _local2 = x / distance;
if (_local2 <= 0.33) {
_local1.attackDirection = 3;
} else if ((_local2 > 0.33) && (_local2 <= 0.66)) {
_local1.attackDirection = 2;
} else {
_local1.attackDirection = 1;
}
_local1.gotoAndStop("Attack");
}
function enemyAttackRat() {
this.gotoAndStop("Attack");
}
function enemyAttackBat() {
this.gotoAndStop("Attack");
}
function enemyBehaviorRat() {
var _local1 = this;
var _local2 = _parent;
if (((_local1.state != "death") && (!_local1.hasAttacked)) && (_local1.state != "attack")) {
if (!_local1.firstMove) {
_local1.move = true;
_local1.firstMove = true;
_local1.direction = -1;
_local1.gotoAndStop("turnRight");
}
if (_local1.move) {
if ((_local1.o3Dpoints.x <= _local2.mcCont.Xmin) || (_local1.o3Dpoints.x >= _local2.mcCont.Xmax)) {
_local1.move = false;
if (!_local1.hasAttacked) {
_local1.gotoAndStop("idle");
}
if (_local1.o3Dpoints.x <= _local2.mcCont.Xmin) {
}
}
}
}
if (_local1.state == "attack") {
_local1.o3Dpoints.x = _local1.o3Dpoints.x + (50 * _local1.direction);
}
}
function enemyBehaviorRock() {
var _local1 = this;
if ((((_local1.o3Dpoints.z < -20) && (!_local1.hasAttacked)) && (_local1.state != "death")) && (!_local1.doubleRockFix)) {
_local1.o3Dpoints.z = 300;
_local1.isOut = false;
_local1.hasAttacked = true;
_local1.doubleRockFix = true;
_local1.state = "attack";
_local1.gotoAndStop("attack");
}
}
function enemyBehaviorMagic() {
var _local1 = _global;
if (this.o3Dpoints.z < 0) {
_local1.magicCanBeCreated = true;
_local1.StopSound("acidLoop");
_local1.StopSound("fireLoop");
_local1.StopSound("portalLoop");
}
}
function enemySetMove(direction) {
this.direction = direction;
}
function enemyRatSetMove(direction) {
var _local1 = this;
var _local2 = direction;
if ((((_local1.direction != _local2) && (!_local1.hasAttacked)) && (_local1.state != "attack")) && (_local1.state != "death")) {
if (_local2 == -1) {
_local1.gotoAndStop("turnRight");
_local1.move = false;
} else {
_local1.gotoAndStop("turnLeft");
_local1.move = false;
}
_local1.direction = _local2;
}
}
function pauseInit() {
_global.pause = new Object();
AsBroadcaster.initialize(_global.pause);
}
function registerPause(mc) {
}
function registerPauseAuto(mc) {
var _local1 = mc;
if (!_local1.onUnLoad) {
registerPause(_local1);
_local1.onUnload = function () {
unregisterPause(this);
};
}
}
function unregisterPause(mc) {
_global.pause.removeListener(mc);
}
function gamePause() {
_global.freeze = true;
_global.pause.broadcastMessage("stop");
}
function gameUnpause() {
_root.mcGame.mcInterface.chrono.startTime = getTimer() - _root.mcGame.mcInterface.chrono.elapsed;
_global.freeze = false;
_global.pause.broadcastMessage("play");
}
function fSetLevel(level, trueLevel) {
var _local1 = _global;
var _local2 = _parent;
var _local3 = level;
_local1.shoot = true;
if (trueLevel == 1) {
_local1.maxTime = 85;
} else if (trueLevel == 2) {
_local1.maxTime = 105;
}
_local1.chronoMC.setTime(_local1.maxTime);
_local2.mcInterface.energyBar.faceIcon.gotoAndStop(_local3);
_local2.mcBack.gotoAndStop(_local3);
switch (_local3) {
case 1 :
temp = "Will";
_local1.currentWitch = "Will";
_local2.mcChar.gotoAndPlay("Will");
break;
case 2 :
temp = "Irma";
_local1.currentWitch = "Irma";
_local2.mcChar.gotoAndPlay("Irma");
break;
case 3 :
temp = "Taranee";
_local1.currentWitch = "Taranee";
_local2.mcChar.gotoAndPlay("Taranee");
break;
case 4 :
temp = "Cornelia";
_local1.currentWitch = "Cornelia";
_local2.mcChar.gotoAndPlay("Cornelia");
break;
case 5 :
temp = "HayLin";
_local1.currentWitch = "HayLin";
_local2.mcChar.gotoAndPlay("HayLin");
}
validWitch = setInterval(function () {
_parent.mcChar.gotoAndPlay(temp);
clearInterval(validWitch);
}, 700);
}
function mapMatrix(wicheElement) {
var _local2 = _global;
var _local3 = wicheElement;
var screenPoint = f3Dto2D(_local3, oCAR);
_local3.corrMC._x = screenPoint.x + Xoffset;
_local3.corrMC._y = screenPoint.y + Yoffset;
_local3.corrMC._xscale = (_local3.corrMC._yscale = 200 * screenPoint.scaleFactor);
if (_local3.corrMC._name.substr(0, 10) == "projectile") {
var _local1 = 0;
while (_local1 < _local2.columnList.length) {
_local1++;
}
}
}
function fElements(x, y, z, mcElement, modSpeed) {
var _local1 = this;
var _local2 = mcElement;
var _local3 = _global;
_local2.o3Dpoints = make3DPoint(x, y, z, _local2);
_local2.enable();
_local2.update = function () {
var _local1 = this;
var _local2 = _global;
if (modSpeed != undefined) {
_local1.o3Dpoints.z = _local1.o3Dpoints.z - (_local2.speed / modSpeed);
} else {
_local1.o3Dpoints.z = _local1.o3Dpoints.z - _local2.speed;
}
if (_local1._parent["projectile" + Math.floor(_local1.o3Dpoints.z / 1000)]._name != undefined) {
_local1.oMCRef = _local1._parent["projectile" + Math.floor(_local1.o3Dpoints.z / 1000)];
if (_local1.hitTest(_local1.oMCRef)) {
_local1.oMCRef._name = "explosion" + kaboom;
_local1.oMCRef.toDestroy = true;
_local1.oMCRef.anim.gotoAndPlay("explode");
_local1.die();
}
} else if (_local1._parent["projectile" + Math.floor(_local1.o3Dpoints.z / 800)]._name != undefined) {
_local1.oMCRef = _local1._parent["projectile" + Math.floor(_local1.o3Dpoints.z / 800)];
if (_local1.hitTest(_local1.oMCRef)) {
_local1.oMCRef._name = "explosion" + kaboom;
_local1.oMCRef.toDestroy = true;
_local1.oMCRef.anim.gotoAndPlay("explode");
_local1.die();
}
}
if (_local1.o3Dpoints.z < -100) {
if (_local1.type == "column") {
_local2.columnList.splice(0, 1);
}
_local1.removeMovieClip();
}
_local2.sCont.mapMatrix(_local1.o3Dpoints);
};
}
function fFlameHit(me, bonus) {
var _local1 = this;
var _local2 = _global;
var _local3 = me;
if (_local1._parent["projectile" + Math.floor(_local3._parent._parent.o3Dpoints.z / 1000)]._name != undefined) {
_local1.oMCRef = _local1._parent["projectile" + Math.floor(_local3._parent._parent.o3Dpoints.z / 1000)];
if (_local3.hitTest(_local1.oMCRef)) {
delete _local1.oMCRef.onEnterFrame;
_local1.oMCRef.swapDepths(1001);
_local1.oMCRef.removeMovieClip();
_local3._parent.nextFrame();
switch (bonus) {
case points :
_root.score = _root.score + 1000;
return;
case energy :
_local2.energy = _local2.energy - 20;
if (_local2.energy < 1) {
_local2.energy = 1;
}
_parent.mcInterface.energyBar.energy.gotoAndStop(_local2.energy);
return;
case speed :
_local2.lives++;
_parent.mcInterface.nbLife++;
}
}
}
}
function fMove() {
var _local1 = _parent;
var _local2 = this;
if (!_global.freeze) {
if (Key.isDown(32) && (!_local2.holdingSpace)) {
_local2.holdingSpace = true;
_local1.onMouseDown = _local2.onMouseDown();
} else if ((!Key.isDown(32)) && (_local2.holdingSpace)) {
_local2.holdingSpace = false;
}
if (Key.isDown(37)) {
if ((_local1.mcChar._x - 10) >= 83) {
_local1.mcChar._x = _local1.mcChar._x - 10;
} else {
_local1.mcChar._x = 83;
}
} else if (Key.isDown(39)) {
if ((_local1.mcChar._x + 10) <= 497) {
_local1.mcChar._x = _local1.mcChar._x + 10;
} else {
_local1.mcChar._x = 497;
}
} else {
var _local3;
if (Key.isDown(38) || (Key.isDown(40))) {
if (key.isDown(38)) {
_local3 = true;
} else {
_local3 = false;
}
} else if (_root._ymouse <= 160) {
_local3 = true;
} else {
_local3 = false;
}
if (_local3) {
if (_local1.mcChar.char._currentframe == 1) {
_local2.isAccelerating = true;
_local1.mcChar.char.gotoAndStop("transitionAcc");
}
} else if (_local1.mcChar.char._currentframe == 2) {
_local2.isAccelerating = false;
_local1.mcChar.char.gotoAndStop("Deceleration");
}
if (_root._xmouse < 80) {
mousePos = 80;
} else if (_root._xmouse > 500) {
mousePos = 500;
} else {
mousePos = _root._xmouse;
}
if (_local1.mcChar._x < mousePos) {
_local1.mcChar._x = _local1.mcChar._x + 7;
if (_local1.mcChar._x > mousePos) {
_local1.mcChar._x = mousePos;
}
} else if (_local1.mcChar._x > mousePos) {
_local1.mcChar._x = _local1.mcChar._x - 7;
if (_local1.mcChar._x < mousePos) {
_local1.mcChar._x = mousePos;
}
}
}
}
}
_global.redTorch1 = 0;
_global.redTorch2 = 0;
_global.blueTorch1 = 0;
_global.blueTorch2 = 0;
_global.blueTorch3 = 0;
_global.greenTorch1 = 0;
_global.greenTorch2 = 0;
_global.greenTorch3 = 0;
_global.greenTorch4 = 0;
_global.greenTorch5 = 0;
_global.batSpeed = 5;
_global.batSpeedVar = 5;
_global.batBeforeAttack = 2500;
_global.batAttackDelay = 2500;
_global.batBeforeAttack = 20000;
_global.snackAttackDelay = 2500;
_global.snackBeforeAttack = 20000;
_global.ratSpeed = 10;
_global.ratReflex = 10;
_global.ratMoveDistance = 6000;
_global.make2Column = false;
_global.maxColumnStyle = 2;
_global.maxBallStyle = 3;
_global.columnList = new Array();
_global.numberOfMagical = 5;
_global.kindOfBadGuy = 5;
_global.maxRockStyle = 2;
createEnemy = function (gameNumber) {
var _local1 = _parent;
var _local2 = _global;
if ((_local2.freeze == false) && (_local2.gameNumber == gameNumber)) {
clearInterval(_local1.createEnemyInterval);
_local1.enemyToCreate = Math.ceil(Math.random() * _local2.kindOfBadGuy);
if (_local1.enemyToCreate) {
while (_local1.enemyToCreate == _local1.lastEnemyToCreate) {
_local1.enemyToCreate = Math.ceil(Math.random() * _local2.kindOfBadGuy);
}
}
_local1.lastEnemyToCreate = _local1.enemyToCreate;
switch (_local1.enemyToCreate) {
case 1 :
createAColumn();
return;
case 2 :
createARock();
return;
case 3 :
createAMagicBall();
return;
case 4 :
createAMagicBall();
return;
case 5 :
if (_local2.magicCanBeCreated) {
createAMagical();
} else {
createAMagicBall();
}
}
}
};
createABat = function () {
var _local1 = _global;
var _local2 = _parent;
badGuy = "enemy" + _local2.noEnemy;
_local1[badGuy] = new Object();
_local1[badGuy].vTime = 100;
_local1[badGuy].x = 0;
_local1[badGuy].y = 35;
_local1[badGuy].z = 7000;
_local1[badGuy].no = _local2.noEnemy;
_local2.attachMovie("BatMovie", badGuy, _local2.depth);
_local2[badGuy]._x = -50;
_local2[badGuy]._y = -50;
_local1[badGuy].object = _local2[badGuy];
_local1.elements = badGuy;
_local2.noEnemy++;
_local2.depth--;
if (_local2.depth <= 10) {
_local2.depth = 450;
}
enemyInit(_local1[badGuy], "bat");
enemyInterval = "enemyInterval" + _local2.noEnemy;
fElements(_local1[badGuy].x, _local1[badGuy].y, _local1[badGuy].z, _local1[badGuy].object);
timeBeforeCreation = Math.ceil(Math.random() * _local1.timeDifference) + _local1.minimumTime;
_local2.createEnemyInterval = setEnemyInterval(timeBeforeCreation, _local1.gameNumber);
};
createARat = function () {
var _local1 = _global;
var _local2 = _parent;
badGuy = "enemy" + _local2.noEnemy;
_local1[badGuy] = new Object();
_local1[badGuy].vTime = 100;
_local1[badGuy].x = 0;
_local1[badGuy].y = 450;
_local1[badGuy].z = 7000;
_local2.attachMovie("RatMovie", badGuy, _local2.depth);
_local2[badGuy]._x = -50;
_local2[badGuy]._y = -50;
_local1[badGuy].object = _local2[badGuy];
_local2.noEnemy++;
_local2.depth--;
if (_local2.depth <= 10) {
_local2.depth = 450;
}
enemyInit(_local1[badGuy], "rat");
enemyInterval = "enemyInterval" + _local2.noEnemy;
fElements(_local1[badGuy].x, _local1[badGuy].y, _local1[badGuy].z, _local1[badGuy].object);
timeBeforeCreation = Math.ceil(Math.random() * _local1.timeDifference) + _local1.minimumTime;
_local2.createEnemyInterval = setEnemyInterval(timeBeforeCreation, _local1.gameNumber);
};
createASnake = function () {
var _local1 = _parent;
var _local2 = _global;
_local1.snakeStyle = Math.ceil(Math.random() * 3);
while (_local1.snakeStyle == _local1.lastSnakeStyle) {
_local1.snakeStyle = Math.ceil(Math.random() * 3);
}
_local1.lastSnakeStyle = _local1.snakeStyle;
switch (_local1.snakeStyle) {
case 1 :
posX = -200;
break;
case 2 :
posX = 0;
break;
case 3 :
posX = 200;
}
badGuy = "enemy" + _local1.noEnemy;
_local2[badGuy] = new Object();
_local2[badGuy].vTime = 100;
_local2[badGuy].x = posX;
_local2[badGuy].y = 310;
_local2[badGuy].z = 7000;
_local2[badGuy].initialSpeed = 1;
_local1.attachMovie("SnakeMovie", badGuy, _local1.depth);
_local1[badGuy]._x = -50;
_local1[badGuy]._y = -50;
_local1[badGuy]._width = 50;
_local1[badGuy]._height = 50;
_local1[badGuy]._xscale = 10;
_local1[badGuy]._yscale = 10;
_local2[badGuy].object = _local1[badGuy];
_local1.noEnemy++;
_local1.depth--;
if (_local1.depth <= 10) {
_local1.depth = 450;
}
enemyInit(_local2[badGuy], "snake");
enemyInterval = "enemyInterval" + _local1.noEnemy;
fElements(_local2[badGuy].x, _local2[badGuy].y, _local2[badGuy].z, _local2[badGuy].object, _local2[badGuy].initialSpeed);
timeBeforeCreation = Math.ceil(Math.random() * _local2.timeDifference) + _local2.minimumTime;
_local1.createEnemyInterval = setEnemyInterval(timeBeforeCreation, _local2.gameNumber);
};
createAColumn = function () {
var _local1 = _global;
var _local2 = _parent;
_local2.columnStyle = Math.ceil(Math.random() * _local1.maxColumnStyle);
_local2.lastColumnStyle = _local2.columnStyle;
switch (_local2.columnStyle) {
case 1 :
posX = -250;
break;
case 2 :
posX = 0;
break;
case 3 :
posX = 250;
break;
case 4 :
posX = -250;
posX2 = 250;
_local1.make2Column = true;
}
badGuy = "enemy" + _local2.noEnemy;
_local1.columnList.push(badGuy);
_local1[badGuy] = new Object();
_local1[badGuy].vTime = 100;
_local1[badGuy].x = posX;
_local1[badGuy].y = 350;
_local1[badGuy].z = 7000;
_local1[badGuy].initialSpeed = 1;
_local2.attachMovie("ColumnMovie", badGuy, _local2.depth);
_local2[badGuy]._x = -50;
_local2[badGuy]._y = -50;
_local2[badGuy].gotoAndStop(_local1.level);
_local1[badGuy].object = _local2[badGuy];
_local2.noEnemy++;
_local2.depth--;
if (_local2.depth <= 10) {
_local2.depth = 450;
}
enemyInit(_local1[badGuy], "column");
enemyInterval = "enemyInterval" + _local2.noEnemy;
fElements(_local1[badGuy].x, _local1[badGuy].y, _local1[badGuy].z, _local1[badGuy].object, _local1[badGuy].initialSpeed);
if (_local1.make2Column == true) {
badGuy = "enemy" + _local2.noEnemy;
_local1[badGuy] = new Object();
_local1[badGuy].vTime = 100;
_local1[badGuy].x = posX2;
_local1[badGuy].y = 350;
_local1[badGuy].z = 7000;
_local1[badGuy].initialSpeed = 1;
_local2.attachMovie("ColumnMovie", badGuy, _local2.depth);
_local2[badGuy]._x = -50;
_local2[badGuy]._y = -50;
_local2[badGuy].gotoAndStop(_local1.level);
_local1[badGuy].object = _local2[badGuy];
_local2.noEnemy++;
_local2.depth--;
if (_local2.depth <= 10) {
_local2.depth = 450;
}
enemyInit(_local1[badGuy], "column");
enemyInterval = "enemyInterval" + _local2.noEnemy;
fElements(_local1[badGuy].x, _local1[badGuy].y, _local1[badGuy].z, _local1[badGuy].object);
}
_local1.make2Column = false;
timeBeforeCreation = Math.ceil(Math.random() * _local1.timeDifference) + _local1.minimumTime;
_local2.createEnemyInterval = setEnemyInterval(timeBeforeCreation, _local1.gameNumber);
};
createARock = function () {
var _local1 = _parent;
var _local2 = _global;
_local1.rockStyle = Math.ceil(Math.random() * _local2.maxRockStyle);
while (_local1.rockStyle == _local1.lastRockStyle) {
_local1.rockStyle = Math.ceil(Math.random() * _local2.maxRockStyle);
}
_local1.lastRockStyle = _local1.rockStyle;
switch (_local1.rockStyle) {
case 1 :
posX = -200;
break;
case 2 :
posX = 0;
break;
case 3 :
posX = 200;
}
badGuy = "enemy" + _local1.noEnemy;
_local2[badGuy] = new Object();
_local2[badGuy].vTime = 100;
_local2[badGuy].x = posX;
_local2[badGuy].y = -50;
_local2[badGuy].z = 4000;
_local2[badGuy].initialSpeed = 1.75;
if (_local2.level == 1) {
duplicateMovieClip (_local1.rock1, badGuy, _local1.depth);
} else if (_local2.level == 2) {
duplicateMovieClip (_local1.rock2, badGuy, _local1.depth);
} else if (_local2.level == 3) {
duplicateMovieClip (_local1.rock3, badGuy, _local1.depth);
} else if (_local2.level == 4) {
duplicateMovieClip (_local1.rock4, badGuy, _local1.depth);
} else if (_local2.level == 5) {
duplicateMovieClip (_local1.rock5, badGuy, _local1.depth);
}
_local1[badGuy]._x = -50;
_local1[badGuy]._y = -50;
_local2[badGuy].object = _local1[badGuy];
_local1.noEnemy++;
_local1.depth--;
if (_local1.depth <= 10) {
_local1.depth = 450;
}
enemyInit(_local2[badGuy], "rock");
enemyInterval = "enemyInterval" + _local1.noEnemy;
fElements(_local2[badGuy].x, _local2[badGuy].y, _local2[badGuy].z, _local2[badGuy].object, _local2[badGuy].initialSpeed);
timeBeforeCreation = Math.ceil(Math.random() * _local2.timeDifference) + _local2.minimumTime;
_local1.createEnemyInterval = setEnemyInterval(timeBeforeCreation, _local2.gameNumber);
};
createAMagicBall = function () {
var _local1 = _parent;
var _local2 = _global;
badGuy = "enemy" + _local1.noEnemy;
_local2[badGuy] = new Object();
_local2[badGuy].vTime = 100;
_local1.ballStyle = Math.ceil(Math.random() * _local2.maxBallStyle);
while (_local1.ballStyle == _local1.lastBallStyle) {
_local1.ballStyle = Math.ceil(Math.random() * _local2.maxBallStyle);
}
_local1.lastBallStyle = _local1.ballStyle;
switch (_local1.ballStyle) {
case 1 :
posX = -200;
break;
case 2 :
posX = 0;
break;
case 3 :
posX = 200;
}
if (((_local2.level == 1) or (_local2.level == 3)) or (_local2.level == 5)) {
posY = 75;
} else if (_local2.level == 4) {
posY = 225;
} else if (_local2.level == 2) {
posY = 175;
}
_local2[badGuy].x = posX;
_local2[badGuy].y = posY;
_local2[badGuy].z = 7000;
_local2[badGuy].no = _local1.noEnemy;
if (_local2.level == 1) {
_local1.attachMovie("EnergyMovie", badGuy, _local1.depth);
} else if (_local2.level == 2) {
_local1.attachMovie("FireMovie", badGuy, _local1.depth);
} else if (_local2.level == 3) {
_local1.attachMovie("WaterMovie", badGuy, _local1.depth);
} else if (_local2.level == 4) {
_local1.attachMovie("WallMovie", badGuy, _local1.depth);
} else if (_local2.level == 5) {
_local1.attachMovie("FumeeMovie", badGuy, _local1.depth);
}
_local1[badGuy]._x = -50;
_local1[badGuy]._y = -50;
_local2[badGuy].object = _local1[badGuy];
_local2.elements = badGuy;
_local1.noEnemy++;
_local1.depth--;
if (_local1.depth <= 10) {
_local1.depth = 450;
}
enemyInit(_local2[badGuy], "magicBall");
enemyInterval = "enemyInterval" + _local1.noEnemy;
fElements(_local2[badGuy].x, _local2[badGuy].y, _local2[badGuy].z, _local2[badGuy].object);
timeBeforeCreation = Math.ceil(Math.random() * _local2.timeDifference) + _local2.minimumTime;
_local1.createEnemyInterval = setEnemyInterval(timeBeforeCreation, _local2.gameNumber);
};
createAMagical = function () {
var _local1 = _global;
var _local2 = _parent;
_local1.magicCanBeCreated = false;
_local1.numberOfMagical--;
if (_local1.numberOfMagical == 0) {
_local1.kindOfBadGuy--;
}
badGuy = "enemy" + _local2.noEnemy;
_local1[badGuy] = new Object();
_local1[badGuy].vTime = 100;
_local1[badGuy].x = 0;
if (_local1.level == 1) {
_local1[badGuy].y = 375;
} else if (_local1.level == 2) {
_local1[badGuy].y = 375;
} else if (_local1.level == 3) {
_local1[badGuy].y = 200;
} else if (_local1.level == 4) {
_local1[badGuy].y = 250;
} else if (_local1.level == 5) {
_local1[badGuy].y = 300;
}
_local1[badGuy].z = 7000;
_local1[badGuy].initialSpeed = 1;
if (_local1.level == 1) {
duplicateMovieClip (_local2.magic1, badGuy, _local2.depth);
} else if (_local1.level == 2) {
duplicateMovieClip (_local2.magic2, badGuy, _local2.depth);
} else if (_local1.level == 3) {
duplicateMovieClip (_local2.magic3, badGuy, _local2.depth);
} else if (_local1.level == 4) {
duplicateMovieClip (_local2.magic4, badGuy, _local2.depth);
} else if (_local1.level == 5) {
duplicateMovieClip (_local2.magic5, badGuy, _local2.depth);
}
_local2[badGuy]._x = -50;
_local2[badGuy]._y = -50;
_local2[badGuy].gotoAndStop(_local1.level);
_local1[badGuy].object = _local2[badGuy];
_local2.noEnemy++;
_local2.depth--;
if (_local2.depth <= 10) {
_local2.depth = 450;
}
enemyInit(_local1[badGuy], "magic");
enemyInterval = "enemyInterval" + _local2.noEnemy;
fElements(_local1[badGuy].x, _local1[badGuy].y, _local1[badGuy].z, _local1[badGuy].object, _local1[badGuy].initialSpeed);
timeBeforeCreation = Math.ceil(Math.random() * _local1.timeDifference) + _local1.minimumTime;
_local2.createEnemyInterval = setEnemyInterval(timeBeforeCreation, _local1.gameNumber);
};
changeLevel = function () {
var _local1 = _global;
if (_local1.trueLevel == 1) {
_local1.nbArchMax = 30;
_local1.batSpeed = 7;
_local1.batSpeedVar = 5;
_local1.batAttackDelay = 2000;
_local1.snackAttackDelay = 2000;
_local1.batBeforeAttack = 1500;
_local1.snackBeforeAttack = 1500;
_local1.ratSpeed = 13;
_local1.ratReflex = 8;
_local1.ratMoveDistance = 6000;
_local1.make2Column = false;
_local1.maxColumnStyle = 3;
_local1.numberOfMagical = 5;
_local1.kindOfBadGuy = 5;
_local1.maxRockStyle = 2;
_local1.minimumTime = 1500;
_local1.timeDifference = 500;
_local1.comptDist = 1;
} else if (_local1.trueLevel == 2) {
_local1.nbArchMax = 40;
_local1.batSpeed = 10;
_local1.batSpeedVar = 5;
_local1.batAttackDelay = 1500;
_local1.snackAttackDelay = 1500;
_local1.batBeforeAttack = 2000;
_local1.snackBeforeAttack = 2000;
_local1.ratSpeed = 17;
_local1.ratReflex = 6;
_local1.ratMoveDistance = 6000;
_local1.make2Column = false;
_local1.maxColumnStyle = 4;
_local1.numberOfMagical = 5;
_local1.kindOfBadGuy = 5;
_local1.maxRockStyle = 3;
_local1.minimumTime = 1000;
_local1.timeDifference = 500;
_local1.comptDist = 1;
} else if (_local1.trueLevel == 3) {
loadMovie ("boss.swf", _root);
}
createTorchs();
};
createTorchs = function () {
var _local1 = _global;
noRedTorch = 1;
_local1.redTorch1 = Math.ceil(Math.random() * (_local1.nbArchMax / 3)) + (_local1.nbArchMax / 2);
noBlueTorch = Math.ceil(Math.random() * 3);
if (noBlueTorch == 1) {
_local1.blueTorch1 = Math.ceil(Math.random() * (_local1.nbArchMax / 3)) + (_local1.nbArchMax / 2);
} else if (noBlueTorch == 2) {
_local1.blueTorch1 = Math.ceil(Math.random() * (_local1.nbArchMax / 5)) + (_local1.nbArchMax / 5);
_local1.blueTorch2 = Math.ceil(Math.random() * (_local1.nbArchMax / 3)) + (_local1.nbArchMax / 2);
} else if (noBlueTorch == 3) {
_local1.blueTorch1 = Math.ceil(Math.random() * (_local1.nbArchMax / 5)) + (_local1.nbArchMax / 5);
_local1.blueTorch2 = Math.ceil(Math.random() * (_local1.nbArchMax / 8)) + (_local1.nbArchMax / 2);
_local1.blueTorch3 = Math.ceil(Math.random() * (_local1.nbArchMax / 3)) + (_local1.nbArchMax / 2);
}
noGreenTorch = Math.ceil(Math.random() * 4) + 1;
if (noGreenTorch == 1) {
_local1.greenTorch1 = Math.ceil(Math.random() * (_local1.nbArchMax / 3)) + (_local1.nbArchMax / 2);
} else if (noGreenTorch == 2) {
_local1.greenTorch1 = Math.ceil(Math.random() * (_local1.nbArchMax / 5)) + (_local1.nbArchMax / 5);
_local1.greenTorch2 = Math.ceil(Math.random() * (_local1.nbArchMax / 3)) + (_local1.nbArchMax / 2);
} else if (noGreenTorch == 3) {
_local1.greenTorch1 = Math.ceil(Math.random() * (_local1.nbArchMax / 5)) + (_local1.nbArchMax / 5);
_local1.greenTorch2 = Math.ceil(Math.random() * (_local1.nbArchMax / 8)) + (_local1.nbArchMax / 2);
_local1.greenTorch3 = Math.ceil(Math.random() * (_local1.nbArchMax / 3)) + (_local1.nbArchMax / 2);
} else if (noGreenTorch == 4) {
_local1.greenTorch1 = Math.ceil(Math.random() * (_local1.nbArchMax / 5)) + (_local1.nbArchMax / 5);
_local1.greenTorch2 = Math.ceil(Math.random() * (_local1.nbArchMax / 8)) + (_local1.nbArchMax / 2);
_local1.greenTorch3 = Math.ceil(Math.random() * (_local1.nbArchMax / 3)) + (_local1.nbArchMax / 2);
_local1.greenTorch4 = Math.ceil(Math.random() * (_local1.nbArchMax / 3)) + (_local1.nbArchMax / 2);
} else if (noGreenTorch == 5) {
_local1.greenTorch1 = Math.ceil(Math.random() * (_local1.nbArchMax / 10)) + (_local1.nbArchMax / 10);
_local1.greenTorch2 = Math.ceil(Math.random() * (_local1.nbArchMax / 5)) + (_local1.nbArchMax / 5);
_local1.greenTorch3 = Math.ceil(Math.random() * (_local1.nbArchMax / 10)) + (_local1.nbArchMax / 2);
_local1.greenTorch4 = Math.ceil(Math.random() * (_local1.nbArchMax / 4)) + ((_local1.nbArchMax / 2) + 2);
_local1.greenTorch5 = Math.ceil(Math.random() * (_local1.nbArchMax / 3)) + ((_local1.nbArchMax / 2) + 2);
}
};
pauseInit();
_global.sCont = this;
var nElemNum = 0;
var nElemLorR = 1;
var Xoffset = 290;
var Yoffset = 100;
var nbProject = 0;
var focalLength = 400;
var Xmin = -235;
var Xmax = 235;
var Ymin = -290;
var Ymax = 220;
var Zmin = -1000;
var Zmax = 1800;
var Xspeed = 0;
var Yspeed = 0;
var Zspeed = 0;
_parent.mcChar.swapDepths(2000);
_parent.mcArch.swapDepths(1);
_parent.mcArch2.swapDepths(2);
_global.energy = 1;
_global.cheat = "";
_global.comptDist = 0;
_parent.mcInterface.energyBar.energy.gotoAndStop(1);
_parent.mcInterface.swapDepths(2200);
_global.ballDepth = 500;
_global.normalSpeed = 25;
_global.topSpeed = 75;
_global.shoot = true;
_global.speed = _global.normalSpeed;
_global.timer = 0;
_global.nbArch = 2;
_global.maxTime = 0;
_global.kaboom = 0;
_global.kaboomCheck = 0;
_global.currentWitch = "";
_global.magicCanBeCreated = true;
_parent.noEnemy = 1;
_parent.depth = 450;
timer = 0;
_global.keyListener = new Object();
Key.addListener(_global.keyListener);
_global.keyListener2 = new Object();
_global.minimumTime = 1500;
_global.timeDifference = 500;
make3DPoint = function (x, y, z, corrMC) {
var _local1 = new Object();
_local1.x = x;
_local1.y = y;
_local1.z = z;
_local1.corrMC = corrMC;
return(_local1);
};
f3Dto2D = function (points, axis) {
var _local2 = axis;
var sx = Math.sin(_local2.x);
var cx = Math.cos(_local2.x);
var sy = Math.sin(_local2.y);
var cy = Math.cos(_local2.y);
var sz = Math.sin(_local2.z);
var cz = Math.cos(_local2.z);
var x;
var y;
var _local3;
var xy;
var xz;
var yx;
var yz;
var zx;
var zy;
var scaleRatio;
x = points.x;
y = points.y;
_local3 = points.z;
xy = (cx * y) - (sx * _local3);
xz = (sx * y) + (cx * _local3);
yz = (cy * xz) - (sy * x);
yx = (sy * xz) + (cy * x);
zx = (cz * yx) - (sz * xy);
zy = (sz * yx) + (cz * xy);
scaleFactor = focalLength / (focalLength + yz);
x = zx * scaleFactor;
y = zy * scaleFactor;
_local3 = yz;
var _local1 = new Object();
_local1.x = x;
_local1.y = y;
_local1.depth = _local3;
_local1.scaleFactor = scaleFactor;
return(_local1);
};
oCAR = make3DPoint(-0.1, 0, 0, null);
fDecor = function () {
var _local1 = this;
var _local2 = _global;
var _local3 = _parent;
_local2.decor = new Array(1, 2, 3, 4, 5);
_local2.i = 0;
_local2.randArch = random(4) + 2;
_local3.mcArch.gotoAndStop(_local2.randArch + ((_local2.level - 1) * 10));
_local3.mcArch.o3Dpoints = make3DPoint(0, 0, 7000, _local3.mcArch);
_local3.mcArch.exist = true;
_local3.mcArch2.gotoAndStop(((_local2.level - 1) * 10) + 1);
_local3.mcArch2.o3Dpoints = make3DPoint(0, 0, 3500, _local3.mcArch2);
_local3.mcArch2.exist = true;
_local3.mcDistanceCompteur.o3Dpoints = make3DPoint(0, 0, 3500, _local3.mcDistanceCompteur);
_local3.mcDistanceCompteur.distanceToDo = "none";
_local3.mcDistanceCompteur.exist = true;
_local2.nbDecor = _local2.decor[_local2.i] + ((_local2.level - 1) * 5);
_local3.mcDecor.gotoAndStop(_local2.nbDecor);
_local2.i++;
_local3.mcDecor.o3Dpoints = make3DPoint(0, 0, 1750, _local3.mcDecor);
_local2.nbDecor = _local2.decor[_local2.i] + ((_local2.level - 1) * 5);
_local3.mcDecor2.gotoAndStop(_local2.nbDecor);
_local2.i++;
_local3.mcDecor2.o3Dpoints = make3DPoint(0, 0, 5250, _local3.mcDecor2);
_local3.mcDecor2.onEnterFrame = (_local3.mcDecor.onEnterFrame = function () {
var _local1 = _global;
var _local2 = this;
if (_local1.freeze == false) {
_local2.o3Dpoints.z = _local2.o3Dpoints.z - (_local1.speed / 1.48);
if (_local2.o3Dpoints.z < -100) {
_local1.nbDecor = _local1.decor[_local1.i] + ((_local1.level - 1) * 5);
_local1.i++;
if (_local1.i >= 5) {
_local1.i = 0;
}
_local2.gotoAndStop(_local1.nbDecor);
_local2.o3Dpoints.z = 7000;
_local2.fSetColor();
}
_local1.sCont.mapMatrix(_local2.o3Dpoints);
_local2.fChangeColor();
}
});
_local3.mcDecor2.fSetColor = (_local3.mcDecor.fSetColor = function () {
var _local1 = this;
_local1.myColor = new Color(_local1);
_local1.newColor = {ra:0, rb:0, ga:0, gb:0, ba:0, bb:0};
_local1.myColor.setTransform(_local1.newColor);
_local1.fChangeColor = function () {
var _local1 = this;
if (_local1.newColor.ra < 100) {
_local1.newColor.ga = (_local1.newColor.ra = (_local1.newColor.ba = _local1.newColor.ba + (((_global.speed * 5) / 200) - 0.25)));
_local1.myColor.setTransform(_local1.newColor);
} else {
_local1.myColor.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0});
_local1.fChangeColor = function () {
return(undefined);
};
}
};
});
_local3.mcDecor2.fSetColor();
_local3.mcDistanceCompteur.onEnterFrame = function () {
var _local1 = _global;
var _local2 = this;
if (_local1.freeze == false) {
if (_local2.distanceToDo == "none") {
_local2.distanceToDo = ((_local1.nbArchMax * 7000) + 8000) / 1000;
}
_local2.o3Dpoints.z = _local2.o3Dpoints.z - _local1.speed;
_local1.comptDist = _local1.comptDist + _local1.speed;
if (_local1.comptDist >= _local2.distanceToDo) {
_local1.comptDist = _local1.comptDist - _local2.distanceToDo;
_parent.mcInterface.distance.nextFrame();
}
}
};
_local3.mcArch2.onEnterFrame = (_local3.mcArch.onEnterFrame = function () {
var _local1 = this;
var _local2 = _global;
var _local3 = _parent;
if (_local2.freeze == false) {
_local1.o3Dpoints.z = _local1.o3Dpoints.z - _local2.speed;
if ((_local1.exist == false) && (_local1.o3Dpoints.z < -100)) {
_local2.shoot = false;
delete _local1.onEnterFrame;
_local1._visible = false;
} else if ((((_local1.o3Dpoints.z <= 350) && (_local2.randArch > 5)) && (_local2.randArch < 11)) && (_local1.exist == true)) {
delete _local3.mcDecor.onEnterFrame;
delete _local3.mcDecor2.onEnterFrame;
delete _local3.mcDistanceCompteur.onEnterFrame;
delete _local1.onEnterFrame;
delete _local3.mcCont.onMouseDown;
_local2.timeStop = true;
_root.score = _root.score + (_local2.chronoMC.time * 100);
levelCleared = setInterval(function () {
var _local1 = _global;
Key.removeListener(_local1.keyListener);
Key.removeListener(_local1.keyListener2);
_local1.chronoMC.time = 0;
_local1.level = tempLevel;
ending = "endLevel" + _local1.trueLevel;
_root.gotoAndStop(ending);
_local1.lastLevel = _local1.level;
_local1.trueLevel = _local1.trueLevel + 1;
clearInterval(levelCleared);
}, 2000);
} else {
if (_local1.o3Dpoints.z < -100) {
_local2.nbArch++;
if (_local2.nbArch < _local2.nbArchMax) {
randNumber = random(5) + 1;
if (_local2.randArch == randNumber) {
if (_local2.randArch == 5) {
_local2.randArch = 1 + ((_local2.level - 1) * 11);
} else {
_local2.randArch = (randNumber + 1) + ((_local2.level - 1) * 11);
}
} else {
_local2.randArch = randNumber + ((_local2.level - 1) * 11);
}
if (_local2.nbArch == (_local2.nbArchMax - 1)) {
_local2.enemyIntervalDone = true;
}
} else {
if (_local2.trueLevel == 1) {
tempLevel = _local2.secondLevel;
} else if (_local2.trueLevel == 2) {
tempLevel = _local2.thirdLevel;
}
_local2.randArch = tempLevel + 5;
_local1.o3Dpoints.y = 50;
if (_local1._name == "mcArch") {
_local3.mcArch2.exist = false;
} else {
_local3.mcArch.exist = false;
}
_local2.enemyIntervalDone = true;
}
_local1.gotoAndStop(_local2.randArch);
_local1.colGauche.gotoAndStop(_local2.level);
_local1.colDroite.gotoAndStop(_local2.level);
_local1.choseTerre.gotoAndStop(_local2.level);
if (_local2.redTorch1 == _local2.nbArch) {
if ((((((((_local1._currentframe == 1) or (_local1._currentframe == 4)) or (_local1._currentframe == 12)) or (_local1._currentframe == 15)) or (_local1._currentframe == 23)) or (_local1._currentframe == 26)) or (_local1._currentframe == 34)) or (_local1._currentframe == 37)) {
_local1.leftFlame.gotoAndStop("red");
} else if ((((((((_local1._currentframe == 2) or (_local1._currentframe == 5)) or (_local1._currentframe == 13)) or (_local1._currentframe == 16)) or (_local1._currentframe == 24)) or (_local1._currentframe == 27)) or (_local1._currentframe == 35)) or (_local1._currentframe == 38)) {
_local1.rightFlame.gotoAndStop("red");
} else {
_local2.redTorch1++;
}
} else if (((_local2.blueTorch1 == _local2.nbArch) or (_local2.blueTorch2 == _local2.nbArch)) or (_local2.blueTorch3 == _local2.nbArch)) {
if ((((((((_local1._currentframe == 1) or (_local1._currentframe == 4)) or (_local1._currentframe == 11)) or (_local1._currentframe == 14)) or (_local1._currentframe == 21)) or (_local1._currentframe == 24)) or (_local1._currentframe == 31)) or (_local1._currentframe == 34)) {
_local1.leftFlame.gotoAndStop("blue");
} else if ((((((((_local1._currentframe == 2) or (_local1._currentframe == 5)) or (_local1._currentframe == 12)) or (_local1._currentframe == 15)) or (_local1._currentframe == 22)) or (_local1._currentframe == 25)) or (_local1._currentframe == 32)) or (_local1._currentframe == 35)) {
_local1.rightFlame.gotoAndStop("blue");
}
} else if (((((_local2.greenTorch1 == _local2.nbArch) or (_local2.greenTorch2 == _local2.nbArch)) or (_local2.greenTorch3 == _local2.nbArch)) or (_local2.greenTorch4 == _local2.nbArch)) or (_local2.greenTorch5 == _local2.nbArch)) {
if ((((((((_local1._currentframe == 1) or (_local1._currentframe == 4)) or (_local1._currentframe == 11)) or (_local1._currentframe == 14)) or (_local1._currentframe == 21)) or (_local1._currentframe == 24)) or (_local1._currentframe == 31)) or (_local1._currentframe == 34)) {
_local1.leftFlame.gotoAndStop("green");
} else if ((((((((_local1._currentframe == 2) or (_local1._currentframe == 5)) or (_local1._currentframe == 12)) or (_local1._currentframe == 15)) or (_local1._currentframe == 22)) or (_local1._currentframe == 25)) or (_local1._currentframe == 32)) or (_local1._currentframe == 35)) {
_local1.rightFlame.gotoAndStop("green");
}
} else {
_local1.leftFlame.gotoAndStop("orange");
_local1.rightFlame.gotoAndStop("orange");
}
_local1.o3Dpoints.z = 7000;
_local1.fSetColor();
}
_local2.sCont.mapMatrix(_local1.o3Dpoints);
_local1.fChangeColor();
}
}
});
_local3.mcArch2.fSetColor = (_local3.mcArch.fSetColor = function () {
var _local1 = this;
_local1.myColor = new Color(_local1);
_local1.newColor = {ra:0, rb:0, ga:0, gb:0, ba:0, bb:0};
_local1.myColor.setTransform(_local1.newColor);
_local1.fChangeColor = function () {
var _local1 = this;
if (_local1.newColor.ra < 100) {
_local1.newColor.ga = (_local1.newColor.ra = (_local1.newColor.ba = _local1.newColor.ba + (((_global.speed * 5) / 100) - 0.25)));
_local1.myColor.setTransform(_local1.newColor);
} else {
_local1.myColor.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0});
_local1.fChangeColor = function () {
return(undefined);
};
}
};
});
_local3.mcArch.fSetColor();
};
fPlayerHit = function (damage) {
var _local1 = _global;
var _local2 = this;
var _local3 = _parent;
if ((_local3.mcChar.char._currentframe != 3) && (_local3.mcChar.char._currentframe != 6)) {
if ((_local1.energy + damage) >= 100) {
_local1.energy = 100;
_local3.mcInterface.energyBar.onEnterFrame = function () {
if (_global.freeze == false) {
if (this.energy._currentframe < _global.energy) {
this.energy.nextFrame();
}
}
};
_local1.lives--;
_local3.mcInterface.nbLife--;
if (_local1.lives == 0) {
_local1.freeze = true;
_local1.gameNumber = 0;
gamePause();
_root.gotoAndStop("lose");
}
_local2._parent.mcChar.char.gotoAndStop("Death");
} else {
_local1.energy = _local1.energy + damage;
_local3.mcInterface.energyBar.onEnterFrame = function () {
if (_global.freeze == false) {
if (this.energy._currentframe < _global.energy) {
this.energy.nextFrame();
}
}
};
_local2._parent.mcChar.char.gotoAndStop("Hurt");
}
}
};
fShoot = function (x, y) {
var _local1 = this;
var _local3 = _global;
_local3.ballDepth++;
magic = _parent.attachMovie("projectile", "projectile" + _local3.ballDepth, _local3.ballDepth);
magic.gotoAndStop(_local3.level);
if (_root._ymouse < (_parent.mcChar._y - 170)) {
magic.destX = ((_root._xmouse - 290) / 2) - (((_parent.mcChar._x + x) - 290) / 4);
magic.destX = magic.destX * 2;
magic.destY = _root._ymouse - 78;
} else {
magic.destX = ((_parent.mcChar._x + x) - 290) / 4;
magic.destY = 70;
}
magic.o3Dpoints = make3DPoint((_parent.mcChar._x + x) - 290, 100 + y, 0, magic);
mapMatrix(magic.o3Dpoints);
if (Math.abs(magic.destX) > Math.abs(magic.destY - 8.5)) {
magic.compare = magic.destX;
} else {
magic.compare = magic.destY;
}
magic.distance = 0;
magic.maxDist = 40 - Math.abs(magic.compare);
if (magic.maxDist < 6) {
magic.maxDist = 6;
}
magic.onEnterFrame = function () {
var _local1 = this;
var _local3 = _global;
if (_local3.freeze == false) {
if ((_local1.o3Dpoints.z == temp) and (_local1.o3Dpoints.z > 4000)) {
_local1.anim.toDestroy = true;
_local1.toDestroy = true;
_local1.removeMovieClip();
}
temp = _local1.o3Dpoints.z;
_local1.o3Dpoints.z = _local1.o3Dpoints.z + 301;
if (_local1.o3Dpoints.z < (temp + 100)) {
_local1.o3Dpoints.z = temp + 100;
}
_local1.o3Dpoints.x = _local1.o3Dpoints.x + _local1.destX;
_local1.o3Dpoints.y = _local1.o3Dpoints.y + _local1.destY;
_local1.distance++;
_local1._name = "projectile" + Math.floor(_local1.o3Dpoints.z / 1000);
_local3.sCont.mapMatrix(_local1.o3Dpoints);
var _local2 = 0;
while (_local2 < _local3.columnList.length) {
if ((_root.mcGame[_local3.columnList[_local2]].o3Dpoints.z < _local1.o3Dpoints.z) && (_local1.getDepth() > _root.mcGame[_local3.columnList[_local2]].getDepth())) {
_local1.swapDepths(_root.mcGame[_local3.columnList[_local2]]);
}
_local2++;
}
if (_local1.distance >= _local1.maxDist) {
if (_local1.hitTest(_root.mcGame.hitCorridor)) {
_local1.swapDepths(1001);
_local1.anim.toDestroy = true;
_local1.toDestroy = true;
_local1.removeMovieClip();
} else {
_local1.anim.toDestroy = true;
_local1.anim.gotoAndPlay("explode");
_local1.gotoAndPlay("explode");
}
}
}
};
};
_global.keyListener.onKeyDown = function () {
var _local1 = _global;
_local1.cheat = _local1.cheat + chr(Key.getCode());
if (_local1.cheat == "WITCH") {
_local1.score = _root.score;
Key.removeListener(_local1.sCont.keyListener);
Key.removeListener(_local1.sCont.keyListener2);
_root.gotoAndStop("BossScreen");
} else {
Key.removeListener(_local1.keyListener);
Key.addListener(_local1.keyListener2);
}
};
_global.keyListener2.onKeyUp = function () {
Key.addListener(_global.keyListener);
Key.removeListener(_global.keyListener2);
};
fStart = function () {
var _local1 = _parent;
var _local2 = _global;
fSetLevel(_local2.level, _local2.trueLevel);
_local1.mcArch._visible = true;
_local1.mcArch2._visible = true;
fDecor();
changeLevel();
_local1.mcInterface.distance.gotoAndStop(1);
setEnemyInterval(2000, _local2.gameNumber);
};
fStart();
fDeath = function () {
_global.freeze = true;
_root.gotoAndStop("outOfTime");
};
this.onMouseDown = function () {
var _local1 = _parent;
if (_global.shoot == true) {
if (!_global.freeze) {
if (_local1.mcChar.char._currentframe == 1) {
if (_root._xmouse <= _local1.mcChar._x) {
_local1.mcChar.char.gotoAndStop("AttackLeft");
} else {
_local1.mcChar.char.gotoAndStop("AttackRight");
}
} else if (_local1.mcChar.char._currentframe == 2) {
if (_root._xmouse <= _local1.mcChar._x) {
_local1.mcChar.char.gotoAndStop("AttackUpLeft");
} else {
_local1.mcChar.char.gotoAndStop("AttackUpRight");
}
}
}
}
};
setEnemyInterval = function (interval, gameNumber) {
var _local1 = _global;
_local1.enemyIntervalDone = false;
_local1.enemyIntervalCount = 0;
_local1.enemyInterval = Math.round(interval / 1000);
_local1.gameNumber = gameNumber;
};
Symbol 1113 MovieClip Frame 3
fMove();
timer++;
if (timer >= 120) {
timer = 0;
_global.cheat = "";
}
if (_global.patchRestart) {
delete _global.patchRestart;
_global.sCont.setEnemyInterval(2000, _global.gameNumber);
}
Symbol 1113 MovieClip Frame 4
call(3);
Symbol 1113 MovieClip Frame 5
gotoAndPlay (4);
Symbol 1116 MovieClip Frame 1
stop();
Symbol 1116 MovieClip Frame 3
_global.PlaySound("enemyExplode", 1);
Instance of Symbol 1117 MovieClip "mcDistanceCompteur" in Symbol 1118 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 1134 MovieClip Frame 1
stop();
Symbol 1134 MovieClip Frame 2
stop();
Symbol 1134 MovieClip Frame 3
stop();
Symbol 1134 MovieClip Frame 4
stop();
Symbol 1134 MovieClip Frame 5
stop();
Symbol 1140 Button
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
on (release) {
_global.PlaySound("btnClick", 1);
gotoAndStop ("instr2");
}
Symbol 1158 Button
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
on (release) {
_global.PlaySound("btnClick", 1);
if (_global.inGame != true) {
gotoAndStop ("instr3");
} else {
_global.freeze = false;
_global.allSounds.setVolume(100);
_global.inGame = true;
_parent.gotoAndStop("play");
}
}
Symbol 1161 Button
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
on (release) {
_global.PlaySound("btnClick", 1);
gotoAndStop ("instr1");
}
Symbol 1168 Button
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
on (release) {
_global.PlaySound("btnClick", 1);
_global.freeze = false;
_global.allSounds.setVolume(100);
if (_global.inGame != true) {
_root.mcGame.mcInterface.chrono.startTime = getTimer() - _root.mcGame.mcInterface.chrono.elapsed;
}
_global.inGame = true;
_parent.gotoAndStop("play");
}
Symbol 1179 MovieClip Frame 1
stop();
Symbol 1179 MovieClip Frame 2
stop();
Symbol 1179 MovieClip Frame 3
stop();
Symbol 1179 MovieClip Frame 4
stop();
Symbol 1179 MovieClip Frame 5
stop();
Symbol 1180 MovieClip Frame 1
stop();
Symbol 1180 MovieClip Frame 2
stop();
Symbol 1180 MovieClip Frame 3
stop();
Symbol 1180 MovieClip Frame 4
stop();
Symbol 1180 MovieClip Frame 5
stop();
Symbol 1181 MovieClip Frame 1
stop();
Instance of Symbol 1134 MovieClip in Symbol 1181 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_global.level);
}
Instance of Symbol 1134 MovieClip "titleChar" in Symbol 1181 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_global.level);
}
Instance of Symbol 1134 MovieClip in Symbol 1181 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(_global.level);
}
Instance of Symbol 1134 MovieClip "charTitle" in Symbol 1181 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(_global.level);
}
Instance of Symbol 1179 MovieClip in Symbol 1181 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(_global.level);
}
Instance of Symbol 1180 MovieClip in Symbol 1181 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(_global.level);
}
Symbol 1187 Button
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
on (release) {
_global.PlaySound("btnClick", 1);
gotoAndStop ("quit");
}
Symbol 1188 Button
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
on (release) {
_global.PlaySound("btnClick", 1);
gotoAndStop ("instr");
}
Symbol 1191 Button
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
on (release) {
_global.allSounds.setVolume(100);
_global.PlaySound("btnClick", 1);
_root.mcGame.mcCont.gameUnpause();
_root.gotoAndStop("play");
}
Symbol 1192 Button
on (rollOver) {
this.useHandCursor = false;
}
Symbol 1196 Button
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
on (release) {
_global.PlaySound("btnClick", 1);
gotoAndStop ("menu");
}
Symbol 1199 Button
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
on (release) {
_global.PlaySound("btnClick", 1);
_global.allSounds.setVolume(100);
_global.musicIsPlaying = false;
stopAllSounds();
gotoAndStop ("lose");
}
Symbol 1204 MovieClip Frame 66
_global.freeze = false;
_parent.gotoAndStop("resetTimeOut");
stop();
Symbol 1218 MovieClip Frame 1
stop();
Symbol 1218 MovieClip Frame 2
stop();
Symbol 1218 MovieClip Frame 3
stop();
Symbol 1218 MovieClip Frame 4
stop();
Symbol 1218 MovieClip Frame 5
stop();
Symbol 1226 MovieClip Frame 1
stop();
Symbol 1226 MovieClip Frame 2
stop();
Symbol 1226 MovieClip Frame 3
stop();
Symbol 1226 MovieClip Frame 4
stop();
Symbol 1226 MovieClip Frame 5
stop();
Symbol 1234 MovieClip Frame 1
stop();
Symbol 1234 MovieClip Frame 2
stop();
Symbol 1234 MovieClip Frame 3
stop();
Symbol 1234 MovieClip Frame 4
stop();
Symbol 1234 MovieClip Frame 5
stop();
Symbol 1247 MovieClip Frame 1
stop();
Symbol 1247 MovieClip Frame 2
stop();
Symbol 1247 MovieClip Frame 3
stop();
Symbol 1247 MovieClip Frame 4
stop();
Symbol 1247 MovieClip Frame 5
stop();
Symbol 1255 MovieClip Frame 1
stop();
Symbol 1255 MovieClip Frame 2
stop();
Symbol 1255 MovieClip Frame 3
stop();
Symbol 1255 MovieClip Frame 4
stop();
Symbol 1255 MovieClip Frame 5
stop();
Symbol 1256 MovieClip Frame 1
stop();
Instance of Symbol 1218 MovieClip in Symbol 1256 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_global.thirdLevel);
}
Instance of Symbol 1218 MovieClip in Symbol 1256 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_global.thirdLevel);
}
Symbol 1256 MovieClip Frame 2
stop();
Instance of Symbol 1226 MovieClip in Symbol 1256 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(_global.thirdLevel);
}
Instance of Symbol 1226 MovieClip in Symbol 1256 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(_global.thirdLevel);
}
Symbol 1256 MovieClip Frame 3
stop();
Instance of Symbol 1234 MovieClip in Symbol 1256 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(_global.thirdLevel);
}
Instance of Symbol 1234 MovieClip in Symbol 1256 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(_global.thirdLevel);
}
Symbol 1256 MovieClip Frame 4
stop();
Instance of Symbol 1247 MovieClip in Symbol 1256 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndStop(_global.thirdLevel);
}
Instance of Symbol 1247 MovieClip in Symbol 1256 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndStop(_global.thirdLevel);
}
Symbol 1256 MovieClip Frame 5
stop();
Instance of Symbol 1255 MovieClip in Symbol 1256 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop(_global.thirdLevel);
}
Instance of Symbol 1255 MovieClip in Symbol 1256 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop(_global.thirdLevel);
}
Symbol 1259 Button
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
on (release) {
_global.PlaySound("btnClick", 1);
_global.freeze = false;
_global.timeStop = false;
_root.mcGame.mcCont.gotoAndPlay(1);
_root.mcGame.mcInterface.chrono.startTime = getTimer() - _root.mcGame.mcInterface.chrono.elapsed;
play();
}
Symbol 1273 MovieClip Frame 1
stop();
Symbol 1273 MovieClip Frame 2
stop();
Symbol 1273 MovieClip Frame 3
stop();
Symbol 1273 MovieClip Frame 4
stop();
Symbol 1273 MovieClip Frame 5
stop();
Symbol 1274 Button
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
on (release) {
_global.PlaySound("btnClick", 1);
_global.level = "boss";
_global.timeStop = false;
Key.removeListener(_global.sCont.keyListener);
Key.removeListener(_global.sCont.keyListener2);
_global.freeze = false;
_global.score = _root.score;
gotoAndStop ("bossScreen");
}
Symbol 1294 Button
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
on (release) {
stopAllSounds();
_global.patchRestart = true;
_global.PlaySound("btnClick", 1);
gotoAndStop("titlecard");
}
Symbol 1297 Button
on (rollOver) {
_global.PlaySound("btnRoll", 1);
}
on (release) {
_global.PlaySound("btnClick", 1);
}