Frame 1
fscommand ("showmenu", "false");
stop();
_root.myBall2 = 1;
ctr = 4;
Instance of Symbol 6 MovieClip in Frame 1
on (release) {
stopAllSounds();
_root.gotoAndStop(2);
}
Frame 2
mcShells.myBall = _root.myBall2;
OK2Bet = true;
Instance of Symbol 38 MovieClip "mcShells" in Frame 2
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 != 5) {
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(5);
gotoAndStop ("guess");
}
}
}
Instance of Symbol 108 MovieClip "mcKeep" in Frame 3
onClipEvent (enterFrame) {
if (_currentframe == 15) {
if (_parent.mcShells.s1._currentframe == 55) {
_parent.mcShells.s1.play();
}
}
}
Frame 4
ctr++;
mcBanner.mcBanner.txtLevel.text = "LEVEL: " + String(ctr - 4);
mcShells.myCTR = 0;
Frame 7
if (Number(mcBet.txtBank.text) == 0) {
gotoAndStop ("GameOver");
} else {
gotoAndStop (2);
}
Frame 8
mcBanner.play();
Symbol 6 MovieClip Frame 1
stop();
Symbol 6 MovieClip Frame 130
_parent._parent.mcKeep.gotoAndPlay(16);
if (_parent._parent._currentframe == 5) {
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 6 MovieClip Frame 235
stop();
_root.shell = 0;
_parent._parent.play();
Symbol 21 Button
on (release) {
fscommand ("quit");
}
Symbol 30 MovieClip Frame 148
_parent._parent.mcFind.gotoAndPlay(16);
stop();
Symbol 37 MovieClip Frame 148
_parent._parent.mcFind.gotoAndPlay(16);
stop();
Symbol 38 MovieClip Frame 1
stopped = true;
stop();
Symbol 38 MovieClip Frame 16
gotoAndStop ("main");
Symbol 38 MovieClip Frame 30
gotoAndStop ("main");
Symbol 38 MovieClip Frame 45
gotoAndStop ("main");
Symbol 38 MovieClip Frame 64
gotoAndStop ("main");
Symbol 38 MovieClip Frame 84
gotoAndStop ("main");
Symbol 38 MovieClip Frame 108
gotoAndStop ("main");
Symbol 38 MovieClip Frame 133
gotoAndStop ("main");
Symbol 38 MovieClip Frame 168
gotoAndStop ("main");
Symbol 38 MovieClip Frame 175
_root.ok = false;
Instance of Symbol 6 MovieClip "s2" in Symbol 38 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 6 MovieClip "s1" in Symbol 38 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 6 MovieClip "s3" in Symbol 38 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 6 MovieClip "s4" in Symbol 38 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 38 MovieClip Frame 175
onClipEvent (load) {
gotoAndStop (140);
}
Instance of Symbol 37 MovieClip "mcRight" in Symbol 38 MovieClip Frame 175
onClipEvent (load) {
gotoAndStop (139);
}
Symbol 45 Button
on (release) {
if (Number(_parent._parent.mcBet.txtBet.text) > 0) {
_parent._parent.OK2Bet = false;
_parent.gotoAndPlay(16);
} else {
mcNoBet.gotoAndPlay(1);
}
}
Symbol 52 MovieClip Frame 122
stop();
Instance of Symbol 52 MovieClip "mcNoBet" in Symbol 53 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (122);
}
Symbol 54 MovieClip Frame 15
stop();
Symbol 54 MovieClip Frame 30
stop();
_parent.gotoAndStop(3);
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 10
_root.mcLeaf.play();
Symbol 58 MovieClip Frame 13
_root.mcLeaf2.play();
Symbol 58 MovieClip Frame 17
stop();
Symbol 68 Button
on (release) {
if (_parent.OK2Bet) {
txtBet.text = "0";
}
}
Symbol 77 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 84 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 89 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 94 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 103 MovieClip Frame 122
stop();
Instance of Symbol 103 MovieClip "mcOverBet" in Symbol 104 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (122);
}
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 104
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 125
stop();
Symbol 108 MovieClip Frame 15
stop();
_parent.mcShells["s" + _root.myBall2].gotoAndPlay(2);
Symbol 108 MovieClip Frame 30
stop();
_parent.gotoAndStop(4);
Symbol 110 MovieClip Frame 15
stop();
Symbol 110 MovieClip Frame 30
stop();
Symbol 115 Button
on (release) {
gotoAndStop (1);
}