Frame 1
_root.clickTag("\u00A0naruto.games.clone");
stop();
this.onEnterFrame = function () {
var _local1 = this;
if ((_local1.getBytesLoaded() == _local1.getBytesTotal()) && (_local1.getBytesTotal() > 5)) {
play();
delete _local1.onEnterFrame;
}
bar._xscale = (_local1.getBytesLoaded() / _local1.getBytesTotal()) * 100;
};
Frame 2
function correctGuess(num) {
var _local2 = num;
var _local3 = this;
play2Score.powerbar._xscale = play2Score.powerbar._xscale - scoreSubtract;
var _local1 = 1;
while (_local1 <= 4) {
if (_local1 != _local2) {
_local3.mcShells["s" + _local1].gotoAndPlay("loser");
}
_local1++;
}
}
fscommand ("showmenu", "false");
_root.myBall2 = 1;
ctr = 10;
scoreSubtract = 10;
playerSubtract = 10;
myFrame = 34;
Instance of Symbol 25 MovieClip in Frame 8
on (release) {
_parent.play();
}
Frame 15
stop();
Instance of Symbol 25 MovieClip in Frame 15
on (release) {
_parent.play();
}
Instance of Symbol 25 MovieClip in Frame 16
/* no clip actions */
Instance of Symbol 25 MovieClip in Frame 23
/* no clip actions */
Frame 31
mcShells.myBall = _root.myBall2;
OK2Bet = true;
var i = 1;
while (i <= 4) {
if (i != _root.myBall2) {
this.mcShells["s" + i]._visible = false;
}
i++;
}
stop();
Instance of Symbol 85 MovieClip "mcShells" in Frame 31
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 != _parent.myFrame) {
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("frame5");
gotoAndStop ("guess");
}
}
}
Instance of Symbol 130 MovieClip "mcKeep" in Frame 32
onClipEvent (enterFrame) {
if (_currentframe == 15) {
if (_parent.mcShells.s1._currentframe == 55) {
_parent.mcShells.s1.play();
}
}
}
Frame 33
ctr++;
mcShells.myCTR = 0;
Frame 35
var i = 1;
while (i <= 4) {
if (i != _root.myBall2) {
this["a" + i]._visible = false;
this["b" + i]._visible = false;
}
i++;
}
Frame 36
if (play1Score.powerbar._xscale <= 0) {
gotoAndStop ("GameOver");
} else if (play2Score.powerbar._xscale <= 0) {
gotoAndStop ("won");
} else {
gotoAndStop ("frame2");
}
Frame 37
Symbol 15 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 2
gotoAndPlay(_root.weaponChoice);
Symbol 49 MovieClip Frame 16
stop();
Symbol 49 MovieClip Frame 37
stop();
Symbol 49 MovieClip Frame 57
stop();
Symbol 49 MovieClip Frame 77
stop();
Symbol 78 MovieClip Frame 1
stop();
Symbol 78 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 78 MovieClip Frame 192
_root.bg.gotoAndPlay("shake");
_root.white.gotoAndPlay("shake");
_root.play1Score.powerbar._xscale = _root.play1Score.powerbar._xscale - _root.playerSubtract;
Symbol 78 MovieClip Frame 262
stop();
_root.shell = 0;
_parent._parent.play();
Symbol 78 MovieClip Frame 412
_parent._parent.mcKeep.gotoAndPlay(16);
if (_parent._parent._currentframe == _parent._parent.myFrame) {
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 78 MovieClip Frame 440
stop();
Symbol 78 MovieClip Frame 587
_parent._parent.mcKeep.gotoAndPlay(16);
if (_parent._parent._currentframe == _parent._parent.myFrame) {
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 81 MovieClip Frame 148
_parent._parent.mcFind.gotoAndPlay(16);
stop();
Symbol 84 MovieClip Frame 148
_parent._parent.mcFind.gotoAndPlay(16);
stop();
Symbol 85 MovieClip Frame 1
stopped = true;
stop();
Symbol 85 MovieClip Frame 16
gotoAndStop ("main");
Symbol 85 MovieClip Frame 30
gotoAndStop ("main");
Symbol 85 MovieClip Frame 45
gotoAndStop ("main");
Symbol 85 MovieClip Frame 64
gotoAndStop ("main");
Symbol 85 MovieClip Frame 84
gotoAndStop ("main");
Symbol 85 MovieClip Frame 108
gotoAndStop ("main");
Symbol 85 MovieClip Frame 133
gotoAndStop ("main");
Symbol 85 MovieClip Frame 168
gotoAndStop ("main");
Symbol 85 MovieClip Frame 175
_root.ok = false;
Instance of Symbol 78 MovieClip "s2" in Symbol 85 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--;
gotoAndPlay ("loser");
} else {
mcBall._visible = true;
gotoAndPlay ("hit");
_parent.mcRight.gotoAndPlay(1);
_parent.right = true;
_root.correctGuess(2);
}
_root.shell = 2;
weaponMC.play();
}
}
Instance of Symbol 78 MovieClip "s1" in Symbol 85 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;
gotoAndPlay ("loser");
} else {
mcBall._visible = true;
gotoAndPlay ("hit");
_parent.mcRight.gotoAndPlay(1);
_parent.right = true;
_root.correctGuess(1);
}
_root.shell = 1;
weaponMC.play();
}
}
Instance of Symbol 78 MovieClip "s3" in Symbol 85 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;
gotoAndPlay ("loser");
} else {
mcBall._visible = true;
gotoAndPlay ("hit");
_parent.mcRight.gotoAndPlay(1);
_parent.right = true;
_root.correctGuess(3);
}
_root.shell = 3;
weaponMC.play();
}
}
Instance of Symbol 78 MovieClip "s4" in Symbol 85 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--;
gotoAndPlay ("loser");
} else {
mcBall._visible = true;
gotoAndPlay ("hit");
_parent.mcRight.gotoAndPlay(1);
_parent.right = true;
_root.correctGuess(4);
}
_root.shell = 4;
weaponMC.play();
}
}
Instance of Symbol 81 MovieClip "mcWrong" in Symbol 85 MovieClip Frame 175
onClipEvent (load) {
gotoAndStop (140);
}
Instance of Symbol 84 MovieClip "mcRight" in Symbol 85 MovieClip Frame 175
onClipEvent (load) {
gotoAndStop (139);
}
Symbol 89 Button
on (release) {
if ((((_parent._parent.mcBet.txtBet.text != "") && (_parent._parent.mcBet.txtBet.text != null)) && (_parent._parent.mcBet.txtBet.text != undefined)) && (_parent._parent.mcBet.txtBet.text != "CHOOSE A WEAPON")) {
_parent._parent.OK2Bet = false;
_parent._parent.betActive = 0;
_parent._parent.mcBet.gotoAndStop(2);
_parent.gotoAndPlay(16);
} else {
mcNoBet.gotoAndPlay(1);
}
}
Symbol 92 MovieClip Frame 122
stop();
Instance of Symbol 92 MovieClip "mcNoBet" in Symbol 93 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (122);
}
Symbol 94 MovieClip Frame 15
stop();
_parent.mcBet.gotoAndStop(1);
Symbol 94 MovieClip Frame 30
stop();
_parent.gotoAndStop("frame3");
Symbol 101 Button
on (release) {
if (_parent.OK2Bet) {
txtBet.text = "SHURIKEN ATTACK!";
_root.weaponChoice = "shuriken";
_root.scoreSubtract = 10;
_root.DESIREDFRAMERATE = 40;
_root.ctr = 10;
}
}
on (rollOver) {
shine1.gotoAndPlay(2);
}
Symbol 103 Button
on (release) {
if (_parent.OK2Bet) {
txtBet.text = "DEMON WIND SHURIKEN ATTACK!";
_root.weaponChoice = "fuuma";
_root.scoreSubtract = 25;
_root.DESIREDFRAMERATE = 70;
_root.ctr = 30;
}
}
on (rollOver) {
shine4.gotoAndPlay(2);
}
Symbol 105 Button
on (release) {
if (_parent.OK2Bet) {
txtBet.text = "SENBON ATTACK!";
_root.weaponChoice = "needles";
_root.scoreSubtract = 20;
_root.DESIREDFRAMERATE = 60;
_root.ctr = 20;
}
}
on (rollOver) {
shine3.gotoAndPlay(2);
}
Symbol 107 Button
on (release) {
if (_parent.OK2Bet) {
txtBet.text = "KUNAI ATTACK!";
_root.weaponChoice = "kunai";
_root.scoreSubtract = 15;
_root.DESIREDFRAMERATE = 50;
_root.ctr = 15;
}
}
on (rollOver) {
shine2.gotoAndPlay(2);
}
Symbol 112 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 15
stop();
_parent.mcShells["s" + _root.myBall2].gotoAndPlay(2);
var i = 1;
while (i <= 4) {
if (i != _root.myBall2) {
_parent.mcShells["s" + i]._visible = true;
_parent.mcShells["s" + i].gotoAndPlay("appear");
}
i++;
}
Symbol 130 MovieClip Frame 30
stop();
_parent.gotoAndStop("frame4");
Symbol 132 MovieClip Frame 15
stop();
Symbol 132 MovieClip Frame 30
stop();
Symbol 137 Button
on (release) {
gotoAndStop ("frame1");
}