Frame 1
fscommand ("fullscreen", "true");
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
Frame 11
stop();
Instance of Symbol 3 MovieClip "progressbar" in Frame 11
onClipEvent (load) {
totalFileSize = _root.getBytesTotal();
startTime = getTimer();
startBytes = _root.getBytesLoaded();
this._xscale = 0;
}
onClipEvent (enterFrame) {
bytesLoaded = _root.getBytesLoaded();
amountLoaded = bytesLoaded / totalFileSize;
percentLoaded = int(100 * amountLoaded);
this._xscale = percentLoaded;
timeSoFar = getTimer() - startTime;
speed = bytesLoaded / timeSoFar;
bytesLeft = totalFileSize - bytesLoaded;
timeLeft = (bytesLeft / 1000) * (speed / 1000);
speed = int(10 * speed) / 10;
_root.bytesMessage = ((int(bytesLoaded / 1000) + "kb/") + int(totalFileSize / 1000)) + "kb";
_root.speedMessage = speed + "k/sec";
_root.timeMessage = int(timeLeft) + " seconds remaining";
if (amountLoaded >= 1) {
_root.gotoAndStop("complete");
}
}
Frame 12
stop();
Frame 93
credits = 50;
BetOne = 1;
BetMax = BetOne * 2;
BetMinus = BetOne--;
BetPlus = BetOne++;
Win = 0;
_root.coinMC.gotoAndStop(2);
Frame 94
function initGame() {
i = 1;
while (i < 4) {
_root["symbol" + i].gotoAndStop(randomSymbol());
i++;
}
}
function pull() {
credits = credits - BetOne;
if (credits < 0) {
_root.gotoAndStop("NoCoins");
}
i = 1;
while (i < 4) {
_root["spin" + i].numTimes = 8 - (i * 2);
_root["spin" + i].gotoAndPlay(2);
_root.SpinSound.gotoAndStop(2);
i++;
}
i = 1;
while (i < 4) {
_root["symbol" + i].gotoAndStop(randomSymbol());
i++;
}
}
function randomSymbol() {
chances = [15, 14, 14, 12, 9, 7, 6];
totalChances = 0;
j = 0;
while (j < chances.length) {
totalChances = totalChances + chances[j];
j++;
}
r = int(Math.random() * totalChances);
j = 0;
while (j < chances.length) {
if (r < chances[j]) {
return(j + 1);
}
r = r - chances[j];
j++;
}
}
function spinDone(name) {
if (name == "spin1") {
_root.Spin.gotoAndStop(1);
_root.setBetOne.gotoAndStop(1);
_root.BetMaximum.gotoAndStop(1);
_root.SpinSound.gotoAndStop(1);
win = calcWin();
credits = credits + win;
}
}
function calcWin() {
numLogos = 0;
i = 1;
while (i < 4) {
if (_root["symbol" + i]._currentframe == 2) {
numLogos++;
}
i++;
}
numHooks = 0;
i = 1;
while (i < 4) {
if (_root["symbol" + i]._currentframe == 1) {
numHooks++;
}
i++;
}
firstSymbol = _root.symbol1._currentframe;
threeOfAKind = true;
i = 2;
while (i < 4) {
if (_root["symbol" + i]._currentframe != firstSymbol) {
threeOfAKind = false;
}
i++;
}
if (threeOfAKind) {
if ((firstSymbol == 1) && (_root.coinMC._currentframe == 2)) {
win = 6;
_root.coinMC.WinBox.gotoAndStop(2);
} else if ((firstSymbol == 1) && (_root.coinMC._currentframe == 3)) {
win = 8;
_root.coinMC.WinBox.gotoAndStop(3);
} else if ((firstSymbol == 2) && (_root.coinMC._currentframe == 2)) {
win = 15;
_root.coinMC.WinBox.gotoAndStop(4);
} else if ((firstSymbol == 2) && (_root.coinMC._currentframe == 3)) {
win = 20;
_root.coinMC.WinBox.gotoAndStop(5);
} else if ((firstSymbol == 3) && (_root.coinMC._currentframe == 2)) {
win = 5;
_root.coinMC.WinBox.gotoAndStop(6);
} else if ((firstSymbol == 3) && (_root.coinMC._currentframe == 3)) {
win = 10;
_root.coinMC.WinBox.gotoAndStop(7);
} else if ((firstSymbol == 4) && (_root.coinMC._currentframe == 2)) {
win = 10;
_root.coinMC.WinBox.gotoAndStop(8);
} else if ((firstSymbol == 4) && (_root.coinMC._currentframe == 3)) {
win = 20;
_root.coinMC.WinBox.gotoAndStop(9);
} else if ((firstSymbol == 5) && (_root.coinMC._currentframe == 2)) {
win = 20;
_root.coinMC.WinBox.gotoAndStop(10);
} else if ((firstSymbol == 5) && (_root.coinMC._currentframe == 3)) {
win = 40;
_root.coinMC.WinBox.gotoAndStop(11);
} else if ((firstSymbol == 6) && (_root.coinMC._currentframe == 2)) {
win = 50;
_root.coinMC.WinBox.gotoAndStop(12);
} else if ((firstSymbol == 6) && (_root.coinMC._currentframe == 3)) {
win = 100;
_root.coinMC.WinBox.gotoAndStop(13);
} else if ((firstSymbol == 7) && (_root.coinMC._currentframe == 2)) {
win = 800;
_root.coinMC.WinBox.gotoAndStop(14);
} else if ((firstSymbol == 7) && (_root.coinMC._currentframe == 3)) {
win = 1600;
_root.coinMC.WinBox.gotoAndStop(15);
}
} else if ((numLogos == 2) && (_root.coinMC._currentframe == 2)) {
win = 5;
_root.coinMC.WinBox.gotoAndStop(4);
} else if ((numLogos == 2) && (_root.coinMC._currentframe == 3)) {
win = 10;
_root.coinMC.WinBox.gotoAndStop(5);
} else if ((numHooks == 2) && (_root.coinMC._currentframe == 2)) {
win = 2;
_root.coinMC.WinBox.gotoAndStop(2);
} else if ((numHooks == 2) && (_root.coinMC._currentframe == 3)) {
win = 4;
_root.coinMC.WinBox.gotoAndStop(3);
} else {
win = 0;
}
return(win);
}
initGame();
stop();
Frame 102
stop();
Frame 103
stop();
Symbol 15 Button
on (release) {
gotoAndPlay (13);
}
Symbol 21 MovieClip Frame 44
stop();
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 2
play();
Symbol 32 Button
on (release) {
getURL ("http://www.flashradium.com", "_blank");
}
Symbol 33 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 2
_root.B_Image.GoldDrop.gotoAndPlay(2);
Symbol 37 MovieClip Frame 30
_root.B_Image.GoldDrop.gotoAndStop(1);
Symbol 37 MovieClip Frame 36
stop();
Symbol 39 MovieClip Frame 2
_root.B_Image.GoldDrop.gotoAndPlay(2);
Symbol 39 MovieClip Frame 30
_root.B_Image.GoldDrop.gotoAndStop(1);
Symbol 39 MovieClip Frame 36
stop();
Symbol 40 MovieClip Frame 1
stop();
Symbol 40 MovieClip Frame 2
stop();
Symbol 40 MovieClip Frame 3
stop();
Symbol 40 MovieClip Frame 4
stop();
Symbol 40 MovieClip Frame 5
stop();
Symbol 40 MovieClip Frame 6
stop();
Symbol 40 MovieClip Frame 7
stop();
Symbol 40 MovieClip Frame 8
stop();
Symbol 40 MovieClip Frame 9
stop();
Symbol 40 MovieClip Frame 10
stop();
Symbol 40 MovieClip Frame 11
stop();
Symbol 40 MovieClip Frame 12
stop();
Symbol 40 MovieClip Frame 13
stop();
Symbol 40 MovieClip Frame 14
stop();
Symbol 40 MovieClip Frame 15
stop();
Symbol 53 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 2
stop();
Symbol 53 MovieClip Frame 3
stop();
Symbol 56 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 5
numTimes--;
if (numTimes <= 0) {
gotoAndStop (1);
_root.spinDone(_name);
} else {
gotoAndPlay (2);
}
Symbol 73 Button
on (release) {
_root.coinMC.gotoAndStop(2);
_root.coinMC.WinBox.gotoAndStop(1);
_root.BetOne = 1;
gotoAndStop (2);
}
Symbol 75 Button
on (release) {
_root.coinMC.gotoAndStop(3);
_root.coinMC.WinBox.gotoAndStop(1);
_root.BetOne = 2;
gotoAndStop (1);
}
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 2
stop();
Symbol 77 MovieClip Frame 3
stop();
Symbol 80 Button
on (release) {
_root.coinMC.WinBox.gotoAndStop(1);
_root.Spin.gotoAndStop(2);
_root.BetOne = 2;
_root.coinMC.gotoAndStop(3);
_root.setBetOne.gotoAndStop(3);
_root.pull();
gotoAndStop (2);
}
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 2
stop();
Symbol 84 Button
on (press) {
_root.coinMC.WinBox.gotoAndStop(1);
_root.BetMaximum.gotoAndStop(2);
_root.setBetOne.gotoAndStop(3);
}
on (release) {
_root.pull();
gotoAndStop (2);
}
Symbol 86 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 2
stop();
Symbol 101 Button
on (release) {
gotoAndStop (102);
}
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 2
play();
Symbol 108 Button
on (release) {
gotoAndPlay (93);
}
Symbol 112 Button
on (release) {
fscommand ("quit");
}
Symbol 117 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
getURL ("http://www.flashradium.com", "_blank");
}
Symbol 120 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 2
stop();