Frame 1
fscommand ("allowscale", "false");
Frame 2
gotoAndPlay (39);
Frame 39
_root.musicMenu = new Sound();
_root.musicMenu.attachSound("musicMenu");
_root.musicMenu.start(0, 999);
_root.countSoundControl = 1;
gotoAndStop (40);
Frame 40
gotoAndPlay (41);
Frame 41
function generate1up() {
if (_root.flag1upMoving == true) {
_root.pu1up._y = _root.pu1up._y + 10;
if (_root.pu1up._y >= 450) {
_root.pu1up._y = Math.floor(Math.random() * -200) - 100;
_root.pu1up._x = Math.floor(Math.random() * 520) + 30;
_root.flag1upMoving = false;
}
}
}
function checkPause() {
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var _local3 = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var _local3 = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var _local3 = com.wiicade.Wii.getRemote(0);
}
switch (_root.levelNumber) {
case "level1" :
var _local2 = _root.musicLevel1;
_root.flagLoop = false;
break;
case "level2" :
_local2 = _root.musicLevel2;
_root.flagLoop = true;
break;
case "level3" :
_local2 = _root.ambienceLevel3;
_root.flagLoop = true;
break;
case "level4" :
_local2 = _root.musicLevel4;
_root.flagLoop = false;
break;
case "level5" :
_local2 = _root.musicLevel5;
_root.flagLoop = false;
break;
case "level6" :
_local2 = _root.musicLevel6;
_root.flagLoop = false;
break;
case "level7" :
_local2 = _root.musicLevel7;
_root.flagLoop = false;
break;
case "level8" :
_local2 = _root.musicLevel8;
_root.flagLoop = false;
break;
case "levelChristmas" :
_local2 = _root.musicLevelChristmas;
_root.flagLoop = false;
}
if (timerPause > 0) {
timerPause--;
}
if (timerPause < 0) {
timerPause = 0;
}
if ((_local3.isDown(com.wiicade.WiiRemote.BUTTON_B) & (_root.flagPause == false)) & (timerPause <= 0)) {
_root.positionMusic = _local2.position * 0.001;
_local2.stop();
_root.musicLevel3.stop();
_root.signPause.gotoAndPlay("show");
_root.soundPause.start(0, 1);
_root.flagPause = true;
_root.spriteDodgeman.stop();
_root.screenPause._visible = true;
timerPause = 5;
_root.spriteDodgeman.stop();
_root.enWaterBalloonB.stop();
_root.enWaterBalloonG.stop();
_root.enWaterBalloonR.stop();
_root.enWaterBalloonY.stop();
_root.enBolt1.stop();
_root.enBolt2.stop();
_root.overlayRain.stop();
_root.enAlbatross1.stop();
_root.enAlbatross2.stop();
_root.enAlbatross3.stop();
_root.bgRocketSprite.stop();
_root.Burnout1.stop();
_root.Burnout2.stop();
_root.Burnout3.stop();
_root.enMeteor1.stop();
_root.enMeteor2.stop();
_root.enMeteor3.stop();
_root.enMeteor4.stop();
_root.enSatellite.stop();
_root.enAlien1.stop();
_root.enAlien2.stop();
_root.enAlien3.stop();
_root.enStar1.stop();
_root.enStar2.stop();
_root.spriteSpazz.stop();
_root.konkosscreen.stop();
_root.dm2screen.stop();
_root.dm1screen.stop();
_root.pwscreen.stop();
_root.enLaserSword.stop();
_root.enBomb1.stop();
_root.enBomb2.stop();
_root.enBomb3.stop();
_root.spriteThrowman.stop();
_root.objectiveText.stop();
_root.objectiveArrow.stop();
_root.overlaySnow.stop();
} else if ((_local3.isDown(com.wiicade.WiiRemote.BUTTON_B) & (_root.flagPause == true)) & (timerPause <= 0)) {
if (_root.flagLoop == false) {
_local2.start(_root.positionMusic, 1);
} else if (_root.flagLoop == true) {
_local2.start(0, 999);
_root.musicLevel3.start(0, 999);
}
_root.signPause.gotoAndPlay("hide");
_root.flagPause = false;
_root.spriteDodgeman.play();
_root.screenPause._visible = false;
timerPause = 5;
_root.spriteDodgeman.play();
_root.enWaterBalloonB.play();
_root.enWaterBalloonG.play();
_root.enWaterBalloonR.play();
_root.enWaterBalloonY.play();
_root.enBolt1.play();
_root.enBolt2.play();
_root.overlayRain.play();
_root.enAlbatross1.play();
_root.enAlbatross2.play();
_root.enAlbatross3.play();
_root.bgRocketSprite.play();
_root.Burnout1.play();
_root.Burnout2.play();
_root.Burnout3.play();
_root.enMeteor1.play();
_root.enMeteor2.play();
_root.enMeteor3.play();
_root.enMeteor4.play();
_root.enSatellite.play();
_root.enAlien1.play();
_root.enAlien2.play();
_root.enAlien3.play();
_root.enStar1.play();
_root.enStar2.play();
_root.spriteSpazz.play();
_root.konkosscreen.play();
_root.dm2screen.play();
_root.dm1screen.play();
_root.pwscreen.play();
_root.enLaserSword.play();
_root.enBomb1.play();
_root.enBomb2.play();
_root.enBomb3.play();
_root.spriteThrowman.play();
_root.objectiveText.play();
_root.objectiveArrow.play();
_root.overlaySnow.play();
}
}
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
com.wiicade.Browser.setDefaultEnabled(BUTTON_B, false);
_root.flagCheats = false;
_root.flagCheated = false;
_root.flagWonTheGame = false;
_root.flagGotGoodEnding = false;
_root.countGoodEndingBonus = 0;
_root.countLivesRemainingBonus = 0;
_root.flagPause = false;
_root.flagLoop = true;
_root.positionMusic = null;
_root.timerPause = 0;
_root.timerCinemaAdvance = 0;
switch (_root.countSoundControl) {
case 1 :
_root.flagMusicOn = true;
_root.flagSoundOn = true;
_root.signSoundControl.gotoAndStop(1);
if (!_root.musicMenu) {
_root.musicMenu = new Sound();
_root.musicMenu.attachSound("musicMenu");
_root.musicMenu.start(0, 999);
}
break;
case 2 :
_root.flagMusicOn = true;
_root.flagSoundOn = false;
_root.signSoundControl.gotoAndStop(2);
if (!_root.musicMenu) {
_root.musicMenu = new Sound();
_root.musicMenu.attachSound("musicMenu");
_root.musicMenu.start(0, 999);
}
break;
case 3 :
_root.flagMusicOn = false;
_root.flagSoundOn = true;
_root.signSoundControl.gotoAndStop(3);
break;
case 4 :
_root.flagMusicOn = false;
_root.flagSoundOn = false;
_root.signSoundControl.gotoAndStop(4);
}
_root.screenCredits._y = 0;
_root.flag1upMoving = false;
stop();
Instance of Symbol 75 MovieClip "signSoundControl" in Frame 41
on (press) {
_root.countSoundControl++;
if (_root.countSoundControl == 5) {
_root.countSoundControl = 1;
}
this.gotoAndStop(_root.countSoundControl);
switch (_root.countSoundControl) {
case 1 :
_root.flagMusicOn = true;
_root.flagSoundOn = true;
_root.intSoundState = 1;
_root.musicMenu = new Sound();
_root.musicMenu.attachSound("musicMenu");
_root.musicMenu.start(0, 999);
break;
case 2 :
_root.flagMusicOn = true;
_root.flagSoundOn = false;
_root.intSoundState = 2;
break;
case 3 :
_root.flagMusicOn = false;
_root.flagSoundOn = true;
_root.intSoundState = 3;
_root.musicMenu.stop();
delete _root.musicMenu;
break;
case 4 :
_root.flagMusicOn = false;
_root.flagSoundOn = false;
_root.intSoundState = 4;
}
}
Frame 42
function sleeper() {
count++;
trace(("stopped for " + count) + " seconds");
if (count == 5) {
clearInterval(sleep);
_root.nextFrame();
}
}
stop();
count = 0;
sleep = setInterval(sleeper, 1000);
Frame 43
function sleeper() {
count++;
trace(("stopped for " + count) + " seconds");
if (count == 5) {
clearInterval(sleep);
_root.nextFrame();
}
}
stop();
count = 0;
sleep = setInterval(sleeper, 1000);
Frame 44
function sleeper() {
count++;
trace(("stopped for " + count) + " seconds");
if (count == 8) {
clearInterval(sleep);
_root.nextFrame();
}
}
stop();
count = 0;
sleep = setInterval(sleeper, 1000);
Frame 45
function sleeper() {
count++;
trace(("stopped for " + count) + " seconds");
if (count == 8) {
clearInterval(sleep);
_root.nextFrame();
}
}
stop();
count = 0;
sleep = setInterval(sleeper, 1000);
Frame 46
function sleeper() {
count++;
trace(("stopped for " + count) + " seconds");
if (count == 8) {
clearInterval(sleep);
_root.nextFrame();
}
}
stop();
count = 0;
sleep = setInterval(sleeper, 1000);
Frame 47
function sleeper() {
count++;
trace(("stopped for " + count) + " seconds");
if (count == 8) {
clearInterval(sleep);
_root.musicMenu.stop();
delete _root.musicMenu;
gotoAndPlay (48);
}
}
stop();
count = 0;
sleep = setInterval(sleeper, 1000);
stop();
Frame 48
for (var o in _root) {
try {
_root[o].removeMovieClip();
} catch(e) {
}
}
delete _root.soundLevelOne;
delete _root.soundLevelTwo;
delete _root.soundLevelThree;
delete _root.soundLevelFour;
delete _root.soundLevelFive;
delete _root.soundLevelSix;
delete _root.soundLevelSeven;
delete _root.soundLevelEight;
delete _root.soundOuch;
delete _root.soundSpeedUp;
delete _root.soundLadderComplete;
delete _root.soundGameOver;
delete _root.soundPause;
delete _root.sound1up;
delete _root.soundGong;
try {
new LocalConnection().connect("foo");
new LocalConnection().connect("foo");
} catch(error:Error) {
}
gotoAndStop (49);
Frame 49
function handleInput() {
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var _local2 = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var _local2 = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var _local2 = com.wiicade.Wii.getRemote(0);
}
if (_local2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) & (_root.spriteDodgeman._x > 30)) {
_root.spriteDodgeman._x = _root.spriteDodgeman._x - (15 * _root.speedDodgeman);
}
if (_local2.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) & (_root.spriteDodgeman._x < 520)) {
_root.spriteDodgeman._x = _root.spriteDodgeman._x + (15 * _root.speedDodgeman);
}
if ((_local2.isDown(com.wiicade.WiiRemote.BUTTON_UP) & (_root.signArrow._visible == true)) & _root.spriteDodgeman.hitTest(_root.signArrow)) {
_root.scoreLvl1 = _root.countScore;
gotoAndStop (50);
}
if (_root.timerCheatkeys < 14) {
_root.timerCheatkeys++;
}
if ((_local2.isDown(com.wiicade.WiiRemote.BUTTON_PLUS) & (_root.flagCheats == true)) & (_root.timerCheatkeys == 14)) {
_root.flagCheated = true;
_root.scoreLvl1 = 0;
_root.scoreLvl2 = 0;
_root.scoreLvl3 = 0;
_root.scoreLvl4 = 0;
_root.scoreLvl5 = 0;
_root.scoreLvl6 = 0;
_root.scoreLvl7 = 0;
_root.scoreLvl8 = 0;
_root.countLifeBar = 2;
musicLevel1.stop();
delete musicLevel1;
_root.timerCheatkeys = 0;
gotoAndPlay (51);
}
if ((_local2.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) & (_root.flagCheats == true)) & (_root.timerCheatkeys == 14)) {
_root.flagCheated = true;
_root.scoreLvl1 = 0;
_root.scoreLvl2 = 0;
_root.scoreLvl3 = 0;
_root.scoreLvl4 = 0;
_root.scoreLvl5 = 0;
_root.scoreLvl6 = 0;
_root.scoreLvl7 = 0;
_root.scoreLvl8 = 0;
_root.countLifeBar = 2;
musicLevel1.stop();
delete musicLevel1;
_root.timerCheatkeys = 0;
gotoAndPlay (48);
}
if (_root.bool2players == true) {
_root.spriteCatchman._x = _root._xmouse;
_root.spriteCatchman._y = _root._ymouse;
}
if (((((_root._xmouse < 0) or (_root._xmouse > 550)) or (_root._ymouse < 0)) or (_root._ymouse > 400)) and (!com.wiicade.Wii.isWii())) {
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
stopDrag();
}
if (((((_root._xmouse < 20) or (_root._xmouse > 530)) or (_root._ymouse < 20)) or (_root._ymouse > 380)) and com.wiicade.Wii.isWii()) {
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
stopDrag();
}
}
function moveObjects() {
enFishBone1._y = enFishBone1._y + ((10 * _root.speedFactor) * _root.grabFactoren1);
enFishBone2._y = enFishBone2._y + ((12 * _root.speedFactor) * _root.grabFactoren2);
enFishBone3._y = enFishBone3._y + ((15 * _root.speedFactor) * _root.grabFactoren3);
enSoupCan1._y = enSoupCan1._y + ((14 * _root.speedFactor) * _root.grabFactoren4);
enSoupCan2._y = enSoupCan2._y + ((17 * _root.speedFactor) * _root.grabFactoren5);
if (_root.flagLadderMoving == true) {
puLadder1._y = puLadder1._y + 5;
}
if (_root.enFishBone1._y >= 550) {
_root.enFishBone1._y = Math.floor(Math.random() * -200) - 50;
_root.enFishBone1._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.enFishBone2._y >= 550) {
_root.enFishBone2._y = Math.floor(Math.random() * -200) - 50;
_root.enFishBone2._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.enFishBone3._y >= 550) {
_root.enFishBone3._y = Math.floor(Math.random() * -200) - 50;
_root.enFishBone3._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.enSoupCan1._y >= 550) {
_root.enSoupCan1._y = Math.floor(Math.random() * -200) - 50;
_root.enSoupCan1._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.enSoupCan2._y >= 550) {
_root.enSoupCan2._y = Math.floor(Math.random() * -200) - 50;
_root.enSoupCan2._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.puLadder1._y >= 450) {
_root.puLadder1._y = Math.floor(Math.random() * -200) - 100;
_root.puLadder1._x = Math.floor(Math.random() * 490) + 30;
_root.flagLadderMoving = false;
_root.timerLadder = 0;
_root.countScore = 0;
}
}
function progressLadder() {
if (_root.countLadderSegment < 4) {
_root.arrayLadder[_root.countLadderSegment]._visible = true;
_root.countLadderSegment++;
}
if (_root.countLadderSegment == 4) {
if (_root.flagSoundOn == true) {
_root.soundLadderComplete.start(0, 1);
}
_root.signArrow._visible = true;
}
}
function checkCollisions() {
if (_root.flagInvincible == false) {
if (_root.spriteDodgeman.hitTest(_root.enFishBone1)) {
_root.enemyLastHit = "enFishBone";
_root.enFishBone1._y = Math.floor(Math.random() * -200) - 50;
_root.enFishBone1._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enFishBone2)) {
_root.enemyLastHit = "enFishBone";
_root.enFishBone2._y = Math.floor(Math.random() * -200) - 50;
_root.enFishBone2._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enFishBone3)) {
_root.enemyLastHit = "enFishBone";
_root.enFishBone3._y = Math.floor(Math.random() * -200) - 50;
_root.enFishBone3._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enSoupCan1)) {
_root.enemyLastHit = "enSoupCan";
_root.enSoupCan1._y = Math.floor(Math.random() * -200) - 50;
_root.enSoupCan1._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enSoupCan2)) {
_root.enemyLastHit = "enSoupCan";
_root.enSoupCan2._y = Math.floor(Math.random() * -200) - 50;
_root.enSoupCan2._x = Math.floor(Math.random() * 400) + 30;
removeLife();
}
}
if (_root.spriteDodgeman.hitTest(_root.puLadder1)) {
_root.puLadder1._y = Math.floor(Math.random() * -200) - 100;
_root.puLadder1._x = Math.floor(Math.random() * 400) + 30;
_root.flagLadderMoving = false;
_root.timerLadder = 0;
speedUp();
progressLadder();
}
}
function removeLife() {
_root.soundOuch.start(0, 1);
if (_root.countLifeBar == 3) {
_root.textLives._visible = false;
_root.lifeIcon1._visible = true;
_root.lifeIcon2._visible = true;
_root.lifeIcon3._visible = true;
}
if (_root.countLifeBar < 3) {
_root.arrayLifeBar[_root.countLifeBar]._visible = false;
}
if (_root.countLifeBar >= 4) {
_root.textLives.text = "x " + _root.countLifeBar;
}
_root.spriteDodgeman._alpha = 33;
_root.flagInvincible = true;
if (countLifeBar == -1) {
musicLevel1.stop();
delete musicLevel1;
endGame();
}
_root.countLifeBar--;
}
function generateLadderSegment() {
_root.timerLadder++;
if ((timerLadder == 120) & (_root.countLadderSegment < 4)) {
_root.flagLadderMoving = true;
}
}
function checkInvincibility() {
if (_root.flagInvincible == true) {
_root.timerInvincible--;
if (_root.timerInvincible == 0) {
_root.timerInvincible = 36;
flagInvincible = false;
_root.spriteDodgeman._alpha = 100;
}
}
}
function speedUp() {
if (_root.countLadderSegment < 3) {
_root.signSpeedUp._visible = true;
_root.signSpeedUp.gotoAndPlay(1);
_root.soundSpeedUp.start(0, 1);
_root.speedFactor = _root.speedFactor + 0.25;
}
}
function rotatePUColor() {
puColor.setTint(_root.countPUColor, _root.countPUColor2, _root.countPUColor3, 50);
if (_root.countPUColor == 0) {
_root.countPUColor = 255;
} else if (_root.countPUColor == 255) {
_root.countPUColor = 0;
}
if (_root.countPUColor2 == 255) {
_root.countPUColor2 = 0;
} else if (_root.countPUColor2 == 0) {
_root.countPUColor2 = 255;
}
if (_root.countPUColor3 == 50) {
_root.countPUColor3 = 150;
} else if (_root.countPUColor3 == 150) {
}
_root.countPUColor3 = 50;
}
function rotateArrowAlpha() {
if (_root.directionArrowAlpha == "up") {
_root.signArrow._alpha = _root.signArrow._alpha + 15;
if (_root.signArrow._alpha > 100) {
_root.directionArrowAlpha = "down";
}
}
if (_root.directionArrowAlpha == "down") {
_root.signArrow._alpha = _root.signArrow._alpha - 15;
if (_root.signArrow._alpha < 0) {
_root.directionArrowAlpha = "up";
}
}
}
function incrementScore() {
if (_root.countLadderSegment < 4) {
_root.timerSecond++;
if (((_root.timerSecond == 12) or (_root.timerSecond == 24)) & (_root.countLifeBar > -1)) {
_root.timerSecond = 0;
switch (_root.countLifeBar) {
case 2 :
_root.countScore = _root.countScore + 3;
break;
case 1 :
_root.countScore = _root.countScore + 2;
break;
case 0 :
_root.countScore = _root.countScore + 1;
}
if (_root.countLifeBar > 2) {
_root.countScore = _root.countScore + 3;
}
}
if ((_root.timerSecond == 24) & (_root.countLifeBar == -1)) {
_root.timerSecond = 0;
_root.countScore++;
}
_root.textScore.text = _root.countScore;
}
}
function endGame() {
stopDrag();
_root.flagDead = true;
_root.spriteDodgeman._alpha = 100;
Mouse.show();
switch (_root.enemyLastHit) {
case "enFishBone" :
_root.spriteDodgeman.gotoAndStop("death1");
break;
case "enSoupCan" :
_root.spriteDodgeman.gotoAndStop("death2");
}
_root.soundGameOver.start(0, 1);
_root.signGameOver._visible = true;
_root.signGameOver.gotoAndPlay(1);
_root.buttonContinue._visible = true;
_root.buttonQuit._visible = true;
}
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
_root.flagDead = false;
_root.enemyLastHit = "null";
_root.countLadderSegment = 0;
_root.timerLadder = 0;
_root.flagLadderMoving = false;
_root.countPUColor = 0;
_root.countPUColor2 = 255;
_root.countPUColor3 = 50;
_root.countArrowAlpha = 0;
_root.directionArrowAlpha = "up";
_root.timerInvincible = 36;
_root.flagInvincible = false;
_root.countScore = 0;
_root.textScore.text = _root.countScore;
_root.timerSecond = 0;
_root.speedFactor = 0.25;
_root.speedDodgeman = 1;
_root.countTotal = 0;
_root.levelNumber = "level1";
_root.timerCheatkeys = 0;
_root.countLifeBar = 2;
_root.scoreLvl1 = 0;
_root.scoreLvl2 = 0;
_root.scoreLvl3 = 0;
_root.scoreLvl4 = 0;
_root.scoreLvl5 = 0;
_root.scoreLvl6 = 0;
_root.scoreLvl7 = 0;
_root.scoreLvl8 = 0;
_root.flag1upMoving = false;
if (_root.flagMusicOn == true) {
musicLevel1 = new Sound();
musicLevel1.attachSound("musicLevel1");
musicLevel1.start(0.5, 1);
}
if (_root.flagSoundOn == true) {
soundLevelOne = new Sound();
soundLevelOne.attachSound("soundLevelOne");
soundOuch = new Sound();
soundOuch.attachSound("soundOuch");
soundGameOver = new Sound();
soundGameOver.attachSound("soundGameOver");
soundSpeedUp = new Sound();
soundSpeedUp.attachSound("soundSpeedUp");
soundLadderComplete = new Sound();
soundLadderComplete.attachSound("soundLadderComplete");
sound1up = new Sound();
sound1up.attachSound("sound1up");
_root.soundPause = new Sound();
_root.soundPause.attachSound("soundPause");
_root.soundLevelOne.start(0, 1);
}
arrayLadder = [_root.ladder1, _root.ladder2, _root.ladder3, _root.ladder4];
arrayLifeBar = [_root.lifeIcon1, _root.lifeIcon2, _root.lifeIcon3];
i = 0;
while (i < 5) {
currentLadder = _root.arrayLadder[i];
currentLadder._visible = false;
i++;
}
_root.signArrow._visible = false;
_root.signSpeedUp._visible = false;
_root.signGameOver._visible = false;
_root.buttonContinue._visible = false;
_root.buttonQuit._visible = false;
_root.textLives._visible = false;
_root.spriteCatchman._visible = false;
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
_root.spriteCatchman._visible = true;
}
Mouse.hide();
_root.flag1upMoving = false;
Color.prototype.setTint = function (r, g, b, amount) {
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = 100 - amount));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
puColor = new Color(_root.puLadder1);
onEnterFrame = function () {
if (_root.flagDead == false) {
if (_root.flagPause == false) {
checkCollisions();
handleInput();
moveObjects();
generateLadderSegment();
rotatePUColor();
rotateArrowAlpha();
checkInvincibility();
incrementScore();
}
checkPause();
}
};
stop();
Instance of Symbol 142 MovieClip "enFishBone1" in Frame 49
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren1 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren1 = 1;
stopDrag();
}
};
}
Instance of Symbol 142 MovieClip "enFishBone2" in Frame 49
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren2 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren2 = 1;
stopDrag();
}
};
}
Instance of Symbol 142 MovieClip "enFishBone3" in Frame 49
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren3 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren3 = 1;
stopDrag();
}
};
}
Instance of Symbol 232 MovieClip "enSoupCan1" in Frame 49
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren4 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren4 = 1;
stopDrag();
}
};
}
Instance of Symbol 232 MovieClip "enSoupCan2" in Frame 49
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren5 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren5 = 1;
stopDrag();
}
};
}
Instance of Symbol 311 MovieClip "spriteCatchman" in Frame 49
onClipEvent (mouseDown) {
if ((_root.flagDead == false) & (_root.flagPause == false)) {
this.gotoAndPlay(2);
}
}
onClipEvent (mouseUp) {
if ((_root.flagDead == false) & (_root.flagPause == false)) {
this.gotoAndPlay(5);
}
}
Frame 50
onEnterFrame = function () {
if (_root.spriteDodgemanClimber._y < -30) {
_root.musicLevel1.stop();
delete _root.musicLevel1;
gotoAndStop (51);
}
};
stop();
Frame 51
for (var o in _root) {
try {
_root[o].removeMovieClip();
} catch(e) {
}
}
delete handleInput;
delete moveObjects;
delete checkCollisions;
delete generateLadderSegment;
delete rotatePUColor;
delete rotateArrowAlpha;
delete checkInvincibility;
delete incrementScore;
delete speedUp;
delete endGame;
delete _root.soundLevelOne;
delete _root.soundLevelTwo;
delete _root.soundLevelThree;
delete _root.soundLevelFour;
delete _root.soundLevelFive;
delete _root.soundLevelSix;
delete _root.soundLevelSeven;
delete _root.soundLevelEight;
delete _root.soundOuch;
delete _root.soundSpeedUp;
delete _root.soundLadderComplete;
delete _root.soundGameOver;
delete _root.soundGong;
try {
new LocalConnection().connect("foo");
new LocalConnection().connect("foo");
} catch(error:Error) {
}
gotoAndStop (52);
Frame 52
function handleInput() {
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var _local2 = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var _local2 = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var _local2 = com.wiicade.Wii.getRemote(0);
}
if (_local2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) & (_root.spriteDodgeman._x > 30)) {
_root.spriteDodgeman._x = _root.spriteDodgeman._x - (15 * _root.speedDodgeman);
}
if (_local2.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) & (_root.spriteDodgeman._x < 520)) {
_root.spriteDodgeman._x = _root.spriteDodgeman._x + (15 * _root.speedDodgeman);
}
if ((_local2.isDown(com.wiicade.WiiRemote.BUTTON_UP) & (_root.signArrow._visible == true)) & _root.spriteDodgeman.hitTest(_root.signArrow)) {
_root.scoreLvl2 = _root.countScore;
gotoAndStop (53);
}
if (_root.timerCheatkeys < 14) {
_root.timerCheatkeys++;
}
if ((_local2.isDown(com.wiicade.WiiRemote.BUTTON_PLUS) & (_root.flagCheats == true)) & (_root.timerCheatkeys == 14)) {
_root.flagCheated = true;
_root.scoreLvl1 = 0;
_root.scoreLvl2 = 0;
_root.scoreLvl3 = 0;
_root.scoreLvl4 = 0;
_root.scoreLvl5 = 0;
_root.scoreLvl6 = 0;
_root.scoreLvl7 = 0;
_root.scoreLvl8 = 0;
_root.countLifeBar = 2;
musicLevel2.stop();
delete musicLevel2;
_root.timerCheatkeys = 0;
gotoAndPlay (54);
}
if ((_local2.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) & (_root.flagCheats == true)) & (_root.timerCheatkeys == 14)) {
_root.flagCheated = true;
_root.scoreLvl1 = 0;
_root.scoreLvl2 = 0;
_root.scoreLvl3 = 0;
_root.scoreLvl4 = 0;
_root.scoreLvl5 = 0;
_root.scoreLvl6 = 0;
_root.scoreLvl7 = 0;
_root.scoreLvl8 = 0;
_root.countLifeBar = 2;
musicLevel2.stop();
delete musicLevel2;
_root.timerCheatkeys = 0;
gotoAndPlay (48);
}
if (_root.bool2players == true) {
_root.spriteCatchman._x = _root._xmouse;
_root.spriteCatchman._y = _root._ymouse;
}
if (((((_root._xmouse < 0) or (_root._xmouse > 550)) or (_root._ymouse < 0)) or (_root._ymouse > 400)) and (!com.wiicade.Wii.isWii())) {
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
_root.grabFactoren6 = 1;
stopDrag();
}
if (((((_root._xmouse < 20) or (_root._xmouse > 530)) or (_root._ymouse < 20)) or (_root._ymouse > 380)) and com.wiicade.Wii.isWii()) {
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
_root.grabFactoren6 = 1;
stopDrag();
}
}
function moveObjects() {
enWaterBalloonB._y = enWaterBalloonB._y + ((10 * _root.speedFactor) * _root.grabFactoren1);
enWaterBalloonG._y = enWaterBalloonG._y + ((12 * _root.speedFactor) * _root.grabFactoren2);
enWaterBalloonR._y = enWaterBalloonR._y + ((15 * _root.speedFactor) * _root.grabFactoren3);
enWaterBalloonY._y = enWaterBalloonY._y + ((14 * _root.speedFactor) * _root.grabFactoren4);
enTrafficLight1._y = enTrafficLight1._y + ((17 * _root.speedFactor) * _root.grabFactoren5);
enTrafficLight2._y = enTrafficLight2._y + ((13 * _root.speedFactor) * _root.grabFactoren6);
if (_root.flagLadderMoving == true) {
puLadder1._y = puLadder1._y + 5;
}
if (_root.enWaterBalloonB._y >= 550) {
_root.enWaterBalloonB._y = Math.floor(Math.random() * -200) - 50;
_root.enWaterBalloonB._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.enWaterBalloonG._y >= 550) {
_root.enWaterBalloonG._y = Math.floor(Math.random() * -200) - 50;
_root.enWaterBalloonG._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.enWaterBalloonR._y >= 550) {
_root.enWaterBalloonR._y = Math.floor(Math.random() * -200) - 50;
_root.enWaterBalloonR._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.enWaterBalloonY._y >= 550) {
_root.enWaterBalloonY._y = Math.floor(Math.random() * -200) - 50;
_root.enWaterBalloonY._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.enTrafficLight1._y >= 550) {
_root.enTrafficLight1._y = Math.floor(Math.random() * -200) - 50;
_root.enTrafficLight1._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.enTrafficLight2._y >= 550) {
_root.enTrafficLight2._y = Math.floor(Math.random() * -200) - 50;
_root.enTrafficLight2._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.puLadder1._y >= 450) {
_root.puLadder1._y = Math.floor(Math.random() * -200) - 100;
_root.puLadder1._x = Math.floor(Math.random() * 490) + 30;
_root.flagLadderMoving = false;
_root.timerLadder = 0;
_root.countScore = 0;
}
}
function progressLadder() {
if (_root.countLadderSegment < 4) {
_root.arrayLadder[_root.countLadderSegment]._visible = true;
_root.countLadderSegment++;
}
if (_root.countLadderSegment == 2) {
_root.flag1upMoving = true;
}
if (_root.countLadderSegment == 3) {
_root.overlayRain._visible = true;
}
if (_root.countLadderSegment == 4) {
_root.soundLadderComplete.start(0, 1);
_root.signArrow._visible = true;
}
}
function checkCollisions() {
if (_root.flagInvincible == false) {
if (_root.spriteDodgeman.hitTest(_root.enWaterBalloonB)) {
_root.enemyLastHit = "enWaterBalloonB";
_root.enWaterBalloonB._y = Math.floor(Math.random() * -200) - 50;
_root.enWaterBalloonB._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enWaterBalloonG)) {
_root.enemyLastHit = "enWaterBalloonG";
_root.enWaterBalloonG._y = Math.floor(Math.random() * -200) - 50;
_root.enWaterBalloonG._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enWaterBalloonR)) {
_root.enemyLastHit = "enWaterBalloonR";
_root.enWaterBalloonR._y = Math.floor(Math.random() * -200) - 50;
_root.enWaterBalloonR._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enWaterBalloonY)) {
_root.enemyLastHit = "enWaterBalloonY";
_root.enWaterBalloonY._y = Math.floor(Math.random() * -200) - 50;
_root.enWaterBalloonY._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enTrafficLight1)) {
_root.enemyLastHit = "enTrafficLight";
_root.enTrafficLight1._y = Math.floor(Math.random() * -200) - 50;
_root.enTrafficLight1._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enTrafficLight2)) {
_root.enemyLastHit = "enTrafficLight";
_root.enTrafficLight2._y = Math.floor(Math.random() * -200) - 50;
_root.enTrafficLight2._x = Math.floor(Math.random() * 400) + 30;
removeLife();
}
}
if (_root.spriteDodgeman.hitTest(_root.puLadder1)) {
_root.puLadder1._y = Math.floor(Math.random() * -200) - 100;
_root.puLadder1._x = Math.floor(Math.random() * 400) + 30;
_root.flagLadderMoving = false;
_root.timerLadder = 0;
speedUp();
progressLadder();
}
}
function removeLife() {
_root.soundOuch.start(0, 1);
if (_root.countLifeBar == 3) {
_root.textLives._visible = false;
_root.lifeIcon1._visible = true;
_root.lifeIcon2._visible = true;
_root.lifeIcon3._visible = true;
}
if (_root.countLifeBar < 3) {
_root.arrayLifeBar[_root.countLifeBar]._visible = false;
}
if (_root.countLifeBar >= 4) {
_root.textLives.text = "x " + _root.countLifeBar;
}
_root.spriteDodgeman._alpha = 33;
_root.flagInvincible = true;
if (countLifeBar == -1) {
musicLevel2.stop();
delete musicLevel2;
endGame();
}
_root.countLifeBar--;
}
function generateLadderSegment() {
_root.timerLadder++;
if ((timerLadder == 180) & (_root.countLadderSegment < 4)) {
_root.flagLadderMoving = true;
}
}
function checkInvincibility() {
if (_root.flagInvincible == true) {
_root.timerInvincible--;
if (_root.timerInvincible == 0) {
_root.timerInvincible = 36;
flagInvincible = false;
_root.spriteDodgeman._alpha = 100;
}
}
}
function speedUp() {
if (_root.countLadderSegment < 3) {
_root.signSpeedUp._visible = true;
_root.signSpeedUp.gotoAndPlay(1);
_root.soundSpeedUp.start(0, 1);
_root.speedFactor = _root.speedFactor + 0.25;
}
}
function rotatePUColor() {
puColor.setTint(_root.countPUColor, _root.countPUColor2, _root.countPUColor3, 50);
if (_root.countPUColor == 0) {
_root.countPUColor = 255;
} else if (_root.countPUColor == 255) {
_root.countPUColor = 0;
}
if (_root.countPUColor2 == 255) {
_root.countPUColor2 = 0;
} else if (_root.countPUColor2 == 0) {
_root.countPUColor2 = 255;
}
if (_root.countPUColor3 == 50) {
_root.countPUColor3 = 150;
} else if (_root.countPUColor3 == 150) {
}
_root.countPUColor3 = 50;
}
function rotateArrowAlpha() {
if (_root.directionArrowAlpha == "up") {
_root.signArrow._alpha = _root.signArrow._alpha + 15;
if (_root.signArrow._alpha > 100) {
_root.directionArrowAlpha = "down";
}
}
if (_root.directionArrowAlpha == "down") {
_root.signArrow._alpha = _root.signArrow._alpha - 15;
if (_root.signArrow._alpha < 0) {
_root.directionArrowAlpha = "up";
}
}
}
function incrementScore() {
if (_root.countLadderSegment < 4) {
_root.timerSecond++;
if (((_root.timerSecond == 12) or (_root.timerSecond == 24)) & (_root.countLifeBar > -1)) {
_root.timerSecond = 0;
switch (_root.countLifeBar) {
case 2 :
_root.countScore = _root.countScore + 3;
break;
case 1 :
_root.countScore = _root.countScore + 2;
break;
case 0 :
_root.countScore = _root.countScore + 1;
}
if (_root.countLifeBar > 2) {
_root.countScore = _root.countScore + 3;
}
}
if ((_root.timerSecond == 24) & (_root.countLifeBar == -1)) {
_root.timerSecond = 0;
_root.countScore++;
}
_root.textScore.text = _root.countScore;
}
}
function endGame() {
stopDrag();
_root.flagDead = true;
_root.spriteDodgeman._alpha = 100;
Mouse.show();
switch (_root.enemyLastHit) {
case "enWaterBalloonB" :
_root.spriteDodgeman.gotoAndStop("death3");
break;
case "enWaterBalloonG" :
_root.spriteDodgeman.gotoAndStop("death4");
break;
case "enWaterBalloonR" :
_root.spriteDodgeman.gotoAndStop("death5");
break;
case "enWaterBalloonY" :
_root.spriteDodgeman.gotoAndStop("death6");
break;
case "enTrafficLight" :
_root.spriteDodgeman.gotoAndStop("death7");
}
_root.soundGameOver.start(0, 1);
_root.signGameOver._visible = true;
_root.signGameOver.gotoAndPlay(1);
_root.buttonContinue._visible = true;
_root.buttonQuit._visible = true;
}
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
_root.grabFactoren6 = 1;
_root.flagDead = false;
_root.enemyLastHit = "null";
_root.countLadderSegment = 0;
_root.timerLadder = 0;
_root.flagLadderMoving = false;
_root.countPUColor = 0;
_root.countPUColor2 = 255;
_root.countPUColor3 = 50;
_root.countArrowAlpha = 0;
_root.directionArrowAlpha = "up";
_root.timerInvincible = 36;
_root.flagInvincible = false;
_root.countScore = 0;
_root.countTotal = 0;
_root.textScore.text = _root.countScore;
_root.timerSecond = 0;
_root.speedFactor = 0.5;
_root.speedDodgeman = 1;
_root.levelNumber = "level2";
if (_root.flagMusicOn == true) {
musicLevel2 = new Sound();
musicLevel2.attachSound("musicLevel2");
musicLevel2.start(0, 999);
}
if (_root.flagSoundOn == true) {
soundLevelTwo = new Sound();
soundLevelTwo.attachSound("soundLevelTwo");
soundOuch = new Sound();
soundOuch.attachSound("soundOuch");
soundGameOver = new Sound();
soundGameOver.attachSound("soundGameOver");
soundSpeedUp = new Sound();
soundSpeedUp.attachSound("soundSpeedUp");
soundLadderComplete = new Sound();
soundLadderComplete.attachSound("soundLadderComplete");
_root.soundLevelTwo.start(0, 1);
}
arrayLadder = [_root.ladder1, _root.ladder2, _root.ladder3, _root.ladder4];
arrayLifeBar = [_root.lifeIcon1, _root.lifeIcon2, _root.lifeIcon3];
i = 0;
while (i < 5) {
currentLadder = _root.arrayLadder[i];
currentLadder._visible = false;
i++;
}
_root.signArrow._visible = false;
_root.signSpeedUp._visible = false;
_root.signGameOver._visible = false;
_root.buttonContinue._visible = false;
_root.buttonQuit._visible = false;
_root.overlayRain._visible = false;
_root.textLives._visible = false;
_root.spriteCatchman._visible = false;
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
_root.spriteCatchman._visible = true;
}
Mouse.hide();
if (_root.countLifeBar < 3) {
var i = 0;
while (i < 3) {
if (i > _root.countLifeBar) {
_root.arrayLifeBar[i]._visible = false;
}
i++;
}
} else if (_root.countLifeBar >= 3) {
_root.lifeIcon1.gotoAndPlay(1);
_root.lifeIcon2._visible = false;
_root.lifeIcon3._visible = false;
_root.textLives._visible = true;
_root.textLives.text = "x " + (_root.countLifeBar + 1);
}
_root.flag1upMoving = false;
_root.countTotal = ((((((_root.scoreLvl1 + _root.scoreLvl2) + _root.scoreLvl3) + _root.scoreLvl4) + _root.scoreLvl5) + _root.scoreLvl6) + _root.scoreLvl7) + _root.scoreLvl8;
_root.textTotal.text = _root.countTotal;
Color.prototype.setTint = function (r, g, b, amount) {
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = 100 - amount));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
puColor = new Color(_root.puLadder1);
onEnterFrame = function () {
if (_root.flagDead == false) {
if (_root.flagPause == false) {
checkCollisions();
handleInput();
moveObjects();
generateLadderSegment();
rotatePUColor();
rotateArrowAlpha();
checkInvincibility();
incrementScore();
generate1up();
}
checkPause();
}
};
stop();
Instance of Symbol 326 MovieClip "enWaterBalloonB" in Frame 52
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren1 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren1 = 1;
stopDrag();
}
};
}
Instance of Symbol 332 MovieClip "enWaterBalloonG" in Frame 52
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren2 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren2 = 1;
stopDrag();
}
};
}
Instance of Symbol 338 MovieClip "enWaterBalloonR" in Frame 52
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren3 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren3 = 1;
stopDrag();
}
};
}
Instance of Symbol 339 MovieClip "pu1up" in Frame 52
onClipEvent (enterFrame) {
if (this.hitTest(_root.spriteDodgeman)) {
if (_root.countLifeBar < 8) {
_root.sound1up.start(0, 1);
_root.countLifeBar++;
if (_root.countLifeBar < 3) {
_root.arrayLifeBar[_root.countLifeBar]._visible = true;
_root.arrayLifeBar[_root.countLifeBar].gotoAndPlay(1);
} else if (_root.countLifeBar >= 3) {
_root.textLives._visible = true;
_root.textLives.text = "x " + (_root.countLifeBar + 1);
_root.lifeIcon1.gotoAndPlay(1);
_root.lifeIcon2._visible = false;
_root.lifeIcon3._visible = false;
}
}
this._y = Math.floor(Math.random() * -200) - 100;
this._x = Math.floor(Math.random() * 490) + 30;
_root.flag1upMoving = false;
}
if (this._y > 450) {
this._y = Math.floor(Math.random() * -200) - 100;
this._x = Math.floor(Math.random() * 490) + 30;
_root.flag1upMoving = false;
}
}
Instance of Symbol 345 MovieClip "enWaterBalloonY" in Frame 52
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren4 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren4 = 1;
stopDrag();
}
};
}
Instance of Symbol 348 MovieClip "enTrafficLight1" in Frame 52
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren5 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren5 = 1;
stopDrag();
}
};
}
Instance of Symbol 348 MovieClip "enTrafficLight2" in Frame 52
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren6 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren6 = 1;
stopDrag();
}
};
}
Instance of Symbol 311 MovieClip "spriteCatchman" in Frame 52
onClipEvent (mouseDown) {
if ((_root.flagDead == false) & (_root.flagPause == false)) {
this.gotoAndPlay(2);
}
}
onClipEvent (mouseUp) {
if ((_root.flagDead == false) & (_root.flagPause == false)) {
this.gotoAndPlay(5);
}
}
Frame 53
onEnterFrame = function () {
if (_root.spriteDodgemanClimber._y < -30) {
_root.musicLevel2.stop();
delete _root.musicLevel2;
gotoAndStop (54);
}
};
stop();
Frame 54
for (var o in _root) {
try {
_root[o].removeMovieClip();
} catch(e) {
}
}
delete handleInput;
delete moveObjects;
delete checkCollisions;
delete generateLadderSegment;
delete rotatePUColor;
delete rotateArrowAlpha;
delete checkInvincibility;
delete incrementScore;
delete speedUp;
delete endGame;
delete _root.soundLevelOne;
delete _root.soundLevelTwo;
delete _root.soundLevelThree;
delete _root.soundLevelFour;
delete _root.soundLevelFive;
delete _root.soundLevelSix;
delete _root.soundLevelSeven;
delete _root.soundLevelEight;
delete _root.soundOuch;
delete _root.soundSpeedUp;
delete _root.soundLadderComplete;
delete _root.soundGameOver;
delete _root.soundGong;
try {
new LocalConnection().connect("foo");
new LocalConnection().connect("foo");
} catch(error:Error) {
}
gotoAndStop (55);
Frame 55
function handleInput() {
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var _local2 = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var _local2 = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var _local2 = com.wiicade.Wii.getRemote(0);
}
if (_local2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) & (_root.spriteDodgeman._x > 30)) {
_root.spriteDodgeman._x = _root.spriteDodgeman._x - (15 * _root.speedDodgeman);
}
if (_local2.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) & (_root.spriteDodgeman._x < 520)) {
_root.spriteDodgeman._x = _root.spriteDodgeman._x + (15 * _root.speedDodgeman);
}
if ((_local2.isDown(com.wiicade.WiiRemote.BUTTON_UP) & (_root.signArrow._visible == true)) & _root.spriteDodgeman.hitTest(_root.signArrow)) {
_root.scoreLvl3 = _root.countScore;
gotoAndStop (56);
}
if (_root.timerCheatkeys < 14) {
_root.timerCheatkeys++;
}
if ((_local2.isDown(com.wiicade.WiiRemote.BUTTON_PLUS) & (_root.flagCheats == true)) & (_root.timerCheatkeys == 14)) {
_root.flagCheated = true;
_root.scoreLvl1 = 0;
_root.scoreLvl2 = 0;
_root.scoreLvl3 = 0;
_root.scoreLvl4 = 0;
_root.scoreLvl5 = 0;
_root.scoreLvl6 = 0;
_root.scoreLvl7 = 0;
_root.scoreLvl8 = 0;
_root.countLifeBar = 2;
musicLevel3.stop();
delete musicLevel3;
ambienceLevel3.stop();
delete ambienceLevel3;
_root.timerCheatkeys = 0;
gotoAndPlay (59);
}
if ((_local2.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) & (_root.flagCheats == true)) & (_root.timerCheatkeys == 14)) {
_root.flagCheated = true;
_root.scoreLvl1 = 0;
_root.scoreLvl2 = 0;
_root.scoreLvl3 = 0;
_root.scoreLvl4 = 0;
_root.scoreLvl5 = 0;
_root.scoreLvl6 = 0;
_root.scoreLvl7 = 0;
_root.scoreLvl8 = 0;
_root.countLifeBar = 2;
musicLevel3.stop();
delete musicLevel3;
ambienceLevel3.stop();
delete ambienceLevel3;
_root.timerCheatkeys = 0;
gotoAndPlay (51);
}
if (_root.bool2players == true) {
_root.spriteCatchman._x = _root._xmouse;
_root.spriteCatchman._y = _root._ymouse;
}
if (((((_root._xmouse < 0) or (_root._xmouse > 550)) or (_root._ymouse < 0)) or (_root._ymouse > 400)) and (!com.wiicade.Wii.isWii())) {
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
stopDrag();
}
if (((((_root._xmouse < 20) or (_root._xmouse > 530)) or (_root._ymouse < 20)) or (_root._ymouse > 380)) and com.wiicade.Wii.isWii()) {
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
stopDrag();
}
}
function moveObjects() {
enHailstone1._y = enHailstone1._y + ((10 * _root.speedFactor) * _root.grabFactoren1);
enHailstone2._y = enHailstone2._y + ((12 * _root.speedFactor) * _root.grabFactoren2);
enHailstone3._y = enHailstone3._y + ((15 * _root.speedFactor) * _root.grabFactoren3);
enHailstone4._y = enHailstone4._y + ((14 * _root.speedFactor) * _root.grabFactoren4);
_root.timerLightning1++;
_root.timerLightning2++;
if (_root.timerLightning1 == 360) {
_root.flagLightning1 = true;
_root.timerLightning1 = 0;
_root.overlayLightningFlash.gotoAndPlay(1);
}
if (_root.timerLightning2 == 360) {
_root.flagLightning2 = true;
_root.timerLightning2 = 0;
_root.overlayLightningFlash.gotoAndPlay(1);
}
if (_root.flagLightning1 == true) {
enBolt1._y = enBolt1._y + 30;
enBolt1._x = enBolt1._x + 10;
}
if (_root.flagLightning2 == true) {
enBolt2._y = enBolt2._y + 30;
enBolt2._x = enBolt2._x - 10;
}
if (_root.flagJetpackMoving == true) {
arraypuJetpack[_root.countCurrentpuJetpack]._y = arraypuJetpack[_root.countCurrentpuJetpack]._y + 5;
}
if (_root.enHailstone1._y >= 420) {
_root.enHailstone1._y = Math.floor(Math.random() * -200) - 50;
_root.enHailstone1._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.enHailstone2._y >= 420) {
_root.enHailstone2._y = Math.floor(Math.random() * -200) - 50;
_root.enHailstone2._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.enHailstone3._y >= 420) {
_root.enHailstone3._y = Math.floor(Math.random() * -200) - 50;
_root.enHailstone3._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.enHailstone4._y >= 420) {
_root.enHailstone4._y = Math.floor(Math.random() * -200) - 50;
_root.enHailstone4._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.enBolt1._y >= 420) {
_root.enBolt1._y = -97;
_root.enBolt1._x = Math.floor(Math.random() * 340) + 24;
_root.flagLightning1 = false;
}
if (_root.enBolt2._y >= 420) {
_root.enBolt2._y = -97;
_root.enBolt2._x = Math.floor(Math.random() * 321) + 209;
_root.flagLightning2 = false;
}
if (_root.arraypuJetpack[_root.countCurrentpuJetpack]._y >= 450) {
_root.arraypuJetpack[_root.countCurrentpuJetpack]._y = Math.floor(Math.random() * -200) - 100;
_root.arraypuJetpack[_root.countCurrentpuJetpack]._x = Math.floor(Math.random() * 490) + 30;
_root.flagJetpackMoving = false;
_root.timerJetpack = 0;
_root.countScore = 0;
}
}
function progressLadder() {
if (_root.countJetpackSegment < 4) {
_root.arrayJetPack[_root.countJetpackSegment]._visible = true;
_root.arrayJetPack[_root.countJetpackSegment].gotoAndPlay(1);
_root.countJetpackSegment++;
}
if (_root.countJetpackSegment == 2) {
_root.flag1upMoving = true;
}
if (_root.countJetpackSegment == 4) {
_root.soundLadderComplete.start(0, 1);
_root.signArrow._visible = true;
}
}
function checkCollisions() {
if (_root.flagInvincible == false) {
if (_root.spriteDodgeman.hitTest(_root.enHailstone1)) {
_root.enemyLastHit = "enHailstone";
_root.enHailstone1._y = Math.floor(Math.random() * -200) - 50;
_root.enHailstone1._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enHailstone2)) {
_root.enemyLastHit = "enHailstone";
_root.enHailstone2._y = Math.floor(Math.random() * -200) - 50;
_root.enHailstone2._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enHailstone3)) {
_root.enemyLastHit = "enHailstone";
_root.enHailstone3._y = Math.floor(Math.random() * -200) - 50;
_root.enHailstone3._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enHailstone4)) {
_root.enemyLastHit = "enHailstone";
_root.enHailstone4._y = Math.floor(Math.random() * -200) - 50;
_root.enHailstone4._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enBolt1)) {
_root.enemyLastHit = "enBolt";
_root.enBolt1._y = -97;
_root.enBolt1._x = Math.floor(Math.random() * 364) + 24;
_root.flagLightning1 = false;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enBolt2)) {
_root.enemyLastHit = "enBolt";
_root.enBolt2._y = -97;
_root.enBolt2._x = Math.floor(Math.random() * 530) + 209;
_root.flagLightning2 = false;
removeLife();
}
}
if (_root.spriteDodgeman.hitTest(_root.arraypuJetpack[_root.countCurrentpuJetpack])) {
_root.arraypuJetpack[_root.countCurrentpuJetpack]._y = Math.floor(Math.random() * -200) - 100;
_root.arraypuJetpack[_root.countCurrentpuJetpack]._x = Math.floor(Math.random() * 400) + 30;
_root.flagJetpackMoving = false;
if (_root.countCurrentpuJetpack < 3) {
_root.countCurrentpuJetpack++;
}
puColor = new Color(_root.arraypuJetpack[_root.countCurrentpuJetpack]);
_root.timerJetpack = 0;
speedUp();
progressLadder();
}
}
function removeLife() {
_root.soundOuch.start(0, 1);
if (_root.countLifeBar == 3) {
_root.textLives._visible = false;
_root.lifeIcon1._visible = true;
_root.lifeIcon2._visible = true;
_root.lifeIcon3._visible = true;
}
if (_root.countLifeBar < 3) {
_root.arrayLifeBar[_root.countLifeBar]._visible = false;
}
if (_root.countLifeBar >= 4) {
_root.textLives.text = "x " + _root.countLifeBar;
}
_root.spriteDodgeman._alpha = 33;
_root.flagInvincible = true;
if (countLifeBar == -1) {
musicLevel3.stop();
delete musicLevel3;
ambienceLevel3.stop();
delete ambienceLevel3;
endGame();
}
_root.countLifeBar--;
}
function generateLadderSegment() {
_root.timerJetpack++;
if ((timerJetpack == 250) & (_root.countJetpackSegment < 4)) {
_root.flagJetpackMoving = true;
}
}
function checkInvincibility() {
if (_root.flagInvincible == true) {
_root.timerInvincible--;
if (_root.timerInvincible == 0) {
_root.timerInvincible = 36;
flagInvincible = false;
_root.spriteDodgeman._alpha = 100;
}
}
}
function speedUp() {
if (_root.countJetpackSegment < 3) {
_root.signSpeedUp._visible = true;
_root.signSpeedUp.gotoAndPlay(1);
_root.soundSpeedUp.start(0, 1);
_root.speedFactor = _root.speedFactor + 0.25;
}
}
function rotatePUColor() {
puColor.setTint(_root.countPUColor, _root.countPUColor2, _root.countPUColor3, 50);
if (_root.countPUColor == 0) {
_root.countPUColor = 255;
} else if (_root.countPUColor == 255) {
_root.countPUColor = 0;
}
if (_root.countPUColor2 == 255) {
_root.countPUColor2 = 0;
} else if (_root.countPUColor2 == 0) {
_root.countPUColor2 = 255;
}
if (_root.countPUColor3 == 50) {
_root.countPUColor3 = 150;
} else if (_root.countPUColor3 == 150) {
}
_root.countPUColor3 = 50;
}
function rotateArrowAlpha() {
if (_root.directionArrowAlpha == "up") {
_root.signArrow._alpha = _root.signArrow._alpha + 15;
if (_root.signArrow._alpha > 100) {
_root.directionArrowAlpha = "down";
}
}
if (_root.directionArrowAlpha == "down") {
_root.signArrow._alpha = _root.signArrow._alpha - 15;
if (_root.signArrow._alpha < 0) {
_root.directionArrowAlpha = "up";
}
}
}
function incrementScore() {
if (_root.countJetpackSegment < 4) {
_root.timerSecond++;
if (((_root.timerSecond == 12) or (_root.timerSecond == 24)) & (_root.countLifeBar > -1)) {
_root.timerSecond = 0;
switch (_root.countLifeBar) {
case 2 :
_root.countScore = _root.countScore + 3;
break;
case 1 :
_root.countScore = _root.countScore + 2;
break;
case 0 :
_root.countScore = _root.countScore + 1;
}
if (_root.countLifeBar > 2) {
_root.countScore = _root.countScore + 3;
}
}
if ((_root.timerSecond == 24) & (_root.countLifeBar == -1)) {
_root.timerSecond = 0;
_root.countScore++;
}
_root.textScore.text = _root.countScore;
}
}
function endGame() {
stopDrag();
_root.flagDead = true;
_root.spriteDodgeman._alpha = 100;
Mouse.show();
switch (_root.enemyLastHit) {
case "enHailstone" :
_root.spriteDodgeman.gotoAndStop("death9");
break;
case "enBolt" :
_root.spriteDodgeman.gotoAndPlay("death8");
}
_root.soundGameOver.start(0, 1);
_root.signGameOver._visible = true;
_root.signGameOver.gotoAndPlay(1);
_root.buttonContinue._visible = true;
_root.buttonQuit._visible = true;
}
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
_root.flagDead = false;
_root.enemyLastHit = "null";
_root.countJetpackSegment = 0;
_root.timerJetpack = 0;
_root.flagJetpackMoving = false;
_root.countPUColor = 0;
_root.countPUColor2 = 255;
_root.countPUColor3 = 50;
_root.countArrowAlpha = 0;
_root.directionArrowAlpha = "up";
_root.timerInvincible = 36;
_root.flagInvincible = false;
_root.countScore = 0;
_root.countTotal = 0;
_root.textScore.text = _root.countScore;
_root.timerSecond = 0;
_root.speedFactor = 0.75;
_root.speedDodgeman = 1;
_root.levelNumber = "level3";
_root.timerLightning1 = 180;
_root.timerLightning2 = 0;
_root.flagLightning1 = false;
_root.flagLightning2 = false;
_root.countCurrentpuJetpack = 0;
if (_root.flagMusicOn == true) {
musicLevel3 = new Sound();
musicLevel3.attachSound("musicLevel3");
musicLevel3.start(0, 999);
ambienceLevel3 = new Sound();
ambienceLevel3.attachSound("ambienceLevel3");
ambienceLevel3.start(0, 999);
}
if (_root.flagSoundOn == true) {
soundLevelThree = new Sound();
soundLevelThree.attachSound("soundLevelThree");
soundOuch = new Sound();
soundOuch.attachSound("soundOuch");
soundGameOver = new Sound();
soundGameOver.attachSound("soundGameOver");
soundSpeedUp = new Sound();
soundSpeedUp.attachSound("soundSpeedUp");
soundLadderComplete = new Sound();
soundLadderComplete.attachSound("soundLadderComplete");
_root.soundLevelThree.start(0, 1);
}
arrayJetPack = [_root.jetpack1, _root.jetpack2, _root.jetpack3, _root.jetpack4];
arraypuJetpack = [_root.puJetpack1, _root.puJetpack2, _root.puJetpack3, _root.puJetpack4];
arrayLifeBar = [_root.lifeIcon1, _root.lifeIcon2, _root.lifeIcon3];
i = 0;
while (i < 5) {
currentJetpack = _root.arrayJetPack[i];
currentJetpack._visible = false;
i++;
}
_root.signArrow._visible = false;
_root.signSpeedUp._visible = false;
_root.signGameOver._visible = false;
_root.buttonContinue._visible = false;
_root.buttonQuit._visible = false;
_root.textLives._visible = false;
_root.spriteCatchman._visible = false;
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
_root.spriteCatchman._visible = true;
}
Mouse.hide();
if (_root.countLifeBar < 3) {
var i = 0;
while (i < 3) {
if (i > _root.countLifeBar) {
_root.arrayLifeBar[i]._visible = false;
}
i++;
}
} else if (_root.countLifeBar >= 3) {
_root.lifeIcon1.gotoAndPlay(1);
_root.lifeIcon2._visible = false;
_root.lifeIcon3._visible = false;
_root.textLives._visible = true;
_root.textLives.text = "x " + (_root.countLifeBar + 1);
}
_root.flag1upMoving = false;
_root.countTotal = ((((((_root.scoreLvl1 + _root.scoreLvl2) + _root.scoreLvl3) + _root.scoreLvl4) + _root.scoreLvl5) + _root.scoreLvl6) + _root.scoreLvl7) + _root.scoreLvl8;
_root.textTotal.text = _root.countTotal;
Color.prototype.setTint = function (r, g, b, amount) {
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = 100 - amount));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
puColor = new Color(_root.arraypuJetpack[_root.countCurrentpuJetpack]);
onEnterFrame = function () {
if (_root.flagDead == false) {
if (_root.flagPause == false) {
checkCollisions();
handleInput();
moveObjects();
generateLadderSegment();
rotatePUColor();
rotateArrowAlpha();
checkInvincibility();
incrementScore();
generate1up();
}
checkPause();
}
};
stop();
Instance of Symbol 412 MovieClip "enHailstone1" in Frame 55
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren1 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren1 = 1;
stopDrag();
}
};
}
Instance of Symbol 412 MovieClip "enHailstone2" in Frame 55
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren2 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren2 = 1;
stopDrag();
}
};
}
Instance of Symbol 412 MovieClip "enHailstone3" in Frame 55
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren3 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren3 = 1;
stopDrag();
}
};
}
Instance of Symbol 339 MovieClip "pu1up" in Frame 55
onClipEvent (enterFrame) {
if (this.hitTest(_root.spriteDodgeman)) {
if (_root.countLifeBar < 8) {
_root.sound1up.start(0, 1);
_root.countLifeBar++;
if (_root.countLifeBar < 3) {
_root.arrayLifeBar[_root.countLifeBar]._visible = true;
_root.arrayLifeBar[_root.countLifeBar].gotoAndPlay(1);
} else if (_root.countLifeBar >= 3) {
_root.textLives._visible = true;
_root.textLives.text = "x " + (_root.countLifeBar + 1);
_root.lifeIcon1.gotoAndPlay(1);
_root.lifeIcon2._visible = false;
_root.lifeIcon3._visible = false;
}
}
this._y = Math.floor(Math.random() * -200) - 100;
this._x = Math.floor(Math.random() * 490) + 30;
_root.flag1upMoving = false;
}
if (this._y > 450) {
this._y = Math.floor(Math.random() * -200) - 100;
this._x = Math.floor(Math.random() * 490) + 30;
_root.flag1upMoving = false;
}
}
Instance of Symbol 412 MovieClip "enHailstone4" in Frame 55
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren4 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren4 = 1;
stopDrag();
}
};
}
Instance of Symbol 311 MovieClip "spriteCatchman" in Frame 55
onClipEvent (mouseDown) {
if ((_root.flagDead == false) & (_root.flagPause == false)) {
this.gotoAndPlay(2);
}
}
onClipEvent (mouseUp) {
if ((_root.flagDead == false) & (_root.flagPause == false)) {
this.gotoAndPlay(5);
}
}
Frame 56
_root.flagNext = false;
onEnterFrame = function () {
if (_root.flagNext == true) {
gotoAndStop (57);
}
};
stop();
Frame 57
if (_root.flagSoundOn == true) {
_root.soundThrusters = new Sound();
_root.soundThrusters.attachSound("soundThrusters");
_root.soundThrusters.start(0, 9999);
}
onEnterFrame = function () {
if (_root.flagFlying == true) {
_root.spriteDodgemanBlastOff._y = _root.spriteDodgemanBlastOff._y - 10;
}
if (_root.spriteDodgemanBlastOff._y < -40) {
_root.ambienceLevel3.stop();
delete _root.ambienceLevel3;
_root.musicLevel3.stop();
delete _root.musicLevel3;
_root.soundThrusters.stop();
gotoAndStop (58);
}
};
stop();
Frame 58
_root.soundThrusters.start(0, 9999);
onEnterFrame = function () {
_root.spriteDodgemanFlyer._y = _root.spriteDodgemanFlyer._y - 10;
if (_root.spriteDodgemanFlyer._y == 230) {
_root.soundThrusters.stop();
delete _root.soundThrusters;
gotoAndStop (59);
}
};
stop();
Frame 59
for (var o in _root) {
try {
_root[o].removeMovieClip();
} catch(e) {
}
}
delete handleInput;
delete moveObjects;
delete checkCollisions;
delete generateLadderSegment;
delete rotatePUColor;
delete rotateArrowAlpha;
delete checkInvincibility;
delete incrementScore;
delete speedUp;
delete endGame;
delete _root.soundLevelOne;
delete _root.soundLevelTwo;
delete _root.soundLevelThree;
delete _root.soundLevelFour;
delete _root.soundLevelFive;
delete _root.soundLevelSix;
delete _root.soundLevelSeven;
delete _root.soundLevelEight;
delete _root.soundOuch;
delete _root.soundSpeedUp;
delete _root.soundLadderComplete;
delete _root.soundGameOver;
delete _root.soundGong;
try {
new LocalConnection().connect("foo");
new LocalConnection().connect("foo");
} catch(error:Error) {
}
gotoAndStop (60);
Frame 60
function handleInput() {
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var _local2 = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var _local2 = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var _local2 = com.wiicade.Wii.getRemote(0);
}
if (_local2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) & (_root.spriteDodgeman._x > 30)) {
_root.spriteDodgeman._x = _root.spriteDodgeman._x - (15 * _root.speedDodgeman);
}
if (_local2.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) & (_root.spriteDodgeman._x < 520)) {
_root.spriteDodgeman._x = _root.spriteDodgeman._x + (15 * _root.speedDodgeman);
}
if (_local2.isDown(com.wiicade.WiiRemote.BUTTON_UP) & (_root.spriteDodgeman._y > 80)) {
_root.spriteDodgeman._y = _root.spriteDodgeman._y - (15 * _root.speedDodgeman);
}
if (_local2.isDown(com.wiicade.WiiRemote.BUTTON_DOWN) & (_root.spriteDodgeman._y < 350)) {
_root.spriteDodgeman._y = _root.spriteDodgeman._y + (15 * _root.speedDodgeman);
}
if (_root.timerCheatkeys < 14) {
_root.timerCheatkeys++;
}
if ((_local2.isDown(com.wiicade.WiiRemote.BUTTON_PLUS) & (_root.flagCheats == true)) & (_root.timerCheatkeys == 14)) {
_root.flagCheated = true;
_root.scoreLvl1 = 0;
_root.scoreLvl2 = 0;
_root.scoreLvl3 = 0;
_root.scoreLvl4 = 0;
_root.scoreLvl5 = 0;
_root.scoreLvl6 = 0;
_root.scoreLvl7 = 0;
_root.scoreLvl8 = 0;
_root.countLifeBar = 2;
musicLevel4.stop();
delete musicLevel4;
_root.timerCheatkeys = 0;
gotoAndPlay (100);
}
if ((_local2.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) & (_root.flagCheats == true)) & (_root.timerCheatkeys == 14)) {
_root.flagCheated = true;
_root.scoreLvl1 = 0;
_root.scoreLvl2 = 0;
_root.scoreLvl3 = 0;
_root.scoreLvl4 = 0;
_root.scoreLvl5 = 0;
_root.scoreLvl6 = 0;
_root.scoreLvl7 = 0;
_root.scoreLvl8 = 0;
_root.countLifeBar = 2;
musicLevel4.stop();
delete musicLevel4;
_root.timerCheatkeys = 0;
gotoAndPlay (54);
}
if (_root.bool2players == true) {
_root.spriteCatchman._x = _root._xmouse;
_root.spriteCatchman._y = _root._ymouse;
}
if (((((_root._xmouse < 0) or (_root._xmouse > 550)) or (_root._ymouse < 0)) or (_root._ymouse > 400)) and (!com.wiicade.Wii.isWii())) {
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
_root.grabFactoren6 = 1;
stopDrag();
}
if (((((_root._xmouse < 20) or (_root._xmouse > 530)) or (_root._ymouse < 20)) or (_root._ymouse > 380)) and com.wiicade.Wii.isWii()) {
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
_root.grabFactoren6 = 1;
stopDrag();
}
}
function moveObjects() {
if (_root.countTime > 2) {
enAlbatross1._x = enAlbatross1._x - (14.5 * _root.speedFactor);
enAlbatross2._x = enAlbatross2._x - (14.5 * _root.speedFactor);
enAlbatross3._x = enAlbatross3._x - (14.5 * _root.speedFactor);
enWaterBalloonY._x = enWaterBalloonY._x - ((14 * _root.speedFactor) * _root.grabFactoren4);
enTrafficLight1._x = enTrafficLight1._x - ((17 * _root.speedFactor) * _root.grabFactoren5);
enTrafficLight2._x = enTrafficLight2._x - ((13 * _root.speedFactor) * _root.grabFactoren6);
}
if (_root.enAlbatross1._x <= -150) {
_root.enAlbatross1._y = Math.floor(Math.random() * 300) + 69;
_root.enAlbatross1._x = 700;
_root.enAlbatross1.gotoAndPlay(1);
_root.enAlbatross1._visible = true;
}
if (_root.enAlbatross2._x <= -150) {
_root.enAlbatross2._y = Math.floor(Math.random() * 300) + 69;
_root.enAlbatross2._x = 700;
_root.enAlbatross2.gotoAndPlay(1);
_root.enAlbatross2._visible = true;
}
if (_root.enAlbatross3._x <= -150) {
_root.enAlbatross3._y = Math.floor(Math.random() * 300) + 69;
_root.enAlbatross3._x = 700;
_root.enAlbatross3.gotoAndPlay(1);
_root.enAlbatross3._visible = true;
}
}
function progressLadder() {
if (_root.countLadderSegment < 4) {
_root.arrayLadder[_root.countLadderSegment]._visible = true;
_root.countLadderSegment++;
}
if (_root.countLadderSegment == 4) {
_root.soundLadderComplete.start(0, 1);
_root.signArrow._visible = true;
}
}
function checkCollisions() {
if (_root.flagInvincible == false) {
if (_root.spriteDodgeman.hitTest(_root.enAlbatross1)) {
_root.enemyLastHit = "enAlbatross";
_root.soundAlbapop.start(0, 1);
_root.enAlbatross1.gotoAndPlay("asplode");
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enAlbatross2)) {
_root.enemyLastHit = "enAlbatross";
_root.soundAlbapop.start(0, 1);
_root.enAlbatross2.gotoAndPlay("asplode");
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enAlbatross3)) {
_root.enemyLastHit = "enAlbatross";
_root.soundAlbapop.start(0, 1);
_root.enAlbatross3.gotoAndPlay("asplode");
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enWaterBalloonY)) {
_root.enemyLastHit = "enWaterBalloonY";
_root.enWaterBalloonY._y = Math.floor(Math.random() * -200) - 50;
_root.enWaterBalloonY._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enTrafficLight1)) {
_root.enemyLastHit = "enTrafficLight";
_root.enTrafficLight1._y = Math.floor(Math.random() * -200) - 50;
_root.enTrafficLight1._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enTrafficLight2)) {
_root.enemyLastHit = "enTrafficLight";
_root.enTrafficLight2._y = Math.floor(Math.random() * -200) - 50;
_root.enTrafficLight2._x = Math.floor(Math.random() * 400) + 30;
removeLife();
}
}
}
function removeLife() {
_root.soundOuch.start(0, 1);
if (_root.countLifeBar == 3) {
_root.textLives._visible = false;
_root.lifeIcon1._visible = true;
_root.lifeIcon2._visible = true;
_root.lifeIcon3._visible = true;
}
if (_root.countLifeBar < 3) {
_root.arrayLifeBar[_root.countLifeBar]._visible = false;
}
if (_root.countLifeBar >= 4) {
_root.textLives.text = "x " + _root.countLifeBar;
}
_root.spriteDodgeman._alpha = 33;
_root.flagInvincible = true;
if (countLifeBar == -1) {
musicLevel4.stop();
delete musicLevel4;
endGame();
}
_root.countLifeBar--;
}
function generateLadderSegment() {
_root.timerLadder++;
if ((timerLadder == 250) & (_root.countLadderSegment < 4)) {
_root.flagLadderMoving = true;
}
}
function checkInvincibility() {
if (_root.flagInvincible == true) {
_root.timerInvincible--;
if (_root.timerInvincible == 0) {
_root.timerInvincible = 36;
flagInvincible = false;
_root.spriteDodgeman._alpha = 100;
}
}
}
function speedUp() {
_root.signSpeedUp._visible = true;
_root.signSpeedUp.gotoAndPlay(1);
_root.soundSpeedUp.start(0, 1);
_root.speedFactor = _root.speedFactor + 0.25;
_root.speedDodgeman = _root.speedDodgeman + 0.1;
}
function rotatePUColor() {
puColor.setTint(_root.countPUColor, _root.countPUColor2, _root.countPUColor3, 50);
if (_root.countPUColor == 0) {
_root.countPUColor = 255;
} else if (_root.countPUColor == 255) {
_root.countPUColor = 0;
}
if (_root.countPUColor2 == 255) {
_root.countPUColor2 = 0;
} else if (_root.countPUColor2 == 0) {
_root.countPUColor2 = 255;
}
if (_root.countPUColor3 == 50) {
_root.countPUColor3 = 150;
} else if (_root.countPUColor3 == 150) {
}
_root.countPUColor3 = 50;
}
function rotateArrowAlpha() {
if (_root.directionArrowAlpha == "up") {
_root.signArrow._alpha = _root.signArrow._alpha + 15;
if (_root.signArrow._alpha > 100) {
_root.directionArrowAlpha = "down";
}
}
if (_root.directionArrowAlpha == "down") {
_root.signArrow._alpha = _root.signArrow._alpha - 15;
if (_root.signArrow._alpha < 0) {
_root.directionArrowAlpha = "up";
}
}
}
function incrementScore() {
if (_root.countLadderSegment < 4) {
_root.timerSecond++;
if (((_root.timerSecond == 12) or (_root.timerSecond == 24)) & (_root.countLifeBar > -1)) {
_root.timerSecond = 0;
switch (_root.countLifeBar) {
case 2 :
_root.countScore = _root.countScore + 3;
break;
case 1 :
_root.countScore = _root.countScore + 2;
break;
case 0 :
_root.countScore = _root.countScore + 1;
}
if (_root.countLifeBar > 2) {
_root.countScore = _root.countScore + 3;
}
}
if ((_root.timerSecond == 24) & (_root.countLifeBar == -1)) {
_root.timerSecond = 0;
_root.countScore++;
}
_root.textScore.text = _root.countScore;
}
}
function endGame() {
stopDrag();
_root.flagDead = true;
_root.spriteDodgeman._alpha = 100;
Mouse.show();
if (!(_root.enemyLastHit === "enAlbatross")) {
} else {
_root.spriteDodgeman.gotoAndPlay("death1");
}
_root.soundGameOver.start(0, 1);
_root.signGameOver._visible = true;
_root.signGameOver.gotoAndPlay(1);
_root.buttonContinue._visible = true;
_root.buttonQuit._visible = true;
}
function decrementTime() {
_root.timerTime++;
_root.bgRocketSprite._y--;
_root.bgRocketSprite._x++;
if (_root.timerTime == 12) {
_root.timerTime = 0;
_root.countTime--;
_root.textTime.text = _root.countTime;
}
if (((((_root.countTime == 96) or (_root.countTime == 72)) or (_root.countTime == 48)) or (_root.countTime == 24)) and (_root.timerTime == 0)) {
_root.flag1upMoving = true;
speedUp();
}
if ((_root.countTime == 0) and (_root.timerTime == 0)) {
_root.scoreLvl4 = _root.countScore;
_root.DMx = _root.spriteDodgeman._x;
_root.DMy = _root.spriteDodgeman._y;
_root.bg1x = _root.bgLevel41._x;
_root.bg1y = _root.bgLevel41._y;
_root.bg2x = _root.bgLevel42._x;
_root.bg2y = _root.bgLevel42._y;
_root.bg3x = _root.bgLevel43._x;
_root.bg3y = _root.bgLevel43._y;
gotoAndStop (61);
}
}
function scrollBackground() {
_root.bgLevel41._x = _root.bgLevel41._x - 50;
_root.bgLevel42._x = _root.bgLevel42._x - 50;
_root.bgLevel43._x = _root.bgLevel43._x - 50;
if (_root.bgLevel41._x == -550) {
_root.bgLevel41._x = 1100;
}
if (_root.bgLevel42._x == -550) {
_root.bgLevel42._x = 1100;
}
if (_root.bgLevel43._x == -550) {
_root.bgLevel43._x = 1100;
}
}
function killEverythingatTheEnd() {
if ((_root.countTime == 2) & (_root.timerTime == 0)) {
_root.enAlbatross1.gotoAndPlay("asplode");
_root.enAlbatross2.gotoAndPlay("asplode");
_root.enAlbatross3.gotoAndPlay("asplode");
_root.soundLadderComplete.start(0, 1);
}
}
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
_root.grabFactoren6 = 1;
_root.flagDead = false;
_root.enemyLastHit = "null";
_root.countLadderSegment = 0;
_root.timerLadder = 0;
_root.flagLadderMoving = false;
_root.countPUColor = 0;
_root.countPUColor2 = 255;
_root.countPUColor3 = 50;
_root.countArrowAlpha = 0;
_root.directionArrowAlpha = "up";
_root.timerInvincible = 36;
_root.flagInvincible = false;
_root.countScore = 0;
_root.countTotal = 0;
_root.textScore.text = _root.countScore;
_root.timerSecond = 0;
_root.speedFactor = 0.75;
_root.speedDodgeman = 1;
_root.levelNumber = "level4";
_root.countTime = 120;
_root.timerTime = 0;
_root.DMx = 200;
_root.DMy = 200;
_root.bg1x = 0;
_root.bg1y = 0;
_root.bg2x = 0;
_root.bg2y = 0;
_root.bg3x = 0;
_root.bg3y = 0;
if (_root.flagMusicOn == true) {
musicLevel4 = new Sound();
musicLevel4.attachSound("musicLevel4");
musicLevel4.start(0, 1);
}
if (_root.flagSoundOn == true) {
soundLevelFour = new Sound();
soundLevelFour.attachSound("soundLevelFour");
soundOuch = new Sound();
soundOuch.attachSound("soundOuch");
soundGameOver = new Sound();
soundGameOver.attachSound("soundGameOver");
soundSpeedUp = new Sound();
soundSpeedUp.attachSound("soundSpeedUp");
soundLadderComplete = new Sound();
soundLadderComplete.attachSound("soundLadderComplete");
soundAlbapop = new Sound();
soundAlbapop.attachSound("soundAlbapop");
_root.soundLevelFour.start(0, 1);
}
arrayLadder = [_root.ladder1, _root.ladder2, _root.ladder3, _root.ladder4];
arrayLifeBar = [_root.lifeIcon1, _root.lifeIcon2, _root.lifeIcon3];
i = 0;
while (i < 5) {
currentLadder = _root.arrayLadder[i];
currentLadder._visible = false;
i++;
}
_root.signArrow._visible = false;
_root.signSpeedUp._visible = false;
_root.signGameOver._visible = false;
_root.buttonContinue._visible = false;
_root.buttonQuit._visible = false;
_root.textLives._visible = false;
_root.spriteCatchman._visible = false;
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
_root.spriteCatchman._visible = true;
}
Mouse.hide();
if (_root.countLifeBar < 3) {
var i = 0;
while (i < 3) {
if (i > _root.countLifeBar) {
_root.arrayLifeBar[i]._visible = false;
}
i++;
}
} else if (_root.countLifeBar >= 3) {
_root.lifeIcon1.gotoAndPlay(1);
_root.lifeIcon2._visible = false;
_root.lifeIcon3._visible = false;
_root.textLives._visible = true;
_root.textLives.text = "x " + (_root.countLifeBar + 1);
}
_root.flag1upMoving = false;
_root.countTotal = ((((((_root.scoreLvl1 + _root.scoreLvl2) + _root.scoreLvl3) + _root.scoreLvl4) + _root.scoreLvl5) + _root.scoreLvl6) + _root.scoreLvl7) + _root.scoreLvl8;
_root.textTotal.text = _root.countTotal;
Color.prototype.setTint = function (r, g, b, amount) {
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = 100 - amount));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
puColor = new Color(_root.puLadder1);
onEnterFrame = function () {
if (_root.flagDead == false) {
if (_root.flagPause == false) {
checkCollisions();
handleInput();
moveObjects();
generateLadderSegment();
rotatePUColor();
rotateArrowAlpha();
checkInvincibility();
incrementScore();
decrementTime();
scrollBackground();
generate1up();
killEverythingatTheEnd();
}
checkPause();
}
};
stop();
Instance of Symbol 535 MovieClip "enAlbatross1" in Frame 60
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.soundAlbapop.start(0, 1);
this.gotoAndPlay("asplode");
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
}
};
}
Instance of Symbol 535 MovieClip "enAlbatross2" in Frame 60
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.soundAlbapop.start(0, 1);
this.gotoAndPlay("asplode");
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
}
};
}
Instance of Symbol 535 MovieClip "enAlbatross3" in Frame 60
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.soundAlbapop.start(0, 1);
this.gotoAndPlay("asplode");
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
}
};
}
Instance of Symbol 339 MovieClip "pu1up" in Frame 60
onClipEvent (enterFrame) {
if (this.hitTest(_root.spriteDodgeman)) {
if (_root.countLifeBar < 8) {
_root.sound1up.start(0, 1);
_root.countLifeBar++;
if (_root.countLifeBar < 3) {
_root.arrayLifeBar[_root.countLifeBar]._visible = true;
_root.arrayLifeBar[_root.countLifeBar].gotoAndPlay(1);
} else if (_root.countLifeBar >= 3) {
_root.textLives._visible = true;
_root.textLives.text = "x " + (_root.countLifeBar + 1);
_root.lifeIcon1.gotoAndPlay(1);
_root.lifeIcon2._visible = false;
_root.lifeIcon3._visible = false;
}
}
this._y = Math.floor(Math.random() * -200) - 100;
this._x = Math.floor(Math.random() * 490) + 30;
_root.flag1upMoving = false;
}
if (this._y > 450) {
this._y = Math.floor(Math.random() * -200) - 100;
this._x = Math.floor(Math.random() * 490) + 30;
_root.flag1upMoving = false;
}
}
Instance of Symbol 311 MovieClip "spriteCatchman" in Frame 60
onClipEvent (mouseDown) {
if ((_root.flagDead == false) & (_root.flagPause == false)) {
this.gotoAndPlay(2);
}
}
onClipEvent (mouseUp) {
if ((_root.flagDead == false) & (_root.flagPause == false)) {
this.gotoAndPlay(5);
}
}
Frame 61
function scrollBackground() {
_root.bgLevel41._x = _root.bgLevel41._x - 50;
_root.bgLevel42._x = _root.bgLevel42._x - 50;
_root.bgLevel43._x = _root.bgLevel43._x - 50;
if (_root.bgLevel41._x == -550) {
_root.bgLevel41._x = 1100;
}
if (_root.bgLevel42._x == -550) {
_root.bgLevel42._x = 1100;
}
if (_root.bgLevel43._x == -550) {
_root.bgLevel43._x = 1100;
}
}
function moveDodgeman() {
_root.spriteDodgeman._x = _root.spriteDodgeman._x + 5;
_root.spriteDodgeman._y = _root.spriteDodgeman._y - 20;
if (_root.spriteDodgeman._y < -50) {
_root.musicLevel4.stop();
delete _root.musicLevel4;
_root.soundThrusters.stop();
gotoAndStop (62);
}
}
_root.spriteDodgeman._x = _root.DMx;
_root.spriteDodgeman._y = _root.DMy;
_root.bgLevel41._x = _root.bg1x;
_root.bgLevel41._y = _root.bg1y;
_root.bgLevel42._x = _root.bg2x;
_root.bgLevel42._y = _root.bg2y;
_root.bgLevel43._x = _root.bg3x;
_root.bgLevel43._y = _root.bg3y;
if (_root.flagSoundOn == true) {
_root.soundThrusters = new Sound();
_root.soundThrusters.attachSound("soundThrusters");
}
_root.soundThrusters.start(0, 9999);
onEnterFrame = function () {
scrollBackground();
moveDodgeman();
};
stop();
Frame 62
if (_root.flagSoundOn == true) {
soundQuietThrusters = new Sound();
soundQuietThrusters.attachSound("soundQuietThrusters");
soundQuietThrusters.start(0, 999);
}
play();
Frame 98
soundQuietThrusters.stop();
delete soundQuietThrusters;
gotoAndStop (99);
Frame 99
function scrollBackground() {
if (bgLevel5front._x == -5) {
bgLevel5front._x = 5;
} else if (bgLevel5front._x == 5) {
bgLevel5front._x = -5;
}
_root.bgLevel51._y = _root.bgLevel51._y + 50;
_root.bgLevel52._y = _root.bgLevel52._y + 50;
_root.bgLevel53._y = _root.bgLevel53._y + 50;
if (_root.bgLevel51._y == 400) {
_root.bgLevel51._y = -800;
}
if (_root.bgLevel52._y == 400) {
_root.bgLevel52._y = -800;
}
if (_root.bgLevel53._y == 400) {
_root.bgLevel53._y = -800;
}
}
function moveSprites() {
if (_root.spriteJetpack._x < 165) {
_root.spriteJetpack._x = _root.spriteJetpack._x + 5;
_root.spriteDodgeman._x = _root.spriteDodgeman._x + 5;
}
if (_root.spriteJetpack._y < 330) {
_root.spriteDodgeman._y = _root.spriteDodgeman._y + 10;
_root.spriteJetpack._y = _root.spriteJetpack._y + 10;
}
if (_root.spriteJetpack._y > 450) {
gotoAndStop (100);
}
}
_root.soundThrusters.start(0, 999);
onEnterFrame = function () {
scrollBackground();
moveSprites();
};
stop();
Frame 100
for (var o in _root) {
try {
_root[o].removeMovieClip();
} catch(e) {
}
}
delete handleInput;
delete moveObjects;
delete checkCollisions;
delete generateLadderSegment;
delete rotatePUColor;
delete rotateArrowAlpha;
delete checkInvincibility;
delete incrementScore;
delete speedUp;
delete endGame;
delete _root.soundLevelOne;
delete _root.soundLevelTwo;
delete _root.soundLevelThree;
delete _root.soundLevelFour;
delete _root.soundLevelFive;
delete _root.soundLevelSix;
delete _root.soundLevelSeven;
delete _root.soundLevelEight;
delete _root.soundOuch;
delete _root.soundSpeedUp;
delete _root.soundLadderComplete;
delete _root.soundGameOver;
delete _root.soundGong;
try {
new LocalConnection().connect("foo");
new LocalConnection().connect("foo");
} catch(error:Error) {
}
gotoAndStop (101);
Frame 101
function handleInput() {
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var _local2 = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var _local2 = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var _local2 = com.wiicade.Wii.getRemote(0);
}
if (_local2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) & (_root.spriteDodgeman._x > 140)) {
_root.spriteDodgeman._x = _root.spriteDodgeman._x - (15 * _root.speedDodgeman);
_root.SuitPiece1._x = _root.SuitPiece1._x - (15 * _root.speedDodgeman);
_root.SuitPiece2._x = _root.SuitPiece2._x - (15 * _root.speedDodgeman);
_root.SuitPiece3._x = _root.SuitPiece3._x - (15 * _root.speedDodgeman);
_root.SuitPiece4._x = _root.SuitPiece4._x - (15 * _root.speedDodgeman);
}
if (_local2.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) & (_root.spriteDodgeman._x < 390)) {
_root.spriteDodgeman._x = _root.spriteDodgeman._x + (15 * _root.speedDodgeman);
_root.SuitPiece1._x = _root.SuitPiece1._x + (15 * _root.speedDodgeman);
_root.SuitPiece2._x = _root.SuitPiece2._x + (15 * _root.speedDodgeman);
_root.SuitPiece3._x = _root.SuitPiece3._x + (15 * _root.speedDodgeman);
_root.SuitPiece4._x = _root.SuitPiece4._x + (15 * _root.speedDodgeman);
}
if ((_local2.isDown(com.wiicade.WiiRemote.BUTTON_UP) & (_root.signArrow._visible == true)) & _root.spriteDodgeman.hitTest(_root.signArrow)) {
_root.scoreLvl5 = _root.countScore;
gotoAndStop (102);
}
if (_root.timerCheatkeys < 14) {
_root.timerCheatkeys++;
}
if ((_local2.isDown(com.wiicade.WiiRemote.BUTTON_PLUS) & (_root.flagCheats == true)) & (_root.timerCheatkeys == 14)) {
_root.flagCheated = true;
_root.scoreLvl1 = 0;
_root.scoreLvl2 = 0;
_root.scoreLvl3 = 0;
_root.scoreLvl4 = 0;
_root.scoreLvl5 = 0;
_root.scoreLvl6 = 0;
_root.scoreLvl7 = 0;
_root.scoreLvl8 = 0;
_root.countLifeBar = 2;
musicLevel5.stop();
delete musicLevel5;
_root.timerCheatkeys = 0;
gotoAndPlay (221);
}
if ((_local2.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) & (_root.flagCheats == true)) & (_root.timerCheatkeys == 14)) {
_root.flagCheated = true;
_root.scoreLvl1 = 0;
_root.scoreLvl2 = 0;
_root.scoreLvl3 = 0;
_root.scoreLvl4 = 0;
_root.scoreLvl5 = 0;
_root.scoreLvl6 = 0;
_root.scoreLvl7 = 0;
_root.scoreLvl8 = 0;
_root.countLifeBar = 2;
musicLevel5.stop();
delete musicLevel5;
_root.timerCheatkeys = 0;
gotoAndPlay (59);
}
if (_root.bool2players == true) {
_root.spriteCatchman._x = _root._xmouse;
_root.spriteCatchman._y = _root._ymouse;
}
if (((((_root._xmouse < 0) or (_root._xmouse > 550)) or (_root._ymouse < 0)) or (_root._ymouse > 400)) and (!com.wiicade.Wii.isWii())) {
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
_root.grabFactoren6 = 1;
stopDrag();
}
if (((((_root._xmouse < 20) or (_root._xmouse > 530)) or (_root._ymouse < 20)) or (_root._ymouse > 380)) and com.wiicade.Wii.isWii()) {
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
_root.grabFactoren6 = 1;
stopDrag();
}
}
function moveObjects() {
enMeteor1._y = enMeteor1._y + ((10 * _root.speedFactor) * _root.grabFactoren1);
enMeteor2._y = enMeteor2._y + ((12 * _root.speedFactor) * _root.grabFactoren2);
enMeteor3._y = enMeteor3._y + ((11 * _root.speedFactor) * _root.grabFactoren3);
enMeteor4._y = enMeteor4._y + ((14 * _root.speedFactor) * _root.grabFactoren4);
enSatellite._y = enSatellite._y + ((15 * _root.speedFactor) * _root.grabFactoren5);
if (_root.flagSuitPieceMoving == true) {
arraypuSuitPiece[_root.countCurrentpuSuitPiece]._y = arraypuSuitPiece[_root.countCurrentpuSuitPiece]._y + 5;
}
if (_root.enMeteor1._y >= 450) {
_root.enMeteor1._y = Math.floor(Math.random() * -500) - 50;
_root.enMeteor1._x = Math.floor(Math.random() * 239) + 142;
}
if (_root.enMeteor2._y >= 450) {
_root.enMeteor2._y = Math.floor(Math.random() * -500) - 50;
_root.enMeteor2._x = Math.floor(Math.random() * 239) + 142;
}
if (_root.enMeteor3._y >= 450) {
_root.enMeteor3._y = Math.floor(Math.random() * -500) - 50;
_root.enMeteor3._x = Math.floor(Math.random() * 239) + 142;
}
if (_root.enMeteor4._y >= 450) {
_root.enMeteor4._y = Math.floor(Math.random() * -500) - 50;
_root.enMeteor4._x = Math.floor(Math.random() * 239) + 142;
}
if (_root.enSatellite._y >= 450) {
_root.enSatellite._y = Math.floor(Math.random() * -500) - 50;
_root.enSatellite._x = Math.floor(Math.random() * 239) + 142;
}
if (_root.arraypuSuitPiece[_root.countCurrentpuSuitPiece]._y >= 450) {
_root.arraypuSuitPiece[_root.countCurrentpuSuitPiece]._y = Math.floor(Math.random() * -200) - 100;
_root.arraypuSuitPiece[_root.countCurrentpuSuitPiece]._x = Math.floor(Math.random() * 239) + 142;
_root.flagSuitPieceMoving = false;
_root.timerSuitPiece = 0;
_root.countScore = 0;
}
}
function progressLadder() {
if (_root.countSuitPiece < 4) {
_root.arraySuitPiece[_root.countSuitPiece]._visible = true;
if (_root.countSuitPiece == 0) {
_root.spriteDodgeman._visible = false;
}
if (_root.countSuitPiece > 0) {
_root.arraySuitPiece[_root.countSuitPiece - 1]._visible = false;
}
_root.countSuitPiece++;
_root.flag1upMoving = true;
}
if (_root.countSuitPiece == 4) {
_root.soundLadderComplete.start(0, 1);
_root.signArrow._visible = true;
}
}
function checkCollisions() {
if (_root.flagInvincible == false) {
if (_root.spriteDodgeman.hitTest(_root.enMeteor1)) {
_root.enemyLastHit = "enMeteor";
_root.enMeteor1._y = Math.floor(Math.random() * -500) - 50;
_root.enMeteor1._x = Math.floor(Math.random() * 235) + 140;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enMeteor2)) {
_root.enemyLastHit = "enMeteor";
_root.enMeteor2._y = Math.floor(Math.random() * -500) - 50;
_root.enMeteor2._x = Math.floor(Math.random() * 235) + 140;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enMeteor3)) {
_root.enemyLastHit = "enMeteor";
_root.enMeteor3._y = Math.floor(Math.random() * -500) - 50;
_root.enMeteor3._x = Math.floor(Math.random() * 235) + 140;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enMeteor4)) {
_root.enemyLastHit = "enMeteor";
_root.enMeteor4._y = Math.floor(Math.random() * -500) - 50;
_root.enMeteor4._x = Math.floor(Math.random() * 235) + 140;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enSatellite)) {
_root.enemyLastHit = "enSatellite";
_root.enSatellite._y = Math.floor(Math.random() * -500) - 50;
_root.enSatellite._x = Math.floor(Math.random() * 235) + 140;
removeLife();
}
}
if (_root.spriteDodgeman.hitTest(_root.arraypuSuitPiece[_root.countCurrentpuSuitPiece])) {
switch (_root.countCurrentpuSuitPiece) {
case 0 :
_root.Burnout1._visible = true;
_root.bgLevel5front._visible = false;
break;
case 1 :
_root.Burnout2._visible = true;
_root.Burnout1._visible = false;
_root.bgLevel5back2._visible = true;
_root.bgLevel5back._visible = false;
break;
case 2 :
_root.Burnout3._visible = true;
_root.Burnout2._visible = false;
_root.bgLevel5back3._visible = true;
_root.bgLevel5back2._visible = false;
break;
case 3 :
_root.bgLevel5front._visible = true;
_root.Burnout3._visible = false;
_root.bgLevel5back4._visible = true;
_root.bgLevel5back3._visible = false;
}
_root.arraypuSuitPiece[_root.countCurrentpuSuitPiece]._y = Math.floor(Math.random() * -200) - 100;
_root.arraypuSuitPiece[_root.countCurrentpuSuitPiece]._x = Math.floor(Math.random() * 400) + 30;
_root.flagSuitPieceMoving = false;
if (_root.countCurrentpuSuitPiece < 3) {
_root.countCurrentpuSuitPiece++;
}
puColor = new Color(_root.arraypuSuitPiece[_root.countCurrentpuSuitPiece]);
_root.timerSuitPiece = 0;
speedUp();
progressLadder();
}
}
function removeLife() {
_root.soundOuch.start(0, 1);
if (_root.countLifeBar == 3) {
_root.textLives._visible = false;
_root.lifeIcon1._visible = true;
_root.lifeIcon2._visible = true;
_root.lifeIcon3._visible = true;
}
if (_root.countLifeBar < 3) {
_root.arrayLifeBar[_root.countLifeBar]._visible = false;
}
if (_root.countLifeBar >= 4) {
_root.textLives.text = "x " + _root.countLifeBar;
}
_root.spriteDodgeman._alpha = 33;
_root.SuitPiece1._alpha = 33;
_root.SuitPiece2._alpha = 33;
_root.SuitPiece3._alpha = 33;
_root.SuitPiece4._alpha = 33;
_root.flagInvincible = true;
if (countLifeBar == -1) {
musicLevel5.stop();
delete musicLevel5;
endGame();
}
_root.countLifeBar--;
}
function generateLadderSegment() {
_root.timerSuitPiece++;
if ((timerSuitPiece == 250) & (_root.countSuitPiece < 4)) {
_root.flagSuitPieceMoving = true;
}
}
function checkInvincibility() {
if (_root.flagInvincible == true) {
_root.timerInvincible--;
if (_root.timerInvincible == 0) {
_root.timerInvincible = 36;
flagInvincible = false;
_root.spriteDodgeman._alpha = 100;
_root.SuitPiece1._alpha = 100;
_root.SuitPiece2._alpha = 100;
_root.SuitPiece3._alpha = 100;
_root.SuitPiece4._alpha = 100;
}
}
}
function speedUp() {
if (_root.countSuitPiece < 3) {
_root.signSpeedUp._visible = true;
_root.signSpeedUp.gotoAndPlay(1);
_root.soundSpeedUp.start(0, 1);
_root.speedFactor = _root.speedFactor + 0.25;
}
}
function rotatePUColor() {
puColor.setTint(_root.countPUColor, _root.countPUColor2, _root.countPUColor3, 50);
if (_root.countPUColor == 0) {
_root.countPUColor = 255;
} else if (_root.countPUColor == 255) {
_root.countPUColor = 0;
}
if (_root.countPUColor2 == 255) {
_root.countPUColor2 = 0;
} else if (_root.countPUColor2 == 0) {
_root.countPUColor2 = 255;
}
if (_root.countPUColor3 == 50) {
_root.countPUColor3 = 150;
} else if (_root.countPUColor3 == 150) {
}
_root.countPUColor3 = 50;
}
function rotateArrowAlpha() {
if (_root.directionArrowAlpha == "up") {
_root.signArrow._alpha = _root.signArrow._alpha + 15;
if (_root.signArrow._alpha > 100) {
_root.directionArrowAlpha = "down";
}
}
if (_root.directionArrowAlpha == "down") {
_root.signArrow._alpha = _root.signArrow._alpha - 15;
if (_root.signArrow._alpha < 0) {
_root.directionArrowAlpha = "up";
}
}
}
function incrementScore() {
if (_root.countSuitPiece < 4) {
_root.timerSecond++;
if (((_root.timerSecond == 12) or (_root.timerSecond == 24)) & (_root.countLifeBar > -1)) {
_root.timerSecond = 0;
switch (_root.countLifeBar) {
case 2 :
_root.countScore = _root.countScore + 3;
break;
case 1 :
_root.countScore = _root.countScore + 2;
break;
case 0 :
_root.countScore = _root.countScore + 1;
}
if (_root.countLifeBar > 2) {
_root.countScore = _root.countScore + 3;
}
}
if ((_root.timerSecond == 24) & (_root.countLifeBar == -1)) {
_root.timerSecond = 0;
_root.countScore++;
}
_root.textScore.text = _root.countScore;
}
}
function endGame() {
stopDrag();
_root.flagDead = true;
_root.spriteDodgeman._alpha = 100;
Mouse.show();
switch (_root.enemyLastHit) {
case "enMeteor" :
_root.spriteDodgeman.gotoAndPlay("death1");
_root.SuitPiece1.gotoAndPlay("death1");
_root.SuitPiece2.gotoAndPlay("death1");
_root.SuitPiece3.gotoAndPlay("death1");
_root.SuitPiece4.gotoAndPlay("death1");
break;
case "enSatellite" :
_root.spriteDodgeman.gotoAndPlay("death1");
_root.SuitPiece1.gotoAndPlay("death1");
_root.SuitPiece2.gotoAndPlay("death1");
_root.SuitPiece3.gotoAndPlay("death1");
_root.SuitPiece4.gotoAndPlay("death1");
}
_root.soundGameOver.start(0, 1);
_root.signGameOver._visible = true;
_root.signGameOver.gotoAndPlay(1);
_root.buttonContinue._visible = true;
_root.buttonQuit._visible = true;
}
function scrollBackground() {
if (_root.bgLevel5back4._visible == false) {
if (bgLevel5front._x == -5) {
bgLevel5front._x = 5;
Burnout1._x = 5;
Burnout2._x = 5;
Burnout3._x = 5;
spriteServiceHatch._x = 393.9;
} else if (bgLevel5front._x == 5) {
bgLevel5front._x = -5;
Burnout1._x = -5;
Burnout2._x = -5;
Burnout3._x = -5;
spriteServiceHatch._x = 383.9;
}
if (_root.flagDMShake == "right") {
_root.spriteDodgeman._x = _root.spriteDodgeman._x + 5;
_root.SuitPiece1._x = _root.SuitPiece1._x + 5;
_root.SuitPiece2._x = _root.SuitPiece2._x + 5;
_root.SuitPiece3._x = _root.SuitPiece3._x + 5;
_root.SuitPiece4._x = _root.SuitPiece4._x + 5;
_root.flagDMShake = "left";
} else if (_root.flagDMShake == "left") {
_root.spriteDodgeman._x = _root.spriteDodgeman._x - 5;
_root.SuitPiece1._x = _root.SuitPiece1._x - 5;
_root.SuitPiece2._x = _root.SuitPiece2._x - 5;
_root.SuitPiece3._x = _root.SuitPiece3._x - 5;
_root.SuitPiece4._x = _root.SuitPiece4._x - 5;
_root.flagDMShake = "right";
}
} else if (_root.bgLevel5back4._visible == true) {
bgLevel5front._x = 0;
spriteServiceHatch._x = 388.9;
}
_root.bgLevel51._y = _root.bgLevel51._y + 50;
_root.bgLevel52._y = _root.bgLevel52._y + 50;
_root.bgLevel53._y = _root.bgLevel53._y + 50;
if (_root.bgLevel5back4._visible == false) {
if (_root.bgLevel51._y == 400) {
_root.bgLevel51._y = -800;
}
if (_root.bgLevel52._y == 400) {
_root.bgLevel52._y = -800;
}
if (_root.bgLevel53._y == 400) {
_root.bgLevel53._y = -800;
}
}
}
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
_root.grabFactoren6 = 1;
_root.flagDead = false;
_root.enemyLastHit = "null";
_root.countSuitPiece = 0;
_root.timerSuitPiece = 0;
_root.flagSuitPieceMoving = false;
_root.countPUColor = 0;
_root.countPUColor2 = 255;
_root.countPUColor3 = 50;
_root.countArrowAlpha = 0;
_root.directionArrowAlpha = "up";
_root.timerInvincible = 36;
_root.flagInvincible = false;
_root.countScore = 0;
_root.countTotal = 0;
_root.textScore.text = _root.countScore;
_root.timerSecond = 0;
_root.speedFactor = 0.5;
_root.speedDodgeman = 1;
_root.levelNumber = "level5";
_root.flagDMShake = "right";
_root.countCurrentpuSuitPiece = 0;
if (_root.flagMusicOn == true) {
musicLevel5 = new Sound();
musicLevel5.attachSound("musicLevel5");
musicLevel5.start(0, 1);
}
if (_root.flagSoundOn == true) {
soundLevelFive = new Sound();
soundLevelFive.attachSound("soundLevelFive");
soundOuch = new Sound();
soundOuch.attachSound("soundOuch");
soundGameOver = new Sound();
soundGameOver.attachSound("soundGameOver");
soundSpeedUp = new Sound();
soundSpeedUp.attachSound("soundSpeedUp");
soundLadderComplete = new Sound();
soundLadderComplete.attachSound("soundLadderComplete");
_root.soundLevelFive.start(0, 1);
}
arraySuitPiece = [_root.SuitPiece1, _root.SuitPiece2, _root.SuitPiece3, _root.SuitPiece4];
arraypuSuitPiece = [_root.puSuitPiece1, _root.puSuitPiece2, _root.puSuitPiece3, _root.puSuitPiece4];
arrayLifeBar = [_root.lifeIcon1, _root.lifeIcon2, _root.lifeIcon3];
i = 0;
while (i < 5) {
currentSuitPiece = _root.arraySuitPiece[i];
currentSuitPiece._visible = false;
i++;
}
_root.signArrow._visible = false;
_root.signSpeedUp._visible = false;
_root.signGameOver._visible = false;
_root.buttonContinue._visible = false;
_root.buttonQuit._visible = false;
Burnout1._visible = false;
Burnout2._visible = false;
Burnout3._visible = false;
bgLevel5back2._visible = false;
bgLevel5back3._visible = false;
bgLevel5back4._visible = false;
_root.textLives._visible = false;
_root.spriteCatchman._visible = false;
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
_root.spriteCatchman._visible = true;
}
Mouse.hide();
if (_root.countLifeBar < 3) {
var i = 0;
while (i < 3) {
if (i > _root.countLifeBar) {
_root.arrayLifeBar[i]._visible = false;
}
i++;
}
} else if (_root.countLifeBar >= 3) {
_root.lifeIcon1.gotoAndPlay(1);
_root.lifeIcon2._visible = false;
_root.lifeIcon3._visible = false;
_root.textLives._visible = true;
_root.textLives.text = "x " + (_root.countLifeBar + 1);
}
_root.flag1upMoving = false;
_root.countTotal = ((((((_root.scoreLvl1 + _root.scoreLvl2) + _root.scoreLvl3) + _root.scoreLvl4) + _root.scoreLvl5) + _root.scoreLvl6) + _root.scoreLvl7) + _root.scoreLvl8;
_root.textTotal.text = _root.countTotal;
Color.prototype.setTint = function (r, g, b, amount) {
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = 100 - amount));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
puColor = new Color(_root.arraypuSuitPiece[_root.countCurrentpuSuitPiece]);
onEnterFrame = function () {
if (_root.flagDead == false) {
if (_root.flagPause == false) {
checkCollisions();
handleInput();
moveObjects();
generateLadderSegment();
rotatePUColor();
rotateArrowAlpha();
checkInvincibility();
incrementScore();
scrollBackground();
generate1up();
}
checkPause();
}
};
stop();
Instance of Symbol 654 MovieClip "enSatellite" in Frame 101
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren5 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren5 = 1;
stopDrag();
}
};
}
Instance of Symbol 667 MovieClip "enMeteor1" in Frame 101
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren1 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren1 = 1;
stopDrag();
}
};
}
Instance of Symbol 667 MovieClip "enMeteor2" in Frame 101
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren2 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren2 = 1;
stopDrag();
}
};
}
Instance of Symbol 667 MovieClip "enMeteor3" in Frame 101
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren3 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren3 = 1;
stopDrag();
}
};
}
Instance of Symbol 667 MovieClip "enMeteor4disabled" in Frame 101
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren4 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren4 = 1;
stopDrag();
}
};
}
Instance of Symbol 339 MovieClip "pu1up" in Frame 101
onClipEvent (enterFrame) {
if (this.hitTest(_root.spriteDodgeman)) {
if (_root.countLifeBar < 8) {
_root.sound1up.start(0, 1);
_root.countLifeBar++;
if (_root.countLifeBar < 3) {
_root.arrayLifeBar[_root.countLifeBar]._visible = true;
_root.arrayLifeBar[_root.countLifeBar].gotoAndPlay(1);
} else if (_root.countLifeBar >= 3) {
_root.textLives._visible = true;
_root.textLives.text = "x " + (_root.countLifeBar + 1);
_root.lifeIcon1.gotoAndPlay(1);
_root.lifeIcon2._visible = false;
_root.lifeIcon3._visible = false;
}
}
this._y = Math.floor(Math.random() * -200) - 100;
this._x = Math.floor(Math.random() * 239) + 142;
_root.flag1upMoving = false;
}
if (this._y > 450) {
this._y = Math.floor(Math.random() * -200) - 100;
this._x = Math.floor(Math.random() * 239) + 142;
_root.flag1upMoving = false;
}
}
Instance of Symbol 311 MovieClip "spriteCatchman" in Frame 101
onClipEvent (mouseDown) {
if ((_root.flagDead == false) & (_root.flagPause == false)) {
this.gotoAndPlay(2);
}
}
onClipEvent (mouseUp) {
if ((_root.flagDead == false) & (_root.flagPause == false)) {
this.gotoAndPlay(5);
}
}
Frame 102
_root.spriteServiceHatch._visible = false;
_root.flagNext = false;
onEnterFrame = function () {
if (_root.flagNext == true) {
_root.flagNext = false;
gotoAndStop (103);
}
};
stop();
Instance of Symbol 612 MovieClip "spriteServiceHatch" in Frame 102
onClipEvent (enterFrame) {
if (this._visible == true) {
this._y = this._y + 20;
}
}
Frame 103
play();
Frame 143
_root.musicLevel5.stop();
delete musicLevel5;
gotoAndStop (144);
Frame 144
play();
Frame 221
for (var o in _root) {
try {
_root[o].removeMovieClip();
} catch(e) {
}
}
delete handleInput;
delete moveObjects;
delete checkCollisions;
delete generateLadderSegment;
delete rotatePUColor;
delete rotateArrowAlpha;
delete checkInvincibility;
delete incrementScore;
delete speedUp;
delete endGame;
delete _root.soundLevelOne;
delete _root.soundLevelTwo;
delete _root.soundLevelThree;
delete _root.soundLevelFour;
delete _root.soundLevelFive;
delete _root.soundLevelSix;
delete _root.soundLevelSeven;
delete _root.soundLevelEight;
delete _root.soundOuch;
delete _root.soundSpeedUp;
delete _root.soundLadderComplete;
delete _root.soundGameOver;
delete _root.soundGong;
try {
new LocalConnection().connect("foo");
new LocalConnection().connect("foo");
} catch(error:Error) {
}
gotoAndStop (222);
Frame 222
function handleInput() {
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var _local2 = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var _local2 = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var _local2 = com.wiicade.Wii.getRemote(0);
}
if (_local2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) & (_root.spriteDodgeman._x > 30)) {
_root.spriteDodgeman._x = _root.spriteDodgeman._x - (15 * _root.speedDodgeman);
}
if (_local2.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) & (_root.spriteDodgeman._x < 408)) {
_root.spriteDodgeman._x = _root.spriteDodgeman._x + (15 * _root.speedDodgeman);
}
if ((_root.signArrow._visible == true) & _root.spriteDodgeman.hitTest(_root.spriteLevel6Exit)) {
_root.musicLevel6.stop();
delete _root.musicLevel6;
_root.scoreLvl6 = _root.countScore;
gotoAndStop (223);
}
if (_root.timerCheatkeys < 14) {
_root.timerCheatkeys++;
}
if ((_local2.isDown(com.wiicade.WiiRemote.BUTTON_PLUS) & (_root.flagCheats == true)) & (_root.timerCheatkeys == 14)) {
_root.flagCheated = true;
_root.scoreLvl1 = 0;
_root.scoreLvl2 = 0;
_root.scoreLvl3 = 0;
_root.scoreLvl4 = 0;
_root.scoreLvl5 = 0;
_root.scoreLvl6 = 0;
_root.scoreLvl7 = 0;
_root.scoreLvl8 = 0;
_root.countLifeBar = 2;
musicLevel6.stop();
delete musicLevel6;
_root.timerCheatkeys = 0;
gotoAndPlay (223);
}
if ((_local2.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) & (_root.flagCheats == true)) & (_root.timerCheatkeys == 14)) {
_root.flagCheated = true;
_root.scoreLvl1 = 0;
_root.scoreLvl2 = 0;
_root.scoreLvl3 = 0;
_root.scoreLvl4 = 0;
_root.scoreLvl5 = 0;
_root.scoreLvl6 = 0;
_root.scoreLvl7 = 0;
_root.scoreLvl8 = 0;
_root.countLifeBar = 2;
musicLevel6.stop();
delete musicLevel6;
_root.timerCheatkeys = 0;
gotoAndPlay (100);
}
if (_root.bool2players == true) {
_root.spriteCatchman._x = _root._xmouse;
_root.spriteCatchman._y = _root._ymouse;
}
if (((((_root._xmouse < 0) or (_root._xmouse > 550)) or (_root._ymouse < 0)) or (_root._ymouse > 400)) and (!com.wiicade.Wii.isWii())) {
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
stopDrag();
}
if (((((_root._xmouse < 20) or (_root._xmouse > 530)) or (_root._ymouse < 20)) or (_root._ymouse > 380)) and com.wiicade.Wii.isWii()) {
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
stopDrag();
}
}
function moveObjects() {
enAlien1._y = enAlien1._y + ((10 * _root.speedFactor) * _root.grabFactoren1);
enAlien2._y = enAlien2._y + ((12 * _root.speedFactor) * _root.grabFactoren2);
enAlien3._y = enAlien3._y + ((15 * _root.speedFactor) * _root.grabFactoren3);
enAlien4._y = enAlien4._y + ((14 * _root.speedFactor) * _root.grabFactoren4);
_root.timerStar1++;
_root.timerStar2++;
if (_root.timerStar1 == 200) {
_root.flagStar1 = true;
_root.timerStar1 = 0;
_root.overlayLightningFlash.gotoAndPlay(1);
}
if (_root.timerStar2 == 200) {
_root.flagStar2 = true;
_root.timerStar2 = 0;
_root.overlayLightningFlash.gotoAndPlay(1);
}
if (_root.flagStar1 == true) {
enStar1._y = enStar1._y + 30;
enStar1._x = enStar1._x + 10;
}
if (_root.flagStar2 == true) {
enStar2._y = enStar2._y + 30;
enStar2._x = enStar2._x - 10;
}
if (_root.flagCardkeyMoving == true) {
arraypuCardkey[_root.countCurrentpucardkey]._y = arraypuCardkey[_root.countCurrentpucardkey]._y + 5;
}
if (_root.enAlien1._y >= 420) {
_root.enAlien1._y = Math.floor(Math.random() * -200) - 50;
_root.enAlien1._x = Math.floor(Math.random() * 370) + 30;
}
if (_root.enAlien2._y >= 420) {
_root.enAlien2._y = Math.floor(Math.random() * -200) - 50;
_root.enAlien2._x = Math.floor(Math.random() * 370) + 30;
}
if (_root.enAlien3._y >= 420) {
_root.enAlien3._y = Math.floor(Math.random() * -200) - 50;
_root.enAlien3._x = Math.floor(Math.random() * 370) + 30;
}
if (_root.enAlien4._y >= 420) {
_root.enAlien4._y = Math.floor(Math.random() * -200) - 50;
_root.enAlien4._x = Math.floor(Math.random() * 370) + 30;
}
if (_root.enStar1._y >= 420) {
_root.enStar1._y = -97;
_root.enStar1._x = Math.floor(Math.random() * 170) - 0;
_root.flagStar1 = false;
}
if (_root.enStar2._y >= 420) {
_root.enStar2._y = -97;
_root.enStar2._x = Math.floor(Math.random() * 258) + 170;
_root.flagStar2 = false;
}
if (_root.arraypuCardkey[_root.countCurrentpucardkey]._y >= 450) {
_root.arraypuCardkey[_root.countCurrentpucardkey]._y = Math.floor(Math.random() * -200) - 100;
_root.arraypuCardkey[_root.countCurrentpucardkey]._x = Math.floor(Math.random() * 370) + 30;
_root.flagCardkeyMoving = false;
_root.timerCardkey = 0;
_root.countScore = 0;
}
}
function progressLadder() {
if (_root.countCardkeySegment < 4) {
_root.arrayCardkey[_root.countCardkeySegment]._visible = true;
_root.arrayCardkey[_root.countCardkeySegment].gotoAndPlay(1);
_root.countCardkeySegment++;
_root.flag1upMoving = true;
}
if (_root.countCardkeySegment == 4) {
_root.soundLadderComplete.start(0, 1);
_root.signArrow._visible = true;
_root.anDoorOpen._visible = true;
_root.anDoorOpen.gotoAndPlay(1);
}
}
function checkCollisions() {
if (_root.flagInvincible == false) {
if (_root.spriteDodgeman.hitTest(_root.enAlien1)) {
_root.enemyLastHit = "enAlien";
_root.enAlien1._y = Math.floor(Math.random() * -200) - 50;
_root.enAlien1._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enAlien2)) {
_root.enemyLastHit = "enAlien";
_root.enAlien2._y = Math.floor(Math.random() * -200) - 50;
_root.enAlien2._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enAlien3)) {
_root.enemyLastHit = "enAlien";
_root.enAlien3._y = Math.floor(Math.random() * -200) - 50;
_root.enAlien3._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enAlien4)) {
_root.enemyLastHit = "enAlien";
_root.enAlien4._y = Math.floor(Math.random() * -200) - 50;
_root.enAlien4._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enStar1)) {
_root.enemyLastHit = "enStar";
_root.enStar1._y = -97;
_root.enStar1._x = Math.floor(Math.random() * 364) + 24;
_root.flagStar1 = false;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enStar2)) {
_root.enemyLastHit = "enStar";
_root.enStar2._y = -97;
_root.enStar2._x = Math.floor(Math.random() * 530) + 209;
_root.flagStar2 = false;
removeLife();
}
}
if (_root.spriteDodgeman.hitTest(_root.arraypuCardkey[_root.countCurrentpucardkey])) {
_root.arraypuCardkey[_root.countCurrentpucardkey]._y = Math.floor(Math.random() * -200) - 100;
_root.arraypuCardkey[_root.countCurrentpucardkey]._x = Math.floor(Math.random() * 400) + 30;
_root.flagCardkeyMoving = false;
if (_root.countCurrentpucardkey < 3) {
_root.countCurrentpucardkey++;
}
puColor = new Color(_root.arraypuCardkey[_root.countCurrentpucardkey]);
_root.timerCardkey = 0;
speedUp();
progressLadder();
}
}
function removeLife() {
_root.soundOuch.start(0, 1);
if (_root.countLifeBar == 3) {
_root.textLives._visible = false;
_root.lifeIcon1._visible = true;
_root.lifeIcon2._visible = true;
_root.lifeIcon3._visible = true;
}
if (_root.countLifeBar < 3) {
_root.arrayLifeBar[_root.countLifeBar]._visible = false;
}
if (_root.countLifeBar >= 4) {
_root.textLives.text = "x " + _root.countLifeBar;
}
_root.spriteDodgeman._alpha = 33;
_root.flagInvincible = true;
if (countLifeBar == -1) {
musicLevel6.stop();
delete musicLevel6;
endGame();
}
_root.countLifeBar--;
}
function generateLadderSegment() {
_root.timerCardkey++;
if ((timerCardkey == 250) & (_root.countCardkeySegment < 4)) {
_root.flagCardkeyMoving = true;
}
}
function checkInvincibility() {
if (_root.flagInvincible == true) {
_root.timerInvincible--;
if (_root.timerInvincible == 0) {
_root.timerInvincible = 36;
flagInvincible = false;
_root.spriteDodgeman._alpha = 100;
}
}
}
function speedUp() {
if (_root.countCardkeySegment < 3) {
_root.signSpeedUp._visible = true;
_root.signSpeedUp.gotoAndPlay(1);
_root.soundSpeedUp.start(0, 1);
_root.speedFactor = _root.speedFactor + 0.25;
}
}
function rotatePUColor() {
puColor.setTint(_root.countPUColor, _root.countPUColor2, _root.countPUColor3, 50);
if (_root.countPUColor == 0) {
_root.countPUColor = 255;
} else if (_root.countPUColor == 255) {
_root.countPUColor = 0;
}
if (_root.countPUColor2 == 255) {
_root.countPUColor2 = 0;
} else if (_root.countPUColor2 == 0) {
_root.countPUColor2 = 255;
}
if (_root.countPUColor3 == 50) {
_root.countPUColor3 = 150;
} else if (_root.countPUColor3 == 150) {
}
_root.countPUColor3 = 50;
}
function rotateArrowAlpha() {
if (_root.directionArrowAlpha == "up") {
_root.signArrow._alpha = _root.signArrow._alpha + 15;
if (_root.signArrow._alpha > 100) {
_root.directionArrowAlpha = "down";
}
}
if (_root.directionArrowAlpha == "down") {
_root.signArrow._alpha = _root.signArrow._alpha - 15;
if (_root.signArrow._alpha < 0) {
_root.directionArrowAlpha = "up";
}
}
}
function incrementScore() {
if (_root.countCardkeySegment < 4) {
_root.timerSecond++;
if (((_root.timerSecond == 12) or (_root.timerSecond == 24)) & (_root.countLifeBar > -1)) {
_root.timerSecond = 0;
switch (_root.countLifeBar) {
case 2 :
_root.countScore = _root.countScore + 3;
break;
case 1 :
_root.countScore = _root.countScore + 2;
break;
case 0 :
_root.countScore = _root.countScore + 1;
}
if (_root.countLifeBar > 2) {
_root.countScore = _root.countScore + 3;
}
}
if ((_root.timerSecond == 24) & (_root.countLifeBar == -1)) {
_root.timerSecond = 0;
_root.countScore++;
}
_root.textScore.text = _root.countScore;
}
}
function endGame() {
stopDrag();
_root.flagDead = true;
_root.spriteDodgeman._alpha = 100;
Mouse.show();
switch (_root.enemyLastHit) {
case "enAlien" :
_root.spriteDodgeman.gotoAndStop("death1");
break;
case "enStar" :
_root.spriteDodgeman.gotoAndPlay("death2");
}
_root.soundGameOver.start(0, 1);
_root.signGameOver._visible = true;
_root.signGameOver.gotoAndPlay(1);
_root.buttonContinue._visible = true;
_root.buttonQuit._visible = true;
}
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
_root.flagDead = false;
_root.enemyLastHit = "null";
_root.countCardkeySegment = 0;
_root.timerCardkey = 0;
_root.flagCardkeyMoving = false;
_root.countPUColor = 0;
_root.countPUColor2 = 255;
_root.countPUColor3 = 50;
_root.countArrowAlpha = 0;
_root.directionArrowAlpha = "up";
_root.timerInvincible = 36;
_root.flagInvincible = false;
_root.countScore = 0;
_root.countTotal = 0;
_root.textScore.text = _root.countScore;
_root.timerSecond = 0;
_root.speedFactor = 0.75;
_root.speedDodgeman = 1;
_root.levelNumber = "level6";
_root.timerStar1 = 100;
_root.timerStar2 = 0;
_root.flagStar1 = false;
_root.flagStar2 = false;
_root.countCurrentpucardkey = 0;
if (_root.flagMusicOn == true) {
musicLevel6 = new Sound();
musicLevel6.attachSound("musicLevel6");
musicLevel6.start(0, 1);
}
if (_root.flagSoundOn == true) {
soundLevelSix = new Sound();
soundLevelSix.attachSound("soundLevelSix");
soundOuch = new Sound();
soundOuch.attachSound("soundOuch");
soundGameOver = new Sound();
soundGameOver.attachSound("soundGameOver");
soundSpeedUp = new Sound();
soundSpeedUp.attachSound("soundSpeedUp");
soundLadderComplete = new Sound();
soundLadderComplete.attachSound("soundLadderComplete");
_root.soundLevelSix.start(0, 1);
}
arrayCardkey = [_root.cardkey1, _root.cardkey2, _root.cardkey3, _root.cardkey4];
arraypuCardkey = [_root.pucardkey1, _root.pucardkey2, _root.pucardkey3, _root.pucardkey4];
arrayLifeBar = [_root.lifeIcon1, _root.lifeIcon2, _root.lifeIcon3];
i = 0;
while (i < 5) {
currentCardkey = _root.arrayCardkey[i];
currentCardkey._visible = false;
i++;
}
_root.anDoorOpen._visible = false;
_root.signArrow._visible = false;
_root.signSpeedUp._visible = false;
_root.signGameOver._visible = false;
_root.buttonContinue._visible = false;
_root.buttonQuit._visible = false;
_root.textLives._visible = false;
_root.spriteCatchman._visible = false;
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
_root.spriteCatchman._visible = true;
}
Mouse.hide();
if (_root.countLifeBar < 3) {
var i = 0;
while (i < 3) {
if (i > _root.countLifeBar) {
_root.arrayLifeBar[i]._visible = false;
}
i++;
}
} else if (_root.countLifeBar >= 3) {
_root.lifeIcon1.gotoAndPlay(1);
_root.lifeIcon2._visible = false;
_root.lifeIcon3._visible = false;
_root.textLives._visible = true;
_root.textLives.text = "x " + (_root.countLifeBar + 1);
}
_root.flag1upMoving = false;
_root.countTotal = ((((((_root.scoreLvl1 + _root.scoreLvl2) + _root.scoreLvl3) + _root.scoreLvl4) + _root.scoreLvl5) + _root.scoreLvl6) + _root.scoreLvl7) + _root.scoreLvl8;
_root.textTotal.text = _root.countTotal;
Color.prototype.setTint = function (r, g, b, amount) {
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = 100 - amount));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
puColor = new Color(_root.arraypuCardkey[_root.countCurrentpucardkey]);
onEnterFrame = function () {
if (_root.flagDead == false) {
if (_root.flagPause == false) {
checkCollisions();
handleInput();
moveObjects();
generateLadderSegment();
rotatePUColor();
rotateArrowAlpha();
checkInvincibility();
incrementScore();
generate1up();
}
checkPause();
}
};
stop();
Instance of Symbol 785 MovieClip "spriteSpazz" in Frame 222
onClipEvent (load) {
_root.timerSpazz = 0;
}
onClipEvent (enterFrame) {
if (_root.flagPause == false) {
_root.timerSpazz++;
if (_root.timerSpazz == 360) {
_root.timerSpazz = 0;
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 853 MovieClip "enAlien1" in Frame 222
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren1 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren1 = 1;
stopDrag();
}
};
}
Instance of Symbol 853 MovieClip "enAlien3" in Frame 222
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren3 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren3 = 1;
stopDrag();
}
};
}
Instance of Symbol 853 MovieClip "enAlien2" in Frame 222
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren2 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren2 = 1;
stopDrag();
}
};
}
Instance of Symbol 339 MovieClip "pu1up" in Frame 222
onClipEvent (enterFrame) {
if (this.hitTest(_root.spriteDodgeman)) {
if (_root.countLifeBar < 8) {
_root.sound1up.start(0, 1);
_root.countLifeBar++;
if (_root.countLifeBar < 3) {
_root.arrayLifeBar[_root.countLifeBar]._visible = true;
_root.arrayLifeBar[_root.countLifeBar].gotoAndPlay(1);
} else if (_root.countLifeBar >= 3) {
_root.textLives._visible = true;
_root.textLives.text = "x " + (_root.countLifeBar + 1);
_root.lifeIcon1.gotoAndPlay(1);
_root.lifeIcon2._visible = false;
_root.lifeIcon3._visible = false;
}
}
this._y = Math.floor(Math.random() * -200) - 100;
this._x = Math.floor(Math.random() * 370) + 30;
_root.flag1upMoving = false;
}
if (this._y > 450) {
this._y = Math.floor(Math.random() * -200) - 100;
this._x = Math.floor(Math.random() * 370) + 30;
_root.flag1upMoving = false;
}
}
Instance of Symbol 311 MovieClip "spriteCatchman" in Frame 222
onClipEvent (mouseDown) {
if ((_root.flagDead == false) & (_root.flagPause == false)) {
this.gotoAndPlay(2);
}
}
onClipEvent (mouseUp) {
if ((_root.flagDead == false) & (_root.flagPause == false)) {
this.gotoAndPlay(5);
}
}
Frame 223
for (var o in _root) {
try {
_root[o].removeMovieClip();
} catch(e) {
}
}
delete handleInput;
delete moveObjects;
delete checkCollisions;
delete generateLadderSegment;
delete rotatePUColor;
delete rotateArrowAlpha;
delete checkInvincibility;
delete incrementScore;
delete speedUp;
delete endGame;
delete _root.soundLevelOne;
delete _root.soundLevelTwo;
delete _root.soundLevelThree;
delete _root.soundLevelFour;
delete _root.soundLevelFive;
delete _root.soundLevelSix;
delete _root.soundLevelSeven;
delete _root.soundLevelEight;
delete _root.soundOuch;
delete _root.soundSpeedUp;
delete _root.soundLadderComplete;
delete _root.soundGameOver;
delete _root.soundGong;
try {
new LocalConnection().connect("foo");
new LocalConnection().connect("foo");
} catch(error:Error) {
}
gotoAndStop (224);
Frame 224
function handleInput() {
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var _local2 = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var _local2 = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var _local2 = com.wiicade.Wii.getRemote(0);
}
if (_local2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) & (_root.spriteDodgeman._x > 30)) {
_root.spriteDodgeman._x = _root.spriteDodgeman._x - (15 * _root.speedDodgeman);
}
if (_local2.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) & (_root.spriteDodgeman._x < 520)) {
_root.spriteDodgeman._x = _root.spriteDodgeman._x + (15 * _root.speedDodgeman);
}
if ((_local2.isDown(com.wiicade.WiiRemote.BUTTON_UP) & (_root.signArrow._visible == true)) & _root.spriteDodgeman.hitTest(_root.signArrow)) {
_root.scoreLvl7 = _root.countScore;
gotoAndStop (225);
}
if (_root.timerCheatkeys < 14) {
_root.timerCheatkeys++;
}
if ((_local2.isDown(com.wiicade.WiiRemote.BUTTON_PLUS) & (_root.flagCheats == true)) & (_root.timerCheatkeys == 14)) {
_root.flagCheated = true;
_root.scoreLvl1 = 0;
_root.scoreLvl2 = 0;
_root.scoreLvl3 = 0;
_root.scoreLvl4 = 0;
_root.scoreLvl5 = 0;
_root.scoreLvl6 = 0;
_root.scoreLvl7 = 0;
_root.scoreLvl8 = 0;
_root.countLifeBar = 2;
musicLevel7.stop();
delete musicLevel7;
_root.timerCheatkeys = 0;
gotoAndPlay (226);
}
if ((_local2.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) & (_root.flagCheats == true)) & (_root.timerCheatkeys == 14)) {
_root.flagCheated = true;
_root.scoreLvl1 = 0;
_root.scoreLvl2 = 0;
_root.scoreLvl3 = 0;
_root.scoreLvl4 = 0;
_root.scoreLvl5 = 0;
_root.scoreLvl6 = 0;
_root.scoreLvl7 = 0;
_root.scoreLvl8 = 0;
_root.countLifeBar = 2;
musicLevel7.stop();
delete musicLevel7;
_root.timerCheatkeys = 0;
gotoAndPlay (221);
}
if (_root.bool2players == true) {
_root.spriteCatchman._x = _root._xmouse;
_root.spriteCatchman._y = _root._ymouse;
}
if (((((_root._xmouse < 0) or (_root._xmouse > 550)) or (_root._ymouse < 0)) or (_root._ymouse > 400)) and (!com.wiicade.Wii.isWii())) {
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
_root.grabFactoren6 = 1;
stopDrag();
}
if (((((_root._xmouse < 20) or (_root._xmouse > 530)) or (_root._ymouse < 20)) or (_root._ymouse > 380)) and com.wiicade.Wii.isWii()) {
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
_root.grabFactoren6 = 1;
stopDrag();
}
}
function moveObjects() {
enGirder1._y = enGirder1._y + ((10 * _root.speedFactor) * _root.grabFactoren1);
enGirder2._y = enGirder2._y + ((12 * _root.speedFactor) * _root.grabFactoren2);
enRobot1._y = enRobot1._y + ((15 * _root.speedFactor) * _root.grabFactoren3);
enRobot2._y = enRobot2._y + ((14 * _root.speedFactor) * _root.grabFactoren4);
enLaserSword._y = enLaserSword._y + ((6 * _root.speedFactor) * _root.grabFactoren5);
if (_root.flagLadderMoving == true) {
puLadder1._y = puLadder1._y + 5;
}
if (_root.enGirder1._y >= 550) {
_root.enGirder1._y = Math.floor(Math.random() * -200) - 50;
_root.enGirder1._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.enGirder2._y >= 550) {
_root.enGirder2._y = Math.floor(Math.random() * -200) - 50;
_root.enGirder2._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.enRobot1._y >= 550) {
_root.enRobot1._y = Math.floor(Math.random() * -200) - 50;
_root.enRobot1._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.enRobot2._y >= 550) {
_root.enRobot2._y = Math.floor(Math.random() * -200) - 50;
_root.enRobot2._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.enLaserSword._y >= 550) {
_root.enLaserSword._y = Math.floor(Math.random() * -200) - 50;
_root.enLaserSword._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.enTrafficLight2._y >= 550) {
_root.enTrafficLight2._y = Math.floor(Math.random() * -200) - 50;
_root.enTrafficLight2._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.puLadder1._y >= 450) {
_root.puLadder1._y = Math.floor(Math.random() * -200) - 100;
_root.puLadder1._x = Math.floor(Math.random() * 490) + 30;
_root.flagLadderMoving = false;
_root.timerLadder = 0;
}
}
function progressLadder() {
if (_root.countLadderSegment < 4) {
_root.arrayLadder[_root.countLadderSegment]._visible = true;
_root.countLadderSegment++;
}
if (_root.countLadderSegment == 2) {
_root.flag1upMoving = true;
}
if (_root.countLadderSegment == 3) {
_root.overlayRain._visible = true;
}
if (_root.countLadderSegment == 4) {
_root.soundLadderComplete.start(0, 1);
_root.signArrow._visible = true;
}
}
function checkCollisions() {
if (_root.flagInvincible == false) {
if (_root.spriteDodgeman.hitTest(_root.enGirder1)) {
_root.enemyLastHit = "enGirder";
_root.enGirder1._y = Math.floor(Math.random() * -200) - 50;
_root.enGirder1._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enGirder2)) {
_root.enemyLastHit = "enGirder";
_root.enGirder2._y = Math.floor(Math.random() * -200) - 50;
_root.enGirder2._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enRobot1)) {
_root.enemyLastHit = "enRobot";
_root.enRobot1._y = Math.floor(Math.random() * -200) - 50;
_root.enRobot1._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enRobot2)) {
_root.enemyLastHit = "enRobot";
_root.enRobot2._y = Math.floor(Math.random() * -200) - 50;
_root.enRobot2._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enLaserSword)) {
_root.enemyLastHit = "enLasersword";
_root.enLaserSword._y = Math.floor(Math.random() * -200) - 50;
_root.enLaserSword._x = Math.floor(Math.random() * 400) + 30;
removeLife();
}
}
if (_root.spriteDodgeman.hitTest(_root.puLadder1)) {
_root.puLadder1._y = Math.floor(Math.random() * -200) - 100;
_root.puLadder1._x = Math.floor(Math.random() * 400) + 30;
_root.flagLadderMoving = false;
_root.timerLadder = 0;
speedUp();
progressLadder();
}
}
function removeLife() {
_root.soundOuch.start(0, 1);
if (_root.countLifeBar == 3) {
_root.textLives._visible = false;
_root.lifeIcon1._visible = true;
_root.lifeIcon2._visible = true;
_root.lifeIcon3._visible = true;
}
if (_root.countLifeBar < 3) {
_root.arrayLifeBar[_root.countLifeBar]._visible = false;
}
if (_root.countLifeBar >= 4) {
_root.textLives.text = "x " + _root.countLifeBar;
}
_root.spriteDodgeman._alpha = 33;
_root.flagInvincible = true;
if (countLifeBar == -1) {
musicLevel7.stop();
delete musicLevel7;
endGame();
}
_root.countLifeBar--;
}
function generateLadderSegment() {
_root.timerLadder++;
if ((timerLadder == 180) & (_root.countLadderSegment < 4)) {
_root.flagLadderMoving = true;
}
}
function checkInvincibility() {
if (_root.flagInvincible == true) {
_root.timerInvincible--;
if (_root.timerInvincible == 0) {
_root.timerInvincible = 36;
flagInvincible = false;
_root.spriteDodgeman._alpha = 100;
}
}
}
function speedUp() {
if (_root.countLadderSegment < 3) {
_root.signSpeedUp._visible = true;
_root.signSpeedUp.gotoAndPlay(1);
_root.soundSpeedUp.start(0, 1);
_root.speedFactor = _root.speedFactor + 0.25;
}
}
function rotatePUColor() {
puColor.setTint(_root.countPUColor, _root.countPUColor2, _root.countPUColor3, 50);
if (_root.countPUColor == 0) {
_root.countPUColor = 255;
} else if (_root.countPUColor == 255) {
_root.countPUColor = 0;
}
if (_root.countPUColor2 == 255) {
_root.countPUColor2 = 0;
} else if (_root.countPUColor2 == 0) {
_root.countPUColor2 = 255;
}
if (_root.countPUColor3 == 50) {
_root.countPUColor3 = 150;
} else if (_root.countPUColor3 == 150) {
}
_root.countPUColor3 = 50;
}
function rotateArrowAlpha() {
if (_root.directionArrowAlpha == "up") {
_root.signArrow._alpha = _root.signArrow._alpha + 15;
if (_root.signArrow._alpha > 100) {
_root.directionArrowAlpha = "down";
}
}
if (_root.directionArrowAlpha == "down") {
_root.signArrow._alpha = _root.signArrow._alpha - 15;
if (_root.signArrow._alpha < 0) {
_root.directionArrowAlpha = "up";
}
}
}
function incrementScore() {
if ((_root.countLadderSegment < 4) and (_root.signArrow._visible == false)) {
_root.timerSecond++;
if (((_root.timerSecond == 12) or (_root.timerSecond == 24)) & (_root.countLifeBar > -1)) {
_root.timerSecond = 0;
switch (_root.countLifeBar) {
case 2 :
_root.countScore = _root.countScore + 3;
break;
case 1 :
_root.countScore = _root.countScore + 2;
break;
case 0 :
_root.countScore = _root.countScore + 1;
}
if (_root.countLifeBar > 2) {
_root.countScore = _root.countScore + 3;
}
}
if ((_root.timerSecond == 24) & (_root.countLifeBar == -1)) {
_root.timerSecond = 0;
_root.countScore++;
}
_root.textScore.text = _root.countScore;
}
}
function decrementTime() {
if (_root.signArrow._visible == false) {
_root.timerTime++;
if (_root.timerTime == 12) {
_root.timerTime = 0;
_root.countTime--;
_root.textTime.text = _root.countTime;
_root.bgElevator._y++;
_root.bgElevatorDown._y++;
}
if ((((_root.countTime == 112) or (_root.countTime == 74)) or (_root.countTime == 36)) and (_root.timerTime == 0)) {
_root.flag1upMoving = true;
speedUp();
}
if ((_root.countTime == 0) and (_root.timerTime == 0)) {
_root.soundLadderComplete.start(0, 1);
_root.signArrow._visible = true;
}
}
}
function endGame() {
stopDrag();
_root.flagDead = true;
_root.spriteDodgeman._alpha = 100;
Mouse.show();
switch (_root.enemyLastHit) {
case "enGirder" :
_root.spriteDodgeman.gotoAndStop("death11");
break;
case "enRobot" :
_root.spriteDodgeman.gotoAndStop("death12");
break;
case "enLasersword" :
_root.spriteDodgeman.gotoAndPlay("death10");
}
_root.soundGameOver.start(0, 1);
_root.signGameOver._visible = true;
_root.signGameOver.gotoAndPlay(1);
_root.buttonContinue._visible = true;
_root.buttonQuit._visible = true;
}
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
_root.grabFactoren6 = 1;
_root.flagDead = false;
_root.enemyLastHit = "null";
_root.countLadderSegment = 0;
_root.timerLadder = 0;
_root.flagLadderMoving = false;
_root.countPUColor = 0;
_root.countPUColor2 = 255;
_root.countPUColor3 = 50;
_root.countArrowAlpha = 0;
_root.directionArrowAlpha = "up";
_root.timerInvincible = 36;
_root.flagInvincible = false;
_root.countScore = 0;
_root.countTotal = 0;
_root.textScore.text = _root.countScore;
_root.timerSecond = 0;
_root.speedFactor = 1;
_root.speedDodgeman = 1;
_root.levelNumber = "level7";
_root.countTime = 150;
_root.timerTime = 0;
_root.DMx = 200;
_root.DMy = 200;
if (_root.flagMusicOn == true) {
musicLevel7 = new Sound();
musicLevel7.attachSound("musicLevel7");
musicLevel7.start(0, 1);
}
if (_root.flagSoundOn == true) {
soundLevelSeven = new Sound();
soundLevelSeven.attachSound("soundLevelSeven");
soundOuch = new Sound();
soundOuch.attachSound("soundOuch");
soundGameOver = new Sound();
soundGameOver.attachSound("soundGameOver");
soundSpeedUp = new Sound();
soundSpeedUp.attachSound("soundSpeedUp");
soundLadderComplete = new Sound();
soundLadderComplete.attachSound("soundLadderComplete");
_root.soundLevelSeven.start(0, 1);
}
arrayLadder = [_root.ladder1, _root.ladder2, _root.ladder3, _root.ladder4];
arrayLifeBar = [_root.lifeIcon1, _root.lifeIcon2, _root.lifeIcon3];
i = 0;
while (i < 5) {
currentLadder = _root.arrayLadder[i];
currentLadder._visible = false;
i++;
}
_root.signArrow._visible = false;
_root.signSpeedUp._visible = false;
_root.signGameOver._visible = false;
_root.buttonContinue._visible = false;
_root.buttonQuit._visible = false;
_root.overlayRain._visible = false;
_root.textLives._visible = false;
_root.spriteCatchman._visible = false;
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
_root.spriteCatchman._visible = true;
}
Mouse.hide();
if (_root.countLifeBar < 3) {
var i = 0;
while (i < 3) {
if (i > _root.countLifeBar) {
_root.arrayLifeBar[i]._visible = false;
}
i++;
}
} else if (_root.countLifeBar >= 3) {
_root.lifeIcon1.gotoAndPlay(1);
_root.lifeIcon2._visible = false;
_root.lifeIcon3._visible = false;
_root.textLives._visible = true;
_root.textLives.text = "x " + (_root.countLifeBar + 1);
}
_root.flag1upMoving = false;
_root.countTotal = ((((((_root.scoreLvl1 + _root.scoreLvl2) + _root.scoreLvl3) + _root.scoreLvl4) + _root.scoreLvl5) + _root.scoreLvl6) + _root.scoreLvl7) + _root.scoreLvl8;
_root.textTotal.text = _root.countTotal;
Color.prototype.setTint = function (r, g, b, amount) {
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = 100 - amount));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
puColor = new Color(_root.puLadder1);
onEnterFrame = function () {
if (_root.flagDead == false) {
if (_root.flagPause == false) {
checkCollisions();
handleInput();
moveObjects();
generateLadderSegment();
rotatePUColor();
rotateArrowAlpha();
checkInvincibility();
incrementScore();
decrementTime();
generate1up();
}
checkPause();
}
};
stop();
Instance of Symbol 339 MovieClip "pu1up" in Frame 224
onClipEvent (enterFrame) {
if (this.hitTest(_root.spriteDodgeman)) {
if (_root.countLifeBar < 8) {
_root.sound1up.start(0, 1);
_root.countLifeBar++;
if (_root.countLifeBar < 3) {
_root.arrayLifeBar[_root.countLifeBar]._visible = true;
_root.arrayLifeBar[_root.countLifeBar].gotoAndPlay(1);
} else if (_root.countLifeBar >= 3) {
_root.textLives._visible = true;
_root.textLives.text = "x " + (_root.countLifeBar + 1);
_root.lifeIcon1.gotoAndPlay(1);
_root.lifeIcon2._visible = false;
_root.lifeIcon3._visible = false;
}
}
this._y = Math.floor(Math.random() * -200) - 100;
this._x = Math.floor(Math.random() * 490) + 30;
_root.flag1upMoving = false;
}
if (this._y > 450) {
this._y = Math.floor(Math.random() * -200) - 100;
this._x = Math.floor(Math.random() * 490) + 30;
_root.flag1upMoving = false;
}
}
Instance of Symbol 949 MovieClip "enGirder1" in Frame 224
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren1 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren1 = 1;
stopDrag();
}
};
}
Instance of Symbol 949 MovieClip "enGirder2" in Frame 224
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren2 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren2 = 1;
stopDrag();
}
};
}
Instance of Symbol 952 MovieClip "enRobot1" in Frame 224
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren3 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren3 = 1;
stopDrag();
}
};
}
Instance of Symbol 952 MovieClip "enRobot2" in Frame 224
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren4 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren4 = 1;
stopDrag();
}
};
}
Instance of Symbol 966 MovieClip "enLaserSword" in Frame 224
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren5 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren5 = 1;
stopDrag();
}
};
}
Instance of Symbol 311 MovieClip "spriteCatchman" in Frame 224
onClipEvent (mouseDown) {
if ((_root.flagDead == false) & (_root.flagPause == false)) {
this.gotoAndPlay(2);
}
}
onClipEvent (mouseUp) {
if ((_root.flagDead == false) & (_root.flagPause == false)) {
this.gotoAndPlay(5);
}
}
Frame 225
_root.flagElevatorUp = false;
onEnterFrame = function () {
if (_root.flagElevatorUp == false) {
_root.bgElevator._y = _root.bgElevator._y - 10;
_root.bgElevatorUp._y = _root.bgElevatorUp._y - 10;
_root.spriteDodgeman._y = _root.spriteDodgeman._y - 10;
}
if (_root.spriteDodgeman._y < -120) {
_root.spriteDodgeman._y = 50;
_root.flagElevatorUp = true;
_root.musicLevel7.stop();
delete _root.musicLevel7;
gotoAndStop (226);
}
};
stop();
Frame 226
for (var o in _root) {
try {
_root[o].removeMovieClip();
} catch(e) {
}
}
delete handleInput;
delete moveObjects;
delete checkCollisions;
delete generateLadderSegment;
delete rotatePUColor;
delete rotateArrowAlpha;
delete checkInvincibility;
delete incrementScore;
delete speedUp;
delete endGame;
delete _root.soundLevelOne;
delete _root.soundLevelTwo;
delete _root.soundLevelThree;
delete _root.soundLevelFour;
delete _root.soundLevelFive;
delete _root.soundLevelSix;
delete _root.soundLevelSeven;
delete _root.soundLevelEight;
delete _root.soundOuch;
delete _root.soundSpeedUp;
delete _root.soundLadderComplete;
delete _root.soundGameOver;
delete _root.soundGong;
try {
new LocalConnection().connect("foo");
new LocalConnection().connect("foo");
} catch(error:Error) {
}
gotoAndStop (227);
Frame 227
function handleInput() {
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var _local2 = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var _local2 = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var _local2 = com.wiicade.Wii.getRemote(0);
}
if (_local2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) & (_root.spriteDodgeman._x > 30)) {
_root.spriteDodgeman._x = _root.spriteDodgeman._x - (15 * _root.speedDodgeman);
}
if (_local2.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) & (_root.spriteDodgeman._x < 520)) {
_root.spriteDodgeman._x = _root.spriteDodgeman._x + (15 * _root.speedDodgeman);
}
if (_root.timerCheatkeys < 14) {
_root.timerCheatkeys++;
}
if ((_local2.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) & (_root.flagCheats == true)) & (_root.timerCheatkeys == 14)) {
_root.flagCheated = true;
_root.scoreLvl1 = 0;
_root.scoreLvl2 = 0;
_root.scoreLvl3 = 0;
_root.scoreLvl4 = 0;
_root.scoreLvl5 = 0;
_root.scoreLvl6 = 0;
_root.scoreLvl7 = 0;
_root.scoreLvl8 = 0;
_root.countLifeBar = 2;
musicLevel8.stop();
delete musicLevel8;
_root.timerCheatkeys = 0;
gotoAndPlay (223);
}
if (_root.bool2players == true) {
_root.spriteCatchman._x = _root._xmouse;
_root.spriteCatchman._y = _root._ymouse;
}
if (((((_root._xmouse < 0) or (_root._xmouse > 550)) or (_root._ymouse < 0)) or (_root._ymouse > 400)) and (!com.wiicade.Wii.isWii())) {
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
stopDrag();
}
if (((((_root._xmouse < 20) or (_root._xmouse > 530)) or (_root._ymouse < 20)) or (_root._ymouse > 380)) and com.wiicade.Wii.isWii()) {
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
stopDrag();
}
}
function moveObjects() {
if (_root.flagGroup1Moving == true) {
enCartridge1._y = enCartridge1._y + ((20 * _root.speedFactor) * _root.grabFactoren1);
enFishBone2._y = enFishBone2._y + ((20 * _root.speedFactor) * _root.grabFactoren2);
enBomb1._y = enBomb1._y + ((20 * _root.speedFactor) * _root.grabFactoren3);
enSoupCan1._y = enSoupCan1._y + ((20 * _root.speedFactor) * _root.grabFactoren4);
enRagdoll1._y = enRagdoll1._y + ((20 * _root.speedFactor) * _root.grabFactoren5);
}
if (_root.flagGroup2Moving == true) {
enCartridge2._y = enCartridge2._y + ((20 * _root.speedFactor) * _root.grabFactoren1);
enRagdoll2._y = enRagdoll2._y + ((20 * _root.speedFactor) * _root.grabFactoren2);
enWaterBalloonY._y = enWaterBalloonY._y + ((20 * _root.speedFactor) * _root.grabFactoren3);
enTrafficLight1._y = enTrafficLight1._y + ((20 * _root.speedFactor) * _root.grabFactoren4);
enBomb2._y = enBomb2._y + ((20 * _root.speedFactor) * _root.grabFactoren5);
}
if (_root.flagGroup3Moving == true) {
enRagdoll3._y = enRagdoll3._y + ((20 * _root.speedFactor) * _root.grabFactoren1);
enCartridge3._y = enCartridge3._y + ((20 * _root.speedFactor) * _root.grabFactoren2);
enGirder1._y = enGirder1._y + ((20 * _root.speedFactor) * _root.grabFactoren3);
enBomb3._y = enBomb3._y + ((20 * _root.speedFactor) * _root.grabFactoren4);
enRobot2._y = enRobot2._y + ((20 * _root.speedFactor) * _root.grabFactoren5);
}
if (_root.flagLadderMoving == true) {
puLadder1._y = puLadder1._y + 5;
}
if (((((((_root.enCartridge1._y >= 545) or (_root.enFishBone2._y >= 545)) or (_root.enBomb2._y >= 545)) or (_root.enTrafficLight1._y >= 545)) or (_root.enRagdoll3._y >= 545)) or (_root.enCartridge3._y >= 545)) and (((((_root.grabFactoren1 == 0) or (_root.grabFactoren2 == 0)) or (_root.grabFactoren3 == 0)) or (_root.grabFactoren4 == 0)) or (_root.grabFactoren5 == 0))) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.flagGrabbed = false;
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
stopDrag();
}
if ((_root.enCartridge1._y >= 550) or (_root.enFishBone2._y >= 550)) {
var _local2 = 0;
while (_local2 < 6) {
_root.arrayGroup1[_local2]._visible = true;
_local2++;
}
_root.enCartridge1._y = Math.floor(Math.random() * -150) - 280;
_root.enCartridge1._x = Math.floor(Math.random() * 490) + 30;
_root.enFishBone2._y = Math.floor(Math.random() * -150) - 280;
_root.enFishBone2._x = Math.floor(Math.random() * 490) + 30;
_root.enBomb1._y = Math.floor(Math.random() * -150) - 280;
_root.enBomb1._x = Math.floor(Math.random() * 490) + 30;
_root.enSoupCan1._y = Math.floor(Math.random() * -150) - 280;
_root.enSoupCan1._x = Math.floor(Math.random() * 490) + 30;
_root.enRagdoll1._y = Math.floor(Math.random() * -150) - 280;
_root.enRagdoll1._x = Math.floor(Math.random() * 490) + 30;
_root.flagGroup1Moving = false;
}
if ((_root.enBomb2._y >= 550) or (_root.enTrafficLight1._y >= 550)) {
var _local2 = 0;
while (_local2 < 6) {
_root.arrayGroup2[_local2]._visible = true;
_local2++;
}
_root.enCartridge2._y = Math.floor(Math.random() * -150) - 280;
_root.enCartridge2._x = Math.floor(Math.random() * 490) + 30;
_root.enRagdoll2._y = Math.floor(Math.random() * -150) - 280;
_root.enRagdoll2._x = Math.floor(Math.random() * 490) + 30;
_root.enWaterBalloonY._y = Math.floor(Math.random() * -150) - 280;
_root.enWaterBalloonY._x = Math.floor(Math.random() * 490) + 30;
_root.enTrafficLight1._y = Math.floor(Math.random() * -150) - 280;
_root.enTrafficLight1._x = Math.floor(Math.random() * 490) + 30;
_root.enBomb2._y = Math.floor(Math.random() * -150) - 280;
_root.enBomb2._x = Math.floor(Math.random() * 490) + 30;
_root.flagGroup2Moving = false;
}
if ((_root.enRagdoll3._y >= 550) or (_root.enCartridge3._y >= 550)) {
var _local2 = 0;
while (_local2 < 6) {
_root.arrayGroup3[_local2]._visible = true;
_local2++;
}
_root.enRagdoll3._y = Math.floor(Math.random() * -150) - 280;
_root.enRagdoll3._x = Math.floor(Math.random() * 490) + 30;
_root.enCartridge3._y = Math.floor(Math.random() * -150) - 280;
_root.enCartridge3._x = Math.floor(Math.random() * 490) + 30;
_root.enGirder1._y = Math.floor(Math.random() * -150) - 280;
_root.enGirder1._x = Math.floor(Math.random() * 490) + 30;
_root.enBomb3._y = Math.floor(Math.random() * -150) - 280;
_root.enBomb3._x = Math.floor(Math.random() * 490) + 30;
_root.enRobot2._y = Math.floor(Math.random() * -150) - 280;
_root.enRobot2._x = Math.floor(Math.random() * 490) + 30;
_root.flagGroup3Moving = false;
}
if (_root.puLadder1._y >= 450) {
_root.puLadder1._y = Math.floor(Math.random() * -150) - 100;
_root.puLadder1._x = Math.floor(Math.random() * 490) + 30;
_root.flagLadderMoving = false;
_root.timerLadder = 0;
}
}
function progressLadder() {
if (_root.countLadderSegment < 4) {
_root.arrayLadder[_root.countLadderSegment]._visible = true;
_root.countLadderSegment++;
}
if (_root.countLadderSegment == 4) {
if (_root.flagSoundOn == true) {
_root.soundLadderComplete.start(0, 1);
}
_root.signArrow._visible = true;
}
}
function checkCollisions() {
if (_root.flagInvincible == false) {
if (_root.spriteDodgeman.hitTest(_root.enCartridge1)) {
_root.enCartridge1._visible = false;
_root.enemyLastHit = "enCartridge";
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enFishBone2)) {
_root.enFishBone2._visible = false;
_root.enemyLastHit = "enFishBone";
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enBomb1)) {
_root.enBomb1._visible = false;
_root.enemyLastHit = "enBomb";
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enSoupCan1)) {
_root.enSoupCan1._visible = false;
_root.enemyLastHit = "enSoupCan";
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enRagdoll1)) {
_root.enRagdoll1._visible = false;
_root.enemyLastHit = "enRagdoll";
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enCartridge2)) {
_root.enCartridge2._visible = false;
_root.enemyLastHit = "enCartridge";
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enRagdoll2)) {
_root.enRagdoll2._visible = false;
_root.enemyLastHit = "enRagdoll";
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enWaterBalloonY)) {
_root.enWaterBalloonY._visible = false;
_root.enemyLastHit = "enWaterBalloonY";
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enTrafficLight1)) {
_root.enTrafficLight1._visible = false;
_root.enemyLastHit = "enTrafficLight";
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enBomb2)) {
_root.enBomb2._visible = false;
_root.enemyLastHit = "enBomb";
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enRagdoll3)) {
_root.enRagdoll3._visible = false;
_root.enemyLastHit = "enRagdoll";
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enCartridge3)) {
_root.enCartridge3._visible = false;
_root.enemyLastHit = "enCartridge";
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enGirder1)) {
_root.enGirder1._visible = false;
_root.enemyLastHit = "enGirder";
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enBomb3)) {
_root.enBomb3._visible = false;
_root.enemyLastHit = "enBomb";
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enRobot2)) {
_root.enRobot2._visible = false;
_root.enemyLastHit = "enRobot";
removeLife();
}
}
if (_root.spriteDodgeman.hitTest(_root.puLadder1)) {
_root.puLadder1._y = Math.floor(Math.random() * -200) - 100;
_root.puLadder1._x = Math.floor(Math.random() * 400) + 30;
_root.flagLadderMoving = false;
_root.timerLadder = 0;
speedUp();
progressLadder();
}
}
function removeLife() {
_root.soundOuch.start(0, 1);
if (_root.countLifeBar == 3) {
_root.textLives._visible = false;
_root.lifeIcon1._visible = true;
_root.lifeIcon2._visible = true;
_root.lifeIcon3._visible = true;
}
if (_root.countLifeBar < 3) {
_root.arrayLifeBar[_root.countLifeBar]._visible = false;
}
if (_root.countLifeBar >= 4) {
_root.textLives.text = "x " + _root.countLifeBar;
}
_root.spriteDodgeman._alpha = 33;
_root.flagInvincible = true;
if (countLifeBar == -1) {
musicLevel8.stop();
delete musicLevel8;
endGame();
}
_root.countLifeBar--;
}
function generateLadderSegment() {
_root.timerLadder++;
if ((timerLadder == 120) & (_root.countLadderSegment < 4)) {
_root.flagLadderMoving = true;
}
}
function checkInvincibility() {
if (_root.flagInvincible == true) {
_root.timerInvincible--;
if (_root.timerInvincible == 0) {
_root.timerInvincible = 36;
flagInvincible = false;
_root.spriteDodgeman._alpha = 100;
}
}
}
function speedUp() {
if (_root.countLadderSegment < 3) {
_root.signSpeedUp._visible = true;
_root.signSpeedUp.gotoAndPlay(1);
_root.soundSpeedUp.start(0, 1);
_root.speedFactor = _root.speedFactor + 0.25;
_root.speedDodgeman = _root.speedDodgeman + 0.25;
}
}
function rotatePUColor() {
puColor.setTint(_root.countPUColor, _root.countPUColor2, _root.countPUColor3, 50);
if (_root.countPUColor == 0) {
_root.countPUColor = 255;
} else if (_root.countPUColor == 255) {
_root.countPUColor = 0;
}
if (_root.countPUColor2 == 255) {
_root.countPUColor2 = 0;
} else if (_root.countPUColor2 == 0) {
_root.countPUColor2 = 255;
}
if (_root.countPUColor3 == 50) {
_root.countPUColor3 = 150;
} else if (_root.countPUColor3 == 150) {
}
_root.countPUColor3 = 50;
}
function rotateArrowAlpha() {
if (_root.directionArrowAlpha == "up") {
_root.signArrow._alpha = _root.signArrow._alpha + 15;
if (_root.signArrow._alpha > 100) {
_root.directionArrowAlpha = "down";
}
}
if (_root.directionArrowAlpha == "down") {
_root.signArrow._alpha = _root.signArrow._alpha - 15;
if (_root.signArrow._alpha < 0) {
_root.directionArrowAlpha = "up";
}
}
}
function incrementScore() {
if (_root.countLadderSegment < 4) {
_root.timerSecond++;
if (((_root.timerSecond == 12) or (_root.timerSecond == 24)) & (_root.countLifeBar > -1)) {
_root.timerSecond = 0;
switch (_root.countLifeBar) {
case 2 :
_root.countScore = _root.countScore + 3;
break;
case 1 :
_root.countScore = _root.countScore + 2;
break;
case 0 :
_root.countScore = _root.countScore + 1;
}
if (_root.countLifeBar > 2) {
_root.countScore = _root.countScore + 3;
}
}
if ((_root.timerSecond == 24) & (_root.countLifeBar == -1)) {
_root.timerSecond = 0;
_root.countScore++;
}
_root.textScore.text = _root.countScore;
}
}
function endGame() {
stopDrag();
_root.flagDead = true;
_root.spriteDodgeman._alpha = 100;
Mouse.show();
switch (_root.enemyLastHit) {
case "enFishBone" :
_root.spriteDodgeman.gotoAndStop("death1");
break;
case "enSoupCan" :
_root.spriteDodgeman.gotoAndStop("death2");
break;
case "enCartridge" :
_root.spriteDodgeman.gotoAndStop("death13");
break;
case "enRagdoll" :
_root.spriteDodgeman.gotoAndStop("death14");
break;
case "enWaterBalloonY" :
_root.spriteDodgeman.gotoAndStop("death6");
break;
case "enTrafficLight" :
_root.spriteDodgeman.gotoAndStop("death7");
break;
case "enGirder" :
_root.spriteDodgeman.gotoAndStop("death11");
break;
case "enRobot" :
_root.spriteDodgeman.gotoAndStop("death12");
break;
case "enBomb" :
_root.spriteDodgeman.gotoAndPlay("death15");
}
_root.soundGameOver.start(0, 1);
_root.signGameOver._visible = true;
_root.signGameOver.gotoAndPlay(1);
_root.buttonContinue._visible = true;
_root.buttonQuit._visible = true;
}
function shakeScreenRight() {
if (_root.flagScreenShakingRight == true) {
if (_root.bgLevel8._x == 0) {
_root.bgLevel8._x = 5;
_root.countShake++;
} else if (_root.bgLevel8._x == 5) {
_root.bgLevel8._x = 0;
_root.countShake++;
}
if (_root.countShake == 12) {
_root.countShake = 0;
_root.bgLevel8._x = 0;
_root.flagScreenShakingRight = false;
}
}
}
function shakeScreenLeft() {
if (_root.flagScreenShakingLeft == true) {
if (_root.bgLevel8._x == 0) {
_root.bgLevel8._x = -5;
_root.countShake++;
} else if (_root.bgLevel8._x == -5) {
_root.bgLevel8._x = 0;
_root.countShake++;
}
if (_root.countShake == 12) {
_root.countShake = 0;
_root.bgLevel8._x = 0;
_root.flagScreenShakingLeft = false;
}
}
}
function brainThrowman() {
if (_root.countStockThrowman == -1) {
_root.countStockThrowman = -2;
_root.countTotal = _root.countTotal + _root.countScore;
_root.intTMSavedX = _root.spriteThrowman._x;
_root.intDMSavedX = _root.spriteDodgeman._x;
gotoAndStop (228);
}
if (_root.flagPauseThrowman == false) {
if (_root.directionThrowman == "left") {
_root.spriteThrowman._x = _root.spriteThrowman._x - 5;
} else if (_root.directionThrowman == "right") {
_root.spriteThrowman._x = _root.spriteThrowman._x + 5;
}
}
switch (_root.spriteThrowman._x) {
case 190 :
if (_root.flagGroup1Moving == false) {
_root.flagPauseThrowman = true;
if (_root.directionThrowman == "right") {
_root.spriteThrowman.gotoAndPlay("throwRight");
} else if (_root.directionThrowman == "left") {
_root.spriteThrowman.gotoAndPlay("throwLeft");
}
_root.flagGroup1Moving = true;
_root.countStockThrowman--;
}
_root.timerPauseThrowman++;
break;
case 0 :
if (_root.flagGroup2Moving == false) {
_root.flagPauseThrowman = true;
_root.spriteThrowman.gotoAndPlay("throwRight");
_root.directionThrowman = "right";
_root.flagGroup2Moving = true;
_root.countStockThrowman--;
}
_root.timerPauseThrowman++;
break;
case 360 :
if (_root.flagGroup3Moving == false) {
_root.flagPauseThrowman = true;
_root.spriteThrowman.gotoAndPlay("throwLeft");
_root.directionThrowman = "left";
_root.flagGroup3Moving = true;
_root.countStockThrowman--;
}
_root.timerPauseThrowman++;
}
if (_root.timerPauseThrowman == 12) {
_root.flagPauseThrowman = false;
_root.timerPauseThrowman = 0;
if (((_root.countStockThrowman == 15) or (_root.countStockThrowman == 10)) or (_root.countStockThrowman == 5)) {
speedUp();
}
}
_root.textStockRemaining.text = _root.countStockThrowman;
}
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
_root.flagDead = false;
_root.enemyLastHit = "null";
_root.countLadderSegment = 0;
_root.timerLadder = 0;
_root.flagLadderMoving = false;
_root.countPUColor = 0;
_root.countPUColor2 = 255;
_root.countPUColor3 = 50;
_root.countArrowAlpha = 0;
_root.directionArrowAlpha = "up";
_root.timerInvincible = 36;
_root.flagInvincible = false;
_root.countScore = 0;
_root.textScore.text = _root.countScore;
_root.timerSecond = 0;
_root.speedFactor = 1;
_root.speedDodgeman = 1;
_root.countTotal = 0;
_root.levelNumber = "level8";
_root.flagScreenShakingRight = false;
_root.flagScreenShakingLeft = false;
_root.countShake = 0;
_root.directionThrowman = "left";
_root.intTMSavedX = 185;
_root.intDMSavedX = 235.9;
_root.timerPauseThrowman = 0;
_root.flagPauseThrowman = false;
_root.flagGroup1Moving = false;
_root.flagGroup2Moving = false;
_root.flagGroup3Moving = false;
_root.countStockThrowman = 20;
_root.textStockRemaining.text = _root.countStockThrowman;
arrayGroup1 = [_root.enCartridge1, _root.enFishBone2, _root.enBomb1, _root.enSoupCan1, _root.enRagdoll1];
arrayGroup2 = [_root.enCartridge2, _root.enRagdoll2, _root.enWaterBalloonY, _root.enTrafficLight1, _root.enBomb2];
arrayGroup3 = [_root.enRagdoll3, _root.enCartridge3, _root.enGirder1, _root.enBomb3, _root.enRobot2];
if (_root.flagMusicOn == true) {
musicLevel8 = new Sound();
musicLevel8.attachSound("musicLevel8");
musicLevel8.start(0.5, 1);
}
if (_root.flagSoundOn == true) {
soundLevelEight = new Sound();
soundLevelEight.attachSound("soundLevelEight");
soundOuch = new Sound();
soundOuch.attachSound("soundOuch");
soundGameOver = new Sound();
soundGameOver.attachSound("soundGameOver");
soundSpeedUp = new Sound();
soundSpeedUp.attachSound("soundSpeedUp");
soundLadderComplete = new Sound();
soundLadderComplete.attachSound("soundLadderComplete");
sound1up = new Sound();
sound1up.attachSound("sound1up");
soundGong = new Sound();
soundGong.attachSound("soundGong");
_root.soundLevelEight.start(0, 1);
}
arrayLadder = [_root.ladder1, _root.ladder2, _root.ladder3, _root.ladder4];
arrayLifeBar = [_root.lifeIcon1, _root.lifeIcon2, _root.lifeIcon3];
i = 0;
while (i < 5) {
currentLadder = _root.arrayLadder[i];
currentLadder._visible = false;
i++;
}
_root.signArrow._visible = false;
_root.signSpeedUp._visible = false;
_root.signGameOver._visible = false;
_root.buttonContinue._visible = false;
_root.buttonQuit._visible = false;
_root.textLives._visible = false;
_root.spriteCatchman._visible = false;
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
_root.spriteCatchman._visible = true;
}
Mouse.hide();
if (_root.countLifeBar < 3) {
var i = 0;
while (i < 3) {
if (i > _root.countLifeBar) {
_root.arrayLifeBar[i]._visible = false;
}
i++;
}
} else if (_root.countLifeBar >= 3) {
_root.lifeIcon1.gotoAndPlay(1);
_root.lifeIcon2._visible = false;
_root.lifeIcon3._visible = false;
_root.textLives._visible = true;
_root.textLives.text = "x " + (_root.countLifeBar + 1);
}
_root.flag1upMoving = false;
_root.countTotal = ((((((_root.scoreLvl1 + _root.scoreLvl2) + _root.scoreLvl3) + _root.scoreLvl4) + _root.scoreLvl5) + _root.scoreLvl6) + _root.scoreLvl7) + _root.scoreLvl8;
_root.textTotal.text = _root.countTotal;
Color.prototype.setTint = function (r, g, b, amount) {
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = 100 - amount));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
puColor = new Color(_root.puLadder1);
onEnterFrame = function () {
if (_root.flagDead == false) {
if (_root.flagPause == false) {
brainThrowman();
shakeScreenRight();
shakeScreenLeft();
checkCollisions();
handleInput();
moveObjects();
generateLadderSegment();
rotatePUColor();
rotateArrowAlpha();
checkInvincibility();
incrementScore();
}
checkPause();
}
};
stop();
Instance of Symbol 142 MovieClip "enFishBone2" in Frame 227
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren2 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren2 = 1;
stopDrag();
}
};
}
Instance of Symbol 232 MovieClip "enSoupCan1" in Frame 227
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren4 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren4 = 1;
stopDrag();
}
};
}
Instance of Symbol 345 MovieClip "enWaterBalloonY" in Frame 227
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren3 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren3 = 1;
stopDrag();
}
};
}
Instance of Symbol 348 MovieClip "enTrafficLight1" in Frame 227
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren4 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren4 = 1;
stopDrag();
}
};
}
Instance of Symbol 952 MovieClip "enRobot2" in Frame 227
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren5 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren5 = 1;
stopDrag();
}
};
}
Instance of Symbol 949 MovieClip "enGirder1" in Frame 227
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren3 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren3 = 1;
stopDrag();
}
};
}
Instance of Symbol 1022 MovieClip "enBomb1" in Frame 227
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren3 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren3 = 1;
stopDrag();
}
};
}
Instance of Symbol 1025 MovieClip "enCartridge1" in Frame 227
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren1 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren1 = 1;
stopDrag();
}
};
}
Instance of Symbol 1028 MovieClip "enRagdoll1" in Frame 227
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren5 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren5 = 1;
stopDrag();
}
};
}
Instance of Symbol 1022 MovieClip "enBomb2" in Frame 227
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren5 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren5 = 1;
stopDrag();
}
};
}
Instance of Symbol 1025 MovieClip "enCartridge2" in Frame 227
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren1 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren1 = 1;
stopDrag();
}
};
}
Instance of Symbol 1028 MovieClip "enRagdoll2" in Frame 227
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren2 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren2 = 1;
stopDrag();
}
};
}
Instance of Symbol 1022 MovieClip "enBomb3" in Frame 227
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren4 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren4 = 1;
stopDrag();
}
};
}
Instance of Symbol 1025 MovieClip "enCartridge3" in Frame 227
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren2 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren2 = 1;
stopDrag();
}
};
}
Instance of Symbol 1028 MovieClip "enRagdoll3" in Frame 227
onClipEvent (enterFrame) {
this.onPress = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
_root.grabFactoren1 = 0;
startDrag (this, true);
}
};
this.onRelease = function () {
if (((_root.bool2players == true) & (_root.flagDead == false)) & (_root.flagPause == false)) {
if (_root.countScore > 20) {
_root.countScore = _root.countScore - 20;
}
_root.grabFactoren1 = 1;
stopDrag();
}
};
}
Instance of Symbol 311 MovieClip "spriteCatchman" in Frame 227
onClipEvent (mouseDown) {
if ((_root.flagDead == false) & (_root.flagPause == false)) {
this.gotoAndPlay(2);
if (_root.bool2players == true) {
_root.flagGrabbed = true;
}
}
}
onClipEvent (mouseUp) {
if ((_root.flagDead == false) & (_root.flagPause == false)) {
this.gotoAndPlay(5);
if (_root.bool2players == true) {
_root.flagGrabbed = false;
}
}
}
Frame 228
_root.flagThrowmanJump = true;
_root.flagDodgemanSquished = false;
if (_root.flagThrowmanJump == true) {
_root.spriteDodgeman._x = _root.intDMSavedX;
if (_root.directionThrowman == "left") {
_root.spriteBucketL._x = _root.intTMSavedX;
} else if (_root.directionThrowman == "right") {
_root.spriteBucketR._x = _root.intTMSavedX;
}
}
if (_root.flagSoundOn == true) {
_root.soundThrowmanBellyFlop = new Sound();
_root.soundThrowmanBellyFlop.attachSound("soundThrowmanBellyFlop");
_root.soundThrowmanBellyFlop.start(0, 1);
}
onEnterFrame = function () {
if (_root.flagDodgemanSquished == false) {
if (_root.spriteThrowman._y > -200) {
_root.spriteThrowman._y = _root.spriteThrowman._y - 20;
}
if ((_root.spriteThrowman._y <= -200) & (_root.spriteThrowmanLarge._y < -41)) {
_root.spriteThrowmanLarge._y = _root.spriteThrowmanLarge._y + 10;
}
if (_root.spriteThrowmanLarge._y >= -41) {
_root.flagDodgemanSquished = true;
_root.musicLevel8.stop();
delete _root.musicLevel8;
_root.soundThrowmanBellyFlop.stop();
delete _root.soundThrowmanBellyFlop;
gotoAndStop (229);
}
}
};
stop();
Frame 229
function sleeper() {
count++;
trace(("stopped for " + count) + " seconds");
if (count == 3) {
clearInterval(sleep);
gotoAndStop (230);
}
}
stop();
count = 0;
sleep = setInterval(sleeper, 1000);
stop();
Frame 230
for (var o in _root) {
try {
_root[o].removeMovieClip();
} catch(e) {
}
}
delete handleInput;
delete moveObjects;
delete checkCollisions;
delete generateLadderSegment;
delete rotatePUColor;
delete rotateArrowAlpha;
delete checkInvincibility;
delete incrementScore;
delete speedUp;
delete endGame;
delete _root.soundLevelOne;
delete _root.soundLevelTwo;
delete _root.soundLevelThree;
delete _root.soundLevelFour;
delete _root.soundLevelFive;
delete _root.soundLevelSix;
delete _root.soundLevelSeven;
delete _root.soundLevelEight;
delete _root.soundOuch;
delete _root.soundSpeedUp;
delete _root.soundLadderComplete;
delete _root.soundGameOver;
delete _root.soundGong;
try {
new LocalConnection().connect("foo");
new LocalConnection().connect("foo");
} catch(error:Error) {
}
gotoAndStop (231);
Frame 231
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
deadflag = false;
winflag = false;
goflag = false;
_root.Lvl1Timer.text = 30;
frameCounter = 12;
_root.timerGoClassic = 0;
_root.buttonContinue._visible = false;
if (_root.flagMusicOn == true) {
musicLevel9 = new Sound();
musicLevel9.attachSound("musicTheme");
musicLevel9.start(0, 1);
}
if (_root.flagSoundOn == true) {
soundLadderComplete = new Sound();
soundLadderComplete.attachSound("soundLadderComplete");
soundOuch = new Sound();
soundOuch.attachSound("soundOuch");
soundLevel9 = new Sound();
soundLevel9.attachSound("soundLevelFinal");
soundLevel9.start(0, 1);
}
deathFunc();
goFunc();
initFunc();
winFunc();
_root.DodgemanClassic.gotoAndStop(1);
Mouse.hide();
onEnterFrame = function () {
function deathFunc() {
function sleeper() {
count++;
trace(("stopped for " + count) + " seconds");
if (count == 2) {
clearInterval(sleep);
gotoAndPlay (235);
}
}
musicLevel9.stop();
soundOuch.start(0, 1);
_root.Hammer1.stop();
_root.Hammer2.stop();
_root.Hammer3.stop();
deadflag = true;
count = 0;
sleep = setInterval(sleeper, 1000);
}
function winFunc() {
_root.Hammer1.stop();
_root.Hammer2.stop();
_root.Hammer3.stop();
deadflag = true;
gotoAndPlay (294);
}
function goFunc() {
_root.timerGoClassic++;
if (_root.timerGoClassic == 12) {
initFunc();
goflag = true;
}
}
function initFunc() {
_root.InfoMsg.text = "";
_root.Lvl1Timer.text = 30;
_root.Nail1._y = Math.floor(Math.random() * -200) - 50;
_root.Nail1._x = Math.floor(Math.random() * 490) + 30;
_root.Nail1.gotoAndStop(1);
_root.Hammer1._y = Math.floor(Math.random() * -200) - 50;
_root.Hammer1._x = Math.floor(Math.random() * 490) + 30;
_root.Hammer1.gotoAndPlay(1);
_root.Nail2._y = Math.floor(Math.random() * -200) - 50;
_root.Nail2._x = Math.floor(Math.random() * 490) + 30;
_root.Nail2.gotoAndStop(1);
_root.Hammer2._y = Math.floor(Math.random() * -200) - 50;
_root.Hammer2._x = Math.floor(Math.random() * 490) + 30;
_root.Hammer2.gotoAndPlay(1);
_root.Nail3._y = Math.floor(Math.random() * -200) - 50;
_root.Nail3._x = Math.floor(Math.random() * 490) + 30;
_root.Nail3.gotoAndStop(1);
_root.Hammer3._y = Math.floor(Math.random() * -200) - 50;
_root.Hammer3._x = Math.floor(Math.random() * 490) + 30;
_root.Hammer3.gotoAndPlay(1);
_root.DodgemanClassic._x = 275;
_root.DodgemanClassic._y = 361;
_root.DodgemanClassic.gotoAndPlay(1);
deadflag = false;
}
if (goflag == false) {
goFunc();
}
if ((deadflag == true) & Key.isDown(40)) {
initFunc();
}
if (goflag == true) {
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var _local2 = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var _local2 = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var _local2 = com.wiicade.Wii.getRemote(0);
}
if (_root.DodgemanClassic.hitTest(_root.Nail1) & (deadflag == false)) {
_root.DodgemanClassic.gotoAndStop(13);
_root.Nail1.gotoAndStop(2);
deathFunc();
} else if (_root.DodgemanClassic.hitTest(_root.Nail2) & (deadflag == false)) {
_root.DodgemanClassic.gotoAndStop(13);
_root.Nail2.gotoAndStop(2);
deathFunc();
} else if (_root.DodgemanClassic.hitTest(_root.Nail3) & (deadflag == false)) {
_root.DodgemanClassic.gotoAndStop(13);
_root.Nail3.gotoAndStop(2);
deathFunc();
} else if (_root.DodgemanClassic.hitTest(_root.Hammer1) & (deadflag == false)) {
_root.Hammer1.gotoAndStop(7);
_root.DodgemanClassic.gotoAndStop(14);
deathFunc();
} else if (_root.DodgemanClassic.hitTest(_root.Hammer2) & (deadflag == false)) {
_root.Hammer2.gotoAndStop(7);
_root.DodgemanClassic.gotoAndStop(14);
deathFunc();
} else if (_root.DodgemanClassic.hitTest(_root.Hammer3) & (deadflag == false)) {
_root.Hammer3.gotoAndStop(7);
_root.DodgemanClassic.gotoAndStop(14);
deathFunc();
}
if ((_local2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) & (_root.DodgemanClassic._x > 30)) & (deadflag == false)) {
_root.DodgemanClassic._x = _root.DodgemanClassic._x - 20;
}
if ((_local2.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) & (_root.DodgemanClassic._x < 530)) & (deadflag == false)) {
_root.DodgemanClassic._x = _root.DodgemanClassic._x + 20;
}
if (deadflag == false) {
_root.Nail1._y = _root.Nail1._y + 10;
_root.Hammer1._y = _root.Hammer1._y + 20;
_root.Nail2._y = _root.Nail2._y + 5;
_root.Hammer2._y = _root.Hammer2._y + 15;
_root.Nail3._y = _root.Nail3._y + 20;
_root.Hammer3._y = _root.Hammer3._y + 25;
}
if (_root.Nail1._y >= 550) {
_root.Nail1._y = Math.floor(Math.random() * -200) - 50;
_root.Nail1._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.Hammer1._y >= 550) {
_root.Hammer1._y = Math.floor(Math.random() * -200) - 50;
_root.Hammer1._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.Nail2._y >= 550) {
_root.Nail2._y = Math.floor(Math.random() * -200) - 50;
_root.Nail2._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.Hammer2._y >= 550) {
_root.Hammer2._y = Math.floor(Math.random() * -200) - 50;
_root.Hammer2._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.Nail3._y >= 550) {
_root.Nail3._y = Math.floor(Math.random() * -200) - 50;
_root.Nail3._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.Hammer3._y >= 550) {
_root.Hammer3._y = Math.floor(Math.random() * -200) - 50;
_root.Hammer3._x = Math.floor(Math.random() * 490) + 30;
}
if ((frameCounter > 0) & (deadflag == false)) {
frameCounter = frameCounter - 1;
}
if (frameCounter == 0) {
frameCounter = 12;
if (_root.Lvl1Timer.text > 0) {
_root.Lvl1Timer.text = _root.Lvl1Timer.text - 1;
}
if (_root.Lvl1Timer.text == 0) {
_root.DodgemanClassic.gotoAndStop(1);
winFunc();
}
}
if ((_root.Lvl1Timer.text == 1) & (winflag == false)) {
musicLevel9.stop();
winflag = true;
soundLadderComplete.start(0, 1);
}
}
};
stop();
Frame 232
_root.flagCheats = false;
if (_root.flagCheated == true) {
_root.countGoodEndingBonus = 0;
_root.countLivesRemainingBonus = 0;
_root.countTotal = 0;
if (_root.flagWonTheGame == true) {
gotoAndPlay (460);
} else if (_root.flagWonTheGame == false) {
gotoAndPlay (40);
}
}
_root.textFinalScore.text = _root.countTotal;
_root.textGoodEndingBonus.text = _root.countGoodEndingBonus;
_root.textLivesRemainingBonus.text = _root.countLivesRemainingBonus;
Mouse.show();
stop();
Frame 233
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
function sleeper() {
count++;
trace(("stopped for " + count) + " seconds");
if (count == 1) {
clearInterval(sleep);
if (_root.flagWonTheGame == false) {
gotoAndStop (234);
} else if (_root.flagWonTheGame == true) {
gotoAndPlay (460);
}
}
}
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.nameSubmitted;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.countTotal;
__rankz_send__("MjgxOWolZSVhJW4lcw==", "eFNKSFBoU3k=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
count = 0;
sleep = setInterval(sleeper, 1000);
stop();
Frame 234
rankz_t10_send = new LoadVars();
rankz_t10_receive = new LoadVars();
rankz_t10_send.SU0249 = "MjgxOWolZSVhJW4lcw==";
rankz_t10_send.flashkey = "eFNKSFBoU3k=";
rankz_t10_receive.onLoad = function (success) {
if (success) {
_rankz_ar_ = rankz_t10_receive.top10.split("<u/*/u>");
i = 0;
while (i < _rankz_ar_.length) {
tempv = _rankz_ar_[i].split("</*/>");
_root["rankz_n" + (i + 1)].text = tempv[0];
_root["rankz_v" + (i + 1)].text = tempv[1];
i++;
}
} else {
trace("ERROR");
}
};
rankz_t10_send.sendAndLoad("http://rankz.armorbot.com/get/top10.php", rankz_t10_receive, "POST");
stop();
Frame 235
_root.flagWonTheGame = true;
_root.countLivesRemainingBonus = 100 * (_root.countLifeBar + 1);
_root.countTotal = (_root.countTotal + _root.countGoodEndingBonus) + _root.countLivesRemainingBonus;
if (_root.flagSoundOn == true) {
_root.soundThrowmanLaugh = new Sound();
_root.soundThrowmanLaugh.attachSound("soundThrowmanLaugh");
_root.soundThrowmanLaugh.start(0, 1);
}
Frame 292
Mouse.show();
_root.textScore.text = _root.countTotal;
if (_root.flagCheated == true) {
_root.textScore.text = 0;
_root.textScore._visible = false;
_root.labelScore._visible = false;
_root.signDontWantPoints._visible = false;
_root.signWantPoints._visible = false;
}
stop();
Frame 293
_root.soundThrowmanLaugh.stop();
delete _root.soundThrowmanLaugh;
stop();
_root.flagGotGoodEnding = false;
gotoAndPlay (232);
Frame 294
_root.flagWonTheGame = true;
_root.countGoodEndingBonus = 200;
_root.countLivesRemainingBonus = 100 * (_root.countLifeBar + 1);
_root.countTotal = (_root.countTotal + _root.countGoodEndingBonus) + _root.countLivesRemainingBonus;
if (_root.flagMusicOn == true) {
musicVictory = new Sound();
musicVictory.attachSound("musicVictory");
musicVictory.start(0, 1);
}
Frame 443
_root.musicVictory.stop();
delete _root.musicVictory;
stop();
_root.flagGotGoodEnding = true;
gotoAndPlay (232);
Frame 444
_root.countTotal = ((((((_root.scoreLvl1 + _root.scoreLvl2) + _root.scoreLvl3) + _root.scoreLvl4) + _root.scoreLvl5) + _root.scoreLvl6) + _root.scoreLvl7) + _root.scoreLvl8;
_root.textFinalScore.text = _root.countTotal;
stop();
Frame 445
if (_root.flagMusicOn == true) {
_root.musicCinema = new Sound();
_root.musicCinema.attachSound("musicCinema");
_root.musicCinema.start(0, 999);
}
stop();
Frame 447
if (_root.flagMusicOn == true) {
_root.musicCinema = new Sound();
_root.musicCinema.attachSound("musicCinema");
_root.musicCinema.start(0, 999);
}
stop();
Frame 449
if (_root.flagMusicOn == true) {
_root.musicCinema = new Sound();
_root.musicCinema.attachSound("musicCinema");
_root.musicCinema.start(0, 999);
}
stop();
Frame 454
if (_root.flagMusicOn == true) {
_root.musicCinema = new Sound();
_root.musicCinema.attachSound("musicCinema");
_root.musicCinema.start(0, 999);
}
stop();
Frame 458
if (_root.flagMusicOn == true) {
_root.musicCinema = new Sound();
_root.musicCinema.attachSound("musicCinema");
_root.musicCinema.start(0, 999);
}
stop();
Frame 460
if (_root.flagMusicOn == true) {
musicTheme = new Sound();
musicTheme.attachSound("musicTheme");
musicTheme.start(0, 1);
}
if (_root.flagSoundOn == true) {
soundOuch = new Sound();
soundOuch.attachSound("soundOuch");
}
_root.flagCreditsFinished = false;
_root.flagSquished = false;
_root.flagBowed = false;
onEnterFrame = function () {
if (_root.screenCredits._y > -1850) {
_root.screenCredits._y = _root.screenCredits._y - 5;
}
if ((_root.screenCredits._y <= -1850) & (_root.flagCreditsFinished == false)) {
_root.flagCreditsFinished = true;
musicTheme.stop();
delete musicTheme;
if (_root.flagWonTheGame == true) {
_root.soundOuch.stop();
delete _root.soundOuch;
gotoAndStop (234);
_root.flagWonTheGame = false;
} else if (_root.flagWonTheGame == false) {
_root.soundOuch.stop();
delete _root.soundOuch;
gotoAndPlay (40);
}
}
if (_root.spriteDMCredits._y > 150) {
_root.spriteDMCredits._y = _root.spriteDMCredits._y - 5;
}
if ((((_root.spriteDMCredits._y <= 150) & (_root.flagWonTheGame == true)) & (_root.flagGotGoodEnding == true)) & (_root.flagBowed == false)) {
_root.flagBowed = true;
_root.spriteDMCredits.gotoAndPlay("bow");
}
if ((((_root.spriteDMCredits._y <= 150) & (_root.flagWonTheGame == true)) & (_root.flagGotGoodEnding == false)) & (_root.flagSquished == false)) {
musicTheme.stop();
delete musicTheme;
_root.flagSquished = true;
_root.spriteDMCredits.gotoAndPlay("squish");
}
};
stop();
Frame 461
stop();
Frame 462
for (var o in _root) {
try {
_root[o].removeMovieClip();
} catch(e) {
}
}
delete _root.soundLevelOne;
delete _root.soundLevelTwo;
delete _root.soundLevelThree;
delete _root.soundLevelFour;
delete _root.soundLevelFive;
delete _root.soundLevelSix;
delete _root.soundLevelSeven;
delete _root.soundLevelEight;
delete _root.soundOuch;
delete _root.soundSpeedUp;
delete _root.soundLadderComplete;
delete _root.soundGameOver;
delete _root.soundGong;
delete _root.soundPause;
delete _root.sound1up;
try {
new LocalConnection().connect("foo");
new LocalConnection().connect("foo");
} catch(error:Error) {
}
gotoAndStop (463);
Frame 463
function handleInput() {
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var _local2 = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var _local2 = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var _local2 = com.wiicade.Wii.getRemote(0);
}
if (_local2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) & (_root.spriteDodgeman._x > 30)) {
_root.spriteDodgeman._x = _root.spriteDodgeman._x - (15 * _root.speedDodgeman);
}
if (_local2.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) & (_root.spriteDodgeman._x < 520)) {
_root.spriteDodgeman._x = _root.spriteDodgeman._x + (15 * _root.speedDodgeman);
}
}
function moveObjects() {
enFishBone1._y = enFishBone1._y + ((10 * _root.speedFactor) * _root.grabFactoren1);
enFishBone2._y = enFishBone2._y + ((12 * _root.speedFactor) * _root.grabFactoren2);
enFishBone3._y = enFishBone3._y + ((15 * _root.speedFactor) * _root.grabFactoren3);
enSoupCan1._y = enSoupCan1._y + ((14 * _root.speedFactor) * _root.grabFactoren4);
enSoupCan2._y = enSoupCan2._y + ((17 * _root.speedFactor) * _root.grabFactoren5);
if (_root.flagLadderMoving == true) {
puLadder1._y = puLadder1._y + 5;
}
if (_root.enFishBone1._y >= 550) {
_root.enFishBone1._y = Math.floor(Math.random() * -200) - 50;
_root.enFishBone1._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.enFishBone2._y >= 550) {
_root.enFishBone2._y = Math.floor(Math.random() * -200) - 50;
_root.enFishBone2._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.enFishBone3._y >= 550) {
_root.enFishBone3._y = Math.floor(Math.random() * -200) - 50;
_root.enFishBone3._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.enSoupCan1._y >= 550) {
_root.enSoupCan1._y = Math.floor(Math.random() * -200) - 50;
_root.enSoupCan1._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.enSoupCan2._y >= 550) {
_root.enSoupCan2._y = Math.floor(Math.random() * -200) - 50;
_root.enSoupCan2._x = Math.floor(Math.random() * 490) + 30;
}
if (_root.puLadder1._y >= 450) {
_root.puLadder1._y = Math.floor(Math.random() * -200) - 100;
_root.puLadder1._x = Math.floor(Math.random() * 490) + 30;
_root.flagLadderMoving = false;
_root.timerLadder = 0;
_root.countScore = 0;
}
}
function progressLadder() {
if (_root.countLadderSegment < 4) {
_root.arrayLadder[_root.countLadderSegment]._visible = true;
_root.countLadderSegment++;
}
if (_root.countLadderSegment == 4) {
_root.ladder1._visible = false;
_root.ladder2._visible = false;
_root.ladder3._visible = false;
downloadWallpaper();
}
}
function checkCollisions() {
if (_root.flagInvincible == false) {
if (_root.spriteDodgeman.hitTest(_root.enFishBone1)) {
_root.enemyLastHit = "enFishBone";
_root.enFishBone1._y = Math.floor(Math.random() * -200) - 50;
_root.enFishBone1._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enFishBone2)) {
_root.enemyLastHit = "enFishBone";
_root.enFishBone2._y = Math.floor(Math.random() * -200) - 50;
_root.enFishBone2._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enFishBone3)) {
_root.enemyLastHit = "enFishBone";
_root.enFishBone3._y = Math.floor(Math.random() * -200) - 50;
_root.enFishBone3._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enSoupCan1)) {
_root.enemyLastHit = "enSoupCan";
_root.enSoupCan1._y = Math.floor(Math.random() * -200) - 50;
_root.enSoupCan1._x = Math.floor(Math.random() * 400) + 30;
removeLife();
} else if (_root.spriteDodgeman.hitTest(_root.enSoupCan2)) {
_root.enemyLastHit = "enSoupCan";
_root.enSoupCan2._y = Math.floor(Math.random() * -200) - 50;
_root.enSoupCan2._x = Math.floor(Math.random() * 400) + 30;
removeLife();
}
}
if (_root.spriteDodgeman.hitTest(_root.puLadder1)) {
_root.puLadder1._y = Math.floor(Math.random() * -200) - 100;
_root.puLadder1._x = Math.floor(Math.random() * 400) + 30;
_root.flagLadderMoving = false;
_root.timerLadder = 0;
speedUp();
progressLadder();
}
}
function removeLife() {
_root.soundOuch.start(0, 1);
if (_root.countLifeBar == 3) {
_root.textLives._visible = false;
_root.lifeIcon1._visible = true;
_root.lifeIcon2._visible = true;
_root.lifeIcon3._visible = true;
}
if (_root.countLifeBar < 3) {
_root.arrayLifeBar[_root.countLifeBar]._visible = false;
}
if (_root.countLifeBar >= 4) {
_root.textLives.text = "x " + _root.countLifeBar;
}
_root.spriteDodgeman._alpha = 33;
_root.flagInvincible = true;
if (countLifeBar == -1) {
musicLevelChristmas.stop();
delete musicLevelChristmas;
endGame();
}
_root.countLifeBar--;
}
function generateLadderSegment() {
_root.timerLadder++;
if ((timerLadder == 180) & (_root.countLadderSegment < 4)) {
_root.flagLadderMoving = true;
}
}
function checkInvincibility() {
if (_root.flagInvincible == true) {
_root.timerInvincible--;
if (_root.timerInvincible == 0) {
_root.timerInvincible = 36;
flagInvincible = false;
_root.spriteDodgeman._alpha = 100;
}
}
}
function speedUp() {
if (_root.countLadderSegment < 3) {
_root.signSpeedUp._visible = true;
_root.signSpeedUp.gotoAndPlay(1);
_root.soundSpeedUp.start(0, 1);
_root.speedFactor = _root.speedFactor + 0.25;
}
}
function rotatePUColor() {
puColor.setTint(_root.countPUColor, _root.countPUColor2, _root.countPUColor3, 50);
if (_root.countPUColor == 0) {
_root.countPUColor = 255;
} else if (_root.countPUColor == 255) {
_root.countPUColor = 0;
}
if (_root.countPUColor2 == 255) {
_root.countPUColor2 = 0;
} else if (_root.countPUColor2 == 0) {
_root.countPUColor2 = 255;
}
if (_root.countPUColor3 == 50) {
_root.countPUColor3 = 150;
} else if (_root.countPUColor3 == 150) {
}
_root.countPUColor3 = 50;
}
function rotateArrowAlpha() {
if (_root.directionArrowAlpha == "up") {
_root.signArrow._alpha = _root.signArrow._alpha + 15;
if (_root.signArrow._alpha > 100) {
_root.directionArrowAlpha = "down";
}
}
if (_root.directionArrowAlpha == "down") {
_root.signArrow._alpha = _root.signArrow._alpha - 15;
if (_root.signArrow._alpha < 0) {
_root.directionArrowAlpha = "up";
}
}
}
function incrementScore() {
if (_root.countLadderSegment < 4) {
_root.timerSecond++;
if (((_root.timerSecond == 12) or (_root.timerSecond == 24)) & (_root.countLifeBar > -1)) {
_root.timerSecond = 0;
switch (_root.countLifeBar) {
case 2 :
_root.countScore = _root.countScore + 3;
break;
case 1 :
_root.countScore = _root.countScore + 2;
break;
case 0 :
_root.countScore = _root.countScore + 1;
}
if (_root.countLifeBar > 2) {
_root.countScore = _root.countScore + 3;
}
}
if ((_root.timerSecond == 24) & (_root.countLifeBar == -1)) {
_root.timerSecond = 0;
_root.countScore++;
}
_root.textScore.text = _root.countScore;
}
}
function endGame() {
stopDrag();
_root.flagDead = true;
_root.spriteDodgeman._alpha = 100;
Mouse.show();
switch (_root.enemyLastHit) {
case "enFishBone" :
_root.spriteDodgeman.gotoAndStop("death16");
break;
case "enSoupCan" :
_root.spriteDodgeman.gotoAndStop("death17");
}
_root.soundGameOver.start(0, 1);
_root.signGameOver._visible = true;
_root.signGameOver.gotoAndPlay(1);
_root.buttonContinue._visible = true;
_root.buttonQuit._visible = true;
}
function downloadWallpaper() {
stopDrag();
_root.flagDead = true;
_root.spriteDodgeman._alpha = 100;
_root.spriteDodgeman.gotoAndStop("elfHat");
Mouse.show();
_root.soundLadderComplete.start(0, 1);
_root.buttonDownloadWallpaper._visible = true;
_root.buttonQuit._x = 203;
_root.buttonQuit._y = 206;
_root.buttonQuit._visible = true;
}
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
_root.grabFactoren1 = 1;
_root.grabFactoren2 = 1;
_root.grabFactoren3 = 1;
_root.grabFactoren4 = 1;
_root.grabFactoren5 = 1;
_root.flagDead = false;
_root.enemyLastHit = "null";
_root.countLadderSegment = 0;
_root.timerLadder = 0;
_root.flagLadderMoving = false;
_root.countPUColor = 0;
_root.countPUColor2 = 255;
_root.countPUColor3 = 50;
_root.countArrowAlpha = 0;
_root.directionArrowAlpha = "up";
_root.timerInvincible = 36;
_root.flagInvincible = false;
_root.countScore = 0;
_root.textScore.text = _root.countScore;
_root.timerSecond = 0;
_root.speedFactor = 0.75;
_root.speedDodgeman = 1;
_root.countTotal = 0;
_root.levelNumber = "levelChristmas";
_root.timerCheatkeys = 0;
_root.countLifeBar = 2;
_root.scoreLvl1 = 0;
_root.scoreLvl2 = 0;
_root.scoreLvl3 = 0;
_root.scoreLvl4 = 0;
_root.scoreLvl5 = 0;
_root.scoreLvl6 = 0;
_root.scoreLvl7 = 0;
_root.scoreLvl8 = 0;
_root.flag1upMoving = false;
if (_root.flagMusicOn == true) {
musicLevelChristmas = new Sound();
musicLevelChristmas.attachSound("musicLevelChristmas");
musicLevelChristmas.start(0, 1);
}
if (_root.flagSoundOn == true) {
soundLevelOne = new Sound();
soundLevelOne.attachSound("soundLevelOne");
soundOuch = new Sound();
soundOuch.attachSound("soundOuch");
soundGameOver = new Sound();
soundGameOver.attachSound("soundGameOver");
soundSpeedUp = new Sound();
soundSpeedUp.attachSound("soundSpeedUp");
soundLadderComplete = new Sound();
soundLadderComplete.attachSound("soundLadderComplete");
sound1up = new Sound();
sound1up.attachSound("sound1up");
_root.soundPause = new Sound();
_root.soundPause.attachSound("soundPause");
_root.soundLevelOne.start(0, 1);
}
arrayLadder = [_root.ladder1, _root.ladder2, _root.ladder3, _root.ladder4];
arrayLifeBar = [_root.lifeIcon1, _root.lifeIcon2, _root.lifeIcon3];
i = 0;
while (i < 5) {
currentLadder = _root.arrayLadder[i];
currentLadder._visible = false;
i++;
}
_root.signArrow._visible = false;
_root.signSpeedUp._visible = false;
_root.signGameOver._visible = false;
_root.buttonContinue._visible = false;
_root.buttonQuit._visible = false;
_root.buttonDownloadWallpaper._visible = false;
_root.textLives._visible = false;
_root.spriteCatchman._visible = false;
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
_root.spriteCatchman._visible = true;
}
Mouse.hide();
_root.flag1upMoving = false;
Color.prototype.setTint = function (r, g, b, amount) {
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = 100 - amount));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
puColor = new Color(_root.puLadder1);
onEnterFrame = function () {
if (_root.flagDead == false) {
if (_root.flagPause == false) {
checkCollisions();
handleInput();
moveObjects();
generateLadderSegment();
rotatePUColor();
rotateArrowAlpha();
checkInvincibility();
incrementScore();
}
checkPause();
}
};
stop();
Symbol 14 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndPlay ("loaded");
}
Symbol 14 MovieClip Frame 2
gotoAndPlay (1);
Symbol 14 MovieClip Frame 40
_root.play();
Symbol 1304 MovieClip [__Packages.com.wiicade.Wii] Frame 0
class com.wiicade.Wii
{
static var instance;
var keyboard, lc;
function Wii () {
if (!_global.Wii) {
_global.Wii = this;
} else {
return;
}
wii = System.capabilities.os == "Nintendo Wii";
com.wiicade.WiiRemote.init();
com.wiicade.KeyboardController.init();
com.wiicade.Browser.init();
var _local3 = 0;
while (_local3 < 4) {
remotes[_local3] = new com.wiicade.WiiRemote(_local3);
_local3++;
}
if (!isWii()) {
keyboard = new com.wiicade.KeyboardController(wiicommand);
}
lc = new LocalConnection();
lc.connect("wii");
lc.wiicommand = function (packet) {
_global.Wii.wiicommand(packet);
};
if (isWii()) {
getURL (((("javascript:initializeWiiCadeAPI(20, " + Stage.width) + ", ") + Stage.height) + ");");
}
}
static function getInstance() {
if (!_global.Wii) {
instance = new com.wiicade.Wii();
}
return(_global.Wii);
}
static function init() {
_global.Wii = null;
instance = new com.wiicade.Wii();
}
static function isWii() {
var _local1 = getInstance();
return(_local1.wii || (_local1.virtualized));
}
function wiicommand(packet) {
var _local4 = getInstance();
var _local2 = (4294901760 & packet) >> 16;
var _local3 = packet & 65535;
if (_local2 < 5) {
_local4.remotes[_local2 - 1].buttonsUpdated(_local3);
} else if (_local2 < 9) {
_local4.remotes[_local2 - 5].twistUpdated(_local3);
} else if (_local2 < 13) {
_local4.remotes[_local2 - 9].distanceUpdated(_local3);
} else if (_local2 == 13) {
parseFlags(_local3);
} else if (_local2 < 18) {
parseAttachment(_local3, _local2 - 14);
} else if (_local2 < 22) {
_local4.remotes[_local2 - 18].cursorXUpdated(_local3);
} else if (_local2 < 32) {
_local4.remotes[_local2 - 22].cursorYUpdated(_local3);
}
}
function parseFlags(flags) {
var _local7 = primary;
var _local3;
var _local4;
var _local5 = 8;
primary = flags & 3;
if (primary != _local7) {
getRemote(_local7).updatePrimary(false);
getRemote(primary).updatePrimary(true);
}
virtualized = (4 & _local5) > 0;
var _local2 = 0;
while (_local2 < 4) {
_local3 = getRemote(_local2);
_local4 = (_local5 & flags) > 0;
if (_local3.isConnected() != _local4) {
_local3.connectedUpdated(_local4);
}
_local5 = _local5 << 1;
_local2++;
}
}
function parseAttachment(data, remote) {
var _local4 = getRemote(remote);
var _local3 = _local4.getAttachment();
var _local2;
var _local1;
if ((data & 256) == 0) {
if (!(_local3 instanceof com.wiicade.Nunchuk)) {
_local3 = new com.wiicade.Nunchuk(_local4);
_local4.updateAttachment(_local3);
}
_local3.updateButtons(data & 3);
_local2 = (data & 28) >>> 2;
_local1 = (data & 224) >>> 5;
if ((_local2 & 4) > 0) {
_local2 = _local2 | 65528;
}
if ((_local1 & 4) > 0) {
_local1 = _local1 | 65528;
}
_local2 = Math.floor((_local2 * 128) / 3);
_local1 = Math.floor((_local1 * 128) / 3);
_local3.updateStick(_local2, _local1);
}
}
static function getRemote(identity) {
var _local1 = getInstance();
if ((!_local1.activated[identity]) && (_local1.isWii())) {
getURL (("javascript:activateWiiRemoteFeature(" + identity) + ", null, true);");
_local1.activated[identity] = true;
}
return(_local1.remotes[identity]);
}
static function getPrimaryRemote() {
var _local1 = getInstance();
return(_local1.remotes[_local1.primary]);
}
static var COMMAND_BUTTONS = 1;
static var COMMAND_TWIST = 5;
static var COMMAND_DISTANCE = 9;
static var COMMAND_FLAGS = 13;
static var COMMAND_ATTACH = 14;
static var COMMAND_CURSORX = 18;
static var COMMAND_CURSORY = 22;
var remotes = new Array();
var activated = new Array();
var primary = 0;
var virtualized = false;
var wii = true;
}
Symbol 1305 MovieClip [__Packages.com.wiicade.KeyboardController] Frame 0
class com.wiicade.KeyboardController
{
static var keyCodes, buttonCodes;
var callback;
function KeyboardController (callback) {
this.callback = callback;
Key.addListener(this);
Mouse.addListener(this);
if (!keyCodes) {
init();
}
}
static function init() {
keyCodes = new Array();
buttonCodes = new Array();
keyCodes[37] = com.wiicade.WiiRemote.BUTTON_LEFT;
keyCodes[38] = com.wiicade.WiiRemote.BUTTON_UP;
keyCodes[39] = com.wiicade.WiiRemote.BUTTON_RIGHT;
keyCodes[40] = com.wiicade.WiiRemote.BUTTON_DOWN;
keyCodes[65] = com.wiicade.WiiRemote.BUTTON_1;
keyCodes[83] = com.wiicade.WiiRemote.BUTTON_2;
keyCodes[68] = com.wiicade.WiiRemote.BUTTON_A;
keyCodes[32] = com.wiicade.WiiRemote.BUTTON_B;
keyCodes[187] = com.wiicade.WiiRemote.BUTTON_PLUS;
keyCodes[189] = com.wiicade.WiiRemote.BUTTON_MINUS;
buttonCodes[com.wiicade.WiiRemote.BUTTON_LEFT] = 37;
buttonCodes[com.wiicade.WiiRemote.BUTTON_UP] = 38;
buttonCodes[com.wiicade.WiiRemote.BUTTON_RIGHT] = 39;
buttonCodes[com.wiicade.WiiRemote.BUTTON_DOWN] = 40;
buttonCodes[com.wiicade.WiiRemote.BUTTON_1] = 65;
buttonCodes[com.wiicade.WiiRemote.BUTTON_2] = 83;
buttonCodes[com.wiicade.WiiRemote.BUTTON_A] = 68;
buttonCodes[com.wiicade.WiiRemote.BUTTON_B] = 32;
buttonCodes[com.wiicade.WiiRemote.BUTTON_PLUS] = 187;
buttonCodes[com.wiicade.WiiRemote.BUTTON_MINUS] = 189;
}
function onKeyDown() {
var _local2 = Key.getCode();
if (keyCodes[_local2]) {
bitmap = bitmap | keyCodes[_local2];
callback((com.wiicade.Wii.COMMAND_BUTTONS << 16) | bitmap);
}
}
function onKeyUp() {
var _local2 = Key.getCode();
if (keyCodes[_local2]) {
bitmap = bitmap & (~keyCodes[_local2]);
callback((com.wiicade.Wii.COMMAND_BUTTONS << 16) | bitmap);
}
}
function onMouseDown() {
bitmap = bitmap | com.wiicade.WiiRemote.BUTTON_A;
callback((com.wiicade.Wii.COMMAND_BUTTONS << 16) | bitmap);
}
function onMouseUp() {
bitmap = bitmap & (~com.wiicade.WiiRemote.BUTTON_A);
callback((com.wiicade.Wii.COMMAND_BUTTONS << 16) | bitmap);
}
function onMouseMove() {
callback((com.wiicade.Wii.COMMAND_CURSORX << 16) | _xmouse);
callback((com.wiicade.Wii.COMMAND_CURSORY << 16) | _ymouse);
}
static function getButtonMappingForKey(keyCode) {
if (!keyCodes) {
com.wiicade.Wii.isWii();
}
return(keyCodes[keyCode]);
}
static function getKeyMappingForButton(buttonCode) {
if (!keyCodes) {
com.wiicade.Wii.isWii();
}
return(buttonCodes[buttonCode]);
}
static function setKeyMapping(buttonCode, keyCode) {
if (!keyCodes) {
com.wiicade.Wii.isWii();
}
var _local1 = buttonCodes[buttonCode];
var _local2 = keyCodes[keyCode];
if (_local1) {
keyCodes[_local1] = null;
}
if (_local2) {
buttonCodes[_local2] = null;
}
keyCodes[keyCode] = buttonCode;
buttonCodes[buttonCode] = keyCode;
}
var bitmap = 0;
}
Symbol 1306 MovieClip [__Packages.com.wiicade.WiiRemote] Frame 0
class com.wiicade.WiiRemote
{
var identity, attachment, activated, dispatchEvent, oldcursorx, oldcursory;
function WiiRemote (identity) {
this.identity = identity;
allowRotate = com.wiicade.Wii.isWii();
attachment = new com.wiicade.Nunchuk(this);
activated = new Array();
if (this.identity == 0) {
primary = true;
connected = true;
}
mx.events.EventDispatcher.initialize(this);
}
static function init() {
}
function getIdentity() {
return(identity);
}
function isPrimary() {
return(primary);
}
function isConnected() {
return(connected);
}
function isRotated() {
return(rotated);
}
function setRotated(rotate) {
rotated = rotate;
}
function getTwistAngle() {
if ((!activated[com.wiicade.Wii.COMMAND_TWIST]) && (com.wiicade.Wii.isWii())) {
getURL (((("javascript:activateWiiRemoteFeature(" + identity) + ", ") + (com.wiicade.Wii.COMMAND_TWIST + identity)) + ", true);");
activated[com.wiicade.Wii.COMMAND_TWIST] = true;
}
return(twistAngle);
}
function getDistance() {
if ((!activated[com.wiicade.Wii.COMMAND_DISTANCE]) && (com.wiicade.Wii.isWii())) {
getURL (((("javascript:activateWiiRemoteFeature(" + identity) + ", ") + (com.wiicade.Wii.COMMAND_DISTANCE + identity)) + ", true);");
activated[com.wiicade.Wii.COMMAND_DISTANCE] = true;
}
return(distance);
}
function getCursorX() {
if ((!activated[com.wiicade.Wii.COMMAND_CURSORX]) && (com.wiicade.Wii.isWii())) {
getURL (((("javascript:activateWiiRemoteFeature(" + identity) + ", ") + (com.wiicade.Wii.COMMAND_CURSORX + identity)) + ", true);");
activated[com.wiicade.Wii.COMMAND_CURSORX] = true;
}
return(cursorx);
}
function getCursorY() {
if ((!activated[com.wiicade.Wii.COMMAND_CURSORX]) && (com.wiicade.Wii.isWii())) {
getURL (((("javascript:activateWiiRemoteFeature(" + identity) + ", ") + (com.wiicade.Wii.COMMAND_CURSORX + identity)) + ", true);");
activated[com.wiicade.Wii.COMMAND_CURSORX] = true;
}
return(cursory);
}
function isFacingScreen() {
return((cursorx > 0) || (cursory > 0));
}
function isDown(buttonCode) {
if (rotated && (allowRotate)) {
if (buttonCode == BUTTON_UP) {
buttonCode = BUTTON_RIGHT;
} else if (buttonCode == BUTTON_RIGHT) {
buttonCode = BUTTON_DOWN;
} else if (buttonCode == BUTTON_DOWN) {
buttonCode = BUTTON_LEFT;
} else if (buttonCode == BUTTON_LEFT) {
buttonCode = BUTTON_UP;
}
}
return((pressed & buttonCode) > 0);
}
function getAttachment() {
if ((!activated[com.wiicade.Wii.COMMAND_ATTACH]) && (com.wiicade.Wii.isWii())) {
getURL (((("javascript:activateWiiRemoteFeature(" + identity) + ", ") + (com.wiicade.Wii.COMMAND_ATTACH + identity)) + ", true);");
activated[com.wiicade.Wii.COMMAND_ATTACH] = true;
}
return(attachment);
}
function buttonsUpdated(bitmap) {
var _local2 = 1;
var _local8 = pressed;
var _local7;
pressed = bitmap;
_local7 = pressed ^ _local8;
var _local3 = 0;
while (_local3 < 10) {
if ((_local7 & _local2) > 0) {
if ((pressed & _local2) > 0) {
dispatchEvent({type:"buttondown", buttonCode:_local2, identity:identity});
} else {
dispatchEvent({type:"buttonup", buttonCode:_local2, identity:identity});
}
}
_local2 = _local2 << 1;
_local3++;
}
}
function twistUpdated(angle) {
var _local2 = twistAngle;
twistAngle = angle;
if (twistAngle != _local2) {
dispatchEvent({type:"twist", angle:angle, identity:identity});
}
}
function distanceUpdated(distance) {
var _local2 = this.distance;
this.distance = distance;
if (this.distance != _local2) {
dispatchEvent({type:"distance", distance:distance, identity:identity});
}
}
function connectedUpdated(connected) {
var _local2 = this.connected;
this.connected = connected;
if (this.connected != _local2) {
if (connected) {
dispatchEvent({type:"connected", identity:identity});
} else {
dispatchEvent({type:"disconnected", identity:identity});
}
}
}
function cursorXUpdated(cursorx) {
oldcursorx = this.cursorx;
this.cursorx = cursorx;
}
function cursorYUpdated(cursory) {
oldcursory = this.cursory;
this.cursory = cursory;
if ((cursorx != oldcursorx) || (this.cursory != oldcursory)) {
dispatchEvent({type:"pointer", cursorx:cursorx, cursory:this.cursory, identity:identity});
}
}
function updatePrimary(primary) {
this.primary = primary;
}
function updateAttachment(attachment) {
this.attachment = attachment;
}
static var BUTTON_UP = 8;
static var BUTTON_DOWN = 4;
static var BUTTON_RIGHT = 2;
static var BUTTON_LEFT = 1;
static var BUTTON_1 = 64;
static var BUTTON_2 = 32;
static var BUTTON_A = 256;
static var BUTTON_B = 128;
static var BUTTON_PLUS = 16;
static var BUTTON_MINUS = 512;
var primary = false;
var connected = false;
var rotated = false;
var allowRotate = true;
var twistAngle = 0;
var distance = 0;
var cursorx = 0;
var cursory = 0;
var pressed = 0;
}
Symbol 1307 MovieClip [__Packages.com.wiicade.Nunchuk] Frame 0
class com.wiicade.Nunchuk
{
var parent, dispatchEvent;
function Nunchuk (parent) {
this.parent = parent;
mx.events.EventDispatcher.initialize(this);
}
function isDown(buttonCode) {
return((pressed & buttonCode) > 0);
}
function getStickX() {
return(stickx);
}
function getStickY() {
return(sticky);
}
function updateButtons(buttons) {
var _local2 = 1;
var _local8 = pressed;
var _local7;
pressed = buttons;
_local7 = pressed ^ _local8;
var _local3 = 0;
while (_local3 < 10) {
if ((_local7 & _local2) > 0) {
if ((pressed & _local2) > 0) {
dispatchEvent({type:"buttondown", buttonCode:_local2, identity:parent.getIdentity()});
} else {
dispatchEvent({type:"buttonup", buttonCode:_local2, identity:parent.getIdentity()});
}
}
_local2 = _local2 << 1;
_local3++;
}
}
function updateStick(x, y) {
stickx = x;
sticky = y;
}
static var BUTTON_C = 2;
static var BUTTON_Z = 1;
var pressed = 0;
var stickx = 0;
var sticky = 0;
}
Symbol 1308 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 1309 MovieClip [__Packages.com.wiicade.Browser] Frame 0
class com.wiicade.Browser
{
static var buttonEnabled;
function Browser () {
}
static function init() {
buttonEnabled = new Array();
buttonEnabled[com.wiicade.WiiRemote.BUTTON_LEFT] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_UP] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_RIGHT] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_DOWN] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_1] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_2] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_A] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_B] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_PLUS] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_MINUS] = false;
}
static function isDefaultEnabled(buttonCode) {
if (!buttonEnabled) {
com.wiicade.Wii.isWii();
}
return(buttonEnabled[buttonCode]);
}
static function setDefaultEnabled(buttonCode, enabled) {
if (!buttonEnabled) {
com.wiicade.Wii.isWii();
}
buttonEnabled[buttonCode] = enabled;
if (com.wiicade.Wii.isWii()) {
getURL (((("javascript:enableWiiButton(" + buttonCode) + ",") + enabled) + ");");
}
}
static function enableZooming() {
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_PLUS, true);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_MINUS, true);
}
static function disableZooming() {
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_PLUS, false);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_MINUS, false);
}
static function enableScrolling() {
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_LEFT, true);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_RIGHT, true);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_UP, true);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_DOWN, true);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_B, true);
}
static function disableScrolling() {
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_LEFT, false);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_RIGHT, false);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_UP, false);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_DOWN, false);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_B, false);
}
static function setBackgroundColor(color) {
if (com.wiicade.Wii.isWii()) {
getURL (("javascript:setBackgroundColor(" + color) + ");");
}
}
}
Symbol 1310 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object
{
static var _CharsReverseLookup;
var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count;
function Armor_Bot_30_En_AS1 () {
super();
}
static function Encode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.encodeArmor_Bot_30_En_AS1(str));
}
static function Decode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.decodeArmor_Bot_30_En_AS1(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setArmor_Bot_30_En_AS1Str(str) {
_Armor_Bot_30_En_AS1Str = str;
_Armor_Bot_30_En_AS1Count = 0;
}
function readArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255;
_Armor_Bot_30_En_AS1Count++;
return(_local2);
}
function encodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[1] = readArmor_Bot_30_En_AS1();
_local2[2] = readArmor_Bot_30_En_AS1();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function readReverseArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
while (true) {
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count);
_Armor_Bot_30_En_AS1Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[2] = readReverseArmor_Bot_30_En_AS1();
_local2[3] = readReverseArmor_Bot_30_En_AS1();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 62 Button
on (press) {
_root.bool2players = false;
gotoAndStop (42);
}
Symbol 66 Button
on (press) {
_root.bool2players = true;
gotoAndStop (42);
}
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 2
stop();
Symbol 75 MovieClip Frame 3
stop();
Symbol 75 MovieClip Frame 4
stop();
Symbol 77 Button
on (press) {
_root.flagCheats = true;
}
Symbol 81 Button
on (press) {
gotoAndStop (234);
}
Symbol 84 Button
on (press) {
_root.musicMenu.stop();
delete _root.musicMenu;
gotoAndStop (460);
}
Symbol 87 Button
on (press) {
_root.musicMenu.stop();
delete _root.musicMenu;
gotoAndStop (42);
}
Symbol 90 Button
on (press) {
gotoAndStop (461);
}
Symbol 95 Button
on (press) {
getURL ("http://www.holmadegames.com", "_blank");
}
Symbol 99 Button
on (rollOut) {
_root.sekretRectangle._visible = true;
}
Symbol 102 Button
on (press) {
_root.musicMenu.stop();
delete _root.musicMenu;
_root.bool2players = false;
gotoAndPlay (462);
}
Symbol 115 Button
on (rollOver) {
_root.sekretRectangle._visible = false;
}
Symbol 120 Button
on (press) {
_root.musicMenu.stop();
delete _root.musicMenu;
clearInterval(sleep);
gotoAndPlay (48);
}
Symbol 142 MovieClip Frame 1
Symbol 216 MovieClip Frame 1
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkLeft");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkRight");
}
Symbol 216 MovieClip Frame 2
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkLeft");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkRight");
}
Symbol 216 MovieClip Frame 3
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkLeft");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkRight");
}
Symbol 216 MovieClip Frame 4
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkLeft");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkRight");
}
Symbol 216 MovieClip Frame 5
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkLeft");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkRight");
}
Symbol 216 MovieClip Frame 6
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkLeft");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkRight");
}
Symbol 216 MovieClip Frame 7
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkLeft");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkRight");
}
Symbol 216 MovieClip Frame 8
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkLeft");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkRight");
}
Symbol 216 MovieClip Frame 9
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkLeft");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkRight");
}
Symbol 216 MovieClip Frame 10
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkLeft");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkRight");
}
Symbol 216 MovieClip Frame 11
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkLeft");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkRight");
}
Symbol 216 MovieClip Frame 12
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkLeft");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkRight");
}
Symbol 216 MovieClip Frame 13
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkLeft");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkRight");
}
Symbol 216 MovieClip Frame 14
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 216 MovieClip Frame 15
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkRight");
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 216 MovieClip Frame 16
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkRight");
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 216 MovieClip Frame 17
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkRight");
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 216 MovieClip Frame 18
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkRight");
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
this.gotoAndPlay("walkLeft");
Symbol 216 MovieClip Frame 19
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 216 MovieClip Frame 20
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkLeft");
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 216 MovieClip Frame 21
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkLeft");
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 216 MovieClip Frame 22
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkLeft");
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 216 MovieClip Frame 23
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkLeft");
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
this.gotoAndPlay("walkRight");
Symbol 216 MovieClip Frame 24
stop();
Symbol 216 MovieClip Frame 25
stop();
Symbol 216 MovieClip Frame 26
stop();
Symbol 216 MovieClip Frame 27
stop();
Symbol 216 MovieClip Frame 28
stop();
Symbol 216 MovieClip Frame 29
stop();
Symbol 216 MovieClip Frame 30
stop();
Symbol 216 MovieClip Frame 41
stop();
Symbol 216 MovieClip Frame 42
stop();
Symbol 216 MovieClip Frame 53
stop();
Symbol 216 MovieClip Frame 54
stop();
Symbol 216 MovieClip Frame 55
stop();
Symbol 216 MovieClip Frame 56
stop();
Symbol 216 MovieClip Frame 57
stop();
Symbol 216 MovieClip Frame 63
stop();
Symbol 216 MovieClip Frame 64
stop();
Symbol 216 MovieClip Frame 65
stop();
Symbol 216 MovieClip Frame 66
stop();
Symbol 229 MovieClip Frame 15
stop();
Symbol 232 MovieClip Frame 1
Symbol 248 MovieClip Frame 15
this._visible = false;
stop();
Symbol 252 Button
on (press) {
gotoAndPlay (48);
}
Symbol 256 Button
on (press) {
_root.countTotal = _root.countTotal + _root.countScore;
gotoAndPlay (232);
}
Symbol 260 MovieClip Frame 12
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 6
stop();
Symbol 289 MovieClip Frame 28
gotoAndPlay ("repeat");
Symbol 291 MovieClip Frame 25
gotoAndPlay ("repeat");
Symbol 300 MovieClip Frame 8
stop();
Symbol 311 MovieClip Frame 1
stop();
Symbol 311 MovieClip Frame 4
stop();
Symbol 318 MovieClip Frame 4
this._y = this._y - 26;
Symbol 318 MovieClip Frame 7
this._y = this._y - 28;
this.gotoAndPlay(1);
Symbol 356 Button
on (press) {
_root.scoreLvl1 = 0;
_root.scoreLvl2 = 0;
_root.scoreLvl3 = 0;
_root.scoreLvl4 = 0;
_root.scoreLvl5 = 0;
_root.scoreLvl6 = 0;
_root.scoreLvl7 = 0;
_root.scoreLvl8 = 0;
_root.countLifeBar = 2;
gotoAndPlay (51);
}
Symbol 369 MovieClip Frame 15
stop();
Symbol 373 MovieClip Frame 28
gotoAndPlay ("repeat");
Symbol 381 MovieClip Frame 12
stop();
Symbol 385 MovieClip Frame 12
stop();
Symbol 389 MovieClip Frame 12
stop();
Symbol 393 MovieClip Frame 12
stop();
Symbol 415 MovieClip Frame 6
stop();
Symbol 416 Button
on (press) {
_root.scoreLvl1 = 0;
_root.scoreLvl2 = 0;
_root.scoreLvl3 = 0;
_root.scoreLvl4 = 0;
_root.scoreLvl5 = 0;
_root.scoreLvl6 = 0;
_root.scoreLvl7 = 0;
_root.scoreLvl8 = 0;
_root.countLifeBar = 2;
gotoAndPlay (54);
}
Symbol 429 MovieClip Frame 15
stop();
Symbol 438 MovieClip Frame 28
gotoAndPlay ("repeat");
Symbol 476 MovieClip Frame 42
_root.flagNext = true;
stop();
Symbol 492 MovieClip Frame 1
_root.flagFlying = false;
Symbol 492 MovieClip Frame 15
_root.flagFlying = true;
Symbol 492 MovieClip Frame 17
this.gotoAndPlay("flying");
Symbol 505 MovieClip Frame 4
this.gotoAndPlay(1);
Symbol 505 MovieClip Frame 13
stop();
Symbol 510 MovieClip Frame 4
this.gotoAndPlay(2);
Symbol 523 MovieClip Frame 17
this.gotoAndPlay(1);
Symbol 523 MovieClip Frame 20
this._visible = false;
stop();
Symbol 535 MovieClip Frame 17
this.gotoAndPlay(1);
Symbol 535 MovieClip Frame 20
this._visible = false;
stop();
Symbol 536 Button
on (press) {
_root.scoreLvl1 = 0;
_root.scoreLvl2 = 0;
_root.scoreLvl3 = 0;
_root.scoreLvl4 = 0;
_root.scoreLvl5 = 0;
_root.scoreLvl6 = 0;
_root.scoreLvl7 = 0;
_root.scoreLvl8 = 0;
_root.countLifeBar = 2;
gotoAndPlay (59);
}
Symbol 549 MovieClip Frame 15
stop();
Symbol 556 MovieClip Frame 28
gotoAndPlay ("repeat");
Symbol 584 MovieClip Frame 1
if (this._y > 100) {
_root.soundThrusters.stop();
this.gotoAndPlay("sputter");
}
Symbol 584 MovieClip Frame 2
if (this._y > 100) {
_root.soundThrusters.stop();
this.gotoAndPlay("sputter");
}
Symbol 584 MovieClip Frame 3
if (this._y > 100) {
this.gotoAndPlay("sputter");
}
this.gotoAndPlay(1);
Symbol 584 MovieClip Frame 4
_root.soundThrusters.start(0, 1);
if (this._y == 330) {
this.gotoAndPlay("snapfall");
}
Symbol 584 MovieClip Frame 5
if (this._y == 330) {
this.gotoAndPlay("snapfall");
}
Symbol 584 MovieClip Frame 6
if (this._y == 330) {
this.gotoAndPlay("snapfall");
}
Symbol 584 MovieClip Frame 7
if (this._y == 330) {
this.gotoAndPlay("snapfall");
}
Symbol 584 MovieClip Frame 8
if (this._y == 330) {
this.gotoAndPlay("snapfall");
}
Symbol 584 MovieClip Frame 9
if (this._y == 330) {
this.gotoAndPlay("snapfall");
}
Symbol 584 MovieClip Frame 10
this.gotoAndPlay("sputter");
Symbol 584 MovieClip Frame 12
this._y = this._y + 30;
this.gotoAndPlay("snapfall");
Symbol 621 MovieClip Frame 1
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkLeft");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkRight");
}
Symbol 621 MovieClip Frame 2
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 621 MovieClip Frame 3
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 621 MovieClip Frame 4
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 621 MovieClip Frame 5
this.gotoAndPlay("walkRight");
Symbol 621 MovieClip Frame 6
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 621 MovieClip Frame 7
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 621 MovieClip Frame 8
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 621 MovieClip Frame 9
this.gotoAndPlay("walkLeft");
Symbol 621 MovieClip Frame 10
this._y = this._y + 20;
Symbol 621 MovieClip Frame 11
this.gotoAndPlay("death1");
Symbol 628 MovieClip Frame 1
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkLeft");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkRight");
}
Symbol 628 MovieClip Frame 2
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 628 MovieClip Frame 3
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 628 MovieClip Frame 4
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 628 MovieClip Frame 5
this.gotoAndPlay("walkRight");
Symbol 628 MovieClip Frame 6
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 628 MovieClip Frame 7
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 628 MovieClip Frame 8
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 628 MovieClip Frame 9
this.gotoAndPlay("walkLeft");
Symbol 628 MovieClip Frame 10
this._y = this._y + 20;
Symbol 628 MovieClip Frame 11
this.gotoAndPlay("death1");
Symbol 635 MovieClip Frame 1
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkLeft");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkRight");
}
Symbol 635 MovieClip Frame 2
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 635 MovieClip Frame 3
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 635 MovieClip Frame 4
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 635 MovieClip Frame 5
this.gotoAndPlay("walkRight");
Symbol 635 MovieClip Frame 6
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 635 MovieClip Frame 7
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 635 MovieClip Frame 8
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 635 MovieClip Frame 9
this.gotoAndPlay("walkLeft");
Symbol 635 MovieClip Frame 10
this._y = this._y + 20;
Symbol 635 MovieClip Frame 11
this.gotoAndPlay("death1");
Symbol 642 MovieClip Frame 1
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkLeft");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkRight");
}
Symbol 642 MovieClip Frame 2
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 642 MovieClip Frame 3
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 642 MovieClip Frame 4
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 642 MovieClip Frame 5
this.gotoAndPlay("walkRight");
Symbol 642 MovieClip Frame 6
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 642 MovieClip Frame 7
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 642 MovieClip Frame 8
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 642 MovieClip Frame 9
this.gotoAndPlay("walkLeft");
Symbol 642 MovieClip Frame 10
this._y = this._y + 20;
Symbol 642 MovieClip Frame 11
this.gotoAndPlay("death1");
Symbol 649 MovieClip Frame 1
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkLeft");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkRight");
}
Symbol 649 MovieClip Frame 2
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 649 MovieClip Frame 3
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 649 MovieClip Frame 4
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 649 MovieClip Frame 5
this.gotoAndPlay("walkRight");
Symbol 649 MovieClip Frame 6
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 649 MovieClip Frame 7
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 649 MovieClip Frame 8
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 649 MovieClip Frame 9
this.gotoAndPlay("walkLeft");
Symbol 649 MovieClip Frame 10
this._y = this._y + 20;
Symbol 649 MovieClip Frame 11
this.gotoAndPlay("death1");
Symbol 680 Button
on (press) {
_root.scoreLvl1 = 0;
_root.scoreLvl2 = 0;
_root.scoreLvl3 = 0;
_root.scoreLvl4 = 0;
_root.scoreLvl5 = 0;
_root.scoreLvl6 = 0;
_root.scoreLvl7 = 0;
_root.scoreLvl8 = 0;
_root.countLifeBar = 2;
gotoAndPlay (100);
}
Symbol 693 MovieClip Frame 15
stop();
Symbol 698 MovieClip Frame 28
gotoAndPlay ("repeat");
Symbol 754 MovieClip Frame 35
_root.spriteServiceHatch._visible = true;
Symbol 754 MovieClip Frame 56
_root.flagNext = true;
stop();
Symbol 785 MovieClip Frame 1
stop();
Symbol 820 MovieClip Frame 10
stop();
Symbol 844 MovieClip Frame 1
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkRight");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkLeft");
}
Symbol 844 MovieClip Frame 2
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkRight");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkLeft");
}
Symbol 844 MovieClip Frame 3
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkRight");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkLeft");
}
Symbol 844 MovieClip Frame 4
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkRight");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkLeft");
}
Symbol 844 MovieClip Frame 5
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkRight");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkLeft");
}
Symbol 844 MovieClip Frame 6
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkRight");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkLeft");
}
Symbol 844 MovieClip Frame 7
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkRight");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkLeft");
}
Symbol 844 MovieClip Frame 8
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkRight");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkLeft");
}
Symbol 844 MovieClip Frame 9
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkRight");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkLeft");
}
Symbol 844 MovieClip Frame 10
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkRight");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkLeft");
}
Symbol 844 MovieClip Frame 11
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkRight");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkLeft");
}
Symbol 844 MovieClip Frame 12
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkRight");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkLeft");
}
Symbol 844 MovieClip Frame 13
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkRight");
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkLeft");
}
Symbol 844 MovieClip Frame 14
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 844 MovieClip Frame 15
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkRight");
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 844 MovieClip Frame 16
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkRight");
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 844 MovieClip Frame 17
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkRight");
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 844 MovieClip Frame 18
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
this.gotoAndPlay("walkRight");
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
this.gotoAndPlay("walkLeft");
Symbol 844 MovieClip Frame 19
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 844 MovieClip Frame 20
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkLeft");
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 844 MovieClip Frame 21
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkLeft");
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 844 MovieClip Frame 22
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkLeft");
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
Symbol 844 MovieClip Frame 23
com.wiicade.Wii.getRemote(1).setRotated(true);
com.wiicade.Wii.getRemote(0).setRotated(true);
if ((_root.bool2players == true) & com.wiicade.Wii.isWii()) {
var remote = com.wiicade.Wii.getRemote(1);
}
if ((_root.bool2players == true) & (!com.wiicade.Wii.isWii())) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (_root.bool2players == false) {
var remote = com.wiicade.Wii.getRemote(0);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
this.gotoAndPlay("walkLeft");
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) & (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
this.gotoAndPlay(1);
}
this.gotoAndPlay("walkRight");
Symbol 844 MovieClip Frame 24
stop();
Symbol 844 MovieClip Frame 25
stop();
Symbol 870 Button
on (press) {
_root.scoreLvl1 = 0;
_root.scoreLvl2 = 0;
_root.scoreLvl3 = 0;
_root.scoreLvl4 = 0;
_root.scoreLvl5 = 0;
_root.scoreLvl6 = 0;
_root.scoreLvl7 = 0;
_root.scoreLvl8 = 0;
_root.countLifeBar = 2;
gotoAndPlay (221);
}
Symbol 883 MovieClip Frame 15
stop();
Symbol 888 MovieClip Frame 28
gotoAndPlay ("repeat");
Symbol 967 Button
on (press) {
_root.scoreLvl1 = 0;
_root.scoreLvl2 = 0;
_root.scoreLvl3 = 0;
_root.scoreLvl4 = 0;
_root.scoreLvl5 = 0;
_root.scoreLvl6 = 0;
_root.scoreLvl7 = 0;
_root.scoreLvl8 = 0;
_root.countLifeBar = 2;
gotoAndPlay (223);
}
Symbol 980 MovieClip Frame 15
stop();
Symbol 985 MovieClip Frame 28
gotoAndPlay ("repeat");
Symbol 1018 MovieClip Frame 1
if (_root.directionThrowman == "right") {
this.gotoAndPlay("walkRight");
}
Symbol 1018 MovieClip Frame 6
if (_root.directionThrowman == "right") {
this.gotoAndPlay("walkRight");
}
Symbol 1018 MovieClip Frame 11
if (_root.directionThrowman == "right") {
this.gotoAndPlay("walkRight");
} else if (_root.directionThrowman == "left") {
this.gotoAndPlay("walkLeft");
}
Symbol 1018 MovieClip Frame 12
if (_root.directionThrowman == "left") {
this.gotoAndPlay("walkLeft");
}
Symbol 1018 MovieClip Frame 17
if (_root.directionThrowman == "left") {
this.gotoAndPlay("walkLeft");
}
Symbol 1018 MovieClip Frame 22
if (_root.directionThrowman == "right") {
this.gotoAndPlay("walkRight");
} else if (_root.directionThrowman == "left") {
this.gotoAndPlay("walkLeft");
}
Symbol 1018 MovieClip Frame 29
_root.soundGong.start(0, 1);
Symbol 1018 MovieClip Frame 31
_root.flagScreenShakingRight = true;
Symbol 1018 MovieClip Frame 35
this.gotoAndPlay("walkRight");
Symbol 1018 MovieClip Frame 42
_root.soundGong.start(0, 1);
Symbol 1018 MovieClip Frame 44
_root.flagScreenShakingLeft = true;
Symbol 1018 MovieClip Frame 48
this.gotoAndPlay("walkLeft");
Symbol 1029 Button
on (press) {
_root.scoreLvl1 = 0;
_root.scoreLvl2 = 0;
_root.scoreLvl3 = 0;
_root.scoreLvl4 = 0;
_root.scoreLvl5 = 0;
_root.scoreLvl6 = 0;
_root.scoreLvl7 = 0;
_root.scoreLvl8 = 0;
_root.countLifeBar = 2;
gotoAndPlay (226);
}
Symbol 1043 MovieClip Frame 15
stop();
Symbol 1050 MovieClip Frame 28
gotoAndPlay ("repeat");
Symbol 1067 MovieClip Frame 1
stop();
Symbol 1067 MovieClip Frame 2
stop();
Symbol 1072 MovieClip Frame 6
gotoAndPlay (1);
Symbol 1072 MovieClip Frame 7
stop();
Symbol 1082 MovieClip Frame 12
gotoAndPlay (1);
Symbol 1098 MovieClip Frame 15
stop();
Symbol 1099 Button
on (press) {
gotoAndPlay (235);
}
Symbol 1110 Button
on (press) {
_root.nameSubmitted = _root.textHighscoreName.text;
gotoAndPlay (233);
}
Symbol 1157 Button
on (press) {
gotoAndPlay (40);
}
Symbol 1183 Button
on (press) {
getURL ("http://rankz.armorbot.com/dodgeman2/", "_blank");
}
Symbol 1186 Button
on (press) {
getURL ("http://www.armorbot.com", "_blank");
}
Symbol 1192 Button
on (press) {
Mouse.hide();
_root.scoreLvl1 = 0;
_root.scoreLvl2 = 0;
_root.scoreLvl3 = 0;
_root.scoreLvl4 = 0;
_root.scoreLvl5 = 0;
_root.scoreLvl6 = 0;
_root.scoreLvl7 = 0;
_root.scoreLvl8 = 0;
_root.countLifeBar = 2;
_root.flagCheated = true;
_root.flagWonTheGame = false;
gotoAndPlay (226);
}
Symbol 1193 Button
on (press) {
Mouse.hide();
_root.play();
}
Symbol 1221 Button
on (press) {
_root.nextFrame();
}
Symbol 1224 Button
on (press) {
_root.musicCinema.stop();
delete _root.musicCinema;
gotoAndStop (447);
}
Symbol 1229 Button
on (press) {
_root.musicCinema.stop();
delete _root.musicCinema;
gotoAndPlay (232);
}
Symbol 1240 Button
on (press) {
_root.musicCinema.stop();
delete _root.musicCinema;
gotoAndStop (454);
}
Symbol 1253 Button
on (press) {
_root.musicCinema.stop();
delete _root.musicCinema;
gotoAndStop (460);
}
Symbol 1263 MovieClip Frame 1
stop();
Symbol 1263 MovieClip Frame 2
_root.soundOuch.start(0, 1);
Symbol 1263 MovieClip Frame 12
stop();
Symbol 1263 MovieClip Frame 34
stop();
Symbol 1266 Button
on (press) {
gotoAndPlay (40);
}
Symbol 1296 Button
on (press) {
gotoAndPlay (462);
}
Symbol 1297 Button
on (press) {
_root.musicLevelChristmas.stop();
delete _root.musicLevelChristmas;
gotoAndPlay (40);
}
Symbol 1302 Button
on (press) {
getURL ("http://www.holmadegames.com/DM2-ChristmasWallpaper.html", "_blank");
}