Frame 1
fscommand ("showmenu", "false");
stop();
Frame 2
stop();
_root.myBall2 = 1;
ctr = 4;
Instance of Symbol 20 MovieClip in Frame 2
on (release) {
stopAllSounds();
_root.gotoAndStop(3);
}
Frame 3
mcShells.myBall = _root.myBall2;
OK2Bet = true;
Instance of Symbol 52 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 115 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 10 MovieClip Frame 1
function setValue(v) {
mv = (v / 100) * 144;
}
var mv = 0;
Instance of Symbol 9 MovieClip in Symbol 10 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.thebar._x < _parent.mv) {
if ((_parent.mv - _parent.thebar._x) >= 2) {
_parent.thebar._x = _parent.thebar._x + 2;
} else {
_parent.thebar._x++;
}
}
}
Symbol 14 MovieClip Frame 4
tb = _parent.getBytesTotal();
lb = _parent.getBytesLoaded();
v = int((lb / tb) * 100);
thebar.setValue(v);
if (lb < tb) {
gotoAndPlay(_currentframe - 1);
} else if (thebar.mv == thebar.thebar._x) {
play();
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 14 MovieClip Frame 87
_parent.gotoAndStop("Main");
Symbol 20 MovieClip Frame 1
stop();
Symbol 20 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 20 MovieClip Frame 235
stop();
_root.shell = 0;
_parent._parent.play();
Symbol 28 Button
on (release) {
getURL ("http://www.funflashgames.com", "_blank");
}
Symbol 32 Button
on (release) {
getURL ("http://www.funflashgames.com/freecontent.html", "_blank");
}
Symbol 43 Button
on (release) {
fscommand ("quit");
}
Symbol 48 MovieClip Frame 148
_parent._parent.mcFind.gotoAndPlay(16);
stop();
Symbol 51 MovieClip Frame 148
_parent._parent.mcFind.gotoAndPlay(16);
stop();
Symbol 52 MovieClip Frame 1
stopped = true;
stop();
Symbol 52 MovieClip Frame 16
gotoAndStop ("main");
Symbol 52 MovieClip Frame 30
gotoAndStop ("main");
Symbol 52 MovieClip Frame 45
gotoAndStop ("main");
Symbol 52 MovieClip Frame 64
gotoAndStop ("main");
Symbol 52 MovieClip Frame 84
gotoAndStop ("main");
Symbol 52 MovieClip Frame 108
gotoAndStop ("main");
Symbol 52 MovieClip Frame 133
gotoAndStop ("main");
Symbol 52 MovieClip Frame 168
gotoAndStop ("main");
Symbol 52 MovieClip Frame 175
_root.ok = false;
Instance of Symbol 20 MovieClip "s2" in Symbol 52 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 20 MovieClip "s1" in Symbol 52 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 20 MovieClip "s3" in Symbol 52 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 20 MovieClip "s4" in Symbol 52 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 48 MovieClip "mcWrong" in Symbol 52 MovieClip Frame 175
onClipEvent (load) {
gotoAndStop (140);
}
Instance of Symbol 51 MovieClip "mcRight" in Symbol 52 MovieClip Frame 175
onClipEvent (load) {
gotoAndStop (139);
}
Symbol 59 Button
on (release) {
if (Number(_parent._parent.mcBet.txtBet.text) > 0) {
if (Number(_parent._parent.mcBet.txtBet.text) <= Number(_parent._parent.mcBet.txtBank.text)) {
_parent._parent.OK2Bet = false;
_parent.gotoAndPlay(16);
} else {
_parent._parent.mcBet.mcOverBet.gotoAndPlay(1);
}
} else {
mcNoBet.gotoAndPlay(1);
}
}
Symbol 62 MovieClip Frame 122
stop();
Instance of Symbol 62 MovieClip "mcNoBet" in Symbol 63 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (122);
}
Symbol 64 MovieClip Frame 15
stop();
Symbol 64 MovieClip Frame 30
stop();
_parent.gotoAndStop(4);
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 10
_root.mcLeaf.play();
Symbol 68 MovieClip Frame 13
_root.mcLeaf2.play();
Symbol 68 MovieClip Frame 17
stop();
Symbol 79 Button
on (release) {
if (_parent.OK2Bet) {
txtBet.text = "0";
}
}
Symbol 88 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 95 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 100 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 105 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 110 MovieClip Frame 122
stop();
Instance of Symbol 110 MovieClip "mcOverBet" in Symbol 111 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (122);
}
Symbol 112 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 104
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 125
stop();
Symbol 115 MovieClip Frame 15
stop();
_parent.mcShells["s" + _root.myBall2].gotoAndPlay(2);
Symbol 115 MovieClip Frame 30
stop();
_parent.gotoAndStop(5);
Symbol 117 MovieClip Frame 15
stop();
Symbol 117 MovieClip Frame 30
stop();
Symbol 122 Button
on (release) {
gotoAndStop (1);
}