Frame 1
function DoCustomEvent(event) {
if (_global.download != null) {
getURL (_global.download);
return(undefined);
}
fscommand ("CustomEvent", ("<gamedata>" + event) + "</gamedata>");
if (_root.gFake) {
DoCustomReturn(null);
}
}
function DoCustomReturn(customData) {
}
function DoGameBreak() {
fscommand ("GameBreak", ("<data><breakpoint>" + _root.gBreakId) + "</breakpoint></data>");
_root.gBreakId++;
if (_root.gFake) {
DoGameContinue(null);
}
}
function DoGameContinue(gameBreakData) {
doLog("game continue: " + gameBreakData);
_root.initGame();
}
function DoGameEnd() {
DoScoreSubmit(score);
fscommand ("GameEnd", "<gamedata></<gamedata>");
}
function DoGameError() {
}
function DoGameMenu() {
}
function DoGamePause() {
_root.exaButton("paused");
}
function DoGameReady() {
fscommand ("GameReady", "<data><mode>rounds</mode><difficulty></difficulty><startlevel>1</startlevel></data>");
if (_root.gFake) {
DoGameStart();
}
}
function DoGameStart() {
_root.gBreakId = 1;
_root.gGameStartTime = getTimer();
_root.reset();
_root.initGame();
}
function DoScoreEvent(what, score) {
var elapsedSeconds = int((getTimer() - _root.gGameStartTime) / 1000);
fscommand (what, ((("<game><score>" + score) + "</score><time>") + elapsedSeconds) + "</time></game");
}
function DoScoreBroadcast() {
DoScoreEvent("ScoreBroadcast", score);
}
function DoScoreSubmit(fscore) {
DoScoreEvent("ScoreSubmit", fscore);
}
function DoSessionReady() {
fscommand ("SessionReady", "<data></data>");
if (_root.gFake) {
DoSessionStart();
}
}
function DoSessionStart() {
loader.play();
}
function ShockwaveHubDialog(type) {
hubCleared = false;
fbDidUnload = false;
fStart = getTimer();
var o = new Object();
o.showTab = type;
o.gameId = "slingoweb";
o.gameTitle = "Slingo";
o.screenWidth = 600;
o.screenHeight = 400;
o.scoreDescriptor = "points";
o.numPlayers = 1;
o.player1Score = score;
o.player2Score = 0;
o.player3Score = 0;
o.player4Score = 0;
_level0.swHighScoreObject = o;
_level0.playAgain = function () {
hubNew();
};
System.security.allowDomain("shockwave.com");
var hubURL = "http://www.shockwave.com/content/highscores/scorez-2002.swf";
loadMovieNum (hubURL, 2);
hubTimer = setInterval(hubEnd, 100);
newDialog.gotoAndStop("shock");
}
function hubNew() {
newDialog.gotoAndStop(1);
_root.gotoAndStop(1);
}
function hubEnd() {
if (hubCleared == false) {
clearInterval(hubTimer);
}
newDialog.gotoAndStop(1);
}
function hubTimer() {
if (_level2.getBytesTotal() >= 0) {
clearInterval(hubTimer);
hubCleared = true;
newDialog.gotoAndStop(1);
} else {
var now = getTimer();
if ((now - fStart) < 30000) {
} else {
newDialog.gotoAndStop("shock2");
if (!this.fbDidUnload) {
this.fbDidUnload = true;
_level2.unloadMovie();
}
if ((now - this.fStart) > 35000) {
hubEnd();
hubNew();
}
}
}
}
function playSound(snd) {
if (soundFX == 1) {
var name = snd;
mySound = new Sound(this);
mySound.attachSound(name);
mySound.start();
}
}
_root.gFake = _global.noZoneAPI;
_root.gBreakId = 1;
_root.gGameStartTime = getTimer();
_root.settings = new XML();
_root.settings.getSetting = function (what) {
var n = this.childNodes;
var len = n.length;
var i = 0;
while (i < len) {
var name = n[i].nodeName;
var value = n[i].childNodes[0].nodeValue;
if (what == name) {
return(value);
}
i++;
}
return(null);
};
_root.settings.onLoad = function (bSuccess) {
if (bSuccess) {
var x = this.getSetting("scorebroadcastinterval");
if (x != null) {
_global.scorebroadcastinterval = x;
}
var x = this.getSetting("upselldisplay");
if (x != null) {
upselldisplay = x;
}
var x = this.getSetting("upsellgame");
if (x != null) {
upsellgame = x;
}
var x = this.getSetting("maxlevels");
if (x != null) {
_global.maxlevels = x;
}
var x = this.getSetting("logo");
if (x != null) {
_global.logo = x;
}
var x = this.getSetting("file_path");
if (x != null) {
mypath = x + "help.txt";
}
loadVariablesNum (mypath, 0);
var x = this.getSetting("download");
if (x != null) {
_global.download = x;
} else {
_global.realmode = true;
}
var x = this.getSetting("shockwave");
if (x != null) {
_global.noZoneAPI = true;
_global.shockwave = (x == "true") || (x == 1);
}
var x = this.getSetting("zone");
if (x != null) {
_global.noZoneAPI = false;
_global.realmode = false;
} else {
_global.noZoneAPI = true;
}
}
if (_global.noZoneAPI == true) {
loader.lgf.loadMovie(_global.logo);
loader.lgf._x = -300;
loader.lgf._y = 150;
loader.lgf._yscale = 60;
loader.lgf._xscale = 60;
loader.zonelogo._visible = false;
} else {
loader.zonelogo._visible = true;
loader.zonelogo.gotoAndStop(2);
}
loader.play();
};
if (!loaded) {
loaded = true;
soundFX = 1;
mypath = "help.txt";
upsellgame = "Play it offline anytime!";
upselldisplay = "Play it offline anytime!";
_global.scorebroadcastinterval = 5;
_global.maxlevels = 3;
_global.logo = "";
_global.shockwave = false;
_global.noZoneAPI = true;
_global.realmode = false;
_root.settings.load("slingo.xml");
} else {
if (_global.noZoneAPI == true) {
loader.lgf.loadMovie(_global.logo);
loader.lgf._x = -300;
loader.lgf._y = 150;
loader.lgf._yscale = 60;
loader.lgf._xscale = 60;
loader.zonelogo._visible = false;
} else {
loader.zonelogo._visible = true;
loader.zonelogo.gotoAndStop(2);
}
loader.gotoAndPlay(2);
}
score = 0;
mySound.setVolume(50);
clearInterval(hubTimer);
newDialog.gotoAndStop(1);
stop();
Frame 2
function reset() {
patterncount = 1;
maxpatterns = maxlevels;
_root.patterncountout = (_root.patterncount + " of ") + _root.maxpatterns;
score = 0;
}
function initGame() {
if (_global.scorebroadcastinterval != null) {
gijoe = 1000 * parseInt(_global.scorebroadcastinterval);
setInterval(DoScoreBroadcast, gijoe);
}
numChances = 2;
numRounds = 3;
patternhit = 0;
miniclock = false;
patterndone = false;
getPattern(patterncount);
newDialog._visible = false;
timerD = "";
startCount = getTimer();
quitValue = 0;
tink = 5;
mydepth = 750;
i = mydepth;
while (i < 800) {
removeMovieClip(this["bp" + i]);
i++;
}
spinString = "";
finalSpin = "";
fullGrid = 0;
pause = false;
pauseOn = false;
buttonOk = true;
preGame = 0;
sRec = 0;
allHere = 0;
processOn = 0;
timerExpired = false;
bonus = 0;
gameOver = false;
stuff = "";
firstRun = 0;
ready = false;
timerOn = true;
receivedSpin = false;
totalFreeSpins = 0;
totalDevils = 0;
maxAllowedDevils = 1;
myMatrix = "";
useMatrix = "";
sRec = 0;
fcOn = 0;
iAmDone = false;
matrixOn = 0;
spinButtonOn = 0;
ullGrid = 0;
spinCount = 0;
freeSpins = 0;
cardCounter = 0;
i = 1;
while (i < 26) {
Set(("matrix" + i) + ".myStatus", 0);
Set(("matrix" + i) + ".myValue", "");
Set(("matrix" + i) + ".myNumberB", 0);
i++;
}
i = 1;
while (i < 13) {
Set("match" + i, 0);
Set(("matrix" + i) + ".myValue", i);
i++;
}
k = 1;
i = 1;
while (i < 6) {
Set(("reel" + i) + ".myGo", i);
Set(("reel" + i) + ".myStop", k);
this["reel" + i].gotoAndStop(1);
this["reel" + i].rf.gotoAndStop(1);
this["reel" + i].rb.gotoAndStop(1);
k = k + 5;
i++;
}
gameOn = 1;
redbutton.getStatus(1);
}
function getPattern(num) {
patterntype = "NORMAL";
patternArray = new Array();
patternArray.splice(0);
if (num == 1) {
patterntitle = "Whodunit?";
patternArray.push(6, 11, 13, 15, 16, 17);
} else if (num == 2) {
patterntitle = "Division";
patternArray.push(3, 8, 11, 13, 15, 18, 23);
} else if (num == 3) {
patterntitle = "Bird";
patternArray.push(3, 7, 13, 15, 17, 23);
}
i = 1;
while (i < 26) {
n = 0;
while (n < patternArray.length) {
if (i == patternArray[n]) {
this["matrix" + i].shadowOn = true;
this["oh" + i].shadow.gotoAndStop(2);
break;
}
this["matrix" + i].shadowOn = false;
this["oh" + i].shadow.gotoAndStop(1);
n++;
}
i++;
}
}
function turnSpinOn() {
if (spinCount < 17) {
_root.playSound("C_takespin");
}
_root.timerExpired = false;
_root.iAmDone = false;
_root.spinCount = _root.spinCount + 1;
if (fcOn == 0) {
if (_root.spinCount < 17) {
_root.spinButtonOn = 1;
redbutton.getStatus(2);
miniclock = true;
_root.timer_mc.gotoAndPlay(2);
} else {
newDialog._visible = true;
newDialog.gotoAndStop("defer");
}
} else {
_root.autoDone.gotoAndPlay(2);
playSound("C_takespin");
}
_root.buttonOk = true;
}
function placeClick(temp) {
if ((temp > 0) and (temp < 6)) {
go = 1;
stop = 1;
}
if ((temp > 5) and (temp < 11)) {
go = 2;
stop = 6;
}
if ((temp > 10) and (temp < 16)) {
go = 3;
stop = 11;
}
if ((temp > 15) and (temp < 21)) {
go = 4;
stop = 16;
}
if ((temp > 20) and (temp < 26)) {
go = 5;
stop = 21;
}
if (temp != 0) {
if (_root.numSuperJoker == 1) {
if (reel3.myValue == 104) {
reel3.myValue = 120;
_root.gameplay.numJokers = _root.gameplay.numJokers - 1;
doPlaceClick(temp);
}
} else {
iAmBad = true;
if (eval (("matrix" + temp) + ".myValue") == eval (("reel" + go) + ".myValue")) {
iAmBad = false;
doPlaceClick(temp);
}
if (eval (("reel" + go) + ".myValue") == 100) {
iAmBad = false;
_root.gameplay.numJokers = _root.gameplay.numJokers - 1;
Set(("reel" + go) + ".myValue", 120);
doPlaceClick(temp);
}
if (iAmBad == true) {
playSound("C_bonk");
}
}
}
}
function doPlaceClick(temp) {
Set(("_root.matrix" + temp) + ".myStatus", 1);
tellTarget ("_root.matrix" + temp) {
gotoAndStop (4);
};
if (_root.numSuperJoker == 1) {
tellTarget ("_root.reel3.rf") {
gotoAndStop (2);
};
i = 1;
while (i < 6) {
if (i != 3) {
tellTarget (("_root.reel" + i) + ".rf") {
gotoAndStop (3);
};
}
i++;
}
} else {
tellTarget (("_root.reel" + go) + ".rf") {
gotoAndStop (2);
};
}
score = score + 200;
hls.gotoAndPlay(2);
_root.scoreWindow.sh.gotoAndPlay(2);
playSound("C_match");
playSound("F_coin");
i = 0;
while (i < patternArray.length) {
if (temp == patternArray[i]) {
playSound("sparkle_little");
patternhit++;
break;
}
i++;
}
_root.fullGrid = _root.fullGrid + 1;
if (_root.numSuperJoker == 1) {
_root.numSuperJoker = 0;
}
gameplay.gotoAndPlay("Scoring Section");
}
function takeSpin() {
if (spinButtonOn == 1) {
_root.firstRun = 1;
playSound("click");
_root.gameplay.gotoAndPlay("Took Spin");
}
}
function spinDone() {
buttonOk = false;
_root.timerD = "";
_root.autoDone.gotoAndStop(1);
_root.matrixOn = 0;
i = 1;
while (i < 26) {
if (eval (("matrix" + i) + ".myStatus") == 0) {
this["matrix" + i].gotoAndStop(2);
}
this["matrix" + i].roll.gotoAndStop(1);
i++;
}
setProperty("_root.sb", _visible , false);
_root.sb.gotoAndStop(1);
_root.timer_mc.gotoAndStop(1);
_root.timer = "";
_root.cardCounter = _root.cardCounter + 5;
playSound("C_click");
i = 1;
while (i < 6) {
tellTarget (("_root.reel" + i) + ".blur") {
gotoAndStop (1);
};
_root.gameplay.gotoAndPlay("Scoreboard");
i++;
}
}
function swapSpins() {
i = start;
while (i < end) {
a = random(5) + start;
swap1 = eval ("tmpCard" add a);
swap2 = eval ("tmpCard" add i);
Set("tmpCard" add i, swap1);
Set("tmpCard" add a, swap2);
i++;
}
}
function randomMatrix() {
myFirstRun = 0;
i = 1;
while (i < 76) {
Set("x_" add i, i);
i = i + 1;
}
i = 1;
while (i < 16) {
a = random(15) + 1;
swap1 = eval ("x_" add a);
swap2 = eval ("x_" add i);
Set("x_" add i, swap1);
Set("x_" add a, swap2);
i = i + 1;
}
i = 16;
while (i < 31) {
a = random(15) + 16;
swap1 = eval ("x_" add a);
swap2 = eval ("x_" add i);
Set("x_" add i, swap1);
Set("x_" add a, swap2);
i = i + 1;
}
i = 31;
while (i < 46) {
a = random(15) + 31;
swap1 = eval ("x_" add a);
swap2 = eval ("x_" add i);
Set("x_" add i, swap1);
Set("x_" add a, swap2);
i = i + 1;
}
i = 46;
while (i < 61) {
a = random(15) + 46;
swap1 = eval ("x_" add a);
swap2 = eval ("x_" add i);
Set("x_" add i, swap1);
Set("x_" add a, swap2);
i = i + 1;
}
i = 61;
while (i < 76) {
a = random(15) + 61;
swap1 = eval ("x_" add a);
swap2 = eval ("x_" add i);
Set("x_" add i, swap1);
Set("x_" add a, swap2);
i = i + 1;
}
i = 1;
while (i < 6) {
Set(("matrix" add i) add ".myStatus", 0);
Set(("matrix" add i) add ".myValue", eval ("_root.x_" add i));
myMatrix = (myMatrix + eval ("_root.x_" add i)) + ",";
i = i + 1;
}
i = 6;
while (i < 11) {
j = i + 10;
Set(("matrix" add i) add ".myStatus", 0);
Set(("matrix" add i) add ".myValue", eval ("_root.x_" add j));
myMatrix = (myMatrix + eval ("_root.x_" add j)) + ",";
i = i + 1;
}
i = 11;
while (i < 16) {
j = i + 20;
Set(("matrix" add i) add ".myStatus", 0);
Set(("matrix" add i) add ".myValue", eval ("_root.x_" add j));
myMatrix = (myMatrix + eval ("_root.x_" add j)) + ",";
i = i + 1;
}
i = 16;
while (i < 21) {
j = i + 30;
Set(("matrix" add i) add ".myStatus", 0);
Set(("matrix" add i) add ".myValue", eval ("_root.x_" add j));
myMatrix = (myMatrix + eval ("_root.x_" add j)) + ",";
i = i + 1;
}
i = 21;
while (i < 26) {
j = i + 40;
Set(("matrix" add i) add ".myStatus", 0);
Set(("matrix" add i) add ".myValue", eval ("_root.x_" add j));
myMatrix = (myMatrix + eval ("_root.x_" add j)) + ",";
i = i + 1;
}
useMatrix = myMatrix;
secondMatrix();
}
function secondMatrix() {
myFirstRun = 0;
tmpString = _root.useMatrix;
tmpLength = tmpString.length;
tmpIndex = 0;
tmpLast = 1;
i = 1;
k = 0;
while (k < (tmpLength + 1)) {
if ((tmpString.charAt(k) eq ",") or (k == tmpLength)) {
tmpLast = k;
if (k == tmpLength) {
tmpLast = tmpLength;
}
Set("x_" + i, parseInt(String(tmpString.substring(tmpIndex, tmpLast))));
i = i + 1;
tmpIndex = k + 1;
tmpLast = tmpIndex + 1;
}
k++;
}
i = 1;
while (i < 26) {
Set(("matrix" add i) add ".myStatus", 0);
Set(("matrix" add i) add ".myValue", eval ("_root.x_" add i));
myMatrix = (myMatrix + eval ("_root.x_" add i)) + ",";
Set(("matrix" add i) add ".myReel", i);
i++;
}
_root.gameplay.gotoAndPlay(2);
}
function clearReels() {
i = 1;
while (i < 6) {
Set(("reel" add i) add ".myValue", null);
tellTarget ("_root.reel" + i) {
gotoAndStop (1);
};
i++;
}
i = 1;
while (i < 26) {
if (eval (("_root.matrix" + i) + ".myStatus") == 0) {
tellTarget ("_root.matrix" + i) {
gotoAndStop (2);
};
tellTarget (("_root.matrix" + i) + ".roll") {
gotoAndStop (1);
};
}
i++;
}
}
function setReels() {
clearReels();
k = 1;
while (k < 6) {
z = random(20) + 1;
Set(("reel" add k) add ".myValue", z);
Set(("reel" add k) add ".myReel", k);
k++;
}
}
function checkLines() {
if (_root.match11 == 0) {
x = 1;
while (x < 26) {
if (eval (("_root.matrix" + x) + ".myStatus") == 1) {
Set("_level0/:match11", 2);
x = x + 6;
} else {
Set("_level0/:match11", 0);
x = 30;
}
}
}
if (_root.match12 == 0) {
x = 5;
while (x < 22) {
if (eval (("_root.matrix" + x) + ".myStatus") == 1) {
Set("_level0/:match12", 2);
x = x + 4;
} else {
Set("_level0/:match12", 0);
x = 22;
}
}
}
x = 1;
i = 1;
while (x < 6) {
while (i < (x + 22)) {
if (eval ("_level0/:match" add x) != 1) {
if (eval (("_root.matrix" + i) + ".myStatus") == 1) {
Set("_level0/:match" add x, 2);
} else {
Set("_level0/:match" add x, 0);
i = 30;
}
}
i = i + 5;
}
x = x + 1;
i = x;
}
o = 6;
x = 1;
i = 1;
while (x < 22) {
while (i < (x + 5)) {
if (eval ("_level0/:match" add o) != 1) {
if (eval (("_root.matrix" + i) + ".myStatus") == 1) {
Set("_level0/:match" add o, 2);
} else {
Set("_level0/:match" add o, 0);
i = 26;
}
}
i = i + 1;
}
o = o + 1;
x = x + 5;
i = x;
}
}
function evalClicks() {
_root.clicksLeft = 0;
i = 1;
while (i < 6) {
k = 1;
while (k < 26) {
if ((eval (("_root.reel" + i) + ".myValue") == eval (("_root.matrix" + k) + ".myValue")) and (eval (("_root.matrix" + k) + ".myStatus") == 0)) {
_root.clicksLeft = _root.clicksLeft + 1;
}
k++;
}
i++;
}
_root.clicksLeft = _root.clicksLeft + _root.gameplay.numJokers;
if (_root.gameplay.numJokers > 0) {
l = 1;
i = 1;
while (i < 6) {
toKill = 0;
if (eval (("_root.reel" + i) + ".myValue") == 100) {
k = l;
while (k < (l + 5)) {
if (eval (("_root.matrix" + k) + ".myStatus") != 0) {
toKill = toKill + 1;
}
k++;
}
}
if (toKill == 5) {
_root.clicksLeft = _root.clicksLeft - 1;
}
l = l + 5;
i++;
}
}
}
function lightUpPattern() {
lights.gotoAndPlay(2);
}
function exaButton(action) {
if (buttonOk == true) {
if (pauseOn == false) {
tmp = true;
myPause(true);
if (action != "help") {
newDialog2.gotoAndStop(action);
newDialog2._visible = true;
} else {
htp.gotoAndStop(2);
}
testDialog();
}
pauseOn = tmp;
}
}
function testDialog() {
if (dialogTimerON == true) {
dialogTimerON = false;
newDialog.mytimer.gotoAndStop("start");
} else if (newDialog.mytimer._currentframe > 1) {
dialogTimerON = true;
newDialog.mytimer.gotoAndStop("stop");
} else {
dialogTimerON = false;
}
}
function myPause() {
if (_root.timer_mc._currentframe > 1) {
trace("pausing the timer mc");
var m = pause;
if (pause == false) {
timer_mc.gotoAndStop("stop");
m = true;
}
if (pause == true) {
timer_mc.startTimer = timer_mc.startTimer + timer_mc.pauseTime;
timer_mc.gotoAndPlay("start");
m = false;
}
pause = m;
}
}
function exitActions() {
if (pmatrix == true) {
gameplay.matrixfunction();
}
if (pspin == true) {
gameplay.asd2 = true;
gameplay.play();
}
}
if (realmode == true) {
dlbutz._visible = false;
}
mySound.setVolume(100);
play();
Frame 3
if (_global.noZoneAPI == true) {
_root.reset();
_root.initGame();
} else {
DoGameReady();
}
stop();
Frame 5
DoCustomReturn(_root.CustomData);
stop();
Frame 10
DoGameContinue(_root.GameBreakData);
stop();
Frame 15
DoGameMenu();
stop();
Frame 20
_root.soundFX = 0;
stop();
Frame 25
_root.soundFX = 1;
stop();
Frame 30
DoGamePause();
stop();
Frame 35
myPause();
testDialog();
newDialog2.gotoAndStop(1);
stop();
Frame 40
DoGameStart();
stop();
Frame 45
DoSessionStart();
_root.playSound("C_gamend");
stop();
Symbol 32 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 45 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 55 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 64 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 65 MovieClip [UpArrow] Frame 1
stop();
Symbol 65 MovieClip [UpArrow] Frame 2
stop();
Symbol 65 MovieClip [UpArrow] Frame 3
stop();
Symbol 71 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 78 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 84 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 85 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 93 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 101 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 109 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 110 MovieClip [DownArrow] Frame 1
stop();
Symbol 110 MovieClip [DownArrow] Frame 2
stop();
Symbol 110 MovieClip [DownArrow] Frame 3
stop();
Symbol 120 MovieClip [bonus_points] Frame 1
play();
Symbol 120 MovieClip [bonus_points] Frame 16
stop();
removeMovieClip(this);
Symbol 123 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 124 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var tmp = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
tmp = Math.min(tmp, this.maxPos);
this.setScrollPosition(Math.max(tmp, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var wasEnabled = this.enable;
if (enabledFlag && (!wasEnabled)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (wasEnabled)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var delt = this.smallScroll;
if (inc != "one") {
delt = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var newPos = (this.getScrollPosition() + (mode * delt));
if (newPos > this.maxPos) {
newPos = this.maxPos;
} else if (newPos < this.minPos) {
newPos = this.minPos;
}
this.setScrollPosition(newPos);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var c = this.controller;
c.scrollPosition = Math.round(((c.maxPos - c.minPos) * (this._y - c.scrollTop)) / c.trackHeight) + c.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var pos = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxhscroll));
} else {
var pos = this.textField.scroll;
var pageSize = (this.textField.bottomScroll - this.textField.scroll);
this.setScrollProperties(pageSize, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 130 Button
on (release) {
this.history = "";
_root.myPause();
_root.testDialog();
_root.exitActions();
_root.pauseOn = false;
gotoAndStop (1);
}
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 2
function addText() {
box.htmlText = this.addToHistory(msg);
}
this.addToHistory = function (msg) {
this.history = this.history + msg;
return(this.history);
};
msg = _parent.msg;
addText();
stop();
Instance of Symbol 124 MovieClip [FScrollBarSymbol] "bar" in Symbol 138 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "box";
horizontal = false;
}
Symbol 143 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 2
startTimer = getTimer();
origTimer = getTimer();
Symbol 143 MovieClip Frame 3
pauseTimer = getTimer();
solveTime = math.floor((getTimer() - startTimer) / 1000);
printMin = math.floor(solveTime / 60);
solveSec = math.floor(solveTime - (printMin * 60));
timer = mymax - solveSec;
if (timer <= 0) {
_parent.doAction(action);
gotoAndStop (1);
}
Symbol 143 MovieClip Frame 4
gotoAndPlay (3);
Symbol 143 MovieClip Frame 5
pauseInit = getTimer();
play();
Symbol 143 MovieClip Frame 6
pauseTime = getTimer() - pauseInit;
play();
Symbol 143 MovieClip Frame 7
pauseTime = getTimer() - pauseInit;
gotoAndPlay (6);
Symbol 166 Button
on (release) {
doAction("inter");
}
on (press) {
_root.playSound("click");
}
Symbol 168 Button
on (release) {
_root.DoCustomEvent("download");
}
on (press) {
_root.playSound("click");
}
Symbol 173 Button
on (release) {
_root.ShockwaveHubDialog("submit");
}
on (press) {
_root.playSound("click");
}
Symbol 176 Button
on (release) {
_root.ShockwaveHubDialog("view");
}
on (press) {
_root.playSound("click");
}
Symbol 187 MovieClip Frame 1
stop();
Symbol 204 Button
on (release) {
doAction("defer");
}
Symbol 217 Button
on (release) {
_root.hubEnd();
gotoAndStop (1);
}
on (press) {
_root.playSound("click");
}
Symbol 220 Button
on (release) {
_root.myPause();
gotoAndStop (1);
}
on (press) {
_root.playSound("click");
}
Symbol 225 MovieClip Frame 1
function doAction(action) {
if (action == "jokerback") {
_root.playSound("C_coin");
this._visible = false;
_parent.gameplay.play();
gotoAndStop (1);
} else if (action == "inter") {
this._visible = false;
if (_global.noZoneAPI == true) {
_root.gotoAndStop(1);
} else {
_root.doGameEnd();
gotoAndStop (1);
}
} else if (action == "callback") {
if (dc == "d") {
_parent.score = _parent.score - Math.round(_parent.score / 2);
_root.playSound("C_debit");
}
this._visible = false;
_root.gameplay.gotoAndPlay("FS/COIN Check");
gotoAndStop (1);
} else if (action == "endall") {
_root.gameOver = true;
_root.gameplay.gotoAndPlay("New Spin");
gotoAndStop (1);
this._visible = false;
} else if (action == "defer") {
thisCheck = 21 - _root.spinCount;
if (_root.freeSpins >= thisCheck) {
_root.playSound("C_debit");
_root.autoFinalSpin.gotoAndStop(1);
_root.freeSpins--;
_root.spinButtonOn = 1;
_root.redbutton.getStatus(2);
_root.timer_mc.gotoAndPlay(2);
} else if ((_root.freeSpins < thisCheck) and (_root.freeSpins > 0)) {
_root.redbutton.getStatus(0);
_root.lowerdialog.gotoAndstop("usefree");
} else if (_root.freeSpins == 0) {
_root.playSound("C_debit");
_root.autoFinalSpin.gotoAndStop(1);
if (_root.spinCount == 17) {
_root.score = _root.score - 500;
}
if (_root.spinCount == 18) {
_root.score = _root.score - 1000;
}
if (_root.spinCount == 19) {
_root.score = _root.score - 1500;
}
if (_root.spinCount == 20) {
_root.score = _root.score - 2000;
}
_root.spinButtonOn = 1;
_root.redbutton.getStatus(2);
_root.timer_mc.gotoAndPlay(2);
}
gotoAndStop (1);
this._visible = false;
}
}
function setCounter(action, count) {
this._visible = true;
this.mytimer.mymax = count;
this.mytimer.action = action;
this.mytimer.gotoAndPlay(2);
}
_root.butp._visible = true;
_root.buto._visible = true;
_root.butq._visible = true;
mytimer.mymax = 0;
mytimer.action = "";
mytimer.gotoAndStop(1);
coinshortage = false;
_root.pauseOn = false;
stop();
Symbol 225 MovieClip Frame 3
setCounter("jokerback", 3);
if (_root.gameplay.numJokers == 3) {
_parent.score = _parent.score + 1000;
gotoAndStop (4);
} else if (_root.gameplay.numJokers == 4) {
_parent.score = _parent.score + 2500;
gotoAndStop (5);
} else if (_root.gameplay.numJokers == 5) {
_parent.score = _parent.score + 5000;
gotoAndStop (6);
}
Symbol 225 MovieClip Frame 10
setCounter("callback", 3);
if (random(3) > 0) {
i = 1;
while (i < 6) {
if (eval (("_root.reel" + i) + ".myValue") == 103) {
_root["reel" + i].gotoAndStop(7);
}
i++;
}
gotoAndStop (11);
} else {
gotoAndStop (12);
}
Symbol 225 MovieClip Frame 11
_root.playSound("C_cherub");
dc = "c";
Symbol 225 MovieClip Frame 12
_root.playSound("C_laugh");
dc = "d";
Symbol 225 MovieClip Frame 16
setCounter("endall", 4);
_root.timer_mc.gotoAndStop(1);
if (_root.spinCount <= 12) {
thisBonus = 11000;
}
if (_root.spinCount == 13) {
thisBonus = 10000;
}
if (_root.spinCount == 14) {
thisBonus = 9000;
}
if (_root.spinCount == 15) {
thisBonus = 8500;
}
if (_root.spinCount == 16) {
thisBonus = 8000;
}
if (_root.spinCount == 17) {
thisBonus = 7500;
}
if (_root.spinCount == 18) {
thisBonus = 7000;
}
if (_root.spinCount == 19) {
thisBonus = 6500;
}
if (_root.spinCount == 20) {
thisBonus = 6000;
}
_parent.score = _parent.score + thisBonus;
Symbol 225 MovieClip Frame 23
_root.quit = 1;
_root.butp._visible = false;
_root.buto._visible = false;
_root.butq._visible = false;
i = 1;
while (i < 26) {
tellTarget ("_root.matrix" + i) {
gotoAndStop (1);
};
_root.useMatrix = "";
_root.myMatrix = "";
i++;
}
if (_root.patternhit == _root.patternArray.length) {
if (_root.patterncount < _root.maxpatterns) {
_root.patterncount++;
gotoAndStop (24);
} else {
gotoAndStop (25);
}
} else {
gotoAndStop (27);
}
_root.playSound("C_gamend");
Symbol 225 MovieClip Frame 24
_root.lowerdialog.gotoAndStop("endgame");
Symbol 225 MovieClip Frame 25
if (_global.shockwave) {
ss._visible = true;
ssint._visible = true;
vs._visible = true;
vsint._visible = true;
} else {
ssint._visible = false;
ss._visible = false;
vsint._visible = false;
vs._visible = false;
}
if (_global.realmode == true) {
dlbutz._visible = false;
resume._x = 0;
}
stop();
Symbol 225 MovieClip Frame 27
if (_global.shockwave) {
ss._visible = true;
ssint._visible = true;
vs._visible = true;
vsint._visible = true;
} else {
ssint._visible = false;
ss._visible = false;
vsint._visible = false;
vs._visible = false;
}
if (_global.realmode == true) {
dlbutz._visible = false;
resume._x = 0;
}
if (coinshortage == true) {
coinshortage = false;
atext.gotoAndStop(2);
}
stop();
Symbol 225 MovieClip Frame 36
setCounter("defer", 5);
if (_root.spinCount == 17) {
cost = 500;
}
if (_root.spinCount == 18) {
cost = 1000;
}
if (_root.spinCount == 19) {
cost = 1500;
}
if (_root.spinCount == 20) {
cost = 2000;
}
_root.redbutton.getStatus(3, 2);
if (_root.score >= cost) {
if (_root.spinCount == 17) {
gotoAndStop (37);
}
if (_root.spinCount == 18) {
gotoAndStop (38);
}
if (_root.spinCount == 19) {
gotoAndStop (39);
}
if (_root.spinCount == 20) {
gotoAndStop (40);
}
} else {
coinshortage = true;
_root.gameplay.gotoAndStop(1);
gotoAndPlay (23);
}
Symbol 225 MovieClip Frame 49
stop();
Symbol 231 MovieClip Frame 1
stop();
Symbol 242 Button
on (release) {
_root.htp.gotoAndStop(2);
}
on (press) {
_root.playSound("click");
}
Symbol 244 Button
on (release) {
_root.gotoAndPlay("slingogame");
play();
}
on (press) {
_root.playSound("click");
}
Symbol 245 MovieClip Frame 1
stop();
Symbol 245 MovieClip Frame 2
factor = _root.getBytesLoaded() / _root.getBytesTotal();
percent.text = Math.ceil(100 * factor) + "%";
percent2.text = Math.ceil(100 * factor) + "%";
if (factor >= 1) {
gotoAndPlay (4);
}
Symbol 245 MovieClip Frame 3
gotoAndPlay (2);
Symbol 245 MovieClip Frame 4
if (_global.noZoneAPI == true) {
_root.playSound("C_gamend");
play();
} else {
_root.DoSessionReady();
stop();
}
Symbol 245 MovieClip Frame 11
_root.playSound("C_slingo");
if (_global.shockwave) {
vs._visible = true;
vsint._visible = true;
} else {
vsint._visible = false;
vs._visible = false;
}
stop();
Symbol 246 Button
on (release) {
_root.myPause();
_root.testDialog();
_root.exitActions();
gotoAndStop (1);
}
on (press) {
_root.playSound("click");
}
Symbol 249 Button
on (release) {
_root.gameplay.gotoAndStop(1);
_root.timer_mc.gotoAndStop(1);
_root.newDialog._visible = true;
_root.newDialog.gotoAndStop("endgame");
gotoAndStop (1);
}
on (press) {
_root.playSound("click");
}
Symbol 251 Button
on (release) {
_root.myPause();
_root.testDialog();
_root.exitActions();
gotoAndStop (1);
}
on (press) {
_root.playSound("click");
}
Symbol 254 Button
on (release) {
gotoAndStop (11);
}
on (press) {
_root.playSound("click");
}
Symbol 255 Button
on (release) {
_root.myPause();
_root.testDialog();
_root.exitActions();
gotoAndStop (1);
}
on (press) {
_root.playSound("click");
}
Symbol 257 Button
on (release) {
mymsg = _root.upsellgame;
gotoAndStop (12);
}
on (press) {
_root.playSound("click");
}
Symbol 259 Button
on (release) {
gotoAndStop (13);
}
on (press) {
_root.playSound("click");
}
Symbol 262 Button
on (release) {
mymsg = _root.upselldisplay;
gotoAndStop (12);
}
on (press) {
_root.playSound("click");
}
Symbol 270 Button
on (release) {
gotoAndStop (10);
}
on (press) {
_root.playSound("click");
}
Symbol 283 MovieClip Frame 1
stop();
Symbol 284 MovieClip Frame 1
stop();
Symbol 288 Button
on (release) {
if (_root.soundFX == 1) {
ac.colors.gotoAndStop(2);
_root.soundFX = 0;
} else {
ac.colors.gotoAndStop(1);
_root.soundFX = 1;
}
}
on (press) {
_root.playSound("click");
}
on (rollOver) {
ac.gotoAndStop(2);
}
on (rollOut, dragOut, releaseOutside) {
ac.gotoAndStop(1);
}
Symbol 290 MovieClip Frame 1
_root.pauseOn = false;
stop();
Symbol 290 MovieClip Frame 12
if (_global.realmode == true) {
dlbutz._visible = false;
resume._x = 0;
}
Symbol 290 MovieClip Frame 13
if (_root.soundFX == 1) {
ac.colors.gotoAndStop(1);
} else {
ac.colors.gotoAndStop(2);
}
Symbol 294 Button
on (release) {
_root.autoFinalSpin.gotoAndStop(1);
if (_root.spinCount == 17) {
_root.score = _root.score - 500;
}
if (_root.spinCount == 18) {
_root.score = _root.score - 1000;
}
if (_root.spinCount == 19) {
_root.score = _root.score - 1500;
}
if (_root.spinCount == 20) {
_root.score = _root.score - 2000;
}
_root.spinButtonOn = 1;
_root.redbutton.getStatus(2);
_root.miniclock = true;
_root.timer_mc.gotoAndPlay(2);
gotoAndStop (1);
}
on (press) {
_root.playSound("C_debit");
}
Symbol 297 Button
on (release) {
_root.autoFinalSpin.gotoAndStop(1);
_root.freeSpins = _root.freeSpins - 1;
_root.spinButtonOn = 1;
_root.redbutton.getStatus(2);
_root.miniclock = true;
_root.timer_mc.gotoAndPlay(2);
gotoAndStop (1);
}
on (press) {
_root.playSound("C_debit");
}
Symbol 305 Button
on (release) {
_root.newDialog.gotoAndStop(1);
if (_global.noZoneAPI == true) {
_root.newDialog.gotoAndStop("a4");
gotoAndStop (1);
} else {
_root.doGameEnd();
gotoAndStop (1);
}
}
on (press) {
_root.playSound("click");
}
Symbol 307 Button
on (release) {
_root.newDialog.gotoAndStop(1);
_root.patterncountout = (_root.patterncount + " of ") + _root.maxpatterns;
if (_global.noZoneAPI == true) {
_root.initGame();
gotoAndStop (1);
} else {
_root.doGameBreak();
gotoAndStop (1);
}
}
on (press) {
_root.playSound("click");
}
Symbol 308 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 1
doonce = true;
n = 1;
while (n < 6) {
Set("asd" + n, true);
n++;
}
_root.timer = 0;
stop();
Symbol 309 MovieClip Frame 2
if (_root.timerOn == true) {
startTimer = getTimer();
origTimer = getTimer();
if (_parent.miniclock == true) {
mymax = 10;
} else {
mymax = 20;
}
play();
} else {
gotoAndStop (1);
}
Symbol 309 MovieClip Frame 3
pauseTimer = getTimer();
solveTime = math.floor((getTimer() - startTimer) / 1000);
printMin = math.floor(solveTime / 60);
_root.solveSec = math.floor(solveTime - (printMin * 60));
_root.timer = mymax - _root.solveSec;
if (_root.timer < 10) {
_root.timerD = ":0" + _root.timer;
} else {
_root.timerD = ":" + _root.timer;
}
if (((_root.timer < 5) && (doOnce == true)) && (_root.miniclock == false)) {
doonce = false;
_root.playSound("TickBomb");
}
if (((_root.timer == 5) && (_root.miniclock == true)) && (asd1 == true)) {
asd1 = false;
_root.playSound("beep02");
}
if (((_root.timer == 4) && (_root.miniclock == true)) && (asd2 == true)) {
asd2 = false;
_root.playSound("beep01");
}
if (((_root.timer == 3) && (_root.miniclock == true)) && (asd3 == true)) {
asd3 = false;
_root.playSound("beep24");
}
if (((_root.timer == 2) && (_root.miniclock == true)) && (asd4 == true)) {
asd4 = false;
_root.playSound("beep01");
}
if (((_root.timer == 1) && (_root.miniclock == true)) && (asd5 == true)) {
asd5 = false;
_root.playSound("beep24");
}
if (_root.timer <= 0) {
if (_parent.miniclock == true) {
_root.playSound("beep02");
_root.miniclock = false;
_root.newDialog._visible = true;
_root.newDialog.gotoAndStop("lost");
_root.redbutton.getStatus(3, 3);
} else if (_root.buttonOk == true) {
_root.dibs.gotoAndStop(1);
_root.takespin2.gotoAndStop(1);
_root.takespin2.pulse.gotoAndStop(1);
_root.spinDone();
} else {
_root.timerExpired = true;
}
gotoAndStop (1);
}
Symbol 309 MovieClip Frame 4
gotoAndPlay (3);
Symbol 309 MovieClip Frame 5
pauseInit = getTimer();
play();
Symbol 309 MovieClip Frame 6
pauseTime = getTimer() - pauseInit;
play();
Symbol 309 MovieClip Frame 7
pauseTime = getTimer() - pauseInit;
gotoAndPlay (6);
Symbol 310 MovieClip Frame 1
temp = 0;
stop();
Symbol 310 MovieClip Frame 2
_root.timerD = "";
play();
Symbol 310 MovieClip Frame 5
if ((_root.fcOn == 0) and (temp == 0)) {
temp = 1;
gotoAndPlay (2);
} else {
play();
}
Symbol 310 MovieClip Frame 8
if (_root.fcOn == 0) {
_root.dibs.gotoAndStop(1);
}
_root.timer_mc.gotoAndStop(1);
_root.spinDone();
Symbol 311 MovieClip Frame 1
function finishUp() {
_root.deferSpin.gotoAndStop(1);
_root.spinButtonOn = 1;
tellTarget ("_root.takespin2") {
gotoAndPlay (2);
};
_root.dibs.gotoAndStop(2);
_root.timer_mc.gotoAndPlay(2);
playSound("C_takespin");
}
stop();
Symbol 311 MovieClip Frame 2
myTime = getTimer();
Symbol 311 MovieClip Frame 3
nowTime = getTimer();
Symbol 311 MovieClip Frame 4
if ((myTime + 7000) > nowTime) {
gotoAndPlay (3);
} else {
if (_root.freeSpins > 0) {
_root.freeSpins = _root.freeSpins - 1;
finishUp();
} else if (_root.score >= _root.deferSpin.cost) {
_root.score = _root.score - _root.deferSpin.cost;
finishUp();
} else {
_root.autoFinalSpin.gotoAndStop(1);
_root.fcOn = 1;
_root.autoDone.gotoAndPlay(2);
_root.tmpsnd = 75;
_root.mySound();
}
gotoAndStop (1);
}
Symbol 312 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 2
myTime = getTimer();
Symbol 312 MovieClip Frame 3
nowTime = getTimer();
Symbol 312 MovieClip Frame 4
if ((myTime + 10000) > nowTime) {
gotoAndPlay (3);
} else {
_root.spinDone();
_root.dibs.gotoAndStop(1);
tellTarget ("_root.takespin2") {
gotoAndStop (1);
};
gotoAndStop (1);
}
Symbol 313 MovieClip Frame 1
function matrixfunction() {
if (i < 25) {
i = i + 1;
gotoAndPlay (6);
} else {
_root.pmatrix = false;
_root.turnSpinOn();
stop();
}
}
function getMyX() {
if (x == 1) {
start = 1;
seq = 5;
}
if (x == 2) {
start = 2;
seq = 5;
}
if (x == 3) {
start = 3;
seq = 5;
}
if (x == 4) {
start = 4;
seq = 5;
}
if (x == 5) {
start = 5;
seq = 5;
}
if (x == 6) {
start = 1;
seq = 1;
}
if (x == 7) {
start = 6;
seq = 1;
}
if (x == 8) {
start = 11;
seq = 1;
}
if (x == 9) {
start = 16;
seq = 1;
}
if (x == 10) {
start = 21;
seq = 1;
}
if (x == 11) {
start = 1;
seq = 6;
}
if (x == 12) {
start = 5;
seq = 4;
}
}
stop();
Symbol 313 MovieClip Frame 2
_root.pmatrix = true;
play();
Symbol 313 MovieClip Frame 5
if ((_root.matrix1.myValue == "") && (_root.matrix2.myValue == "")) {
_root.randomMatrix();
stop();
} else {
_root.mDialog.gotoAndStop(1);
i = 1;
}
Symbol 313 MovieClip Frame 6
tellTarget ("_root.matrix" add i) {
gotoAndStop (2);
};
_root.playSound("C_click");
Symbol 313 MovieClip Frame 7
if (_root.pauseOn != true) {
matrixfunction();
} else {
stop();
}
Symbol 313 MovieClip Frame 9
play();
_root.pspin = true;
Symbol 313 MovieClip Frame 12
_root.numSuperJoker = 0;
Symbol 313 MovieClip Frame 13
i = 1;
Symbol 313 MovieClip Frame 14
tellTarget (("_root.reel" + i) + ".blur") {
gotoAndPlay (2);
};
Symbol 313 MovieClip Frame 16
i = i + 1;
if (i < 6) {
gotoAndPlay (14);
} else {
_root.setReels();
play();
}
Symbol 313 MovieClip Frame 18
i = 1;
numDevils = 0;
Symbol 313 MovieClip Frame 19
if (i == 1) {
if (eval (("_root.reel" + i) + ".myValue") < 16) {
tellTarget ("_root.reel" add i) {
gotoAndStop (2);
};
}
if ((eval (("_root.reel" + i) + ".myValue") > 15) and (eval (("_root.reel" + i) + ".myValue") < 19)) {
Set(("_root.reel" + i) + ".myValue", 100);
tellTarget ("_root.reel" add i) {
gotoAndStop (5);
};
}
if (eval (("_root.reel" + i) + ".myValue") == 19) {
Set(("_root.reel" + i) + ".myValue", 101);
tellTarget ("_root.reel" add i) {
gotoAndStop (3);
};
}
if (eval (("_root.reel" + i) + ".myValue") == 20) {
temp = _root.freeSpins + 1;
temp2 = (20 - _root.spinCount) - _root.freeSpins;
if ((((temp < 5) and (_root.totalFreeSpins < 4)) and (_root.spinCount != 20)) and (temp2 > 0)) {
_root.totalFreeSpins = _root.totalFreeSpins + 1;
Set(("_root.reel" + i) + ".myValue", 102);
tellTarget ("_root.reel" add i) {
gotoAndStop (4);
};
} else {
Set(("_root.reel" + i) + ".myValue", 101);
tellTarget ("_root.reel" add i) {
gotoAndStop (3);
};
}
}
}
if ((i > 1) and (i < 6)) {
if ((eval (("_root.reel" + i) + ".myValue") > 15) and (eval (("_root.reel" + i) + ".myValue") < 19)) {
Set(("_root.reel" + i) + ".myValue", 100);
tellTarget ("_root.reel" add i) {
gotoAndStop (5);
};
}
if (eval (("_root.reel" + i) + ".myValue") == 19) {
Set(("_root.reel" + i) + ".myValue", 101);
tellTarget ("_root.reel" add i) {
gotoAndStop (3);
};
}
}
if (i == 2) {
if (eval (("_root.reel" + i) + ".myValue") < 16) {
Set(("_root.reel" + i) + ".myValue", eval (("_root.reel" + i) + ".myValue") + 15);
tellTarget ("_root.reel" add i) {
gotoAndStop (2);
};
}
if (eval (("_root.reel" + i) + ".myValue") == 20) {
if ((_root.totalDevils < _root.maxAllowedDevils) and (_root.score > 0)) {
numDevils = 1;
_root.totalDevils++;
Set(("_root.reel" + i) + ".myValue", 103);
tellTarget ("_root.reel" add i) {
gotoAndStop (8);
};
} else {
_root.reel2.myValue = 101;
tellTarget ("_root.reel" add i) {
gotoAndStop (3);
};
}
}
}
if (i == 3) {
if (eval (("_root.reel" + i) + ".myValue") < 16) {
Set(("_root.reel" + i) + ".myValue", eval (("_root.reel" + i) + ".myValue") + 30);
tellTarget ("_root.reel" add i) {
gotoAndStop (2);
};
}
if (eval (("_root.reel" + i) + ".myValue") == 20) {
_root.numSuperJoker = 1;
Set(("_root.reel" + i) + ".myValue", 104);
tellTarget ("_root.reel" add i) {
gotoAndStop (6);
};
}
}
if (i == 4) {
if (eval (("_root.reel" + i) + ".myValue") < 16) {
Set(("_root.reel" + i) + ".myValue", eval (("_root.reel" + i) + ".myValue") + 45);
tellTarget ("_root.reel" add i) {
gotoAndStop (2);
};
}
if (eval (("_root.reel" + i) + ".myValue") == 20) {
if (((_root.totalDevils < _root.maxAllowedDevils) and (numDevils != 1)) and (_root.score > 0)) {
_root.totalDevils++;
numDevils = 1;
Set(("_root.reel" + i) + ".myValue", 103);
tellTarget ("_root.reel" add i) {
gotoAndStop (8);
};
} else {
Set(("_root.reel" + i) + ".myValue", 101);
tellTarget ("_root.reel" add i) {
gotoAndStop (3);
};
}
}
}
if (i == 5) {
if (eval (("_root.reel" + i) + ".myValue") < 16) {
Set(("_root.reel" + i) + ".myValue", eval (("_root.reel" + i) + ".myValue") + 60);
tellTarget ("_root.reel" add i) {
gotoAndStop (2);
};
}
if (eval (("_root.reel" + i) + ".myValue") == 20) {
temp = _root.freeSpins + 1;
temp2 = (20 - _root.spinCount) - _root.freeSpins;
if ((((temp < 5) and (_root.totalFreeSpins < 4)) and (_root.spinCount != 20)) and (temp2 > 0)) {
_root.totalFreeSpins = _root.totalFreeSpins + 1;
Set(("_root.reel" + i) + ".myValue", 102);
tellTarget ("_root.reel" add i) {
gotoAndStop (4);
};
} else {
Set(("_root.reel" + i) + ".myValue", 101);
tellTarget ("_root.reel" add i) {
gotoAndStop (3);
};
}
}
}
tellTarget (("_root.reel" + i) + ".blur") {
gotoAndStop (1);
};
xsnd = "C_stop" + i;
_root.playSound(xsnd);
Symbol 313 MovieClip Frame 22
i = i + 1;
if (i < 6) {
gotoAndPlay (19);
} else if (_root.pauseOn != true) {
_root.pspin = false;
asd2 = true;
play();
} else {
stop();
}
Symbol 313 MovieClip Frame 24
myTimerOn = true;
if (numDevils == 0) {
gotoAndPlay (61);
} else {
_root.newDialog._visible = true;
_root.newDialog.gotoAndStop("devil");
myTimerOn = false;
stop();
}
Symbol 313 MovieClip Frame 61
asd1 = true;
i = 1;
while (i < 6) {
Set("target" + i, "");
i++;
}
sort = 0;
i = 1;
while (i < 6) {
if ((eval (("_root.reel" + i) + ".myValue") == 101) or (eval (("_root.reel" + i) + ".myValue") == 102)) {
sort = 1;
}
i++;
}
if (sort == 1) {
k = 1;
numTargets = 0;
i = 1;
while (i < 6) {
if ((eval (("_root.reel" + i) + ".myValue") == 101) or (eval (("_root.reel" + i) + ".myValue") == 102)) {
numTargets = numTargets + 1;
Set("target" + k, i);
k = k + 1;
}
i++;
}
k = 1;
i = target1;
if (myTimerOn == true) {
myTimerOn = false;
_root.timer_mc.gotoAndStop(5);
}
play();
} else {
gotoAndPlay (73);
}
Symbol 313 MovieClip Frame 62
if (eval (("_root.reel" + i) + ".myValue") == 102) {
_root.playSound("C_match");
_root.freeSpins = _root.freeSpins + 1;
tellTarget (("_root.reel" + i) + ".rb") {
gotoAndPlay (5);
};
}
if (eval (("_root.reel" + i) + ".myValue") == 101) {
if (asd1 == true) {
asd1 = false;
_root.playSound("COMBO");
}
_root.playSound("C_coin");
_root.score = _root.score + 1000;
_root.scoreWindow.sh.gotoAndPlay(2);
_root["reel" + i].attachMovie("bonus_points", "bp", 2);
_root["reel" + i].bp._x = 0;
_root["reel" + i].bp._y = -42.5;
_root["reel" + i].bp.value = 1000;
tellTarget (("_root.reel" + i) + ".rb") {
gotoAndPlay (5);
};
}
Symbol 313 MovieClip Frame 64
if (eval (("_root.reel" + i) + ".myValue") == 101) {
_root.playSound("C_coin");
}
Symbol 313 MovieClip Frame 67
k = k + 1;
if (k <= numTargets) {
i = eval ("target" + k);
gotoAndPlay (62);
} else {
play();
}
Symbol 313 MovieClip Frame 68
k = 1;
while (k < 6) {
if ((eval (("_root.reel" + k) + ".myValue") == 101) or (eval (("_root.reel" + k) + ".myValue") == 102)) {
tellTarget (("_root.reel" + k) + ".rf") {
gotoAndStop (4);
};
tellTarget (("_root.reel" + k) + ".rb") {
gotoAndStop (1);
};
}
k++;
}
Symbol 313 MovieClip Frame 73
numJokers = 0;
_root.bonus = 0;
i = 1;
while (i < 6) {
if ((eval (("_root.reel" + i) + ".myValue") == 100) or (eval (("_root.reel" + i) + ".myValue") == 104)) {
numJokers = numJokers + 1;
}
i++;
}
if (numJokers >= 3) {
if (myTimerOn == true) {
myTimerOn = false;
_root.timer_mc.gotoAndStop(5);
}
i = 1;
while (i < 6) {
if ((eval (("_root.reel" + i) + ".myValue") == 100) or (eval (("_root.reel" + i) + ".myValue") == 104)) {
tellTarget (("_root.reel" + i) + ".rb") {
gotoAndPlay (5);
};
}
i++;
}
if (numJokers == 3) {
_root.bonus = 1000;
}
if (numJokers == 4) {
_root.bonus = 2500;
}
if (numJokers == 5) {
_root.bonus = 5000;
}
_root.playSound("COMBO");
_root.newDialog._visible = true;
_root.newDialog.gotoAndStop("joker");
stop();
} else {
gotoAndPlay (85);
}
Symbol 313 MovieClip Frame 85
if (_root.numSuperJoker == 1) {
if (asd2 == true) {
asd2 = false;
_root.timer_mc.gotoAndPlay(2);
}
_root.playSound("levelsound");
_root.matrixOn = 0;
_root.buttonOk = true;
i = 1;
while (i < 26) {
if ((eval (("_root.matrix" + i) + ".myStatus") != 2) and (eval (("_root.matrix" + i) + ".myStatus") != 1)) {
tellTarget ("_root.matrix" + i) {
gotoAndStop (3);
};
}
i++;
}
i = 1;
while (i < 6) {
if (i != 3) {
tellTarget (("_root.reel" + i) + ".rf") {
gotoAndStop (2);
};
}
i++;
}
i = 1;
while (i < 6) {
if ((eval (("_root.reel" + i) + ".myValue") == 100) or (eval (("_root.reel" + i) + ".myValue") == 104)) {
tellTarget (("_root.reel" + i) + ".rb") {
gotoAndPlay (3);
};
}
i++;
}
stop();
} else {
i = 1;
while (i < 6) {
if ((eval (("_root.reel" + i) + ".myValue") == 100) or (eval (("_root.reel" + i) + ".myValue") == 104)) {
tellTarget (("_root.reel" + i) + ".rb") {
gotoAndPlay (3);
};
}
i++;
}
play();
}
Symbol 313 MovieClip Frame 86
if (asd2 == true) {
asd2 = false;
_root.timer_mc.gotoAndPlay(2);
}
if (_root.timerExpired == true) {
_root.dibs.gotoAndStop(1);
_root.takespin2.gotoAndStop(1);
_root.takespin2.pulse.gotoAndStop(1);
_root.spinDone();
} else {
if (myTimerOn == false) {
myTimerOn = true;
_root.timer_mc.gotoAndPlay(4);
}
_root.evalClicks();
if (_root.clicksLeft > 0) {
_root.timer_mc.gotoAndPlay(4);
_root.matrixOn = 1;
_root.buttonOk = true;
i = 1;
while (i < 26) {
if ((eval (("_root.matrix" + i) + ".myStatus") != 2) and (eval (("_root.matrix" + i) + ".myStatus") != 1)) {
tellTarget ("_root.matrix" + i) {
gotoAndStop (3);
};
}
i++;
}
} else {
_root.matrixOn = 0;
i = 1;
while (i < 26) {
if ((eval (("_root.matrix" + i) + ".myStatus") != 2) and (eval (("_root.matrix" + i) + ".myStatus") != 1)) {
tellTarget ("_root.matrix" + i) {
gotoAndStop (2);
};
}
i++;
}
_root.buttonOk = false;
_root.autoDone.gotoAndPlay(2);
}
}
stop();
Symbol 313 MovieClip Frame 88
if ((_root.patternhit == _root.patternArray.length) && (_root.patterndone == false)) {
_root.patterndone = true;
_root.lightUpPattern();
gotoAndStop (87);
} else {
_root.matrixOn = 0;
_root.buttonOk = false;
_root.checkLines();
tmpStop = 0;
v = 1;
while (v < 13) {
if (eval ("_root.match" + v) == 2) {
tmpStop = 1;
v = 44;
}
v++;
}
if (tmpStop == 1) {
x = 1;
play();
} else {
gotoAndStop (86);
}
}
Symbol 313 MovieClip Frame 89
play();
Symbol 313 MovieClip Frame 90
if (eval ("_root.match" + x) == 2) {
Set("_root.match" + x, 1);
_root.score = _root.score + 1000;
_root.scoreWindow.sh.gotoAndPlay(2);
if (x == 1) {
start = 1;
seq = 5;
}
if (x == 2) {
start = 2;
seq = 5;
}
if (x == 3) {
start = 3;
seq = 5;
}
if (x == 4) {
start = 4;
seq = 5;
}
if (x == 5) {
start = 5;
seq = 5;
}
if (x == 6) {
start = 1;
seq = 1;
}
if (x == 7) {
start = 6;
seq = 1;
}
if (x == 8) {
start = 11;
seq = 1;
}
if (x == 9) {
start = 16;
seq = 1;
}
if (x == 10) {
start = 21;
seq = 1;
}
if (x == 11) {
start = 1;
seq = 6;
}
if (x == 12) {
start = 5;
seq = 4;
}
} else {
x = x + 1;
if (x < 13) {
gotoAndPlay (89);
} else {
gotoAndPlay (101);
}
}
Symbol 313 MovieClip Frame 91
i = 1;
_root.playSound("C_slingo");
Symbol 313 MovieClip Frame 92
tellTarget ("_root.oh" + start) {
gotoAndPlay (2);
};
Symbol 313 MovieClip Frame 93
start = start + seq;
i = i + 1;
if (i < 6) {
gotoAndPlay (92);
} else {
_root.playSound("C_coin");
var name = ("oh" + (start - seq));
newname = "bp" + _root.mydepth;
_root.attachMovie("bonus_points", newname, _root.mydepth);
_root.mydepth++;
_root[newname]._x = _root[name]._x;
_root[newname]._y = _root[name]._y - 24;
_root[newname]._xscale = 85;
_root[newname]._yscale = 85;
_root[newname].value = 1000;
nextFrame();
}
Symbol 313 MovieClip Frame 94
x = x + 1;
if (x < 13) {
gotoAndPlay (89);
}
if (x >= 13) {
nextFrame();
}
Symbol 313 MovieClip Frame 95
play();
Symbol 313 MovieClip Frame 101
if (_root.fullGrid == 25) {
_root.fcOn = 1;
_root.newDialog._visible = true;
_root.newDialog.gotoAndStop("fullcard");
stop();
} else {
gotoAndStop (86);
}
Symbol 313 MovieClip Frame 108
k = 1;
while (k < 6) {
tellTarget (("_root.reel" + k) + ".rb") {
gotoAndStop (1);
};
k++;
}
gotoAndPlay (166);
stop();
Symbol 313 MovieClip Frame 124
if (_root.spinCount < 20) {
_root.populateScores();
} else {
gotoAndPlay (166);
}
Symbol 313 MovieClip Frame 166
play();
Symbol 313 MovieClip Frame 172
if ((_root.spinCount < 20) and (_root.gameOver == false)) {
_root.turnSpinOn();
} else {
_root.newDialog._visible = true;
_root.newDialog.gotoAndStop("endgame");
}
stop();
Symbol 318 MovieClip Frame 1
function shuffle(a) {
var i = a.length;
while (i) {
var p = random(i);
var t = a[--i];
a[i] = a[p];
a[p] = t;
}
}
inc = 20;
reelArray = new Array(-10, -50, -100, -150, -190, -227);
stop();
Symbol 318 MovieClip Frame 2
shuffle(reelArray);
are._y = reelArray[0];
play();
Symbol 318 MovieClip Frame 3
play();
Symbol 318 MovieClip Frame 4
are._y = are._y + inc;
gotoAndPlay (3);
Symbol 318 MovieClip Frame 11
gotoAndPlay (2);
Symbol 323 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 2
stop();
Symbol 323 MovieClip Frame 3
stop();
Symbol 323 MovieClip Frame 4
stop();
Symbol 323 MovieClip Frame 5
play();
Symbol 323 MovieClip Frame 11
gotoAndPlay (5);
Symbol 340 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 2
rf.gotoAndStop(3);
stop();
Symbol 340 MovieClip Frame 3
rf.gotoAndStop(3);
stop();
Symbol 340 MovieClip Frame 4
rf.gotoAndStop(3);
stop();
Symbol 340 MovieClip Frame 5
rf.gotoAndStop(3);
stop();
Symbol 340 MovieClip Frame 6
rf.gotoAndStop(3);
stop();
Symbol 340 MovieClip Frame 7
rf.gotoAndStop(3);
stop();
Symbol 340 MovieClip Frame 8
rf.gotoAndStop(3);
stop();
Symbol 341 Button
on (press) {
if (tmp != 0) {
_root.playSound("F_button_click_down");
gotoAndStop (2);
}
}
on (release) {
if (tmp != 0) {
_root.playSound("F_button_click_up");
}
doAction(tmp);
gotoAndStop (1);
}
on (releaseOutside) {
gotoAndStop (1);
}
Symbol 351 MovieClip Frame 1
function getStatus(action, ok) {
if (ok) {
myok = ok;
} else {
myok = 0;
}
centerON = false;
tmp = action;
dark.gotoAndPlay(8);
if (action == 1) {
value = "START\nGAME";
} else if (action == 2) {
_root.buttonOk = true;
value = "START\nSPIN";
} else if (action == 3) {
centerON = true;
value = "OK";
} else if (action == 4) {
value = "CONTINUE\nGAME";
} else if (action == 5) {
value = "GAME\nOVER";
} else if (action == 0) {
value = "";
dark.gotoAndStop(1);
}
getCenter();
}
function doAction(action, ok) {
if (action == 1) {
_root.newDialog._visible = true;
_root.newDialog.gotoAndStop(2);
_root.redbutton.getStatus(3, 1);
} else if (action == 2) {
_root.autoSpin.gotoAndStop(1);
_root.miniclock = false;
_root.timerD = "";
_root.timer_mc.gotoAndStop(1);
_root.takeSpin();
getStatus(0);
gotoAndStop (1);
} else if (action == 3) {
if (myok == 1) {
_root.newDialog._visible = false;
_root.randomMatrix();
getStatus(0);
gotoAndStop (1);
}
if (myok == 2) {
_root.newDialog.doAction("defer");
gotoAndStop (1);
}
if (myok == 3) {
_root.newDialog.gotoAndStop(1);
_root.spinDone();
getStatus(0);
gotoAndStop (1);
}
} else if (action == 4) {
} else if (action == 5) {
}
}
function getCenter() {
if (centerON == true) {
vt1._y = -6.6;
vt2._y = -4.6;
} else {
vt1._y = -15.6;
vt2._y = -13.6;
}
}
getCenter();
stop();
Symbol 351 MovieClip Frame 2
if (centerON == true) {
vt1._y = -6.6;
vt2._y = -8.6;
} else {
vt1._y = -15.6;
vt2._y = -17.6;
}
stop();
Symbol 351 MovieClip Frame 3
gotoAndStop (1);
Instance of Symbol 361 MovieClip "ball3" in Symbol 365 MovieClip Frame 1
/* no clip actions */
Symbol 367 MovieClip Frame 1
stop();
Symbol 369 MovieClip Frame 1
stop();
Symbol 371 Button
on (release) {
exaButton("quit");
}
on (press) {
_root.playSound("click");
}
Symbol 373 Button
on (release) {
exaButton("options");
}
on (press) {
_root.playSound("click");
}
Symbol 375 Button
on (release) {
exaButton("paused");
}
on (press) {
_root.playSound("click");
}
Symbol 383 Button
on (release) {
exaButton("help");
}
on (press) {
_root.playSound("click");
}
Symbol 389 MovieClip Frame 1
stop();
Symbol 395 MovieClip Frame 1
stop();
Symbol 395 MovieClip Frame 2
stop();
Symbol 396 Button
on (release) {
if (((_root.matrixOn == 1) and (myStatus == 0)) or ((_root.numSuperJoker == 1) and (myStatus == 0))) {
dnt._x = -22.6;
dnt._y = -21.9;
_root.placeClick(myReel);
}
}
on (press) {
if (((_root.matrixOn == 1) and (myStatus == 0)) or ((_root.numSuperJoker == 1) and (myStatus == 0))) {
dnt._x = -19.6;
dnt._y = -18.9;
roll.gotoAndStop(3);
}
}
on (rollOver) {
if (((_root.matrixOn == 1) and (myStatus == 0)) or ((_root.numSuperJoker == 1) and (myStatus == 0))) {
roll.gotoAndStop(2);
}
}
on (rollOut, dragOut, releaseOutside) {
if (((_root.matrixOn == 1) and (myStatus == 0)) or ((_root.numSuperJoker == 1) and (myStatus == 0))) {
dnt._x = -22.6;
dnt._y = -21.9;
roll.gotoAndStop(1);
}
}
Symbol 397 MovieClip Frame 1
function process() {
_root.gameOn = 0;
_root.credits = _root.credits + 200;
_root.creditsLight.gotoAndPlay(2);
myStatus = 1;
roll.gotoAndStop(3);
_root.checkLines();
}
stop();
Symbol 397 MovieClip Frame 2
if (shadowOn == true) {
roll.shadow.gotoAndStop(2);
}
dnt._x = -22.6;
dnt._y = -21.9;
stop();
Symbol 397 MovieClip Frame 3
dnt._x = -22.6;
dnt._y = -21.9;
stop();
Symbol 397 MovieClip Frame 4
stop();
Symbol 397 MovieClip Frame 5
play();
Symbol 397 MovieClip Frame 6
tellTarget ("_root.oh" + myReel) {
gotoAndPlay (2);
};
Symbol 398 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 2
i = 0;
while (i < _root.patternArray.length) {
_root["oh" + _root.patternArray[i]].gotoAndPlay("blink");
i++;
}
_root.score = _root.score + 2000;
_root.playSound("claps");
_root.hlp.gotoAndPlay(2);
play();
Symbol 398 MovieClip Frame 15
_root.playSound("C_coin");
_root.attachMovie("bonus_points", "bp", _root.mydepth);
_root.mydepth++;
_root.bp._x = 300;
_root.bp._y = 150;
_root.bp.value = 2000;
Symbol 398 MovieClip Frame 30
_root.gameplay.play();
Symbol 401 MovieClip Frame 1
stop();
Symbol 407 MovieClip Frame 1
stop();
Symbol 407 MovieClip Frame 19
gotoAndStop (1);