Frame 1
fscommand ("showmenu", "false");
stop();
Instance of Symbol 3 MovieClip in Frame 1
onClipEvent (load) {
mcbar._xscale = 0;
totalbytes = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
mcbar._xscale = Math.ceil((_root.getBytesLoaded() / totalbytes) * 100);
if (mcbar._xscale >= 99) {
_root.gotoAndStop(2);
}
}
Frame 2
stop();
_root.myBall2 = 1;
ctr = 4;
Instance of Symbol 11 MovieClip in Frame 2
on (release) {
stopAllSounds();
_root.gotoAndStop(3);
}
Frame 3
mcShells.myBall = _root.myBall2;
OK2Bet = true;
Instance of Symbol 34 MovieClip "mcShells" in Frame 3
onClipEvent (load) {
stopped = true;
myCTR = -1;
w = 0;
}
onClipEvent (enterFrame) {
if ((myCTR <= _parent.ctr) && (myCTR >= 0)) {
if (stopped) {
w = Math.ceil((random(60) + 1) / 10);
if (w == 1) {
if (myBall == 1) {
myBall = 2;
} else if (myBall == 2) {
myBall = 1;
}
} else if (w == 2) {
if (myBall == 3) {
myBall = 4;
} else if (myBall == 4) {
myBall = 3;
}
} else if (w == 3) {
if (myBall == 3) {
myBall = 2;
} else if (myBall == 2) {
myBall = 3;
}
} else if (w == 4) {
if (myBall == 3) {
myBall = 1;
} else if (myBall == 1) {
myBall = 3;
}
} else if (w == 5) {
if (myBall == 2) {
myBall = 4;
} else if (myBall == 4) {
myBall = 2;
}
} else if (w == 6) {
w = random(3) + 6;
}
gotoAndPlay("f" + String(w));
myCTR++;
stopped = false;
}
} else if ((_parent.ctr > 4) && (myCTR > _parent.ctr)) {
if (_parent._currentframe != 6) {
if (w == 1) {
if (myBall == 1) {
myBall = 2;
} else if (myBall == 2) {
myBall = 1;
}
} else if (w == 2) {
if (myBall == 3) {
myBall = 4;
} else if (myBall == 4) {
myBall = 3;
}
} else if (w == 3) {
if (myBall == 3) {
myBall = 2;
} else if (myBall == 2) {
myBall = 3;
}
} else if (w == 4) {
if (myBall == 3) {
myBall = 1;
} else if (myBall == 1) {
myBall = 3;
}
} else if (w == 5) {
if (myBall == 2) {
myBall = 4;
} else if (myBall == 4) {
myBall = 2;
}
}
_parent.gotoAndStop(6);
this.gotoAndStop("guess");
}
}
}
Instance of Symbol 84 MovieClip "mcKeep" in Frame 4
onClipEvent (enterFrame) {
if (_currentframe == 15) {
if (_parent.mcShells.s1._currentframe == 55) {
_parent.mcShells.s1.play();
}
}
}
Frame 5
ctr++;
mcBanner.mcBanner.txtLevel.text = "LEVEL: " + String(ctr - 4);
mcShells.myCTR = 0;
Frame 8
if (Number(mcBet.txtBank.text) == 0) {
gotoAndStop ("GameOver");
} else {
gotoAndStop (3);
}
Frame 9
mcBanner.play();
Symbol 11 MovieClip Frame 1
stop();
Symbol 11 MovieClip Frame 130
_parent._parent.mcKeep.gotoAndPlay(16);
if (_parent._parent._currentframe == 6) {
if (_parent.myBall == _root.shell) {
_root.myBall2 = _root.shell;
_root.shell = 0;
_parent._parent.play();
} else {
_root.myBall2 = _parent.myBall;
_parent["s" + _parent.myBall].gotoAndPlay("winner");
}
}
stop();
Symbol 11 MovieClip Frame 235
stop();
_root.shell = 0;
_parent._parent.play();
Symbol 25 Button
on (release) {
fscommand ("quit");
}
Symbol 30 MovieClip Frame 148
_parent._parent.mcFind.gotoAndPlay(16);
stop();
Symbol 33 MovieClip Frame 148
_parent._parent.mcFind.gotoAndPlay(16);
stop();
Symbol 34 MovieClip Frame 1
stopped = true;
stop();
Symbol 34 MovieClip Frame 16
gotoAndStop ("main");
Symbol 34 MovieClip Frame 30
gotoAndStop ("main");
Symbol 34 MovieClip Frame 45
gotoAndStop ("main");
Symbol 34 MovieClip Frame 64
gotoAndStop ("main");
Symbol 34 MovieClip Frame 84
gotoAndStop ("main");
Symbol 34 MovieClip Frame 108
gotoAndStop ("main");
Symbol 34 MovieClip Frame 133
gotoAndStop ("main");
Symbol 34 MovieClip Frame 168
gotoAndStop ("main");
Symbol 34 MovieClip Frame 175
_root.ok = false;
Instance of Symbol 11 MovieClip "s2" in Symbol 34 MovieClip Frame 175
on (press) {
if (!_root.ok) {
_root.ok = true;
if (_parent.myBall != 2) {
mcBall._visible = false;
play();
_parent.mcWrong.gotoAndPlay(1);
_parent.right = false;
_root.ctr--;
_parent._parent.mcBet.txtBank.text = Number(_parent._parent.mcBet.txtBank.text) - Number(_parent._parent.mcBet.txtBet.text);
_parent._parent.mcBet.txtBet.text = 0;
} else {
mcBall._visible = true;
play();
_parent.mcRight.gotoAndPlay(1);
_parent.right = true;
_parent._parent.mcBet.txtBank.text = Number(_parent._parent.mcBet.txtBank.text) + Number(_parent._parent.mcBet.txtBet.text);
_parent._parent.mcBet.txtBet.text = 0;
}
_root.shell = 2;
}
}
Instance of Symbol 11 MovieClip "s1" in Symbol 34 MovieClip Frame 175
on (press) {
if (!_root.ok) {
_root.ok = true;
if (_parent.myBall != 1) {
mcBall._visible = false;
play();
_parent.mcWrong.gotoAndPlay(1);
_root.ctr--;
_parent.right = false;
_parent._parent.mcBet.txtBank.text = Number(_parent._parent.mcBet.txtBank.text) - Number(_parent._parent.mcBet.txtBet.text);
_parent._parent.mcBet.txtBet.text = 0;
} else {
mcBall._visible = true;
play();
_parent.mcRight.gotoAndPlay(1);
_parent.right = true;
_parent._parent.mcBet.txtBank.text = Number(_parent._parent.mcBet.txtBank.text) + Number(_parent._parent.mcBet.txtBet.text);
_parent._parent.mcBet.txtBet.text = 0;
}
_root.shell = 1;
}
}
Instance of Symbol 11 MovieClip "s3" in Symbol 34 MovieClip Frame 175
on (press) {
if (!_root.ok) {
_root.ok = true;
if (_parent.myBall != 3) {
mcBall._visible = false;
play();
_parent.mcWrong.gotoAndPlay(1);
_root.ctr--;
_parent.right = false;
_parent._parent.mcBet.txtBank.text = Number(_parent._parent.mcBet.txtBank.text) - Number(_parent._parent.mcBet.txtBet.text);
_parent._parent.mcBet.txtBet.text = 0;
} else {
mcBall._visible = true;
play();
_parent.mcRight.gotoAndPlay(1);
_parent.right = true;
_parent._parent.mcBet.txtBank.text = Number(_parent._parent.mcBet.txtBank.text) + Number(_parent._parent.mcBet.txtBet.text);
_parent._parent.mcBet.txtBet.text = 0;
}
_root.shell = 3;
}
}
Instance of Symbol 11 MovieClip "s4" in Symbol 34 MovieClip Frame 175
on (press) {
if (!_root.ok) {
_root.ok = true;
if (_parent.myBall != 4) {
mcBall._visible = false;
play();
_parent.mcWrong.gotoAndPlay(1);
_parent.right = false;
_root.ctr--;
_parent._parent.mcBet.txtBank.text = Number(_parent._parent.mcBet.txtBank.text) - Number(_parent._parent.mcBet.txtBet.text);
_parent._parent.mcBet.txtBet.text = 0;
} else {
mcBall._visible = true;
play();
_parent.mcRight.gotoAndPlay(1);
_parent.right = true;
_parent._parent.mcBet.txtBank.text = Number(_parent._parent.mcBet.txtBank.text) + Number(_parent._parent.mcBet.txtBet.text);
_parent._parent.mcBet.txtBet.text = 0;
}
_root.shell = 4;
}
}
Instance of Symbol 30 MovieClip "mcWrong" in Symbol 34 MovieClip Frame 175
onClipEvent (load) {
gotoAndStop (140);
}
Instance of Symbol 33 MovieClip "mcRight" in Symbol 34 MovieClip Frame 175
onClipEvent (load) {
gotoAndStop (139);
}
Symbol 40 Button
on (release) {
if (Number(_parent._parent.mcBet.txtBet.text) > 0) {
_parent._parent.OK2Bet = false;
_parent.gotoAndPlay(16);
} else {
mcNoBet.gotoAndPlay(1);
}
}
Symbol 43 MovieClip Frame 122
stop();
Instance of Symbol 43 MovieClip "mcNoBet" in Symbol 44 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (122);
}
Symbol 45 MovieClip Frame 15
stop();
Symbol 45 MovieClip Frame 30
stop();
_parent.gotoAndStop(4);
Symbol 49 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 10
_root.mcLeaf.play();
Symbol 49 MovieClip Frame 13
_root.mcLeaf2.play();
Symbol 49 MovieClip Frame 17
stop();
Symbol 59 Button
on (release) {
if (_parent.OK2Bet) {
txtBet.text = "0";
}
}
Symbol 66 Button
on (release) {
if (_parent.OK2Bet) {
if ((Number(txtBet.text) + 500) > Number(txtBank.text)) {
mcOverBet.gotoAndPlay(1);
} else {
txtBet.text = Number(txtBet.text) + 500;
}
}
}
Symbol 70 Button
on (release) {
if (_parent.OK2Bet) {
if ((Number(txtBet.text) + 50000) > Number(txtBank.text)) {
mcOverBet.gotoAndPlay(1);
} else {
txtBet.text = Number(txtBet.text) + 50000;
}
}
}
Symbol 72 Button
on (release) {
if (_parent.OK2Bet) {
if ((Number(txtBet.text) + 5000) > Number(txtBank.text)) {
mcOverBet.gotoAndPlay(1);
} else {
txtBet.text = Number(txtBet.text) + 5000;
}
}
}
Symbol 74 Button
on (release) {
if (_parent.OK2Bet) {
if ((Number(txtBet.text) + 50) > Number(txtBank.text)) {
mcOverBet.gotoAndPlay(1);
} else {
txtBet.text = Number(txtBet.text) + 50;
}
}
}
Symbol 79 MovieClip Frame 122
stop();
Instance of Symbol 79 MovieClip "mcOverBet" in Symbol 80 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (122);
}
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 104
stop();
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 125
stop();
Symbol 84 MovieClip Frame 15
stop();
_parent.mcShells["s" + _root.myBall2].gotoAndPlay(2);
Symbol 84 MovieClip Frame 30
stop();
_parent.gotoAndStop(5);
Symbol 86 MovieClip Frame 15
stop();
Symbol 86 MovieClip Frame 30
stop();
Symbol 91 Button
on (release) {
gotoAndStop (1);
}