Frame 1
Logged = false;
tested = 0;
var Menyn:ContextMenu = new ContextMenu();
Menyn.hideBuiltInItems();
Menyn.builtInItems.quality = true;
this.menu = Menyn;
Frame 24
TestSpeed = getTimer();
Frame 34
TestSpeed = getTimer() - TestSpeed;
Frame 35
Frame 65
if (_framesloaded >= _totalframes) {
} else {
gotoAndPlay ("loop");
}
Frame 66
_root.Time.text = ("10 frames = " + TestSpeed) + " ms";
stop();
Frame 76
gotoAndPlay (77);
Frame 77
_root.ML = 4;
music = new Sound(_root.MV);
music.attachSound("music2");
music4 = new Sound(_root.MV);
music4.attachSound("Musik4");
_root.music.setVolume(60);
Ambiens01 = new Sound(_root.MV);
Ambiens01.attachSound("Ambiens01");
music2 = new Sound(_root.MV);
music2.attachSound("music3");
Ambulansklick = new Sound(_root.SV);
Ambulansklick.attachSound("Ambulansklick");
bonuss = new Sound(_root.SV);
bonuss.attachSound("bonus");
Set("b\u00E5ren01", new Sound(_root.SV));
b\u00E5ren01.attachSound("b\u00E5ren01");
Set("b\u00E5ren02", new Sound(_root.SV));
b\u00E5ren02.attachSound("b\u00E5ren02");
explosion02 = new Sound(_root.SV);
explosion02.attachSound("explosion02");
Heart = new Sound(_root.SV);
Heart.attachSound("Heart");
fire = new Sound(_root.SV);
fire.attachSound("fire");
musklick = new Sound(_root.SV);
musklick.attachSound("musklick");
Myntljud01 = new Sound(_root.SV);
Myntljud01.attachSound("Myntljud01");
skrik01 = new Sound(_root.SV);
skrik01.attachSound("skrik01");
skrik02 = new Sound(_root.SV);
skrik02.attachSound("skrik02");
skrik03 = new Sound(_root.SV);
skrik03.attachSound("skrik03");
skrik04 = new Sound(_root.SV);
skrik04.attachSound("skrik04");
skrik05 = new Sound(_root.SV);
skrik05.attachSound("skrik05");
skrik06 = new Sound(_root.SV);
skrik06.attachSound("skrik06");
skrik07 = new Sound(_root.SV);
skrik07.attachSound("skrik07");
skrik08 = new Sound(_root.SV);
skrik08.attachSound("skrik08");
skrik09 = new Sound(_root.SV);
skrik09.attachSound("skrik09");
skrik010 = new Sound(_root.SV);
skrik010.attachSound("skrik010");
skrik011 = new Sound(_root.SV);
skrik011.attachSound("skrik011");
skrik012 = new Sound(_root.SV);
skrik012.attachSound("skrik012");
splats01 = new Sound(_root.SV);
splats01.attachSound("splats01");
splats02 = new Sound(_root.SV);
splats02.attachSound("splats02");
splats03 = new Sound(_root.SV);
splats03.attachSound("splats03");
splats04 = new Sound(_root.SV);
splats04.attachSound("splats04");
splats05 = new Sound(_root.SV);
splats05.attachSound("splats05");
Frame 78
stop();
Frame 79
Frame 80
System.useCodepage = true;
if (_root.ML == 4) {
music.start(0, 999);
_root.ML = 1;
_root.music.setVolume(60);
}
stop();
Frame 85
PlayGame = new LoadVars();
PlayGame.game_id = 2;
PlayGame.score = 0;
PlayGame.gametime = 0;
PlayGame.level = 0;
PlayGame.serial = random(10000);
PlayGame.type = "start";
PlayGame.sendAndLoad("http://www.gameahead.com/com_gamelog.php", PlayGame, "POST");
PlayGame.onLoad = function (success3) {
if (success3) {
gotoAndPlay ("OK");
} else {
gotoAndPlay ("OK");
}
};
stop();
Frame 86
raddade = 0;
forlorade = 0;
sekplay = 0;
TBo = 1;
ThisLevel = 0;
FireManEnergy = 100;
Highscore = 0;
ScoreCountdown = 10;
FallMan1Weight = 2;
FallMan1Highscore = 200;
FallMan1HighscoreNow = 0;
FallMan2Weight = 2;
FallMan2Highscore = 200;
FallMan2HighscoreNow = 0;
FallMan3Weight = 2;
FallMan3Highscore = 200;
FallMan3HighscoreNow = 0;
FallMan4Weight = 2;
FallMan4Highscore = 200;
FallMan4HighscoreNow = 0;
FallMan5Weight = 2;
FallMan5Highscore = 200;
FallMan5HighscoreNow = 0;
FallMan6Weight = 2;
FallMan6Highscore = 200;
FallMan6HighscoreNow = 0;
Gravity = 0.38;
FallObjects = 6;
FiremanMoveX = 0;
FiremanSpeed = 6.5;
FiremanFriction = 0.7;
FiremanMaxSpeed = 26;
FiremanStrength = 3.5;
FiremanLessJump = 10;
Levelgame = new Array();
Frame 87
if (ML == 1) {
music.stop();
music2.start(0, 999);
}
ThisLevel = ThisLevel + 1;
this.BFClip.gotoAndStop(ThisLevel);
PauseTime = 0;
stop();
Frame 89
_root.thisleveltimer = getTimer();
if (ML == 1) {
music2.stop();
Ambiens01.start(0, 999);
Ambiens01.setVolume(50);
} else if (ML == 2) {
_root.Ljud._x = _root.Musik._x;
_root.Ljud._y = _root.Musik._y;
} else if (ML == 0) {
_root.Inget._x = _root.Musik._x;
_root.Inget._y = _root.Musik._y;
}
FallManSc1 = 0;
FallManSc2 = 0;
FallManSc3 = 0;
FallManSc4 = 0;
FallManSc5 = 0;
FallManSc6 = 0;
timestoshake = 0;
_root.attachMovie("Countman", "CountMan", 3000);
_root.CountMan._x = 390;
_root.CountMan._y = 10;
_root.attachMovie("Fadein", "fade", 100);
_root.attachMovie("Fireman", "Fireman", 103);
_root.FireMan._xscale = 62;
_root.FireMan._yscale = 62;
_root.Fireman._y = 387;
_root.Fireman._x = 174;
_root.attachMovie("Ambulans", "Ambulans", 101);
_root.Ambulans._y = 342;
_root.Ambulans._x = 500;
_root.attachMovie("Block", "Block", 102);
_root.Block._y = 390;
_root.Block._x = 400;
_root.fade._x = 0;
_root.fade._ = 0;
pgame = 0;
pluspower = 0;
MaxBo = 30;
PortalMan = new Array();
PortalMan = [0, 0, 0, 0, 0, 0, 0];
if (TBo == 2) {
_root.ingameBonus.gotoAndPlay("B");
} else if (TBo == 3) {
_root.ingameBonus.gotoAndPlay("O");
} else if (TBo == 4) {
_root.ingameBonus.gotoAndPlay("N");
} else if (TBo == 5) {
_root.ingameBonus.gotoAndPlay("U");
}
FW = 0;
NumberFall = 0;
CountSaved = 0;
CountLost = 0;
CountToSave = 10;
CountHighscore = Highscore;
SavedInARow = 0;
NumberOnStage = 0;
NumberToFall = 0;
SlumpPeople = 0;
ChancePeople = 0;
ArrayCount = 0;
if (ThisLevel == 1) {
STG = 21;
Levelgame = ["Start", "Bana 1", "1", "5", "300", "30", "0", "NoPlus", "Start", "", "2", "11", "80", "40", "1", "NoPlus", "Start", "", "3", "5", "120", "30", "2", "NoPlus", "Finishlevel"];
}
if (ThisLevel == 2) {
STG = 30;
Levelgame = ["Start", "Bana 2", "2", "5", "90", "40", "1", "NoPlus", "Start", "", "3", "15", "100", "30", "2", "NoPlus", "Start", "", "4", "10", "110", "20", "3", "NoPlus", "Finishlevel"];
}
if (ThisLevel == 3) {
STG = 30;
Levelgame = ["Start", "Bana 3", "3", "5", "90", "90", "2", "NoPlus", "Start", "", "4", "5", "80", "80", "3", "NoPlus", "Start", "", "4", "10", "90", "70", "3", "NoPlus", "Start", "", "4", "10", "150", "20", "4", "shake", "Finishlevel"];
}
if (ThisLevel == 4) {
STG = 35;
Levelgame = ["Start", "Bana 4", "3", "10", "150", "40", "2", "NoPlus", "Start", "", "2", "5", "140", "50", "3", "NoPlus", "Start", "", "4", "10", "120", "30", "4", "NoPlus", "Start", "", "5", "10", "250", "5", "4", "shake", "Finishlevel"];
}
if (ThisLevel == 1) {
_root.BG.gotoAndStop(ThisLevel);
_root.EldHus.gotoAndStop(ThisLevel);
_root.attachMovie("gubbe1", "FallMan1", 220);
_root.attachMovie("gubbe2", "FallMan2", 221);
_root.attachMovie("gubbe3", "FallMan3", 222);
_root.attachMovie("gubbe4", "FallMan4", 223);
_root.attachMovie("gubbe1", "FallMan5", 224);
_root.attachMovie("gubbe2", "FallMan6", 225);
FN1 = 1;
FN2 = 2;
FN3 = 3;
FN4 = 4;
FN5 = 1;
FN6 = 2;
}
if (ThisLevel == 2) {
_root.BG.gotoAndStop(ThisLevel);
_root.EldHus.gotoAndStop(ThisLevel);
_root.attachMovie("gubbe3", "FallMan1", 220);
_root.attachMovie("gubbe2", "FallMan2", 221);
_root.attachMovie("gubbe4", "FallMan3", 222);
_root.attachMovie("gubbe10", "FallMan4", 223);
_root.attachMovie("gubbe10", "FallMan5", 224);
_root.attachMovie("gubbe1", "FallMan6", 225);
FN1 = 3;
FN2 = 2;
FN3 = 4;
FN4 = 10;
FN5 = 10;
FN6 = 1;
}
if (ThisLevel == 3) {
_root.BG.gotoAndStop(ThisLevel);
_root.EldHus.gotoAndStop(ThisLevel);
_root.attachMovie("gubbe10", "FallMan1", 220);
_root.attachMovie("gubbe11", "FallMan2", 221);
_root.attachMovie("gubbe11", "FallMan3", 222);
_root.attachMovie("gubbe12", "FallMan4", 223);
_root.attachMovie("gubbe12", "FallMan5", 224);
_root.attachMovie("gubbe1", "FallMan6", 225);
FN1 = 10;
FN2 = 11;
FN3 = 11;
FN4 = 12;
FN5 = 12;
FN6 = 1;
}
if (ThisLevel == 4) {
_root.BG.gotoAndStop(ThisLevel);
_root.EldHus.gotoAndStop(ThisLevel);
_root.attachMovie("gubbe8", "FallMan1", 220);
_root.attachMovie("gubbe8", "FallMan2", 221);
_root.attachMovie("gubbe8", "FallMan3", 222);
_root.attachMovie("gubbe10", "FallMan4", 223);
_root.attachMovie("gubbe3", "FallMan5", 224);
_root.attachMovie("gubbe1", "FallMan6", 225);
FN1 = 8;
FN2 = 8;
FN3 = 8;
FN4 = 10;
FN5 = 3;
FN6 = 1;
}
FallJ = 1;
while (FallJ <= FallObjects) {
_root["FallMan" + FallJ]._yscale = 55;
_root["FallMan" + FallJ]._xscale = 55;
_root["FallMan" + FallJ]._x = -80;
_root["FramesToJump" + FallJ] = 0;
FallJ++;
}
_root.HighscoreInterface.OutHighscore.text = Highscore;
_root.energy.Energybarl._width = 2 * FireManEnergy;
_root.energy.Energybarl._x = 0;
_root.energy.ECol._x = -2 * FireManEnergy;
AmbulansSpeed = 2;
AmbulansMove = 0;
AmbulansMinX = _root.Block._x + 10;
AmbulansMaxX = 580;
AmbulansCenter = _root.Block._x + 20;
Frame 90
PauseTime = 0;
_root.CountMan.StillToJump.text = STG;
pauseListener = new Object();
pauseListener.onKeyUp = function () {
var _local1 = _root;
if (Key.getCode() == 80) {
if (_local1.pgame == 0) {
_local1.pgame = 1;
music.setVolume(0);
_local1.musklick.start(0, 1);
var _local2 = 1;
while (_local2 <= 6) {
_local1["Fallman" + _local2].stop();
_local2++;
}
var _local3 = 0;
while (_local1["eld" + _local3]) {
_local1["eld" + _local3].stop();
_local1["eld2" + _local3].stop();
_local3++;
}
beginpause = getTimer();
_local1.gotoAndStop("paused");
} else {
_local1.pgame = 0;
music.setVolume(50);
var _local2 = 1;
while (_local2 <= 6) {
_local1["Fallman" + _local2].play();
_local2++;
}
var _local3 = 0;
while (_local1["eld" + _local3]) {
_local1["eld" + _local3].play();
_local1["eld2" + _local3].play();
_local3++;
}
PauseTime = (PauseTime + getTimer()) - beginpause;
_local1.gotoAndStop("LoopGame");
}
}
};
Key.addListener(pauseListener);
QualityListener = new Object();
QualityListener.onKeyUp = function () {
if (Key.getCode() == 81) {
if (_quality == "HIGH") {
_quality = "LOW";
} else if (_quality == "MEDIUM") {
_quality = "HIGH";
} else {
_quality = "MEDIUM";
}
}
};
Key.addListener(QualityListener);
Frame 99
function scream() {
var _local1 = _root;
FallJ = 1;
while (FallJ <= FallObjects) {
if (_local1["FallMan" + FallJ]._x > -50) {
if (_local1["FallMan" + FallJ]._x < (_local1.Block._x - 80)) {
if (_local1["FallMan" + FallJ]._y > 220) {
if (_local1[("FallMan" + FallJ) + "MoveY"] > 1) {
if (_local1["FallManSc" + FallJ] == 0) {
var _local2 = _local1.Fireman._width;
if ((_local1["FallMan" + FallJ]._x >= (_local1.Fireman._x + (_local2 * 1.5))) || (_local1["FallMan" + FallJ]._x <= (_local1.Fireman._x - (_local2 * 1.5)))) {
_local1["skrik0" + _local1["FN" + FallJ]].start(0, 1);
_local1["FallManSc" + FallJ] = 1;
} else if (_local1["FallMan" + FallJ]._y > 300) {
if ((_local1["FallMan" + FallJ]._x >= (_local1.Fireman._x + (_local2 / 2))) || (_local1["FallMan" + FallJ]._x <= (_local1.Fireman._x - (_local2 / 2)))) {
_local1["skrik0" + _local1["FN" + FallJ]].start(0, 1);
_local1["FallManSc" + FallJ] = 1;
}
}
}
}
}
}
}
FallJ++;
}
}
function shakehouse() {
var _local1 = _root;
if (timestoshake == 0) {
_local1.EldHus._x = _local1.EldHus._x - 1;
timestoshake = 7;
_local1.explosion02.start(0, 1);
}
if (timestoshake == 6) {
_local1.EldHus._x = _local1.EldHus._x + 1;
}
if (timestoshake == 5) {
_local1.EldHus._x = _local1.EldHus._x - 1;
}
if (timestoshake == 4) {
_local1.EldHus._x = _local1.EldHus._x + 1;
}
if (timestoshake == 3) {
_local1.EldHus._x = _local1.EldHus._x - 1;
}
if (timestoshake == 2) {
_local1.EldHus._x = _local1.EldHus._x + 1;
}
if (timestoshake == 1) {
_local1.EldHus._x = _local1.EldHus._x - 1;
}
timestoshake = timestoshake - 1;
if (timestoshake == 0) {
_local1.EldHus._x = _local1.EldHus._x + 1;
}
}
function MakeBurn() {
var _local2 = _root;
if (!_local2["eld" + MaxPortal]) {
var _local1 = 0;
while (_local2["eld" + _local1]) {
_local1++;
}
_local2.attachMovie("eld", ["eld" + _local1], 440 + _local1);
_local2["eld" + _local1]._x = _local2.EldHus["Portal" + _local1]._x - 2;
_local2["eld" + _local1]._y = _local2.EldHus["Portal" + _local1]._y - 5;
_local2.attachMovie("eld2", ["eld2" + _local1], 420 + _local1);
_local2["eld2" + _local1]._x = _local2.EldHus["Portal" + _local1]._x - 10;
_local2["eld2" + _local1]._y = _local2.EldHus["Portal" + _local1]._y - 25;
Ambiens01.setVolume(50 + (_local1 * 6));
fire.start(0, 1);
}
}
function MakeFall() {
var _local1 = _root;
FallJ = 1;
while (FallJ <= FallObjects) {
if (_local1["FallMan" + FallJ]._x > -50) {
if (_local1[("FallMan" + FallJ) + "FramesBeforeFall"] != 0) {
if (_local1[("FallMan" + FallJ) + "FramesBeforeFall"] == 1) {
_local1["skrik0" + _local1["FN" + FallJ]].start(0, 1);
i = 0;
while (i <= 10) {
if (PortalMan[i] == FallJ) {
PortalMan[i] = 0;
i = 11;
}
i++;
}
}
if (_local1[("FallMan" + FallJ) + "FramesBeforeFall"] != -99) {
_local1[("FallMan" + FallJ) + "FramesBeforeFall"] = _local1[("FallMan" + FallJ) + "FramesBeforeFall"] - 1;
_local1[("FallMan" + FallJ) + "HighscoreNow"] = _local1[("FallMan" + FallJ) + "Highscore"];
}
_local1["FallMan" + FallJ].gotoAndPlay("armvev");
} else {
if (_local1["FramesToJump" + FallJ] >= 0) {
_local1["FramesToJump" + FallJ] = _local1["FramesToJump" + FallJ] - 1;
if (_local1["FramesToJump" + FallJ] < 0) {
_local1["UpPower" + FallJ] = 0;
_local1[("FallMan" + FallJ) + "MoveY"] = _local1[("FallMan" + FallJ) + "MoveY"] + pluspower;
pluspower = 0;
}
}
if (_local1["UpPower" + FallJ] == 0) {
_local1[("FallMan" + FallJ) + "MoveY"] = (_local1[("FallMan" + FallJ) + "MoveY"] + _local1["UpPower" + FallJ]) + Gravity;
} else {
_local1[("FallMan" + FallJ) + "MoveY"] = _local1[("FallMan" + FallJ) + "MoveY"] + _local1["UpPower" + FallJ];
}
_local1["FallMan" + FallJ]._rotation = _local1["FallMan" + FallJ]._rotation + _local1[("FallMan" + FallJ) + "Rotation"];
_local1["FallMan" + FallJ]._y = _local1["FallMan" + FallJ]._y + _local1[("FallMan" + FallJ) + "MoveY"];
_local1["FallMan" + FallJ]._x = _local1["FallMan" + FallJ]._x + _local1[("FallMan" + FallJ) + "MoveX"];
}
}
FallJ++;
}
}
function ADetect() {
var _local1 = _root;
FallJ = 1;
while (FallJ <= FallObjects) {
if (_local1["FallMan" + FallJ]._x > -50) {
if (_local1["FallMan" + FallJ].hitTest(_local1.Ambulans) == true) {
_local1.Ambulans.gotoAndPlay("pickup");
CountSaved = CountSaved + 1;
NumberOnStage = NumberOnStage - 1;
Highscore = Highscore + _local1[("FallMan" + FallJ) + "HighscoreNow"];
SavedInARow = SavedInARow + 1;
raddade = raddade + 1;
if (SavedInARow > 4) {
if (SavedInARow == 5) {
info = "5 r\u00E4ddade i rad! +500";
PutInfoBoxOnScreen();
Highscore = Highscore + 500;
_local1.HighscoreInterface.gotoAndPlay("update");
_local1.HighscoreInterface.tempscore = _local1.HighscoreInterface.tempscore + 500;
} else if (SavedInARow == 10) {
info = "10 r\u00E4ddade i rad! +1000";
PutInfoBoxOnScreen();
Highscore = Highscore + 1000;
_local1.HighscoreInterface.gotoAndPlay("update");
_local1.HighscoreInterface.tempscore = _local1.HighscoreInterface.tempscore + 1000;
} else if (SavedInARow == 15) {
info = "15 r\u00E4ddade i rad! +2000";
PutInfoBoxOnScreen();
Highscore = Highscore + 2000;
_local1.HighscoreInterface.gotoAndPlay("update");
_local1.HighscoreInterface.tempscore = _local1.HighscoreInterface.tempscore + 2000;
} else if (SavedInARow == 20) {
info = "20 r\u00E4ddade i rad! +3000";
PutInfoBoxOnScreen();
Highscore = Highscore + 3000;
_local1.HighscoreInterface.gotoAndPlay("update");
_local1.HighscoreInterface.tempscore = _local1.HighscoreInterface.tempscore + 3000;
} else if (SavedInARow == 25) {
info = "25 r\u00E4ddade i rad! +4000";
PutInfoBoxOnScreen();
Highscore = Highscore + 4000;
_local1.HighscoreInterface.gotoAndPlay("update");
_local1.HighscoreInterface.tempscore = _local1.HighscoreInterface.tempscore + 4000;
} else if (SavedInARow == 30) {
info = "30 r\u00E4ddade i rad! +5000";
PutInfoBoxOnScreen();
Highscore = Highscore + 5000;
_local1.HighscoreInterface.gotoAndPlay("update");
_local1.HighscoreInterface.tempscore = _local1.HighscoreInterface.tempscore + 5000;
} else if (SavedInARow > 30) {
info = SavedInARow + " r\u00E4ddade i rad! +1000";
PutInfoBoxOnScreen();
Highscore = Highscore + 1000;
_local1.HighscoreInterface.gotoAndPlay("update");
_local1.HighscoreInterface.tempscore = _local1.HighscoreInterface.tempscore + 1000;
}
}
PrintScore = _local1[("FallMan" + FallJ) + "HighscoreNow"];
PrintX = _local1["FallMan" + FallJ]._x;
PrintY = _local1["FallMan" + FallJ]._y;
PutGreenBoxOnScreen();
var _local3 = 12 / (10 + ThisLevel);
if (random(100) < (18 * _local3)) {
HeartJ = 1;
while (HeartJ <= 2) {
if (_local1["Heart" + HeartJ]._x < 0) {
_local1["Heart" + HeartJ].gotoAndPlay("start");
_local1["Heart" + HeartJ]._x = _local1.ambulans._x;
_local1["Heart" + HeartJ]._y = _local1.ambulans._y;
HeartJ = 4;
}
HeartJ++;
}
} else if (random(100) < (60 * _local3)) {
var _local2 = random(3) + 1;
if (_local1["Coin" + _local2]._x < -30) {
_local1["Coin" + _local2].gotoAndPlay("start");
_local1["Coin" + _local2]._x = _local1.ambulans._x;
_local1["Coin" + _local2]._y = _local1.ambulans._y;
} else {
CJ = 1;
while (CJ <= 3) {
if (_local1["Coin" + CJ]._x < 0) {
_local1["Coin" + CJ].gotoAndPlay("start");
_local1["Coin" + CJ]._x = _local1.ambulans._x;
_local1["Coin" + CJ]._y = _local1.ambulans._y;
CJ = 4;
}
CJ++;
}
}
} else if (random(100) < (25 * _local3)) {
if (!_local1.Bonus) {
if (TBo <= 5) {
_local1.attachMovie(["B" + TBo], "Bonus", 44 + TBo);
Bonus._x = _local1.ambulans._x + 10;
Bonus._y = _local1.ambulans._y - 2;
}
}
}
_local1["FallMan" + FallJ]._x = -80;
_local1["FallMan" + FallJ].gotoAndStop(1);
}
}
FallJ++;
}
}
function FallDetect() {
var _local1 = _root;
FallJ = 1;
while (FallJ <= FallObjects) {
if (_local1["FallMan" + FallJ]._x > -50) {
if ((_local1["FallMan" + FallJ]._y > 410) || (_local1["FallMan" + FallJ]._x < 0)) {
forlorade = forlorade + 1;
SavedInARow = 0;
FireManEnergy = FireManEnergy - 10;
_local1.energy.Energybarl._width = 2 * FireManEnergy;
_local1.energy.Energybarl._x = 0;
_local1.energy.ECol._x = -2 * FireManEnergy;
_local1.energy.gotoAndPlay("FillDown");
CountLost = CountLost + 1;
NumberOnStage = NumberOnStage - 1;
if ((Highscore - _local1[("FallMan" + FallJ) + "HighscoreNow"]) < 0) {
PrintScore = Highscore * -1;
Highscore = 0;
} else {
PrintScore = (-1 * _local1[("FallMan" + FallJ) + "HighscoreNow"]) + (ThisLevel * 2);
Highscore = Highscore - _local1[("FallMan" + FallJ) + "HighscoreNow"];
}
PrintX = _local1["FallMan" + FallJ]._x;
PrintY = _local1["FallMan" + FallJ]._y;
PutRedBoxOnScreen();
if (random(2) == 1) {
_local1.attachMovie("angel", ["Dead" + FallJ], 70 + FallJ);
} else {
_local1.attachMovie("devil", ["Dead" + FallJ], 70 + FallJ);
}
_local1["Dead" + FallJ]._x = _local1["FallMan" + FallJ]._x;
_local1["Dead" + FallJ]._y = _local1["FallMan" + FallJ]._y - 25;
_local1["FallMan" + FallJ]._x = -80;
_local1["FallMan" + FallJ].gotoAndStop(1);
}
}
FallJ++;
}
}
function JumpDetect() {
var _local1 = _root;
FallJ = 1;
while (FallJ <= FallObjects) {
if (_local1["FallMan" + FallJ]._x > -50) {
if (_local1["FramesToJump" + FallJ] == -1) {
if (_local1[("FallMan" + FallJ) + "MoveY"] > 4.5) {
var _local2 = _local1.Fireman._height;
var _local3 = _local1.Fireman._width;
if ((_local1["FallMan" + FallJ]._y >= (_local1.Fireman._y - ((1 * _local2) / 4))) && (_local1["FallMan" + FallJ]._y <= (_local1.Fireman._y + ((3 * _local2) / 4)))) {
if ((_local1["FallMan" + FallJ]._x <= (_local1.Fireman._x + (_local3 / 2.8))) && (_local1["FallMan" + FallJ]._x >= (_local1.Fireman._x - (_local3 / 2.8)))) {
_local1["FallManSc" + FallJ] = 0;
_local1[("FallMan" + FallJ) + "Rotation"] = random(20) - 10;
_local1["FallMan" + FallJ].gotoAndPlay("sitfall");
_local1.FireMan.gotoAndPlay("hit");
_local1["FramesToJump" + FallJ] = 4;
if (FiremanLessJump < _local1[("FallMan" + FallJ) + "MoveY"]) {
_local1["UpPower" + FallJ] = (((_local1[("FallMan" + FallJ) + "MoveY"] * -2) * 0.9) - (FiremanStrength - _local1[("FallMan" + FallJ) + "Weight"])) / _local1["FramesToJump" + FallJ];
} else {
_local1["UpPower" + FallJ] = (_local1[("FallMan" + FallJ) + "MoveY"] * -2) / _local1["FramesToJump" + FallJ];
}
if (Math.abs(_local1["FallMan" + FallJ]._x - _local1.Fireman._x) > 15) {
_local1[("FallMan" + FallJ) + "MoveX"] = _local1[("FallMan" + FallJ) + "MoveX"] + ((_local1["FallMan" + FallJ]._x - _local1.Fireman._x) / 12);
_local1[("FallMan" + FallJ) + "Rotation"] = (_local1[("FallMan" + FallJ) + "Rotation"] / 2) + ((_local1["FallMan" + FallJ]._x - _local1.Fireman._x) / 2);
_local1["b\u00E5ren02"].start(0, 1);
} else {
_local1["b\u00E5ren01"].start(0, 1);
}
}
}
}
}
}
FallJ++;
}
}
function HeartDetect() {
var _local1 = _root;
if (_local1.Bonus) {
if (_local1.Bonus.Hearttaken == 0) {
if (_local1.FireMan.hitTest(_local1.Bonus)) {
var _local2;
while (_local1["Makebigger" + _local2]) {
_local2++;
}
_local1.attachmovie(["Makebigger" + _local2], "Makebigger", 2000 + _local2);
Highscore = Highscore + 100;
PrintScore = 100;
PrintX = _local1.Bonus._x;
PrintY = _local1.Bonus._y;
PutGreenBoxOnScreen();
_local1.Bonus.hearttaken = 1;
}
}
}
HeartJ = 1;
while (HeartJ <= 3) {
if (_local1["Coin" + HeartJ]._x > 0) {
if (_local1["Coin" + HeartJ]._y > 350) {
if (_local1["Coin" + HeartJ].Hearttaken == 0) {
if (_local1.FireMan.hitTest(_local1["Coin" + HeartJ])) {
Myntljud01.start(0, 1);
if (HeartJ == 1) {
var _local3 = 100;
} else if (HeartJ == 2) {
var _local3 = 200;
} else {
var _local3 = 500;
}
Highscore = Highscore + _local3;
PrintScore = _local3;
PrintX = _local1["Coin" + HeartJ]._x;
PrintY = _local1["Coin" + HeartJ]._y;
PutGreenBoxOnScreen();
while (_local1["Makebigger" + _local2]) {
_local2++;
}
_local1.attachmovie(["Makebigger" + _local2], "Makebigger", 2000 + _local2);
_local1["Coin" + HeartJ].Hearttaken = 1;
_local1["Coin" + HeartJ].gotoAndStop(1);
_local1["Coin" + HeartJ]._x = -100;
}
}
}
}
HeartJ++;
}
HeartJ = 1;
while (HeartJ <= 2) {
if (_local1["Heart" + HeartJ]._x > 0) {
if (_local1["Heart" + HeartJ]._y > 350) {
if (_local1["Heart" + HeartJ].Hearttaken == 0) {
if (_local1.FireMan.hitTest(_local1["Heart" + HeartJ])) {
FireManEnergy = FireManEnergy + 20;
if (FireManEnergy >= 100) {
FireManEnergy = 100;
}
_local1.energy.Energybarl._width = 2 * FireManEnergy;
_local1.energy.Energybarl._x = 0;
_local1.energy.ECol._x = -2 * FireManEnergy;
_local1.energy.gotoAndPlay("FillUp");
_local1["Heart" + HeartJ].gotoAndPlay("taken");
}
}
}
}
HeartJ++;
}
}
function BonusDetect() {
var _local2 = _root;
var _local1 = 1;
while (_local1 <= 8) {
if (_local2["Bo" + _local1]) {
if (_local2.FireMan.hitTest(_local2["Bo" + _local1])) {
Myntljud01.start(0, 1);
var _local3;
while (_local2["Makebigger" + _local3]) {
_local3++;
}
_local2.attachmovie(["Makebigger" + _local3], "Makebigger", 2000 + _local3);
var vinst = _local2["Bo" + _local1].Reward;
Highscore = Highscore + vinst;
PrintScore = vinst;
PrintX = _local2["Bo" + _local1]._x;
PrintY = _local2["Bo" + _local1]._y;
PutGreenBoxOnScreen();
_local2["Bo" + _local1].removeMovieClip();
}
}
_local1++;
}
}
function MoveA() {
var _local1 = _root;
ClosestMan = 400;
FallJ = 1;
while (FallJ <= FallObjects) {
if ((_local1["FallMan" + FallJ]._x <= AmbulansMaxX) && (_local1["FallMan" + FallJ]._x > (AmbulansMinX - 20))) {
if ((_local1.Ambulans._y - _local1["FallMan" + FallJ]._y) < ClosestMan) {
ClosestMan = _local1.Ambulans._y - _local1["FallMan" + FallJ]._y;
if (_local1["FallMan" + FallJ]._x < _local1.Ambulans._x) {
AmbulansMove = -AmbulansSpeed;
} else {
AmbulansMove = AmbulansSpeed;
}
}
} else if (ClosestMan == 400) {
if ((_local1.Ambulans._x < (AmbulansCenter - AmbulansSpeed)) || (_local1.Ambulans._x > (AmbulansCenter + AmbulansSpeed))) {
if (AmbulansCenter < _local1.Ambulans._x) {
AmbulansMove = -AmbulansSpeed;
} else {
AmbulansMove = AmbulansSpeed;
}
}
}
FallJ++;
}
if (AmbulansMove != 0) {
if ((_local1.Ambulans._x + AmbulansMove) > AmbulansMinX) {
_local1.Ambulans._x = _local1.Ambulans._x + AmbulansMove;
}
AmbulansMove = 0;
}
}
function LowScore() {
var _local1 = _root;
FallJ = 1;
while (FallJ <= FallObjects) {
if (_local1[("FallMan" + FallJ) + "HighscoreNow"] > 5) {
_local1[("FallMan" + FallJ) + "HighscoreNow"] = _local1[("FallMan" + FallJ) + "HighscoreNow"] - 1;
if (_local1[("FallMan" + FallJ) + "HighscoreNow"] > 50) {
_local1[("FallMan" + FallJ) + "HighscoreNow"] = _local1[("FallMan" + FallJ) + "HighscoreNow"] - 1;
if (_local1[("FallMan" + FallJ) + "HighscoreNow"] > 100) {
_local1[("FallMan" + FallJ) + "HighscoreNow"] = _local1[("FallMan" + FallJ) + "HighscoreNow"] - 1;
}
}
}
FallJ++;
}
}
function ReleaseNewFallMan() {
var _local1 = _root;
if (NumberOnStage <= MaxNumberOnStage) {
if (0 < NumberToFall) {
LastM++;
if (LastM > 2) {
if ((random(1000) < ChancePeople) || (LastM > 15)) {
var _local2 = MaxPortal + 1;
ThePortal = random(_local2);
Gubbeslump = random(6) + 1;
if (PortalMan[ThePortal] == 0) {
FallJ = Gubbeslump;
while (FallJ <= FallObjects) {
if (_local1["FallMan" + FallJ]._x < -50) {
STG = STG - 1;
_local1.CountMan.StillToJump.text = STG;
_local1["FallManSc" + FallJ] = 0;
LastM = 0;
PortalMan[ThePortal] = FallJ;
NumberOnStage = NumberOnStage + 1;
NumberToFall = NumberToFall - 1;
_local1["FallMan" + FallJ]._x = _local1.EldHus["Portal" + ThePortal]._x + 6;
_local1["FallMan" + FallJ]._y = _local1.EldHus["Portal" + ThePortal]._y - 27;
_local1["UpPower" + FallJ] = 0;
_local1[("FallMan" + FallJ) + "MoveX"] = 1.5 + (random(20) / 8);
_local1[("FallMan" + FallJ) + "MoveY"] = -4;
_local1["FallMan" + FallJ]._rotation = 0;
_local1[("FallMan" + FallJ) + "Rotation"] = random(4) + 1;
_local1[("FallMan" + FallJ) + "FramesBeforeFall"] = FBF;
_local1["FallMan" + FallJ].gotoAndPlay("Begin");
FallJ = FallObjects + 1;
}
FallJ++;
}
}
}
}
}
}
}
function releaseNewBonus() {
var _local1 = _root;
if (MaxBo != 0) {
BoJ = 1;
while (BoJ <= 8) {
if (!_local1["Bo" + BoJ]) {
if (MaxBo == 30) {
info = "Bonus!!!";
PutInfoBoxOnScreen();
}
thePortal = random(4);
_local1.attachMovie(["Bo" + (random(3) + 1)], ["Bo" + BoJ], 50 + Boj);
_local1["Bo" + BoJ]._x = _local1.EldHus["Portal" + thePortal]._x;
_local1["Bo" + BoJ]._y = _local1.EldHus["Portal" + thePortal]._y;
BoJ = 10;
MaxBo--;
}
BoJ++;
}
} else {
MaxBo = 30;
TBo = 1;
info = "R\u00E4dda m\u00E4nniskorna!";
PutInfoBoxOnScreen();
_local1.ingameBonus.gotoAndStop(1);
}
}
function PutInfoBoxOnScreen() {
var _local2 = _root;
var _local1 = 1;
while (_local2["IBox" + _local1]) {
_local1++;
}
_local2.attachMovie(["IB"], ["IBox" + _local1], 110 + _local1);
_local2["IBox" + _local1].InfoBox.text = info;
_local2["IBox" + _local1]._x = 275;
_local2["IBox" + _local1]._y = 130 + (30 * _local1);
}
function PutGreenBoxOnScreen() {
var _local2 = _root;
var _local1 = 1;
while (_local2["BoxG" + _local1]) {
_local1++;
}
_local2.attachMovie("ScoreG", ["BoxG" + _local1], 1310 + _local1);
_local2["BoxG" + _local1].ScoreBox.text = PrintScore;
_local2["BoxG" + _local1]._x = PrintX;
_local2["BoxG" + _local1]._y = PrintY;
if (_local2["BoxG" + _local1]._x < 25) {
_local2["BoxG" + _local1]._x = 25;
}
if (_local2["BoxG" + _local1]._x > 525) {
_local2["BoxG" + _local1]._x = 500;
}
}
function PutRedBoxOnScreen() {
var _local2 = _root;
var _local1 = 1;
while (_local2["BoxR" + _local1]) {
_local1++;
}
_local2.attachMovie("ScoreR", ["BoxR" + _local1], 1210 + _local1);
_local2["BoxR" + _local1].ScoreBox.text = PrintScore;
_local2["BoxR" + _local1]._x = PrintX;
_local2["BoxR" + _local1]._y = PrintY;
if (_local2["BoxR" + _local1]._x < 25) {
_local2["BoxR" + _local1]._x = 25;
}
if (_local2["BoxR" + _local1]._x > 525) {
_local2["BoxR" + _local1]._x = 500;
}
}
function LevelDetect() {
var _local1 = _root;
if (FireManenergy <= 0) {
BoJ = 1;
while (BoJ <= 8) {
if (_local1["Bo" + BoJ]) {
_local1["Bo" + BoJ].removeMovieClip();
}
BoJ++;
}
var _local2 = 0;
BoJ = 1;
while (BoJ <= 8) {
if (_local1["IBox" + _local2]) {
_local1["IBox" + _local2].removeMovieClip();
}
BoJ++;
}
if (_local1.Bonus) {
_local1.Bonus.removeMovieClip();
}
gotoAndPlay ("FinishedLevel");
} else if ((NumbertoFall + NumberOnStage) == 0) {
if (Levelgame[ArrayCount] == "Start") {
ArrayCount = ArrayCount + 1;
info = Levelgame[ArrayCount];
PutInfoBoxOnScreen();
ArrayCount = ArrayCount + 1;
MaxNumberOnStage = Levelgame[ArrayCount] - 1;
ArrayCount = ArrayCount + 1;
NumberToFall = Levelgame[ArrayCount];
ArrayCount = ArrayCount + 1;
ChancePeople = Levelgame[ArrayCount];
ArrayCount = ArrayCount + 1;
FBF = Levelgame[ArrayCount];
ArrayCount = ArrayCount + 1;
MaxPortal = int(Levelgame[ArrayCount]);
ArrayCount = ArrayCount + 1;
plus = Levelgame[ArrayCount];
ArrayCount = ArrayCount + 1;
} else {
ChancePeople = 0;
slutabana = 1;
BoJ = 1;
while (BoJ <= 8) {
if (_local1["Bo" + BoJ]) {
slutabana = 0;
}
BoJ++;
}
var _local2 = 0;
_local2 = 1;
while (_local2 <= 3) {
if (_local1["IBox" + _local2]) {
slutabana = 0;
}
_local2++;
}
BoxJ = 1;
while (BoxJ <= 6) {
if (_local1["BoxG" + BoxJ]._x > 0) {
slutabana = 0;
}
BoxJ++;
}
RBoxJ = 1;
while (RBoxJ <= 6) {
if (_local1["BoxR" + RBoxJ]._x > 0) {
slutabana = 0;
}
RBoxJ++;
}
HeartJ = 1;
while (HeartJ <= 2) {
if (_local1["Heart" + HeartJ]._x > 0) {
slutabana = 0;
}
HeartJ++;
}
HeartJ = 1;
while (HeartJ <= 3) {
if (_local1["Coin" + HeartJ]._x > 0) {
slutabana = 0;
}
HeartJ++;
}
if (_local1.Bonus) {
slutabana = 0;
}
if (slutabana == 1) {
gotoAndPlay ("FinishedLevel");
}
}
}
}
function MoveFi() {
var _local1 = _root;
var FX = _local1.Fireman._x;
var FWi = _local1.Fireman._width;
var KeyRight = 39;
var KeyDown = 40;
if (Key.isDown(KeyDown)) {
if (_local1.FireMan.Studsmatta._y < 5) {
_local1.FireMan.Studsmatta._y = _local1.FireMan.Studsmatta._y + 1;
_local1.FireMan.FL._x = _local1.FireMan.FL._x + 1;
_local1.FireMan.FL.FLHA._rotation = _local1.FireMan.FL.FLHA._rotation + 2;
_local1.FireMan.FR.FLHA._rotation = _local1.FireMan.FR.FLHA._rotation + 2;
_local1.FireMan.FL.FLVA._rotation = _local1.FireMan.FL.FLVA._rotation + 2;
_local1.FireMan.FR.FLVA._rotation = _local1.FireMan.FR.FLVA._rotation + 2;
_local1.FireMan.FR._x = _local1.FireMan.FR._x - 1;
laddad = laddad + 1;
}
Down = 1;
} else if (Down == 1) {
FallJ = 1;
while (FallJ <= FallObjects) {
if (_local1["FallMan" + FallJ]._x > -50) {
var _local2 = _local1.Fireman._height;
var _local3 = _local1.Fireman._width;
if ((_local1["FallMan" + FallJ]._y >= (_local1.Fireman._y - ((1 * _local2) / 3))) && (_local1["FallMan" + FallJ]._y <= (_local1.Fireman._y + _local2))) {
if ((_local1["FallMan" + FallJ]._x <= (_local1.Fireman._x + (_local3 / 2.8))) && (_local1["FallMan" + FallJ]._x >= (_local1.Fireman._x - (_local3 / 2.8)))) {
pluspower = _local1.FireMan.Studsmatta._y * -0.7;
}
}
}
FallJ++;
}
Down = 0;
_local1.FireMan.Studsmatta._y = 0;
_local1.FireMan.FL._x = _local1.FireMan.FL._x - (1 * laddad);
_local1.FireMan.FL.FLHA._rotation = _local1.FireMan.FL.FLHA._rotation - (2 * laddad);
_local1.FireMan.FR.FLHA._rotation = _local1.FireMan.FR.FLHA._rotation - (2 * laddad);
_local1.FireMan.FL.FLVA._rotation = _local1.FireMan.FL.FLVA._rotation - (2 * laddad);
_local1.FireMan.FR.FLVA._rotation = _local1.FireMan.FR.FLVA._rotation - (2 * laddad);
_local1.FireMan.FR._x = _local1.FireMan.FR._x + (1 * laddad);
laddad = 0;
}
if (Key.isDown(KeyRight)) {
FiremanMoveX = FiremanMoveX + FiremanSpeed;
if (FireManMoveX > FiremanMaxSpeed) {
FireManMoveX = FiremanMaxSpeed;
}
} else {
var KeyLeft = 37;
if (Key.isDown(KeyLeft)) {
FiremanMoveX = FiremanMoveX - FiremanSpeed;
if (FireManMoveX < (-FiremanMaxSpeed)) {
FireManMoveX = -FiremanMaxSpeed;
}
}
}
if ((FiremanMoveX > -2) && (FireManMoveX < 2)) {
if (FW == 1) {
_local1.Fireman.FL.gotoAndPlay("stand");
_local1.Fireman.FR.gotoAndPlay("stand");
}
FiremanMoveX = 0;
} else if (FW == 0) {
_local1.Fireman.FL.gotoAndPlay("walk");
_local1.Fireman.FR.gotoAndPlay("walk");
}
FiremanMoveX = FiremanMoveX * FiremanFriction;
if (((FX + (FWi / 2)) + FiremanMoveX) >= _local1.Block._x) {
if (FiremanMoveX > 0) {
FiremanMoveX = 0;
FX = (_local1.Block._x + 4) - (FWi / 2);
}
} else if ((FX - (FWi / 2)) <= _local1.EldHus.HS._x) {
if (FiremanMoveX < 0) {
FiremanMoveX = 0;
}
}
_local1.Fireman._x = FX + FiremanMoveX;
}
Instance of Symbol 905 MovieClip "Actions" in Frame 99
on (release) {
var i = 0;
while (i < 10) {
i++;
}
i = 0;
while (i < 10) {
i++;
}
}
onClipEvent (load) {
var actiontime = new Array();
var Frametime = new Array();
var GC = 0;
var timestogo = 0;
}
onClipEvent (enterFrame) {
Frametime[GC] = Frametime[GC] + (getTimer() - GTimer);
var Gtimer = getTimer();
var ActionTimer = getTimer();
GC++;
if (GC >= 10) {
GC = 0;
timestogo++;
}
if (_root.Tbo == 6) {
if (_root.NumberOnStage == 0) {
_root.MoveFi();
if (((((GC == 1) || (GC == 3)) || (GC == 5)) || (GC == 7)) || (GC == 9)) {
_root.HeartDetect();
_root.BonusDetect();
}
if ((GC == 1) || (GC == 5)) {
_root.FallDetect();
}
if (GC == 1) {
_root.releaseNewBonus();
}
} else {
_root.MakeFall();
_root.MoveFi();
_root.JumpDetect();
_root.MoveA();
_root.FallDetect();
if (((((GC == 1) || (GC == 3)) || (GC == 5)) || (GC == 7)) || (GC == 9)) {
_root.HeartDetect();
_root.BonusDetect();
}
if ((((GC == 2) || (GC == 4)) || (GC == 6)) || (GC == 8)) {
_root.ADetect();
}
if (GC == 0) {
_root.LowScore();
_root.LevelDetect();
}
}
} else {
_root.MakeFall();
_root.MoveFi();
_root.JumpDetect();
_root.MoveA();
_root.FallDetect();
if (((((GC == 1) || (GC == 3)) || (GC == 5)) || (GC == 7)) || (GC == 9)) {
_root.HeartDetect();
_root.BonusDetect();
}
if ((((GC == 2) || (GC == 4)) || (GC == 6)) || (GC == 8)) {
_root.ADetect();
}
if ((GC == 1) || (GC == 5)) {
if (timestogo == 5) {
var i = 0;
while (i < 10) {
actiontime[i] = 0;
Frametime[i] = 0;
i++;
}
}
_root.scream();
}
if (GC == 0) {
_root.LevelDetect();
_root.LowScore();
}
if (GC == 7) {
_root.ReleaseNewFallMan();
}
if (GC == 2) {
_root.MakeBurn();
}
}
if (_root.plus == "shake") {
if ((((GC == 2) || (GC == 4)) || (GC == 6)) || (GC == 8)) {
if (_root.timestoshake != 0) {
_root.shakehouse();
} else if (random(100) < 5) {
_root.shakehouse();
}
}
}
actiontime[GC] = actiontime[GC] + (getTimer() - ActionTimer);
}
Frame 100
gotoAndPlay ("LoopGame");
Frame 101
Frame 102
FallJ = 1;
while (FallJ <= FallObjects) {
_root["FallMan" + FallJ].removeMovieClip();
FallJ++;
}
_root.CountMan.removeMovieClip();
this.sekunder.text = int(((getTimer() - _root.thisleveltimer) - PauseTime) / 1000) + " s";
sekplay = sekplay + int(((getTimer() - _root.thisleveltimer) - PauseTime) / 1000);
Key.removeListener(pauseListener);
Key.removeListener(QualityListener);
if (FireManEnergy > 0) {
stop();
} else {
gotoAndPlay ("GameOver");
}
Frame 104
Key.removeListener(pauseListener);
Key.removeListener(QualityListener);
_root.attachMovie("Fadein", "fade", 22100);
_root.TotalBonus.text = "Po\u00E4ng: " + Highscore;
var BurnJ = 0;
while (_root["eld" + BurnJ]) {
_root["eld" + BurnJ].removeMovieClip();
_root["eld2" + BurnJ].removeMovieClip();
BurnJ++;
}
var j = 0;
while (_root["splat" + j]) {
_root["splat" + j].removeMovieClip();
j++;
}
_root.CountMan.removeMovieClip();
_root.FireMan.removeMovieClip();
_root.Block.removeMovieClip();
_root.Ambulans.removeMovieClip();
sekplay = (sekplay + int((getTimer() - _root.thisleveltimer) / 1000)) - (PauseTime / 1000);
play();
Frame 105
PlayGame = new LoadVars();
PlayGame.game_id = 2;
PlayGame.score = Highscore;
PlayGame.gametime = int(sekplay);
PlayGame.level = ThisLevel;
PlayGame.serial = random(10000);
PlayGame.type = "end";
PlayGame.sendAndLoad("http://www.gameahead.com/com_gamelog.php", PlayGame, "POST");
PlayGame.onLoad = function (success4) {
if (success4) {
gotoAndPlay ("ScoreOK");
} else {
gotoAndPlay ("ScoreOK");
}
};
stop();
Frame 107
_root.RA.text = "r\u00E4ddade m\u00E4nniskor: " + raddade;
_root.FO.text = "f\u00F6rlorade m\u00E4nniskor: " + forlorade;
_root.TotalBonus.text = "po\u00E4ng: " + Highscore;
_root.speltid.text = ("speltid (effektiv): " + int(sekplay)) + " sekunder";
_root.sbana.text = "sista bana: " + ThisLevel;
procent = raddade / (forlorade + raddade);
_root.traff.text = ("tr\u00E4ffs\u00E4kerhet: " + int(procent * 100)) + "%";
Frame 135
Frame 136
stop();
Frame 137
if (_root.ML == 1) {
music.start(0, 999);
_root.music.setVolume(60);
}
_root.attachMovie("Fadein", "fade", 22100);
_root.TotalBonus.text = "Po\u00E4ng: " + Highscore;
var BurnJ = 0;
while (_root["eld" + BurnJ]) {
_root["eld" + BurnJ].removeMovieClip();
_root["eld2" + BurnJ].removeMovieClip();
BurnJ++;
}
var j = 0;
while (_root["splat" + j]) {
_root["splat" + j].removeMovieClip();
j++;
}
_root.CountMan.removeMovieClip();
_root.FireMan.removeMovieClip();
_root.Block.removeMovieClip();
_root.Ambulans.removeMovieClip();
_root.RA.text = "r\u00E4ddade m\u00E4nniskor: " + raddade;
_root.FO.text = "f\u00F6rlorade m\u00E4nniskor: " + forlorade;
_root.TotalBonus.text = "po\u00E4ng: " + Highscore;
_root.speltid.text = ("speltid (effektiv): " + int(sekplay)) + " sekunder";
_root.sbana.text = "sista bana: " + ThisLevel;
procent = raddade / (forlorade + raddade);
_root.traff.text = ("tr\u00E4ffs\u00E4kerhet: " + int(procent * 100)) + "%";
Frame 138
PlayGame = new LoadVars();
PlayGame.game_id = 2;
PlayGame.score = Highscore;
PlayGame.gametime = int(sekplay);
PlayGame.level = ThisLevel;
PlayGame.serial = random(10000);
PlayGame.type = "end";
PlayGame.sendAndLoad("http://www.gameahead.com/com_gamelog.php", PlayGame, "POST");
PlayGame.onLoad = function (success2) {
if (success2) {
gotoAndPlay ("Congood");
} else {
gotoAndPlay ("Congood");
}
};
stop();
Frame 139
stop();
Symbol 6 MovieClip [ScoreR] Frame 2
_root.HighscoreInterface.gotoAndPlay("update");
_root.HighscoreInterface.tempscore = _root.HighscoreInterface.tempscore + int(this.ScoreBox.text);
Symbol 6 MovieClip [ScoreR] Frame 25
this.removeMovieClip();
Symbol 9 MovieClip [ScoreG] Frame 2
_root.HighscoreInterface.gotoAndPlay("update");
_root.HighscoreInterface.tempscore = _root.HighscoreInterface.tempscore + int(this.ScoreBox.text);
Symbol 9 MovieClip [ScoreG] Frame 25
this.removeMovieClip();
Symbol 25 MovieClip [Makebigger] Frame 1
this._rotation = 0;
_root.FireMan._xscale = _root.FireMan._xscale + 10;
_root.FireMan._yscale = _root.FireMan._yscale + 10;
Symbol 25 MovieClip [Makebigger] Frame 2
_root.FireMan._xscale = _root.FireMan._xscale - 4;
_root.FireMan._yscale = _root.FireMan._yscale - 4;
Symbol 25 MovieClip [Makebigger] Frame 3
_root.FireMan._xscale = _root.FireMan._xscale - 3;
_root.FireMan._yscale = _root.FireMan._yscale - 3;
Symbol 25 MovieClip [Makebigger] Frame 4
_root.FireMan._xscale = _root.FireMan._xscale - 3;
_root.FireMan._yscale = _root.FireMan._yscale - 3;
this._x = -100;
Symbol 25 MovieClip [Makebigger] Frame 5
this.removeMovieClip();
Symbol 50 MovieClip [Bo3] Frame 1
play();
Heart1x = (random(45) / 10) + 0.4;
Heart1y = (-1 * (random(180) / 10)) - 2;
slumprotation = -random(20);
Reward = 100;
Symbol 50 MovieClip [Bo3] Frame 3
if (_root.pgame == 0) {
if (this._y >= 400) {
if (Heart1y > 0) {
Heart1y = (-1 * Heart1y) * 0.9;
}
}
Heart1y = Heart1y + (_root.Gravity * 1.2);
this._y = this._y + Heart1y;
this._x = this._x + Heart1x;
this._rotation = this._rotation + slumprotation;
}
if (this._x > 560) {
this.removeMovieClip();
} else {
gotoAndPlay ("loop");
}
Symbol 56 MovieClip Frame 1
stop();
Symbol 59 MovieClip [Loading] Frame 1
my = -10;
grav = 0.9;
this.loadtext.text = int(100 * (_root.getBytesLoaded() / _root.getBytesTotal())) + "%";
Symbol 59 MovieClip [Loading] Frame 2
my = (my + grav) * 0.95;
this.boll._y = this.boll._y + my;
if (this.boll._y >= 24) {
if (my > 0) {
this.loadtext.text = int(100 * (_root.getBytesLoaded() / _root.getBytesTotal())) + "%";
this.boll.gotoAndPlay("studs");
my = my * -1;
if (my > -4) {
my = -10;
}
}
}
Symbol 59 MovieClip [Loading] Frame 3
gotoAndPlay ("loop");
Symbol 70 Button
on (release) {
play();
}
Symbol 72 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 2
stop();
Symbol 109 MovieClip Frame 10
gotoAndPlay ("start");
Symbol 117 MovieClip [gubbe1] Frame 1
stop();
Symbol 117 MovieClip [gubbe1] Frame 2
_root.FallMan1.body01.gotoAndPlay("close");
Symbol 117 MovieClip [gubbe1] Frame 44
gotoAndPlay ("armvev");
Symbol 117 MovieClip [gubbe1] Frame 60
gotoAndPlay ("loop");
Symbol 128 MovieClip [gubbe2] Frame 1
stop();
Symbol 128 MovieClip [gubbe2] Frame 44
gotoAndPlay ("armvev");
Symbol 128 MovieClip [gubbe2] Frame 55
gotoAndPlay ("Begin");
Symbol 139 MovieClip [gubbe3] Frame 1
stop();
Symbol 139 MovieClip [gubbe3] Frame 44
gotoAndPlay ("armvev");
Symbol 139 MovieClip [gubbe3] Frame 45
stop();
Symbol 150 MovieClip [gubbe4] Frame 1
stop();
Symbol 150 MovieClip [gubbe4] Frame 44
gotoAndPlay ("armvev");
Symbol 150 MovieClip [gubbe4] Frame 45
stop();
Symbol 161 MovieClip [gubbe5] Frame 44
gotoAndPlay ("armvev");
Symbol 161 MovieClip [gubbe5] Frame 45
stop();
Symbol 171 MovieClip [gubbe6] Frame 44
gotoAndPlay ("armvev");
Symbol 171 MovieClip [gubbe6] Frame 45
stop();
Symbol 181 MovieClip [gubbe7] Frame 44
gotoAndPlay ("armvev");
Symbol 181 MovieClip [gubbe7] Frame 45
stop();
Symbol 192 MovieClip [gubbe8] Frame 44
gotoAndPlay ("armvev");
Symbol 192 MovieClip [gubbe8] Frame 45
stop();
Symbol 203 MovieClip [gubbe9] Frame 44
gotoAndPlay ("armvev");
Symbol 203 MovieClip [gubbe9] Frame 45
stop();
Symbol 213 MovieClip [gubbe10] Frame 44
gotoAndPlay ("armvev");
Symbol 213 MovieClip [gubbe10] Frame 45
stop();
Symbol 223 MovieClip [gubbe11] Frame 44
gotoAndPlay ("armvev");
Symbol 223 MovieClip [gubbe11] Frame 45
stop();
Symbol 233 MovieClip [gubbe12] Frame 44
gotoAndPlay ("armvev");
Symbol 233 MovieClip [gubbe12] Frame 45
stop();
Symbol 245 MovieClip [B1] Frame 1
play();
Heart1x = (-6 - random(12)) / 2;
Heart1y = -10 - random(9);
Hearttaken = 0;
Symbol 245 MovieClip [B1] Frame 3
if (_root.pgame == 0) {
if (this._y >= 400) {
if (Heart1y > 0) {
Heart1y = (-1 * Heart1y) * 0.9;
}
}
if (this._x <= _root.EldHus.HS._x) {
if (Heart1x < 0) {
Heart1x = -1 * Heart1x;
}
}
Heart1y = Heart1y + _root.Gravity;
this._y = this._y + Heart1y;
this._x = this._x + Heart1x;
}
if (this._x >= 560) {
this.removeMovieClip();
} else if (Hearttaken == 0) {
gotoAndPlay ("loop");
}
Symbol 245 MovieClip [B1] Frame 4
_root.TBo++;
_root.bonuss.start(0, 1);
_root.ingameBonus.gotoAndPlay("B");
this.removeMovieClip();
Symbol 270 MovieClip [Bo1] Frame 1
play();
Heart1x = (random(45) / 10) + 0.4;
Heart1y = (-1 * (random(180) / 10)) - 2;
slumprotation = -random(20);
Reward = 500;
Symbol 270 MovieClip [Bo1] Frame 3
if (_root.pgame == 0) {
if (this._y >= 400) {
if (Heart1y > 0) {
Heart1y = (-1 * Heart1y) * 0.9;
}
}
Heart1y = Heart1y + (_root.Gravity * 1.2);
this._y = this._y + Heart1y;
this._x = this._x + Heart1x;
this._rotation = this._rotation + slumprotation;
}
if (this._x > 560) {
this.removeMovieClip();
} else {
gotoAndPlay ("loop");
}
Symbol 295 MovieClip [Bo2] Frame 1
play();
Heart1x = (random(45) / 10) + 0.4;
Heart1y = (-1 * (random(180) / 10)) - 2;
slumprotation = -random(20);
Reward = 200;
Symbol 295 MovieClip [Bo2] Frame 3
if (_root.pgame == 0) {
if (this._y >= 400) {
if (Heart1y > 0) {
Heart1y = (-1 * Heart1y) * 0.9;
}
}
Heart1y = Heart1y + (_root.Gravity * 1.2);
this._y = this._y + Heart1y;
this._x = this._x + Heart1x;
this._rotation = this._rotation + slumprotation;
}
if (this._x > 560) {
this.removeMovieClip();
} else {
gotoAndPlay ("loop");
}
Symbol 301 MovieClip [B3] Frame 1
play();
Heart1x = (-6 - random(12)) / 2;
Heart1y = -10 - random(9);
Hearttaken = 0;
Symbol 301 MovieClip [B3] Frame 3
if (_root.pgame == 0) {
if (this._y >= 400) {
if (Heart1y > 0) {
Heart1y = (-1 * Heart1y) * 0.9;
}
}
if (this._x <= _root.EldHus.HS._x) {
if (Heart1x < 0) {
Heart1x = -1 * Heart1x;
}
}
Heart1y = Heart1y + _root.Gravity;
this._y = this._y + Heart1y;
this._x = this._x + Heart1x;
}
if (this._x >= 560) {
this.removeMovieClip();
} else if (Hearttaken == 0) {
gotoAndPlay ("loop");
}
Symbol 301 MovieClip [B3] Frame 4
_root.TBo++;
_root.bonuss.start(0, 1);
_root.ingameBonus.gotoAndPlay("N");
this.removeMovieClip();
Symbol 307 MovieClip [B2] Frame 1
play();
Heart1x = (-6 - random(12)) / 2;
Heart1y = -10 - random(9);
Hearttaken = 0;
Symbol 307 MovieClip [B2] Frame 3
if (_root.pgame == 0) {
if (this._y >= 400) {
if (Heart1y > 0) {
Heart1y = (-1 * Heart1y) * 0.9;
}
}
if (this._x <= _root.EldHus.HS._x) {
if (Heart1x < 0) {
Heart1x = -1 * Heart1x;
}
}
Heart1y = Heart1y + _root.Gravity;
this._y = this._y + Heart1y;
this._x = this._x + Heart1x;
}
if (this._x >= 560) {
this.removeMovieClip();
} else if (Hearttaken == 0) {
gotoAndPlay ("loop");
}
Symbol 307 MovieClip [B2] Frame 4
_root.TBo++;
_root.bonuss.start(0, 1);
_root.ingameBonus.gotoAndPlay("O");
this.removeMovieClip();
Symbol 313 MovieClip [B5] Frame 1
play();
Heart1x = (-6 - random(12)) / 2;
Heart1y = -10 - random(9);
Hearttaken = 0;
Symbol 313 MovieClip [B5] Frame 3
if (_root.pgame == 0) {
if (this._y >= 400) {
if (Heart1y > 0) {
Heart1y = (-1 * Heart1y) * 0.9;
}
}
if (this._x <= _root.EldHus.HS._x) {
if (Heart1x < 0) {
Heart1x = -1 * Heart1x;
}
}
Heart1y = Heart1y + _root.Gravity;
this._y = this._y + Heart1y;
this._x = this._x + Heart1x;
}
if (this._x >= 560) {
this.removeMovieClip();
} else if (Hearttaken == 0) {
gotoAndPlay ("loop");
}
Symbol 313 MovieClip [B5] Frame 4
_root.TBo++;
_root.bonuss.start(0, 1);
_root.ingameBonus.gotoAndPlay("S");
this.removeMovieClip();
Symbol 319 MovieClip [B4] Frame 1
play();
Heart1x = (-6 - random(12)) / 2;
Heart1y = -10 - random(9);
Hearttaken = 0;
Symbol 319 MovieClip [B4] Frame 3
if (_root.pgame == 0) {
if (this._y >= 400) {
if (Heart1y > 0) {
Heart1y = (-1 * Heart1y) * 0.9;
}
}
if (this._x <= _root.EldHus.HS._x) {
if (Heart1x < 0) {
Heart1x = -1 * Heart1x;
}
}
Heart1y = Heart1y + _root.Gravity;
this._y = this._y + Heart1y;
this._x = this._x + Heart1x;
}
if (this._x >= 560) {
this.removeMovieClip();
} else if (Hearttaken == 0) {
gotoAndPlay ("loop");
}
Symbol 319 MovieClip [B4] Frame 4
_root.TBo++;
_root.bonuss.start(0, 1);
_root.ingameBonus.gotoAndPlay("U");
this.removeMovieClip();
Symbol 321 MovieClip [IB] Frame 99
this._x = -100;
gotoAndStop (1);
this.removeMovieClip();
Symbol 354 MovieClip [eld] Frame 48
gotoAndPlay ("loop");
Symbol 385 MovieClip [eld2] Frame 45
gotoAndPlay ("loop");
Symbol 387 MovieClip [Fadein] Frame 9
this.removeMovieClip();
Symbol 393 MovieClip [Ambulans] Frame 2
stop();
Symbol 393 MovieClip [Ambulans] Frame 3
_root.ambulansklick.start(0, 1);
Symbol 393 MovieClip [Ambulans] Frame 6
gotoAndPlay ("start");
Symbol 407 MovieClip Frame 2
_root.FW = 0;
stop();
Symbol 407 MovieClip Frame 3
_root.FW = 1;
Symbol 407 MovieClip Frame 31
gotoAndPlay ("walk");
Symbol 409 MovieClip [Fireman] Frame 2
stop();
Symbol 409 MovieClip [Fireman] Frame 6
gotoAndPlay ("start");
Symbol 437 MovieClip [angel] Frame 1
slumpen = random(5) + 1;
_root["splats0" + slumpen].start(0, 1);
if (this._y > 380) {
var j = 0;
while (_root["splat" + j]) {
j++;
}
_root.attachMovie(["splat0" + slumpen], ["splat" + j], 0 + j);
_root["splat" + j]._x = this._x;
_root["splat" + j]._y = this._y + 16;
}
Symbol 437 MovieClip [angel] Frame 18
this.removeMovieClip();
Symbol 460 MovieClip [angelmeny] Frame 1
if (this._y > 380) {
var j = 0;
while (_root.MenyFall["splat" + j]) {
j++;
}
if (j < 500) {
slumpen = random(5) + 1;
_root.MenyFall.attachMovie(["splat0" + slumpen], ["splat" + j], 0 + j);
_root.MenyFall["splat" + j]._x = this._x;
_root.MenyFall["splat" + j]._y = this._y + 16;
_root["splats0" + slumpen].start(0, 1);
}
}
Symbol 460 MovieClip [angelmeny] Frame 18
this.removeMovieClip();
Symbol 484 MovieClip [devil] Frame 1
slumpen = random(5) + 1;
_root["splats0" + slumpen].start(0, 1);
if (this._y > 380) {
var j = 0;
while (_root["splat" + j]) {
j++;
}
_root.attachMovie(["splat0" + slumpen], ["splat" + j], 0 + j);
_root["splat" + j]._x = this._x;
_root["splat" + j]._y = this._y + 20;
}
Symbol 484 MovieClip [devil] Frame 18
this.removeMovieClip();
Symbol 508 MovieClip [devilmeny] Frame 1
if (this._y > 380) {
var j = 0;
while (_root.MenyFall["splat" + j]) {
j++;
}
if (j < 500) {
slumpen = random(5) + 1;
_root.MenyFall.attachMovie(["splat0" + slumpen], ["splat" + j], 0 + j);
_root.MenyFall["splat" + j]._x = this._x;
_root.MenyFall["splat" + j]._y = this._y + 16;
_root["splats0" + slumpen].start(0, 1);
}
}
Symbol 508 MovieClip [devilmeny] Frame 18
this.removeMovieClip();
Symbol 514 MovieClip [Countman] Frame 2
stop();
Symbol 517 MovieClip Frame 1
stop();
Symbol 528 MovieClip Frame 84
stop();
Symbol 546 MovieClip Frame 6
stop();
Symbol 609 MovieClip Frame 1
_root.music4.start(0, 1);
Symbol 609 MovieClip Frame 84
Symbol 609 MovieClip Frame 166
_root.music4.stop();
_root.music.start(0, 999);
_root.ML = 1;
Symbol 609 MovieClip Frame 210
Symbol 609 MovieClip Frame 346
_root.gotoAndPlay("startup");
Symbol 613 Button
on (release) {
_root.music4.stop();
_root.gotoAndPlay("Meny");
}
Symbol 615 MovieClip Frame 1
my = -10;
grav = 0.9;
Symbol 615 MovieClip Frame 2
my = (my + grav) * 0.95;
this.boll._y = this.boll._y + my;
if (this.boll._y >= 0) {
if (my > 0) {
this.boll.gotoAndPlay("studs");
my = my * -1;
if (my > -4) {
my = -10;
}
}
}
Symbol 615 MovieClip Frame 3
gotoAndPlay ("Loop");
Symbol 618 MovieClip Frame 1
if (GC == 10) {
GC = 0;
}
GC++;
FallJ = 1;
while (FallJ <= 3) {
if (this["FallMan" + FallJ]) {
this[("FallMan" + FallJ) + "MoveY"] = this[("FallMan" + FallJ) + "MoveY"] + 0.38;
this["FallMan" + FallJ]._rotation = this["FallMan" + FallJ]._rotation + this[("FallMan" + FallJ) + "Rotation"];
this["FallMan" + FallJ]._y = this["FallMan" + FallJ]._y + this[("FallMan" + FallJ) + "MoveY"];
this["FallMan" + FallJ]._x = this["FallMan" + FallJ]._x + this[("FallMan" + FallJ) + "MoveX"];
}
FallJ++;
}
FallJ = 1;
while (FallJ <= 3) {
if (this["FallMan" + FallJ]) {
this["FallMan" + FallJ].play();
if (this["FallMan" + FallJ]._y > 410) {
if (random(2) == 1) {
this.attachMovie("angelmeny", ["Dead" + FallJ], 970 + FallJ);
} else {
this.attachMovie("devilmeny", ["Dead" + FallJ], 970 + FallJ);
}
this["Dead" + FallJ]._x = this["FallMan" + FallJ]._x;
this["Dead" + FallJ]._y = this["FallMan" + FallJ]._y - 25;
this["FallMan" + FallJ].removeMovieClip();
}
}
FallJ++;
}
if (GC == 5) {
FallJ = 1;
while (FallJ <= 3) {
if (random(100) < 15) {
if (!this["FallMan" + FallJ]) {
slump = random(12) + 1;
this.attachMovie(["gubbe" + slump], ["FallMan" + FallJ], 1220 + FallJ);
this["FallMan" + FallJ]._xscale = 50;
this["FallMan" + FallJ]._yscale = 50;
this["FallMan" + FallJ]._x = random(530) + 10;
this["FallMan" + FallJ]._y = -40 + random(20);
this[("FallMan" + FallJ) + "MoveX"] = random(2) - 1;
this[("FallMan" + FallJ) + "MoveY"] = random(2) * -1;
this[("FallMan" + FallJ) + "Rotation"] = random(20) - 10;
this["FallMan" + FallJ].gotoAndPlay("armvev");
}
}
FallJ++;
}
}
Symbol 618 MovieClip Frame 2
gotoAndPlay ("loop");
Symbol 628 Button
on (release) {
_root.musklick.start(0, 1);
gotoAndPlay ("startgame");
}
Symbol 630 Button
on (release) {
_root.musklick.start(0, 1);
gotoAndPlay ("Alternativ");
}
Symbol 632 Button
on (release) {
_root.musklick.start(0, 1);
gotoAndPlay ("Instruktioner");
}
Symbol 636 Button
on (release) {
_root.musklick.start(0, 1);
}
Symbol 644 MovieClip Frame 1
stop();
Symbol 648 MovieClip Frame 1
stop();
Symbol 652 MovieClip Frame 1
stop();
Symbol 656 MovieClip Frame 1
stop();
Symbol 660 MovieClip Frame 1
stop();
Symbol 664 MovieClip Frame 1
stop();
Instance of Symbol 644 MovieClip "på" in Symbol 665 MovieClip Frame 1
onClipEvent (load) {
if (_root.ML == 1) {
gotoAndStop ("Select");
}
}
on (release) {
_root.music.start(0, 999);
_root.music.setVolume(60);
_root.Ambulansklick.setVolume(100);
gotoAndStop ("Select");
_root.ML = 1;
this._parent.el.gotoAndStop("Out");
this._parent.av.gotoAndStop("Out");
}
on (releaseOutside) {
if (_root.ML == 1) {
gotoAndStop ("Select");
} else {
gotoAndStop ("Out");
}
}
on (rollOver) {
gotoAndStop ("Over");
}
on (rollOut) {
if (_root.ML == 1) {
gotoAndStop ("Select");
} else {
gotoAndStop ("Out");
}
}
Instance of Symbol 648 MovieClip "el" in Symbol 665 MovieClip Frame 1
onClipEvent (load) {
if (_root.ML == 2) {
gotoAndStop ("Select");
}
}
on (release) {
_root.music.stop();
_root.music.setVolume(0);
_root.Ambulansklick.setVolume(100);
gotoAndStop ("Select");
_root.ML = 2;
this._parent["p\u00E5"].gotoAndStop("Out");
this._parent.av.gotoAndStop("Out");
}
on (releaseOutside) {
if (_root.ML == 2) {
gotoAndStop ("Select");
} else {
gotoAndStop ("Out");
}
}
on (rollOver) {
gotoAndStop ("Over");
}
on (rollOut) {
if (_root.ML == 2) {
gotoAndStop ("Select");
} else {
gotoAndStop ("Out");
}
}
Instance of Symbol 652 MovieClip "av" in Symbol 665 MovieClip Frame 1
onClipEvent (load) {
if (_root.ML == 0) {
gotoAndStop ("Select");
}
}
on (release) {
_root.music.stop();
_root.music.setVolume(0);
_root.Ambulansklick.setVolume(0);
gotoAndStop ("Select");
_root.ML = 0;
this._parent.el.gotoAndStop("Out");
this._parent["p\u00E5"].gotoAndStop("Out");
}
on (releaseOutside) {
if (_root.ML == 0) {
gotoAndStop ("Select");
} else {
gotoAndStop ("Out");
}
}
on (rollOver) {
gotoAndStop ("Over");
}
on (rollOut) {
if (_root.ML == 0) {
gotoAndStop ("Select");
} else {
gotoAndStop ("Out");
}
}
Instance of Symbol 656 MovieClip "klåg" in Symbol 665 MovieClip Frame 1
onClipEvent (load) {
if (_quality == "LOW") {
gotoAndStop ("Select");
}
}
on (release) {
gotoAndStop ("Select");
_quality = "LOW";
this._parent.kmellan.gotoAndStop("Out");
this._parent["kh\u00F6g"].gotoAndStop("Out");
}
on (releaseOutside) {
if (_quality == "LOW") {
gotoAndStop ("Select");
} else {
gotoAndStop ("Out");
}
}
on (rollOver) {
gotoAndStop ("Over");
}
on (rollOut) {
if (_quality == "LOW") {
gotoAndStop ("Select");
} else {
gotoAndStop ("Out");
}
}
Instance of Symbol 660 MovieClip "kmellan" in Symbol 665 MovieClip Frame 1
onClipEvent (load) {
if (_quality == "MEDIUM") {
gotoAndStop ("Select");
}
}
on (release) {
gotoAndStop ("Select");
_quality = "MEDIUM";
this._parent["kl\u00E5g"].gotoAndStop("Out");
this._parent["kh\u00F6g"].gotoAndStop("Out");
}
on (releaseOutside) {
if (_quality == "MEDIUM") {
gotoAndStop ("Select");
} else {
gotoAndStop ("Out");
}
}
on (rollOver) {
gotoAndStop ("Over");
}
on (rollOut) {
if (_quality == "MEDIUM") {
gotoAndStop ("Select");
} else {
gotoAndStop ("Out");
}
}
Instance of Symbol 664 MovieClip in Symbol 665 MovieClip Frame 1
onClipEvent (load) {
if (_quality == "HIGH") {
gotoAndStop ("Select");
}
}
on (release) {
gotoAndStop ("Select");
_quality = "HIGH";
this._parent["kl\u00E5g"].gotoAndStop("Out");
this._parent.kmellan.gotoAndStop("Out");
}
on (releaseOutside) {
if (_quality == "HIGH") {
gotoAndStop ("Select");
} else {
gotoAndStop ("Out");
}
}
on (rollOver) {
gotoAndStop ("Over");
}
on (rollOut) {
if (_quality == "HIGH") {
gotoAndStop ("Select");
} else {
gotoAndStop ("Out");
}
}
Symbol 667 Button
on (release) {
_root.musklick.start(0, 1);
gotoAndPlay ("ABack");
}
Symbol 682 MovieClip Frame 30
gotoAndPlay ("walk");
Symbol 688 MovieClip Frame 1
stop();
Symbol 688 MovieClip Frame 9
gotoAndPlay ("ingenstuds");
Symbol 715 Button
on (release) {
_root.musklick.start(0, 1);
gotoAndPlay ("IBack");
}
Symbol 716 MovieClip Frame 1
stop();
var i = 1;
while (i <= 10) {
this.High["HName" + i].text = _root.HVName[i];
this.High["HScore" + i].text = _root.HVScore[i];
i++;
}
Symbol 716 MovieClip Frame 9
var i = 1;
while (i <= 10) {
this.High["HName" + i].text = _root.HVName[i];
this.High["HScore" + i].text = _root.HVScore[i];
i++;
}
Symbol 716 MovieClip Frame 10
stop();
Symbol 716 MovieClip Frame 11
var i = 1;
while (i <= 10) {
this.High["HName" + i].text = _root.HVName[i];
this.High["HScore" + i].text = _root.HVScore[i];
i++;
}
Symbol 716 MovieClip Frame 20
gotoAndPlay ("Start");
var i = 1;
while (i <= 10) {
this.High["HName" + i].text = _root.HVName[i];
this.High["HScore" + i].text = _root.HVScore[i];
i++;
}
Symbol 716 MovieClip Frame 30
stop();
var i = 1;
while (i <= 10) {
this.High["HName" + i].text = _root.HVName[i];
this.High["HScore" + i].text = _root.HVScore[i];
i++;
}
Symbol 716 MovieClip Frame 40
gotoAndStop ("Start");
var i = 1;
while (i <= 10) {
this.High["HName" + i].text = _root.HVName[i];
this.High["HScore" + i].text = _root.HVScore[i];
i++;
}
Symbol 716 MovieClip Frame 41
var i = 0;
while (i < 10) {
this.High["HVName" + i].text = _root.HName[i];
this.High["HVScore" + i].text = _root.HScore[i];
i++;
}
var i = 1;
while (i <= 10) {
this.High["HName" + i].text = _root.HVName[i];
this.High["HScore" + i].text = _root.HVScore[i];
i++;
}
Symbol 716 MovieClip Frame 50
_root.gotoAndPlay("InitGame");
Symbol 774 MovieClip Frame 1
if (!Clip) {
Clip = 0;
}
if (Clip >= 14) {
Clip = 0;
}
Clip = Clip + 1;
this.ManClip.gotoAndStop(Clip);
Symbol 774 MovieClip Frame 80
this.gotoAndPlay("loop");
Symbol 775 MovieClip Frame 50
stop();
Symbol 777 Button
on (release) {
gotoAndPlay ("Meny");
}
Symbol 787 Button
on (keyPress "<Enter>") {
_root.gotoAndPlay("StartLevel");
}
on (release) {
_root.gotoAndPlay("StartLevel");
}
Symbol 835 MovieClip Frame 1
stop();
Hearttaken = 0;
Symbol 835 MovieClip Frame 3
play();
Heart1x = (-7 - random(10)) / 2;
Heart1y = -10 - random(9);
slumprotation = -random(20);
Hearttaken = 0;
Symbol 835 MovieClip Frame 5
if (_root.pgame == 0) {
if (this._y >= 400) {
if (Heart1y > 0) {
Heart1y = (-1 * Heart1y) * 0.9;
}
}
if (this._x <= _root.EldHus.HS._x) {
if (Heart1x < 0) {
Heart1x = -1 * Heart1x;
}
}
Heart1y = Heart1y + _root.Gravity;
this._y = this._y + Heart1y;
this._x = this._x + Heart1x;
this._rotation = this._rotation + slumprotation;
}
if (this._x >= 560) {
this._x = -100;
gotoAndStop (1);
} else if (hearttaken == 0) {
gotoAndPlay ("loop");
}
Symbol 835 MovieClip Frame 6
this._rotation = 0;
_root.FireMan._xscale = _root.FireMan._xscale + 10;
_root.FireMan._yscale = _root.FireMan._yscale + 10;
Symbol 835 MovieClip Frame 7
_root.FireMan._xscale = _root.FireMan._xscale - 4;
_root.FireMan._yscale = _root.FireMan._yscale - 4;
Symbol 835 MovieClip Frame 8
_root.FireMan._xscale = _root.FireMan._xscale - 3;
_root.FireMan._yscale = _root.FireMan._yscale - 3;
Symbol 835 MovieClip Frame 9
_root.FireMan._xscale = _root.FireMan._xscale - 3;
_root.FireMan._yscale = _root.FireMan._yscale - 3;
this._x = -100;
Symbol 836 MovieClip Frame 1
stop();
Hearttaken = 0;
Symbol 836 MovieClip Frame 3
play();
Heart1x = (-7 - random(10)) / 2;
Heart1y = -10 - random(9);
slumprotation = -random(20);
Hearttaken = 0;
Symbol 836 MovieClip Frame 5
if (_root.pgame == 0) {
if (this._y >= 400) {
if (Heart1y > 0) {
Heart1y = (-1 * Heart1y) * 0.9;
}
}
if (this._x <= _root.EldHus.HS._x) {
if (Heart1x < 0) {
Heart1x = -1 * Heart1x;
}
}
Heart1y = Heart1y + _root.Gravity;
this._y = this._y + Heart1y;
this._x = this._x + Heart1x;
this._rotation = this._rotation + slumprotation;
}
if (this._x >= 560) {
this._x = -100;
gotoAndStop (1);
} else if (hearttaken == 0) {
gotoAndPlay ("loop");
}
Symbol 836 MovieClip Frame 6
this._rotation = 0;
_root.FireMan._xscale = _root.FireMan._xscale + 10;
_root.FireMan._yscale = _root.FireMan._yscale + 10;
Symbol 836 MovieClip Frame 7
_root.FireMan._xscale = _root.FireMan._xscale - 4;
_root.FireMan._yscale = _root.FireMan._yscale - 4;
Symbol 836 MovieClip Frame 8
_root.FireMan._xscale = _root.FireMan._xscale - 3;
_root.FireMan._yscale = _root.FireMan._yscale - 3;
Symbol 836 MovieClip Frame 9
_root.FireMan._xscale = _root.FireMan._xscale - 3;
_root.FireMan._yscale = _root.FireMan._yscale - 3;
this._x = -100;
Symbol 837 MovieClip Frame 1
stop();
Hearttaken = 0;
Symbol 837 MovieClip Frame 3
play();
Heart1x = (-7 - random(10)) / 2;
Heart1y = -10 - random(9);
slumprotation = -random(20);
Hearttaken = 0;
Symbol 837 MovieClip Frame 5
if (_root.pgame == 0) {
if (this._y >= 400) {
if (Heart1y > 0) {
Heart1y = (-1 * Heart1y) * 0.9;
}
}
if (this._x <= _root.EldHus.HS._x) {
if (Heart1x < 0) {
Heart1x = -1 * Heart1x;
}
}
Heart1y = Heart1y + _root.Gravity;
this._y = this._y + Heart1y;
this._x = this._x + Heart1x;
this._rotation = this._rotation + slumprotation;
}
if (this._x >= 560) {
this._x = -100;
gotoAndStop (1);
} else if (hearttaken == 0) {
gotoAndPlay ("loop");
}
Symbol 837 MovieClip Frame 6
this._rotation = 0;
_root.FireMan._xscale = _root.FireMan._xscale + 10;
_root.FireMan._yscale = _root.FireMan._yscale + 10;
Symbol 837 MovieClip Frame 7
_root.FireMan._xscale = _root.FireMan._xscale - 4;
_root.FireMan._yscale = _root.FireMan._yscale - 4;
Symbol 837 MovieClip Frame 8
_root.FireMan._xscale = _root.FireMan._xscale - 3;
_root.FireMan._yscale = _root.FireMan._yscale - 3;
Symbol 837 MovieClip Frame 9
_root.FireMan._xscale = _root.FireMan._xscale - 3;
_root.FireMan._yscale = _root.FireMan._yscale - 3;
this._x = -100;
Symbol 840 MovieClip Frame 1
stop();
Hearttaken = 0;
Symbol 840 MovieClip Frame 2
play();
Heart1x = (-7 - random(10)) / 2;
Heart1y = -10 - random(9);
slumprotation = -random(20);
Hearttaken = 0;
Symbol 840 MovieClip Frame 4
if (_root.pgame == 0) {
if (this._y >= 400) {
if (Heart1y > 0) {
Heart1y = (-1 * Heart1y) * 0.9;
}
}
if (this._x <= _root.EldHus.HS._x) {
if (Heart1x < 0) {
Heart1x = -1 * Heart1x;
}
}
Heart1y = Heart1y + _root.Gravity;
this._y = this._y + Heart1y;
this._x = this._x + Heart1x;
this._rotation = this._rotation + slumprotation;
}
if (this._x >= 560) {
this._x = -100;
gotoAndStop (1);
} else {
gotoAndPlay ("loop");
}
Symbol 840 MovieClip Frame 5
this._x = -100;
gotoAndPlay (1);
Symbol 840 MovieClip Frame 6
Hearttaken = 1;
_root.Heart.start(0, 1);
gotoAndPlay ("next");
Symbol 840 MovieClip Frame 7
this._rotation = 0;
_root.FireMan._xscale = _root.FireMan._xscale + 10;
_root.FireMan._yscale = _root.FireMan._yscale + 10;
Symbol 840 MovieClip Frame 8
_root.FireMan._xscale = _root.FireMan._xscale - 4;
_root.FireMan._yscale = _root.FireMan._yscale - 4;
Symbol 840 MovieClip Frame 9
_root.FireMan._xscale = _root.FireMan._xscale - 3;
_root.FireMan._yscale = _root.FireMan._yscale - 3;
Symbol 840 MovieClip Frame 10
_root.FireMan._xscale = _root.FireMan._xscale - 3;
_root.FireMan._yscale = _root.FireMan._yscale - 3;
this._x = -100;
Symbol 846 MovieClip Frame 2
tempscore = int(this.OutHighscore.text);
stop();
Symbol 846 MovieClip Frame 3
play();
this.OutHighscore.text = tempscore;
Symbol 846 MovieClip Frame 4
gotoAndStop ("stop");
Symbol 846 MovieClip Frame 5
play();
this.OutHighscore.text = tempscore;
Symbol 846 MovieClip Frame 6
gotoAndStop ("stop");
Symbol 851 MovieClip Frame 2
stop();
Symbol 851 MovieClip Frame 4
gotoAndStop ("start");
Symbol 851 MovieClip Frame 6
gotoAndStop ("start");
Symbol 878 MovieClip Frame 1
stop();
Symbol 878 MovieClip Frame 2
play();
Symbol 878 MovieClip Frame 6
stop();
Symbol 878 MovieClip Frame 7
play();
Symbol 878 MovieClip Frame 11
stop();
Symbol 878 MovieClip Frame 12
play();
Symbol 878 MovieClip Frame 16
stop();
Symbol 878 MovieClip Frame 17
play();
Symbol 878 MovieClip Frame 21
stop();
Symbol 878 MovieClip Frame 26
stop();
Symbol 884 Button
on (release) {
_root.Ambiens01.stop();
Ambiens01.setVolume(0);
_root.Ljud._x = _root.Musik._x;
_root.Ljud._y = _root.Musik._y;
_root.Musik._y = -50;
ML = 2;
}
Symbol 890 Button
on (release) {
Ambulansklick.setVolume(0);
_root.Inget._x = _root.Ljud._x;
_root.Inget._y = _root.Ljud._y;
_root.Ljud._y = -50;
ML = 0;
}
Symbol 896 Button
on (release) {
_root.Ambiens01.start(0, 999);
Ambiens01.setvolume(50);
Ambulansklick.setVolume(100);
_root.Musik._x = _root.Inget._x;
_root.Musik._y = _root.Inget._y;
_root.Inget._y = -50;
ML = 1;
}
Symbol 902 Button
on (release) {
_root.pgame = 1;
_root.musklick.start(0, 1);
music.setVolume(0);
var j = 1;
while (j <= 6) {
_root["Fallman" + j].stop();
j++;
}
var BurnJ = 0;
while (_root["eld" + BurnJ]) {
_root["eld" + BurnJ].stop();
_root["eld2" + BurnJ].stop();
BurnJ++;
}
beginpause = getTimer();
_root.gotoAndStop("paused");
}
Symbol 906 Button
on (release) {
music.setVolume(50);
_root.pgame = 0;
var j = 1;
while (j <= 6) {
_root["Fallman" + j].play();
j++;
}
var BurnJ = 0;
while (_root["eld" + BurnJ]) {
_root["eld" + BurnJ].play();
_root["eld2" + BurnJ].play();
BurnJ++;
}
PauseTime = (PauseTime + getTimer()) - beginpause;
_root.gotoAndStop("LoopGame");
}
Symbol 909 MovieClip Frame 21
stop();
Symbol 921 Button
on (keyPress "<Enter>") {
_root.musklick.start(0, 1);
var BurnJ = 0;
while (_root["eld" + BurnJ]) {
_root["eld" + BurnJ].removeMovieClip();
_root["eld2" + BurnJ].removeMovieClip();
BurnJ++;
}
var j = 0;
while (_root["splat" + j]) {
_root["splat" + j].removeMovieClip();
j++;
}
_root.FireMan.removeMovieClip();
_root.Block.removeMovieClip();
_root.Ambulans.removeMovieClip();
if (_root.ThisLevel == 4) {
_root.gotoAndPlay("ConGratulations");
} else {
_root.gotoAndPlay("BeforeLevel");
}
}
on (release) {
_root.musklick.start(0, 1);
var BurnJ = 0;
while (_root["eld" + BurnJ]) {
_root["eld" + BurnJ].removeMovieClip();
_root["eld2" + BurnJ].removeMovieClip();
BurnJ++;
}
var j = 0;
while (_root["splat" + j]) {
_root["splat" + j].removeMovieClip();
j++;
}
_root.FireMan.removeMovieClip();
_root.Block.removeMovieClip();
_root.Ambulans.removeMovieClip();
if (_root.ThisLevel == 4) {
_root.gotoAndPlay("ConGratulations");
} else {
_root.gotoAndPlay("BeforeLevel");
}
}
Symbol 922 MovieClip Frame 1
_root.FireMan.stop();
Symbol 922 MovieClip Frame 10
this.statustext.text = ("Du klarade bana " + _root.ThisLevel) + "!!";
Symbol 922 MovieClip Frame 19
this.NumberSaved.text = ((("du r\u00E4ddade " + _root.CountSaved) + " av ") + (_root.CountSaved + _root.CountLost)) + " av de n\u00F6dst\u00E4llda.";
Symbol 922 MovieClip Frame 29
procent = int((_root.CountSaved / (_root.CountSaved + _root.CountLost)) * 100);
this.ProcentSaved.text = ("det inneb\u00E4r att du lyckades r\u00E4dda " + procent) + "%.";
Symbol 922 MovieClip Frame 49
bonuslevel = int((_root.ThisLevel * 100) * (_root.CountSaved / (_root.CountSaved + _root.CountLost)));
countBonus = 0;
this.Levelbonus.text = (((("klarad bana: " + _root.ThisLevel) + " * 100 * ") + procent) + "% = ") + CountBonus;
Symbol 922 MovieClip Frame 53
this.Levelbonus.text = (((("klarad bana: " + _root.ThisLevel) + " * 100 * ") + procent) + "% = ") + CountBonus;
Symbol 922 MovieClip Frame 54
if ((countBonus + 20) < bonuslevel) {
countBonus = countBonus + 20;
gotoAndPlay ("loop1");
} else {
countBonus = int(bonuslevel);
this.Levelbonus.text = (((("klarad bana: " + _root.ThisLevel) + " * 100 * ") + procent) + "% = ") + CountBonus;
}
Symbol 922 MovieClip Frame 55
bonuslevel = countBonus;
Symbol 922 MovieClip Frame 59
Bonussaved = _root.CountSaved * 25;
countBonus = 0;
this.Peoplebonus.text = (("antal r\u00E4ddade: " + _root.CountSaved) + " * 25 = ") + countBonus;
Symbol 922 MovieClip Frame 63
this.Peoplebonus.text = (("antal r\u00E4ddade: " + _root.CountSaved) + " * 25 = ") + countBonus;
Symbol 922 MovieClip Frame 64
if (countBonus < Bonussaved) {
countBonus = countBonus + 25;
gotoAndPlay ("loop2");
} else {
countBonus = int(Bonussaved);
this.Peoplebonus.text = (("antal r\u00E4ddade: " + _root.CountSaved) + " * 25 = ") + countBonus;
}
Symbol 922 MovieClip Frame 65
Bonussaved = countBonus;
Symbol 922 MovieClip Frame 69
bonustotal = Bonussaved + bonuslevel;
this.totalbonus.text = "total bonus: " + bonustotal;
Symbol 922 MovieClip Frame 79
_root.Highscore = _root.Highscore + bonustotal;
this.Totalpoang.text = "total po\u00E4ng: " + _root.Highscore;
Symbol 922 MovieClip Frame 89
stop();
Symbol 939 MovieClip Frame 40
if (_root.ML != 0) {
_root.Skrik02.start(0, 1);
}
Symbol 939 MovieClip Frame 51
if (_root.ML == 1) {
_root.music2.start(0, 999);
}
Symbol 939 MovieClip Frame 216
stop();
Symbol 943 Button
on (release) {
gotoAndPlay ("SendP");
}
Symbol 952 Button
on (keyPress "<Enter>") {
_root.musklick.start(0, 1);
if (_root.ML == 1) {
Ambiens01.stop();
music2.stop();
music.start(0, 999);
_root.music.setVolume(60);
}
gotoAndPlay ("Meny");
}
on (release) {
_root.musklick.start(0, 1);
if (_root.ML == 1) {
Ambiens01.stop();
music2.stop();
music.start(0, 999);
_root.music.setVolume(60);
}
gotoAndPlay ("Meny");
}
Symbol 960 Button
on (keyPress "<Enter>") {
_root.musklick.start(0, 1);
gotoAndPlay ("Meny");
}
on (release) {
_root.musklick.start(0, 1);
gotoAndPlay ("Meny");
}