Frame 1
function shuffleSymbols() {
cellArray = new Array();
x = 0;
while (x < cellRatio.length) {
z = 1;
while (z < (Number(cellRatio[x]) + 1)) {
cellArray.push(x + 1);
z++;
}
x++;
}
shuffle(cellArray);
}
function preShuffle() {
var _local1 = this;
i = 0;
while (i < 5) {
k = 0;
while (k < 5) {
shuffle(cellArray);
_local1["col" + k][i] = cellArray[0];
k++;
}
i++;
}
}
function swapSymbols() {
var _local1 = this;
i = 0;
while (i < 5) {
_local1["symA" + i].gotoAndStop(col0[i]);
_local1["symB" + i].gotoAndStop(col1[i]);
_local1["symC" + i].gotoAndStop(col2[i]);
_local1["symD" + i].gotoAndStop(col3[i]);
_local1["symE" + i].gotoAndStop(col4[i]);
i++;
}
if (cheat_scatter > 0) {
count = 0;
i = 0;
while (i < 5) {
k = 0;
while (k < 5) {
if (count < scab) {
_local1["col" + k][i] = cheat_scatter;
count++;
} else if (_local1["col" + k][i] == cheat_scatter) {
tmp = cheat_scatter + 1;
if (tmp == 4) {
tmp = 1;
}
_local1["col" + k][i] = tmp;
}
k++;
}
_local1["symA" + i].gotoAndStop(col0[i]);
_local1["symB" + i].gotoAndStop(col1[i]);
_local1["symC" + i].gotoAndStop(col2[i]);
_local1["symD" + i].gotoAndStop(col3[i]);
_local1["symE" + i].gotoAndStop(col4[i]);
i++;
}
}
bonusOn = false;
if (cheat_bonus > 0) {
col2[2] = 5;
col1[2] = 5;
col3[2] = 5;
symB2.gotoAndStop(col2[2]);
symC2.gotoAndStop(col2[2]);
symD2.gotoAndStop(col2[2]);
bonusgametype = cheat_bonus;
bonusOn = true;
}
}
function hideSymbols() {
var _local1 = this;
i = 0;
while (i < 5) {
_local1["symA" + i]._visible = false;
_local1["symB" + i]._visible = false;
_local1["symC" + i]._visible = false;
_local1["symD" + i]._visible = false;
_local1["symE" + i]._visible = false;
i++;
}
}
function showSymbols(who) {
var _local1 = who;
var _local2 = this;
i = 0;
while (i < 5) {
_local2[("sym" + _local1) + i]._visible = true;
i++;
}
}
function buttonAction(action) {
var _local1 = this;
var _local2 = action;
var _local3 = _root;
winnerpaid = 0;
totalwins = 0;
paytext = "";
i = 1;
while (i < 13) {
_local1["lb" + i].myvalue = "";
_local1["lb" + i]._visible = false;
i++;
}
if (_local2 == 13) {
playSound("linesnd5");
if (_local3.soundFX == 0) {
_local3.soundFX = 1;
_local3.bMac13.myvalue = "MUTE";
} else {
_local3.soundFX = 0;
_local3.bMac13.myvalue = "SOUND \nON";
}
}
if (_local2 == 0) {
_local3.playSound("cancelbet");
_local3.notclear = false;
_local3.bSpin.gotoAndStop(1);
_local3.credits = creditsmaster;
_local3.currentbet = 0;
_local3.amtbet = 0;
_local3.linesbet = 0;
i = 1;
while (i < 13) {
_local1["al" + i].gotoAndStop(1);
_local1["credshow" + i].gotoAndStop(1);
i++;
}
}
if (_local2 == 1) {
notclear = false;
plinesbet = linesbet;
pamtbet = amtbet;
currentbet = prevBet[0];
linesbet = prevBet[1];
amtbet = currentbet * linesbet;
if ((creditsmaster >= amtbet) && (amtbet > 0)) {
credits = creditsmaster - amtbet;
i = 1;
while (i < 13) {
_local1["al" + i].gotoAndStop(1);
_local1["credshow" + i].gotoAndStop(1);
i++;
}
i = 1;
while (i < (linesbet + 1)) {
_local1["al" + i].gotoAndStop(2);
_local1["credshow" + i].gotoAndStop(2);
i++;
}
startSpin();
} else {
linesbet = plinesbet;
amtbet = pamtbet;
}
}
if ((_local2 >= 2) && (_local2 <= 6)) {
notclear = false;
plinesbet = linesbet;
pamtbet = amtbet;
if (_local2 == 2) {
linesbet = 1;
playSound("betinc1");
}
if (_local2 == 3) {
linesbet = 3;
playSound("betinc2");
}
if (_local2 == 4) {
linesbet = 5;
playSound("betinc3");
}
if (_local2 == 5) {
linesbet = 7;
playSound("betinc4");
}
if (_local2 == 6) {
linesbet = 12;
playSound("betinc5");
}
if (currentbet == 0) {
currentbet = 1;
}
amtbet = currentbet * linesbet;
if (creditsmaster >= amtbet) {
credits = creditsmaster - amtbet;
i = 1;
while (i < 13) {
_local1["al" + i].gotoAndStop(1);
_local1["credshow" + i].gotoAndStop(1);
i++;
}
i = 1;
while (i < (linesbet + 1)) {
_local1["al" + i].gotoAndStop(2);
_local1["credshow" + i].gotoAndStop(2);
i++;
}
bSpin.gotoAndStop(2);
} else {
linesbet = plinesbet;
amtbet = pamtbet;
}
}
if ((_local2 >= 7) && (_local2 <= 12)) {
notclear = false;
pcurrentbet = currentbet;
pamtbet = amtbet;
if (_local2 == 7) {
currentbet = 1;
playSound("linesnd1");
}
if (_local2 == 8) {
currentbet = 5;
playSound("linesnd2");
}
if (_local2 == 9) {
currentbet = 10;
playSound("linesnd3");
}
if (_local2 == 10) {
playSound("linesnd4");
currentbet = 15;
}
if ((_local2 == 11) || (_local2 == 12)) {
currentbet = 20;
if (_local2 == 12) {
linesbet = 12;
} else {
playSound("linesnd5");
}
}
if (linesbet == 0) {
linesbet = 1;
}
amtbet = currentbet * linesbet;
if (creditsmaster >= amtbet) {
credits = creditsmaster - amtbet;
if (amtbet > 0) {
i = 1;
while (i < 13) {
_local1["al" + i].gotoAndStop(1);
_local1["credshow" + i].gotoAndStop(1);
i++;
}
i = 1;
while (i < (linesbet + 1)) {
_local1["al" + i].gotoAndStop(2);
_local1["credshow" + i].gotoAndStop(2);
i++;
}
bSpin.gotoAndStop(2);
}
if (_local2 == 12) {
startSpin();
}
} else {
amtbet = pamtbet;
currentbet = pcurrentbet;
}
}
}
function ybuttonAction(action) {
var _local1 = this;
var _local2 = action;
winnerpaid = 0;
totalwins = 0;
paytext = "";
i = 1;
while (i < 13) {
_local1["lb" + i].myvalue = "";
_local1["lb" + i]._visible = false;
i++;
}
if (_local2 == 1) {
if (linesbet == 0) {
buttonAction(2);
} else if (linesbet == 1) {
buttonAction(3);
} else if (linesbet == 3) {
buttonAction(4);
} else if (linesbet == 5) {
buttonAction(5);
} else if (linesbet == 7) {
buttonAction(6);
}
}
if (_local2 == 2) {
if (amtbet == 0) {
buttonAction(7);
} else if (currentbet == 1) {
buttonAction(8);
} else if (currentbet == 5) {
buttonAction(9);
} else if (currentbet == 10) {
buttonAction(10);
} else if (currentbet == 15) {
buttonAction(11);
}
}
if (_local2 == 3) {
buttonAction(12);
}
if (_local2 == 4) {
paytable_mc.play();
}
if (_local2 == 0) {
trace("for creds");
creditable_mc.play();
}
}
function startSpin() {
var _local1 = this;
var _local2 = _root;
startgamecount++;
gamecountmsg = (startgamecount + " OF ") + fullgamecount;
i = 1;
while (i <= 12) {
_local2["credshow" + i].gotoAndStop(1);
i++;
}
if (paytable_mc._currentframe > 1) {
paytable_mc.gotoAndStop(1);
}
i = 1;
while (i < 13) {
_local1["lb" + i].myvalue = "";
_local1["lb" + i]._visible = false;
i++;
}
if (notclear == true) {
plinesbet = linesbet;
pamtbet = amtbet;
paytext = "";
winnerpaid = 0;
currentbet = prevBet[0];
linesbet = prevBet[1];
amtbet = currentbet * linesbet;
credits = creditsmaster - amtbet;
i = 1;
while (i < 13) {
_local1["al" + i].gotoAndStop(1);
_local1["credshow" + i].gotoAndStop(1);
i++;
}
i = 1;
while (i < (linesbet + 1)) {
_local1["al" + i].gotoAndStop(2);
i++;
}
}
playSound("spin");
gameOn = false;
creditsmaster = credits;
prevBet[0] = currentbet;
prevBet[1] = linesbet;
bSpin.gotoAndStop(1);
unloadButtonLights();
hideSymbols();
i = 0;
while (i < 5) {
_local1["blur" + i].gotoAndPlay(_local1.i + 1);
_local1["blur" + i]._visible = true;
i++;
}
swapSymbols();
calcSpin();
gameplay.gotoAndPlay(2);
}
function calcSpin() {
var _local1 = _root;
var _local2 = this;
spinResult = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
spinResultType = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lineArray = new Array(1, 1, 1, 1, 1);
if (linesbet >= 1) {
i = 0;
while (i < 5) {
lineArray[i] = _local2["col" + i][2];
i++;
}
calcSpin2(0);
}
if (linesbet >= 3) {
i = 0;
while (i < 5) {
lineArray[i] = _local2["col" + i][0];
i++;
}
calcSpin2(1);
i = 0;
while (i < 5) {
lineArray[i] = _local2["col" + i][4];
i++;
}
calcSpin2(2);
}
if (linesbet >= 5) {
i = 0;
while (i < 5) {
lineArray[i] = _local2["col" + i][1];
i++;
}
calcSpin2(3);
i = 0;
while (i < 5) {
lineArray[i] = _local2["col" + i][3];
i++;
}
calcSpin2(4);
}
if (linesbet >= 7) {
lineArray[0] = col0[0];
lineArray[1] = col1[1];
lineArray[2] = col2[2];
lineArray[3] = col3[3];
lineArray[4] = col4[4];
calcSpin2(5);
lineArray[0] = col0[4];
lineArray[1] = col1[3];
lineArray[2] = col2[2];
lineArray[3] = col3[1];
lineArray[4] = col4[0];
calcSpin2(6);
}
if (linesbet == 12) {
i = 0;
while (i < 5) {
lineArray[i] = col0[i];
i++;
}
calcSpin2(7);
i = 0;
while (i < 5) {
lineArray[i] = col1[i];
i++;
}
calcSpin2(8);
i = 0;
while (i < 5) {
lineArray[i] = col2[i];
i++;
}
calcSpin2(9);
i = 0;
while (i < 5) {
lineArray[i] = col3[i];
i++;
}
calcSpin2(10);
i = 0;
while (i < 5) {
lineArray[i] = col4[i];
i++;
}
calcSpin2(11);
}
numJoker = 0;
numCoin = 0;
numCherub = 0;
numDevil = 0;
numBonus = 0;
i = 0;
while (i < 5) {
k = 0;
while (k < 5) {
if (_local1["col" + i][k] == 1) {
numJoker++;
}
if (_local1["col" + i][k] == 2) {
numCoin++;
}
if (_local1["col" + i][k] == 3) {
numCherub++;
}
if (_local1["col" + i][k] == 4) {
numDevil++;
}
if (_local1["col" + i][k] == 5) {
if (linesbet >= 5) {
numBonus++;
} else {
if ((linesbet == 1) && (k == 2)) {
numBonus++;
}
if ((linesbet == 3) && (((k == 0) || (k == 2)) || (k == 4))) {
numBonus++;
}
}
}
k++;
}
i++;
}
smp = 0;
if (numBonus >= 3) {
smp = numBonus;
bonusOn = true;
}
}
function calcSpin2(who) {
tmp = 0;
tmp2 = 0;
if (((lineArray[0] == lineArray[1]) && (lineArray[0] == lineArray[2])) && (lineArray[0] != 5)) {
tmp = pAmtArray[0] * currentbet;
tmp2 = 4;
}
if (((lineArray[1] == lineArray[2]) && (lineArray[1] == lineArray[3])) && (lineArray[1] != 5)) {
tmp = pAmtArray[0] * currentbet;
tmp2 = 5;
}
if (((lineArray[2] == lineArray[3]) && (lineArray[2] == lineArray[4])) && (lineArray[2] != 5)) {
tmp = pAmtArray[0] * currentbet;
tmp2 = 6;
}
if ((((lineArray[0] == lineArray[1]) && (lineArray[0] == lineArray[2])) && (lineArray[0] == lineArray[3])) && (lineArray[0] != 5)) {
tmp = pAmtArray[1] * currentbet;
tmp2 = 2;
}
if ((((lineArray[1] == lineArray[2]) && (lineArray[1] == lineArray[3])) && (lineArray[1] == lineArray[4])) && (lineArray[1] != 5)) {
tmp = pAmtArray[1] * currentbet;
tmp2 = 3;
}
if (((((lineArray[0] == lineArray[1]) && (lineArray[0] == lineArray[2])) && (lineArray[0] == lineArray[3])) && (lineArray[0] == lineArray[4])) && (lineArray[0] != 5)) {
tmp = pAmtArray[2] * currentbet;
tmp2 = 1;
}
if (((((lineArray[0] == 4) || (lineArray[1] == 4)) || (lineArray[2] == 4)) || (lineArray[3] == 4)) || (lineArray[4] == 4)) {
tmp = 0;
tmp2 = 0;
}
spinResult[who] = tmp;
spinResultType[who] = tmp2;
}
function shuffle(a) {
var _local2 = a;
var _local1 = _local2.length;
while (_local1) {
var _local3 = random(_local1);
_local1--;
var t = _local2[_local1];
_local2[_local1] = _local2[_local3];
_local2[_local3] = t;
}
}
function loadButtonLights() {
var _local1 = this;
i = 0;
while (i < 5) {
_local1["bBody" + i].yb.gotoAndStop(2);
i++;
}
i = 0;
while (i < 14) {
_local1["bMac" + i].gotoAndStop(2);
i++;
}
}
function unloadButtonLights() {
var _local1 = this;
i = 0;
while (i < 5) {
_local1["bBody" + i].yb.gotoAndStop(1);
i++;
}
i = 0;
while (i < 13) {
_local1["bMac" + i].gotoAndStop(1);
i++;
}
}
function gorecordscore() {
var _local1 = _root;
_local1.attachMovie("endgamerecord", "endgamerecord", 10);
_local1.endgamerecord._x = 46.5;
_local1.endgamerecord._y = 47.8;
}
function hideBonus(action) {
var _local2 = this;
var _local1;
if (action == true) {
_local1 = 0;
while (_local1 < 5) {
if (_local2["symA" + _local1]._currentframe != 5) {
_local2["symA" + _local1]._visible = false;
}
if (_local2["symB" + _local1]._currentframe != 5) {
_local2["symB" + _local1]._visible = false;
}
if (_local2["symC" + _local1]._currentframe != 5) {
_local2["symC" + _local1]._visible = false;
}
if (_local2["symD" + _local1]._currentframe != 5) {
_local2["symD" + _local1]._visible = false;
}
if (_local2["symE" + _local1]._currentframe != 5) {
_local2["symE" + _local1]._visible = false;
}
_local1++;
}
} else if (action == false) {
_local1 = 0;
while (_local1 < 5) {
_local2["symA" + _local1]._visible = true;
_local2["symB" + _local1]._visible = true;
_local2["symC" + _local1]._visible = true;
_local2["symD" + _local1]._visible = true;
_local2["symE" + _local1]._visible = true;
_local1++;
}
}
}
function playSound(snd, mloop, mvol) {
var _local2 = mloop;
if (!_local2) {
_local2 = 0;
}
if (!mvol) {
mySound.setVolume(100);
} else {
mySound.setVolume(mvol);
}
if (soundFX == 1) {
var _local1 = snd;
mySound = new Sound(this);
mySound.attachSound(_local1);
mySound.start(0, _local2);
}
}
function restartgame() {
var _local1 = this;
gameOn = false;
notclear = true;
creditsmaster = credits;
i = 0;
while (i < 5) {
_local1["hA" + i]._visible = false;
_local1["hB" + i]._visible = false;
_local1["hC" + i]._visible = false;
_local1["hD" + i]._visible = false;
_local1["hE" + i]._visible = false;
i++;
}
if (cheat_bonus == 0) {
bonusgametype = 0;
}
}
function initGame() {
if (!startgamecount) {
startgamecount = 0;
}
if (startgamecount == 20) {
gorecordscore();
}
gamecountmsg = (startgamecount + " OF ") + fullgamecount;
preShuffle();
loadButtonLights();
gameOn = true;
}
_root.attachMovie("bootup", "bootup", 10);
_root.bootup._x = 46.5;
_root.bootup._y = 47.8;
if (!soundFX) {
soundFX = 1;
}
mySound = new Sound(this);
mySound.setVolume(100);
cheat_bonus = 0;
cheat_scatter = 0;
bonusgametype = 0;
scab = 0;
admin._visible = false;
credits = 20000;
linesbet = 0;
currentbet = 0;
amtbet = 0;
totalwins = 0;
winnerpaid = 0;
restartgame();
prevBet = new Array(currentbet, linesbet);
cellRatio = new Array(18, 18, 18, 6, 5);
numStops = 10;
col0 = new Array(1, 1, 1, 1, 1);
col1 = new Array(1, 1, 1, 1, 1);
col2 = new Array(1, 1, 1, 1, 1);
col3 = new Array(1, 1, 1, 1, 1);
col4 = new Array(1, 1, 1, 1, 1);
shuffleSymbols();
swapSymbols();
pAmtArray = new Array(3, 12, 50, 5, 10, 20, 40, 100, 500, 1000, 10000);
i = 0;
while (i < pAmtArray.length) {
this["pAmt" + i] = pAmtArray[i];
i++;
}
i = 1;
while (i < 13) {
this["lb" + i].myvalue = "";
this["lb" + i]._visible = false;
this["lb" + i].stop();
this["aLine" + i].gotoAndStop(1);
this["aLine" + i]._visible = false;
i++;
}
i = 7;
while (i < 13) {
_root["blackh" + i]._visible = false;
i++;
}
i = 0;
while (i < 5) {
this["blur" + i].gotoAndStop(1);
this["blur" + i]._visible = false;
i++;
}
bBody0.myvalue = "Game\nCredits";
bBody1.myvalue = "SELECT\nLINES";
bBody2.myvalue = "BET PER\nLINE";
bBody3.myvalue = "BET\nMAX";
bBody4.myvalue = "PAY\nTABLE";
i = 0;
while (i < 5) {
this["bBody" + i].action = i;
i++;
}
bMac0.myvalue = "CANCEL\nBET";
bMac1.myvalue = "REPEAT\nBET";
bMac2.myvalue = "PLAY 1\nLINE";
bMac3.myvalue = "PLAY 3\nLINES";
bMac4.myvalue = "PLAY 5\nLINES";
bMac5.myvalue = "PLAY 7\nLINES";
bMac6.myvalue = "PLAY 12\nLINES";
bMac7.myvalue = "BET 1\nPER LINE";
bMac8.myvalue = "BET 5\nPER LINE";
bMac9.myvalue = "BET 10\nPER LINE";
bMac10.myvalue = "BET 15\nPER LINE";
bMac11.myvalue = "BET 20\nPER LINE";
bMac12.myvalue = "BET \nMAX";
bMac13.myvalue = "MUTE";
i = 0;
while (i < 14) {
this["bMac" + i].action = i;
i++;
}
redbutton.gotoAndStop(2);
Frame 2
msgArray = new Array("PLAY HALLOWEEN HORROR NOW!", "TAKE A SPIN", "PAYLINE PAYS", "SCATTER BONUS PAYS", "BONUS GAME");
paytext = msgArray[0];
preShuffle();
swapSymbols();
shuffleSymbols();
bonusGameOnePay = new Array(2, 3, 5, 7, 10, 15, 25, 0, 0, 0);
bonusGameTwoPay = new Array(1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 7, 8, 10, 15, 0, 0, 0, 0, 0, 0, 0);
bg3consolation = 1;
bonusGameThreePay = new Array(5, 10, 50, 100);
consolation = 1;
bAdmin._visible = false;
credits = 20000;
creditsmaster = 20000;
fullgamecount = 20;
certifiedodds = "Paytable based on certified odds. Return is 91.944%";
bgName1 = "arcade/gamedata/hallslots/bg001.swf";
bgName2 = "arcade/gamedata/hallslots/bg002.swf";
bgName3 = "arcade/gamedata/hallslots/bg003.swf";
initGame();
stop();
Symbol 165 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 2
stop();
Symbol 169 Button
on (release) {
_root.flashforshow.gotoAndStop(1);
if (_root.paytable_mc._currentframe != 1) {
_root.ybuttonAction(4);
}
if (_root.gameOn == true) {
_root.buttonAction(action);
}
}
on (press) {
_root.playSound("buttonClick");
}
Symbol 170 MovieClip Frame 1
stop();
Symbol 171 Button
on (release) {
trace(cellRatio);
cellArray.sort();
trace(cellArray);
}
Symbol 178 Button
on (release) {
if (_root.paytable_mc._currentframe != 1) {
_root.ybuttonAction(4);
}
if (_root.gameOn == true) {
_root.startSpin();
}
}
on (press) {
_root.playSound("spinButton");
}
Symbol 179 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 2
if ((_root.linesbet <= 0) && (_root.currentbet <= 0)) {
gotoAndStop (1);
}
play();
Symbol 179 MovieClip Frame 9
gotoAndPlay (2);
Symbol 184 Button
on (release) {
_root.flashforshow.gotoAndStop(1);
if (_root.paytable_mc._currentframe != 1) {
_root.ybuttonAction(4);
}
if (_root.gameOn == true) {
_root.ybuttonAction(_parent.action);
}
}
on (press) {
_root.playSound("buttonClick");
}
Symbol 185 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 12
gotoAndPlay (2);
Symbol 206 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 2
play();
Symbol 206 MovieClip Frame 9
stop();
Symbol 211 MovieClip Frame 1
play();
Symbol 215 MovieClip Frame 1
play();
Symbol 219 MovieClip Frame 1
play();
Symbol 223 MovieClip Frame 1
play();
Symbol 227 MovieClip Frame 1
play();
Symbol 231 MovieClip Frame 1
play();
Symbol 235 MovieClip Frame 1
play();
Symbol 239 MovieClip Frame 1
play();
Symbol 243 MovieClip Frame 1
play();
Symbol 247 MovieClip Frame 1
play();
Symbol 251 MovieClip Frame 1
play();
Symbol 254 MovieClip Frame 1
play();
Symbol 255 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 6
_root.showSymbols("A");
_root.blur0.gotoAndStop(1);
_root.blur0._visible = false;
_root.playSound("stop1");
Symbol 255 MovieClip Frame 7
_root.showSymbols("B");
_root.blur1.gotoAndStop(1);
_root.blur1._visible = false;
_root.playSound("stop2");
Symbol 255 MovieClip Frame 8
_root.showSymbols("C");
_root.blur2.gotoAndStop(1);
_root.blur2._visible = false;
_root.playSound("stop3");
Symbol 255 MovieClip Frame 9
_root.showSymbols("D");
_root.blur3.gotoAndStop(1);
_root.blur3._visible = false;
_root.playSound("stop4");
Symbol 255 MovieClip Frame 10
_root.showSymbols("E");
_root.blur4.gotoAndStop(1);
_root.blur4._visible = false;
_root.playSound("stop1");
Symbol 255 MovieClip Frame 11
gpLineArray = new Array();
ok = false;
i = 0;
while (i < _root.spinResult.length) {
if (_root.spinResult[i] != 0) {
ok = true;
gpLineArray.push(i);
}
i++;
}
count = 0;
if (ok == false) {
gotoAndPlay (40);
} else {
play();
}
Symbol 255 MovieClip Frame 12
_root.winnerpaid = _root.winnerpaid + _root.spinResult[gpLineArray[count]];
upcount = gpLineArray[count] + 1;
i = 7;
while (i < 13) {
_root["blackh" + i]._visible = false;
i++;
}
if (upcount > 7) {
i = 7;
while (i < 13) {
_root["blackh" + i]._visible = true;
i++;
}
}
_root["blackh" + upcount]._visible = false;
_root["lb" + upcount].myvalue = _root.spinResult[gpLineArray[count]];
_root["lb" + upcount]._visible = true;
_root["lb" + upcount].play();
_root["aLine" + upcount].gotoAndStop(_root.spinResultType[gpLineArray[count]]);
_root["aLine" + upcount]._visible = true;
_root.paytext = (_root.msgArray[2] + " ") + _root.spinResult[gpLineArray[count]];
_root.playSound("ting");
play();
Symbol 255 MovieClip Frame 19
Symbol 255 MovieClip Frame 20
Symbol 255 MovieClip Frame 36
_root["aLine" + upcount]._visible = false;
count++;
if (count < gpLineArray.length) {
gotoAndPlay ("lineWinners");
} else {
i = 1;
while (i < 13) {
_root["blackh" + i]._visible = false;
i++;
}
_root.runner.mycalc = _root.winnerpaid;
_root.runner.gotoAndPlay(2);
stop();
}
Symbol 255 MovieClip Frame 41
count = 0;
sb = 0;
st = 0;
if (_root.numJoker >= 14) {
sb = _root.numJoker;
st = 1;
}
if (_root.numCoin >= 14) {
sb = _root.numCoin;
st = 2;
}
if (_root.numCherub >= 14) {
sb = _root.numCherub;
st = 3;
}
if ((sb >= 14) && (_root.linesbet >= 5)) {
i = 0;
while (i < 5) {
_root["hA" + i]._visible = true;
_root["hB" + i]._visible = true;
_root["hC" + i]._visible = true;
_root["hD" + i]._visible = true;
_root["hE" + i]._visible = true;
i++;
}
_root.scatterbaby.gotoAndPlay(2);
play();
} else {
gotoAndPlay ("bonusgame");
}
Symbol 255 MovieClip Frame 42
if (_root["symA" + count]._currentframe == st) {
_root["hA" + count].gotoAndPlay(2);
}
play();
Symbol 255 MovieClip Frame 43
if (_root["symB" + count]._currentframe == st) {
_root["hB" + count].gotoAndPlay(2);
}
Symbol 255 MovieClip Frame 44
if (_root["symC" + count]._currentframe == st) {
_root["hC" + count].gotoAndPlay(2);
}
Symbol 255 MovieClip Frame 45
if (_root["symD" + count]._currentframe == st) {
_root["hD" + count].gotoAndPlay(2);
}
Symbol 255 MovieClip Frame 46
if (_root["symE" + count]._currentframe == st) {
_root["hE" + count].gotoAndPlay(2);
}
Symbol 255 MovieClip Frame 47
count++;
if (count < 5) {
gotoAndPlay ("scatterBonus");
} else {
dog = sb - 11;
if (dog > 10) {
dog = 10;
}
thispay = (_root.linesbet * _root.pAmtArray[dog]) * _root.currentbet;
_root.winnerpaid = _root.winnerpaid + thispay;
_root.paytext = (_root.msgArray[3] + " ") + thispay;
_root.runner.mycalc = thispay;
_root.runner.gotoAndPlay(2);
stop();
}
Symbol 255 MovieClip Frame 64
function callback() {
clearInterval(intervalID);
play();
}
function getSound() {
_root.playsound("letsplay");
clearInterval(intervalID2);
}
if (_root.bonusOn == true) {
_root.paytext = _root.msgArray[4];
_root.hideBonus(true);
_root.bonusbaby.gotoandPlay(2);
intervalID = setInterval(callback, 5000);
intervalID2 = setInterval(getSound, 1000);
stop();
} else {
gotoAndPlay ("restartgame");
}
Symbol 255 MovieClip Frame 66
_root.attachMovie("iris", "iris", 10);
_root.iris._x = 46.5;
_root.iris._y = 47.8;
hideArray = new Array();
i = 1;
while (i < 13) {
if (_root["lb" + i]._visible == true) {
hideArray.push(i);
_root["lb" + i]._visible = false;
_root["lb" + i].stop();
}
_root["al" + i]._visible = false;
i++;
}
_root.hideBonus(false);
stop();
Symbol 255 MovieClip Frame 70
_root.paytext = "";
if (_root.bonusgametype == 1) {
loadMovieNum (_root.bgName1, 11);
} else if (_root.bonusgametype == 2) {
loadMovieNum (_root.bgName2, 11);
} else if (_root.bonusgametype == 3) {
loadMovieNum (_root.bgName3, 11);
}
stop();
Symbol 255 MovieClip Frame 71
_root.runner.mycalc = bonuspay;
_root.runner.gotoAndPlay(2);
stop();
Symbol 255 MovieClip Frame 72
_root.cheat_bonus = 0;
_root.cheat_scatter = 0;
i = 0;
while (i < hideArray.length) {
_root["lb" + hideArray[i]]._visible = true;
_root["lb" + hideArray[i]].play();
i++;
}
hideArray = new Array();
i = 1;
while (i < 13) {
_root["al" + i]._visible = true;
i++;
}
_root.creditsmaster = _root.credits;
if (_root.credits >= _root.amtbet) {
_root.bSpin.gotoAndStop(2);
}
_root.paytext = _root.msgArray[1];
_root.restartgame();
_root.initGame();
Symbol 257 MovieClip Frame 1
i = 10;
stop();
Symbol 257 MovieClip Frame 2
if (i > 1) {
play();
} else {
gotoAndStop (1);
}
Symbol 257 MovieClip Frame 6
i--;
gotoAndPlay (2);
Symbol 291 MovieClip Frame 8
stop();
Symbol 292 MovieClip Frame 1
stop();
Symbol 292 MovieClip Frame 3
stop();
Symbol 311 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 1
stop();
Symbol 326 MovieClip Frame 1
stop();
Symbol 333 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 1
stop();
Symbol 355 MovieClip Frame 1
stop();
Symbol 391 MovieClip Frame 1
stop();
Symbol 391 MovieClip Frame 9
i = 0;
while (i < _root.pAmtArray.length) {
this["p" + (i + 1)] = _root.pAmtArray[i];
i++;
}
s2.gotoAndStop(2);
s3.gotoAndStop(3);
s4.gotoAndStop(4);
s5.gotoAndStop(5);
s6.gotoAndStop(5);
s7.gotoAndStop(5);
s5.bonusicon.gotoAndStop(1);
stop();
Symbol 399 MovieClip Frame 1
stop();
Symbol 399 MovieClip Frame 9
i = 0;
while (i < _root.pAmtArray.length) {
this["p" + (i + 1)] = _root.pAmtArray[i];
i++;
}
s2.gotoAndStop(2);
s3.gotoAndStop(3);
s4.gotoAndStop(4);
s6.gotoAndStop(5);
s5.gotoAndStop(6);
s5a.gotoAndStop(6);
s5b.gotoAndStop(6);
stop();
Symbol 400 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 2
if (mycalc < 20) {
_root.playSound("payout4");
_root.runner.scoreinc = 1;
} else if ((mycalc >= 20) && (mycalc < 200)) {
_root.playSound("payout4", 2);
_root.runner.scoreinc = 6;
} else if ((mycalc >= 200) && (mycalc < 2000)) {
_root.playSound("payout4", 3);
_root.runner.scoreinc = 19;
} else if (mycalc >= 2000) {
_root.playSound("payout4", 4);
_root.runner.scoreinc = 49;
}
tmpscore = Number(_root.creditsmaster) + Number(_root.winnerpaid);
mystart = getTimer();
Symbol 400 MovieClip Frame 3
_root.credits = _root.credits + scoreinc;
_root.playSound("scoretick");
mynow = getTimer();
myend = (mynow - mystart) / 1000;
if ((_root.credits >= tmpscore) || (myend > 4)) {
_root.credits = tmpscore;
_root.gameplay.play();
gotoAndStop (1);
} else {
play();
}
Symbol 400 MovieClip Frame 4
_root.credits = _root.credits + scoreinc;
_root.playSound("scoretick");
if (_root.credits >= tmpscore) {
_root.credits = tmpscore;
_root.gameplay.play();
gotoAndStop (1);
} else {
prevFrame();
}
Symbol 404 MovieClip Frame 1
stop();
Symbol 404 MovieClip Frame 2
play();
Symbol 409 MovieClip Frame 1
stop();
Symbol 409 MovieClip Frame 2
play();
Symbol 429 Button
on (release) {
processMain();
if (_root.gameOn == false) {
_root.gameOn = _root.tgameOn;
}
_root.admin._visible = false;
_root.bAdmin._visible = true;
}
Symbol 437 Button
on (press) {
_root.cheat_bonus = 0;
radio1._y = 40.9;
}
Symbol 438 Button
on (press) {
_root.cheat_bonus = 1;
radio1._y = 55.9;
}
Symbol 439 Button
on (press) {
_root.cheat_bonus = 2;
radio1._y = 70.9;
}
Symbol 440 Button
on (press) {
_root.cheat_bonus = 3;
radio1._y = 85.9;
}
Symbol 441 Button
on (press) {
_root.scab = 0;
_root.cheat_scatter = 0;
radio2._y = 40.9;
}
Symbol 442 Button
on (press) {
shuffle(myScab);
_root.scab = myScab[0];
_root.cheat_scatter = 1;
radio2._y = 55.9;
}
Symbol 443 Button
on (press) {
shuffle(myScab);
_root.scab = myScab[0];
_root.cheat_scatter = 2;
radio2._y = 70.9;
}
Symbol 444 Button
on (press) {
shuffle(myScab);
_root.scab = myScab[0];
_root.cheat_scatter = 3;
radio2._y = 85.9;
}
Symbol 448 Button
on (press) {
_root.soundFX = 1;
radios._y = -47.5;
}
Symbol 449 Button
on (press) {
_root.soundFX = 0;
radios._y = -32.5;
}
Symbol 450 MovieClip Frame 1
function processMain() {
var _local1 = _root;
var _local2 = this;
_local1.creditsmaster = _local1.credits;
ok == false;
if (((_local1.scab >= 17) && (_local1.scab <= 25)) && (_local1.cheat_scatter > 0)) {
ok == true;
}
if (ok == false) {
_local1.scab = 17;
}
i = 0;
while (i < _local1.pAmtArray.length) {
_local1.pAmtArray[i] = Number(_local2["p" + i]);
i++;
}
i = 0;
while (i < 5) {
_local1.cellRatio[i] = Number(_local2["ic" + i]);
i++;
}
_local1.shuffleSymbols();
}
function processCherub() {
var _local1 = this;
var _local2 = _root;
i = 0;
while (i < 10) {
_local2.bonusGameOnePay[i] = Number(_local1["p" + i]);
i++;
}
}
function processBags() {
var _local1 = this;
var _local2 = _root;
i = 0;
while (i < 25) {
_local2.bonusGameTwoPay[i] = Number(_local1["p" + i]);
i++;
}
}
function processLine() {
var _local1 = this;
var _local2 = _root;
i = 0;
while (i < 4) {
_local2.bonusGameThreePay[i] = Number(_local1["p" + i]);
i++;
}
}
function getValues() {
var _local1 = _root;
var _local2 = this;
radio1._y = 40.9;
radio2._y = 40.9;
if (_parent.soundFX == 1) {
radios._y = -47.5;
} else {
radios._y = -32.5;
}
i = 0;
while (i < _local1.pAmtArray.length) {
_local2["p" + i] = _local1.pAmtArray[i];
i++;
}
i = 0;
while (i < 5) {
_local2["ic" + i] = _local1.cellRatio[i];
i++;
}
}
function shuffle(a) {
var _local2 = a;
var _local1 = _local2.length;
while (_local1) {
var _local3 = random(_local1);
_local1--;
var t = _local2[_local1];
_local2[_local1] = _local2[_local3];
_local2[_local3] = t;
}
}
getValues();
myScab = new Array(14, 14, 14, 15, 15, 15, 16, 16, 17, 18, 19, 20, 21);
stop();
Symbol 452 MovieClip Frame 1
stop();
Symbol 452 MovieClip Frame 2
stop();
Symbol 65 Button
on (rollOver) {
suba.gotoandplay("in");
}
on (rollOut, dragOut) {
suba.gotoandplay("out");
}
on (release) {
stopAllSounds();
ur = "index.php?act=Arcade&do=newscore";
xx = new LoadVars();
xx.gname = "hallslots";
xx.gscore = _root.score;
xx.send(ur, "_self", "POST");
_root._visible = false;
_root.enabled = false;
stop();
}
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 64
_root.gameover = 1;
_root.startgamecount = 0;
_root.credits = 20000;
_root.cheat_bonus = 0;
_root._root.cheat_scatter = 0;
_root.bonusgametype = 0;
_root.scab = 0;
_root.admin._visible = false;
_root.linesbet = 0;
_root.currentbet = 0;
_root.amtbet = 0;
_root.totalwins = 0;
_root.winnerpaid = 0;
_root.restartgame();
_root.prevBet = new Array(currentbet, linesbet);
_root.numStops = 10;
_root.col0 = new Array(1, 1, 1, 1, 1);
_root.col1 = new Array(1, 1, 1, 1, 1);
_root.col2 = new Array(1, 1, 1, 1, 1);
_root.col3 = new Array(1, 1, 1, 1, 1);
_root.col4 = new Array(1, 1, 1, 1, 1);
shuffleSymbols();
swapSymbols();
i = 1;
while (i < 13) {
_root["lb" + i].myvalue = "";
_root["lb" + i]._visible = false;
_root["lb" + i].stop();
_root["aLine" + i].gotoAndStop(1);
_root["aLine" + i]._visible = false;
i++;
}
i = 0;
while (i < 5) {
_root["blur" + i].gotoAndStop(1);
_root["blur" + i]._visible = false;
i++;
}
_root.redbutton.gotoAndStop(2);
_root.initGame();
Symbol 66 MovieClip Frame 100
removeMovieClip(_parent);
stop();
Symbol 67 MovieClip [endgamerecord] Frame 1
_root.score = _root.credits;
if (!_root.convtocoinfactor) {
_root.convtocoinfactor = 1;
}
_root.exchange = Math.floor(_root.score * _root.convtocoinfactor);
stop();
Symbol 74 Button
on (release) {
_root.initGame();
_root.flashforshow.play();
removeMovieClip("_root.bootup");
}
Symbol 75 MovieClip Frame 2
play();
Symbol 75 MovieClip Frame 9
gotoAndPlay (2);
Symbol 77 MovieClip [bootup] Frame 1
bStart.gotoAndPlay(2);
stop();
Symbol 103 Button
on (release) {
getBonus();
}
on (rollOver) {
_root.playSound("arrow");
}
on (press) {
_root.playSound("longtick");
}
Symbol 120 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 2
stop();
Symbol 120 MovieClip Frame 3
stop();
Symbol 121 MovieClip [iris] Frame 1
function callback() {
clearInterval(intervalID);
stopAllSounds();
_root.iris.play();
}
var intervalID;
play();
Symbol 121 MovieClip [iris] Frame 2
play();
Symbol 121 MovieClip [iris] Frame 30
s5.gotoAndStop(1);
s6.gotoAndStop(2);
s7.gotoAndStop(3);
Instance of Symbol 89 MovieClip "ball3" in Symbol 121 MovieClip [iris] Frame 30
/* no clip actions */
Symbol 121 MovieClip [iris] Frame 31
function getBonus() {
if (_root.bonusgametype == 0) {
_root.bonusgametype = random(3) + 1;
}
gotoAndPlay ("gonext");
}
ball1.gotoAndPlay(7);
ball2.gotoAndPlay(5);
ball3.gotoAndPlay(3);
ball4.gotoAndPlay(1);
ball5.gotoAndPlay(7);
ball6.gotoAndPlay(5);
ball7.gotoAndPlay(3);
ball8.gotoAndPlay(1);
stop();
Symbol 121 MovieClip [iris] Frame 35
_root.playSound("sparkle");
play();
Symbol 121 MovieClip [iris] Frame 37
title.gotoAndStop(_root.bonusgametype);
s5.gotoAndStop(_root.bonusgametype);
Symbol 121 MovieClip [iris] Frame 54
_root.gameplay.play();
stop();
Symbol 126 MovieClip [FLabelSymbol] Frame 1
#initclip 2
_global.FLabelClass = function () {
var _local1 = this;
if (_local1.hostComponent == undefined) {
_local1.hostComponent = ((_local1._parent.controller == undefined) ? (_local1._parent) : (_local1._parent.controller));
}
if (_local1.customTextStyle == undefined) {
if (_local1.hostComponent.textStyle == undefined) {
_local1.hostComponent.textStyle = new TextFormat();
}
_local1.textStyle = _local1.hostComponent.textStyle;
_local1.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var _local1 = this;
var _local2 = _local1.hostComponent.styleTable.embedFonts.value;
if (_local2 != undefined) {
_local1.labelField.embedFonts = _local2;
}
_local1.labelField.setNewTextFormat(_local1.textStyle);
_local1.labelField.text = label;
_local1.labelField._height = _local1.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
var _local2 = this;
var _local3 = enable;
_local2.enable = _local3;
var _local1 = _local2.hostComponent.styleTable[(_local3 ? "textColor" : "textDisabled")].value;
if (_local1 == undefined) {
_local1 = (_local3 ? 0 : 8947848);
}
_local2.setColor(_local1);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 135 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 137 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 140 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 142 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 145 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(disabled_mc, "foregroundDisabled");
Symbol 148 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(dot_mc, "radioDot");
Symbol 149 MovieClip [frb_states] Frame 1
stop();
Symbol 149 MovieClip [frb_states] Frame 2
stop();
Symbol 149 MovieClip [frb_states] Frame 3
stop();
Symbol 149 MovieClip [frb_states] Frame 4
stop();
Symbol 149 MovieClip [frb_states] Frame 5
stop();
Symbol 150 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 154 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 154 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 157 MovieClip [FRadioButtonSymbol] Frame 1
#initclip 3
function FRadioButtonClass() {
this.init();
}
function FRadioButtonGroupClass() {
this.radioInstances = new Array();
}
FRadioButtonClass.prototype = new FUIComponentClass();
FRadioButtonGroupClass.prototype = new FUIComponentClass();
Object.registerClass("FRadioButtonSymbol", FRadioButtonClass);
FRadioButtonClass.prototype.init = function () {
var _local1 = this;
if (_local1.initialState == undefined) {
_local1.selected = false;
} else {
_local1.selected = _local1.initialState;
}
super.setSize(_local1._width, _local1._height);
_local1.boundingBox_mc.unloadMovie();
_local1.boundingBox_mc._width = 0;
_local1.boundingBox_mc._height = 0;
_local1.attachMovie("frb_hitArea", "frb_hitArea_mc", 1);
_local1.attachMovie("frb_states", "frb_states_mc", 2);
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 3);
super.init();
_local1._xscale = 100;
_local1._yscale = 100;
_local1.setSize(_local1.width, _local1.height);
_local1.setChangeHandler(_local1.changeHandler);
if (_local1.label != undefined) {
_local1.setLabel(_local1.label);
}
if (_local1.initialState == undefined) {
_local1.setValue(false);
} else {
_local1.setValue(_local1.initialState);
}
if (_local1.data == "") {
_local1.data = undefined;
} else {
_local1.setData(_local1.data);
}
_local1.addToRadioGroup();
_local1.ROLE_SYSTEM_RADIOBUTTON = 45;
_local1.STATE_SYSTEM_SELECTED = 16;
_local1.EVENT_OBJECT_STATECHANGE = 32778;
_local1.EVENT_OBJECT_NAMECHANGE = 32780;
_local1._accImpl.master = _local1;
_local1._accImpl.stub = false;
_local1._accImpl.get_accRole = _local1.get_accRole;
_local1._accImpl.get_accName = _local1.get_accName;
_local1._accImpl.get_accState = _local1.get_accState;
_local1._accImpl.get_accDefaultAction = _local1.get_accDefaultAction;
_local1._accImpl.accDoDefaultAction = _local1.accDoDefaultAction;
};
FRadioButtonClass.prototype.setHitArea = function (w, h) {
var _local2 = this;
var _local1 = _local2.frb_hitArea_mc;
_local2.hitArea = _local1;
if (_local2.frb_states_mc._width > w) {
_local1._width = _local2.frb_states_mc._width;
} else {
_local1._width = w;
}
_local1._visible = false;
if (arguments.length > 1) {
_local1._height = h;
}
};
FRadioButtonClass.prototype.txtFormat = function (pos) {
var _local1 = this;
var _local2 = _local1.textStyle;
var _local3 = _local1.styleTable;
_local2.align = ((_local3.textAlign.value == undefined) ? ((_local2.align = pos)) : undefined);
_local2.leftMargin = ((_local3.textLeftMargin.value == undefined) ? ((_local2.leftMargin = 0)) : undefined);
_local2.rightMargin = ((_local3.textRightMargin.value == undefined) ? ((_local2.rightMargin = 0)) : undefined);
if (_local1.flabel_mc._height > _local1.height) {
super.setSize(_local1.width, _local1.flabel_mc._height);
} else {
super.setSize(_local1.width, _local1.height);
}
_local1.setEnabled(_local1.enable);
};
FRadioButtonClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.setLabel(_local1.getLabel());
_local1.setLabelPlacement(_local1.labelPlacement);
if (_local1.frb_states_mc._height < _local1.flabel_mc.labelField._height) {
super.setSize(w, _local1.flabel_mc.labelField._height);
}
_local1.setHitArea(_local1.width, _local1.height);
_local1.setLabelPlacement(_local1.labelPlacement);
};
FRadioButtonClass.prototype.setLabelPlacement = function (pos) {
var _local1 = this;
_local1.setLabel(_local1.getLabel());
_local1.txtFormat(pos);
var halfLabelH = (_local1.fLabel_mc._height / 2);
var halfFrameH = (_local1.frb_states_mc._height / 2);
var vertCenter = (halfFrameH - halfLabelH);
var radioWidth = _local1.frb_states_mc._width;
var _local2 = _local1.frb_states_mc;
var label = _local1.fLabel_mc;
var _local3 = _local1.width - _local2._width;
if (_local2._width > _local1.width) {
_local3 = 0;
} else {
_local3 = _local1.width - _local2._width;
}
_local1.fLabel_mc.setSize(_local3);
if ((pos == "right") || (pos == undefined)) {
_local1.labelPlacement = "right";
_local1.frb_states_mc._x = 0;
_local1.fLabel_mc._x = radioWidth;
_local1.txtFormat("left");
} else if (pos == "left") {
_local1.labelPlacement = "left";
_local1.fLabel_mc._x = 0;
_local1.frb_states_mc._x = _local1.width - radioWidth;
_local1.txtFormat("right");
}
_local1.fLabel_mc._y = vertCenter;
_local1.frb_hitArea_mc._y = vertCenter;
_local1.setLabel(_local1.getLabel());
};
FRadioButtonClass.prototype.setData = function (dataValue) {
this.data = dataValue;
};
FRadioButtonClass.prototype.getData = function () {
return(this.data);
};
FRadioButtonClass.prototype.getState = function () {
return(this.selected);
};
FRadioButtonClass.prototype.getSize = function () {
return(this.width);
};
FRadioButtonClass.prototype.getGroupName = function () {
return(this.groupName);
};
FRadioButtonClass.prototype.setGroupName = function (groupName) {
var _local1 = this;
var _local2 = 0;
while (_local2 < _local1._parent[_local1.groupName].radioInstances.length) {
if (_local1._parent[_local1.groupName].radioInstances[_local2] == _local1) {
delete _local1._parent[_local1.groupName].radioInstances[_local2];
}
_local2++;
}
_local1.groupName = groupName;
_local1.addToRadioGroup();
};
FRadioButtonClass.prototype.addToRadioGroup = function () {
var _local1 = this;
if (_local1._parent[_local1.groupName] == undefined) {
_local1._parent[_local1.groupName] = new FRadioButtonGroupClass();
}
_local1._parent[_local1.groupName].addRadioInstance(_local1);
};
FRadioButtonClass.prototype.setValue = function (selected) {
var _local1 = this;
var _local2 = selected;
if (_local2 || (_local2 == undefined)) {
_local1.setState(true);
_local1.focusRect.removeMovieClip();
_local1.executeCallBack();
} else if (_local2 == false) {
_local1.setState(false);
}
};
FRadioButtonClass.prototype.setTabState = function (selected) {
var _local1 = this;
Selection.setFocus(_local1);
_local1.setState(selected);
_local1.drawFocusRect();
_local1.executeCallBack();
};
FRadioButtonClass.prototype.setState = function (selected) {
var _local1 = this;
var _local2 = selected;
if (_local2 || (_local2 == undefined)) {
_local1.tabEnabled = true;
for (var _local3 in _local1._parent) {
if ((_local1 != _local1._parent[_local3]) && (_local1._parent[_local3].groupName == _local1.groupName)) {
_local1._parent[_local3].setState(false);
_local1._parent[_local3].tabEnabled = false;
}
}
}
if (_local1.enable) {
_local1.flabel_mc.setEnabled(true);
if (_local2 || (_local2 == undefined)) {
_local1.frb_states_mc.gotoAndStop("selectedEnabled");
_local1.enabled = false;
_local1.selected = true;
_local1.tabEnabled = true;
_local1.tabFocused = true;
} else {
_local1.frb_states_mc.gotoAndStop("unselectedEnabled");
_local1.enabled = true;
_local1.selected = false;
_local1.tabEnabled = false;
var enabTrue = _local1._parent[_local1.groupName].getEnabled();
var noneSelect = (_local1._parent[_local1.groupName].getValue() == undefined);
if (enabTrue && (noneSelect)) {
_local1._parent[_local1.groupName].radioInstances[0].tabEnabled = true;
}
}
} else {
_local1.flabel_mc.setEnabled(false);
if (_local2 || (_local2 == undefined)) {
_local1.frb_states_mc.gotoAndStop("selectedDisabled");
_local1.enabled = false;
_local1.selected = true;
_local1.tabEnabled = false;
} else {
_local1.frb_states_mc.gotoAndStop("unselectedDisabled");
_local1.enabled = false;
_local1.selected = false;
_local1.tabEnabled = false;
}
}
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_STATECHANGE, true);
}
};
FRadioButtonClass.prototype.getValue = function () {
var _local1 = this;
if (_local1.selected) {
if ((_local1.data == "") || (_local1.data == undefined)) {
return(_local1.getLabel());
}
return(_local1.data);
}
return(undefined);
};
FRadioButtonClass.prototype.setEnabled = function (enable) {
var _local1 = this;
if ((enable == true) || (enable == undefined)) {
_local1.enable = true;
super.setEnabled(true);
} else {
_local1.enable = false;
super.setEnabled(false);
}
_local1.setState(_local1.selected);
var cgn = (_local1._parent[_local1.groupName].getEnabled() == undefined);
var _local3 = _local1._parent[_local1.groupName].radioInstances[0].getEnabled() == false;
if (cgn && (_local3)) {
var _local2 = 0;
while (_local2 < _local1._parent[_local1.groupName].radioInstances.length) {
if (_local1._parent[_local1.groupName].radioInstances[_local2].getEnabled() == true) {
_local1._parent[_local1.groupName].radioInstances[_local2].tabEnabled = true;
return;
}
_local2++;
}
}
};
FRadioButtonClass.prototype.getEnabled = function () {
return(this.enable);
};
FRadioButtonClass.prototype.setLabel = function (label) {
var _local1 = this;
_local1.fLabel_mc.setLabel(label);
_local1.txtFormat();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_NAMECHANGE);
}
};
FRadioButtonClass.prototype.getLabel = function () {
return(this.fLabel_mc.getLabel());
};
FRadioButtonClass.prototype.onPress = function () {
this.pressFocus();
this.frb_states_mc.gotoAndStop("press");
};
FRadioButtonClass.prototype.onRelease = function () {
var _local1 = this;
_local1.frb_states_mc.gotoAndStop("unselectedDisabled");
_local1.setValue(!_local1.selected);
};
FRadioButtonClass.prototype.onReleaseOutside = function () {
this.frb_states_mc.gotoAndStop("unselectedEnabled");
};
FRadioButtonClass.prototype.onDragOut = function () {
this.frb_states_mc.gotoAndStop("unselectedEnabled");
};
FRadioButtonClass.prototype.onDragOver = function () {
this.frb_states_mc.gotoAndStop("press");
};
FRadioButtonClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1._parent[_local1.groupName]);
};
FRadioButtonGroupClass.prototype.addRadioInstance = function (instance) {
this.radioInstances.push(instance);
this.radioInstances[0].tabEnabled = true;
};
FRadioButtonGroupClass.prototype.setEnabled = function (enableFlag) {
var _local2 = this;
var _local3 = enableFlag;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].setEnabled(_local3);
_local1++;
}
};
FRadioButtonGroupClass.prototype.getEnabled = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
if (_local2.radioInstances[_local1].getEnabled() != _local2.radioInstances[0].getEnabled()) {
return(undefined);
}
_local1++;
}
return(_local2.radioInstances[0].getEnabled());
return(undefined);
};
FRadioButtonGroupClass.prototype.setChangeHandler = function (changeHandler, obj) {
var _local2 = this;
var _local3 = changeHandler;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].setChangeHandler(_local3, obj);
_local1++;
}
};
FRadioButtonGroupClass.prototype.getValue = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
if (_local2.radioInstances[_local1].selected == true) {
if ((_local2.radioInstances[_local1].data == "") || (_local2.radioInstances[_local1].data == undefined)) {
return(_local2.radioInstances[_local1].getLabel());
}
return(_local2.radioInstances[_local1].data);
}
_local1++;
}
return(undefined);
};
FRadioButtonGroupClass.prototype.getData = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
if (_local2.radioInstances[_local1].selected) {
return(_local2.radioInstances[_local1].getData());
}
_local1++;
}
return(undefined);
};
FRadioButtonGroupClass.prototype.getInstance = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
if (_local2.radioInstances[_local1].selected == true) {
return(_local1);
}
_local1++;
}
return(undefined);
};
FRadioButtonGroupClass.prototype.setValue = function (dataValue) {
var _local1 = this;
var _local3 = dataValue;
var _local2 = 0;
while (_local2 < _local1.radioInstances.length) {
if (_local1.radioInstances[_local2].data == _local3) {
_local1.radioInstances[_local2].setValue(true);
return;
}
_local2++;
}
_local2 = 0;
while (_local2 < _local1.radioInstances.length) {
if (_local1.radioInstances[_local2].getLabel() == _local3) {
_local1.radioInstances[_local2].setValue(true);
}
_local2++;
}
};
FRadioButtonGroupClass.prototype.setSize = function (w) {
var _local2 = this;
var _local3 = w;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].setSize(_local3);
_local1++;
}
};
FRadioButtonGroupClass.prototype.getSize = function () {
var _local2 = this;
var _local3 = 0;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
if (_local2.radioInstances[_local1].width >= _local3) {
_local3 = _local2.radioInstances[_local1].width;
}
_local1++;
}
return(_local3);
};
FRadioButtonGroupClass.prototype.setGroupName = function (groupName) {
var _local2 = this;
var _local3 = groupName;
_local2.oldGroupName = _local2.radioInstances[0].groupName;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].groupName = _local3;
_local2.radioInstances[_local1].addToRadioGroup();
_local1++;
}
delete _local2._parent[_local2.oldGroupName];
};
FRadioButtonGroupClass.prototype.getGroupName = function () {
return(this.radioInstances[0].groupName);
};
FRadioButtonGroupClass.prototype.setLabelPlacement = function (pos) {
var _local2 = this;
var _local3 = pos;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].setLabelPlacement(_local3);
_local1++;
}
};
FRadioButtonGroupClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local2 = this;
var _local3 = value;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].setStyleProperty(propName, _local3, isGlobal);
_local1++;
}
};
FRadioButtonGroupClass.prototype.addListener = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].addListener();
_local1++;
}
};
FRadioButtonGroupClass.prototype.applyChanges = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].applyChanges();
_local1++;
}
};
FRadioButtonGroupClass.prototype.removeListener = function (component) {
var _local2 = this;
var _local3 = component;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].removeListener(_local3);
_local1++;
}
};
FRadioButtonClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1._width + 6, _local1._height - 3);
};
FRadioButtonClass.prototype.myOnKillFocus = function () {
var _local1 = this;
Key.removeListener(_local1.keyListener);
_local1.focused = false;
_local1.focusRect.removeMovieClip();
_local1._parent[_local1.groupName].foobar = 0;
};
FRadioButtonClass.prototype.myOnKeyDown = function () {
var _local1 = this;
if ((Key.getCode() == 32) && (_local1._parent[_local1.groupName].getValue() == undefined)) {
if (_local1._parent[_local1.groupName].radioInstances[0] == _local1) {
_local1.setTabState(true);
}
}
if ((Key.getCode() == 40) && (_local1.pressOnce == undefined)) {
_local1.foobar = _local1._parent[_local1.groupName].getInstance();
var _local2 = _local1.foobar;
while (_local2 < _local1._parent[_local1.groupName].radioInstances.length) {
var _local3 = _local2 + 1;
if (_local1._parent[_local1.groupName].radioInstances[_local3].getEnabled()) {
_local1._parent[_local1.groupName].radioInstances[_local3].setTabState(true);
return;
}
_local2++;
}
}
if ((Key.getCode() == 38) && (_local1.pressOnce == undefined)) {
_local1.foobar = _local1._parent[_local1.groupName].getInstance();
var _local2 = _local1.foobar;
while (_local2 >= 0) {
var _local3 = _local2 - 1;
if (_local1._parent[_local1.groupName].radioInstances[_local3].getEnabled()) {
_local1._parent[_local1.groupName].radioInstances[_local3].setTabState(true);
return;
}
_local2--;
}
}
};
FRadioButtonClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_RADIOBUTTON);
};
FRadioButtonClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FRadioButtonClass.prototype.get_accState = function (childId) {
if (this.master.getState()) {
return(this.master.STATE_SYSTEM_SELECTED);
}
return(0);
};
FRadioButtonClass.prototype.get_accDefaultAction = function (childId) {
if (this.master.getState()) {
return("UnCheck");
}
return("Check");
};
FRadioButtonClass.prototype.accDoDefaultAction = function (childId) {
this.master.setValue(!this.master.getValue());
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;