Frame 2
var sound_paint = new Sound(this);
sound_paint.attachSound("pnt");
var sound_tape = new Sound(this);
_focusrect = false;
sound_tape.attachSound("tape");
var sound_switch = new Sound(this);
sound_switch.attachSound("switch");
var sound_pump = new Sound(this);
sound_pump.attachSound("pump");
var sound_pop = new Sound(this);
sound_pop.attachSound("pop");
var sound_popout = new Sound(this);
sound_popout.attachSound("popout");
var sound_torch = new Sound(this);
sound_torch.attachSound("torch");
var sound_saw = new Sound(this);
sound_saw.attachSound("saw");
var sound_loop = new Sound(this);
sound_loop.attachSound("loop");
var sound_introloop = new Sound(this);
sound_introloop.attachSound("introloop");
var sound_beep = new Sound(this);
sound_beep.attachSound("beep");
var sound_schuif = new Sound(this);
sound_schuif.attachSound("schuif");
sound_loop.stop();
sound_introloop.stop();
Frame 3
_highquality = 1;
keuze = 0;
sound_loop.stop();
sound_introloop.start(0, 9999);
stop();
Frame 4
if (keuze != 1) {
gotoAndPlay ("intro");
}
sound_introloop.stop();
sound_loop.start(0, 9999);
stop();
Frame 5
if (keuze != 2) {
gotoAndPlay ("intro");
}
sound_loop.stop();
sound_introloop.stop();
stop();
Frame 6
MochiAd.showTimedAd({id:"f9aaa4039f1d4725", res:"640x600"});
Frame 7
gotoAndPlay ("spel");
Symbol 21 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 2
stop();
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 2
stop();
Symbol 24 MovieClip Frame 3
stop();
Symbol 24 MovieClip Frame 4
stop();
Symbol 24 MovieClip Frame 5
stop();
Symbol 24 MovieClip Frame 6
stop();
Symbol 24 MovieClip Frame 7
stop();
Symbol 24 MovieClip Frame 8
stop();
Symbol 24 MovieClip Frame 9
stop();
Symbol 29 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 2
stop();
Symbol 29 MovieClip Frame 3
stop();
Symbol 29 MovieClip Frame 4
stop();
Symbol 32 MovieClip Frame 1
stop();
Symbol 32 MovieClip Frame 2
stop();
Symbol 32 MovieClip Frame 3
stop();
Symbol 41 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 2
stop();
Symbol 41 MovieClip Frame 3
stop();
Symbol 44 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 2
stop();
Symbol 44 MovieClip Frame 3
stop();
Symbol 47 MovieClip Frame 1
trace("b");
stop();
Symbol 47 MovieClip Frame 2
trace("o");
stop();
Symbol 47 MovieClip Frame 3
trace("w");
stop();
Symbol 49 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 2
stop();
Symbol 51 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 2
stop();
Symbol 51 MovieClip Frame 3
stop();
Symbol 51 MovieClip Frame 4
stop();
Symbol 51 MovieClip Frame 5
stop();
Symbol 51 MovieClip Frame 6
stop();
Symbol 54 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 2
stop();
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 2
stop();
Symbol 56 MovieClip Frame 3
stop();
Symbol 56 MovieClip Frame 4
stop();
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 2
stop();
Symbol 59 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 2
i = 1;
alpha = 0.3;
maxlight = 25;
while (i <= maxlight) {
duplicateMovieClip ("mi0", "mi" add i, 900 - i);
setProperty("mi" add i, _xscale , getProperty("mi" add (i - 1), _xscale) + (i * alpha));
setProperty("mi" add i, _yscale , getProperty("mi" add (i - 1), _yscale) + (i * alpha));
setProperty("mi" add i, _alpha , 10 - (i * 0.2));
i++;
}
Symbol 59 MovieClip Frame 3
stop();
Symbol 59 MovieClip Frame 4
i = 1;
alpha = 0.3;
maxlight = 25;
while (i <= maxlight) {
duplicateMovieClip ("mi0", "mi" add i, 900 - i);
setProperty("mi" add i, _xscale , getProperty("mi" add (i - 1), _xscale) + (i * alpha));
setProperty("mi" add i, _yscale , getProperty("mi" add (i - 1), _yscale) + (i * alpha));
setProperty("mi" add i, _alpha , 10 - (i * 0.2));
i++;
}
Symbol 59 MovieClip Frame 5
stop();
Symbol 60 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 2
i = 1;
alpha = 0.3;
maxlight = 25;
while (i <= maxlight) {
duplicateMovieClip ("mi0", "mi" add i, 900 - i);
setProperty("mi" add i, _xscale , getProperty("mi" add (i - 1), _xscale) + (i * alpha));
setProperty("mi" add i, _yscale , getProperty("mi" add (i - 1), _yscale) + (i * alpha));
setProperty("mi" add i, _alpha , 10 - (i * 0.2));
i++;
}
Symbol 60 MovieClip Frame 3
stop();
Symbol 60 MovieClip Frame 4
i = 1;
alpha = 0.3;
maxlight = 25;
while (i <= maxlight) {
duplicateMovieClip ("mi0", "mi" add i, 900 - i);
setProperty("mi" add i, _xscale , getProperty("mi" add (i - 1), _xscale) + (i * alpha));
setProperty("mi" add i, _yscale , getProperty("mi" add (i - 1), _yscale) + (i * alpha));
setProperty("mi" add i, _alpha , 10 - (i * 0.2));
i++;
}
Symbol 60 MovieClip Frame 5
stop();
Symbol 61 MovieClip [balprod] Frame 1
stop();
Symbol 61 MovieClip [balprod] Frame 2
if (bol) {
lbal._visible = true;
if (bolkleur == "o") {
lfiltero._visible = true;
} else {
lfiltero._visible = false;
}
} else {
lbal._visible = false;
lfiltero._visible = false;
}
if (tape) {
ltape._visible = true;
} else {
ltape._visible = false;
}
gotoAndPlay ("bol1l");
Symbol 61 MovieClip [balprod] Frame 3
stop();
Symbol 61 MovieClip [balprod] Frame 4
if (bol) {
lbal._visible = true;
if (bolkleur == "b") {
lfilterb._visible = true;
} else {
lfilterb._visible = false;
}
if (bolkleur == "o") {
lfiltero._visible = true;
} else {
lfiltero._visible = false;
}
} else {
lbal._visible = false;
lfilterb._visible = false;
lfiltero._visible = false;
}
if (spin) {
lspin._visible = true;
} else {
lspin._visible = false;
}
if (bollen) {
lbollen._visible = true;
if (bollenkleur == "b") {
lbollen.gotoAndStop("blauw");
}
if (bollenkleur == "o") {
lbollen.gotoAndStop("oranje");
}
if (bollenkleur == "w") {
lbollen.gotoAndStop("wit");
}
} else {
lbollen._visible = false;
}
gotoAndPlay ("bol2l");
Symbol 61 MovieClip [balprod] Frame 5
stop();
Symbol 61 MovieClip [balprod] Frame 6
lbal._xscale = 100;
lbal._yscale = 100;
lfilterg._xscale = 100;
lfilterg._yscale = 100;
if (bol) {
lbal._visible = true;
if (bolkleur == "g") {
lfilterg._visible = true;
} else {
lfilterg._visible = false;
}
} else {
lbal._visible = false;
lfilterg._visible = false;
}
lpompdipg1._visible = false;
lpompdipg2._visible = false;
lpompdipg3._visible = false;
if (pompniv == 1) {
lbal._xscale = 140;
lbal._yscale = 140;
lfilterg._xscale = 140;
lfilterg._yscale = 140;
if (pompdipg1) {
lpompdipg1._visible = true;
}
} else if (pompniv == 2) {
lbal._xscale = 170;
lbal._yscale = 170;
lfilterg._xscale = 170;
lfilterg._yscale = 170;
if (pompdipg2) {
lpompdipg2._visible = true;
}
if (pompdipg3) {
lpompdipg3._visible = true;
}
}
gotoAndPlay ("bol3l");
Symbol 61 MovieClip [balprod] Frame 7
stop();
Symbol 61 MovieClip [balprod] Frame 8
lbal._xscale = 100;
lbal._yscale = 100;
if (bol) {
lbal._visible = true;
if (bolkleur == "y") {
lfiltery._visible = true;
} else {
lfiltery._visible = false;
}
} else {
lbal._visible = false;
lfiltery._visible = false;
}
if (zaag) {
lzaag._visible = true;
} else {
lzaag._visible = false;
}
if (bril) {
lbril._visible = true;
} else {
lbril._visible = false;
}
if (ogen) {
if (ogenkleur == "y") {
logeny._visible = true;
} else {
logeny._visible = false;
}
if (ogenkleur == "w") {
logenw._visible = true;
} else {
logenw._visible = false;
}
} else {
logeny._visible = false;
logenw._visible = false;
}
gotoAndPlay ("bol4oudl");
Symbol 61 MovieClip [balprod] Frame 9
stop();
Symbol 61 MovieClip [balprod] Frame 10
lbal._xscale = 100;
lbal._yscale = 100;
lfilterg._xscale = 100;
lfilterg._yscale = 100;
lfilterb._xscale = 100;
lfilterb._yscale = 100;
if (bol) {
lbal._visible = true;
if (bolkleur == "g") {
lfilterg._visible = true;
} else {
lfilterg._visible = false;
}
if (bolkleur == "b") {
lfilterb._visible = true;
} else {
lfilterb._visible = false;
}
} else {
lbal._visible = false;
lfilterg._visible = false;
lfilterb._visible = false;
}
if (pompniv == 1) {
lbal._xscale = 140;
lbal._yscale = 140;
lfilterg._xscale = 140;
lfilterg._yscale = 140;
lfilterb._xscale = 140;
lfilterb._yscale = 140;
} else if (pompniv == 2) {
lbal._xscale = 170;
lbal._yscale = 170;
lfilterg._xscale = 170;
lfilterg._yscale = 170;
lfilterb._xscale = 170;
lfilterb._yscale = 170;
}
if (pompdip1) {
lpompdip1._visible = true;
if (pompdip1kleur == "g") {
lpompdip1.gotoAndStop("groen");
}
if (pompdip1kleur == "b") {
lpompdip1.gotoAndStop("blauw");
}
} else {
lpompdip1._visible = false;
}
if (pompdip2) {
lpompdip2._visible = true;
if (pompdip2kleur == "g") {
lpompdip2.gotoAndStop("groen");
}
if (pompdip2kleur == "b") {
lpompdip2.gotoAndStop("blauw");
}
} else {
lpompdip2._visible = false;
}
if (pompdip3) {
lpompdip3._visible = true;
if (pompdip3kleur == "g") {
lpompdip3.gotoAndStop("groen");
}
if (pompdip3kleur == "b") {
lpompdip3.gotoAndStop("blauw");
}
} else {
lpompdip3._visible = false;
}
gotoAndPlay ("bol5l");
Symbol 61 MovieClip [balprod] Frame 11
stop();
Symbol 61 MovieClip [balprod] Frame 12
lbal._xscale = 100;
lbal._yscale = 100;
if (bol) {
lbal._visible = true;
if (bolkleur == "o") {
lfiltero._visible = true;
} else {
lfiltero._visible = false;
}
if (bolkleur == "z") {
lfilterz._visible = true;
} else {
lfilterz._visible = false;
}
} else {
lbal._visible = false;
lfiltero._visible = false;
lfilterz._visible = false;
}
if (bril) {
lbril._visible = true;
} else {
lbril._visible = false;
}
if (ogen) {
if (ogenkleur == "o") {
logeno._visible = true;
} else {
logeno._visible = false;
}
if (ogenkleur == "z") {
logenz._visible = true;
} else {
logenz._visible = false;
}
if (ogenkleur == "w") {
logenw._visible = true;
} else {
logenw._visible = false;
}
} else {
logeno._visible = false;
logenz._visible = false;
logenw._visible = false;
}
lneus1._visible = false;
lneus2._visible = false;
if (neusniv == 1) {
lneus1._visible = true;
if (neuskleur == "o") {
lneus1.gotoAndStop("oranje");
}
if (neuskleur == "z") {
lneus1.gotoAndStop("zwart");
}
if (neuskleur == "w") {
lneus1.gotoAndStop("wit");
}
} else if (neusniv == 2) {
lneus2._visible = true;
if (neuskleur == "o") {
lneus2.gotoAndStop("oranje");
}
if (neuskleur == "z") {
lneus2.gotoAndStop("zwart");
}
if (neuskleur == "w") {
lneus2.gotoAndStop("wit");
}
}
lneusdip._visible = false;
if (neusdip) {
lneusdip._visible = true;
if (neusdipkleur == "o") {
lneusdip.gotoAndStop("oranje");
}
if (neusdipkleur == "z") {
lneusdip.gotoAndStop("zwart");
}
}
gotoAndPlay ("bol6l");
Symbol 61 MovieClip [balprod] Frame 13
stop();
Symbol 61 MovieClip [balprod] Frame 14
if (bol) {
lbal._visible = true;
if (bolkleur == "b") {
lfilterb._visible = true;
} else {
lfilterb._visible = false;
}
if (bolkleur == "o") {
lfiltero._visible = true;
} else {
lfiltero._visible = false;
}
if (bolkleur == "glas") {
lglasbal._visible = true;
if (glaskleur == "b") {
lglasbal.gotoAndStop("blauw");
}
if (glaskleur == "o") {
lglasbal.gotoAndStop("oranje");
}
if (glaskleur == "w") {
lglasbal.gotoAndStop("wit");
}
} else {
lglasbal._visible = false;
}
} else {
lbal._visible = false;
lfilterb._visible = false;
lfiltero._visible = false;
lglasbal._visible = false;
}
if (spin) {
lspin._visible = true;
} else {
lspin._visible = false;
}
lbollen._visible = false;
lbollenglas._visible = false;
if (bollen) {
if (bollenkleur == "b") {
lbollen._visible = true;
lbollen.gotoAndStop("blauw");
}
if (bollenkleur == "o") {
lbollen._visible = true;
lbollen.gotoAndStop("oranje");
}
if (bollenkleur == "w") {
lbollen._visible = true;
lbollen.gotoAndStop("wit");
}
if (bollenkleur == "glas") {
lbollenglas._visible = true;
lbollenglas.gotoAndStop("wit");
if (glasbollenkleur == "b") {
lbollenglas.gotoAndStop("blauw");
}
if (glasbollenkleur == "o") {
lbollenglas.gotoAndStop("oranje");
}
if (glasbollenkleur == "w") {
lbollenglas.gotoAndStop("wit");
}
}
} else {
lbollen._visible = false;
lbollenglas._visible = false;
}
gotoAndPlay ("bol8l");
Symbol 61 MovieClip [balprod] Frame 15
stop();
Symbol 61 MovieClip [balprod] Frame 16
lbal._xscale = 100;
lbal._yscale = 100;
lfiltero._xscale = 100;
lfiltero._yscale = 100;
lfilterg._xscale = 100;
lfilterg._yscale = 100;
if (bol) {
lbal._visible = true;
if (bolkleur == "o") {
lfiltero._visible = true;
} else {
lfiltero._visible = false;
}
if (bolkleur == "g") {
lfilterg._visible = true;
} else {
lfilterg._visible = false;
}
} else {
lbal._visible = false;
lfiltero._visible = false;
lfilterg._visible = false;
}
if (pompniv == 1) {
lbal._xscale = 140;
lbal._yscale = 140;
lfiltero._xscale = 140;
lfiltero._yscale = 140;
lfilterg._xscale = 140;
lfilterg._yscale = 140;
} else if (pompniv == 2) {
lbal._xscale = 170;
lbal._yscale = 170;
lfiltero._xscale = 170;
lfiltero._yscale = 170;
lfilterg._xscale = 170;
lfilterg._yscale = 170;
}
if (pompdip1) {
lpompdip1._visible = true;
if (pompdip1kleur == "o") {
lpompdip1.gotoAndStop("oranje");
}
if (pompdip1kleur == "g") {
lpompdip1.gotoAndStop("groen");
}
} else {
lpompdip1._visible = false;
}
if (pompdip2) {
lpompdip2._visible = true;
if (pompdip2kleur == "o") {
lpompdip2.gotoAndStop("oranje");
}
if (pompdip2kleur == "g") {
lpompdip2.gotoAndStop("groen");
}
} else {
lpompdip2._visible = false;
}
if (pompdip3) {
lpompdip3._visible = true;
if (pompdip3kleur == "o") {
lpompdip3.gotoAndStop("oranje");
}
if (pompdip3kleur == "g") {
lpompdip3.gotoAndStop("groen");
}
} else {
lpompdip3._visible = false;
}
if (pompdipa) {
lpompdipa._visible = true;
if (pompdipakleur == "o") {
lpompdipa.gotoAndStop("oranje");
}
if (pompdipakleur == "g") {
lpompdipa.gotoAndStop("groen");
}
} else {
lpompdipa._visible = false;
}
if (pompdipb) {
lpompdipb._visible = true;
if (pompdipbkleur == "o") {
lpompdipb.gotoAndStop("oranje");
}
if (pompdipbkleur == "g") {
lpompdipb.gotoAndStop("groen");
}
} else {
lpompdipb._visible = false;
}
if (pompdipc) {
lpompdipc._visible = true;
if (pompdipckleur == "o") {
lpompdipc.gotoAndStop("oranje");
}
if (pompdipckleur == "g") {
lpompdipc.gotoAndStop("groen");
}
} else {
lpompdipc._visible = false;
}
gotoAndPlay ("bol9l");
Symbol 61 MovieClip [balprod] Frame 17
stop();
Symbol 61 MovieClip [balprod] Frame 18
lbal._xscale = 100;
lbal._yscale = 100;
lfilterg._xscale = 100;
lfilterg._yscale = 100;
if (bol) {
lbal._visible = true;
if (bolkleur == "o") {
lfiltero._visible = true;
} else {
lfiltero._visible = false;
}
if (bolkleur == "b") {
lfilterb._visible = true;
} else {
lfilterb._visible = false;
}
if (bolkleur == "g") {
lfilterg._visible = true;
} else {
lfilterg._visible = false;
}
if (bolkleur == "y") {
lfiltery._visible = true;
} else {
lfiltery._visible = false;
}
if (bolkleur == "m") {
lfilterm._visible = true;
} else {
lfilterm._visible = false;
}
} else {
lbal._visible = false;
lfiltero._visible = false;
lfilterb._visible = false;
lfilterg._visible = false;
lfiltery._visible = false;
lfilterm._visible = false;
}
if (spin) {
lspin._visible = true;
} else {
lspin._visible = false;
}
if (bollen) {
lbollen._visible = true;
if (bollenkleur == "b") {
lbollen.gotoAndStop("blauw");
}
if (bollenkleur == "o") {
lbollen.gotoAndStop("oranje");
}
if (bollenkleur == "w") {
lbollen.gotoAndStop("wit");
}
if (bollenkleur == "g") {
lbollen.gotoAndStop("groen");
}
if (bollenkleur == "y") {
lbollen.gotoAndStop("geel");
}
if (bollenkleur == "m") {
lbollen.gotoAndStop("magenta");
}
} else {
lbollen._visible = false;
}
gotoAndPlay ("bol4l");
Symbol 61 MovieClip [balprod] Frame 19
stop();
Symbol 61 MovieClip [balprod] Frame 20
if (bol) {
lbal._visible = true;
if (bolkleur == "c") {
lfilterc._visible = true;
} else {
lfilterc._visible = false;
}
if (bolkleur == "y") {
lfiltery._visible = true;
} else {
lfiltery._visible = false;
}
if (bolkleur == "m") {
lfilterm._visible = true;
} else {
lfilterm._visible = false;
}
if (bolkleur == "g") {
lfilterg._visible = true;
} else {
lfilterg._visible = false;
}
if (bolkleur == "b") {
lfilterb._visible = true;
} else {
lfilterb._visible = false;
}
if (bolkleur == "r") {
lfilterr._visible = true;
} else {
lfilterr._visible = false;
}
if (bolkleur == "z") {
lfilterz._visible = true;
} else {
lfilterz._visible = false;
}
} else {
lbal._visible = false;
lfilterc._visible = false;
lfiltery._visible = false;
lfilterm._visible = false;
lfilterg._visible = false;
lfilterb._visible = false;
lfilterr._visible = false;
lfilterz._visible = false;
}
gotoAndPlay ("bol7l");
Symbol 61 MovieClip [balprod] Frame 21
stop();
Symbol 61 MovieClip [balprod] Frame 22
lbal._xscale = 100;
lbal._yscale = 100;
lfilterg._xscale = 100;
lfilterg._yscale = 100;
if (bol) {
lbal._visible = true;
if (bolkleur == "y") {
lfiltery._visible = true;
} else {
lfiltery._visible = false;
}
if (bolkleur == "g") {
lfilterg._visible = true;
} else {
lfilterg._visible = false;
}
if (bolkleur == "b") {
lfilterb._visible = true;
} else {
lfilterb._visible = false;
}
} else {
lbal._visible = false;
lfiltery._visible = false;
lfilterg._visible = false;
lfilterb._visible = false;
}
if (bril) {
lbril._visible = true;
} else {
lbril._visible = false;
}
if (ogen) {
if (ogenkleur == "y") {
logeny._visible = true;
} else {
logeny._visible = false;
}
if (ogenkleur == "g") {
logeng._visible = true;
} else {
logeng._visible = false;
}
if (ogenkleur == "b") {
logenb._visible = true;
} else {
logenb._visible = false;
}
if (ogenkleur == "w") {
logenw._visible = true;
} else {
logenw._visible = false;
}
} else {
logeny._visible = false;
logeng._visible = false;
logenb._visible = false;
logenw._visible = false;
}
loorl1._visible = false;
loorl2._visible = false;
loorr1._visible = false;
loorr2._visible = false;
if (oorlniv == 1) {
loorl1._visible = true;
if (oorlkleur == "y") {
loorl1.gotoAndStop("geel");
}
if (oorlkleur == "g") {
loorl1.gotoAndStop("groen");
}
if (oorlkleur == "b") {
loorl1.gotoAndStop("blauw");
}
if (oorlkleur == "w") {
loorl1.gotoAndStop("wit");
}
} else if (oorlniv == 2) {
loorl2._visible = true;
if (oorlkleur == "y") {
loorl2.gotoAndStop("geel");
}
if (oorlkleur == "g") {
loorl2.gotoAndStop("groen");
}
if (oorlkleur == "b") {
loorl2.gotoAndStop("blauw");
}
if (oorlkleur == "w") {
loorl2.gotoAndStop("wit");
}
}
if (oorrniv == 1) {
loorr1._visible = true;
if (oorrkleur == "y") {
loorr1.gotoAndStop("geel");
}
if (oorrkleur == "g") {
loorr1.gotoAndStop("groen");
}
if (oorrkleur == "b") {
loorr1.gotoAndStop("blauw");
}
if (oorrkleur == "w") {
loorr1.gotoAndStop("wit");
}
} else if (oorrniv == 2) {
loorr2._visible = true;
if (oorrkleur == "y") {
loorr2.gotoAndStop("geel");
}
if (oorrkleur == "g") {
loorr2.gotoAndStop("groen");
}
if (oorrkleur == "b") {
loorr2.gotoAndStop("blauw");
}
if (oorrkleur == "w") {
loorr2.gotoAndStop("wit");
}
}
gotoAndPlay ("bol10l");
Symbol 61 MovieClip [balprod] Frame 23
stop();
Symbol 61 MovieClip [balprod] Frame 24
if (bol) {
lbal._visible = true;
if (bolkleur == "c") {
lfilterc._visible = true;
} else {
lfilterc._visible = false;
}
if (bolkleur == "y") {
lfiltery._visible = true;
} else {
lfiltery._visible = false;
}
if (bolkleur == "m") {
lfilterm._visible = true;
} else {
lfilterm._visible = false;
}
if (bolkleur == "g") {
lfilterg._visible = true;
} else {
lfilterg._visible = false;
}
if (bolkleur == "b") {
lfilterb._visible = true;
} else {
lfilterb._visible = false;
}
if (bolkleur == "r") {
lfilterr._visible = true;
} else {
lfilterr._visible = false;
}
if (bolkleur == "z") {
lfilterz._visible = true;
} else {
lfilterz._visible = false;
}
} else {
lbal._visible = false;
lfilterc._visible = false;
lfiltery._visible = false;
lfilterm._visible = false;
lfilterg._visible = false;
lfilterb._visible = false;
lfilterr._visible = false;
lfilterz._visible = false;
}
if (spin) {
lspin._visible = true;
} else {
lspin._visible = false;
}
if (bollen) {
lbollen._visible = true;
if (bollenkleur == "c") {
lbollen.gotoAndStop("cyaan");
}
if (bollenkleur == "y") {
lbollen.gotoAndStop("geel");
}
if (bollenkleur == "m") {
lbollen.gotoAndStop("magenta");
}
if (bollenkleur == "g") {
lbollen.gotoAndStop("groen");
}
if (bollenkleur == "b") {
lbollen.gotoAndStop("blauw");
}
if (bollenkleur == "r") {
lbollen.gotoAndStop("rood");
}
if (bollenkleur == "z") {
lbollen.gotoAndStop("zwart");
}
if (bollenkleur == "w") {
lbollen.gotoAndStop("wit");
}
} else {
lbollen._visible = false;
}
gotoAndPlay ("bol11l");
Symbol 61 MovieClip [balprod] Frame 25
stop();
Symbol 61 MovieClip [balprod] Frame 26
if (bol) {
lbal._visible = true;
if (bolkleur == "m") {
lfilterm._visible = true;
} else {
lfilterm._visible = false;
}
} else {
lbal._visible = false;
lfilterm._visible = false;
}
if (dip) {
ldip._visible = true;
if (dipkleur == "o") {
ldip.gotoAndStop("oranje");
}
if (dipkleur == "y") {
ldip.gotoAndStop("geel");
}
} else {
ldip._visible = false;
}
if (spin) {
lspin._visible = true;
} else {
lspin._visible = false;
}
if (bollenboven) {
lbollenboven._visible = true;
if (bollenbovenkleur == "m") {
lbollenboven.gotoAndStop("magenta");
}
if (bollenbovenkleur == "w") {
lbollenboven.gotoAndStop("wit");
}
} else {
lbollenboven._visible = false;
}
if (bollenonder) {
lbollenonder._visible = true;
if (bollenonderkleur == "m") {
lbollenonder.gotoAndStop("magenta");
}
if (bollenonderkleur == "w") {
lbollenonder.gotoAndStop("wit");
}
if (bollenonderkleur == "o") {
lbollenonder.gotoAndStop("oranje");
}
if (bollenonderkleur == "y") {
lbollenonder.gotoAndStop("geel");
}
} else {
lbollenonder._visible = false;
}
gotoAndPlay ("bol12l");
Symbol 61 MovieClip [balprod] Frame 27
stop();
Symbol 61 MovieClip [balprod] Frame 28
if (bol) {
lbal._visible = true;
if (bolkleur == "m") {
lfilterm._visible = true;
} else {
lfilterm._visible = false;
}
if (bolkleur == "b") {
lfilterb._visible = true;
} else {
lfilterb._visible = false;
}
} else {
lbal._visible = false;
lfilterm._visible = false;
lfilterb._visible = false;
}
if (zaag) {
lzaag._visible = true;
} else {
lzaag._visible = false;
}
if (bril) {
lbril._visible = true;
} else {
lbril._visible = false;
}
if (ogen) {
if (ogenkleur == "m") {
logenm._visible = true;
} else {
logenm._visible = false;
}
if (ogenkleur == "b") {
logenb._visible = true;
} else {
logenb._visible = false;
}
if (ogenkleur == "w") {
logenw._visible = true;
} else {
logenw._visible = false;
}
} else {
logenm._visible = false;
logenb._visible = false;
logenw._visible = false;
}
loorl1._visible = false;
loorl2._visible = false;
loorr1._visible = false;
loorr2._visible = false;
if (oorlniv == 1) {
loorl1._visible = true;
if (oorlkleur == "m") {
loorl1.gotoAndStop("magenta");
}
if (oorlkleur == "b") {
loorl1.gotoAndStop("blauw");
}
if (oorlkleur == "w") {
loorl1.gotoAndStop("wit");
}
} else if (oorlniv == 2) {
loorl2._visible = true;
if (oorlkleur == "m") {
loorl2.gotoAndStop("magenta");
}
if (oorlkleur == "b") {
loorl2.gotoAndStop("blauw");
}
if (oorlkleur == "w") {
loorl2.gotoAndStop("wit");
}
}
if (oorrniv == 1) {
loorr1._visible = true;
if (oorrkleur == "m") {
loorr1.gotoAndStop("magenta");
}
if (oorrkleur == "b") {
loorr1.gotoAndStop("blauw");
}
if (oorrkleur == "w") {
loorr1.gotoAndStop("wit");
}
} else if (oorrniv == 2) {
loorr2._visible = true;
if (oorrkleur == "m") {
loorr2.gotoAndStop("magenta");
}
if (oorrkleur == "b") {
loorr2.gotoAndStop("blauw");
}
if (oorrkleur == "w") {
loorr2.gotoAndStop("wit");
}
}
gotoAndPlay ("bol13l");
Symbol 61 MovieClip [balprod] Frame 29
stop();
Symbol 61 MovieClip [balprod] Frame 30
if (bol) {
lbal._visible = true;
if (bolkleur == "b") {
lfilterb._visible = true;
} else {
lfilterb._visible = false;
}
if (bolkleur == "glas") {
lglasbal._visible = true;
if (glaskleur == "b") {
lglasbal.gotoAndStop("blauw");
}
if (glaskleur == "w") {
lglasbal.gotoAndStop("wit");
}
} else {
lglasbal._visible = false;
}
} else {
lbal._visible = false;
lfilterb._visible = false;
lglasbal._visible = false;
}
if (spin) {
lspin._visible = true;
} else {
lspin._visible = false;
}
if (bollen) {
if (bollenkleur == "b") {
lbollen._visible = true;
lbollen.gotoAndStop("blauw");
}
if (bollenkleur == "w") {
lbollen._visible = true;
lbollen.gotoAndStop("wit");
}
if (bollenkleur == "glas") {
lbollenglas._visible = true;
lbollenglas.gotoAndStop("wit");
if (glasbollenkleur == "b") {
lbollenglas.gotoAndStop("blauw");
}
if (glasbollenkleur == "w") {
lbollenglas.gotoAndStop("wit");
}
}
} else {
lbollen._visible = false;
lbollenglas._visible = false;
}
llamp._visible = false;
llampbollen._visible = false;
if (lamp) {
if (bolkleur == "glas") {
llamp._visible = true;
if (glaskleur == "b") {
llamp.gotoAndStop("blauw");
}
if (glaskleur == "w") {
llamp.gotoAndStop("wit");
}
}
if ((bollen && (bollenkleur == "glas")) && (!spin)) {
llampbollen._visible = true;
if (glasbollenkleur == "b") {
llampbollen.gotoAndStop("blauw");
}
if (glasbollenkleur == "w") {
llampbollen.gotoAndStop("wit");
}
}
}
gotoAndPlay ("bol14l");
Symbol 61 MovieClip [balprod] Frame 31
stop();
Symbol 256 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("1.5");
}
static function showPreloaderAd(options) {
//var _local1 = this;
var DEFAULTS = {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, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = _getRes(options);
var _local3 = wh[0];
var h = wh[1];
mc._x = _local3 * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local3 * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
bar._x = 10;
bar._y = h - 20;
var bar_color = options.color;
delete options.color;
var bar_background = options.background;
delete options.background;
var bar_outline = options.outline;
delete options.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(_local3 - 20, 0);
backing.lineTo(_local3 - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var _local2 = bar.createEmptyMovieClip("_inside", 2);
_local2.beginFill(bar_color);
_local2.moveTo(0, 0);
_local2.lineTo(_local3 - 20, 0);
_local2.lineTo(_local3 - 20, 10);
_local2.lineTo(0, 10);
_local2.lineTo(0, 0);
_local2.endFill();
_local2._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(_local3 - 20, 0);
outline.lineTo(_local3 - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local1 = this;
var _clip = _local1._parent._parent;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local3 = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var clip_pcnt = ((100 * clip_loaded) / clip_total);
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = _local1._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt));
_local2 = Math.max(_local1.last_pcnt, _local2);
_local1.last_pcnt = _local2;
_inside._xscale = _local2;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
_local3 = true;
}
}
if (elapsed > chk.ad_msec) {
_local3 = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (_local3)) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = chk.fadeFunction;
}
}
};
}
}
static function showTimedAd(options) {
//var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = _getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local1 = this;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local2 = false;
if (!chk.showing) {
var _local3 = ad_clip.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
_local2 = true;
}
}
if (elapsed > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = _local1.fadeFunction;
}
}
};
}
}
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 _local2 = options;
var _local3 = arguments;
var DEFAULTS = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
_local2 = _parseOptions(_local2, DEFAULTS);
_local2.swfv = _local2.clip.getSWFVersion() || 6;
_local2.mav = getVersion();
var clip = _local2.clip;
var clipname = ("_mochiad_com_" + _local2.id);
if (!_isNetworkAvailable()) {
return(null);
}
if (clip[clipname]) {
return(clip[clipname].lc);
}
var server = (_local2.com_server + _local2.id);
_allowDomains(server);
delete _local2.id;
delete _local2.com_server;
var depth = _local2.depth;
delete _local2.depth;
var mc = clip.createEmptyMovieClip(clipname, depth);
var lv = mc.createEmptyMovieClip("_mochiad_com", 1);
for (var k in _local2) {
lv[k] = _local2[k];
}
var lc = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
lc.mc = mc;
lc.name = name;
lc.allowDomain = function (d) {
return(true);
};
lc.allowInsecureDomain = lc.allowDomain;
lc.connect(name);
mc.lc = lc;
lv.lc = name;
lc._id = 0;
lc._queue = [];
lc.rpcResult = function (cb) {
cb = parseInt(cb);
var _local2 = this._callbacks[cb];
if (!_local2) {
} else {
delete this._callbacks[cb];
var _local3 = [];
var _local1 = 2;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
_local1 = 1;
while (_local1 < arguments.length) {
_local3.push(arguments[_local1]);
_local1++;
}
var method = _local2[1];
var obj = _local2[0];
if (obj && (typeof(method) == "string")) {
method = obj[method];
}
if (method) {
method.apply(obj, _local3);
}
}
};
lc._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local3 = this._queue;
delete this._queue;
var ds = this.doSend;
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = _local3[_local1];
ds.apply(this, _local2);
_local1++;
}
};
lc.doSend = function (args, cbobj, cbfn) {
var _local2 = arguments;
if (this._endpoint == null) {
var _local3 = [];
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
this._queue.push(_local3);
} else {
this._id = this._id + 1;
var id = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[id] = [cbobj, cbfn];
var slc = new LocalConnection();
var ss = slc.send(this._endpoint, "rpc", id, args);
}
};
lc._callbacks = {};
lc._callbacks[0] = [lc, "_didConnect"];
lv.st = getTimer();
lv.loadMovie(server + ".swf", "POST");
return(lc);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = _loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["fetchHighScores", _local2];
_local1.doSend(["fetchHighScores", _local2], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = _loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["sendHighScore", _local2];
_local1.doSend(["sendHighScore", _local2], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local1 = options;
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
_local1 = _parseOptions(_local1, DEFAULTS);
_local1.swfv = _local1.clip.getSWFVersion() || 6;
_local1.mav = getVersion();
var clip = _local1.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (clip._mochiad_loaded) {
return(null);
}
var depth = _local1.depth;
delete _local1.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = _getRes(_local1);
_local1.res = (wh[0] + "x") + wh[1];
_local1.server = _local1.server + _local1.id;
delete _local1.id;
clip._mochiad_loaded = true;
var _local2 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in _local1) {
_local2[k] = _local1[k];
}
if (clip._url.indexOf("http") != 0) {
_local1.no_page = true;
}
var server = _local2.server;
delete _local2.server;
var hostname = _allowDomains(server);
mc.onEnterFrame = function () {
var _local1 = this;
if (_local1._mochiad_ctr._url != _local1._url) {
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_local1._mochiad_ctr) {
delete _local1.onEnterFrame;
MochiAd.unload(_local1._parent);
}
};
}
};
var _local3 = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local3.mc = mc;
_local3.name = name;
_local3.hostname = hostname;
_local3.allowDomain = function (d) {
return(true);
};
_local3.allowInsecureDomain = _local3.allowDomain;
_local3.connect(name);
mc.lc = _local3;
_local2.lc = name;
_local2.st = getTimer();
_local2.loadMovie(server + ".swf", "POST");
return(mc);
}
static function unload(clip) {
var _local1 = clip;
if (typeof(_local1) == "undefined") {
_local1 = _root;
}
if (_local1.clip && (_local1.clip._mochiad)) {
_local1 = _local1.clip;
}
if (!_local1._mochiad) {
return(false);
}
_local1._mochiad.removeMovieClip();
delete _local1._mochiad_loaded;
delete _local1._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 xy = options.res.split("x");
_local2 = parseFloat(xy[0]);
_local1 = parseFloat(xy[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 _local3 = {};
for (var k in defaults) {
_local3[k] = defaults[k];
}
if (options) {
for (var k in options) {
_local3[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var _local1 = 0;
while (_local1 < pairs.length) {
var _local2 = pairs[_local1].split("=");
_local3[unescape(_local2[0])] = unescape(_local2[1]);
_local1++;
}
}
return(_local3);
}
}
Symbol 81 Button
on (release) {
_parent.keuze = 1;
_parent.gotoAndPlay("mochi");
}
Symbol 82 Button
on (release) {
_parent.keuze = 2;
_parent.gotoAndPlay("tbl");
}
Symbol 83 Button
on (release) {
getURL ("http://www.bontegames.com", "_blank");
}
Symbol 86 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 2
_parent._parent.sound_beep.start();
Symbol 102 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 2
stop();
Symbol 102 MovieClip Frame 3
stop();
Symbol 102 MovieClip Frame 4
stop();
Symbol 102 MovieClip Frame 5
stop();
Symbol 102 MovieClip Frame 6
stop();
Symbol 102 MovieClip Frame 7
stop();
Symbol 102 MovieClip Frame 8
stop();
Symbol 102 MovieClip Frame 9
stop();
Symbol 102 MovieClip Frame 10
stop();
Symbol 102 MovieClip Frame 11
stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 2
stop();
Symbol 133 MovieClip Frame 1
verfpot.gotoAndStop("rood");
stop();
Symbol 133 MovieClip Frame 2
verfpot.gotoAndStop("blauw");
stop();
Symbol 133 MovieClip Frame 3
verfpot.gotoAndStop("groen");
stop();
Symbol 133 MovieClip Frame 4
verfpot.gotoAndStop("oranje");
stop();
Symbol 133 MovieClip Frame 5
stop();
Symbol 133 MovieClip Frame 6
taperoll.gotoAndStop("zwart");
stop();
Symbol 133 MovieClip Frame 7
stop();
Symbol 133 MovieClip Frame 8
stop();
Symbol 133 MovieClip Frame 9
stop();
Symbol 133 MovieClip Frame 10
stop();
Symbol 133 MovieClip Frame 11
verfpot.gotoAndStop("geel");
stop();
Symbol 133 MovieClip Frame 12
stop();
Symbol 133 MovieClip Frame 13
stop();
Symbol 133 MovieClip Frame 14
stop();
Symbol 133 MovieClip Frame 15
taperoll.gotoAndStop("blauw");
stop();
Symbol 133 MovieClip Frame 16
stop();
Symbol 133 MovieClip Frame 17
verfpot.gotoAndStop("zwart");
stop();
Symbol 133 MovieClip Frame 18
stop();
Symbol 133 MovieClip Frame 19
verfpot.gotoAndStop("oranje");
stop();
Symbol 133 MovieClip Frame 20
verfpot.gotoAndStop("groen");
stop();
Symbol 133 MovieClip Frame 21
verfpot.gotoAndStop("vraag");
stop();
Symbol 133 MovieClip Frame 22
verfpot.gotoAndStop("cyaan");
stop();
Symbol 133 MovieClip Frame 23
verfpot.gotoAndStop("magenta");
stop();
Symbol 133 MovieClip Frame 24
verfpot.gotoAndStop("plus");
stop();
Symbol 133 MovieClip Frame 25
verfpot.gotoAndStop("minus");
stop();
Symbol 133 MovieClip Frame 26
stop();
Symbol 133 MovieClip Frame 27
stop();
Symbol 133 MovieClip Frame 28
verfpot.gotoAndStop("oranje");
stop();
Symbol 133 MovieClip Frame 29
verfpot.gotoAndStop("geel");
stop();
Symbol 133 MovieClip Frame 30
stop();
Symbol 173 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 2
stop();
Symbol 178 MovieClip Frame 1
levelbal._visible = false;
stop();
Symbol 178 MovieClip Frame 2
levelbal._visible = true;
Symbol 179 MovieClip Frame 1
doos.bal._y = 109;
doos.gotoAndStop("init");
stop();
Symbol 179 MovieClip Frame 2
_parent._parent.sound_schuif.start();
if (oorbal) {
doos.bal._y = 120;
oorbal = false;
} else {
doos.bal._y = 109;
}
doos.gotoAndStop("init");
Symbol 179 MovieClip Frame 10
stop();
Symbol 179 MovieClip Frame 11
doos.gotoAndPlay("val");
Symbol 179 MovieClip Frame 45
doos.carton.gotoAndPlay("toe");
Symbol 179 MovieClip Frame 55
_parent._parent.sound_schuif.start();
Symbol 179 MovieClip Frame 63
_parent.gotoAndPlay(nlevel);
stop();
Symbol 183 Button
on (release) {
_parent._parent.gotoAndPlay("intro");
}
Symbol 184 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 15
_parent._parent.sound_beep.start();
Symbol 184 MovieClip Frame 20
_parent._parent.sound_beep.start();
Symbol 184 MovieClip Frame 25
_parent._parent.sound_beep.start();
Symbol 184 MovieClip Frame 30
_parent._parent.sound_beep.start();
stop();
Symbol 188 MovieClip Frame 20
_parent.balproductie.gotoAndPlay("movein");
Symbol 188 MovieClip Frame 24
_parent.toolbal1.gotoAndPlay("pop");
Symbol 188 MovieClip Frame 28
_parent.toolbal2.gotoAndPlay("pop");
_parent.tool1.detail.gotoAndStop(newtool1);
Symbol 188 MovieClip Frame 32
_parent.toolbal3.gotoAndPlay("pop");
_parent.tool2.detail.gotoAndStop(newtool2);
Symbol 188 MovieClip Frame 36
_parent.toolbal4.gotoAndPlay("pop");
_parent.tool3.detail.gotoAndStop(newtool3);
Symbol 188 MovieClip Frame 40
_parent.toolbal5.gotoAndPlay("pop");
_parent.tool4.detail.gotoAndStop(newtool4);
Symbol 188 MovieClip Frame 44
_parent.toolbal6.gotoAndPlay("pop");
_parent.tool5.detail.gotoAndStop(newtool5);
Symbol 188 MovieClip Frame 48
_parent.toolbal7.gotoAndPlay("pop");
_parent.tool6.detail.gotoAndStop(newtool6);
Symbol 188 MovieClip Frame 52
_parent.toolbal8.gotoAndPlay("pop");
_parent.tool7.detail.gotoAndStop(newtool7);
_parent.canProduce = true;
_parent.produced = false;
stop();
Symbol 191 MovieClip Frame 1
teller = 4;
effewachte = 0;
var l = new Array();
l[0] = " ";
l[1] = " ";
l[2] = " ";
l[3] = " ";
l[4] = "Nice one! You did it!";
l[5] = "You have completed all levels!";
l[6] = "This game was created for the fourth jayisgames competition.";
l[7] = "The goal was to design a 'ball physics'-themed game.";
l[8] = "Unlike my previous competition game 'A bark in the dark',";
l[9] = "I didn't do a traditional point and click game this time,";
l[10] = "although I thought about it, but it wouldn't fit the theme.";
l[11] = "Then I thought about doing a game with different subgames";
l[12] = "inspired by existing ball games, but it would take too much";
l[13] = "time and it wouldn't be very original.";
l[14] = "So I really wanted to make something original and I came up";
l[15] = "with this game: changing the physics of balls through puzzles.";
l[16] = "I added the ball tumbler where you grab your balls to have an";
l[17] = "additional interpretation of the theme: a physics routine of";
l[18] = "balls in a tumbler.";
l[19] = "And since you made it all through here, yet some more";
l[20] = "ball physics extravaganza should be happening on your screen.";
l[21] = "Did you check out the extra tumbler where you can change";
l[22] = "tumbler speed, ball weight and add balls of different sizes?";
l[23] = "Anyway, I guess you've seen enough balls by now,";
l[24] = "so let's cut the ball physics talk :)";
l[25] = "See you all later for more BONTE games!";
l[26] = "You can contact me at bbonte@scarlet.be or on my site.";
l[27] = "This text is getting large, is anyone still reading this? ";
l[28] = "What more could I tell you?";
l[29] = "My next game will be a point and click game again, but";
l[30] = "the setting will no longer be a room.";
l[31] = "Well now it's time to wrap this up, so goodbye from me!";
l[32] = "See you all soon!";
l[33] = "Byebye!";
l[34] = "Salu en de kost en de wind vanachter!";
l[35] = " ";
l[36] = " ";
l[37] = " ";
l[38] = " ";
l[39] = "You're still there :)";
l[40] = "So you want some more totally irrelevant info?";
l[41] = "This game was made during listening to the latest";
l[42] = "albums of Justice, Chemical Brothers, Editors, Interpol,";
l[43] = "LCD Soundsystem and NiN.";
l[44] = "Ok, this scroll will now officialy end in 5";
l[45] = "4";
l[46] = "3";
l[47] = "2";
l[48] = "1";
l[49] = ".";
l[50] = " ";
l[51] = " ";
l[52] = " ";
l[53] = " ";
l[54] = " ";
l[55] = " ";
l[56] = " ";
l[57] = " ";
l[58] = " ";
l[59] = " ";
l[60] = " ";
l[61] = " ";
l[62] = " ";
l[63] = " ";
l[64] = " ";
l[65] = " ";
l[66] = " ";
l[67] = " ";
l[68] = " ";
l[69] = " ";
l[70] = " ";
l[71] = " ";
l[72] = " ";
l[73] = " ";
l[74] = " ";
l[75] = " ";
l[76] = "1";
l[77] = "2";
l[78] = "3";
l[79] = "4";
l[80] = "5";
l[81] = "If you're still reading you must be very bored:)";
l[82] = "Perhaps you could go to my site for some more games!";
l[83] = "Cheers :)";
l[84] = " ";
l[85] = " ";
l[86] = " ";
Symbol 191 MovieClip Frame 2
scrolbar.tekst = l[teller];
if (teller < l.length) {
teller++;
}
Symbol 191 MovieClip Frame 140
gotoAndPlay ("loop");
Symbol 243 MovieClip Frame 1
i = 1;
alpha = 0.3;
maxlight = 25;
while (i <= maxlight) {
duplicateMovieClip ("sp0", "sp" add i, 900 - i);
setProperty("sp" add i, _xscale , getProperty("sp" add (i - 1), _xscale) + (i * alpha));
setProperty("sp" add i, _yscale , getProperty("sp" add (i - 1), _yscale) + (i * alpha));
setProperty("sp" add i, _alpha , 15 - ((0.2 * i) * 0.2));
i++;
}
Symbol 243 MovieClip Frame 2
stop();
Symbol 245 MovieClip Frame 1
function balweg() {
ballekes--;
if (ballekes == 0) {
gameover.gotoAndPlay("start");
}
}
function colliding() {
var _local1 = this;
if (_local1.producing) {
} else if (_local1.dragging) {
_local1.vx = _root._xmouse - _local1.lx;
_local1.vy = _root._ymouse - _local1.ly;
_local1.lx = _root._xmouse;
_local1.ly = _root._ymouse;
} else {
_local1.vx = _local1.vx * kDamp;
_local1.vy = _local1.vy * kDamp;
_local1.vx = _local1.vx + (gTx * kGravWeight);
_local1.vy = _local1.vy + (gTy * kGravWeight);
var fx = 0;
var fy = 0;
var _local2 = guys.length - 1;
while (_local2 >= 0) {
if ((guys[_local2] != _local1) && (_local1.hitTest(guys[_local2]))) {
var dx = ((_local1._x + _local1.vx) - guys[_local2]._x);
var dy = ((_local1._y + _local1.vy) - guys[_local2]._y);
var dist = Math.sqrt((dx * dx) + (dy * dy));
var dmax = (36 - dist);
if (dmax > 0) {
var _local3 = (dmax * kCollisionDamp) / dist;
fx = fx + (dx * _local3);
fy = fy + (dy * _local3);
}
}
_local2--;
}
_local1.vx = _local1.vx + fx;
_local1.vy = _local1.vy + fy;
var dx = (-(_local1._x + _local1.vx));
var dy = (-(_local1._y + _local1.vy));
var dist = Math.sqrt((dx * dx) + (dy * dy));
var dmax = (dist - ((SW / 2) - 18));
if (dmax > 0) {
_local1.vx = _local1.vx + ((dx * dmax) / dist);
_local1.vy = _local1.vy + ((dy * dmax) / dist);
}
_local1._x = _local1._x + _local1.vx;
_local1._y = _local1._y + _local1.vy;
}
}
function logica(toolused, mc) {
var _local1 = mc;
var _local2 = _parent;
var _local3 = toolused;
if (level == 1) {
if (_local3 == 1) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_tape.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.tape = true;
_local1.balbal.gotoAndPlay("bol1");
} else if (_local1.producing) {
_local2.sound_tape.start();
_local1._x = prodx;
_local1._y = prody;
_local1.balbal.tape = true;
_local1.balbal.gotoAndPlay("bol1");
}
} else if (_local3 == 2) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "o";
_local1.balbal.tape = false;
_local1.balbal.gotoAndPlay("bol1");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
_local1.balbal.bolkleur = "o";
_local1.balbal.tape = false;
_local1.balbal.gotoAndPlay("bol1");
}
}
if ((_local1.balbal.bol && (_local1.balbal.bolkleur == "o")) && (_local1.balbal.tape)) {
canProduce = false;
balproductie.nlevel = "l2";
_local1.removeMovieClip();
balweg();
balproductie.doos.levelbal.bol = true;
balproductie.doos.levelbal.bolkleur = "o";
balproductie.doos.levelbal.tape = true;
balproductie.doos.levelbal.gotoAndPlay("bol1");
balproductie.gotoAndPlay("moveout");
}
// unexpected jump
}
if (level == 2) {
if (_local3 == 1) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "b";
_local1.balbal.spin = false;
_local1.balbal.bollen = false;
_local1.balbal.gotoAndPlay("bol2");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
_local1.balbal.bolkleur = "b";
if (!_local1.balbal.spin) {
_local1.balbal.bollen = false;
}
_local1.balbal.gotoAndPlay("bol2");
}
} else if (_local3 == 2) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "o";
_local1.balbal.spin = false;
_local1.balbal.bollen = false;
_local1.balbal.gotoAndPlay("bol2");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
_local1.balbal.bolkleur = "o";
if (!_local1.balbal.spin) {
_local1.balbal.bollen = false;
}
_local1.balbal.gotoAndPlay("bol2");
}
} else if (_local3 == 3) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_switch.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.spin = true;
_local1.balbal.bollen = true;
_local1.balbal.bollenkleur = "w";
_local1.balbal.gotoAndPlay("bol2");
tool3.detail.gotoAndStop("spingone");
} else if (_local1.producing) {
_local2.sound_switch.start();
_local1._x = prodx;
_local1._y = prody;
if (!_local1.balbal.spin) {
tool3.detail.gotoAndStop("spingone");
_local1.balbal.spin = true;
if (!_local1.balbal.bollen) {
_local1.balbal.bollen = true;
_local1.balbal.bollenkleur = _local1.balbal.bolkleur;
}
} else {
tool3.detail.gotoAndStop("spin");
_local1.balbal.spin = false;
if (_local1.balbal.bollenkleur == _local1.balbal.bolkleur) {
_local1.balbal.bollen = false;
}
}
_local1.balbal.gotoAndPlay("bol2");
}
}
if ((((_local1.balbal.bol && (_local1.balbal.bolkleur == "b")) && (!_local1.balbal.spin)) && (_local1.balbal.bollen)) && (_local1.balbal.bollenkleur == "o")) {
canProduce = false;
balproductie.nlevel = "l3";
_local1.removeMovieClip();
balweg();
balproductie.doos.levelbal.bol = true;
balproductie.doos.levelbal.bolkleur = "b";
balproductie.doos.levelbal.spin = false;
balproductie.doos.levelbal.bollen = true;
balproductie.doos.levelbal.bollenkleur = "o";
balproductie.doos.levelbal.gotoAndPlay("bol2");
balproductie.gotoAndPlay("moveout");
}
// unexpected jump
}
if (level == 3) {
if (_local3 == 1) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_pump.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.pompniv = 1;
_local1.balbal.pompdipg1 = false;
_local1.balbal.pompdipg2 = false;
_local1.balbal.pompdipg3 = false;
_local1.balbal.gotoAndPlay("bol3");
} else if (_local1.producing) {
_local2.sound_pump.start();
_local1._x = prodx;
_local1._y = prody;
if (_local1.balbal.pompniv == 0) {
_local1.balbal.pompniv = 1;
} else if (_local1.balbal.pompniv == 1) {
_local1.balbal.pompniv = 2;
if (_local1.balbal.pompdipg1) {
_local1.balbal.pompdipg3 = true;
}
} else if (_local1.balbal.pompniv == 2) {
_local2.sound_pop.start();
_local1.removeMovieClip();
produced = false;
balweg();
}
_local1.balbal.gotoAndPlay("bol3");
}
} else if (_local3 == 2) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "g";
_local1.balbal.pompniv = 0;
_local1.balbal.pompdipg1 = false;
_local1.balbal.pompdipg2 = false;
_local1.balbal.pompdipg3 = false;
_local1.balbal.gotoAndPlay("bol3");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
if (_local1.balbal.pompniv == 0) {
_local1.balbal.bolkleur = "g";
} else if (_local1.balbal.pompniv == 1) {
if (_local1.balbal.bolkleur == "w") {
_local1.balbal.pompdipg1 = true;
}
} else if (_local1.balbal.pompniv == 2) {
if (_local1.balbal.bolkleur == "w") {
if (!_local1.balbal.pompdipg1) {
_local1.balbal.pompdipg2 = true;
} else {
_local1.balbal.pompdipg3 = true;
}
}
}
_local1.balbal.gotoAndPlay("bol3");
}
}
if ((((_local1.balbal.bol && (_local1.balbal.bolkleur == "g")) && (_local1.balbal.pompniv == 2)) && (!_local1.balbal.pompdipg1)) && (!_local1.balbal.pompdipg2)) {
canProduce = false;
balproductie.nlevel = "l4";
_local1.removeMovieClip();
balweg();
balproductie.doos.levelbal.bol = true;
balproductie.doos.levelbal.bolkleur = "g";
balproductie.doos.levelbal.pompniv = 2;
balproductie.doos.levelbal.pompdipg1 = false;
balproductie.doos.levelbal.pompdipg2 = false;
balproductie.doos.levelbal.pompdipg3 = false;
balproductie.doos.levelbal.gotoAndPlay("bol3");
balproductie.gotoAndPlay("moveout");
}
// unexpected jump
}
if (level == 4) {
if (_local3 == 1) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "g";
_local1.balbal.spin = false;
_local1.balbal.bollen = false;
_local1.balbal.gotoAndPlay("bol4");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
_local1.balbal.bolkleur = "g";
if (!_local1.balbal.spin) {
_local1.balbal.bollen = false;
}
_local1.balbal.gotoAndPlay("bol4");
}
} else if (_local3 == 2) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "o";
_local1.balbal.spin = false;
_local1.balbal.bollen = false;
_local1.balbal.gotoAndPlay("bol4");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
_local1.balbal.bolkleur = "o";
if (!_local1.balbal.spin) {
_local1.balbal.bollen = false;
}
_local1.balbal.gotoAndPlay("bol4");
}
} else if (_local3 == 3) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "m";
_local1.balbal.spin = false;
_local1.balbal.bollen = false;
_local1.balbal.gotoAndPlay("bol4");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
_local1.balbal.bolkleur = "m";
if (!_local1.balbal.spin) {
_local1.balbal.bollen = false;
}
_local1.balbal.gotoAndPlay("bol4");
}
} else if (_local3 == 4) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "b";
_local1.balbal.spin = false;
_local1.balbal.bollen = false;
_local1.balbal.gotoAndPlay("bol4");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
_local1.balbal.bolkleur = "b";
if (!_local1.balbal.spin) {
_local1.balbal.bollen = false;
}
_local1.balbal.gotoAndPlay("bol4");
}
} else if (_local3 == 5) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "y";
_local1.balbal.spin = false;
_local1.balbal.bollen = false;
_local1.balbal.gotoAndPlay("bol4");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
_local1.balbal.bolkleur = "y";
if (!_local1.balbal.spin) {
_local1.balbal.bollen = false;
}
_local1.balbal.gotoAndPlay("bol4");
}
} else if (_local3 == 6) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_switch.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.spin = true;
_local1.balbal.bollen = true;
_local1.balbal.bollenkleur = "w";
_local1.balbal.gotoAndPlay("bol4");
tool6.detail.gotoAndStop("spingone");
} else if (_local1.producing) {
_local2.sound_switch.start();
_local1._x = prodx;
_local1._y = prody;
if (!_local1.balbal.spin) {
tool6.detail.gotoAndStop("spingone");
_local1.balbal.spin = true;
if (!_local1.balbal.bollen) {
_local1.balbal.bollen = true;
_local1.balbal.bollenkleur = _local1.balbal.bolkleur;
}
} else {
tool6.detail.gotoAndStop("spin");
_local1.balbal.spin = false;
if (_local1.balbal.bollenkleur == _local1.balbal.bolkleur) {
_local1.balbal.bollen = false;
}
}
_local1.balbal.gotoAndPlay("bol4");
}
}
if ((((_local1.balbal.bol && (_local1.balbal.bolkleur == "o")) && (!_local1.balbal.spin)) && (_local1.balbal.bollen)) && (_local1.balbal.bollenkleur == "b")) {
canProduce = false;
balproductie.nlevel = "l5";
_local1.removeMovieClip();
balweg();
balproductie.doos.levelbal.bol = true;
balproductie.doos.levelbal.bolkleur = "o";
balproductie.doos.levelbal.spin = false;
balproductie.doos.levelbal.bollen = true;
balproductie.doos.levelbal.bollenkleur = "b";
balproductie.doos.levelbal.gotoAndPlay("bol4");
balproductie.gotoAndPlay("moveout");
}
// unexpected jump
}
if (level == 5) {
if (_local3 == 1) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_pump.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.pompniv = 1;
_local1.balbal.pompdip1 = false;
_local1.balbal.pompdip2 = false;
_local1.balbal.pompdip3 = false;
_local1.balbal.gotoAndPlay("bol5");
} else if (_local1.producing) {
_local2.sound_pump.start();
_local1._x = prodx;
_local1._y = prody;
if (_local1.balbal.pompniv == 0) {
_local1.balbal.pompniv = 1;
} else if (_local1.balbal.pompniv == 1) {
_local1.balbal.pompniv = 2;
if (_local1.balbal.pompdip1) {
_local1.balbal.pompdip1 = false;
_local1.balbal.pompdip3 = true;
_local1.balbal.pompdip3kleur = _local1.balbal.pompdip1kleur;
}
} else if (_local1.balbal.pompniv == 2) {
_local2.sound_pop.start();
_local1.removeMovieClip();
produced = false;
balweg();
}
_local1.balbal.gotoAndPlay("bol5");
}
} else if (_local3 == 2) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "g";
_local1.balbal.pompniv = 0;
_local1.balbal.pompdip1 = false;
_local1.balbal.pompdip2 = false;
_local1.balbal.pompdip3 = false;
_local1.balbal.gotoAndPlay("bol5");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
if (_local1.balbal.pompniv == 0) {
_local1.balbal.bolkleur = "g";
} else if (_local1.balbal.pompniv == 1) {
if (_local1.balbal.bolkleur != "g") {
_local1.balbal.pompdip1 = true;
_local1.balbal.pompdip1kleur = "g";
} else {
_local1.balbal.pompdip1 = false;
}
} else if (_local1.balbal.pompniv == 2) {
if (!_local1.balbal.pompdip3) {
if (_local1.balbal.bolkleur != "g") {
_local1.balbal.pompdip2 = true;
_local1.balbal.pompdip2kleur = "g";
} else {
_local1.balbal.pompdip2 = false;
}
} else if (_local1.balbal.pompdip3kleur != "g") {
_local1.balbal.pompdip2 = true;
_local1.balbal.pompdip2kleur = "g";
} else {
_local1.balbal.pompdip2 = false;
}
}
_local1.balbal.gotoAndPlay("bol5");
}
} else if (_local3 == 3) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "b";
_local1.balbal.pompniv = 0;
_local1.balbal.pompdip1 = false;
_local1.balbal.pompdip2 = false;
_local1.balbal.pompdip3 = false;
_local1.balbal.gotoAndPlay("bol5");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
if (_local1.balbal.pompniv == 0) {
_local1.balbal.bolkleur = "b";
} else if (_local1.balbal.pompniv == 1) {
if (_local1.balbal.bolkleur != "b") {
_local1.balbal.pompdip1 = true;
_local1.balbal.pompdip1kleur = "b";
} else {
_local1.balbal.pompdip1 = false;
}
} else if (_local1.balbal.pompniv == 2) {
if (!_local1.balbal.pompdip3) {
if (_local1.balbal.bolkleur != "b") {
_local1.balbal.pompdip2 = true;
_local1.balbal.pompdip2kleur = "b";
} else {
_local1.balbal.pompdip2 = false;
}
} else if (_local1.balbal.pompdip3kleur != "b") {
_local1.balbal.pompdip2 = true;
_local1.balbal.pompdip2kleur = "b";
} else {
_local1.balbal.pompdip2 = false;
}
}
_local1.balbal.gotoAndPlay("bol5");
}
}
if ((((((_local1.balbal.bol && (_local1.balbal.bolkleur == "g")) && (_local1.balbal.pompniv == 2)) && (_local1.balbal.pompdip3)) && (_local1.balbal.pompdip3kleur == "b")) && (_local1.balbal.pompdip2)) && (_local1.balbal.pompdip2kleur == "g")) {
canProduce = false;
balproductie.nlevel = "l6";
_local1.removeMovieClip();
balweg();
balproductie.doos.levelbal.bol = true;
balproductie.doos.levelbal.bolkleur = "g";
balproductie.doos.levelbal.pompniv = 2;
balproductie.doos.levelbal.pompdip1 = false;
balproductie.doos.levelbal.pompdip2 = true;
balproductie.doos.levelbal.pompdip3 = true;
balproductie.doos.levelbal.pompdip2kleur = "g";
balproductie.doos.levelbal.pompdip3kleur = "b";
balproductie.doos.levelbal.gotoAndPlay("bol5");
balproductie.gotoAndPlay("moveout");
}
} else if (level == 6) {
if (_local3 == 1) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "o";
_local1.balbal.bril = false;
_local1.balbal.ogen = false;
_local1.balbal.neusniv = 0;
_local1.balbal.neusdip = false;
_local1.balbal.gotoAndPlay("bol6");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
if (_local1.balbal.neusniv == 0) {
_local1.balbal.bolkleur = "o";
if (!_local1.balbal.bril) {
_local1.balbal.ogen = false;
}
} else if (_local1.balbal.neusniv == 1) {
_local1.balbal.bolkleur = "o";
_local1.balbal.neuskleur = "o";
if (!_local1.balbal.bril) {
_local1.balbal.ogen = false;
}
} else if (_local1.balbal.neusniv == 2) {
_local1.balbal.neusdip = true;
_local1.balbal.neusdipkleur = "o";
if (_local1.balbal.bolkleur == "o") {
_local1.balbal.neusdip = false;
}
}
_local1.balbal.gotoAndPlay("bol6");
}
} else if (_local3 == 2) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "z";
_local1.balbal.bril = false;
_local1.balbal.ogen = false;
_local1.balbal.neusniv = 0;
_local1.balbal.neusdip = false;
_local1.balbal.gotoAndPlay("bol6");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
if (_local1.balbal.neusniv == 0) {
_local1.balbal.bolkleur = "z";
if (!_local1.balbal.bril) {
_local1.balbal.ogen = false;
}
} else if (_local1.balbal.neusniv == 1) {
_local1.balbal.bolkleur = "z";
_local1.balbal.neuskleur = "z";
if (!_local1.balbal.bril) {
_local1.balbal.ogen = false;
}
} else if (_local1.balbal.neusniv == 2) {
_local1.balbal.neusdip = true;
_local1.balbal.neusdipkleur = "z";
if (_local1.balbal.bolkleur == "z") {
_local1.balbal.neusdip = false;
}
}
_local1.balbal.gotoAndPlay("bol6");
}
} else if (_local3 == 3) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_switch.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.bril = true;
_local1.balbal.ogen = true;
_local1.balbal.ogenkleur = "w";
_local1.balbal.neusniv = 0;
_local1.balbal.neusdip = false;
_local1.balbal.gotoAndPlay("bol6");
tool3.detail.gotoAndStop("zwembrilgone");
} else if (_local1.producing) {
_local2.sound_switch.start();
_local1._x = prodx;
_local1._y = prody;
if (!_local1.balbal.bril) {
tool3.detail.gotoAndStop("zwembrilgone");
_local1.balbal.bril = true;
if (!_local1.balbal.ogen) {
_local1.balbal.ogen = true;
_local1.balbal.ogenkleur = _local1.balbal.bolkleur;
}
} else {
tool3.detail.gotoAndStop("zwembril");
_local1.balbal.bril = false;
if (_local1.balbal.ogenkleur == _local1.balbal.bolkleur) {
_local1.balbal.ogen = false;
}
}
_local1.balbal.gotoAndPlay("bol6");
}
} else if (_local3 == 4) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_popout.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.bril = false;
_local1.balbal.ogen = false;
_local1.balbal.neusniv = 1;
_local1.balbal.neuskleur = "w";
_local1.balbal.neusdip = false;
_local1.balbal.gotoAndPlay("bol6");
} else if (_local1.producing) {
_local2.sound_popout.start();
_local1._x = prodx;
_local1._y = prody;
if (_local1.balbal.neusniv == 0) {
_local1.balbal.neusniv = 1;
_local1.balbal.neuskleur = _local1.balbal.bolkleur;
} else if (_local1.balbal.neusniv == 1) {
_local1.balbal.neusniv = 2;
_local1.balbal.neuskleur = _local1.balbal.bolkleur;
} else {
_local2.sound_pop.start();
_local1.removeMovieClip();
produced = false;
balweg();
}
_local1.balbal.gotoAndPlay("bol6");
}
}
if (((((((_local1.balbal.bol && (_local1.balbal.bolkleur == "o")) && (!_local1.balbal.bril)) && (_local1.balbal.ogen)) && (_local1.balbal.ogenkleur == "z")) && (_local1.balbal.neusniv == 2)) && (_local1.balbal.neuskleur == "o")) && (!_local1.balbal.neusdip)) {
canProduce = false;
balproductie.nlevel = "l7";
_local1.removeMovieClip();
balweg();
balproductie.doos.levelbal.bol = true;
balproductie.doos.levelbal.bolkleur = "o";
balproductie.doos.levelbal.bril = false;
balproductie.doos.levelbal.ogen = true;
balproductie.doos.levelbal.ogenkleur = "z";
balproductie.doos.levelbal.neusniv = 2;
balproductie.doos.levelbal.neuskleur = "o";
balproductie.doos.levelbal.neusdip = false;
balproductie.doos.levelbal.gotoAndPlay("bol6");
balproductie.gotoAndPlay("moveout");
}
} else if (level == 7) {
if (_local3 == 1) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "c";
_local1.balbal.plus = false;
_local1.balbal.minus = false;
_local1.balbal.gotoAndPlay("bol7");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
if (_local1.balbal.plus) {
if (_local1.balbal.bolkleur == "c") {
_local1.balbal.bolkleur = "c";
} else if (_local1.balbal.bolkleur == "y") {
_local1.balbal.bolkleur = "g";
} else if (_local1.balbal.bolkleur == "m") {
_local1.balbal.bolkleur = "b";
} else if (_local1.balbal.bolkleur == "g") {
_local1.balbal.bolkleur = "g";
} else if (_local1.balbal.bolkleur == "b") {
_local1.balbal.bolkleur = "b";
} else if (_local1.balbal.bolkleur == "r") {
_local1.balbal.bolkleur = "z";
} else if (_local1.balbal.bolkleur == "z") {
_local1.balbal.bolkleur = "z";
} else if (_local1.balbal.bolkleur == "w") {
_local1.balbal.bolkleur = "c";
}
} else if (_local1.balbal.minus) {
if (_local1.balbal.bolkleur == "c") {
_local1.balbal.bolkleur = "w";
} else if (_local1.balbal.bolkleur == "y") {
_local1.balbal.bolkleur = "y";
} else if (_local1.balbal.bolkleur == "m") {
_local1.balbal.bolkleur = "m";
} else if (_local1.balbal.bolkleur == "g") {
_local1.balbal.bolkleur = "y";
} else if (_local1.balbal.bolkleur == "b") {
_local1.balbal.bolkleur = "m";
} else if (_local1.balbal.bolkleur == "r") {
_local1.balbal.bolkleur = "r";
} else if (_local1.balbal.bolkleur == "z") {
_local1.balbal.bolkleur = "r";
} else if (_local1.balbal.bolkleur == "w") {
_local1.balbal.bolkleur = "w";
}
} else {
_local1.balbal.bolkleur = "c";
}
_local1.balbal.gotoAndPlay("bol7");
_local1.balbal.plus = false;
_local1.balbal.minus = false;
}
} else if (_local3 == 2) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "y";
_local1.balbal.plus = false;
_local1.balbal.minus = false;
_local1.balbal.gotoAndPlay("bol7");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
if (_local1.balbal.plus) {
if (_local1.balbal.bolkleur == "c") {
_local1.balbal.bolkleur = "g";
} else if (_local1.balbal.bolkleur == "y") {
_local1.balbal.bolkleur = "y";
} else if (_local1.balbal.bolkleur == "m") {
_local1.balbal.bolkleur = "r";
} else if (_local1.balbal.bolkleur == "g") {
_local1.balbal.bolkleur = "g";
} else if (_local1.balbal.bolkleur == "b") {
_local1.balbal.bolkleur = "z";
} else if (_local1.balbal.bolkleur == "r") {
_local1.balbal.bolkleur = "r";
} else if (_local1.balbal.bolkleur == "z") {
_local1.balbal.bolkleur = "z";
} else if (_local1.balbal.bolkleur == "w") {
_local1.balbal.bolkleur = "y";
}
} else if (_local1.balbal.minus) {
if (_local1.balbal.bolkleur == "c") {
_local1.balbal.bolkleur = "c";
} else if (_local1.balbal.bolkleur == "y") {
_local1.balbal.bolkleur = "w";
} else if (_local1.balbal.bolkleur == "m") {
_local1.balbal.bolkleur = "m";
} else if (_local1.balbal.bolkleur == "g") {
_local1.balbal.bolkleur = "c";
} else if (_local1.balbal.bolkleur == "b") {
_local1.balbal.bolkleur = "b";
} else if (_local1.balbal.bolkleur == "r") {
_local1.balbal.bolkleur = "m";
} else if (_local1.balbal.bolkleur == "z") {
_local1.balbal.bolkleur = "b";
} else if (_local1.balbal.bolkleur == "w") {
_local1.balbal.bolkleur = "w";
}
} else {
_local1.balbal.bolkleur = "y";
}
_local1.balbal.gotoAndPlay("bol7");
_local1.balbal.plus = false;
_local1.balbal.minus = false;
}
} else if (_local3 == 3) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "m";
_local1.balbal.plus = false;
_local1.balbal.minus = false;
_local1.balbal.gotoAndPlay("bol7");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
if (_local1.balbal.plus) {
if (_local1.balbal.bolkleur == "c") {
_local1.balbal.bolkleur = "b";
} else if (_local1.balbal.bolkleur == "y") {
_local1.balbal.bolkleur = "r";
} else if (_local1.balbal.bolkleur == "m") {
_local1.balbal.bolkleur = "m";
} else if (_local1.balbal.bolkleur == "g") {
_local1.balbal.bolkleur = "z";
} else if (_local1.balbal.bolkleur == "b") {
_local1.balbal.bolkleur = "b";
} else if (_local1.balbal.bolkleur == "r") {
_local1.balbal.bolkleur = "r";
} else if (_local1.balbal.bolkleur == "z") {
_local1.balbal.bolkleur = "z";
} else if (_local1.balbal.bolkleur == "w") {
_local1.balbal.bolkleur = "m";
}
} else if (_local1.balbal.minus) {
if (_local1.balbal.bolkleur == "c") {
_local1.balbal.bolkleur = "c";
} else if (_local1.balbal.bolkleur == "y") {
_local1.balbal.bolkleur = "y";
} else if (_local1.balbal.bolkleur == "m") {
_local1.balbal.bolkleur = "w";
} else if (_local1.balbal.bolkleur == "g") {
_local1.balbal.bolkleur = "g";
} else if (_local1.balbal.bolkleur == "b") {
_local1.balbal.bolkleur = "c";
} else if (_local1.balbal.bolkleur == "r") {
_local1.balbal.bolkleur = "y";
} else if (_local1.balbal.bolkleur == "z") {
_local1.balbal.bolkleur = "g";
} else if (_local1.balbal.bolkleur == "w") {
_local1.balbal.bolkleur = "w";
}
} else {
_local1.balbal.bolkleur = "m";
}
_local1.balbal.gotoAndPlay("bol7");
_local1.balbal.plus = false;
_local1.balbal.minus = false;
}
} else if (_local3 == 4) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.plus = true;
_local1.balbal.minus = false;
_local1.balbal.gotoAndPlay("bol7");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
_local1.balbal.plus = true;
_local1.balbal.minus = false;
_local1.balbal.gotoAndPlay("bol7");
}
} else if (_local3 == 5) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.plus = false;
_local1.balbal.minus = true;
_local1.balbal.gotoAndPlay("bol7");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
_local1.balbal.plus = false;
_local1.balbal.minus = true;
_local1.balbal.gotoAndPlay("bol7");
}
}
if (_local1.balbal.bol && (_local1.balbal.bolkleur == "r")) {
canProduce = false;
balproductie.nlevel = "l8";
_local1.removeMovieClip();
balweg();
balproductie.doos.levelbal.bol = true;
balproductie.doos.levelbal.bolkleur = "r";
balproductie.doos.levelbal.gotoAndPlay("bol7");
balproductie.gotoAndPlay("moveout");
}
} else if (level == 8) {
if (_local3 == 1) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "o";
_local1.balbal.spin = false;
_local1.balbal.bollen = false;
_local1.balbal.gotoAndPlay("bol8");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
_local1.balbal.bolkleur = "o";
if (!_local1.balbal.spin) {
_local1.balbal.bollen = false;
}
_local1.balbal.gotoAndPlay("bol8");
}
} else if (_local3 == 2) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "b";
_local1.balbal.spin = false;
_local1.balbal.bollen = false;
_local1.balbal.gotoAndPlay("bol8");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
_local1.balbal.bolkleur = "b";
if (!_local1.balbal.spin) {
_local1.balbal.bollen = false;
}
_local1.balbal.gotoAndPlay("bol8");
}
} else if (_local3 == 3) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_torch.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "glas";
_local1.balbal.glaskleur = "w";
_local1.balbal.spin = false;
_local1.balbal.bollen = false;
_local1.balbal.gotoAndPlay("bol8");
} else if (_local1.producing) {
_local2.sound_torch.start();
_local1._x = prodx;
_local1._y = prody;
if ((_local1.balbal.bolkleur == "glas") || (((!_local1.balbal.spin) && _local1.balbal.bollen) && (_local1.balbal.bollenkleur == "glas"))) {
_local1.removeMovieClip();
produced = false;
balweg();
_local2.sound_pop.start();
tool4.detail.gotoAndStop("spin");
} else {
_local1.balbal.glaskleur = _local1.balbal.bolkleur;
_local1.balbal.bolkleur = "glas";
if ((!_local1.balbal.spin) && _local1.balbal.bollen) {
_local1.balbal.glasbollenkleur = _local1.balbal.bollenkleur;
_local1.balbal.bollenkleur = "glas";
}
}
_local1.balbal.gotoAndPlay("bol8");
}
} else if (_local3 == 4) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_switch.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.spin = true;
_local1.balbal.bollen = true;
_local1.balbal.bollenkleur = "w";
tool4.detail.gotoAndStop("spingone");
_local1.balbal.gotoAndPlay("bol8");
} else if (_local1.producing) {
_local2.sound_switch.start();
_local1._x = prodx;
_local1._y = prody;
if (!_local1.balbal.spin) {
tool4.detail.gotoAndStop("spingone");
_local1.balbal.spin = true;
if (!_local1.balbal.bollen) {
_local1.balbal.bollen = true;
_local1.balbal.bollenkleur = _local1.balbal.bolkleur;
if (_local1.balbal.bolkleur == "glas") {
_local1.balbal.glasbollenkleur = _local1.balbal.glaskleur;
}
}
} else {
tool4.detail.gotoAndStop("spin");
_local1.balbal.spin = false;
if (_local1.balbal.bolkleur != "glas") {
if (_local1.balbal.bollenkleur == _local1.balbal.bolkleur) {
_local1.balbal.bollen = false;
}
} else if ((_local1.balbal.bollenkleur == _local1.balbal.bolkleur) && (_local1.balbal.glaskleur == _local1.balbal.glasbollenkleur)) {
_local1.balbal.bollen = false;
}
}
_local1.balbal.gotoAndPlay("bol8");
}
}
if (((((_local1.balbal.bol && (_local1.balbal.bolkleur == "glas")) && (_local1.balbal.glaskleur == "b")) && (!_local1.balbal.spin)) && (_local1.balbal.bollen)) && (_local1.balbal.bollenkleur == "o")) {
canProduce = false;
balproductie.nlevel = "l9";
_local1.removeMovieClip();
balweg();
balproductie.doos.levelbal.bol = true;
balproductie.doos.levelbal.bolkleur = "glas";
balproductie.doos.levelbal.glaskleur = "b";
balproductie.doos.levelbal.spin = false;
balproductie.doos.levelbal.bollen = true;
balproductie.doos.levelbal.bollenkleur = "o";
balproductie.doos.levelbal.gotoAndPlay("bol8");
balproductie.gotoAndPlay("moveout");
}
} else if (level == 9) {
if (_local3 == 1) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_pump.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.pompniv = 1;
_local1.balbal.pompdip1 = false;
_local1.balbal.pompdip2 = false;
_local1.balbal.pompdip3 = false;
_local1.balbal.pompdipa = false;
_local1.balbal.pompdipb = false;
_local1.balbal.pompdipc = false;
_local1.balbal.gotoAndPlay("bol9");
} else if (_local1.producing) {
_local2.sound_pump.start();
_local1._x = prodx;
_local1._y = prody;
if (_local1.balbal.pompniv == 0) {
_local1.balbal.pompniv = 1;
if (_local1.balbal.pompdipa) {
_local1.balbal.pompdipa = false;
_local1.balbal.pompdipb = true;
_local1.balbal.pompdipbkleur = _local1.balbal.pompdipakleur;
}
} else if (_local1.balbal.pompniv == 1) {
_local1.balbal.pompniv = 2;
if (_local1.balbal.pompdip1) {
_local1.balbal.pompdip1 = false;
_local1.balbal.pompdip3 = true;
_local1.balbal.pompdip3kleur = _local1.balbal.pompdip1kleur;
}
if (_local1.balbal.pompdipb) {
_local1.balbal.pompdipb = false;
_local1.balbal.pompdipc = true;
_local1.balbal.pompdipckleur = _local1.balbal.pompdipbkleur;
}
} else if (_local1.balbal.pompniv == 2) {
_local2.sound_pop.start();
_local1.removeMovieClip();
produced = false;
balweg();
}
_local1.balbal.gotoAndPlay("bol9");
}
} else if (_local3 == 2) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "o";
_local1.balbal.pompniv = 0;
_local1.balbal.pompdip1 = false;
_local1.balbal.pompdip2 = false;
_local1.balbal.pompdip3 = false;
_local1.balbal.pompdipa = false;
_local1.balbal.pompdipb = false;
_local1.balbal.pompdipc = false;
_local1.balbal.gotoAndPlay("bol9");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
if (_local1.balbal.pompniv == 0) {
_local1.balbal.bolkleur = "o";
} else if (_local1.balbal.pompniv == 1) {
if (_local1.balbal.pompdipb) {
if (_local1.balbal.pompdipbkleur != "o") {
_local1.balbal.pompdip1 = true;
_local1.balbal.pompdip1kleur = "o";
} else {
_local1.balbal.pompdip1 = false;
}
} else if (_local1.balbal.bolkleur != "o") {
_local1.balbal.pompdip1 = true;
_local1.balbal.pompdip1kleur = "o";
} else {
_local1.balbal.pompdip1 = false;
}
} else if (_local1.balbal.pompniv == 2) {
if (_local1.balbal.pompdipc) {
if (_local1.balbal.pompdipckleur != "o") {
_local1.balbal.pompdip2 = true;
_local1.balbal.pompdip2kleur = "o";
} else {
_local1.balbal.pompdip2 = false;
}
} else if (!_local1.balbal.pompdip3) {
if (_local1.balbal.bolkleur != "o") {
_local1.balbal.pompdip2 = true;
_local1.balbal.pompdip2kleur = "o";
} else {
_local1.balbal.pompdip2 = false;
}
} else if (_local1.balbal.pompdip3kleur != "o") {
_local1.balbal.pompdip2 = true;
_local1.balbal.pompdip2kleur = "o";
} else {
_local1.balbal.pompdip2 = false;
}
}
_local1.balbal.gotoAndPlay("bol9");
}
} else if (_local3 == 3) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.pompniv = 0;
_local1.balbal.pompdip1 = false;
_local1.balbal.pompdip2 = false;
_local1.balbal.pompdip3 = false;
_local1.balbal.pompdipa = true;
_local1.balbal.pompdipakleur = "o";
_local1.balbal.pompdipb = false;
_local1.balbal.pompdipc = false;
_local1.balbal.gotoAndPlay("bol9");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
if (_local1.balbal.pompniv == 0) {
if (_local1.balbal.bolkleur != "o") {
_local1.balbal.pompdipa = true;
_local1.balbal.pompdipakleur = "o";
} else {
_local1.balbal.pompdipa = false;
}
} else if (_local1.balbal.pompniv == 1) {
if (_local1.balbal.pompdipb) {
if (_local1.balbal.pompdipbkleur != "o") {
_local1.balbal.pompdip1 = true;
_local1.balbal.pompdip1kleur = "o";
} else {
_local1.balbal.pompdip1 = false;
}
} else if (_local1.balbal.bolkleur != "o") {
_local1.balbal.pompdip1 = true;
_local1.balbal.pompdip1kleur = "o";
} else {
_local1.balbal.pompdip1 = false;
}
} else if (_local1.balbal.pompniv == 2) {
if (_local1.balbal.pompdipc) {
if (_local1.balbal.pompdipckleur != "o") {
_local1.balbal.pompdip2 = true;
_local1.balbal.pompdip2kleur = "o";
} else {
_local1.balbal.pompdip2 = false;
}
} else if (!_local1.balbal.pompdip3) {
if (_local1.balbal.bolkleur != "o") {
_local1.balbal.pompdip2 = true;
_local1.balbal.pompdip2kleur = "o";
} else {
_local1.balbal.pompdip2 = false;
}
} else if (_local1.balbal.pompdip3kleur != "o") {
_local1.balbal.pompdip2 = true;
_local1.balbal.pompdip2kleur = "o";
} else {
_local1.balbal.pompdip2 = false;
}
}
_local1.balbal.gotoAndPlay("bol9");
}
} else if (_local3 == 4) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "g";
_local1.balbal.pompniv = 0;
_local1.balbal.pompdip1 = false;
_local1.balbal.pompdip2 = false;
_local1.balbal.pompdip3 = false;
_local1.balbal.pompdipa = false;
_local1.balbal.pompdipb = false;
_local1.balbal.pompdipc = false;
_local1.balbal.gotoAndPlay("bol9");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
if (_local1.balbal.pompniv == 0) {
_local1.balbal.bolkleur = "g";
} else if (_local1.balbal.pompniv == 1) {
if (_local1.balbal.pompdipb) {
if (_local1.balbal.pompdipbkleur != "g") {
_local1.balbal.pompdip1 = true;
_local1.balbal.pompdip1kleur = "g";
} else {
_local1.balbal.pompdip1 = false;
}
} else if (_local1.balbal.bolkleur != "g") {
_local1.balbal.pompdip1 = true;
_local1.balbal.pompdip1kleur = "g";
} else {
_local1.balbal.pompdip1 = false;
}
} else if (_local1.balbal.pompniv == 2) {
if (_local1.balbal.pompdipc) {
if (_local1.balbal.pompdipckleur != "g") {
_local1.balbal.pompdip2 = true;
_local1.balbal.pompdip2kleur = "g";
} else {
_local1.balbal.pompdip2 = false;
}
} else if (!_local1.balbal.pompdip3) {
if (_local1.balbal.bolkleur != "g") {
_local1.balbal.pompdip2 = true;
_local1.balbal.pompdip2kleur = "g";
} else {
_local1.balbal.pompdip2 = false;
}
} else if (_local1.balbal.pompdip3kleur != "g") {
_local1.balbal.pompdip2 = true;
_local1.balbal.pompdip2kleur = "g";
} else {
_local1.balbal.pompdip2 = false;
}
}
_local1.balbal.gotoAndPlay("bol9");
}
} else if (_local3 == 5) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.pompniv = 0;
_local1.balbal.pompdip1 = false;
_local1.balbal.pompdip2 = false;
_local1.balbal.pompdip3 = false;
_local1.balbal.pompdipa = true;
_local1.balbal.pompdipakleur = "g";
_local1.balbal.pompdipb = false;
_local1.balbal.pompdipc = false;
_local1.balbal.gotoAndPlay("bol9");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
if (_local1.balbal.pompniv == 0) {
if (_local1.balbal.bolkleur != "g") {
_local1.balbal.pompdipa = true;
_local1.balbal.pompdipakleur = "g";
} else {
_local1.balbal.pompdipa = false;
}
} else if (_local1.balbal.pompniv == 1) {
if (_local1.balbal.pompdipb) {
if (_local1.balbal.pompdipbkleur != "g") {
_local1.balbal.pompdip1 = true;
_local1.balbal.pompdip1kleur = "g";
} else {
_local1.balbal.pompdip1 = false;
}
} else if (_local1.balbal.bolkleur != "g") {
_local1.balbal.pompdip1 = true;
_local1.balbal.pompdip1kleur = "g";
} else {
_local1.balbal.pompdip1 = false;
}
} else if (_local1.balbal.pompniv == 2) {
if (_local1.balbal.pompdipc) {
if (_local1.balbal.pompdipckleur != "g") {
_local1.balbal.pompdip2 = true;
_local1.balbal.pompdip2kleur = "g";
} else {
_local1.balbal.pompdip2 = false;
}
} else if (!_local1.balbal.pompdip3) {
if (_local1.balbal.bolkleur != "g") {
_local1.balbal.pompdip2 = true;
_local1.balbal.pompdip2kleur = "g";
} else {
_local1.balbal.pompdip2 = false;
}
} else if (_local1.balbal.pompdip3kleur != "g") {
_local1.balbal.pompdip2 = true;
_local1.balbal.pompdip2kleur = "g";
} else {
_local1.balbal.pompdip2 = false;
}
}
_local1.balbal.gotoAndPlay("bol9");
}
}
if ((((((((((_local1.balbal.bol && (_local1.balbal.bolkleur == "g")) && (_local1.balbal.pompniv == 1)) && (_local1.balbal.pompdipb)) && (_local1.balbal.pompdipbkleur == "o")) && (!_local1.balbal.pompdipa)) && (!_local1.balbal.pompdipc)) && (_local1.balbal.pompdip1)) && (_local1.balbal.pompdip1kleur == "g")) && (!_local1.balbal.pompdip2)) && (!_local1.balbal.pompdip3)) {
canProduce = false;
balproductie.nlevel = "l10";
_local1.removeMovieClip();
balweg();
balproductie.doos.levelbal.bol = true;
balproductie.doos.levelbal.bolkleur = "g";
balproductie.doos.levelbal.pompniv = 1;
balproductie.doos.levelbal.pompdipb = true;
balproductie.doos.levelbal.pompdipbkleur = "o";
balproductie.doos.levelbal.pompdipa = false;
balproductie.doos.levelbal.pompdipc = false;
balproductie.doos.levelbal.pompdip1 = true;
balproductie.doos.levelbal.pompdip1kleur = "g";
balproductie.doos.levelbal.pompdip2 = false;
balproductie.doos.levelbal.pompdip3 = false;
balproductie.doos.levelbal.gotoAndPlay("bol9");
balproductie.gotoAndPlay("moveout");
}
} else if (level == 10) {
if (_local3 == 1) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "y";
_local1.balbal.bril = false;
_local1.balbal.ogen = false;
_local1.balbal.oorlniv = 0;
_local1.balbal.oorrniv = 0;
_local1.balbal.gotoAndPlay("bol10");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
_local1.balbal.bolkleur = "y";
if (!_local1.balbal.bril) {
_local1.balbal.ogen = false;
}
_local1.balbal.gotoAndPlay("bol10");
}
} else if (_local3 == 2) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "g";
_local1.balbal.bril = false;
_local1.balbal.ogen = false;
_local1.balbal.oorlniv = 0;
_local1.balbal.oorrniv = 0;
_local1.balbal.gotoAndPlay("bol10");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
_local1.balbal.bolkleur = "g";
if (!_local1.balbal.bril) {
_local1.balbal.ogen = false;
}
_local1.balbal.gotoAndPlay("bol10");
}
} else if (_local3 == 3) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "b";
_local1.balbal.bril = false;
_local1.balbal.ogen = false;
_local1.balbal.oorlniv = 0;
_local1.balbal.oorrniv = 0;
_local1.balbal.gotoAndPlay("bol10");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
_local1.balbal.bolkleur = "b";
if (!_local1.balbal.bril) {
_local1.balbal.ogen = false;
}
_local1.balbal.gotoAndPlay("bol10");
}
} else if (_local3 == 4) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_switch.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.bril = true;
_local1.balbal.ogen = true;
_local1.balbal.ogenkleur = "w";
_local1.balbal.oorlniv = 0;
_local1.balbal.oorrniv = 0;
_local1.balbal.gotoAndPlay("bol10");
tool4.detail.gotoAndStop("zwembrilgone");
} else if (_local1.producing) {
_local2.sound_switch.start();
_local1._x = prodx;
_local1._y = prody;
if (!_local1.balbal.bril) {
tool4.detail.gotoAndStop("zwembrilgone");
_local1.balbal.bril = true;
if (!_local1.balbal.ogen) {
_local1.balbal.ogen = true;
_local1.balbal.ogenkleur = _local1.balbal.bolkleur;
}
} else {
tool4.detail.gotoAndStop("zwembril");
_local1.balbal.bril = false;
if (_local1.balbal.ogenkleur == _local1.balbal.bolkleur) {
_local1.balbal.ogen = false;
}
}
_local1.balbal.gotoAndPlay("bol10");
}
} else if (_local3 == 5) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_popout.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.bril = false;
_local1.balbal.ogen = false;
_local1.balbal.oorlniv = 1;
_local1.balbal.oorlkleur = "w";
_local1.balbal.oorrniv = 0;
_local1.balbal.gotoAndPlay("bol10");
} else if (_local1.producing) {
_local2.sound_popout.start();
_local1._x = prodx;
_local1._y = prody;
if (_local1.balbal.oorlniv == 0) {
_local1.balbal.oorlniv = 1;
_local1.balbal.oorlkleur = _local1.balbal.bolkleur;
} else if (_local1.balbal.oorlniv == 1) {
_local1.balbal.oorlniv = 2;
} else {
_local2.sound_pop.start();
_local1.removeMovieClip();
produced = false;
balweg();
}
_local1.balbal.gotoAndPlay("bol10");
}
} else if (_local3 == 6) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_popout.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.bril = false;
_local1.balbal.ogen = false;
_local1.balbal.oorrniv = 1;
_local1.balbal.oorrkleur = "w";
_local1.balbal.oorlniv = 0;
_local1.balbal.gotoAndPlay("bol10");
} else if (_local1.producing) {
_local2.sound_popout.start();
_local1._x = prodx;
_local1._y = prody;
if (_local1.balbal.oorrniv == 0) {
_local1.balbal.oorrniv = 1;
_local1.balbal.oorrkleur = _local1.balbal.bolkleur;
} else if (_local1.balbal.oorrniv == 1) {
_local1.balbal.oorrniv = 2;
} else {
_local2.sound_pop.start();
_local1.removeMovieClip();
produced = false;
balweg();
}
_local1.balbal.gotoAndPlay("bol10");
}
}
if ((((((((_local1.balbal.bol && (_local1.balbal.bolkleur == "y")) && (!_local1.balbal.bril)) && (_local1.balbal.ogen)) && (_local1.balbal.ogenkleur == "b")) && (_local1.balbal.oorlniv == 2)) && (_local1.balbal.oorlkleur == "y")) && (_local1.balbal.oorrniv == 2)) && (_local1.balbal.oorrkleur == "g")) {
canProduce = false;
balproductie.nlevel = "l11";
_local1.removeMovieClip();
balweg();
balproductie.doos.levelbal.bol = true;
balproductie.doos.levelbal.bolkleur = "y";
balproductie.doos.levelbal.bril = false;
balproductie.doos.levelbal.ogen = true;
balproductie.doos.levelbal.ogenkleur = "b";
balproductie.doos.levelbal.oorlniv = 2;
balproductie.doos.levelbal.oorlkleur = "y";
balproductie.doos.levelbal.oorrniv = 2;
balproductie.doos.levelbal.oorrkleur = "g";
balproductie.doos.levelbal.gotoAndPlay("bol10");
balproductie.gotoAndPlay("moveout");
}
} else if (level == 11) {
if (_local3 == 1) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "c";
_local1.balbal.plus = false;
_local1.balbal.spin = false;
_local1.balbal.bollen = false;
_local1.balbal.gotoAndPlay("bol11");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
if (!_local1.balbal.spin) {
_local1.balbal.bollen = false;
}
if (_local1.balbal.plus) {
if (_local1.balbal.bolkleur == "c") {
_local1.balbal.bolkleur = "c";
} else if (_local1.balbal.bolkleur == "y") {
_local1.balbal.bolkleur = "g";
} else if (_local1.balbal.bolkleur == "m") {
_local1.balbal.bolkleur = "b";
} else if (_local1.balbal.bolkleur == "g") {
_local1.balbal.bolkleur = "g";
} else if (_local1.balbal.bolkleur == "b") {
_local1.balbal.bolkleur = "b";
} else if (_local1.balbal.bolkleur == "r") {
_local1.balbal.bolkleur = "z";
} else if (_local1.balbal.bolkleur == "z") {
_local1.balbal.bolkleur = "z";
} else if (_local1.balbal.bolkleur == "w") {
_local1.balbal.bolkleur = "c";
}
} else {
_local1.balbal.bolkleur = "c";
}
_local1.balbal.gotoAndPlay("bol11");
_local1.balbal.plus = false;
}
} else if (_local3 == 2) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "y";
_local1.balbal.plus = false;
_local1.balbal.spin = false;
_local1.balbal.bollen = false;
_local1.balbal.gotoAndPlay("bol11");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
if (!_local1.balbal.spin) {
_local1.balbal.bollen = false;
}
if (_local1.balbal.plus) {
if (_local1.balbal.bolkleur == "c") {
_local1.balbal.bolkleur = "g";
} else if (_local1.balbal.bolkleur == "y") {
_local1.balbal.bolkleur = "y";
} else if (_local1.balbal.bolkleur == "m") {
_local1.balbal.bolkleur = "r";
} else if (_local1.balbal.bolkleur == "g") {
_local1.balbal.bolkleur = "g";
} else if (_local1.balbal.bolkleur == "b") {
_local1.balbal.bolkleur = "z";
} else if (_local1.balbal.bolkleur == "r") {
_local1.balbal.bolkleur = "r";
} else if (_local1.balbal.bolkleur == "z") {
_local1.balbal.bolkleur = "z";
} else if (_local1.balbal.bolkleur == "w") {
_local1.balbal.bolkleur = "y";
}
} else {
_local1.balbal.bolkleur = "y";
}
_local1.balbal.gotoAndPlay("bol11");
_local1.balbal.plus = false;
}
} else if (_local3 == 3) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "m";
_local1.balbal.plus = false;
_local1.balbal.spin = false;
_local1.balbal.bollen = false;
_local1.balbal.gotoAndPlay("bol11");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
if (!_local1.balbal.spin) {
_local1.balbal.bollen = false;
}
if (_local1.balbal.plus) {
if (_local1.balbal.bolkleur == "c") {
_local1.balbal.bolkleur = "b";
} else if (_local1.balbal.bolkleur == "y") {
_local1.balbal.bolkleur = "r";
} else if (_local1.balbal.bolkleur == "m") {
_local1.balbal.bolkleur = "m";
} else if (_local1.balbal.bolkleur == "g") {
_local1.balbal.bolkleur = "z";
} else if (_local1.balbal.bolkleur == "b") {
_local1.balbal.bolkleur = "b";
} else if (_local1.balbal.bolkleur == "r") {
_local1.balbal.bolkleur = "r";
} else if (_local1.balbal.bolkleur == "z") {
_local1.balbal.bolkleur = "z";
} else if (_local1.balbal.bolkleur == "w") {
_local1.balbal.bolkleur = "m";
}
} else {
_local1.balbal.bolkleur = "m";
}
_local1.balbal.gotoAndPlay("bol11");
_local1.balbal.plus = false;
}
} else if (_local3 == 4) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.plus = true;
_local1.balbal.spin = false;
_local1.balbal.bollen = false;
_local1.balbal.gotoAndPlay("bol11");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
_local1.balbal.plus = true;
_local1.balbal.gotoAndPlay("bol11");
}
} else if (_local3 == 5) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_switch.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.plus = false;
_local1.balbal.spin = true;
_local1.balbal.bollen = true;
_local1.balbal.bollenkleur = "w";
_local1.balbal.gotoAndPlay("bol11");
tool5.detail.gotoAndStop("spingone");
} else if (_local1.producing) {
_local2.sound_switch.start();
_local1._x = prodx;
_local1._y = prody;
if (!_local1.balbal.spin) {
tool5.detail.gotoAndStop("spingone");
_local1.balbal.spin = true;
if (!_local1.balbal.bollen) {
_local1.balbal.bollen = true;
_local1.balbal.bollenkleur = _local1.balbal.bolkleur;
}
} else {
tool5.detail.gotoAndStop("spin");
_local1.balbal.spin = false;
if (_local1.balbal.bollenkleur == _local1.balbal.bolkleur) {
_local1.balbal.bollen = false;
}
}
_local1.balbal.plus = false;
_local1.balbal.gotoAndPlay("bol11");
}
}
if ((((_local1.balbal.bol && (_local1.balbal.bolkleur == "r")) && (!_local1.balbal.spin)) && (_local1.balbal.bollen)) && (_local1.balbal.bollenkleur == "g")) {
canProduce = false;
balproductie.nlevel = "l12";
_local1.removeMovieClip();
balweg();
balproductie.doos.levelbal.bol = true;
balproductie.doos.levelbal.bolkleur = "r";
balproductie.doos.levelbal.spin = false;
balproductie.doos.levelbal.bollen = true;
balproductie.doos.levelbal.bollenkleur = "g";
balproductie.doos.levelbal.gotoAndPlay("bol11");
balproductie.gotoAndPlay("moveout");
}
} else if (level == 12) {
if (_local3 == 1) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "m";
_local1.balbal.dip = false;
_local1.balbal.spin = false;
_local1.balbal.bollenboven = false;
_local1.balbal.bollenonder = false;
_local1.balbal.gotoAndPlay("bol12");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
_local1.balbal.bolkleur = "m";
_local1.balbal.dip = false;
if (!_local1.balbal.spin) {
_local1.balbal.bollenboven = false;
_local1.balbal.bollenonder = false;
}
_local1.balbal.gotoAndPlay("bol12");
}
} else if (_local3 == 2) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.dip = true;
_local1.balbal.dipkleur = "o";
_local1.balbal.spin = false;
_local1.balbal.bollenboven = false;
_local1.balbal.bollenonder = false;
_local1.balbal.gotoAndPlay("bol12");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
_local1.balbal.dip = true;
_local1.balbal.dipkleur = "o";
if (!_local1.balbal.spin) {
_local1.balbal.bollenonder = false;
}
_local1.balbal.gotoAndPlay("bol12");
}
} else if (_local3 == 3) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.dip = true;
_local1.balbal.dipkleur = "y";
_local1.balbal.spin = false;
_local1.balbal.bollenboven = false;
_local1.balbal.bollenonder = false;
_local1.balbal.gotoAndPlay("bol12");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
_local1.balbal.dip = true;
_local1.balbal.dipkleur = "y";
if (!_local1.balbal.spin) {
_local1.balbal.bollenonder = false;
}
_local1.balbal.gotoAndPlay("bol12");
}
} else if (_local3 == 4) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_switch.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.dip = false;
_local1.balbal.spin = true;
_local1.balbal.bollenboven = true;
_local1.balbal.bollenbovenkleur = "w";
_local1.balbal.bollenonder = true;
_local1.balbal.bollenonderkleur = "w";
tool4.detail.gotoAndStop("spingone");
_local1.balbal.gotoAndPlay("bol12");
} else if (_local1.producing) {
_local2.sound_switch.start();
_local1._x = prodx;
_local1._y = prody;
if (!_local1.balbal.spin) {
tool4.detail.gotoAndStop("spingone");
_local1.balbal.spin = true;
if (!_local1.balbal.bollenboven) {
_local1.balbal.bollenboven = true;
_local1.balbal.bollenbovenkleur = _local1.balbal.bolkleur;
}
if (!_local1.balbal.bollenonder) {
if (_local1.balbal.dip) {
_local1.balbal.bollenonder = true;
_local1.balbal.bollenonderkleur = _local1.balbal.dipkleur;
} else {
_local1.balbal.bollenonder = true;
_local1.balbal.bollenonderkleur = _local1.balbal.bolkleur;
}
}
} else {
tool4.detail.gotoAndStop("spin");
_local1.balbal.spin = false;
if (_local1.balbal.bollenbovenkleur == _local1.balbal.bolkleur) {
_local1.balbal.bollenboven = false;
}
if (_local1.balbal.dip) {
if (_local1.balbal.bollenonderkleur == _local1.balbal.dipkleur) {
_local1.balbal.bollenonder = false;
}
} else if (_local1.balbal.bollenonderkleur == _local1.balbal.bolkleur) {
_local1.balbal.bollenonder = false;
}
}
_local1.balbal.gotoAndPlay("bol12");
}
}
if ((((((((_local1.balbal.bol && (_local1.balbal.bolkleur == "m")) && _local1.balbal.dip) && (_local1.balbal.dipkleur == "y")) && (!_local1.balbal.spin)) && _local1.balbal.bollenboven) && (_local1.balbal.bollenbovenkleur == "w")) && _local1.balbal.bollenonder) && (_local1.balbal.bollenonderkleur == "o")) {
canProduce = false;
balproductie.nlevel = "l13";
_local1.removeMovieClip();
balweg();
balproductie.doos.levelbal.bol = true;
balproductie.doos.levelbal.bolkleur = "m";
balproductie.doos.levelbal.dip = true;
balproductie.doos.levelbal.dipkleur = "y";
balproductie.doos.levelbal.spin = false;
balproductie.doos.levelbal.bollenboven = true;
balproductie.doos.levelbal.bollenbovenkleur = "w";
balproductie.doos.levelbal.bollenonder = true;
balproductie.doos.levelbal.bollenonderkleur = "o";
balproductie.doos.levelbal.gotoAndPlay("bol12");
balproductie.gotoAndPlay("moveout");
}
} else if (level == 13) {
if (_local3 == 1) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "m";
_local1.balbal.zaag = false;
_local1.balbal.bril = false;
_local1.balbal.ogen = false;
_local1.balbal.oorlniv = 0;
_local1.balbal.oorrniv = 0;
_local1.balbal.gotoAndPlay("bol13");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
_local1.balbal.bolkleur = "m";
if (!_local1.balbal.bril) {
_local1.balbal.ogen = false;
}
_local1.balbal.gotoAndPlay("bol13");
}
} else if (_local3 == 2) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "b";
_local1.balbal.zaag = false;
_local1.balbal.bril = false;
_local1.balbal.ogen = false;
_local1.balbal.oorlniv = 0;
_local1.balbal.oorrniv = 0;
_local1.balbal.gotoAndPlay("bol13");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
_local1.balbal.bolkleur = "b";
if (!_local1.balbal.bril) {
_local1.balbal.ogen = false;
}
_local1.balbal.gotoAndPlay("bol13");
}
} else if (_local3 == 3) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_saw.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.zaag = true;
_local1.balbal.bril = false;
_local1.balbal.ogen = false;
_local1.balbal.oorlniv = 0;
_local1.balbal.oorrniv = 0;
_local1.balbal.gotoAndPlay("bol13");
} else if (_local1.producing) {
_local2.sound_saw.start();
_local1._x = prodx;
_local1._y = prody;
_local1.balbal.zaag = true;
_local1.balbal.gotoAndPlay("bol13");
}
} else if (_local3 == 4) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_switch.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.zaag = false;
_local1.balbal.bril = true;
_local1.balbal.ogen = true;
_local1.balbal.ogenkleur = "w";
_local1.balbal.oorlniv = 0;
_local1.balbal.oorrniv = 0;
_local1.balbal.gotoAndPlay("bol13");
tool4.detail.gotoAndStop("zwembrilgone");
} else if (_local1.producing) {
_local2.sound_switch.start();
_local1._x = prodx;
_local1._y = prody;
if (!_local1.balbal.bril) {
tool4.detail.gotoAndStop("zwembrilgone");
_local1.balbal.bril = true;
if (!_local1.balbal.ogen) {
_local1.balbal.ogen = true;
_local1.balbal.ogenkleur = _local1.balbal.bolkleur;
}
} else {
tool4.detail.gotoAndStop("zwembril");
_local1.balbal.bril = false;
if (_local1.balbal.ogenkleur == _local1.balbal.bolkleur) {
_local1.balbal.ogen = false;
}
}
_local1.balbal.gotoAndPlay("bol13");
}
} else if (_local3 == 5) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_popout.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.zaag = false;
_local1.balbal.bril = false;
_local1.balbal.ogen = false;
_local1.balbal.oorlniv = 1;
_local1.balbal.oorlkleur = "w";
_local1.balbal.oorrniv = 0;
_local1.balbal.gotoAndPlay("bol13");
} else if (_local1.producing) {
_local2.sound_popout.start();
_local1._x = prodx;
_local1._y = prody;
if (_local1.balbal.oorlniv == 0) {
_local1.balbal.oorlniv = 1;
_local1.balbal.oorlkleur = _local1.balbal.bolkleur;
} else if (_local1.balbal.oorlniv == 1) {
_local1.balbal.oorlniv = 2;
} else {
_local2.sound_pop.start();
_local1.removeMovieClip();
produced = false;
balweg();
}
_local1.balbal.gotoAndPlay("bol13");
}
} else if (_local3 == 6) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_popout.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.zaag = false;
_local1.balbal.bril = false;
_local1.balbal.ogen = false;
_local1.balbal.oorrniv = 1;
_local1.balbal.oorrkleur = "w";
_local1.balbal.oorlniv = 0;
_local1.balbal.gotoAndPlay("bol13");
} else if (_local1.producing) {
_local2.sound_popout.start();
_local1._x = prodx;
_local1._y = prody;
if (_local1.balbal.oorrniv == 0) {
_local1.balbal.oorrniv = 1;
_local1.balbal.oorrkleur = _local1.balbal.bolkleur;
} else if (_local1.balbal.oorrniv == 1) {
_local1.balbal.oorrniv = 2;
} else {
_local2.sound_pop.start();
_local1.removeMovieClip();
produced = false;
balweg();
}
_local1.balbal.gotoAndPlay("bol13");
}
}
if (((((((((_local1.balbal.bol && (_local1.balbal.bolkleur == "m")) && _local1.balbal.zaag) && (!_local1.balbal.bril)) && _local1.balbal.ogen) && (_local1.balbal.ogenkleur == "w")) && (_local1.balbal.oorlniv == 1)) && (_local1.balbal.oorlkleur == "w")) && (_local1.balbal.oorrniv == 1)) && (_local1.balbal.oorrkleur == "b")) {
canProduce = false;
balproductie.nlevel = "l14";
_local1.removeMovieClip();
balweg();
balproductie.doos.levelbal.bol = true;
balproductie.doos.levelbal.bolkleur = "m";
balproductie.doos.levelbal.zaag = true;
balproductie.doos.levelbal.bril = false;
balproductie.doos.levelbal.ogen = true;
balproductie.doos.levelbal.ogenkleur = "w";
balproductie.doos.levelbal.oorlniv = 1;
balproductie.doos.levelbal.oorlkleur = "w";
balproductie.doos.levelbal.oorrniv = 1;
balproductie.doos.levelbal.oorrkleur = "b";
balproductie.doos.levelbal.gotoAndPlay("bol13");
balproductie.gotoAndPlay("moveout");
}
} else if (level == 14) {
if (_local3 == 1) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_paint.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "b";
_local1.balbal.spin = false;
_local1.balbal.bollen = false;
_local1.balbal.lamp = false;
_local1.balbal.gotoAndPlay("bol14");
} else if (_local1.producing) {
_local2.sound_paint.start();
_local1._x = prodx;
_local1._y = prody;
_local1.balbal.bolkleur = "b";
if (!_local1.balbal.spin) {
_local1.balbal.bollen = false;
}
_local1.balbal.gotoAndPlay("bol14");
}
} else if (_local3 == 2) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_torch.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "glas";
_local1.balbal.glaskleur = "w";
_local1.balbal.spin = false;
_local1.balbal.bollen = false;
_local1.balbal.lamp = false;
_local1.balbal.gotoAndPlay("bol14");
} else if (_local1.producing) {
_local2.sound_torch.start();
_local1._x = prodx;
_local1._y = prody;
if ((_local1.balbal.bolkleur == "glas") || (((!_local1.balbal.spin) && _local1.balbal.bollen) && (_local1.balbal.bollenkleur == "glas"))) {
_local1.removeMovieClip();
produced = false;
balweg();
_local2.sound_pop.start();
tool3.detail.gotoAndStop("spin");
} else {
_local1.balbal.glaskleur = _local1.balbal.bolkleur;
_local1.balbal.bolkleur = "glas";
if ((!_local1.balbal.spin) && _local1.balbal.bollen) {
_local1.balbal.glasbollenkleur = _local1.balbal.bollenkleur;
_local1.balbal.bollenkleur = "glas";
}
}
_local1.balbal.gotoAndPlay("bol14");
}
} else if (_local3 == 3) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_switch.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.spin = true;
_local1.balbal.bollen = true;
_local1.balbal.bollenkleur = "w";
_local1.balbal.lamp = false;
tool3.detail.gotoAndStop("spingone");
_local1.balbal.gotoAndPlay("bol14");
} else if (_local1.producing) {
_local2.sound_switch.start();
_local1._x = prodx;
_local1._y = prody;
if (!_local1.balbal.spin) {
tool3.detail.gotoAndStop("spingone");
_local1.balbal.spin = true;
if (!_local1.balbal.bollen) {
_local1.balbal.bollen = true;
_local1.balbal.bollenkleur = _local1.balbal.bolkleur;
if (_local1.balbal.bolkleur == "glas") {
_local1.balbal.glasbollenkleur = _local1.balbal.glaskleur;
}
}
} else {
tool3.detail.gotoAndStop("spin");
_local1.balbal.spin = false;
if (_local1.balbal.bolkleur != "glas") {
if (_local1.balbal.bollenkleur == _local1.balbal.bolkleur) {
_local1.balbal.bollen = false;
}
} else if ((_local1.balbal.bollenkleur == _local1.balbal.bolkleur) && (_local1.balbal.glaskleur == _local1.balbal.glasbollenkleur)) {
_local1.balbal.bollen = false;
}
}
_local1.balbal.gotoAndPlay("bol14");
}
} else if (_local3 == 4) {
if ((!_local1.producing) && (!produced)) {
_local2.sound_switch.start();
update = true;
produced = true;
_local1._x = prodx;
_local1._y = prody;
_local1.producing = true;
_local1.attachMovie("balprod", "balbal", 0);
_local1.balbal.bol = true;
_local1.balbal.bolkleur = "w";
_local1.balbal.spin = false;
_local1.balbal.bollen = false;
_local1.balbal.lamp = false;
_local1.balbal.gotoAndPlay("bol14");
} else if (_local1.producing) {
_local2.sound_switch.start();
_local1._x = prodx;
_local1._y = prody;
if (_local1.balbal.bollen) {
if (_local1.balbal.bollenkleur == "glas") {
_local1.balbal.lamp = true;
}
}
if (_local1.balbal.bolkleur == "glas") {
_local1.balbal.lamp = true;
}
_local1.balbal.gotoAndPlay("bol14");
}
}
if ((((((_local1.balbal.bol && (_local1.balbal.bolkleur == "b")) && (!_local1.balbal.spin)) && _local1.balbal.bollen) && (_local1.balbal.bollenkleur == "glas")) && (_local1.balbal.glasbollenkleur == "w")) && _local1.balbal.lamp) {
canProduce = false;
balproductie.nlevel = "l15";
_local1.removeMovieClip();
balproductie.doos.levelbal.bol = true;
balproductie.doos.levelbal.bolkleur = "b";
balproductie.doos.levelbal.spin = false;
balproductie.doos.levelbal.bollen = true;
balproductie.doos.levelbal.bollenkleur = "glas";
balproductie.doos.levelbal.glasbollenkleur = "w";
balproductie.doos.levelbal.lamp = true;
balproductie.doos.levelbal.gotoAndPlay("bol14");
balproductie.gotoAndPlay("moveout");
}
}
}
produced = false;
canProduce = false;
level = 1;
prodx = 250;
prody = -100;
tool1.detail.gotoAndStop("init");
tool2.detail.gotoAndStop("init");
tool3.detail.gotoAndStop("init");
tool4.detail.gotoAndStop("init");
tool5.detail.gotoAndStop("init");
tool6.detail.gotoAndStop("init");
tool7.detail.gotoAndStop("init");
ballen_aantal = 17;
ballekes = 17;
kGravWeight = 1;
kDamp = 0.98;
kCollisionDamp = 0.8;
kSpin = 1.2;
kSpinR = (kSpin * Math.PI) / 180;
SW = 200;
SH = 200;
kRadiansToDegrees = 57.2957795130823;
kDegreesToRadians = (Math.PI/180);
gTx = 0;
gTy = 1;
guys = [];
MovieClip.prototype.drawCircle = function (x, y) {
var n = 8;
var theta = (45 * kDegreesToRadians);
var cr = (18 / Math.cos(theta / 2));
var _local2 = bA * kDegreesToRadians;
var _local3 = _local2 - (theta / 2);
this.moveTo(x + 18, y);
var _local1 = 0;
while (_local1 < n) {
_local2 = _local2 + theta;
_local3 = _local3 + theta;
var endX = (18 * Math.cos(_local2));
var endY = (18 * Math.sin(_local2));
var cX = (cr * Math.cos(_local3));
var cY = (cr * Math.sin(_local3));
this.curveTo(x + cX, y + cY, x + endX, y + endY);
_local1++;
}
};
MovieClip.prototype.drawSphere2 = function () {
var _local1 = this;
var _local2 = [100, 100, 100];
var ratios = [0, 68, 255];
var colors = [16777215, 15658734, 8947848];
var _local3 = {matrixType:"box", x:-18, y:-36, w:54, h:54, r:0};
_local1.clear();
_local1.beginGradientFill("radial", colors, _local2, ratios, _local3);
_local1.drawCircle(0, 0);
_local1.endFill();
};
createEmptyMovieClip("trommel", 1);
trommel._x = 40 + (SW / 2);
trommel._y = (230 + (SH / 2)) + 58;
var i = 0;
while (i < ballen_aantal) {
var mc = trommel.createEmptyMovieClip("critter_mc" + i, i + 2);
guys.push(mc);
mc._x = -120 + (i * 18);
mc._y = -120 + (i * 18);
mc.vx = (mc.vy = 0);
mc.lx = (mc.ly = 0);
mc.drawSphere2();
mc.onEnterFrame = colliding;
mc.producing = false;
mc.onPress = function () {
if (canProduce) {
this.dragging = true;
this.startDrag(true);
}
};
mc.onRelease = (mc.onReleaseOutside = function () {
var _local1 = this;
_local1.dragging = false;
_local1.stopDrag();
if (canProduce) {
if (_local1.hitTest(tool1)) {
logica(1, _local1);
} else if (_local1.hitTest(tool2)) {
logica(2, _local1);
} else if (_local1.hitTest(tool3)) {
logica(3, _local1);
} else if (_local1.hitTest(tool4)) {
logica(4, _local1);
} else if (_local1.hitTest(tool5)) {
logica(5, _local1);
} else if (_local1.hitTest(tool6)) {
logica(6, _local1);
} else if (_local1.hitTest(tool7)) {
if (level == 2) {
tool3.detail.gotoAndStop("spin");
} else if (level == 4) {
tool6.detail.gotoAndStop("spin");
} else if (level == 6) {
tool3.detail.gotoAndStop("zwembril");
} else if (level == 8) {
tool4.detail.gotoAndStop("spin");
} else if (level == 10) {
tool4.detail.gotoAndStop("zwembril");
} else if (level == 11) {
tool5.detail.gotoAndStop("spin");
} else if (level == 12) {
tool4.detail.gotoAndStop("spin");
} else if (level == 13) {
tool4.detail.gotoAndStop("zwembril");
} else if (level == 14) {
tool3.detail.gotoAndStop("spin");
}
_parent.sound_switch.start();
_local1.removeMovieClip();
produced = false;
balweg();
} else if (_local1.producing) {
_local1._x = prodx;
_local1._y = prody;
}
}
});
i++;
}
trommel.onEnterFrame = function () {
tandwiel.wiel._rotation = tandwiel.wiel._rotation + kSpin;
var _local2 = guys.length - 1;
while (_local2 >= 0) {
var _local1 = guys[_local2];
if ((!_local1.dragging) && (!_local1.producing)) {
var _local3 = Math.sqrt((_local1._x * _local1._x) + (_local1._y * _local1._y));
var ang = Math.atan2(_local1._y, _local1._x);
_local1._x = Math.cos(ang + kSpinR) * _local3;
_local1._y = Math.sin(ang + kSpinR) * _local3;
}
_local2--;
}
};
Symbol 245 MovieClip Frame 2
level = 1;
levelbox = "LEVEL 1";
balproductie.doos.bal.bol = true;
balproductie.doos.bal.bolkleur = "o";
balproductie.doos.bal.tape = true;
balproductie.doos.bal.gotoAndPlay("bol1");
tool1.detail.gotoAndStop("init");
tool2.detail.gotoAndStop("init");
tool3.detail.gotoAndStop("init");
tool4.detail.gotoAndStop("init");
tool5.detail.gotoAndStop("init");
tool6.detail.gotoAndStop("init");
tool7.detail.gotoAndStop("init");
scenario.newtool1 = "tapezwart";
scenario.newtool2 = "verforanje";
scenario.newtool3 = "init";
scenario.newtool4 = "init";
scenario.newtool5 = "init";
scenario.newtool6 = "init";
scenario.newtool7 = "trash";
stop();
Symbol 245 MovieClip Frame 3
level = 2;
levelbox = "LEVEL 2";
balproductie.doos.bal.bol = true;
balproductie.doos.bal.bolkleur = "b";
balproductie.doos.bal.spin = false;
balproductie.doos.bal.bollen = true;
balproductie.doos.bal.bollenkleur = "o";
balproductie.doos.bal.gotoAndPlay("bol2");
scenario.newtool1 = "verfblauw";
scenario.newtool2 = "verforanje";
scenario.newtool3 = "spin";
scenario.newtool4 = "init";
scenario.newtool5 = "init";
scenario.newtool6 = "init";
scenario.newtool7 = "trash";
scenario.gotoAndPlay(1);
stop();
Symbol 245 MovieClip Frame 4
level = 3;
levelbox = "LEVEL 3";
balproductie.doos.bal.bol = true;
balproductie.doos.bal.bolkleur = "g";
balproductie.doos.bal.pompniv = 2;
balproductie.doos.bal.pompdipg1 = false;
balproductie.doos.bal.pompdipg2 = false;
balproductie.doos.bal.pompdipg3 = false;
balproductie.doos.bal.gotoAndPlay("bol3");
scenario.newtool1 = "pomp";
scenario.newtool2 = "verfgroen";
scenario.newtool3 = "init";
scenario.newtool4 = "init";
scenario.newtool5 = "init";
scenario.newtool6 = "init";
scenario.newtool7 = "trash";
scenario.gotoAndPlay(1);
stop();
Symbol 245 MovieClip Frame 5
level = 4;
levelbox = "LEVEL 4";
balproductie.doos.bal.bol = true;
balproductie.doos.bal.bolkleur = "o";
balproductie.doos.bal.spin = false;
balproductie.doos.bal.bollen = true;
balproductie.doos.bal.bollenkleur = "b";
balproductie.doos.bal.gotoAndPlay("bol4");
scenario.newtool1 = "verfvraag";
scenario.newtool2 = "verfvraag";
scenario.newtool3 = "verfvraag";
scenario.newtool4 = "verfvraag";
scenario.newtool5 = "verfvraag";
scenario.newtool6 = "spin";
scenario.newtool7 = "trash";
scenario.gotoAndPlay(1);
stop();
Symbol 245 MovieClip Frame 6
level = 5;
levelbox = "LEVEL 5";
balproductie.doos.bal.bol = true;
balproductie.doos.bal.bolkleur = "g";
balproductie.doos.bal.pompniv = 2;
balproductie.doos.bal.pompdip1 = false;
balproductie.doos.bal.pompdip2 = true;
balproductie.doos.bal.pompdip3 = true;
balproductie.doos.bal.pompdip2kleur = "g";
balproductie.doos.bal.pompdip3kleur = "b";
balproductie.doos.bal.gotoAndPlay("bol5");
scenario.newtool1 = "pomp";
scenario.newtool2 = "verfgroen";
scenario.newtool3 = "verfblauw";
scenario.newtool4 = "init";
scenario.newtool5 = "init";
scenario.newtool6 = "init";
scenario.newtool7 = "trash";
scenario.gotoAndPlay(1);
stop();
Symbol 245 MovieClip Frame 7
level = 6;
levelbox = "LEVEL 6";
balproductie.doos.bal.bol = true;
balproductie.doos.bal.bolkleur = "o";
balproductie.doos.bal.bril = false;
balproductie.doos.bal.ogen = true;
balproductie.doos.bal.ogenkleur = "z";
balproductie.doos.bal.neusniv = 2;
balproductie.doos.bal.neuskleur = "o";
balproductie.doos.bal.neusdip = false;
balproductie.doos.bal.gotoAndPlay("bol6");
scenario.newtool1 = "verforanje";
scenario.newtool2 = "verfzwart";
scenario.newtool3 = "zwembril";
scenario.newtool4 = "stophor";
scenario.newtool5 = "init";
scenario.newtool6 = "init";
scenario.newtool7 = "trash";
scenario.gotoAndPlay(1);
stop();
Symbol 245 MovieClip Frame 8
level = 7;
levelbox = "LEVEL 7";
balproductie.doos.bal.bol = true;
balproductie.doos.bal.bolkleur = "r";
balproductie.doos.bal.gotoAndPlay("bol7");
scenario.newtool1 = "verfcyaan";
scenario.newtool2 = "verfgeel";
scenario.newtool3 = "verfmagenta";
scenario.newtool4 = "verfplus";
scenario.newtool5 = "verfminus";
scenario.newtool6 = "init";
scenario.newtool7 = "trash";
scenario.gotoAndPlay(1);
stop();
Symbol 245 MovieClip Frame 9
level = 8;
levelbox = "LEVEL 8";
balproductie.doos.bal.bol = true;
balproductie.doos.bal.bolkleur = "glas";
balproductie.doos.bal.glaskleur = "b";
balproductie.doos.bal.spin = false;
balproductie.doos.bal.bollen = true;
balproductie.doos.bal.bollenkleur = "o";
balproductie.doos.bal.gotoAndPlay("bol8");
scenario.newtool1 = "verforanje";
scenario.newtool2 = "verfblauw";
scenario.newtool3 = "blowtorch";
scenario.newtool4 = "spin";
scenario.newtool5 = "init";
scenario.newtool6 = "init";
scenario.newtool7 = "trash";
scenario.gotoAndPlay(1);
stop();
Symbol 245 MovieClip Frame 10
level = 9;
levelbox = "LEVEL 9";
balproductie.doos.bal.bol = true;
balproductie.doos.bal.bolkleur = "g";
balproductie.doos.bal.pompniv = 1;
balproductie.doos.bal.pompdipb = true;
balproductie.doos.bal.pompdipbkleur = "o";
balproductie.doos.bal.pompdipa = false;
balproductie.doos.bal.pompdipc = false;
balproductie.doos.bal.pompdip1 = true;
balproductie.doos.bal.pompdip1kleur = "g";
balproductie.doos.bal.pompdip2 = false;
balproductie.doos.bal.pompdip3 = false;
balproductie.doos.bal.gotoAndPlay("bol9");
scenario.newtool1 = "pomp";
scenario.newtool2 = "verforanje";
scenario.newtool3 = "verforanje75";
scenario.newtool4 = "verfgroen";
scenario.newtool5 = "verfgroen75";
scenario.newtool6 = "init";
scenario.newtool7 = "trash";
scenario.gotoAndPlay(1);
stop();
Symbol 245 MovieClip Frame 11
level = 10;
levelbox = "LEVEL10";
balproductie.oorbal = true;
balproductie.doos.bal.bol = true;
balproductie.doos.bal.bolkleur = "y";
balproductie.doos.bal.bril = false;
balproductie.doos.bal.ogen = true;
balproductie.doos.bal.ogenkleur = "b";
balproductie.doos.bal.oorlniv = 2;
balproductie.doos.bal.oorlkleur = "y";
balproductie.doos.bal.oorrniv = 2;
balproductie.doos.bal.oorrkleur = "g";
balproductie.doos.bal.gotoAndPlay("bol10");
scenario.newtool1 = "verfgeel";
scenario.newtool2 = "verfgroen";
scenario.newtool3 = "verfblauw";
scenario.newtool4 = "zwembril";
scenario.newtool5 = "stoplinks";
scenario.newtool6 = "stoprechts";
scenario.newtool7 = "trash";
scenario.gotoAndPlay(1);
stop();
Symbol 245 MovieClip Frame 12
level = 11;
levelbox = "LEVEL11";
balproductie.doos.bal.bol = true;
balproductie.doos.bal.bolkleur = "r";
balproductie.doos.bal.spin = false;
balproductie.doos.bal.bollen = true;
balproductie.doos.bal.bollenkleur = "g";
balproductie.doos.bal.gotoAndPlay("bol11");
scenario.newtool1 = "verfcyaan";
scenario.newtool2 = "verfgeel";
scenario.newtool3 = "verfmagenta";
scenario.newtool4 = "verfplus";
scenario.newtool5 = "spin";
scenario.newtool6 = "init";
scenario.newtool7 = "trash";
scenario.gotoAndPlay(1);
stop();
Symbol 245 MovieClip Frame 13
level = 12;
levelbox = "LEVEL12";
balproductie.doos.bal.bol = true;
balproductie.doos.bal.bolkleur = "m";
balproductie.doos.bal.dip = true;
balproductie.doos.bal.dipkleur = "y";
balproductie.doos.bal.spin = false;
balproductie.doos.bal.bollenboven = true;
balproductie.doos.bal.bollenbovenkleur = "w";
balproductie.doos.bal.bollenonder = true;
balproductie.doos.bal.bollenonderkleur = "o";
balproductie.doos.bal.gotoAndPlay("bol12");
scenario.newtool1 = "verfmagenta";
scenario.newtool2 = "verforanje50";
scenario.newtool3 = "verfgeel50";
scenario.newtool4 = "spin";
scenario.newtool5 = "init";
scenario.newtool6 = "init";
scenario.newtool7 = "trash";
scenario.gotoAndPlay(1);
stop();
Symbol 245 MovieClip Frame 14
level = 13;
levelbox = "LEVEL13";
balproductie.oorbal = true;
balproductie.doos.bal.bol = true;
balproductie.doos.bal.bolkleur = "m";
balproductie.doos.bal.zaag = true;
balproductie.doos.bal.bril = false;
balproductie.doos.bal.ogen = true;
balproductie.doos.bal.ogenkleur = "w";
balproductie.doos.bal.oorlniv = 1;
balproductie.doos.bal.oorlkleur = "w";
balproductie.doos.bal.oorrniv = 1;
balproductie.doos.bal.oorrkleur = "b";
balproductie.doos.bal.gotoAndPlay("bol13");
scenario.newtool1 = "verfmagenta";
scenario.newtool2 = "verfblauw";
scenario.newtool3 = "zaag";
scenario.newtool4 = "zwembril";
scenario.newtool5 = "stoplinks";
scenario.newtool6 = "stoprechts";
scenario.newtool7 = "trash";
scenario.gotoAndPlay(1);
stop();
Symbol 245 MovieClip Frame 15
level = 14;
levelbox = "LEVEL 14";
balproductie.doos.blad.gotoAndStop("donker");
balproductie.doos.bal.bol = true;
balproductie.doos.bal.bolkleur = "b";
balproductie.doos.bal.spin = false;
balproductie.doos.bal.bollen = true;
balproductie.doos.bal.bollenkleur = "glas";
balproductie.doos.bal.glasbollenkleur = "w";
balproductie.doos.bal.lamp = true;
balproductie.doos.bal.gotoAndPlay("bol14");
scenario.newtool1 = "verfblauw";
scenario.newtool2 = "blowtorch";
scenario.newtool3 = "spin";
scenario.newtool4 = "lamp";
scenario.newtool5 = "init";
scenario.newtool6 = "init";
scenario.newtool7 = "trash";
scenario.gotoAndPlay(1);
stop();
Symbol 245 MovieClip Frame 16
_parent.sound_loop.stop();
_parent.sound_introloop.start(0, 9999);
trommel.removeMovieClip();
gravK = 0.8;
dampK = 1;
dampCollision = 1;
ballRadius = 50;
ballWidth = ballRadius * 2;
SH = Stage.height;
SW = Stage.width;
MovieClip.prototype.moveBall = function () {
var _local1 = this;
_local1.vy = _local1.vy + gravK;
if (((_local1._y + ballRadius) + _local1.vy) >= SH) {
_local1.vy = _local1.vy * (-dampCollision);
}
if (((_local1._y - ballRadius) + _local1.vy) < 0) {
_local1.vy = 0;
}
if ((((_local1._x - ballRadius) + _local1.vx) <= 0) || (((_local1._x + ballRadius) + _local1.vx) >= SW)) {
_local1.vx = _local1.vx * (-dampCollision);
}
_local1._x = _local1._x + _local1.vx;
_local1._y = _local1._y + _local1.vy;
};
spot.vx = 2;
spot.vy = 2;
spot.onEnterFrame = spot.moveBall;
stop();
Symbol 250 Button
on (release) {
dropaball();
}
Symbol 251 Button
on (release) {
addaball();
}
Symbol 254 Button
on (release) {
_parent.gotoAndPlay("intro");
}
Symbol 255 MovieClip Frame 1
function colliding() {
var _local1 = this;
if (_local1.dragging) {
_local1.vx = _root._xmouse - _local1.lx;
_local1.vy = _root._ymouse - _local1.ly;
_local1.lx = _root._xmouse;
_local1.ly = _root._ymouse;
} else {
_local1.vx = _local1.vx * kDamp;
_local1.vy = _local1.vy * kDamp;
_local1.vx = _local1.vx + (gTx * kGravWeight);
_local1.vy = _local1.vy + (gTy * kGravWeight);
var fx = 0;
var fy = 0;
var _local2 = guys.length - 1;
while (_local2 >= 0) {
if ((guys[_local2] != _local1) && (_local1.hitTest(guys[_local2]))) {
var dx = ((_local1._x + _local1.vx) - guys[_local2]._x);
var dy = ((_local1._y + _local1.vy) - guys[_local2]._y);
var dist = Math.sqrt((dx * dx) + (dy * dy));
var dmax = ((_local1.radius + guys[_local2].radius) - dist);
if (dmax > 0) {
var _local3 = (dmax * kCollisionDamp) / dist;
fx = fx + (dx * _local3);
fy = fy + (dy * _local3);
}
}
_local2--;
}
_local1.vx = _local1.vx + fx;
_local1.vy = _local1.vy + fy;
var dx = (-(_local1._x + _local1.vx));
var dy = (-(_local1._y + _local1.vy));
var dist = Math.sqrt((dx * dx) + (dy * dy));
var dmax = (dist - ((SW / 2) - _local1.radius));
if (dmax > 0) {
_local1.vx = _local1.vx + ((dx * dmax) / dist);
_local1.vy = _local1.vy + ((dy * dmax) / dist);
}
_local1._x = _local1._x + _local1.vx;
_local1._y = _local1._y + _local1.vy;
}
}
function dropaball() {
guys[ballen_aantal - 1].removeMovieClip();
guys.splice(ballen_aantal - 1, 1);
ballen_aantal--;
}
function addaball() {
var _local2 = this;
var _local1 = trommel.createEmptyMovieClip("critter_mc" + ballen_aantal, ballen_aantal + 2);
guys.push(_local1);
_local1.radius = ballen_radius;
_local1.vx = (_local1.vy = 0);
_local1.drawSphere2();
col = false;
tel = 0;
do {
tel++;
col = false;
_local1._x = random(SW) - (SW / 2);
_local1._y = random(SH) - (SH / 2);
j = 0;
while (j < ballen_aantal) {
if (_local1.hitTest(guys[j])) {
col = true;
}
j++;
}
} while (col && (tel < 100));
if (tel > 0) {
trace("COLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL tel: " + tel);
}
_local1.onEnterFrame = colliding;
_local1.onPress = function () {
this.dragging = true;
this.startDrag(true);
};
_local1.onRelease = (_local1.onReleaseOutside = function () {
this.dragging = false;
this.stopDrag();
});
if (col && (tel == 100)) {
guys[ballen_aantal].removeMovieClip();
guys.splice(ballen_aantal, 1);
} else {
ballen_aantal++;
}
}
ballen_radius = 20;
ballen_aantal = 15;
MovieClip.prototype.setupSlider = function (min, max, val, changeFunc) {
var _local1 = this;
_local1.minv = min;
_local1.maxv = max;
_local1.range = max - min;
_local1.val = val;
_local1.changeFunc = changeFunc;
_local1.knob_mc.useHandCursor = true;
_local1.knob_mc._x = ((_local1.val - _local1.minv) * _local1.bar_mc._width) / _local1.range;
_local1.setTextVal = function () {
var _local1 = this;
if (_local1.range < 1) {
_local1.its_value.text = Math.round(_local1.val * 1000) / 1000;
} else if (_local1.range < 10) {
_local1.its_value.text = Math.round(_local1.val * 100) / 100;
} else if (_local1.range < 50) {
_local1.its_value.text = Math.round(_local1.val * 10) / 10;
} else {
_local1.its_value.text = Math.round(_local1.val);
}
};
_local1.setTextVal();
_local1.changeFunc(_local1.val);
_local1.onMouseMove = function () {
var _local1 = this;
if (!_local1.dragging) {
} else {
x = _local1.knob_mc._x;
var _local2 = x / _local1.bar_mc._width;
_local1.val = _local1.minv + (_local2 * _local1.range);
_local1.setTextVal();
_local1.changeFunc(_local1.val);
}
};
_local1.knob_mc._xscale = (_local1.knob_mc._yscale = 90);
_local1.knob_mc.onRollOver = function () {
this._xscale = (this._yscale = 100);
};
_local1.knob_mc.onRollOut = function () {
this._xscale = (this._yscale = 90);
};
_local1.knob_mc.onPress = function () {
var _local1 = this;
_local1._parent.dragging = true;
_local1.startDrag(false, 0, _local1._y, _local1._parent.bar_mc._width, _local1._y);
};
_local1.knob_mc.onReleaseOutside = (_local1.knob_mc.onRelease = function () {
this._parent.dragging = false;
this.stopDrag();
});
};
kGravWeight = 1;
kDamp = 0.98;
kCollisionDamp = 0.8;
kSpin = 1.2;
kSpinR = (kSpin * Math.PI) / 180;
SW = 304;
SH = 304;
kRadiansToDegrees = 57.2957795130823;
kDegreesToRadians = (Math.PI/180);
gTx = 0;
gTy = 1;
guys = [];
MovieClip.prototype.drawCircle = function (x, y, radius) {
var r = radius;
var n = 8;
var theta = (45 * kDegreesToRadians);
var cr = (radius / Math.cos(theta / 2));
var _local2 = bA * kDegreesToRadians;
var _local3 = _local2 - (theta / 2);
this.moveTo(x + r, y);
var _local1 = 0;
while (_local1 < n) {
_local2 = _local2 + theta;
_local3 = _local3 + theta;
var endX = (r * Math.cos(_local2));
var endY = (r * Math.sin(_local2));
var cX = (cr * Math.cos(_local3));
var cY = (cr * Math.sin(_local3));
this.curveTo(x + cX, y + cY, x + endX, y + endY);
_local1++;
}
};
MovieClip.prototype.drawSphere2 = function () {
var _local1 = this;
var _local2 = [100, 100, 100];
var ratios = [0, 68, 255];
var colors = [16777215, 15658734, 8947848];
var _local3 = {matrixType:"box", x:-_local1.radius, y:(-_local1.radius) * 2, w:_local1.radius * 3, h:_local1.radius * 3, r:0};
_local1.clear();
_local1.beginGradientFill("radial", colors, _local2, ratios, _local3);
_local1.drawCircle(0, 0, _local1.radius);
_local1.endFill();
};
createEmptyMovieClip("trommel", 1);
trommel._x = -248 + (SW / 2);
trommel._y = (-150 + (SH / 2)) + 50;
var i = 0;
while (i < ballen_aantal) {
var mc = trommel.createEmptyMovieClip("critter_mc" + i, i + 2);
guys.push(mc);
mc._x = -120 + (i * ballen_radius);
mc._y = -120 + (i * ballen_radius);
mc.radius = ballen_radius;
mc.vx = (mc.vy = 0);
mc.drawSphere2();
mc.onEnterFrame = colliding;
mc.onPress = function () {
this.dragging = true;
this.startDrag(true);
};
mc.onRelease = (mc.onReleaseOutside = function () {
this.dragging = false;
this.stopDrag();
});
i++;
}
trommel.onEnterFrame = function () {
tandwiel.wiel._rotation = tandwiel.wiel._rotation + kSpin;
var _local2 = guys.length - 1;
while (_local2 >= 0) {
var _local1 = guys[_local2];
if (!_local1.dragging) {
var _local3 = Math.sqrt((_local1._x * _local1._x) + (_local1._y * _local1._y));
var ang = Math.atan2(_local1._y, _local1._x);
_local1._x = Math.cos(ang + kSpinR) * _local3;
_local1._y = Math.sin(ang + kSpinR) * _local3;
}
_local2--;
}
};
slider1_mc.setupSlider(0, 2, kGravWeight, function (t) {
kGravWeight = t;
});
slider2_mc.setupSlider(-8, 8, kSpin, function (t) {
kSpin = t;
kSpinR = (kSpin * Math.PI) / 180;
});
slider3_mc.setupSlider(5, 40, ballen_radius, function (t) {
ballen_radius = t;
});