Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("d31ca7ac", this, 10301, true);
mochi.MochiServices.connect("9dd2dfa2330ae17a");
stop();
Instance of Symbol 26 MovieClip [preloaderShape_mc] in Frame 1
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int((loaded / total) * 100);
percen101 = ("" + percent) + "%";
gotoAndStop(percent);
if (loaded == total) {
_root.play();
}
}
Frame 2
function game_over() {
_root.score_adding = "uit";
extra_coins == true;
_root.extracoins == 0;
speedX = 0;
topSpeedY = 0;
_root.extra_invul._visible = false;
_root.extra_vragen._visible = false;
_root.extra_goldcard._visible = false;
_root.hotelgast1._x = 2800;
_root.hotelgast2._x = 2800;
_root.hotelgast3._x = 2800;
_root.hotelgast4._x = 2800;
_root.hotelgast5._x = 2800;
_root.hotelgast6._x = 2800;
_root.hotelgast7._x = 2800;
_root.hotelgast8._x = 2800;
_root.extra_eindscherm._visible = true;
}
function init() {
_root.ben_hier1 = "170";
_root.ga_naar1 = "170";
_root.ben_hier2 = "169";
_root.ga_naar2 = "169";
_root.motion = "0";
_root.motion2 = "0";
_root.extra_invul._visible = false;
_root.extra_vragen._visible = false;
_root.extra_goldcard._visible = false;
_root.extra_eindscherm._visible = false;
extra_coins = false;
lift_beweeg_niet = true;
_root.score = 0;
_root.bg_sound_sound();
score_adding == "uit";
_root.money_ani();
_root.gasten_in_hotel = 0;
_root.bonus_items = 0;
_root.goldcard = 0;
_root.gVol = 70;
_root.formerror = "";
_root.text_1 = "Met de Gold Card ontvang je 50% korting op je hotel overnachtingen wereldwijd! Bereken online je voordeel!\nVRAGEN BEANTWOORDEN: 250 EXTRA Bonus Punten!";
_root.text1 = _root.text_1;
_root.but_verstuur = "VERSTUUR!";
_root.submitted_score = 0;
}
function soundSwitch() {
if (_root.gVol == 0) {
_root.gVol = 70;
_root.bg_sound_sound();
} else {
_root.gVol = 0;
_root.stop_all_sounds();
}
}
function stop_all_sounds() {
_root.bg_sound.stop();
_root.pling.stop();
_root.push_button.stop();
_root.hotelbell.stop();
_root.knaken.stop();
_root.mini_coins.stop();
}
function check_data3() {
_root.extracoins = 2000;
_root.scoreteller2();
_root.score_adding = "aan";
_root.money_ani();
}
function check_data4() {
_root.extracoins = 750;
_root.scoreteller4();
_root.score_adding = "aan";
_root.money_ani();
}
function scoreteller() {
clearInterval(doorgaan_int);
if (_root.extracoins > 0) {
_root.extracoins--;
_root.score++;
_root.mini_coins_sound();
_root.money_ani();
doorgaan_int = setInterval(scoreteller, 30);
} else {
_root.score_adding = "uit";
}
}
function scoreteller2() {
clearInterval(doorgaan_int);
if (_root.extracoins > 0) {
_root.extracoins = _root.extracoins - 25;
_root.score = _root.score + 25;
_root.mini_coins_sound();
_root.money_ani();
doorgaan_int = setInterval(scoreteller2, 30);
} else {
_root.score_adding = "uit";
}
}
function scoreteller4() {
clearInterval(doorgaan_int);
if (_root.extracoins > 0) {
_root.extracoins = _root.extracoins - 25;
_root.score = _root.score + 25;
_root.mini_coins_sound();
_root.money_ani();
doorgaan_int = setInterval(scoreteller4, 30);
} else {
_root.score_adding = "uit";
}
}
function money_ani() {
clearInterval(herhaal_int);
if (score_adding == "aan") {
i = random(16) + 1;
with (eval ("_root.coins_ani_alles.coin_ani" + i)) {
play();
}
herhaal_int = setInterval(money_ani, 100);
}
}
function lift() {
if (extra_coins == false) {
clearInterval(pauze_int);
if (_root.ben_hier1 > _root.ga_naar1) {
beweeg_omhoog();
_root.motion = "1";
_root.ben_hier1 = _root.stage.lifthuis1.lift1._y;
pauze_int = setInterval(lift, 10);
} else if (_root.ben_hier1 < _root.ga_naar1) {
beweeg_omlaag();
_root.motion = "1";
_root.ben_hier1 = _root.stage.lifthuis1.lift1._y;
pauze_int = setInterval(lift, 10);
} else if (_root.ben_hier1 == _root.ga_naar1) {
_root.motion = "0";
lift_beweeg_niet = true;
}
}
}
function beweeg_omhoog() {
lift_beweeg_niet = false;
_root.stage.lifthuis1.lift1._y = _root.stage.lifthuis1.lift1._y - 1;
_root.liftani1._y = _root.liftani1._y - 1;
_root.liftani1A._y = _root.liftani1A._y - 1;
}
function beweeg_omlaag() {
lift_beweeg_niet = false;
_root.stage.lifthuis1.lift1._y = _root.stage.lifthuis1.lift1._y + 1;
_root.liftani1._y = _root.liftani1._y + 1;
_root.liftani1A._y = _root.liftani1A._y + 1;
}
function lift2() {
if (extra_coins == false) {
clearInterval(pauze_int_2);
if (_root.ben_hier2 > _root.ga_naar2) {
beweeg_omhoog2();
_root.motion2 = "1";
_root.ben_hier2 = _root.stage.lifthuis2.lift2._y;
pauze_int_2 = setInterval(lift2, 10);
} else if (_root.ben_hier2 < _root.ga_naar2) {
beweeg_omlaag2();
_root.motion2 = "1";
_root.ben_hier2 = _root.stage.lifthuis2.lift2._y;
pauze_int_2 = setInterval(lift2, 10);
} else if (_root.ben_hier2 == _root.ga_naar2) {
_root.motion2 = "0";
lift_beweeg_niet = true;
}
}
}
function beweeg_omhoog2() {
lift_beweeg_niet = false;
_root.stage.lifthuis2.lift2._y = _root.stage.lifthuis2.lift2._y - 1;
_root.liftani2._y = _root.liftani2._y - 1;
_root.liftani2A._y = _root.liftani2A._y - 1;
}
function beweeg_omlaag2() {
lift_beweeg_niet = false;
_root.stage.lifthuis2.lift2._y = _root.stage.lifthuis2.lift2._y + 1;
_root.liftani2._y = _root.liftani2._y + 1;
_root.liftani2A._y = _root.liftani2A._y + 1;
}
function alg_room() {
if (_root.hotelgast1.gemoed.room == 0) {
_root.hotelgast1.gemoed.room = 1;
}
if (_root.hotelgast2.gemoed.room == 0) {
_root.hotelgast2.gemoed.room = 3;
}
if (_root.hotelgast3.gemoed.room == 0) {
_root.hotelgast3.gemoed.room = 2;
}
if (_root.hotelgast4.gemoed.room == 0) {
_root.hotelgast4.gemoed.room = 4;
}
if (_root.hotelgast5.gemoed.room == 0) {
_root.hotelgast5.gemoed.room = 6;
}
if (_root.hotelgast6.gemoed.room == 0) {
_root.hotelgast6.gemoed.room = 8;
}
if (_root.hotelgast7.gemoed.room == 0) {
_root.hotelgast7.gemoed.room = 9;
}
if (_root.hotelgast8.gemoed.room == 0) {
_root.hotelgast8.gemoed.room = 7;
}
}
function gemoedsrust_hotelgast_1() {
if ((extra_coins == false) and (lift_beweeg_niet == true)) {
_root.hotelgast1.gemoed.nextFrame();
if (_root.hotelgast1.gemoed.coins >= 5) {
_root.hotelgast1.gemoed.coins = _root.hotelgast1.gemoed.coins - 5;
} else {
_root.hotelgast1.gemoed.coins = 0;
}
}
}
function gemoedsrust_hotelgast_2() {
if ((extra_coins == false) and (lift_beweeg_niet == true)) {
_root.hotelgast2.gemoed.nextFrame();
if (_root.hotelgast2.gemoed.coins >= 5) {
_root.hotelgast2.gemoed.coins = _root.hotelgast2.gemoed.coins - 5;
} else {
_root.hotelgast2.gemoed.coins = 0;
}
}
}
function gemoedsrust_hotelgast_3() {
if ((extra_coins == false) and (lift_beweeg_niet == true)) {
_root.hotelgast3.gemoed.nextFrame();
if (_root.hotelgast3.gemoed.coins >= 5) {
_root.hotelgast3.gemoed.coins = _root.hotelgast3.gemoed.coins - 5;
} else {
_root.hotelgast3.gemoed.coins = 0;
}
}
}
function gemoedsrust_hotelgast_4() {
if ((extra_coins == false) and (lift_beweeg_niet == true)) {
_root.hotelgast4.gemoed.nextFrame();
if (_root.hotelgast4.gemoed.coins >= 5) {
_root.hotelgast4.gemoed.coins = _root.hotelgast4.gemoed.coins - 5;
} else {
_root.hotelgast4.gemoed.coins = 0;
}
}
}
function gemoedsrust_hotelgast_5() {
if ((extra_coins == false) and (lift_beweeg_niet == true)) {
_root.hotelgast5.gemoed.nextFrame();
if (_root.hotelgast5.gemoed.coins >= 5) {
_root.hotelgast5.gemoed.coins = _root.hotelgast5.gemoed.coins - 5;
} else {
_root.hotelgast5.gemoed.coins = 0;
}
}
}
function gemoedsrust_hotelgast_6() {
if ((extra_coins == false) and (lift_beweeg_niet == true)) {
_root.hotelgast6.gemoed.nextFrame();
if (_root.hotelgast6.gemoed.coins >= 5) {
_root.hotelgast6.gemoed.coins = _root.hotelgast6.gemoed.coins - 5;
} else {
_root.hotelgast6.gemoed.coins = 0;
}
}
}
function gemoedsrust_hotelgast_7() {
if ((extra_coins == false) and (lift_beweeg_niet == true)) {
_root.hotelgast7.gemoed.nextFrame();
if (_root.hotelgast7.gemoed.coins >= 5) {
_root.hotelgast7.gemoed.coins = _root.hotelgast7.gemoed.coins - 5;
} else {
_root.hotelgast7.gemoed.coins = 0;
}
}
}
function gemoedsrust_hotelgast_8() {
if ((extra_coins == false) and (lift_beweeg_niet == true)) {
_root.hotelgast8.gemoed.nextFrame();
if (_root.hotelgast8.gemoed.coins >= 5) {
_root.hotelgast8.gemoed.coins = _root.hotelgast8.gemoed.coins - 5;
} else {
_root.hotelgast8.gemoed.coins = 0;
}
}
}
function bg_sound_sound() {
_root.bg_sound = new Sound();
_root.bg_sound.setVolume(_root.gVol);
_root.bg_sound.attachSound("bg_sound");
_root.bg_sound.start(0, 9999);
}
function pling_sound() {
_root.pling = new Sound();
_root.pling.setVolume(_root.gVol);
_root.pling.attachSound("pling");
_root.pling.start(0, 1);
}
function push_button_sound() {
_root.push_button = new Sound();
_root.push_button.setVolume(_root.gVol);
_root.push_button.attachSound("push_button");
_root.push_button.start(0, 1);
}
function hotelbell_sound() {
_root.hotelbell = new Sound();
_root.hotelbell.setVolume(_root.gVol);
_root.hotelbell.attachSound("hotelbell");
_root.hotelbell.start(0, 1);
}
function coins_sound() {
_root.knaken = new Sound();
_root.knaken.setVolume(_root.gVol);
_root.knaken.attachSound("knaken");
_root.knaken.start(0, 1);
}
function mini_coins_sound() {
_root.mini_coins = new Sound();
_root.mini_coins.setVolume(_root.gVol);
_root.mini_coins.attachSound("mini_coins");
_root.mini_coins.start(0, 1);
}
function deur_dicht() {
_root.deur = new Sound();
_root.deur.setVolume(_root.gVol);
_root.deur.attachSound("deur");
_root.deur.start(0, 1);
}
function display_aan() {
extra_coins = true;
_root.extra_invul._visible = true;
}
function display_uit() {
extra_coins = false;
_root.extra_invul._visible = false;
}
function display2_aan() {
extra_coins = true;
_root.extra_goldcard._visible = true;
}
function display2_uit() {
extra_coins = false;
_root.extra_goldcard._visible = false;
}
function display3_aan() {
extra_coins = true;
_root.extra_vragen._visible = true;
}
function display3_uit() {
extra_coins = false;
_root.extra_vragen._visible = false;
}
function wijs_kamernummer_toe1() {
if (_root.balie_check.hitTest(_root.hotelgast1) and (extra_coins == false)) {
random_kamer = random(8) + 1;
_root.hotelgast1.gemoed.gotoAndStop(1);
_root.hotelgast1.gemoed.room = random_kamer;
_root.hotelbell_sound();
_root.hotelgast1.gemoed.coins = 100;
}
}
function wijs_kamernummer_toe2() {
if (_root.balie_check.hitTest(_root.hotelgast2) and (extra_coins == false)) {
random_kamer = random(8) + 1;
_root.hotelgast2.gemoed.gotoAndStop(1);
_root.hotelgast2.gemoed.room = random_kamer;
_root.hotelbell_sound();
_root.hotelgast2.gemoed.coins = 100;
}
}
function wijs_kamernummer_toe3() {
if (_root.balie_check.hitTest(_root.hotelgast3) and (extra_coins == false)) {
random_kamer = random(8) + 1;
_root.hotelgast3.gemoed.gotoAndStop(1);
_root.hotelgast3.gemoed.room = random_kamer;
_root.hotelbell_sound();
_root.hotelgast3.gemoed.coins = 100;
}
}
function wijs_kamernummer_toe4() {
if (_root.balie_check.hitTest(_root.hotelgast4) and (extra_coins == false)) {
random_kamer = random(8) + 1;
_root.hotelgast4.gemoed.gotoAndStop(1);
_root.hotelgast4.gemoed.room = random_kamer;
_root.hotelbell_sound();
_root.hotelgast4.gemoed.coins = 100;
}
}
function wijs_kamernummer_toe5() {
if (_root.balie_check.hitTest(_root.hotelgast5) and (extra_coins == false)) {
random_kamer = random(8) + 1;
_root.hotelgast5.gemoed.gotoAndStop(1);
_root.hotelgast5.gemoed.room = random_kamer;
_root.hotelbell_sound();
_root.hotelgast5.gemoed.coins = 100;
}
}
function wijs_kamernummer_toe6() {
if (_root.balie_check.hitTest(_root.hotelgast6) and (extra_coins == false)) {
random_kamer = random(8) + 1;
_root.hotelgast6.gemoed.gotoAndStop(1);
_root.hotelgast6.gemoed.room = random_kamer;
_root.hotelbell_sound();
_root.hotelgast6.gemoed.coins = 100;
}
}
function wijs_kamernummer_toe7() {
if (_root.balie_check.hitTest(_root.hotelgast7) and (extra_coins == false)) {
random_kamer = random(8) + 1;
_root.hotelgast7.gemoed.gotoAndStop(1);
_root.hotelgast7.gemoed.room = random_kamer;
_root.hotelbell_sound();
_root.hotelgast7.gemoed.coins = 100;
}
}
function wijs_kamernummer_toe8() {
if (_root.balie_check.hitTest(_root.hotelgast8) and (extra_coins == false)) {
random_kamer = random(8) + 1;
_root.hotelgast8.gemoed.gotoAndStop(1);
_root.hotelgast8.gemoed.room = random_kamer;
_root.hotelbell_sound();
_root.hotelgast8.gemoed.coins = 100;
}
}
function kamer_gevonden1() {
if (_root.deur1.hitTest(_root.hotelgast1) and (_root.hotelgast1.gemoed.room == 1)) {
_root.hotelgast1._x = 800;
_root.hotelgast1._y = 420;
_root.score = _root.score + _root.hotelgast1.gemoed.coins;
_root.hotelgast1.gemoed.coins = 110;
_root.deur1.play();
} else if (_root.deur2.hitTest(_root.hotelgast1) and (_root.hotelgast1.gemoed.room == 2)) {
_root.hotelgast1._x = 800;
_root.hotelgast1._y = 420;
_root.score = _root.score + _root.hotelgast1.gemoed.coins;
_root.hotelgast1.gemoed.coins = 110;
_root.deur2.play();
} else if (_root.deur3.hitTest(_root.hotelgast1) and (_root.hotelgast1.gemoed.room == 3)) {
_root.hotelgast1._x = 800;
_root.hotelgast1._y = 420;
_root.score = _root.score + _root.hotelgast1.gemoed.coins;
_root.hotelgast1.gemoed.coins = 110;
_root.deur3.play();
} else if (_root.deur4.hitTest(_root.hotelgast1) and (_root.hotelgast1.gemoed.room == 4)) {
_root.hotelgast1._x = 800;
_root.hotelgast1._y = 420;
_root.score = _root.score + _root.hotelgast1.gemoed.coins;
_root.hotelgast1.gemoed.coins = 110;
_root.deur4.play();
} else if (_root.deur5.hitTest(_root.hotelgast1) and (_root.hotelgast1.gemoed.room == 5)) {
_root.hotelgast1._x = 800;
_root.hotelgast1._y = 420;
_root.score = _root.score + _root.hotelgast1.gemoed.coins;
_root.hotelgast1.gemoed.coins = 110;
_root.deur5.play();
} else if (_root.deur6.hitTest(_root.hotelgast1) and (_root.hotelgast1.gemoed.room == 6)) {
_root.hotelgast1._x = 800;
_root.hotelgast1._y = 420;
_root.score = _root.score + _root.hotelgast1.gemoed.coins;
_root.hotelgast1.gemoed.coins = 110;
_root.deur6.play();
} else if (_root.deur7.hitTest(_root.hotelgast1) and (_root.hotelgast1.gemoed.room == 7)) {
_root.hotelgast1._x = 800;
_root.hotelgast1._y = 420;
_root.score = _root.score + _root.hotelgast1.gemoed.coins;
_root.hotelgast1.gemoed.coins = 110;
_root.deur7.play();
} else if (_root.deur8.hitTest(_root.hotelgast1) and (_root.hotelgast1.gemoed.room == 8)) {
_root.hotelgast1._x = 800;
_root.hotelgast1._y = 420;
_root.score = _root.score + _root.hotelgast1.gemoed.coins;
_root.hotelgast1.gemoed.coins = 110;
_root.deur8.play();
} else if (_root.deur9.hitTest(_root.hotelgast1) and (_root.hotelgast1.gemoed.room == 9)) {
_root.hotelgast1._x = 800;
_root.hotelgast1._y = 420;
_root.score = _root.score + _root.hotelgast1.gemoed.coins;
_root.hotelgast1.gemoed.coins = 110;
_root.deur9.play();
}
}
function kamer_gevonden2() {
if (_root.deur1.hitTest(_root.hotelgast2) and (_root.hotelgast2.gemoed.room == 1)) {
_root.hotelgast2._x = 800;
_root.hotelgast2._y = 420;
_root.score = _root.score + _root.hotelgast2.gemoed.coins;
_root.hotelgast2.gemoed.coins = 110;
_root.deur1.play();
} else if (_root.deur2.hitTest(_root.hotelgast2) and (_root.hotelgast2.gemoed.room == 2)) {
_root.hotelgast2._x = 800;
_root.hotelgast2._y = 420;
_root.score = _root.score + _root.hotelgast2.gemoed.coins;
_root.hotelgast2.gemoed.coins = 110;
_root.deur2.play();
} else if (_root.deur3.hitTest(_root.hotelgast2) and (_root.hotelgast2.gemoed.room == 3)) {
_root.hotelgast2._x = 800;
_root.hotelgast2._y = 420;
_root.score = _root.score + _root.hotelgast2.gemoed.coins;
_root.hotelgast2.gemoed.coins = 110;
_root.deur3.play();
} else if (_root.deur4.hitTest(_root.hotelgast2) and (_root.hotelgast2.gemoed.room == 4)) {
_root.hotelgast2._x = 800;
_root.hotelgast2._y = 420;
_root.score = _root.score + _root.hotelgast2.gemoed.coins;
_root.hotelgast2.gemoed.coins = 110;
_root.deur4.play();
} else if (_root.deur5.hitTest(_root.hotelgast2) and (_root.hotelgast2.gemoed.room == 5)) {
_root.hotelgast2._x = 800;
_root.hotelgast2._y = 420;
_root.score = _root.score + _root.hotelgast2.gemoed.coins;
_root.hotelgast2.gemoed.coins = 110;
_root.deur5.play();
} else if (_root.deur6.hitTest(_root.hotelgast2) and (_root.hotelgast2.gemoed.room == 6)) {
_root.hotelgast2._x = 800;
_root.hotelgast2._y = 420;
_root.score = _root.score + _root.hotelgast2.gemoed.coins;
_root.hotelgast2.gemoed.coins = 110;
_root.deur6.play();
} else if (_root.deur7.hitTest(_root.hotelgast2) and (_root.hotelgast2.gemoed.room == 7)) {
_root.hotelgast2._x = 800;
_root.hotelgast2._y = 420;
_root.score = _root.score + _root.hotelgast2.gemoed.coins;
_root.hotelgast2.gemoed.coins = 110;
_root.deur7.play();
} else if (_root.deur8.hitTest(_root.hotelgast2) and (_root.hotelgast2.gemoed.room == 8)) {
_root.hotelgast2._x = 800;
_root.hotelgast2._y = 420;
_root.score = _root.score + _root.hotelgast2.gemoed.coins;
_root.hotelgast2.gemoed.coins = 110;
_root.deur8.play();
} else if (_root.deur9.hitTest(_root.hotelgast2) and (_root.hotelgast2.gemoed.room == 9)) {
_root.hotelgast2._x = 800;
_root.hotelgast2._y = 420;
_root.score = _root.score + _root.hotelgast2.gemoed.coins;
_root.hotelgast2.gemoed.coins = 110;
_root.deur9.play();
}
}
function kamer_gevonden3() {
if (_root.deur1.hitTest(_root.hotelgast3) and (_root.hotelgast3.gemoed.room == 1)) {
_root.hotelgast3._x = 800;
_root.hotelgast3._y = 420;
_root.score = _root.score + _root.hotelgast3.gemoed.coins;
_root.hotelgast3.gemoed.coins = 110;
_root.deur1.play();
} else if (_root.deur2.hitTest(_root.hotelgast3) and (_root.hotelgast3.gemoed.room == 2)) {
_root.hotelgast3._x = 800;
_root.hotelgast3._y = 420;
_root.score = _root.score + _root.hotelgast3.gemoed.coins;
_root.hotelgast3.gemoed.coins = 110;
_root.deur2.play();
} else if (_root.deur3.hitTest(_root.hotelgast3) and (_root.hotelgast3.gemoed.room == 3)) {
_root.hotelgast3._x = 800;
_root.hotelgast3._y = 420;
_root.score = _root.score + _root.hotelgast3.gemoed.coins;
_root.hotelgast3.gemoed.coins = 110;
_root.deur3.play();
} else if (_root.deur4.hitTest(_root.hotelgast3) and (_root.hotelgast3.gemoed.room == 4)) {
_root.hotelgast3._x = 800;
_root.hotelgast3._y = 420;
_root.score = _root.score + _root.hotelgast3.gemoed.coins;
_root.hotelgast3.gemoed.coins = 110;
_root.deur4.play();
} else if (_root.deur5.hitTest(_root.hotelgast3) and (_root.hotelgast3.gemoed.room == 5)) {
_root.hotelgast3._x = 800;
_root.hotelgast3._y = 420;
_root.score = _root.score + _root.hotelgast3.gemoed.coins;
_root.hotelgast3.gemoed.coins = 110;
_root.deur5.play();
} else if (_root.deur6.hitTest(_root.hotelgast3) and (_root.hotelgast3.gemoed.room == 6)) {
_root.hotelgast3._x = 800;
_root.hotelgast3._y = 420;
_root.score = _root.score + _root.hotelgast3.gemoed.coins;
_root.hotelgast3.gemoed.coins = 110;
_root.deur6.play();
} else if (_root.deur7.hitTest(_root.hotelgast3) and (_root.hotelgast3.gemoed.room == 7)) {
_root.hotelgast3._x = 800;
_root.hotelgast3._y = 420;
_root.score = _root.score + _root.hotelgast3.gemoed.coins;
_root.hotelgast3.gemoed.coins = 110;
_root.deur7.play();
} else if (_root.deur8.hitTest(_root.hotelgast3) and (_root.hotelgast3.gemoed.room == 8)) {
_root.hotelgast3._x = 800;
_root.hotelgast3._y = 420;
_root.score = _root.score + _root.hotelgast3.gemoed.coins;
_root.hotelgast3.gemoed.coins = 110;
_root.deur8.play();
} else if (_root.deur9.hitTest(_root.hotelgast3) and (_root.hotelgast3.gemoed.room == 9)) {
_root.hotelgast3._x = 800;
_root.hotelgast3._y = 420;
_root.score = _root.score + _root.hotelgast3.gemoed.coins;
_root.hotelgast3.gemoed.coins = 110;
_root.deur9.play();
}
}
function kamer_gevonden4() {
if (_root.deur1.hitTest(_root.hotelgast4) and (_root.hotelgast4.gemoed.room == 1)) {
_root.hotelgast4._x = 800;
_root.hotelgast4._y = 420;
_root.score = _root.score + _root.hotelgast4.gemoed.coins;
_root.hotelgast4.gemoed.coins = 110;
_root.deur1.play();
} else if (_root.deur2.hitTest(_root.hotelgast4) and (_root.hotelgast4.gemoed.room == 2)) {
_root.hotelgast4._x = 800;
_root.hotelgast4._y = 420;
_root.score = _root.score + _root.hotelgast4.gemoed.coins;
_root.hotelgast4.gemoed.coins = 110;
_root.deur2.play();
} else if (_root.deur3.hitTest(_root.hotelgast4) and (_root.hotelgast4.gemoed.room == 3)) {
_root.hotelgast4._x = 800;
_root.hotelgast4._y = 420;
_root.score = _root.score + _root.hotelgast4.gemoed.coins;
_root.hotelgast4.gemoed.coins = 110;
_root.deur3.play();
} else if (_root.deur4.hitTest(_root.hotelgast4) and (_root.hotelgast4.gemoed.room == 4)) {
_root.hotelgast4._x = 800;
_root.hotelgast4._y = 420;
_root.score = _root.score + _root.hotelgast4.gemoed.coins;
_root.hotelgast4.gemoed.coins = 110;
_root.deur4.play();
} else if (_root.deur5.hitTest(_root.hotelgast4) and (_root.hotelgast4.gemoed.room == 5)) {
_root.hotelgast4._x = 800;
_root.hotelgast4._y = 420;
_root.score = _root.score + _root.hotelgast4.gemoed.coins;
_root.hotelgast4.gemoed.coins = 110;
_root.deur5.play();
} else if (_root.deur6.hitTest(_root.hotelgast4) and (_root.hotelgast4.gemoed.room == 6)) {
_root.hotelgast4._x = 800;
_root.hotelgast4._y = 420;
_root.score = _root.score + _root.hotelgast4.gemoed.coins;
_root.hotelgast4.gemoed.coins = 110;
_root.deur6.play();
} else if (_root.deur7.hitTest(_root.hotelgast4) and (_root.hotelgast4.gemoed.room == 7)) {
_root.hotelgast4._x = 800;
_root.hotelgast4._y = 420;
_root.score = _root.score + _root.hotelgast4.gemoed.coins;
_root.hotelgast4.gemoed.coins = 110;
_root.deur7.play();
} else if (_root.deur8.hitTest(_root.hotelgast4) and (_root.hotelgast4.gemoed.room == 8)) {
_root.hotelgast4._x = 800;
_root.hotelgast4._y = 420;
_root.score = _root.score + _root.hotelgast4.gemoed.coins;
_root.hotelgast4.gemoed.coins = 110;
_root.deur8.play();
} else if (_root.deur9.hitTest(_root.hotelgast4) and (_root.hotelgast4.gemoed.room == 9)) {
_root.hotelgast4._x = 800;
_root.hotelgast4._y = 420;
_root.score = _root.score + _root.hotelgast4.gemoed.coins;
_root.hotelgast4.gemoed.coins = 110;
_root.deur9.play();
}
}
function kamer_gevonden5() {
if (_root.deur1.hitTest(_root.hotelgast5) and (_root.hotelgast5.gemoed.room == 1)) {
_root.hotelgast5._x = 800;
_root.hotelgast5._y = 420;
_root.score = _root.score + _root.hotelgast5.gemoed.coins;
_root.hotelgast5.gemoed.coins = 110;
_root.deur1.play();
} else if (_root.deur2.hitTest(_root.hotelgast5) and (_root.hotelgast5.gemoed.room == 2)) {
_root.hotelgast5._x = 800;
_root.hotelgast5._y = 420;
_root.score = _root.score + _root.hotelgast5.gemoed.coins;
_root.hotelgast5.gemoed.coins = 110;
_root.deur2.play();
} else if (_root.deur3.hitTest(_root.hotelgast5) and (_root.hotelgast5.gemoed.room == 3)) {
_root.hotelgast5._x = 800;
_root.hotelgast5._y = 420;
_root.score = _root.score + _root.hotelgast5.gemoed.coins;
_root.hotelgast5.gemoed.coins = 110;
_root.deur3.play();
} else if (_root.deur4.hitTest(_root.hotelgast5) and (_root.hotelgast5.gemoed.room == 4)) {
_root.hotelgast5._x = 800;
_root.hotelgast5._y = 420;
_root.score = _root.score + _root.hotelgast5.gemoed.coins;
_root.hotelgast5.gemoed.coins = 110;
_root.deur4.play();
} else if (_root.deur5.hitTest(_root.hotelgast5) and (_root.hotelgast5.gemoed.room == 5)) {
_root.hotelgast5._x = 800;
_root.hotelgast5._y = 420;
_root.score = _root.score + _root.hotelgast5.gemoed.coins;
_root.hotelgast5.gemoed.coins = 110;
_root.deur5.play();
} else if (_root.deur6.hitTest(_root.hotelgast5) and (_root.hotelgast5.gemoed.room == 6)) {
_root.hotelgast5._x = 800;
_root.hotelgast5._y = 420;
_root.score = _root.score + _root.hotelgast5.gemoed.coins;
_root.hotelgast5.gemoed.coins = 110;
_root.deur6.play();
} else if (_root.deur7.hitTest(_root.hotelgast5) and (_root.hotelgast5.gemoed.room == 7)) {
_root.hotelgast5._x = 800;
_root.hotelgast5._y = 420;
_root.score = _root.score + _root.hotelgast5.gemoed.coins;
_root.hotelgast5.gemoed.coins = 110;
_root.deur7.play();
} else if (_root.deur8.hitTest(_root.hotelgast5) and (_root.hotelgast5.gemoed.room == 8)) {
_root.hotelgast5._x = 800;
_root.hotelgast5._y = 420;
_root.score = _root.score + _root.hotelgast5.gemoed.coins;
_root.hotelgast5.gemoed.coins = 110;
_root.deur8.play();
} else if (_root.deur9.hitTest(_root.hotelgast5) and (_root.hotelgast5.gemoed.room == 9)) {
_root.hotelgast5._x = 800;
_root.hotelgast5._y = 420;
_root.score = _root.score + _root.hotelgast5.gemoed.coins;
_root.hotelgast5.gemoed.coins = 110;
_root.deur9.play();
}
}
function kamer_gevonden6() {
if (_root.deur1.hitTest(_root.hotelgast6) and (_root.hotelgast6.gemoed.room == 1)) {
_root.hotelgast6._x = 800;
_root.hotelgast6._y = 420;
_root.score = _root.score + _root.hotelgast6.gemoed.coins;
_root.hotelgast6.gemoed.coins = 110;
_root.deur1.play();
} else if (_root.deur2.hitTest(_root.hotelgast6) and (_root.hotelgast6.gemoed.room == 2)) {
_root.hotelgast6._x = 800;
_root.hotelgast6._y = 420;
_root.score = _root.score + _root.hotelgast6.gemoed.coins;
_root.hotelgast6.gemoed.coins = 110;
_root.deur2.play();
} else if (_root.deur3.hitTest(_root.hotelgast6) and (_root.hotelgast6.gemoed.room == 3)) {
_root.hotelgast6._x = 800;
_root.hotelgast6._y = 420;
_root.score = _root.score + _root.hotelgast6.gemoed.coins;
_root.hotelgast6.gemoed.coins = 110;
_root.deur3.play();
} else if (_root.deur4.hitTest(_root.hotelgast6) and (_root.hotelgast6.gemoed.room == 4)) {
_root.hotelgast6._x = 800;
_root.hotelgast6._y = 420;
_root.score = _root.score + _root.hotelgast6.gemoed.coins;
_root.hotelgast6.gemoed.coins = 110;
_root.deur4.play();
} else if (_root.deur5.hitTest(_root.hotelgast6) and (_root.hotelgast6.gemoed.room == 5)) {
_root.hotelgast6._x = 800;
_root.hotelgast6._y = 420;
_root.score = _root.score + _root.hotelgast6.gemoed.coins;
_root.hotelgast6.gemoed.coins = 110;
_root.deur5.play();
} else if (_root.deur6.hitTest(_root.hotelgast6) and (_root.hotelgast6.gemoed.room == 6)) {
_root.hotelgast6._x = 800;
_root.hotelgast6._y = 420;
_root.score = _root.score + _root.hotelgast6.gemoed.coins;
_root.hotelgast6.gemoed.coins = 110;
_root.deur6.play();
} else if (_root.deur7.hitTest(_root.hotelgast6) and (_root.hotelgast6.gemoed.room == 7)) {
_root.hotelgast6._x = 800;
_root.hotelgast6._y = 420;
_root.score = _root.score + _root.hotelgast6.gemoed.coins;
_root.hotelgast6.gemoed.coins = 110;
_root.deur7.play();
} else if (_root.deur8.hitTest(_root.hotelgast6) and (_root.hotelgast6.gemoed.room == 8)) {
_root.hotelgast6._x = 800;
_root.hotelgast6._y = 420;
_root.score = _root.score + _root.hotelgast6.gemoed.coins;
_root.hotelgast6.gemoed.coins = 110;
_root.deur8.play();
} else if (_root.deur9.hitTest(_root.hotelgast6) and (_root.hotelgast6.gemoed.room == 9)) {
_root.hotelgast6._x = 800;
_root.hotelgast6._y = 420;
_root.score = _root.score + _root.hotelgast6.gemoed.coins;
_root.hotelgast6.gemoed.coins = 110;
_root.deur9.play();
}
}
function kamer_gevonden7() {
if (_root.deur1.hitTest(_root.hotelgast7) and (_root.hotelgast7.gemoed.room == 1)) {
_root.hotelgast7._x = 800;
_root.hotelgast7._y = 420;
_root.score = _root.score + _root.hotelgast7.gemoed.coins;
_root.hotelgast7.gemoed.coins = 110;
_root.deur1.play();
} else if (_root.deur2.hitTest(_root.hotelgast7) and (_root.hotelgast7.gemoed.room == 2)) {
_root.hotelgast7._x = 800;
_root.hotelgast7._y = 420;
_root.score = _root.score + _root.hotelgast7.gemoed.coins;
_root.hotelgast7.gemoed.coins = 110;
_root.deur2.play();
} else if (_root.deur3.hitTest(_root.hotelgast7) and (_root.hotelgast7.gemoed.room == 3)) {
_root.hotelgast7._x = 800;
_root.hotelgast7._y = 420;
_root.score = _root.score + _root.hotelgast7.gemoed.coins;
_root.hotelgast7.gemoed.coins = 110;
_root.deur3.play();
} else if (_root.deur4.hitTest(_root.hotelgast7) and (_root.hotelgast7.gemoed.room == 4)) {
_root.hotelgast7._x = 800;
_root.hotelgast7._y = 420;
_root.score = _root.score + _root.hotelgast7.gemoed.coins;
_root.hotelgast7.gemoed.coins = 110;
_root.deur4.play();
} else if (_root.deur5.hitTest(_root.hotelgast7) and (_root.hotelgast7.gemoed.room == 5)) {
_root.hotelgast7._x = 800;
_root.hotelgast7._y = 420;
_root.score = _root.score + _root.hotelgast7.gemoed.coins;
_root.hotelgast7.gemoed.coins = 110;
_root.deur5.play();
} else if (_root.deur6.hitTest(_root.hotelgast7) and (_root.hotelgast7.gemoed.room == 6)) {
_root.hotelgast7._x = 800;
_root.hotelgast7._y = 420;
_root.score = _root.score + _root.hotelgast7.gemoed.coins;
_root.hotelgast7.gemoed.coins = 110;
_root.deur6.play();
} else if (_root.deur7.hitTest(_root.hotelgast7) and (_root.hotelgast7.gemoed.room == 7)) {
_root.hotelgast7._x = 800;
_root.hotelgast7._y = 420;
_root.score = _root.score + _root.hotelgast7.gemoed.coins;
_root.hotelgast7.gemoed.coins = 110;
_root.deur7.play();
} else if (_root.deur8.hitTest(_root.hotelgast7) and (_root.hotelgast7.gemoed.room == 8)) {
_root.hotelgast7._x = 800;
_root.hotelgast7._y = 420;
_root.score = _root.score + _root.hotelgast7.gemoed.coins;
_root.hotelgast7.gemoed.coins = 110;
_root.deur8.play();
} else if (_root.deur9.hitTest(_root.hotelgast7) and (_root.hotelgast7.gemoed.room == 9)) {
_root.hotelgast7._x = 800;
_root.hotelgast7._y = 420;
_root.score = _root.score + _root.hotelgast7.gemoed.coins;
_root.hotelgast7.gemoed.coins = 110;
_root.deur9.play();
}
}
function kamer_gevonden8() {
if (_root.deur1.hitTest(_root.hotelgast8) and (_root.hotelgast8.gemoed.room == 1)) {
_root.hotelgast8._x = 800;
_root.hotelgast8._y = 420;
_root.score = _root.score + _root.hotelgast8.gemoed.coins;
_root.hotelgast8.gemoed.coins = 110;
_root.deur1.play();
} else if (_root.deur2.hitTest(_root.hotelgast8) and (_root.hotelgast8.gemoed.room == 2)) {
_root.hotelgast8._x = 800;
_root.hotelgast8._y = 420;
_root.score = _root.score + _root.hotelgast8.gemoed.coins;
_root.hotelgast8.gemoed.coins = 110;
_root.deur2.play();
} else if (_root.deur3.hitTest(_root.hotelgast8) and (_root.hotelgast8.gemoed.room == 3)) {
_root.hotelgast8._x = 800;
_root.hotelgast8._y = 420;
_root.score = _root.score + _root.hotelgast8.gemoed.coins;
_root.hotelgast8.gemoed.coins = 110;
_root.deur3.play();
} else if (_root.deur4.hitTest(_root.hotelgast8) and (_root.hotelgast8.gemoed.room == 4)) {
_root.hotelgast8._x = 800;
_root.hotelgast8._y = 420;
_root.score = _root.score + _root.hotelgast8.gemoed.coins;
_root.hotelgast8.gemoed.coins = 110;
_root.deur4.play();
} else if (_root.deur5.hitTest(_root.hotelgast8) and (_root.hotelgast8.gemoed.room == 5)) {
_root.hotelgast8._x = 800;
_root.hotelgast8._y = 420;
_root.score = _root.score + _root.hotelgast8.gemoed.coins;
_root.hotelgast8.gemoed.coins = 110;
_root.deur5.play();
} else if (_root.deur6.hitTest(_root.hotelgast8) and (_root.hotelgast8.gemoed.room == 6)) {
_root.hotelgast8._x = 800;
_root.hotelgast8._y = 420;
_root.score = _root.score + _root.hotelgast8.gemoed.coins;
_root.hotelgast8.gemoed.coins = 110;
_root.deur6.play();
} else if (_root.deur7.hitTest(_root.hotelgast8) and (_root.hotelgast8.gemoed.room == 7)) {
_root.hotelgast8._x = 800;
_root.hotelgast8._y = 420;
_root.score = _root.score + _root.hotelgast8.gemoed.coins;
_root.hotelgast8.gemoed.coins = 110;
_root.deur7.play();
} else if (_root.deur8.hitTest(_root.hotelgast8) and (_root.hotelgast8.gemoed.room == 8)) {
_root.hotelgast8._x = 800;
_root.hotelgast8._y = 420;
_root.score = _root.score + _root.hotelgast8.gemoed.coins;
_root.hotelgast8.gemoed.coins = 110;
_root.deur8.play();
} else if (_root.deur9.hitTest(_root.hotelgast8) and (_root.hotelgast8.gemoed.room == 9)) {
_root.hotelgast8._x = 800;
_root.hotelgast8._y = 420;
_root.score = _root.score + _root.hotelgast8.gemoed.coins;
_root.hotelgast8.gemoed.coins = 110;
_root.deur9.play();
}
}
function countdown() {
if (extra_coins == false) {
clearInterval(_root.pauze_timer);
_root.tijdbalk.tijd.nextFrame();
_root.pauze_timer = setInterval(countdown, 1000);
}
}
function leven() {
if (extra_coins == false) {
clearInterval(coins_timer);
if (_root.hotelgast1.gemoed.coins >= 1) {
_root.hotelgast1.gemoed.coins--;
} else {
_root.hotelgast1.gemoed.coins = 0;
}
if (_root.hotelgast2.gemoed.coins >= 1) {
_root.hotelgast2.gemoed.coins--;
} else {
_root.hotelgast2.gemoed.coins = 0;
}
if (_root.hotelgast3.gemoed.coins >= 1) {
_root.hotelgast3.gemoed.coins--;
} else {
_root.hotelgast3.gemoed.coins = 0;
}
if (_root.hotelgast4.gemoed.coins >= 1) {
_root.hotelgast4.gemoed.coins--;
} else {
_root.hotelgast4.gemoed.coins = 0;
}
if (_root.hotelgast5.gemoed.coins >= 1) {
_root.hotelgast5.gemoed.coins--;
} else {
_root.hotelgast5.gemoed.coins = 0;
}
if (_root.hotelgast6.gemoed.coins >= 1) {
_root.hotelgast6.gemoed.coins--;
} else {
_root.hotelgast6.gemoed.coins = 0;
}
if (_root.hotelgast7.gemoed.coins >= 1) {
_root.hotelgast7.gemoed.coins--;
} else {
_root.hotelgast7.gemoed.coins = 0;
}
if (_root.hotelgast8.gemoed.coins >= 1) {
_root.hotelgast8.gemoed.coins--;
} else {
_root.hotelgast8.gemoed.coins = 0;
}
coins_timer = setInterval(leven, 1000);
}
}
function card_1() {
if (_root.hot_ex_card_1.hitTest(_root.hotelgast1) and (extra_coins == false)) {
_root.hot_ex_card_1.play();
_root.score = _root.score + 30;
}
if (_root.hot_ex_card_1.hitTest(_root.hotelgast2) and (extra_coins == false)) {
_root.hot_ex_card_1.play();
_root.score = _root.score + 30;
}
if (_root.hot_ex_card_1.hitTest(_root.hotelgast3) and (extra_coins == false)) {
_root.hot_ex_card_1.play();
_root.score = _root.score + 30;
}
if (_root.hot_ex_card_1.hitTest(_root.hotelgast4) and (extra_coins == false)) {
_root.diamond1.play();
_root.score = _root.score + 30;
}
if (_root.hot_ex_card_1.hitTest(_root.hotelgast5) and (extra_coins == false)) {
_root.hot_ex_card_1.play();
_root.score = _root.score + 30;
}
if (_root.hot_ex_card_1.hitTest(_root.hotelgast6) and (extra_coins == false)) {
_root.hot_ex_card_1.play();
_root.score = _root.score + 30;
}
if (_root.hot_ex_card_1.hitTest(_root.hotelgast7) and (extra_coins == false)) {
_root.hot_ex_card_1.play();
_root.score = _root.score + 30;
}
if (_root.hot_ex_card_1.hitTest(_root.hotelgast8) and (extra_coins == false)) {
_root.hot_ex_card_1.play();
_root.score = _root.score + 30;
}
}
function card_2() {
if (_root.hot_ex_card_2.hitTest(_root.hotelgast1) and (extra_coins == false)) {
_root.hot_ex_card_2.play();
_root.score = _root.score + 30;
}
if (_root.hot_ex_card_2.hitTest(_root.hotelgast2) and (extra_coins == false)) {
_root.hot_ex_card_2.play();
_root.score = _root.score + 30;
}
if (_root.hot_ex_card_2.hitTest(_root.hotelgast3) and (extra_coins == false)) {
_root.hot_ex_card_2.play();
_root.score = _root.score + 30;
}
if (_root.hot_ex_card_2.hitTest(_root.hotelgast4) and (extra_coins == false)) {
_root.hot_ex_card_2.play();
_root.score = _root.score + 30;
}
if (_root.hot_ex_card_2.hitTest(_root.hotelgast5) and (extra_coins == false)) {
_root.hot_ex_card_2.play();
_root.score = _root.score + 30;
}
if (_root.hot_ex_card_2.hitTest(_root.hotelgast6) and (extra_coins == false)) {
_root.hot_ex_card_2.play();
_root.score = _root.score + 30;
}
if (_root.hot_ex_card_2.hitTest(_root.hotelgast7) and (extra_coins == false)) {
_root.hot_ex_card_2.play();
_root.score = _root.score + 30;
}
if (_root.hot_ex_card_2.hitTest(_root.hotelgast8) and (extra_coins == false)) {
_root.hot_ex_card_2.play();
_root.score = _root.score + 30;
}
}
function diamond_1() {
if (_root.diamond1.hitTest(_root.hotelgast1) and (extra_coins == false)) {
_root.diamond1.play();
_root.score = _root.score + 10;
}
if (_root.diamond1.hitTest(_root.hotelgast2) and (extra_coins == false)) {
_root.diamond1.play();
_root.score = _root.score + 10;
}
if (_root.diamond1.hitTest(_root.hotelgast3) and (extra_coins == false)) {
_root.diamond1.play();
_root.score = _root.score + 10;
}
if (_root.diamond1.hitTest(_root.hotelgast4) and (extra_coins == false)) {
_root.diamond1.play();
_root.score = _root.score + 10;
}
if (_root.diamond1.hitTest(_root.hotelgast5) and (extra_coins == false)) {
_root.diamond1.play();
_root.score = _root.score + 10;
}
if (_root.diamond1.hitTest(_root.hotelgast6) and (extra_coins == false)) {
_root.diamond1.play();
_root.score = _root.score + 10;
}
if (_root.diamond1.hitTest(_root.hotelgast7) and (extra_coins == false)) {
_root.diamond1.play();
_root.score = _root.score + 10;
}
if (_root.diamond1.hitTest(_root.hotelgast8) and (extra_coins == false)) {
_root.diamond1.play();
_root.score = _root.score + 10;
}
}
function diamond_2() {
if (_root.diamond2.hitTest(_root.hotelgast1) and (extra_coins == false)) {
_root.diamond2.play();
_root.score = _root.score + 10;
}
if (_root.diamond2.hitTest(_root.hotelgast2) and (extra_coins == false)) {
_root.diamond2.play();
_root.score = _root.score + 10;
}
if (_root.diamond2.hitTest(_root.hotelgast3) and (extra_coins == false)) {
_root.diamond2.play();
_root.score = _root.score + 10;
}
if (_root.diamond1.hitTest(_root.hotelgast4) and (extra_coins == false)) {
_root.diamond2.play();
_root.score = _root.score + 10;
}
if (_root.diamond2.hitTest(_root.hotelgast5) and (extra_coins == false)) {
_root.diamond2.play();
_root.score = _root.score + 10;
}
if (_root.diamond2.hitTest(_root.hotelgast6) and (extra_coins == false)) {
_root.diamond2.play();
_root.score = _root.score + 10;
}
if (_root.diamond2.hitTest(_root.hotelgast7) and (extra_coins == false)) {
_root.diamond2.play();
_root.score = _root.score + 10;
}
if (_root.diamond2.hitTest(_root.hotelgast8) and (extra_coins == false)) {
_root.diamond2.play();
_root.score = _root.score + 10;
}
}
function diamond_3() {
if (_root.diamond3.hitTest(_root.hotelgast1) and (extra_coins == false)) {
_root.diamond3.play();
_root.score = _root.score + 10;
}
if (_root.diamond3.hitTest(_root.hotelgast2) and (extra_coins == false)) {
_root.diamond3.play();
_root.score = _root.score + 10;
}
if (_root.diamond3.hitTest(_root.hotelgast3) and (extra_coins == false)) {
_root.diamond3.play();
_root.score = _root.score + 10;
}
if (_root.diamond3.hitTest(_root.hotelgast4) and (extra_coins == false)) {
_root.diamond3.play();
_root.score = _root.score + 10;
}
if (_root.diamond3.hitTest(_root.hotelgast5) and (extra_coins == false)) {
_root.diamond3.play();
_root.score = _root.score + 10;
}
if (_root.diamond3.hitTest(_root.hotelgast6) and (extra_coins == false)) {
_root.diamond3.play();
_root.score = _root.score + 10;
}
if (_root.diamond3.hitTest(_root.hotelgast7) and (extra_coins == false)) {
_root.diamond3.play();
_root.score = _root.score + 10;
}
if (_root.diamond3.hitTest(_root.hotelgast8) and (extra_coins == false)) {
_root.diamond3.play();
_root.score = _root.score + 10;
}
}
function diamond_4() {
if (_root.diamond4.hitTest(_root.hotelgast1) and (extra_coins == false)) {
_root.diamond4.play();
_root.score = _root.score + 10;
}
if (_root.diamond4.hitTest(_root.hotelgast2) and (extra_coins == false)) {
_root.diamond4.play();
_root.score = _root.score + 10;
}
if (_root.diamond4.hitTest(_root.hotelgast3) and (extra_coins == false)) {
_root.diamond4.play();
_root.score = _root.score + 10;
}
if (_root.diamond1.hitTest(_root.hotelgast4) and (extra_coins == false)) {
_root.diamond4.play();
_root.score = _root.score + 10;
}
if (_root.diamond4.hitTest(_root.hotelgast5) and (extra_coins == false)) {
_root.diamond4.play();
_root.score = _root.score + 10;
}
if (_root.diamond4.hitTest(_root.hotelgast6) and (extra_coins == false)) {
_root.diamond4.play();
_root.score = _root.score + 10;
}
if (_root.diamond4.hitTest(_root.hotelgast7) and (extra_coins == false)) {
_root.diamond4.play();
_root.score = _root.score + 10;
}
if (_root.diamond4.hitTest(_root.hotelgast8) and (extra_coins == false)) {
_root.diamond4.play();
_root.score = _root.score + 10;
}
}
function add_score() {
_root.score + 1000;
}
function alpha_fade_in() {
clearInterval(fade_in_int);
if (_root.tekst._alpha < 100) {
_root.tekst._alpha = _root.tekst._alpha + 5;
}
if (_root.tekst._alpha < 100) {
fade_in_int = setInterval(alpha_fade_in, 30);
} else {
fade_out_int = setInterval(alpha_fade_out, 2000);
}
}
function alpha_fade_out() {
clearInterval(fade_out_int);
if (_root.tekst._alpha > 0) {
_root.tekst._alpha = _root.tekst._alpha - 5;
}
if (_root.tekst._alpha > 0) {
fade_out_int = setInterval(alpha_fade_out, 30);
} else {
fade_in_int = setInterval(alpha_fade_in, 30);
_root.tekst.nextFrame();
}
}
function alpha_fade() {
if (_root.tekst._alpha == 0) {
alpha_fade_in();
} else {
alpha_fade_out();
}
}
stop();
Frame 3
MochiAd.showPreGameAd({id:"9dd2dfa2330ae17a", res:"700x500"});
Frame 4
stop();
Frame 5
stop();
Frame 6
init();
countdown();
leven();
reset_coins_entree();
stop();
Instance of Symbol 206 MovieClip "deur1" in Frame 6
onClipEvent (load) {
this.stop();
}
Instance of Symbol 209 MovieClip "deur2" in Frame 6
onClipEvent (load) {
this.stop();
}
Instance of Symbol 212 MovieClip "deur3" in Frame 6
onClipEvent (load) {
this.stop();
}
Instance of Symbol 215 MovieClip "deur6" in Frame 6
onClipEvent (load) {
this.stop();
}
Instance of Symbol 218 MovieClip "deur5" in Frame 6
onClipEvent (load) {
this.stop();
}
Instance of Symbol 221 MovieClip "deur4" in Frame 6
onClipEvent (load) {
this.stop();
}
Instance of Symbol 224 MovieClip "deur7" in Frame 6
onClipEvent (load) {
this.stop();
}
Instance of Symbol 227 MovieClip "deur8" in Frame 6
onClipEvent (load) {
this.stop();
}
Instance of Symbol 229 MovieClip "deur9" in Frame 6
onClipEvent (load) {
this.stop();
}
Instance of Symbol 233 MovieClip "diamond2" in Frame 6
onClipEvent (enterFrame) {
_root.diamond_2();
}
Instance of Symbol 235 MovieClip "diamond4" in Frame 6
onClipEvent (enterFrame) {
_root.diamond_4();
}
Instance of Symbol 235 MovieClip "diamond3" in Frame 6
onClipEvent (enterFrame) {
_root.diamond_3();
_root.alg_room();
}
Instance of Symbol 235 MovieClip "diamond1" in Frame 6
onClipEvent (enterFrame) {
_root.diamond_1();
}
Instance of Symbol 256 MovieClip "hotelgast1" in Frame 6
onClipEvent (load) {
function checkTopSpeed() {
if (speedY > topSpeedY) {
speedY = topSpeedY;
hotelgast1.gotoAndStop(2);
}
}
moveX = -3;
con = "ground";
speedY = 0;
speedX = 2;
topSpeedY = 50;
stop();
}
onClipEvent (enterFrame) {
_root.wijs_kamernummer_toe1();
_root.kamer_gevonden1();
if (moveX < 0) {
_root.hotelgast1.gotoAndStop(1);
} else {
_root.hotelgast1.gotoAndStop(2);
}
_x = (_x + moveX);
var i = moveX;
if (_root.stage.hitTest(_x, _y + 1, true)) {
if (_root.stage.hitTest(_x + i, _y - 1, true)) {
_x = (_x - moveX);
moveX = moveX * -1;
}
} else {
_root.gemoedsrust_hotelgast_1();
_root.hotelgast1.gotoAndStop(2);
_x = (_x - moveX);
moveX = moveX * -1;
}
if (con == "fall") {
speedY++;
checkTopSpeed();
var i = 0;
while (i < speedY) {
_y = (_y+1);
if (_root.stage.hitTest(_x - 6, _y, true) or _root.stage.hitTest(_x + 6, _y, true)) {
con = "ground";
i = speedY;
}
i = i + 0.5;
}
} else if (con == "ground") {
if (_root.stage.hitTest(_x - 6, _y, true) or _root.stage.hitTest(_x + 6, _y, true)) {
} else {
con = "fall";
}
}
while ((_root.stage.hitTest(_x - 8, _y - 1, true) or _root.stage.hitTest(_x + 8, _y - 1, true)) and (con == "ground")) {
_y = (_y-1);
_root.hotelgast1.gotoAndStop(2);
}
}
Instance of Symbol 263 MovieClip "hotelgast2" in Frame 6
onClipEvent (load) {
function checkTopSpeed() {
if (speedY > topSpeedY) {
speedY = topSpeedY;
gotoAndStop (7);
}
}
moveX = -3;
con = "fall";
speedY = 0;
speedX = 2;
topSpeedY = 50;
stop();
}
onClipEvent (enterFrame) {
_root.wijs_kamernummer_toe2();
_root.kamer_gevonden2();
if (moveX < 0) {
_root.hotelgast2.gotoAndStop(1);
} else {
_root.hotelgast2.gotoAndStop(2);
}
_x = (_x + moveX);
var i = moveX;
if (_root.stage.hitTest(_x, _y + 1, true)) {
if (_root.stage.hitTest(_x + i, _y - 1, true)) {
_x = (_x - moveX);
moveX = moveX * -1;
}
} else {
_root.gemoedsrust_hotelgast_2();
_root.hotelgast2.gotoAndStop(2);
_x = (_x - moveX);
moveX = moveX * -1;
}
if (con == "fall") {
speedY++;
checkTopSpeed();
var i = 0;
while (i < speedY) {
_y = (_y+1);
if (_root.stage.hitTest(_x - 6, _y, true) or _root.stage.hitTest(_x + 6, _y, true)) {
con = "ground";
i = speedY;
}
i = i + 0.5;
}
} else if (con == "ground") {
if (_root.stage.hitTest(_x - 6, _y, true) or _root.stage.hitTest(_x + 6, _y, true)) {
} else {
con = "fall";
}
}
while ((_root.stage.hitTest(_x - 8, _y - 1, true) or _root.stage.hitTest(_x + 8, _y - 1, true)) and (con == "ground")) {
_y = (_y-1);
_root.hotelgast2.gotoAndStop(2);
}
}
Instance of Symbol 266 MovieClip "hotelgast3" in Frame 6
onClipEvent (load) {
function checkTopSpeed() {
if (speedY > topSpeedY) {
speedY = topSpeedY;
gotoAndStop (7);
}
}
moveX = -3;
con = "fall";
speedY = 0;
speedX = 2;
topSpeedY = 50;
stop();
}
onClipEvent (enterFrame) {
_root.wijs_kamernummer_toe3();
_root.kamer_gevonden3();
if (moveX < 0) {
_root.hotelgast3.gotoAndStop(1);
} else {
_root.hotelgast3.gotoAndStop(2);
}
_x = (_x + moveX);
var i = moveX;
if (_root.stage.hitTest(_x, _y + 1, true)) {
if (_root.stage.hitTest(_x + i, _y - 1, true)) {
_x = (_x - moveX);
moveX = moveX * -1;
}
} else {
_root.gemoedsrust_hotelgast_3();
_root.hotelgast3.gotoAndStop(2);
_x = (_x - moveX);
moveX = moveX * -1;
}
if (con == "fall") {
speedY++;
checkTopSpeed();
var i = 0;
while (i < speedY) {
_y = (_y+1);
if (_root.stage.hitTest(_x - 6, _y, true) or _root.stage.hitTest(_x + 6, _y, true)) {
con = "ground";
i = speedY;
}
i = i + 0.5;
}
} else if (con == "ground") {
if (_root.stage.hitTest(_x - 6, _y, true) or _root.stage.hitTest(_x + 6, _y, true)) {
} else {
con = "fall";
}
}
while ((_root.stage.hitTest(_x - 8, _y - 1, true) or _root.stage.hitTest(_x + 8, _y - 1, true)) and (con == "ground")) {
_y = (_y-1);
_root.hotelgast3.gotoAndStop(2);
}
}
Instance of Symbol 269 MovieClip "hotelgast4" in Frame 6
onClipEvent (load) {
function checkTopSpeed() {
if (speedY > topSpeedY) {
speedY = topSpeedY;
hotelgast1.gotoAndStop(2);
}
}
moveX = -3;
con = "ground";
speedY = 0;
speedX = 2;
topSpeedY = 50;
stop();
}
onClipEvent (enterFrame) {
_root.wijs_kamernummer_toe4();
_root.kamer_gevonden4();
if (moveX < 0) {
_root.hotelgast4.gotoAndStop(1);
} else {
_root.hotelgast4.gotoAndStop(2);
}
_x = (_x + moveX);
var i = moveX;
if (_root.stage.hitTest(_x, _y + 1, true)) {
if (_root.stage.hitTest(_x + i, _y - 1, true)) {
_x = (_x - moveX);
moveX = moveX * -1;
}
} else {
_root.gemoedsrust_hotelgast_4();
_root.hotelgast4.gotoAndStop(2);
_x = (_x - moveX);
moveX = moveX * -1;
}
if (con == "fall") {
speedY++;
checkTopSpeed();
var i = 0;
while (i < speedY) {
_y = (_y+1);
if (_root.stage.hitTest(_x - 6, _y, true) or _root.stage.hitTest(_x + 6, _y, true)) {
con = "ground";
i = speedY;
}
i = i + 0.5;
}
} else if (con == "ground") {
if (_root.stage.hitTest(_x - 6, _y, true) or _root.stage.hitTest(_x + 6, _y, true)) {
} else {
con = "fall";
}
}
while ((_root.stage.hitTest(_x - 8, _y - 1, true) or _root.stage.hitTest(_x + 8, _y - 1, true)) and (con == "ground")) {
_y = (_y-1);
_root.hotelgast4.gotoAndStop(2);
}
}
Instance of Symbol 272 MovieClip "hotelgast5" in Frame 6
onClipEvent (load) {
function checkTopSpeed() {
if (speedY > topSpeedY) {
speedY = topSpeedY;
gotoAndStop (7);
}
}
moveX = -3;
con = "fall";
speedY = 0;
speedX = 2;
topSpeedY = 50;
stop();
}
onClipEvent (enterFrame) {
_root.wijs_kamernummer_toe5();
_root.kamer_gevonden5();
if (moveX < 0) {
_root.hotelgast5.gotoAndStop(1);
} else {
_root.hotelgast5.gotoAndStop(2);
}
_x = (_x + moveX);
var i = moveX;
if (_root.stage.hitTest(_x, _y + 1, true)) {
if (_root.stage.hitTest(_x + i, _y - 1, true)) {
_x = (_x - moveX);
moveX = moveX * -1;
}
} else {
_root.gemoedsrust_hotelgast_5();
_root.hotelgast5.gotoAndStop(2);
_x = (_x - moveX);
moveX = moveX * -1;
}
if (con == "fall") {
speedY++;
checkTopSpeed();
var i = 0;
while (i < speedY) {
_y = (_y+1);
if (_root.stage.hitTest(_x - 6, _y, true) or _root.stage.hitTest(_x + 6, _y, true)) {
con = "ground";
i = speedY;
}
i = i + 0.5;
}
} else if (con == "ground") {
if (_root.stage.hitTest(_x - 6, _y, true) or _root.stage.hitTest(_x + 6, _y, true)) {
} else {
con = "fall";
}
}
while ((_root.stage.hitTest(_x - 8, _y - 1, true) or _root.stage.hitTest(_x + 8, _y - 1, true)) and (con == "ground")) {
_y = (_y-1);
_root.hotelgast5.gotoAndStop(2);
}
}
Instance of Symbol 275 MovieClip "hotelgast6" in Frame 6
onClipEvent (load) {
function checkTopSpeed() {
if (speedY > topSpeedY) {
speedY = topSpeedY;
hotelgast1.gotoAndStop(2);
}
}
moveX = -3;
con = "ground";
speedY = 0;
speedX = 2;
topSpeedY = 50;
stop();
}
onClipEvent (enterFrame) {
_root.wijs_kamernummer_toe6();
_root.kamer_gevonden6();
if (moveX < 0) {
_root.hotelgast6.gotoAndStop(1);
} else {
_root.hotelgast6.gotoAndStop(2);
}
_x = (_x + moveX);
var i = moveX;
if (_root.stage.hitTest(_x, _y + 1, true)) {
if (_root.stage.hitTest(_x + i, _y - 1, true)) {
_x = (_x - moveX);
moveX = moveX * -1;
}
} else {
_root.gemoedsrust_hotelgast_6();
_root.hotelgast6.gotoAndStop(2);
_x = (_x - moveX);
moveX = moveX * -1;
}
if (con == "fall") {
speedY++;
checkTopSpeed();
var i = 0;
while (i < speedY) {
_y = (_y+1);
if (_root.stage.hitTest(_x - 6, _y, true) or _root.stage.hitTest(_x + 6, _y, true)) {
con = "ground";
i = speedY;
}
i = i + 0.5;
}
} else if (con == "ground") {
if (_root.stage.hitTest(_x - 6, _y, true) or _root.stage.hitTest(_x + 6, _y, true)) {
} else {
con = "fall";
}
}
while ((_root.stage.hitTest(_x - 8, _y - 1, true) or _root.stage.hitTest(_x + 8, _y - 1, true)) and (con == "ground")) {
_y = (_y-1);
_root.hotelgast6.gotoAndStop(2);
}
}
Instance of Symbol 278 MovieClip "hotelgast7" in Frame 6
onClipEvent (load) {
function checkTopSpeed() {
if (speedY > topSpeedY) {
speedY = topSpeedY;
gotoAndStop (7);
}
}
moveX = -3;
con = "fall";
speedY = 0;
speedX = 2;
topSpeedY = 50;
stop();
}
onClipEvent (enterFrame) {
_root.wijs_kamernummer_toe7();
_root.kamer_gevonden7();
if (moveX < 0) {
_root.hotelgast7.gotoAndStop(1);
} else {
_root.hotelgast7.gotoAndStop(2);
}
_x = (_x + moveX);
var i = moveX;
if (_root.stage.hitTest(_x, _y + 1, true)) {
if (_root.stage.hitTest(_x + i, _y - 1, true)) {
_x = (_x - moveX);
moveX = moveX * -1;
}
} else {
_root.gemoedsrust_hotelgast_7();
_root.hotelgast7.gotoAndStop(2);
_x = (_x - moveX);
moveX = moveX * -1;
}
if (con == "fall") {
speedY++;
checkTopSpeed();
var i = 0;
while (i < speedY) {
_y = (_y+1);
if (_root.stage.hitTest(_x - 6, _y, true) or _root.stage.hitTest(_x + 6, _y, true)) {
con = "ground";
i = speedY;
}
i = i + 0.5;
}
} else if (con == "ground") {
if (_root.stage.hitTest(_x - 6, _y, true) or _root.stage.hitTest(_x + 6, _y, true)) {
} else {
con = "fall";
}
}
while ((_root.stage.hitTest(_x - 8, _y - 1, true) or _root.stage.hitTest(_x + 8, _y - 1, true)) and (con == "ground")) {
_y = (_y-1);
_root.hotelgast7.gotoAndStop(2);
}
}
Instance of Symbol 281 MovieClip "hotelgast8" in Frame 6
onClipEvent (load) {
function checkTopSpeed() {
if (speedY > topSpeedY) {
speedY = topSpeedY;
hotelgast1.gotoAndStop(2);
}
}
moveX = -3;
con = "ground";
speedY = 0;
speedX = 2;
topSpeedY = 50;
stop();
}
onClipEvent (enterFrame) {
_root.wijs_kamernummer_toe8();
_root.kamer_gevonden8();
if (moveX < 0) {
_root.hotelgast8.gotoAndStop(1);
} else {
_root.hotelgast8.gotoAndStop(2);
}
_x = (_x + moveX);
var i = moveX;
if (_root.stage.hitTest(_x, _y + 1, true)) {
if (_root.stage.hitTest(_x + i, _y - 1, true)) {
_x = (_x - moveX);
moveX = moveX * -1;
}
} else {
_root.gemoedsrust_hotelgast_8();
_root.hotelgast8.gotoAndStop(2);
_x = (_x - moveX);
moveX = moveX * -1;
}
if (con == "fall") {
speedY++;
checkTopSpeed();
var i = 0;
while (i < speedY) {
_y = (_y+1);
if (_root.stage.hitTest(_x - 6, _y, true) or _root.stage.hitTest(_x + 6, _y, true)) {
con = "ground";
i = speedY;
}
i = i + 0.5;
}
} else if (con == "ground") {
if (_root.stage.hitTest(_x - 6, _y, true) or _root.stage.hitTest(_x + 6, _y, true)) {
} else {
con = "fall";
}
}
while ((_root.stage.hitTest(_x - 8, _y - 1, true) or _root.stage.hitTest(_x + 8, _y - 1, true)) and (con == "ground")) {
_y = (_y-1);
_root.hotelgast8.gotoAndStop(2);
}
}
Instance of Symbol 310 MovieClip "tekst" in Frame 6
onClipEvent (load) {
this.stop();
_root.alpha_fade();
}
Instance of Symbol 319 MovieClip "hot_ex_card_2" in Frame 6
onClipEvent (enterFrame) {
_root.card_2();
}
Instance of Symbol 320 MovieClip "hot_ex_card_1" in Frame 6
onClipEvent (enterFrame) {
_root.card_1();
}
Symbol 11 Button
on (release) {
if (_root.motion == "0") {
_root.ga_naar1 = "268";
_root.lift();
_root.push_button_sound();
}
}
Symbol 12 Button
on (release) {
if (_root.motion == "0") {
_root.ga_naar1 = "170";
_root.lift();
_root.push_button_sound();
}
}
Symbol 13 Button
on (release) {
if (_root.motion == "0") {
_root.ga_naar1 = "71";
_root.lift();
_root.push_button_sound();
}
}
Symbol 15 Button
on (release) {
if (_root.motion2 == "0") {
_root.ga_naar2 = "269";
_root.lift2();
_root.push_button_sound();
}
}
Symbol 16 Button
on (release) {
if (_root.motion2 == "0") {
_root.ga_naar2 = "169";
_root.lift2();
_root.push_button_sound();
}
}
Symbol 17 Button
on (release) {
if (_root.motion2 == "0") {
_root.ga_naar2 = "70";
_root.lift2();
_root.push_button_sound();
}
}
Instance of Symbol 14 MovieClip "lifthuis1" in Symbol 20 MovieClip [stage] Frame 1
onClipEvent (enterFrame) {
_root.lift();
}
Instance of Symbol 18 MovieClip "lifthuis2" in Symbol 20 MovieClip [stage] Frame 1
onClipEvent (enterFrame) {
_root.lift2();
}
Symbol 362 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.31");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
_rcvChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local2 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
allowDomains(_gatewayURL);
_clip = clip.createEmptyMovieClip(_local2, 10336, false);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _rcvChannel._callbacks[_local1.callbackID];
}
delete _rcvChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 363 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:10, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 364 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
}
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (typeof(options.score) == "object") {
if (options.score.text != undefined) {
options.score = options.score.text;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 57 MovieClip Frame 1
Symbol 57 MovieClip Frame 198
_root.play();
Symbol 63 Button
on (press) {
_parent.play();
}
Symbol 67 MovieClip Frame 19
stop();
Symbol 75 MovieClip Frame 102
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 40
_root.hotelbell_sound();
logo.fade_in.play();
stop();
Symbol 81 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut, releaseOutside) {
gotoAndPlay (15);
}
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 14
stop();
Symbol 83 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut, releaseOutside) {
gotoAndPlay (15);
}
on (release) {
_parent.txt1 = _parent.label_01;
_parent.txt2 = _parent.label_02;
_parent.txt3 = _parent.label_03;
_parent.txt4 = _parent.label_04;
_parent.txt5 = _parent.label_05;
}
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 14
stop();
Symbol 86 Button
on (press) {
_root.do_login();
}
Symbol 90 Button
on (press) {
_root.pop_uitleg._visible = true;
_root.pop_uitleg.gotoAndStop(1);
}
Symbol 95 Button
on (press) {
gotoAndStop (2);
}
Symbol 105 Button
on (press) {
gotoAndStop (3);
}
Symbol 106 Button
on (press) {
gotoAndStop (1);
}
Symbol 120 MovieClip Frame 10
_parent.rood = _parent.rood - 1;
Symbol 121 MovieClip Frame 1
geel = random(8) + 1;
rood = 100;
Symbol 124 Button
on (press) {
gotoAndStop (4);
}
Symbol 150 MovieClip Frame 300
_root.time_up = 1;
_root.game_over();
trace("trying to submit score");
stop();
Symbol 154 MovieClip Frame 66
gotoAndStop (1);
Instance of Symbol 154 MovieClip "coin_ani2" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 154 MovieClip "coin_ani8" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 154 MovieClip "coin_ani6" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 154 MovieClip "coin_ani7" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 154 MovieClip "coin_ani10" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 154 MovieClip "coin_ani16" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 154 MovieClip "coin_ani14" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 154 MovieClip "coin_ani15" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 154 MovieClip "coin_ani12" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 154 MovieClip "coin_ani11" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 154 MovieClip "coin_ani13" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 154 MovieClip "coin_ani9" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 154 MovieClip "coin_ani4" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 154 MovieClip "coin_ani3" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 154 MovieClip "coin_ani5" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 154 MovieClip "coin_ani1" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 158 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 2
stop();
Symbol 158 MovieClip Frame 3
stop();
Symbol 158 MovieClip Frame 4
stop();
Instance of Symbol 150 MovieClip "tijd" in Symbol 158 MovieClip Frame 4
onClipEvent (load) {
stop();
}
Symbol 159 Button
on (press) {
_root.play();
}
Symbol 165 Button
on (release) {
getURL ("http://www.yougame.com", "_top");
}
Symbol 169 Button
on (release) {
getURL ("http://www.yougame.com/putonyourwebsite/", "_top");
}
Symbol 173 Button
on (release) {
mochi.MochiScores.showLeaderboard({boardID:"4799fba84c899da1", onClose:function () {
}});
}
Symbol 177 MovieClip Frame 1
stop();
Symbol 200 Button
on (press) {
_root.soundSwitch();
}
Symbol 206 MovieClip Frame 2
_root.score_adding = "aan";
_root.money_ani();
_root.coins_sound();
_root.gasten_in_hotel++;
Symbol 206 MovieClip Frame 13
_root.score_adding = "uit";
_root.deur_dicht();
gotoAndStop (1);
Symbol 209 MovieClip Frame 2
_root.score_adding = "aan";
_root.money_ani();
_root.coins_sound();
_root.gasten_in_hotel++;
Symbol 209 MovieClip Frame 13
_root.score_adding = "uit";
_root.deur_dicht();
gotoAndStop (1);
Symbol 212 MovieClip Frame 2
_root.score_adding = "aan";
_root.money_ani();
_root.coins_sound();
_root.gasten_in_hotel++;
Symbol 212 MovieClip Frame 13
_root.score_adding = "uit";
_root.deur_dicht();
gotoAndStop (1);
Symbol 215 MovieClip Frame 2
_root.score_adding = "aan";
_root.money_ani();
_root.coins_sound();
_root.gasten_in_hotel++;
Symbol 215 MovieClip Frame 13
_root.score_adding = "uit";
_root.deur_dicht();
gotoAndStop (1);
Symbol 218 MovieClip Frame 2
_root.score_adding = "aan";
_root.money_ani();
_root.coins_sound();
_root.gasten_in_hotel++;
Symbol 218 MovieClip Frame 13
_root.score_adding = "uit";
_root.deur_dicht();
gotoAndStop (1);
Symbol 221 MovieClip Frame 2
_root.score_adding = "aan";
_root.money_ani();
_root.coins_sound();
_root.gasten_in_hotel++;
Symbol 221 MovieClip Frame 13
_root.score_adding = "uit";
_root.deur_dicht();
gotoAndStop (1);
Symbol 224 MovieClip Frame 2
_root.score_adding = "aan";
_root.money_ani();
_root.coins_sound();
_root.gasten_in_hotel++;
Symbol 224 MovieClip Frame 13
_root.score_adding = "uit";
_root.deur_dicht();
gotoAndStop (1);
Symbol 227 MovieClip Frame 2
_root.score_adding = "aan";
_root.money_ani();
_root.coins_sound();
_root.gasten_in_hotel++;
Symbol 227 MovieClip Frame 13
_root.score_adding = "uit";
_root.deur_dicht();
gotoAndStop (1);
Symbol 229 MovieClip Frame 2
_root.score_adding = "aan";
_root.money_ani();
_root.coins_sound();
_root.gasten_in_hotel++;
Symbol 229 MovieClip Frame 13
_root.score_adding = "uit";
_root.deur_dicht();
gotoAndStop (1);
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 2
_root.add_score();
_root.score_adding = "aan";
_root.money_ani();
_root.pling_sound();
_root.bonus_items++;
Symbol 233 MovieClip Frame 16
_root.score_adding = "uit";
_root.display_aan();
stop();
Symbol 235 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 2
_root.add_score();
_root.score_adding = "aan";
_root.money_ani();
_root.pling_sound();
_root.bonus_items++;
Symbol 235 MovieClip Frame 16
_root.score_adding = "uit";
stop();
Symbol 254 MovieClip Frame 1
coins = 110;
Symbol 254 MovieClip Frame 25
stop();
Symbol 256 MovieClip Frame 1
stop();
Instance of Symbol 254 MovieClip "gemoed" in Symbol 256 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 256 MovieClip Frame 2
stop();
Symbol 263 MovieClip Frame 1
stop();
Instance of Symbol 254 MovieClip "gemoed" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 263 MovieClip Frame 2
stop();
Symbol 266 MovieClip Frame 1
stop();
Instance of Symbol 254 MovieClip "gemoed" in Symbol 266 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 266 MovieClip Frame 2
stop();
Symbol 269 MovieClip Frame 1
stop();
Instance of Symbol 254 MovieClip "gemoed" in Symbol 269 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 269 MovieClip Frame 2
stop();
Symbol 272 MovieClip Frame 1
stop();
Instance of Symbol 254 MovieClip "gemoed" in Symbol 272 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 272 MovieClip Frame 2
stop();
Symbol 275 MovieClip Frame 1
stop();
Instance of Symbol 254 MovieClip "gemoed" in Symbol 275 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 275 MovieClip Frame 2
stop();
Symbol 278 MovieClip Frame 1
stop();
Instance of Symbol 254 MovieClip "gemoed" in Symbol 278 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 278 MovieClip Frame 2
stop();
Symbol 281 MovieClip Frame 1
stop();
Instance of Symbol 254 MovieClip "gemoed" in Symbol 281 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 281 MovieClip Frame 2
stop();
Instance of Symbol 150 MovieClip "tijd" in Symbol 290 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 310 MovieClip Frame 7
gotoAndStop (1);
Symbol 319 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 2
_root.add_score();
_root.score_adding = "aan";
_root.money_ani();
_root.pling_sound();
_root.goldcard++;
Symbol 319 MovieClip Frame 16
_root.display3_aan();
_root.score = _root.score + 30;
_root.score_adding = "uit";
stop();
Symbol 320 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 2
_root.add_score();
_root.score_adding = "aan";
_root.money_ani();
_root.pling_sound();
_root.goldcard++;
Symbol 320 MovieClip Frame 16
_root.display2_aan();
_root.score = _root.score + 30;
_root.score_adding = "uit";
stop();
Symbol 323 Button
on (release) {
_root.check_data4();
_root.display_uit();
}
Symbol 332 Button
on (release) {
_root.check_data3();
_root.display2_uit();
}
Symbol 342 Button
on (release) {
_root.check_data4();
_root.display3_uit();
}
Symbol 347 MovieClip Frame 2
if (((_parent.beantwoord1 == 1) and (_parent.beantwoord2 == 1)) and (_parent.beantwoord3 == 1)) {
_parent.butklip.gotoAndStop(2);
}
Symbol 352 Button
on (release) {
stopAllSounds();
_root.gotoAndPlay(5);
}
Symbol 358 Button
on (release) {
mochi.MochiScores.showLeaderboard({boardID:"4799fba84c899da1", score:_root.score, onClose:function () {
stopAllSounds();
_root.gotoAndPlay(5);
}});
}