Frame 1
fscommand ("showmenu", "false");
stop();
_root.myBall2 = 1;
ctr = 4;
Frame 2
mcShells.myBall = _root.myBall2;
OK2Bet = true;
Instance of Symbol 45 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 96 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 27 MovieClip Frame 1
stop();
Symbol 27 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 27 MovieClip Frame 235
stop();
_root.shell = 0;
_parent._parent.play();
Symbol 29 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 29 MovieClip Frame 2
gotoAndPlay (1);
Instance of Symbol 27 MovieClip in Symbol 29 MovieClip Frame 3
on (release) {
stopAllSounds();
_root.gotoAndStop(2);
}
Symbol 33 Button
on (release) {
fscommand ("quit");
}
Symbol 36 Button
on (release) {
getURL ("http://www.aprime.tk", "_top");
}
Symbol 41 MovieClip Frame 148
_parent._parent.mcFind.gotoAndPlay(16);
stop();
Symbol 44 MovieClip Frame 148
_parent._parent.mcFind.gotoAndPlay(16);
stop();
Symbol 45 MovieClip Frame 1
stopped = true;
stop();
Symbol 45 MovieClip Frame 16
gotoAndStop ("main");
Symbol 45 MovieClip Frame 30
gotoAndStop ("main");
Symbol 45 MovieClip Frame 45
gotoAndStop ("main");
Symbol 45 MovieClip Frame 64
gotoAndStop ("main");
Symbol 45 MovieClip Frame 84
gotoAndStop ("main");
Symbol 45 MovieClip Frame 108
gotoAndStop ("main");
Symbol 45 MovieClip Frame 133
gotoAndStop ("main");
Symbol 45 MovieClip Frame 168
gotoAndStop ("main");
Symbol 45 MovieClip Frame 175
_root.ok = false;
Instance of Symbol 27 MovieClip "s2" in Symbol 45 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 27 MovieClip "s1" in Symbol 45 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 27 MovieClip "s3" in Symbol 45 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 27 MovieClip "s4" in Symbol 45 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 41 MovieClip "mcWrong" in Symbol 45 MovieClip Frame 175
onClipEvent (load) {
gotoAndStop (140);
}
Instance of Symbol 44 MovieClip "mcRight" in Symbol 45 MovieClip Frame 175
onClipEvent (load) {
gotoAndStop (139);
}
Symbol 51 Button
on (release) {
if (Number(_parent._parent.mcBet.txtBet.text) > 0) {
_parent._parent.OK2Bet = false;
_parent.gotoAndPlay(16);
} else {
mcNoBet.gotoAndPlay(1);
}
}
Symbol 54 MovieClip Frame 122
stop();
Instance of Symbol 54 MovieClip "mcNoBet" in Symbol 55 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (122);
}
Symbol 56 MovieClip Frame 15
stop();
Symbol 56 MovieClip Frame 30
stop();
_parent.gotoAndStop(3);
Symbol 59 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 10
_root.mcLeaf.play();
Symbol 59 MovieClip Frame 13
_root.mcLeaf2.play();
Symbol 59 MovieClip Frame 17
stop();
Symbol 69 Button
on (release) {
if (_parent.OK2Bet) {
txtBet.text = "0";
}
}
Symbol 76 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 78 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 80 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 83 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 88 MovieClip Frame 122
stop();
Symbol 90 Button
on (release) {
if (_parent.OK2Bet) {
if ((Number(txtBet.text) + 500000) > Number(txtBank.text)) {
mcOverBet.gotoAndPlay(1);
} else {
txtBet.text = Number(txtBet.text) + 500000;
}
}
}
Symbol 92 Button
on (release) {
if (_parent.OK2Bet) {
if ((Number(txtBet.text) + 5000000) > Number(txtBank.text)) {
mcOverBet.gotoAndPlay(1);
} else {
txtBet.text = Number(txtBet.text) + 5000000;
}
}
}
Instance of Symbol 88 MovieClip "mcOverBet" in Symbol 93 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (122);
}
Symbol 96 MovieClip Frame 15
stop();
_parent.mcShells["s" + _root.myBall2].gotoAndPlay(2);
Symbol 96 MovieClip Frame 30
stop();
_parent.gotoAndStop(4);
Symbol 98 MovieClip Frame 15
stop();
Symbol 98 MovieClip Frame 30
stop();
Symbol 103 Button
on (release) {
gotoAndStop (1);
}