Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
stop();
rightClick = new ContextMenu();
rightClick.hideBuiltInItems();
_root.menu = rightClick;
mochi.as2.MochiServices.connect("aae34d9b720db351", endButtons);
allowed = true;
adFailed = false;
mochi.as2.MochiAd.showPreGameAd({id:"aae34d9b720db351", res:"800x600", no_bg:true, color:2697638, background:3947740, outline:3355596, ad_loaded:function (width, height) {
trace("loaded");
adHeight = height;
if (height <= 480) {
attachMovie("header", "header", 2, {_x:400, _y:7});
attachMovie("rect", "rect", 3, {_x:400, _y:300});
rect._width = width + 260;
rect._height = height + 180;
}
}, ad_failed:function () {
trace("failed");
adFailed = true;
if (allowed == true) {
play();
} else {
stop();
sitelock._x = 0;
sitelock._y = 0;
stopAllSounds();
header._visible = false;
}
}, ad_finished:function () {
trace("finished");
trace("adHeight = " + adHeight);
if (adHeight <= 480) {
if (adFailed == false) {
adratio = rect._width / rect._height;
_root.onEnterFrame = function () {
rect._xscale = rect._xscale - (20 * adratio);
rect._yscale = rect._yscale - 20;
if ((rect._width < 40) || (rect._height < 40)) {
removeMovieClip("rect");
delete _root.onEnterFrame;
if (allowed == true) {
play();
} else {
sitelock._x = 0;
sitelock._y = 0;
stopAllSounds();
header._visible = false;
}
}
};
}
} else {
trace("rectSkipped");
if (allowed == true) {
play();
} else {
sitelock._x = 0;
sitelock._y = 0;
stopAllSounds();
header._visible = false;
}
}
}});
__com_mochibot__("de923ebf", this, 10301, true);
endButtons.playagainButton.enabled = false;
endButtons.submitscoreButton.enabled = false;
endButtons.moregamesButton.enabled = false;
endButtons.playagainButton._visible = false;
endButtons.submitscoreButton._visible = false;
endButtons.moregamesButton._visible = false;
Frame 2
allSounds = new Sound(this);
muteBtn.onPress = function () {
if (allSounds.getVolume() == 100) {
allSounds.setVolume(0);
this.gotoAndStop(2);
} else {
allSounds.setVolume(100);
this.gotoAndStop(1);
}
};
stopAllSounds();
Introsound = new Sound(this);
Introsound.attachSound("Introsound");
Introsound.start(0, 999);
endgame = new Sound(this);
endgame.attachSound("endgame");
deal = new Sound(this);
deal.attachSound("deal");
W = new Sound(this);
W.attachSound("welc");
Y = new Sound(this);
Y.attachSound("bell");
coins = new Sound(this);
coins.attachSound("coins");
doublesSound = new Sound(this);
doublesSound.attachSound("ready");
betbutton = new Sound(this);
betbutton.attachSound("button");
betbuttonfail = new Sound(this);
betbuttonfail.attachSound("beep");
winpoint = new Sound(this);
winpoint.attachSound("+point");
losepoint = new Sound(this);
losepoint.attachSound("-point");
pairsound0 = new Sound(this);
pairsound0.attachSound("cool");
pairsound1 = new Sound(this);
pairsound1.attachSound("daddy");
pairsound2 = new Sound(this);
pairsound2.attachSound("groovy");
pairsound3 = new Sound(this);
pairsound3.attachSound("Uber");
pairsound4 = new Sound(this);
pairsound4.attachSound("ooh");
pairsound5 = new Sound(this);
pairsound5.attachSound("Rockit");
threesound0 = new Sound(this);
threesound0.attachSound("yes");
threesound1 = new Sound(this);
threesound1.attachSound("Alright");
threesound2 = new Sound(this);
threesound2.attachSound("goodness");
threesound3 = new Sound(this);
threesound3.attachSound("yeeha");
threesound4 = new Sound(this);
threesound4.attachSound("Youdaman");
threesound5 = new Sound(this);
threesound5.attachSound("wonderful");
flushsound1 = new Sound(this);
flushsound1.attachSound("wow");
flushsound2 = new Sound(this);
flushsound2.attachSound("hooha");
flushsound3 = new Sound(this);
flushsound3.attachSound("outstand");
abovefullsound1 = new Sound(this);
abovefullsound1.attachSound("Whoamama");
abovefullsound2 = new Sound(this);
abovefullsound2.attachSound("best");
abovefullsound3 = new Sound(this);
abovefullsound3.attachSound("brill");
function endofgame() {
if (_root._currentframe > 2) {
if (_root.timer.timeup == true) {
_root.maintext.text = "S O R R Y, T I M E I S U P !";
} else {
_root.maintext.text = "N O M O N E Y L E F T !";
}
scoreboardError = false;
mochi.as2.MochiScores.showLeaderboard({boardID:"1b1cc3e96157aa49", width:460, height:300, hideDoneButton:true, preloaderDisplay:false, onError:function () {
scoreboardError = true;
trace("scoreboardError");
}});
_root.timer.stop();
_root.timer.colour.setRGB(3947740);
stopAllSounds();
endgame.start();
Mouse.show();
_root.jokerBonus.gotoAndStop(1);
_root.jokerBonus.level = 1;
_root.jokerBonus.brickreset();
_root.jokerBonus._visible = false;
_root.RB._visible = false;
_root.paytable._visible = true;
_root.bet = 10;
_root.pointsCounter.gotoAndStop(1);
_root.pointsMC.gotoAndStop(8);
_root.pointsMC.neg = "";
_root.pointsMC.pts = 0;
_root.pointsMC.pointscircle._visible = false;
_root.pointsMC.doublecounter._visible = false;
_root.pointsMC.reward.gotoAndStop(1);
_root.pointsMC.penalty.gotoAndStop(1);
Key.removeListener(_root.backspaceListener);
Key.removeListener(_root.spaceListener);
Key.removeListener(_root.doubleupspaceListener);
Key.removeListener(_root.enterListener);
_root.cashButton.enabled = false;
_root.dealButton.enabled = false;
_root.dealButton.gotoAndStop(15);
_root.doubleButton.enabled = false;
_root.doubleButton.gotoAndStop(15);
_root.takewinButton.enabled = false;
_root.takewinButton.gotoAndStop(15);
_root.timerpauseBtn.enabled = false;
_root.timerpauseBtn.gotoAndStop(2);
_root.paytable.unlock.gotoAndStop(1);
_root.bet10.enabled = false;
_root.bet20.enabled = false;
_root.bet50.enabled = false;
_root.bet100.enabled = false;
_root.bet1000.enabled = false;
_root.bet10.gotoAndStop(5);
_root.bet20.gotoAndStop(1);
_root.bet50.gotoAndStop(1);
_root.bet100.gotoAndStop(1);
_root.bet1000.gotoAndStop(1);
_root.paytable.box1.gotoAndStop(18);
d = 2;
while (d <= 5) {
_root.paytable["box" + d].gotoAndStop(1);
i = 0;
while (i <= 10) {
_root.paytable.paytable1["c" + i].setRGB(4605510);
_root.paytable["paytable" + d]["c" + i].setRGB(3947740);
_root.paytable["c" + i].setRGB(4605510);
i++;
}
d++;
}
t = 0;
while (t <= 4) {
if (_root.cardarray[t] == 54) {
_root["C" + (t + 1)].joker.gotoAndStop(1);
}
t++;
}
f = 1;
while (f <= 5) {
_root["C" + f]._visible = false;
f++;
}
g = 0;
_root.endButtons.onEnterFrame = function () {
g++;
if (g == 20) {
_root.endButtons.submitscoreButton._visible = true;
if (_root.timer.timeup == true) {
_root.endButtons.submitscoreButton._alpha = 100;
} else {
_root.endButtons.submitscoreButton._alpha = 50;
}
}
if (g == 22) {
_root.endButtons.playagainButton._visible = true;
}
if (g == 24) {
_root.endButtons.moregamesButton._visible = true;
}
if (g == 70) {
_root.endButtons.playagainButton.enabled = true;
_root.endButtons.moregamesButton.enabled = true;
if (_root.timer.timeup == true) {
if (scoreboardError == true) {
_root.endButtons.submitscoreButton._alpha = 50;
_root.endButtons.submitscoreButton.enabled = false;
_root.maintext.text = "C O N N E C T T O I N T E R N E T T O S U B M I T S C O R E !";
} else {
_root.endButtons.submitscoreButton.enabled = true;
}
}
delete _root.endButtons.onEnterFrame;
}
};
_root.credit = _root.credit + _root.win;
if (_root.credit > 1E16) {
_root.credit = 1E16;
}
_root.win = 0;
mochi.as2.MochiEvents.endPlay();
}
}
mochi.as2.MochiAd.showClickAwayAd({clip:Intro.clickawayAd_mc, id:"aae34d9b720db351"});
mochi.as2.MochiEvents.startPlay();
stop();
attachMovie("header", "header", 2, {_x:400, _y:7});
gamecount = 0;
turn = 0;
win = 0;
credit = 0;
bet = 10;
z = 1;
q = 0;
points = 0;
doubles = false;
maintext.text = "";
temptext = maintext.text;
Intro.introButton.tabEnabled = false;
paytable.unlock.tabEnabled = false;
doubleButton.tabEnabled = false;
takewinButton.tabEnabled = false;
dealButton.tabEnabled = false;
cashButton.tabEnabled = false;
bet10.tabEnabled = false;
bet20.tabEnabled = false;
bet50.tabEnabled = false;
bet100.tabEnabled = false;
bet1000.tabEnabled = false;
_root.timerpauseBtn.tabEnabled = false;
header._visible = true;
endButtons.playagainButton.enabled = false;
endButtons.submitscoreButton.enabled = false;
endButtons.moregamesButton.enabled = false;
endButtons.playagainButton._visible = false;
endButtons.submitscoreButton._visible = false;
endButtons.moregamesButton._visible = false;
jokerBonus._visible = false;
doubleButton.enabled = false;
doubleButton.gotoAndStop(15);
takewinButton.enabled = false;
takewinButton.gotoAndStop(15);
dealButton.enabled = false;
dealButton.gotoAndStop(15);
cashButton.enabled = true;
cashButton._visible = false;
cashB = false;
thousandbet = false;
specialBonus._visible = false;
special = false;
bet1000._visible = false;
bet10.enabled = false;
bet20.enabled = false;
bet50.enabled = false;
bet100.enabled = false;
bet1000.enabled = false;
bet1000._visible = false;
_root.timer.gotoAndStop(1);
_root.timerpauseBtn.enabled = false;
_root.timerpauseBtn.gotoAndStop(2);
_root.timerpause = false;
_root.paytable._visible = true;
_root.RB._visible = false;
_root.hold._visible = false;
_root.BBL.gotoAndStop(1);
g = 1;
while (g <= 5) {
_root["C" + g]._visible = true;
_root["C" + g]._alpha = 100;
_root["C" + g].gotoAndStop(1);
g++;
}
var doubleupspaceListener = new Object(this);
doubleupspaceListener.onKeyDown = function () {
if (Key.getCode() == 32) {
if ((_root.doubles == true) && (_root.win > 0)) {
_root.takewinButton.gotoAndStop(3);
}
}
};
doubleupspaceListener.onKeyUp = function () {
if (Key.getCode() == 32) {
if ((_root.doubles == true) && (_root.win > 0)) {
Key.removeListener(doubleupspaceListener);
_root.takewinButton.enabled = false;
Mouse.show();
_root.takewinButton.play();
_root.RB.gotoAndPlay("return to main game");
stopAllSounds();
_root.betbutton.start();
_root.maintext.text = "C O L L E C T W I N !";
_root.temptext = "";
}
}
};
var spaceListener = new Object();
spaceListener.onKeyDown = function () {
if (Key.getCode() == 32) {
if (((_root._currentframe <= 3) || ((_root._currentframe == 31) && (_root.doubles == false))) || ((_root._currentframe == 30) && (_root.turn == 1))) {
_root.dealButton.gotoAndStop(3);
}
}
};
spaceListener.onKeyUp = function () {
if (Key.getCode() == 32) {
if (_root._currentframe <= 3) {
if ((_root.credit < _root.bet) && (_root.credit >= 10)) {
_root.maintext.text = "D E C R E A S E B E T !";
_root.temptext = _root.maintext.text;
_root.betbuttonfail.start();
_root.dealButton.gotoAndStop(1);
} else if (_root.credit < 10) {
_root.maintext.text = "D E P O S I T M O N E Y !";
_root.temptext = _root.maintext.text;
_root.betbuttonfail.start();
_root.dealButton.gotoAndStop(1);
} else {
Key.removeListener(spaceListener);
_root.dealButton.play();
stopAllSounds();
_root.betbutton.start();
_root.credit = _root.credit - _root.bet;
_root.play();
_root.takewinButton.gotoAndStop(15);
_root.doubleButton.gotoAndStop(15);
}
}
if (((_root._currentframe == 31) && (_root.doubles == false)) && (_root.joker == 0)) {
if (((_root.credit + _root.win) < _root.bet) && ((_root.credit + _root.win) >= 10)) {
_root.maintext.text = "D E C R E A S E B E T !";
_root.temptext = _root.maintext.text;
_root.betbuttonfail.start();
_root.dealButton.gotoAndStop(1);
} else if ((_root.credit + _root.win) < 10) {
_root.maintext.text = "I N S E R T M O N E Y !";
_root.temptext = _root.maintext.text;
_root.betbuttonfail.start();
_root.dealButton.gotoAndStop(1);
} else {
Key.removeListener(spaceListener);
_root.dealButton.play();
stopAllSounds();
_root.betbutton.start();
if (((((_root.credit + _root.win) >= 2000) && (_root.cashB == false)) || (((_root.credit + _root.win) >= 20000) && (_root.thousandbet == false))) || (((_root.credit + _root.win) >= 100000) && (_root.special == false))) {
_root.gotoAndStop(3);
} else {
if ((_root.credit == 0) && (_root.win == _root.bet)) {
_root.credit_win_zero = true;
}
_root.credit = _root.credit - _root.bet;
if ((_root.credit == 0) && (_root.win == 0)) {
_root.credit_win_zero = true;
}
_root.gotoAndPlay(3);
}
_root.maintext.text = "";
_root.temptext = _root.maintext.text;
_root.takewinButton.gotoAndStop(15);
_root.doubleButton.gotoAndStop(15);
}
}
if ((_root._currentframe == 30) && (_root.turn == 1)) {
Key.removeListener(spaceListener);
_root.dealButton.play();
_root.betbutton.start();
if (_root.hold1 == false) {
_root.C1.gotoAndStop(1);
}
if (_root.hold2 == false) {
_root.C2.gotoAndStop(1);
}
if (_root.hold3 == false) {
_root.C3.gotoAndStop(1);
}
if (_root.hold4 == false) {
_root.C4.gotoAndStop(1);
}
if (_root.hold5 == false) {
_root.C5.gotoAndStop(1);
}
_root.maintext.text = "";
_root.temptext = _root.maintext.text;
_root.hold._visible = false;
_root.gotoAndPlay(4);
}
i = 0;
while (i <= 10) {
_root.paytable["paytable" + z]["c" + i].setRGB(4605510);
_root.paytable["c" + i].setRGB(4605510);
i++;
}
Mouse.show();
}
};
var backspaceListener = new Object();
backspaceListener.onKeyDown = function () {
if (Key.getCode() == 8) {
Key.removeListener(backspaceListener);
if ((((_root.cashB == true) && (_root.turn != 1)) && (_root.doubles == false)) && (_root.q == 0)) {
_root.cashButton.metal.start();
if ((_root.credit == 0) && (_root.win == 0)) {
_root.dealButton.enabled = false;
_root.dealButton.gotoAndStop(15);
Key.removeListener(spaceListener);
_root.credit = 500;
_root.cashButton.gotoAndPlay(3);
_root.maintext.text = "C A S H I N $ 5 0 0 !";
_root.temptext = _root.maintext.text;
_root.q = -2;
_root.pointsMC.doublecounter._visible = true;
_root.pointsMC.doublecounter.doublecount = _root.q;
coins.start();
coins.onSoundComplete = function () {
_root.pointsCounter.play();
_root.gotoAndStop(3);
};
} else {
_root.maintext.text = "U S E Y O U R C R E D I T S !";
Key.addListener(backspaceListener);
}
}
}
};
var enterListener = new Object();
enterListener.onKeyDown = function () {
if (Key.getCode() == 13) {
if (((((((_root.turn != 1) && (_root.win > 0)) && (_root.doubles == false)) && (_root.q == 0)) && (_root.joker == 0)) && (!_root.timerpause)) && (_root.frame30end == true)) {
_root.doubleButton.gotoAndStop(3);
}
}
};
enterListener.onKeyUp = function () {
if (Key.getCode() == 13) {
Mouse.show();
if (((((((_root.turn != 1) && (_root.win > 0)) && (_root.doubles == false)) && (_root.q == 0)) && (_root.joker == 0)) && (!_root.timerpause)) && (_root.frame30end == true)) {
Key.removeListener(enterListener);
_root.doubleButton.play();
_root.doubles = true;
Key.addListener(_root.doubleupspaceListener);
Key.removeListener(spaceListener);
_root.dealButton.enabled = false;
_root.dealButton.gotoAndStop(15);
Key.removeListener(backspaceListener);
_root.cashButton.enabled = false;
_root.doubleButton.enabled = false;
_root.bet10.enabled = false;
_root.bet20.enabled = false;
_root.bet50.enabled = false;
_root.bet100.enabled = false;
_root.bet1000.enabled = false;
stopAllSounds();
_root.maintext.text = "";
_root.temptext = _root.maintext.text;
_root.doublesSound.start();
g = 1;
while (g <= 5) {
_root["C" + g]._visible = false;
g++;
}
_root.paytable._visible = false;
_root.pointsMC.pointscircle._visible = true;
_root.pointsMC.doublecounter._visible = true;
_root.RB._visible = true;
_root.RB.gotoAndStop(1);
_root.maintext.text = "C L I C K R E D, B L A C K O R S U I T";
_root.temptext = _root.maintext.text;
i = 0;
while (i <= 10) {
_root.paytable["paytable" + _root.z]["c" + i].setRGB(4605510);
_root.paytable["c" + i].setRGB(4605510);
i++;
}
_root.timer.stop();
_root.timerpauseBtn.gotoAndStop(2);
_root.timerpauseBtn.enabled = false;
}
}
};
Instance of Symbol 129 MovieClip "hold" in Frame 2
onClipEvent (load) {
bleep = new Sound(this);
bleep.attachSound("bleep");
h = 1;
while (h <= 5) {
_root.hold["button_hold" + h].tabEnabled = false;
h++;
}
}
Instance of Symbol 202 MovieClip "jokerBonus" in Frame 2
onClipEvent (load) {
function brickreset() {
bricknumber = 0;
i = 1;
while (i <= 15) {
this["colour" + i].setRGB(eval (("level" + level) + "colour"));
i++;
}
this.blocktitle.setRGB(eval (("level" + level) + "colour"));
this.brickbackground.setRGB(eval (("level" + level) + "neg"));
this.endcolour.setRGB(eval (("level" + level) + "neg"));
r = 1;
while (r <= 5) {
this["brickvalue" + r] = 1 * level;
r++;
}
r = 6;
while (r <= 9) {
this["brickvalue" + r] = 2 * level;
r++;
}
r = 10;
while (r <= 12) {
this["brickvalue" + r] = 3 * level;
r++;
}
r = 13;
while (r <= 14) {
this["brickvalue" + r] = 4 * level;
r++;
}
this.brickvalue15 = 5 * level;
this.targetcount = this[("level" + level) + "target"];
this.multiplier.text = level + "X";
this.multiplier.textColor = eval (("level" + level) + "colour");
}
stop();
level = 1;
jokerBonusWin = new Sound(this);
jokerBonusWin.attachSound("jokerBonusWin");
jokerBonusLose = new Sound(this);
jokerBonusLose.attachSound("jokerBonusLose");
i = 1;
while (i <= 15) {
this["colour" + i] = new Color(eval ("brick" + i));
i++;
}
this.blocktitle = new Color(blocktitle);
this.brickbackground = new Color(brick_num_bg);
this.endcolour = new Color(end);
level1colour = 26265;
level2colour = 11108714 /* 0xA9816A */;
p = 3;
while (p <= 99) {
this[("level" + p) + "colour"] = 10040217 /* 0x993399 */;
p++;
}
level1neg = 8519680 /* 0x820000 */;
level2neg = 6697779 /* 0x663333 */;
p = 3;
while (p <= 99) {
this[("level" + p) + "neg"] = 3355494 /* 0x333366 */;
p++;
}
level1target = 9;
level2target = 12;
p = 3;
while (p <= 99) {
this[("level" + p) + "target"] = 15;
p++;
}
brickreset();
}
Instance of Symbol 329 MovieClip "muteBtn" in Frame 2
onClipEvent (load) {
stop();
}
Instance of Symbol 352 MovieClip "cashButton" in Frame 2
onClipEvent (load) {
metal = new Sound(this);
metal.attachSound("metal");
CashSound = new Sound(this);
CashSound.attachSound("CashSound");
siren = new Sound(this);
siren.attachSound("siren");
}
on (rollOver) {
if (this._currentframe == 1) {
_root.maintext.text = "C L I C K O R P R E S S < B a c k s p a c e >";
metal.start();
this.gotoAndStop(2);
}
}
on (releaseOutside, rollOut) {
if (this._currentframe == 2) {
this.gotoAndStop(1);
}
if (_root.win > 0) {
_root.maintext.text = "D O U B L E U P O R T A K E W I N !";
_root.temptext = _root.maintext.text;
} else {
_root.maintext.text = _root.temptext;
}
}
on (release) {
if (((_root.turn != 1) && (_root.doubles == false)) && (_root.q == 0)) {
if ((_root.credit == 0) && (_root.win == 0)) {
_root.dealButton.enabled = false;
_root.dealButton.gotoAndStop(15);
Key.removeListener(_root.spaceListener);
_root.credit = 500;
this.gotoAndPlay(3);
_root.maintext.text = "C A S H I N $ 5 0 0";
_root.temptext = "S E L E C T B E T A M O U N T A N D P L A Y !";
_root.q = -2;
_root.pointsMC.doublecounter._visible = true;
_root.pointsMC.doublecounter.doublecount = _root.q;
_root.coins.start();
_root.coins.onSoundComplete = function () {
_root.pointsCounter.play();
};
_root.gotoAndStop(3);
} else {
_root.maintext.text = "U S E Y O U R C R E D I T S !";
}
}
}
Instance of Symbol 366 MovieClip "pointsCounter" in Frame 2
onClipEvent (load) {
bells = new Sound(this);
bells.attachSound("bells");
}
Instance of Symbol 366 MovieClip "pointsCounter" in Frame 2
onClipEvent (load) {
bells = new Sound(this);
bells.attachSound("bells");
}
Instance of Symbol 560 MovieClip "pointsMC" in Frame 2
onClipEvent (load) {
gotoAndStop (8);
}
Instance of Symbol 566 MovieClip "timer" in Frame 2
onClipEvent (load) {
this.colour = new Color(this);
this.colour.setRGB(3947740);
}
Instance of Symbol 577 MovieClip "timerpauseBtn" in Frame 2
on (press) {
if (_root.timerpause && (_root.q == 0)) {
this.gotoAndStop(1);
_root.timer.play();
_root.maintext.text = _root.temptext;
Key.addListener(_root.backspaceListener);
Key.addListener(_root.spaceListener);
_root.cashButton.enabled = true;
_root.dealButton.enabled = true;
_root.dealButton.gotoAndStop(1);
if (_root.win > 0) {
_root.doubleButton.enabled = true;
_root.doubleButton.gotoAndStop(1);
Key.addListener(enterListener);
_root.takewinButton.enabled = true;
_root.takewinButton.gotoAndStop(1);
}
if (_root.z != 1) {
_root.bet10.enabled = true;
}
if (_root.z != 2) {
_root.bet20.enabled = true;
}
if (_root.z != 3) {
_root.bet50.enabled = true;
}
if (_root.z != 4) {
_root.bet100.enabled = true;
}
if ((_root.z != 5) && (_root.credit >= 20000)) {
_root.bet1000.enabled = true;
}
}
if (((!_root.timerpause) && (_root.q == 0)) && (_root.timer.timeup == false)) {
this.gotoAndStop(2);
_root.timer.stop();
_root.maintext.text = "T I M E R P A U S E D";
Key.removeListener(_root.backspaceListener);
Key.removeListener(_root.spaceListener);
Key.removeListener(_root.enterListener);
_root.cashButton.enabled = false;
_root.dealButton.enabled = false;
_root.dealButton.gotoAndStop(15);
_root.doubleButton.enabled = false;
_root.doubleButton.gotoAndStop(15);
_root.takewinButton.enabled = false;
_root.takewinButton.gotoAndStop(15);
_root.bet10.enabled = false;
_root.bet20.enabled = false;
_root.bet50.enabled = false;
_root.bet100.enabled = false;
_root.bet1000.enabled = false;
}
_root.timerpause = !_root.timerpause;
}
Instance of Symbol 585 MovieClip "bet1000" in Frame 2
onClipEvent (load) {
stop();
}
on (rollOver) {
if (_root.paytable.box5._currentframe < 3) {
_root.paytable.box5.gotoAndStop(2);
gotoAndStop (2);
}
}
on (rollOut) {
if (_root.paytable.box5._currentframe < 3) {
_root.paytable.box5.gotoAndStop(1);
gotoAndStop (1);
}
}
on (press) {
if (_root.paytable.box5._currentframe < 3) {
this.enabled = false;
_root.bet10.enabled = true;
_root.bet20.enabled = true;
_root.bet50.enabled = true;
_root.bet100.enabled = true;
gotoAndStop (5);
_root.bet10.gotoAndStop(1);
_root.bet20.gotoAndStop(1);
_root.bet50.gotoAndStop(1);
_root.bet100.gotoAndStop(1);
_root.bet = 1000;
_root.z = 5;
if (_root._currentframe == 31) {
_root.gotoAndStop(3);
_root.maintext.text = "";
_root.temptext = _root.maintext.text;
}
_root.paytable.box5.gotoAndPlay(3);
d = 1;
while (d <= 4) {
_root.paytable["box" + d].gotoAndStop(1);
i = 0;
while (i <= 10) {
_root.paytable.paytable5["c" + i].setRGB(4605510);
_root.paytable["paytable" + d]["c" + i].setRGB(3947740);
_root.paytable["c" + i].setRGB(4605510);
i++;
}
d++;
}
}
}
Instance of Symbol 600 MovieClip "bet20" in Frame 2
onClipEvent (load) {
stop();
}
on (rollOver) {
if (_root.paytable.box2._currentframe < 3) {
_root.paytable.box2.gotoAndStop(2);
gotoAndStop (2);
}
}
on (rollOut) {
if (_root.paytable.box2._currentframe < 3) {
_root.paytable.box2.gotoAndStop(1);
gotoAndStop (1);
}
}
on (press) {
if (_root.paytable.box2._currentframe < 3) {
this.enabled = false;
_root.bet10.enabled = true;
_root.bet50.enabled = true;
_root.bet100.enabled = true;
_root.bet1000.enabled = true;
gotoAndStop (5);
_root.bet10.gotoAndStop(1);
_root.bet50.gotoAndStop(1);
_root.bet100.gotoAndStop(1);
_root.bet1000.gotoAndStop(1);
_root.bet = 20;
_root.z = 2;
if (_root._currentframe == 31) {
_root.gotoAndStop(3);
_root.maintext.text = "";
_root.temptext = _root.maintext.text;
}
_root.paytable.box2.gotoAndPlay(3);
_root.paytable.box1.gotoAndStop(1);
i = 0;
while (i <= 10) {
_root.paytable.paytable1["c" + i].setRGB(3947740);
_root.paytable.paytable2["c" + i].setRGB(4605510);
_root.paytable["c" + i].setRGB(4605510);
d = 3;
while (d <= 5) {
_root.paytable["box" + d].gotoAndStop(1);
_root.paytable["paytable" + d]["c" + i].setRGB(3947740);
d++;
}
i++;
}
}
}
Instance of Symbol 607 MovieClip "bet10" in Frame 2
onClipEvent (load) {
gotoAndStop (5);
this.enabled = false;
}
on (rollOver) {
if (_root.paytable.box1._currentframe < 3) {
_root.paytable.box1.gotoAndStop(2);
gotoAndStop (2);
}
}
on (rollOut) {
if (_root.paytable.box1._currentframe < 3) {
_root.paytable.box1.gotoAndStop(1);
gotoAndStop (1);
}
}
on (press) {
if (_root.paytable.box1._currentframe < 3) {
this.enabled = false;
_root.bet20.enabled = true;
_root.bet50.enabled = true;
_root.bet100.enabled = true;
_root.bet1000.enabled = true;
gotoAndStop (5);
_root.bet20.gotoAndStop(1);
_root.bet50.gotoAndStop(1);
_root.bet100.gotoAndStop(1);
_root.bet1000.gotoAndStop(1);
_root.bet = 10;
_root.z = 1;
if (_root._currentframe == 31) {
_root.gotoAndStop(3);
_root.maintext.text = "";
_root.temptext = _root.maintext.text;
}
_root.paytable.box1.gotoAndPlay(3);
d = 2;
while (d <= 5) {
_root.paytable["box" + d].gotoAndStop(1);
i = 0;
while (i <= 10) {
_root.paytable.paytable1["c" + i].setRGB(4605510);
_root.paytable["paytable" + d]["c" + i].setRGB(3947740);
_root.paytable["c" + i].setRGB(4605510);
i++;
}
d++;
}
}
}
Instance of Symbol 614 MovieClip "bet50" in Frame 2
onClipEvent (load) {
stop();
}
on (rollOver) {
if (_root.paytable.box3._currentframe < 3) {
_root.paytable.box3.gotoAndStop(2);
gotoAndStop (2);
}
}
on (rollOut) {
if (_root.paytable.box3._currentframe < 3) {
_root.paytable.box3.gotoAndStop(1);
gotoAndStop (1);
}
}
on (press) {
if (_root.paytable.box3._currentframe < 3) {
this.enabled = false;
_root.bet10.enabled = true;
_root.bet20.enabled = true;
_root.bet100.enabled = true;
_root.bet1000.enabled = true;
gotoAndStop (5);
_root.bet10.gotoAndStop(1);
_root.bet20.gotoAndStop(1);
_root.bet100.gotoAndStop(1);
_root.bet1000.gotoAndStop(1);
_root.bet = 50;
_root.z = 3;
if (_root._currentframe == 31) {
_root.gotoAndStop(3);
_root.maintext.text = "";
_root.temptext = _root.maintext.text;
}
_root.paytable.box3.gotoAndPlay(3);
i = 0;
while (i <= 10) {
_root.paytable.paytable3["c" + i].setRGB(4605510);
_root.paytable["c" + i].setRGB(4605510);
d = 1;
while (d <= 2) {
_root.paytable["box" + d].gotoAndStop(1);
_root.paytable["paytable" + d]["c" + i].setRGB(3947740);
d++;
}
d = 4;
while (d <= 5) {
_root.paytable["box" + d].gotoAndStop(1);
_root.paytable["paytable" + d]["c" + i].setRGB(3947740);
d++;
}
i++;
}
}
}
Instance of Symbol 621 MovieClip "bet100" in Frame 2
onClipEvent (load) {
stop();
}
on (rollOver) {
if (_root.paytable.box4._currentframe < 3) {
_root.paytable.box4.gotoAndStop(2);
gotoAndStop (2);
}
}
on (rollOut) {
if (_root.paytable.box4._currentframe < 3) {
_root.paytable.box4.gotoAndStop(1);
gotoAndStop (1);
}
}
on (press) {
if (_root.paytable.box4._currentframe < 3) {
this.enabled = false;
_root.bet10.enabled = true;
_root.bet20.enabled = true;
_root.bet50.enabled = true;
_root.bet1000.enabled = true;
gotoAndStop (5);
_root.bet10.gotoAndStop(1);
_root.bet20.gotoAndStop(1);
_root.bet50.gotoAndStop(1);
_root.bet1000.gotoAndStop(1);
_root.bet = 100;
_root.z = 4;
if (_root._currentframe == 31) {
_root.gotoAndStop(3);
_root.maintext.text = "";
_root.temptext = _root.maintext.text;
}
_root.paytable.box4.gotoAndPlay(3);
_root.paytable.box5.gotoAndStop(1);
i = 0;
while (i <= 10) {
_root.paytable.paytable4["c" + i].setRGB(4605510);
_root.paytable.paytable5["c" + i].setRGB(3947740);
_root.paytable["c" + i].setRGB(4605510);
d = 1;
while (d <= 3) {
_root.paytable["box" + d].gotoAndStop(1);
_root.paytable["paytable" + d]["c" + i].setRGB(3947740);
d++;
}
i++;
}
}
}
Instance of Symbol 631 MovieClip "doubleButton" in Frame 2
on (press, dragOver) {
Mouse.hide();
this.gotoAndStop(3);
}
on (dragOut) {
Mouse.show();
this.gotoAndStop(1);
}
on (rollOver) {
_root.maintext.text = "C L I C K O R P R E S S < E n t e r >";
this.gotoAndStop(2);
}
on (releaseOutside, rollOut) {
_root.maintext.text = "D O U B L E U P O R T A K E W I N !";
_root.temptext = _root.maintext.text;
this.gotoAndStop(1);
}
on (release) {
Mouse.show();
if (((((((_root.turn != 1) && (_root.win > 0)) && (_root.doubles == false)) && (_root.q == 0)) && (_root.joker == 0)) && (!_root.timerpause)) && (_root.frame30end == true)) {
this.play();
_root.doubles = true;
Key.addListener(_root.doubleupspaceListener);
Key.removeListener(spaceListener);
_root.dealButton.enabled = false;
_root.dealButton.gotoAndStop(15);
Key.removeListener(backspaceListener);
_root.cashButton.enabled = false;
_root.doubleButton.enabled = false;
Key.removeListener(enterListener);
_root.bet10.enabled = false;
_root.bet20.enabled = false;
_root.bet50.enabled = false;
_root.bet100.enabled = false;
_root.bet1000.enabled = false;
stopAllSounds();
_root.maintext.text = "";
_root.temptext = _root.maintext.text;
_root.doublesSound.start();
g = 1;
while (g <= 5) {
_root["C" + g]._visible = false;
g++;
}
_root.paytable._visible = false;
_root.pointsMC.pointscircle._visible = true;
_root.pointsMC.doublecounter._visible = true;
_root.RB._visible = true;
_root.RB.gotoAndStop(1);
_root.maintext.text = "C L I C K R E D, B L A C K O R S U I T";
_root.temptext = _root.maintext.text;
i = 0;
while (i <= 10) {
_root.paytable["paytable" + _root.z]["c" + i].setRGB(4605510);
_root.paytable["c" + i].setRGB(4605510);
i++;
}
_root.timer.stop();
_root.timerpauseBtn.gotoAndStop(2);
_root.timerpauseBtn.enabled = false;
}
}
Instance of Symbol 636 MovieClip "takewinButton" in Frame 2
on (press, dragOver) {
Mouse.hide();
this.gotoAndStop(3);
}
on (dragOut) {
Mouse.show();
this.gotoAndStop(1);
}
on (rollOver) {
if (_root.doubles == false) {
_root.maintext.text = "C L I C K T O B A N K Y O U R W I N !";
this.gotoAndStop(2);
}
if ((_root.doubles == true) && (_root.win > 0)) {
_root.maintext.text = "C L I C K O R P R E S S < S p a c e b a r >";
this.gotoAndStop(2);
}
}
on (releaseOutside, rollOut) {
_root.maintext.text = "D O U B L E U P O R T A K E W I N !";
_root.temptext = _root.maintext.text;
this.gotoAndStop(1);
}
on (release) {
this.enabled = false;
Mouse.show();
this.play();
if (_root.doubles == false) {
i = 0;
while (i <= 10) {
_root.paytable["paytable" + _root.z]["c" + i].setRGB(4605510);
_root.paytable["c" + i].setRGB(4605510);
i++;
}
_root.dealButton.gotoAndStop(1);
_root.doubleButton.gotoAndStop(15);
_root.betbutton.start();
_root.gotoAndStop(3);
_root.maintext.text = "C O L L E C T W I N !";
_root.temptext = "";
}
if ((_root.doubles == true) && (_root.win > 0)) {
_root.RB.gotoAndPlay("return to main game");
stopAllSounds();
_root.betbutton.start();
_root.maintext.text = "C O L L E C T W I N !";
_root.temptext = "";
}
}
Instance of Symbol 641 MovieClip "dealButton" in Frame 2
on (press, dragOver) {
Mouse.hide();
this.gotoAndStop(3);
}
on (dragOut) {
Mouse.show();
this.gotoAndStop(1);
}
on (rollOver) {
_root.maintext.text = "C L I C K O R P R E S S < S p a c e b a r >";
this.gotoAndStop(2);
}
on (releaseOutside, rollOut) {
this.gotoAndStop(1);
if (_root._currentframe <= 3) {
_root.maintext.text = _root.temptext;
}
if (_root._currentframe >= 30) {
if (_root.win > 0) {
_root.maintext.text = "D O U B L E U P O R T A K E W I N !";
_root.temptext = _root.maintext.text;
} else {
_root.maintext.text = _root.temptext;
}
}
}
on (release) {
Mouse.show();
Key.removeListener(spaceListener);
i = 0;
while (i <= 10) {
_root.paytable["paytable" + _root.z]["c" + i].setRGB(4605510);
_root.paytable["c" + i].setRGB(4605510);
i++;
}
if (_root._currentframe <= 3) {
if ((_root.credit < _root.bet) && (_root.credit >= 10)) {
_root.maintext.text = "D E C R E A S E B E T !";
_root.temptext = _root.maintext.text;
_root.betbuttonfail.start();
this.gotoAndStop(2);
} else if (_root.credit < 10) {
_root.maintext.text = "D E P O S I T M O N E Y !";
_root.temptext = _root.maintext.text;
_root.betbuttonfail.start();
this.gotoAndStop(2);
} else {
stopAllSounds();
this.play();
_root.betbutton.start();
_root.credit = _root.credit - _root.bet;
_root.play();
}
}
if (((_root._currentframe == 31) && (_root.doubles == false)) && (_root.joker == 0)) {
if (((_root.credit + _root.win) < _root.bet) && ((_root.credit + _root.win) >= 10)) {
_root.maintext.text = "D E C R E A S E B E T !";
_root.temptext = _root.maintext.text;
_root.betbuttonfail.start();
this.gotoAndStop(2);
} else if ((_root.credit + _root.win) < 10) {
_root.maintext.text = "D E P O S I T M O N E Y !";
_root.temptext = _root.maintext.text;
_root.betbuttonfail.start();
this.gotoAndStop(2);
} else {
stopAllSounds();
this.play();
_root.betbutton.start();
if (((((_root.credit + _root.win) >= 2000) && (_root.cashB == false)) || (((_root.credit + _root.win) >= 20000) && (_root.thousandbet == false))) || (((_root.credit + _root.win) >= 100000) && (_root.special == false))) {
_root.gotoAndStop(3);
} else {
if ((_root.credit == 0) && (_root.win == _root.bet)) {
_root.credit_win_zero = true;
}
_root.credit = _root.credit - _root.bet;
if ((_root.credit == 0) && (_root.win == 0)) {
_root.credit_win_zero = true;
}
_root.gotoAndPlay(3);
}
_root.maintext.text = "";
_root.temptext = _root.maintext.text;
}
}
if ((_root._currentframe == 30) && (_root.turn == 1)) {
_root.betbutton.start();
if (_root.hold1 == false) {
_root.C1.gotoAndStop(1);
}
if (_root.hold2 == false) {
_root.C2.gotoAndStop(1);
}
if (_root.hold3 == false) {
_root.C3.gotoAndStop(1);
}
if (_root.hold4 == false) {
_root.C4.gotoAndStop(1);
}
if (_root.hold5 == false) {
_root.C5.gotoAndStop(1);
}
_root.maintext.text = "";
_root.temptext = _root.maintext.text;
_root.hold._visible = false;
_root.gotoAndPlay(4);
this.play();
}
_root.takewinButton.gotoAndStop(15);
_root.doubleButton.gotoAndStop(15);
}
Instance of Symbol 777 MovieClip "RB" in Frame 2
onClipEvent (load) {
_root.RB.last1.gotoAndStop(43);
_root.RB.last2.gotoAndStop(29);
_root.RB.last3.gotoAndStop(15);
_root.RB.last4.gotoAndStop(1);
_root.RB.last5.gotoAndStop(29);
_root.RB.last6.gotoAndStop(1);
_root.RB.last7.gotoAndStop(15);
p = 1;
while (p <= 4) {
this["DUBar" + p].useHandCursor = false;
p++;
}
FiveBar.useHandCursor = false;
double1 = new Sound(this);
double1.attachSound("double1");
double2 = new Sound(this);
double2.attachSound("double2");
dada = new Sound(this);
dada.attachSound("dada");
cheep = new Sound(this);
cheep.attachSound("cheep");
}
Instance of Symbol 942 MovieClip "paytable" in Frame 2
onClipEvent (load) {
i = 0;
while (i <= 9) {
this["c" + i] = new Color(eval ("Hand" + i));
this["c" + i].setRGB(4605510);
i++;
}
}
Instance of Symbol 954 MovieClip "specialBonus" in Frame 2
onClipEvent (load) {
specialsound = new Sound(this);
specialsound.attachSound("specialsound");
}
Frame 3
frame30end = false;
turn = 0;
_root.RB._visible = false;
_root.paytable._visible = true;
if (_root.timer.timeup == false) {
_root.timer.play();
}
_root.timerpauseBtn.gotoAndStop(1);
_root.timerpauseBtn.enabled = true;
_root.pointsMC.pointscircle._visible = false;
j = 1;
while (j <= 5) {
_root["C" + j]._alpha = 100;
_root["C" + j]._visible = true;
_root["C" + j].gotoAndStop(1);
_root.hold["hold" + j].gotoAndStop(1);
_root["hold" + j] = false;
j++;
}
one = 0;
two = 0;
three = 0;
four = 0;
five = 0;
previous1 = (previous2 = (previous3 = (previous4 = (previous5 = 0))));
credit = credit + win;
if (credit > 1E16) {
credit = 1E16;
}
win = 0;
doubleButton.enabled = false;
doubleButton.gotoAndStop(15);
takewinButton.enabled = false;
if ((_root.RB.RBfinish == true) || (takewinButton._currentframe == 1)) {
takewinButton.gotoAndStop(15);
}
dealButton.enabled = true;
dealButton.gotoAndStop(1);
cashButton.enabled = true;
Key.removeListener(doubleupspaceListener);
Key.addListener(spaceListener);
Key.removeListener(enterListener);
Key.addListener(backspaceListener);
if (bet != 10) {
bet10.enabled = true;
}
if (bet != 20) {
bet20.enabled = true;
}
if (bet != 50) {
bet50.enabled = true;
}
if (bet != 100) {
bet100.enabled = true;
}
if ((bet != 1000) && (thousandbet == true)) {
bet1000.enabled = true;
}
if ((_root.q == 0) && (timer.timeup == false)) {
if ((credit >= 2000) && (cashB == false)) {
stop();
cashButton._visible = true;
cashButton.gotoAndPlay(3);
maintext.text = "Y O U N O W H A V E U N L I M I T E D C A S H - G O N U T S !";
temptext = "";
}
if (((credit >= 20000) && (thousandbet == false)) && (cashB == true)) {
stop();
_root.BBL.play();
maintext.text = "Y O U C A N N O W B E T $ 1 0 0 0 !";
temptext = "S E L E C T B E T A M O U N T A N D P L A Y !";
}
if (((credit >= 100000) && (thousandbet == true)) && (special == false)) {
specialBonus.play();
special = true;
maintext.text = "B O N U S 1 0 P O I N T S !";
temptext = "S E L E C T B E T A M O U N T A N D P L A Y !";
}
}
if (((q <= 0) && (timer.timeup == true)) || (((credit == 0) && (cashB == false)) && (credit_win_zero == false))) {
stop();
endofgame();
}
credit_win_zero = false;
Instance of Symbol 965 MovieClip "EndBackground" in Frame 3
onClipEvent (load) {
this._visible = false;
}
Frame 4
dealButton.enabled = false;
if (dealButton._currentframe == 1) {
dealButton.play();
}
cashButton.enabled = false;
Key.removeListener(backspaceListener);
_root.timerpauseBtn.enabled = false;
bet10.enabled = false;
bet20.enabled = false;
bet50.enabled = false;
bet100.enabled = false;
bet1000.enabled = false;
if (bet != 10) {
bet10.gotoAndStop(1);
_root.paytable.box1.gotoAndStop(1);
}
if (bet != 20) {
bet20.gotoAndStop(1);
_root.paytable.box2.gotoAndStop(1);
}
if (bet != 50) {
bet50.gotoAndStop(1);
_root.paytable.box3.gotoAndStop(1);
}
if (bet != 100) {
bet100.gotoAndStop(1);
_root.paytable.box4.gotoAndStop(1);
}
if (bet != 1000) {
bet1000.gotoAndStop(1);
_root.paytable.box5.gotoAndStop(1);
}
maintext.text = "";
temptext = maintext.text;
if (hold1 == false) {
i = 0;
while (i < 100) {
one = random(53) + 2;
if (((((((((one != two) && (one != three)) && (one != four)) && (one != five)) && (one != previous1)) && (one != previous2)) && (one != previous3)) && (one != previous4)) && (one != previous5)) {
break;
}
i++;
}
}
if (hold2 == false) {
i = 0;
while (i < 100) {
two = random(53) + 2;
if (((((((((two != one) && (two != three)) && (two != four)) && (two != five)) && (two != previous1)) && (two != previous2)) && (two != previous3)) && (two != previous4)) && (two != previous5)) {
break;
}
i++;
}
}
if (hold3 == false) {
i = 0;
while (i < 100) {
three = random(53) + 2;
if (((((((((three != one) && (three != two)) && (three != four)) && (three != five)) && (three != previous1)) && (three != previous2)) && (three != previous3)) && (three != previous4)) && (three != previous5)) {
break;
}
i++;
}
}
if (hold4 == false) {
i = 0;
while (i < 100) {
four = random(53) + 2;
if (((((((((four != one) && (four != two)) && (four != three)) && (four != five)) && (four != previous1)) && (four != previous2)) && (four != previous3)) && (four != previous4)) && (four != previous5)) {
break;
}
i++;
}
}
if (hold5 == false) {
i = 0;
while (i < 100) {
five = random(53) + 2;
if (((((((((five != one) && (five != two)) && (five != three)) && (five != four)) && (five != previous1)) && (five != previous2)) && (five != previous3)) && (five != previous4)) && (five != previous5)) {
break;
}
i++;
}
}
if (turn == 0) {
previous1 = one;
previous2 = two;
previous3 = three;
previous4 = four;
previous5 = five;
}
if (hold1 == false) {
_root.C1.gotoAndStop(one);
} else {
gotoAndPlay ("2");
}
Frame 8
if (hold1 == false) {
deal.start();
}
Frame 9
if (hold2 == false) {
_root.C2.gotoAndStop(two);
} else {
gotoAndPlay ("3");
}
Frame 13
if (hold2 == false) {
deal.start();
}
Frame 14
if (hold3 == false) {
_root.C3.gotoAndStop(three);
} else {
gotoAndPlay ("4");
}
Frame 18
if (hold3 == false) {
deal.start();
}
Frame 19
if (hold4 == false) {
_root.C4.gotoAndStop(four);
} else {
gotoAndPlay ("5");
}
Frame 23
if (hold4 == false) {
deal.start();
}
Frame 24
if (hold5 == false) {
_root.C5.gotoAndStop(five);
}
Frame 28
if (hold5 == false) {
deal.start();
}
Frame 30
function twopair(z) {
if ((((((((one == z) || (one == (z + 1))) || (one == (z + 2))) || (one == (z + 3))) && ((((two == z) || (two == (z + 1))) || (two == (z + 2))) || (two == (z + 3)))) && ((((three != z) && (three != (z + 1))) && (three != (z + 2))) && (three != (z + 3)))) && ((((four != z) && (four != (z + 1))) && (four != (z + 2))) && (four != (z + 3)))) && ((((five != z) && (five != (z + 1))) && (five != (z + 2))) && (five != (z + 3)))) {
pair = pair + 1;
win1 = 1;
win2 = 1;
} else if ((((((((one == z) || (one == (z + 1))) || (one == (z + 2))) || (one == (z + 3))) && ((((two != z) && (two != (z + 1))) && (two != (z + 2))) && (two != (z + 3)))) && ((((three == z) || (three == (z + 1))) || (three == (z + 2))) || (three == (z + 3)))) && ((((four != z) && (four != (z + 1))) && (four != (z + 2))) && (four != (z + 3)))) && ((((five != z) && (five != (z + 1))) && (five != (z + 2))) && (five != (z + 3)))) {
pair = pair + 1;
win1 = 1;
win3 = 1;
} else if ((((((((one == z) || (one == (z + 1))) || (one == (z + 2))) || (one == (z + 3))) && ((((two != z) && (two != (z + 1))) && (two != (z + 2))) && (two != (z + 3)))) && ((((three != z) && (three != (z + 1))) && (three != (z + 2))) && (three != (z + 3)))) && ((((four == z) || (four == (z + 1))) || (four == (z + 2))) || (four == (z + 3)))) && ((((five != z) && (five != (z + 1))) && (five != (z + 2))) && (five != (z + 3)))) {
pair = pair + 1;
win1 = 1;
win4 = 1;
} else if ((((((((one == z) || (one == (z + 1))) || (one == (z + 2))) || (one == (z + 3))) && ((((two != z) && (two != (z + 1))) && (two != (z + 2))) && (two != (z + 3)))) && ((((three != z) && (three != (z + 1))) && (three != (z + 2))) && (three != (z + 3)))) && ((((four != z) && (four != (z + 1))) && (four != (z + 2))) && (four != (z + 3)))) && ((((five == z) || (five == (z + 1))) || (five == (z + 2))) || (five == (z + 3)))) {
pair = pair + 1;
win1 = 1;
win5 = 1;
} else if ((((((((one != z) && (one != (z + 1))) && (one != (z + 2))) && (one != (z + 3))) && ((((two == z) || (two == (z + 1))) || (two == (z + 2))) || (two == (z + 3)))) && ((((three == z) || (three == (z + 1))) || (three == (z + 2))) || (three == (z + 3)))) && ((((four != z) && (four != (z + 1))) && (four != (z + 2))) && (four != (z + 3)))) && ((((five != z) && (five != (z + 1))) && (five != (z + 2))) && (five != (z + 3)))) {
pair = pair + 1;
win2 = 1;
win3 = 1;
} else if ((((((((one != z) && (one != (z + 1))) && (one != (z + 2))) && (one != (z + 3))) && ((((two == z) || (two == (z + 1))) || (two == (z + 2))) || (two == (z + 3)))) && ((((three != z) && (three != (z + 1))) && (three != (z + 2))) && (three != (z + 3)))) && ((((four == z) || (four == (z + 1))) || (four == (z + 2))) || (four == (z + 3)))) && ((((five != z) && (five != (z + 1))) && (five != (z + 2))) && (five != (z + 3)))) {
pair = pair + 1;
win2 = 1;
win4 = 1;
} else if ((((((((one != z) && (one != (z + 1))) && (one != (z + 2))) && (one != (z + 3))) && ((((two == z) || (two == (z + 1))) || (two == (z + 2))) || (two == (z + 3)))) && ((((three != z) && (three != (z + 1))) && (three != (z + 2))) && (three != (z + 3)))) && ((((four != z) && (four != (z + 1))) && (four != (z + 2))) && (four != (z + 3)))) && ((((five == z) || (five == (z + 1))) || (five == (z + 2))) || (five == (z + 3)))) {
pair = pair + 1;
win2 = 1;
win5 = 1;
} else if ((((((((one != z) && (one != (z + 1))) && (one != (z + 2))) && (one != (z + 3))) && ((((two != z) && (two != (z + 1))) && (two != (z + 2))) && (two != (z + 3)))) && ((((three == z) || (three == (z + 1))) || (three == (z + 2))) || (three == (z + 3)))) && ((((four == z) || (four == (z + 1))) || (four == (z + 2))) || (four == (z + 3)))) && ((((five != z) && (five != (z + 1))) && (five != (z + 2))) && (five != (z + 3)))) {
pair = pair + 1;
win3 = 1;
win4 = 1;
} else if ((((((((one != z) && (one != (z + 1))) && (one != (z + 2))) && (one != (z + 3))) && ((((two != z) && (two != (z + 1))) && (two != (z + 2))) && (two != (z + 3)))) && ((((three == z) || (three == (z + 1))) || (three == (z + 2))) || (three == (z + 3)))) && ((((four != z) && (four != (z + 1))) && (four != (z + 2))) && (four != (z + 3)))) && ((((five == z) || (five == (z + 1))) || (five == (z + 2))) || (five == (z + 3)))) {
pair = pair + 1;
win3 = 1;
win5 = 1;
} else if ((((((((one != z) && (one != (z + 1))) && (one != (z + 2))) && (one != (z + 3))) && ((((two != z) && (two != (z + 1))) && (two != (z + 2))) && (two != (z + 3)))) && ((((three != z) && (three != (z + 1))) && (three != (z + 2))) && (three != (z + 3)))) && ((((four == z) || (four == (z + 1))) || (four == (z + 2))) || (four == (z + 3)))) && ((((five == z) || (five == (z + 1))) || (five == (z + 2))) || (five == (z + 3)))) {
pair = pair + 1;
win4 = 1;
win5 = 1;
}
}
function threeofakind(z) {
if ((((((((one == z) || (one == (z + 1))) || (one == (z + 2))) || (one == (z + 3))) && ((((two == z) || (two == (z + 1))) || (two == (z + 2))) || (two == (z + 3)))) && ((((three == z) || (three == (z + 1))) || (three == (z + 2))) || (three == (z + 3)))) && ((((four != z) && (four != (z + 1))) && (four != (z + 2))) && (four != (z + 3)))) && ((((five != z) && (five != (z + 1))) && (five != (z + 2))) && (five != (z + 3)))) {
triple = true;
win1 = 1;
win2 = 1;
win3 = 1;
} else if ((((((((one == z) || (one == (z + 1))) || (one == (z + 2))) || (one == (z + 3))) && ((((two == z) || (two == (z + 1))) || (two == (z + 2))) || (two == (z + 3)))) && ((((three != z) && (three != (z + 1))) && (three != (z + 2))) && (three != (z + 3)))) && ((((four == z) || (four == (z + 1))) || (four == (z + 2))) || (four == (z + 3)))) && ((((five != z) && (five != (z + 1))) && (five != (z + 2))) && (five != (z + 3)))) {
triple = true;
win1 = 1;
win2 = 1;
win4 = 1;
} else if ((((((((one == z) || (one == (z + 1))) || (one == (z + 2))) || (one == (z + 3))) && ((((two != z) && (two != (z + 1))) && (two != (z + 2))) && (two != (z + 3)))) && ((((three == z) || (three == (z + 1))) || (three == (z + 2))) || (three == (z + 3)))) && ((((four == z) || (four == (z + 1))) || (four == (z + 2))) || (four == (z + 3)))) && ((((five != z) && (five != (z + 1))) && (five != (z + 2))) && (five != (z + 3)))) {
triple = true;
win1 = 1;
win3 = 1;
win4 = 1;
} else if ((((((((one != z) && (one != (z + 1))) && (one != (z + 2))) && (one != (z + 3))) && ((((two == z) || (two == (z + 1))) || (two == (z + 2))) || (two == (z + 3)))) && ((((three == z) || (three == (z + 1))) || (three == (z + 2))) || (three == (z + 3)))) && ((((four == z) || (four == (z + 1))) || (four == (z + 2))) || (four == (z + 3)))) && ((((five != z) && (five != (z + 1))) && (five != (z + 2))) && (five != (z + 3)))) {
triple = true;
win2 = 1;
win3 = 1;
win4 = 1;
} else if ((((((((one == z) || (one == (z + 1))) || (one == (z + 2))) || (one == (z + 3))) && ((((two == z) || (two == (z + 1))) || (two == (z + 2))) || (two == (z + 3)))) && ((((three != z) && (three != (z + 1))) && (three != (z + 2))) && (three != (z + 3)))) && ((((four != z) && (four != (z + 1))) && (four != (z + 2))) && (four != (z + 3)))) && ((((five == z) || (five == (z + 1))) || (five == (z + 2))) || (five == (z + 3)))) {
triple = true;
win1 = 1;
win2 = 1;
win5 = 1;
} else if ((((((((one == z) || (one == (z + 1))) || (one == (z + 2))) || (one == (z + 3))) && ((((two != z) && (two != (z + 1))) && (two != (z + 2))) && (two != (z + 3)))) && ((((three == z) || (three == (z + 1))) || (three == (z + 2))) || (three == (z + 3)))) && ((((four != z) && (four != (z + 1))) && (four != (z + 2))) && (four != (z + 3)))) && ((((five == z) || (five == (z + 1))) || (five == (z + 2))) || (five == (z + 3)))) {
triple = true;
win1 = 1;
win3 = 1;
win5 = 1;
} else if ((((((((one != z) && (one != (z + 1))) && (one != (z + 2))) && (one != (z + 3))) && ((((two == z) || (two == (z + 1))) || (two == (z + 2))) || (two == (z + 3)))) && ((((three == z) || (three == (z + 1))) || (three == (z + 2))) || (three == (z + 3)))) && ((((four != z) && (four != (z + 1))) && (four != (z + 2))) && (four != (z + 3)))) && ((((five == z) || (five == (z + 1))) || (five == (z + 2))) || (five == (z + 3)))) {
triple = true;
win2 = 1;
win3 = 1;
win5 = 1;
} else if ((((((((one == z) || (one == (z + 1))) || (one == (z + 2))) || (one == (z + 3))) && ((((two != z) && (two != (z + 1))) && (two != (z + 2))) && (two != (z + 3)))) && ((((three != z) && (three != (z + 1))) && (three != (z + 2))) && (three != (z + 3)))) && ((((four == z) || (four == (z + 1))) || (four == (z + 2))) || (four == (z + 3)))) && ((((five == z) || (five == (z + 1))) || (five == (z + 2))) || (five == (z + 3)))) {
triple = true;
win1 = 1;
win4 = 1;
win5 = 1;
} else if ((((((((one != z) && (one != (z + 1))) && (one != (z + 2))) && (one != (z + 3))) && ((((two == z) || (two == (z + 1))) || (two == (z + 2))) || (two == (z + 3)))) && ((((three != z) && (three != (z + 1))) && (three != (z + 2))) && (three != (z + 3)))) && ((((four == z) || (four == (z + 1))) || (four == (z + 2))) || (four == (z + 3)))) && ((((five == z) || (five == (z + 1))) || (five == (z + 2))) || (five == (z + 3)))) {
triple = true;
win2 = 1;
win4 = 1;
win5 = 1;
} else if ((((((((one != z) && (one != (z + 1))) && (one != (z + 2))) && (one != (z + 3))) && ((((two != z) && (two != (z + 1))) && (two != (z + 2))) && (two != (z + 3)))) && ((((three == z) || (three == (z + 1))) || (three == (z + 2))) || (three == (z + 3)))) && ((((four == z) || (four == (z + 1))) || (four == (z + 2))) || (four == (z + 3)))) && ((((five == z) || (five == (z + 1))) || (five == (z + 2))) || (five == (z + 3)))) {
triple = true;
win3 = 1;
win4 = 1;
win5 = 1;
}
}
function fourofakind(z) {
if ((((((((one == z) || (one == (z + 1))) || (one == (z + 2))) || (one == (z + 3))) && ((((two == z) || (two == (z + 1))) || (two == (z + 2))) || (two == (z + 3)))) && ((((three == z) || (three == (z + 1))) || (three == (z + 2))) || (three == (z + 3)))) && ((((four == z) || (four == (z + 1))) || (four == (z + 2))) || (four == (z + 3)))) && ((((five != z) && (five != (z + 1))) && (five != (z + 2))) && (five != (z + 3)))) {
quad = true;
win1 = 1;
win2 = 1;
win3 = 1;
win4 = 1;
} else if ((((((((one == z) || (one == (z + 1))) || (one == (z + 2))) || (one == (z + 3))) && ((((two == z) || (two == (z + 1))) || (two == (z + 2))) || (two == (z + 3)))) && ((((three == z) || (three == (z + 1))) || (three == (z + 2))) || (three == (z + 3)))) && ((((four != z) && (four != (z + 1))) && (four != (z + 2))) && (four != (z + 3)))) && ((((five == z) || (five == (z + 1))) || (five == (z + 2))) || (five == (z + 3)))) {
quad = true;
win1 = 1;
win2 = 1;
win3 = 1;
win5 = 1;
} else if ((((((((one == z) || (one == (z + 1))) || (one == (z + 2))) || (one == (z + 3))) && ((((two == z) || (two == (z + 1))) || (two == (z + 2))) || (two == (z + 3)))) && ((((three != z) && (three != (z + 1))) && (three != (z + 2))) && (three != (z + 3)))) && ((((four == z) || (four == (z + 1))) || (four == (z + 2))) || (four == (z + 3)))) && ((((five == z) || (five == (z + 1))) || (five == (z + 2))) || (five == (z + 3)))) {
quad = true;
win1 = 1;
win2 = 1;
win4 = 1;
win5 = 1;
} else if ((((((((one == z) || (one == (z + 1))) || (one == (z + 2))) || (one == (z + 3))) && ((((two != z) && (two != (z + 1))) && (two != (z + 2))) && (two != (z + 3)))) && ((((three == z) || (three == (z + 1))) || (three == (z + 2))) || (three == (z + 3)))) && ((((four == z) || (four == (z + 1))) || (four == (z + 2))) || (four == (z + 3)))) && ((((five == z) || (five == (z + 1))) || (five == (z + 2))) || (five == (z + 3)))) {
quad = true;
win1 = 1;
win3 = 1;
win4 = 1;
win5 = 1;
} else if ((((((((one != z) && (one != (z + 1))) && (one != (z + 2))) && (one != (z + 3))) && ((((two == z) || (two == (z + 1))) || (two == (z + 2))) || (two == (z + 3)))) && ((((three == z) || (three == (z + 1))) || (three == (z + 2))) || (three == (z + 3)))) && ((((four == z) || (four == (z + 1))) || (four == (z + 2))) || (four == (z + 3)))) && ((((five == z) || (five == (z + 1))) || (five == (z + 2))) || (five == (z + 3)))) {
quad = true;
win2 = 1;
win3 = 1;
win4 = 1;
win5 = 1;
}
}
function straight(z) {
if ((((one == z) || (one == (z + 1))) || (one == (z + 2))) || (one == (z + 3))) {
straight1 = z;
}
if ((((two == z) || (two == (z + 1))) || (two == (z + 2))) || (two == (z + 3))) {
straight2 = z;
}
if ((((three == z) || (three == (z + 1))) || (three == (z + 2))) || (three == (z + 3))) {
straight3 = z;
}
if ((((four == z) || (four == (z + 1))) || (four == (z + 2))) || (four == (z + 3))) {
straight4 = z;
}
if ((((five == z) || (five == (z + 1))) || (five == (z + 2))) || (five == (z + 3))) {
straight5 = z;
}
}
function flush(z) {
c = 0;
while (c <= 48) {
if ((one == (z + c)) || (one == 54)) {
flush1 = 1;
}
if ((two == (z + c)) || (two == 54)) {
flush2 = 1;
}
if ((three == (z + c)) || (three == 54)) {
flush3 = 1;
}
if ((four == (z + c)) || (four == 54)) {
flush4 = 1;
}
if ((five == (z + c)) || (five == 54)) {
flush5 = 1;
}
c = c + 4;
}
if (((((flush1 == 1) && (flush2 == 1)) && (flush3 == 1)) && (flush4 == 1)) && (flush5 == 1)) {
}
}
function jokerwin() {
if (one == 54) {
win1 = 1;
joker = 1;
}
if (two == 54) {
win2 = 1;
joker = 1;
}
if (three == 54) {
win3 = 1;
joker = 1;
}
if (four == 54) {
win4 = 1;
joker = 1;
}
if (five == 54) {
win5 = 1;
joker = 1;
}
}
function flush_hold() {
if (((((flush1 == 1) && (flush2 == 1)) && (flush3 == 1)) && (flush4 == 1)) && (flush5 != 1)) {
p = 1;
while (p <= 4) {
_root.hold["hold" + p].gotoAndPlay(18);
_root["hold" + p] = true;
p = p + 1;
}
win5 = 0;
fh = 1;
}
if (((((flush1 == 1) && (flush2 == 1)) && (flush3 == 1)) && (flush4 != 1)) && (flush5 == 1)) {
p = 1;
while (p <= 3) {
_root.hold["hold" + p].gotoAndPlay(18);
_root["hold" + p] = true;
p = p + 1;
}
_root.hold.hold5.gotoAndPlay(18);
_root.hold5 = true;
win4 = 0;
fh = 1;
}
if (((((flush1 == 1) && (flush2 == 1)) && (flush3 != 1)) && (flush4 == 1)) && (flush5 == 1)) {
p = 1;
while (p <= 2) {
_root.hold["hold" + p].gotoAndPlay(18);
_root["hold" + p] = true;
p = p + 1;
}
p = 4;
while (p <= 5) {
_root.hold["hold" + p].gotoAndPlay(18);
_root["hold" + p] = true;
p = p + 1;
}
win3 = 0;
fh = 1;
}
if (((((flush1 == 1) && (flush2 != 1)) && (flush3 == 1)) && (flush4 == 1)) && (flush5 == 1)) {
p = 3;
while (p <= 5) {
_root.hold["hold" + p].gotoAndPlay(18);
_root["hold" + p] = true;
p = p + 1;
}
_root.hold.hold1.gotoAndPlay(18);
_root.hold1 = true;
win2 = 0;
fh = 1;
}
if (((((flush1 != 1) && (flush2 == 1)) && (flush3 == 1)) && (flush4 == 1)) && (flush5 == 1)) {
p = 2;
while (p <= 5) {
_root.hold["hold" + p].gotoAndPlay(18);
_root["hold" + p] = true;
p = p + 1;
}
win1 = 0;
fh = 1;
}
}
stop();
turn = turn + 1;
holdwin = 0;
PJ = (PR = (THR = (STR = (FL = (FH = (FR = (SF = (FV = (RF = 0)))))))));
i = 0;
while (i <= 10) {
_root["pay" + i] = 0;
i++;
}
win1 = (win2 = (win3 = (win4 = (win5 = 0))));
pair = 0;
triple = 0;
straight1 = (straight2 = (straight3 = (straight4 = (straight5 = 0))));
fh = 0;
hearts = (diamonds = (clubs = (spades = 0)));
quad = 0;
joker = 0;
if (turn == 1) {
_root.hold._visible = true;
maintext.text = "C L I C K C A R D T O H O L D / U N H O L D";
temptext = maintext.text;
}
jokerwin();
z = 2;
while (z <= 50) {
twopair(z);
threeofakind(z);
straight(z);
fourofakind(z);
if (quad == true) {
break;
}
z = z + 4;
}
flush1 = (flush2 = (flush3 = (flush4 = (flush5 = 0))));
flush(2);
if (((((flush1 == 1) && (flush2 == 1)) && (flush3 == 1)) && (flush4 == 1)) && (flush5 == 1)) {
hearts = 1;
}
if ((turn == 1) && (!((pair == 1) && (joker == 1)))) {
flush_hold();
}
flush1 = (flush2 = (flush3 = (flush4 = (flush5 = 0))));
flush(3);
if (((((flush1 == 1) && (flush2 == 1)) && (flush3 == 1)) && (flush4 == 1)) && (flush5 == 1)) {
diamonds = 1;
}
if ((turn == 1) && (!((pair == 1) && (joker == 1)))) {
flush_hold();
}
flush1 = (flush2 = (flush3 = (flush4 = (flush5 = 0))));
flush(4);
if (((((flush1 == 1) && (flush2 == 1)) && (flush3 == 1)) && (flush4 == 1)) && (flush5 == 1)) {
clubs = 1;
}
if ((turn == 1) && (!((pair == 1) && (joker == 1)))) {
flush_hold();
}
flush1 = (flush2 = (flush3 = (flush4 = (flush5 = 0))));
flush(5);
if (((((flush1 == 1) && (flush2 == 1)) && (flush3 == 1)) && (flush4 == 1)) && (flush5 == 1)) {
spades = 1;
}
if ((turn == 1) && (!((pair == 1) && (joker == 1)))) {
flush_hold();
}
if (pair == 2) {
holdwin = 2 * bet;
PR = 1;
pay1 = 1;
}
if ((triple == true) || ((pair == 1) && (joker == 1))) {
holdwin = 3 * bet;
THR = 1;
pay2 = 1;
}
if (one == 54) {
straight1 = Math.max(straight5, straight4) - 1;
}
if (two == 54) {
straight2 = Math.max(straight5, straight4) - 1;
}
if (three == 54) {
straight3 = Math.max(straight5, straight4) - 1;
}
if (four == 54) {
straight4 = Math.max(straight2, straight1) - 1;
}
if (five == 54) {
straight5 = Math.max(straight2, straight1) - 1;
}
high = Math.max(straight5, Math.max(straight4, Math.max(straight3, Math.max(straight1, straight2))));
low = Math.min(straight5, Math.min(straight4, Math.min(straight3, Math.min(straight1, straight2))));
if ((((pair == 0) && (triple == 0)) && (quad == 0)) && ((high - low) == 16)) {
win1 = 1;
win2 = 1;
win3 = 1;
win4 = 1;
win5 = 1;
holdwin = 5 * bet;
STR = 1;
pay3 = 1;
}
if (((((pair == 0) && (triple == 0)) && (quad == 0)) && ((high - low) == 16)) && (joker == 1)) {
win1 = 1;
win2 = 1;
win3 = 1;
win4 = 1;
win5 = 1;
holdwin = 5 * bet;
STR = 1;
pay3 = 1;
}
if (((((pair == 0) && (triple == 0)) && (quad == 0)) && ((high - low) == 12)) && (joker == 1)) {
win1 = 1;
win2 = 1;
win3 = 1;
win4 = 1;
win5 = 1;
holdwin = 5 * bet;
STR = 1;
pay3 = 1;
}
if ((((((((pair == 0) && (triple == 0)) && (quad == 0)) && ((one <= 5) || (one >= 38))) && ((two <= 5) || (two >= 38))) && ((three <= 5) || (three >= 38))) && ((four <= 5) || (four >= 38))) && ((five <= 5) || (five >= 38))) {
win1 = 1;
win2 = 1;
win3 = 1;
win4 = 1;
win5 = 1;
holdwin = 5 * bet;
STR = 1;
pay3 = 1;
}
if ((((hearts == 1) || (diamonds == 1)) || (clubs == 1)) || (spades == 1)) {
win1 = 1;
win2 = 1;
win3 = 1;
win4 = 1;
win5 = 1;
holdwin = 10 * bet;
FL = 1;
pay4 = 1;
}
if (((pair == 1) && (triple == true)) || ((pair == 2) && (joker == 1))) {
holdwin = 20 * bet;
FH = 1;
PR = 0;
THR = 0;
pay5 = 1;
pay1 = 0;
pay2 = 0;
}
if ((quad == true) || ((triple == true) && (joker == 1))) {
holdwin = 50 * bet;
FR = 1;
THR = 0;
pay6 = 1;
pay2 = 0;
}
if ((STR == 1) && (FL == 1)) {
holdwin = 100 * bet;
SF = 1;
pay7 = 1;
STR = 0;
FL = 0;
pay3 = 0;
pay4 = 0;
}
if ((quad == true) && (joker == 1)) {
holdwin = 500 * bet;
FV = 1;
pay8 = 1;
THR = 0;
FR = 0;
pay2 = 0;
pay6 = 0;
}
if ((((((SF == 1) && ((one <= 5) || (one >= 38))) && ((two <= 5) || (two >= 38))) && ((three <= 5) || (three >= 38))) && ((four <= 5) || (four >= 38))) && ((five <= 5) || (five >= 38))) {
holdwin = 1000 * bet;
RF = 1;
pay9 = 1;
SF = 0;
pay7 = 0;
}
cardarray = [one, two, three, four, five];
highest = [one, two, three, four, five].sort(16);
if ((holdwin == 0) && (pair == 1)) {
t = 0;
while (t <= 4) {
if ((_root["win" + (t + 1)] == 1) && ((cardarray[t] <= 5) || (cardarray[t] >= 42))) {
holdwin = bet;
PJ = 1;
pay0 = 1;
}
t++;
}
}
if (((holdwin == 0) && (joker == 1)) && (fh == 0)) {
t = 0;
while (t <= 4) {
if (((((cardarray[0] <= 5) || (cardarray[1] <= 5)) || (cardarray[2] <= 5)) || (cardarray[3] <= 5)) || (cardarray[4] <= 5)) {
if (cardarray[t] <= 5) {
holdwin = bet;
PJ = 1;
pay0 = 1;
_root["win" + (t + 1)] = 1;
}
} else if (((cardarray[t] >= 42) && (cardarray[t] < 54)) && (cardarray[t] == highest[3])) {
holdwin = bet;
PJ = 1;
pay0 = 1;
_root["win" + (t + 1)] = 1;
}
t++;
}
jokerwin();
}
if (bet == 10) {
z = 1;
}
if (bet == 20) {
z = 2;
}
if (bet == 50) {
z = 3;
}
if (bet == 100) {
z = 4;
}
if (bet == 1000) {
z = 5;
}
i = 0;
while (i <= 10) {
if (_root["pay" + i] == 1) {
_root.paytable["paytable" + z]["c" + i].setRGB(65280);
_root.paytable["c" + i].setRGB(65280);
} else {
_root.paytable["paytable" + z]["c" + i].setRGB(4605510);
_root.paytable["c" + i].setRGB(4605510);
}
i++;
}
if (turn == 1) {
p = 1;
while (p <= 5) {
if (_root["win" + p] == 1) {
_root["hold" + p] = 1;
_root.hold["hold" + p].gotoAndPlay(18);
}
p++;
}
Key.addListener(spaceListener);
dealButton.enabled = true;
dealButton.gotoAndStop(1);
}
if (turn == 2) {
win = holdwin;
k = 1;
while (k <= 5) {
if ((_root["win" + k] != 1) || ((pair == 1) && (win == 0))) {
_root["C" + k]._alpha = 25;
}
k++;
}
if ((win == 0) && (joker == 0)) {
maintext.text = " G A M E O V E R ";
temptext = maintext.text;
} else {
t = random(3);
if ((PJ == 1) || (PR == 1)) {
if (t == 0) {
maintext.text = "N I C E !";
temptext = maintext.text;
}
if (t == 1) {
maintext.text = "G O O D H A N D !";
temptext = maintext.text;
if (PJ == 1) {
maintext.text = "M O N E Y B A C K !";
temptext = maintext.text;
}
}
if (t == 2) {
maintext.text = "D O U B L E U P O R T A K E W I N !";
temptext = maintext.text;
}
}
if ((THR == 1) || (STR == 1)) {
if (t == 0) {
maintext.text = "G O O D H A N D B U T Y O U C A N D O B E T T E R !";
temptext = maintext.text;
}
if (t == 1) {
maintext.text = "L E G E N D A R Y S T U F F P A L !";
temptext = maintext.text;
}
if (t == 2) {
maintext.text = "T H E C A R D S A R E T U R N I N G !";
temptext = maintext.text;
}
}
if ((FL == 1) || (FH == 1)) {
if (t == 0) {
maintext.text = "Y O U ' R E O N F I R E !";
temptext = maintext.text;
}
if (t == 1) {
maintext.text = "D O N ' T G E T E X C I T E D , I T ' S O N L Y P L A Y M O N E Y !";
temptext = maintext.text;
}
if (t == 2) {
maintext.text = "K I C K A S S H A N D !";
temptext = maintext.text;
}
}
if ((((FR == 1) || (SF == 1)) || (FV == 1)) || (RF == 1)) {
if (t == 0) {
maintext.text = "T H I N K Y O U ' R E P R E T T Y G O O D , D O N ' T Y A ?";
temptext = maintext.text;
}
if (t == 1) {
maintext.text = "T H A T ' S S H I T H O T !";
temptext = maintext.text;
}
if (t == 2) {
maintext.text = "Y O U ' R E F R E A K I N ' A W E S O M E !";
temptext = maintext.text;
}
}
}
gamecount = gamecount + 1;
if (((gamecount % 13) == 0) && (cashB == true)) {
_root.paytable.unlock.play();
}
play();
}
Frame 31
stop();
cashButton.enabled = true;
_root.timerpauseBtn.enabled = true;
Key.addListener(backspaceListener);
if (bet != 10) {
bet10.enabled = true;
}
if (bet != 20) {
bet20.enabled = true;
}
if (bet != 50) {
bet50.enabled = true;
}
if (bet != 100) {
bet100.enabled = true;
}
if (bet != 1000) {
bet1000.enabled = true;
}
Key.addListener(spaceListener);
dealButton.enabled = true;
dealButton.gotoAndStop(1);
if (win > 0) {
Key.addListener(enterListener);
doubleButton.enabled = true;
doubleButton.gotoAndStop(1);
takewinButton.enabled = true;
takewinButton.gotoAndStop(1);
}
if (joker == 1) {
_root.cashButton.enabled = false;
Key.removeListener(_root.backspaceListener);
_root.dealButton.enabled = false;
_root.dealButton.gotoAndStop(15);
Key.removeListener(_root.spaceListener);
_root.doubleButton.enabled = false;
_root.doubleButton.gotoAndStop(15);
Key.removeListener(enterListener);
_root.takewinButton.enabled = false;
if (_root.takewinButton._currentframe == 1) {
_root.takewinButton.gotoAndStop(15);
}
_root.bet10.enabled = false;
_root.bet20.enabled = false;
_root.bet50.enabled = false;
_root.bet100.enabled = false;
_root.bet1000.enabled = false;
_root.timerpauseBtn.enabled = false;
t = 0;
while (t <= 4) {
if (cardarray[t] == 54) {
if (win > 0) {
_root["C" + (t + 1)].joker.gotoAndPlay("jokerwin");
} else {
_root["C" + (t + 1)].joker.gotoAndPlay("jokerlose");
maintext.text = "W A S T E D J O K E R - 3 P O I N T P E N A L T Y";
temptext = "G A M E O V E R";
}
}
t++;
}
}
sound = random(6);
if ((PJ == 1) || (PR == 1)) {
if (sound == 0) {
pairsound0.start();
}
if (sound == 1) {
pairsound1.start();
}
if (sound == 2) {
pairsound2.start();
}
if (sound == 3) {
pairsound3.start();
}
if (sound == 4) {
pairsound4.start();
}
if (sound == 5) {
pairsound5.start();
}
}
if ((THR == 1) || (STR == 1)) {
if (sound == 0) {
threesound0.start();
}
if (sound == 1) {
threesound1.start();
}
if (sound == 2) {
threesound2.start();
}
if (sound == 3) {
threesound3.start();
}
if (sound == 4) {
threesound4.start();
}
if (sound == 5) {
threesound5.start();
}
}
if ((FL == 1) || (FH == 1)) {
if ((sound == 0) || (sound == 1)) {
flushsound1.start();
}
if ((sound == 2) || (sound == 3)) {
flushsound2.start();
}
if ((sound == 4) || (sound == 5)) {
flushsound3.start();
}
}
if ((((FR == 1) || (SF == 1)) || (FV == 1)) || (RF == 1)) {
if ((sound == 0) || (sound == 1)) {
abovefullsound1.start();
}
if ((sound == 2) || (sound == 3)) {
abovefullsound2.start();
}
if ((sound == 4) || (sound == 5)) {
abovefullsound3.start();
}
}
if ((win == 0) && ((timer.timeup == true) || ((credit == 0) && (cashB == false)))) {
endofgame();
}
frame30end = true;
Symbol 73 MovieClip Frame 1
submitscoreButton.onRelease = function () {
this.enabled = false;
this._alpha = 60;
mochi.as2.MochiScores.closeLeaderboard({boardID:"1b1cc3e96157aa49"});
mochi.as2.MochiScores.showLeaderboard({boardID:"1b1cc3e96157aa49", score:_root.credits, width:460, height:300, showTableRank:true, previewScores:true, hideDoneButton:true, preloaderDisplay:false});
};
playagainButton.onRelease = function () {
this.enabled = false;
submitscoreButton.enabled = false;
mochi.as2.MochiScores.closeLeaderboard({boardID:"1b1cc3e96157aa49"});
if (_root.timer.timeup == true) {
_root.EndBackground._visible = true;
adFailed = false;
mochi.as2.MochiAd.showInterLevelAd({id:"aae34d9b720db351", res:"800x600", no_bg:true, color:2697638, background:3947740, outline:3355596, ad_loaded:function (width, height) {
trace("loaded");
adHeight = height;
if (adHeight <= 480) {
_root.attachMovie("rect", "rect", 3, {_x:400, _y:300});
_root.rect._width = width + 260;
_root.rect._height = height + 180;
} else {
removeMovieClip(_root.header);
}
}, ad_failed:function () {
trace("failed");
adFailed = true;
_root.allSounds.setVolume(100);
_root.muteBtn.gotoAndStop(1);
_root.gotoAndStop(2);
}, ad_finished:function () {
trace("finished");
if (adHeight <= 480) {
if (adFailed == false) {
adratio = _root.rect._width / _root.rect._height;
_root.endButtons.onEnterFrame = function () {
_root.rect._xscale = _root.rect._xscale - (20 * adratio);
_root.rect._yscale = _root.rect._yscale - 20;
if ((_root.rect._width < 40) || (_root.rect._height < 40)) {
removeMovieClip(_root.rect);
_root.EndBackground._visible = false;
delete _root.endButtons.onEnterFrame;
_root.allSounds.setVolume(100);
_root.muteBtn.gotoAndStop(1);
_root.gotoAndStop(2);
}
};
}
} else {
_root.allSounds.setVolume(100);
_root.muteBtn.gotoAndStop(1);
_root.gotoAndStop(2);
}
}});
} else {
_root.allSounds.setVolume(100);
_root.muteBtn.gotoAndStop(1);
_root.gotoAndStop(2);
}
this._visible = false;
submitscoreButton._visible = false;
moregamesButton._visible = false;
};
moregamesButton.onRelease = function () {
getURL ("http://www.stellarcast.com", "_blank");
};
Symbol 966 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local23 = 11000;
var _local19 = options.ad_timeout;
if (options.skip) {
_local19 = 0;
}
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 30;
}
var _local22 = options.color;
delete options.color;
var _local20 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local20);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 30, 0);
_local5.lineTo(_local4 - 30, 20);
_local5.lineTo(0, 20);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 30, 0);
_local3.lineTo(_local4 - 30, 20);
_local3.lineTo(0, 20);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local24, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 30, 0);
_local7.lineTo(_local4 - 30, 20);
_local7.lineTo(0, 20);
_local7.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local19;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:_local2}, clip._mochiad._containerLCName);
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local10 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local10);
var clip = options.clip;
var _local9 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var _local3 = clip._mochiad;
_local3.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local11 = _local5[0];
var _local8 = _local5[1];
_local3._x = _local11 * 0.5;
_local3._y = _local8 * 0.5;
var chk = _local3.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local9;
chk.started = getTimer();
chk.showing = false;
_local3.lc.adLoaded = options.ad_loaded;
_local3.lc.adSkipped = options.ad_skipped;
_local3.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
_local3.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local21 = false;
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local12 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local12);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local6 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local6._mochiad_loaded) {
return(null);
}
var _local11 = options.depth;
delete options.depth;
var mc = _local6.createEmptyMovieClip("_mochiad", _local11);
var _local10 = _getRes(options);
options.res = (_local10[0] + "x") + _local10[1];
options.server = options.server + options.id;
delete options.id;
_local6._mochiad_loaded = true;
if (_local6._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local9 = _local4.server;
delete _local4.server;
var _local13 = _allowDomains(_local9);
mc.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new Object();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = mc;
_local5.name = _local8;
_local5.hostname = _local13;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
mc.lc = _local5;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
_local4.lc = _local8;
_local4.st = getTimer();
if (!options.skip) {
_local4.loadMovie(_local9 + ".swf", "POST");
}
return(mc);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
containerNotify(clip, {id:"unload"}, clip._mochiad._containerLCName);
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
containerRpcResult(clip, callbackID, _local4, clip._mochiad._containerLCName);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
containerRpcResult(clip, callbackID, _local3, clip._mochiad._containerLCName);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
static function containerNotify(clip, args, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.notify) {
_local1.notify(args);
} else {
new LocalConnection().send(lcName, "notify", args);
}
}
static function containerRpcResult(clip, callbackID, val, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.rpcResult) {
_local1.rpcResult(callbackID, val);
} else {
new LocalConnection().send(lcName, "rpcResult", callbackID, val);
}
}
}
Symbol 967 MovieClip [__Packages.mochi.as2.MochiSync] Frame 0
class mochi.as2.MochiSync
{
var _syncContainer;
function MochiSync () {
_syncContainer = {};
}
function getProp(name) {
return(_syncContainer[name]);
}
function setProp(name, value) {
if (_syncContainer[name] == value) {
return(undefined);
}
_syncContainer[name] = value;
mochi.as2.MochiServices.send("sync_propUpdate", {name:name, value:value});
}
function triggerEvent(eventType, args) {
switch (eventType) {
case SYNC_REQUEST :
mochi.as2.MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY :
_syncContainer[args.name] = args.value;
}
}
static var SYNC_REQUEST = "SyncRequest";
static var SYNC_PROPERTY = "UpdateProperty";
}
Symbol 968 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.8 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
break;
case "sync" :
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function updateCopy(args) {
send("coins_updateCopy", args, null, null);
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var servicesSync = new mochi.as2.MochiSync();
}
Symbol 969 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 970 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startPlay(tag) {
if (tag == undefined) {
tag = "gameplay";
}
mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null);
}
static function endPlay() {
mochi.as2.MochiServices.send("events_clearRoundID", null, null, null);
}
static function trackEvent(tag, value) {
mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null);
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 971 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("coins_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("coins_hideLoginWidget");
}
static function requestLogin() {
mochi.as2.MochiServices.send("coins_requestLogin");
}
static function getUserInfo() {
mochi.as2.MochiServices.send("coins_getUserInfo");
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("coins_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 972 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
options.clip = mochi.as2.MochiServices.clip;
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
trace("WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!");
trace("make sure MochiServices.connect is called as early in the application runtime as possible.");
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 973 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 99 Button
on (press, dragOver) {
Mouse.hide();
}
on (rollOut, dragOut) {
Mouse.show();
}
on (release) {
gotoAndPlay (2);
Mouse.show();
}
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
LoopVolume = 100;
_root.Intro.onEnterFrame = function () {
_root.Introsound.setVolume(LoopVolume);
LoopVolume = LoopVolume - 3;
};
_root.maintext.text = "S E L E C T B E T A M O U N T A N D P L A Y !";
_root.temptext = _root.maintext.text;
Symbol 114 MovieClip Frame 28
Mouse.show();
Symbol 114 MovieClip Frame 48
_root.Introsound.setVolume(100);
_root.Introsound.stop();
delete _root.Intro.onEnterFrame;
_root.W.start();
_root.Y.start();
_root.credit = 500;
_root.timer.play();
_root.gotoAndStop(3);
gotoAndStop (1);
Symbol 119 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 2
_parent.prevFrame();
if (_parent._currentframe == 1) {
gotoAndStop (1);
}
Symbol 119 MovieClip Frame 3
gotoAndPlay ("loop");
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 18
gotoAndPlay (13);
Symbol 129 MovieClip Frame 1
var insertListener = new Object();
insertListener.onKeyDown = function () {
if (((Key.getCode() == 45) && (_root._currentframe == 30)) && (_root.turn == 1)) {
bleep.start();
_root.hold1 = !_root.hold1;
if (_root.hold1) {
_root.hold.hold1.play();
_root.hold.hold1.back.gotoAndStop(1);
}
if (!_root.hold1) {
_root.hold.hold1.back.gotoAndPlay("loop");
}
}
};
var homeListener = new Object();
homeListener.onKeyDown = function () {
if (((Key.getCode() == 36) && (_root._currentframe == 30)) && (_root.turn == 1)) {
bleep.start();
_root.hold2 = !_root.hold2;
if (_root.hold2) {
_root.hold.hold2.play();
_root.hold.hold2.back.gotoAndStop(1);
}
if (!_root.hold2) {
_root.hold.hold2.back.gotoAndPlay("loop");
}
}
};
var pageupListener = new Object();
pageupListener.onKeyDown = function () {
if (((Key.getCode() == 33) && (_root._currentframe == 30)) && (_root.turn == 1)) {
bleep.start();
_root.hold3 = !_root.hold3;
if (_root.hold3) {
_root.hold.hold3.play();
_root.hold.hold3.back.gotoAndStop(1);
}
if (!_root.hold3) {
_root.hold.hold3.back.gotoAndPlay("loop");
}
}
};
var deleteListener = new Object();
deleteListener.onKeyDown = function () {
if (((Key.getCode() == 46) && (_root._currentframe == 30)) && (_root.turn == 1)) {
bleep.start();
_root.hold4 = !_root.hold4;
if (_root.hold4) {
_root.hold.hold4.play();
_root.hold.hold4.back.gotoAndStop(1);
}
if (!_root.hold4) {
_root.hold.hold4.back.gotoAndPlay("loop");
}
}
};
var endListener = new Object();
endListener.onKeyDown = function () {
if (((Key.getCode() == 35) && (_root._currentframe == 30)) && (_root.turn == 1)) {
bleep.start();
_root.hold5 = !_root.hold5;
if (_root.hold5) {
_root.hold.hold5.play();
_root.hold.hold5.back.gotoAndStop(1);
}
if (!_root.hold5) {
_root.hold.hold5.back.gotoAndPlay("loop");
}
}
};
Key.addListener(insertListener);
Key.addListener(homeListener);
Key.addListener(pageupListener);
Key.addListener(deleteListener);
Key.addListener(endListener);
Instance of Symbol 128 MovieClip "button_hold4" in Symbol 129 MovieClip Frame 1
on (rollOver) {
_root.maintext.text = "C L I C K O R P R E S S < D e l e t e >";
}
on (releaseOutside, rollOut) {
_root.maintext.text = _root.temptext;
}
on (press) {
_parent.bleep.start();
_root.hold4 = !_root.hold4;
if (_root.hold4) {
_root.hold.hold4.play();
_root.hold.hold4.back.gotoAndStop(1);
}
if (!_root.hold4) {
_root.hold.hold4.back.gotoAndPlay("loop");
}
}
Instance of Symbol 128 MovieClip "button_hold5" in Symbol 129 MovieClip Frame 1
on (rollOver) {
_root.maintext.text = "C L I C K O R P R E S S < E n d >";
}
on (releaseOutside, rollOut) {
_root.maintext.text = _root.temptext;
}
on (press) {
_parent.bleep.start();
_root.hold5 = !_root.hold5;
if (_root.hold5) {
_root.hold.hold5.play();
_root.hold.hold5.back.gotoAndStop(1);
}
if (!_root.hold5) {
_root.hold.hold5.back.gotoAndPlay("loop");
}
}
Instance of Symbol 128 MovieClip "button_hold3" in Symbol 129 MovieClip Frame 1
on (rollOver) {
_root.maintext.text = "C L I C K O R P R E S S < P a g e U p >";
}
on (releaseOutside, rollOut) {
_root.maintext.text = _root.temptext;
}
on (press) {
_parent.bleep.start();
_root.hold3 = !_root.hold3;
if (_root.hold3) {
_root.hold.hold3.play();
_root.hold.hold3.back.gotoAndStop(1);
}
if (!_root.hold3) {
_root.hold.hold3.back.gotoAndPlay("loop");
}
}
Instance of Symbol 128 MovieClip "button_hold2" in Symbol 129 MovieClip Frame 1
on (rollOver) {
_root.maintext.text = "C L I C K O R P R E S S < H o m e >";
}
on (releaseOutside, rollOut) {
_root.maintext.text = _root.temptext;
}
on (press) {
_parent.bleep.start();
_root.hold2 = !_root.hold2;
if (_root.hold2) {
_root.hold.hold2.play();
_root.hold.hold2.back.gotoAndStop(1);
}
if (!_root.hold2) {
_root.hold.hold2.back.gotoAndPlay("loop");
}
}
Instance of Symbol 128 MovieClip "button_hold1" in Symbol 129 MovieClip Frame 1
on (rollOver) {
_root.maintext.text = "C L I C K O R P R E S S < I n s e r t >";
}
on (releaseOutside, rollOut) {
_root.maintext.text = _root.temptext;
}
on (press) {
_parent.bleep.start();
_root.hold1 = !_root.hold1;
if (_root.hold1) {
_root.hold.hold1.play();
_root.hold.hold1.back.gotoAndStop(1);
}
if (!_root.hold1) {
_root.hold.hold1.back.gotoAndPlay("loop");
}
}
Symbol 138 MovieClip Frame 19
stop();
Symbol 202 MovieClip Frame 1
end.gotoAndStop(1);
this["brickvalue" + bricknumber] = -1 * level;
f = 1;
while (f <= 15) {
if (this["brickvalue" + f] > 0) {
this["colour" + f].setRGB(eval (("level" + level) + "colour"));
} else {
this["colour" + f].setRGB(eval (("level" + level) + "neg"));
}
f++;
}
if (targetcount == 0) {
level++;
brickreset();
if (level == 2) {
mochi.as2.MochiEvents.trackEvent("Pyramid Level", "2");
}
if (level == 3) {
mochi.as2.MochiEvents.trackEvent("Pyramid Level", "3");
}
if (level == 4) {
mochi.as2.MochiEvents.trackEvent("Pyramid Level", "4");
}
}
Instance of Symbol 138 MovieClip "end" in Symbol 202 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 202 MovieClip Frame 20
stop();
_root.maintext.text = "C L I C K P Y R A M I D O R P R E S S < S p a c e b a r >";
n = 0;
g = 0;
StopButton.useHandCursor = false;
if (level == 1) {
pyramidspeed = 5;
}
if (level == 2) {
pyramidspeed = 4;
}
if (level >= 3) {
pyramidspeed = 3;
}
StopButton.enabled = true;
StopButton.onEnterFrame = function () {
n++;
if (n == (pyramidspeed - 1)) {
StopButton.useHandCursor = true;
}
if ((n % pyramidspeed) == 0) {
bricknumber = random(15) + 1;
_root.jokerBonus["colour" + bricknumber].setRGB(52479);
f = 1;
while (f < bricknumber) {
if (_root.jokerBonus["brickvalue" + f] > 0) {
_root.jokerBonus["colour" + f].setRGB(eval (("level" + level) + "colour"));
} else {
_root.jokerBonus["colour" + f].setRGB(eval (("level" + level) + "neg"));
}
f++;
}
f = bricknumber + 1;
while (f <= 15) {
if (_root.jokerBonus["brickvalue" + f] > 0) {
_root.jokerBonus["colour" + f].setRGB(eval (("level" + level) + "colour"));
} else {
_root.jokerBonus["colour" + f].setRGB(eval (("level" + level) + "neg"));
}
f++;
}
}
};
StopButton.onPress = function () {
if (n >= pyramidspeed) {
stop();
delete StopButton.onEnterFrame;
this.enabled = false;
Key.removeListener(jokerBonusspaceListener);
stopAllSounds();
_root.q = Number(_root.jokerBonus["brickvalue" + bricknumber]);
if (_root.q > 0) {
_root.jokerBonus.jokerBonusWin.start();
_root.jokerBonus.targetcount--;
} else {
_root.jokerBonus.jokerBonusLose.start();
}
_root.pointsMC.doublecounter._visible = true;
_root.pointsMC.doublecounter.doublecount = _root.q;
_root.onEnterFrame = function () {
g++;
if (_root.jokerBonus.targetcount > 0) {
if (g == 12) {
_root.pointsCounter.play();
delete _root.onEnterFrame;
}
} else {
if (g == 1) {
_root.jokerBonus.end.gotoAndPlay(1);
}
if (g == 45) {
_root.pointsCounter.play();
delete _root.onEnterFrame;
}
}
};
}
};
var jokerBonusspaceListener = new Object();
jokerBonusspaceListener.onKeyDown = function () {
if (Key.getCode() == 32) {
if (n >= pyramidspeed) {
stop();
delete StopButton.onEnterFrame;
_root.jokerBonus.StopButton.enabled = false;
Key.removeListener(jokerBonusspaceListener);
stopAllSounds();
_root.q = Number(_root.jokerBonus["brickvalue" + bricknumber]);
if (_root.q > 0) {
_root.jokerBonus.jokerBonusWin.start();
_root.jokerBonus.targetcount--;
} else {
_root.jokerBonus.jokerBonusLose.start();
}
_root.pointsMC.doublecounter._visible = true;
_root.pointsMC.doublecounter.doublecount = _root.q;
_root.onEnterFrame = function () {
g++;
if (_root.jokerBonus.targetcount > 0) {
if (g == 12) {
_root.pointsCounter.play();
delete _root.onEnterFrame;
}
} else {
if (g == 1) {
_root.jokerBonus.end.gotoAndPlay(1);
}
if (g == 45) {
_root.pointsCounter.play();
delete _root.onEnterFrame;
}
}
};
}
}
};
Key.addListener(jokerBonusspaceListener);
Symbol 206 MovieClip Frame 6
stop();
Symbol 208 MovieClip Frame 6
stop();
Symbol 209 MovieClip Frame 6
stop();
Symbol 211 MovieClip Frame 6
stop();
Symbol 213 MovieClip Frame 6
stop();
Symbol 214 MovieClip Frame 6
stop();
Symbol 216 MovieClip Frame 6
stop();
Symbol 217 MovieClip Frame 6
stop();
Symbol 219 MovieClip Frame 6
stop();
Symbol 220 MovieClip Frame 6
stop();
Symbol 222 MovieClip Frame 6
stop();
Symbol 223 MovieClip Frame 6
stop();
Symbol 225 MovieClip Frame 6
stop();
Symbol 226 MovieClip Frame 6
stop();
Symbol 228 MovieClip Frame 6
stop();
Symbol 229 MovieClip Frame 6
stop();
Symbol 231 MovieClip Frame 6
stop();
Symbol 232 MovieClip Frame 6
stop();
Symbol 234 MovieClip Frame 6
stop();
Symbol 235 MovieClip Frame 6
stop();
Symbol 237 MovieClip Frame 6
stop();
Symbol 238 MovieClip Frame 6
stop();
Symbol 240 MovieClip Frame 6
stop();
Symbol 241 MovieClip Frame 6
stop();
Symbol 243 MovieClip Frame 6
stop();
Symbol 244 MovieClip Frame 6
stop();
Symbol 246 MovieClip Frame 6
stop();
Symbol 247 MovieClip Frame 6
stop();
Symbol 249 MovieClip Frame 6
stop();
Symbol 250 MovieClip Frame 6
stop();
Symbol 252 MovieClip Frame 6
stop();
Symbol 253 MovieClip Frame 6
stop();
Symbol 255 MovieClip Frame 6
stop();
Symbol 256 MovieClip Frame 6
stop();
Symbol 258 MovieClip Frame 6
stop();
Symbol 259 MovieClip Frame 6
stop();
Symbol 262 MovieClip Frame 6
stop();
Symbol 263 MovieClip Frame 6
stop();
Symbol 264 MovieClip Frame 6
stop();
Symbol 265 MovieClip Frame 6
stop();
Symbol 267 MovieClip Frame 6
stop();
Symbol 268 MovieClip Frame 6
stop();
Symbol 269 MovieClip Frame 6
stop();
Symbol 270 MovieClip Frame 6
stop();
Symbol 272 MovieClip Frame 6
stop();
Symbol 273 MovieClip Frame 6
stop();
Symbol 274 MovieClip Frame 6
stop();
Symbol 275 MovieClip Frame 6
stop();
Symbol 277 MovieClip Frame 6
stop();
Symbol 278 MovieClip Frame 6
stop();
Symbol 279 MovieClip Frame 6
stop();
Symbol 280 MovieClip Frame 6
stop();
Symbol 285 MovieClip Frame 1
stop();
Symbol 324 MovieClip Frame 6
stop();
Symbol 324 MovieClip Frame 7
jokerBG.play();
Symbol 324 MovieClip Frame 40
_root.maintext.text = "";
Symbol 324 MovieClip Frame 55
with (_root.jokerBonus) {
_visible = true;
_xscale = 10;
_yscale = 10;
gotoAndStop(1);
}
Symbol 324 MovieClip Frame 56
stop();
jokerBG.gotoAndStop(1);
g = 1;
while (g <= 5) {
_root["C" + g]._visible = false;
g++;
}
_root.jokerBonus.onEnterFrame = function () {
if (this._xscale < 60) {
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
}
if ((this._xscale >= 60) && (this._xscale < 90)) {
this._xscale = this._xscale + 6;
this._yscale = this._yscale + 6;
this.play();
}
if (this._xscale >= 90) {
delete _root.jokerBonus.onEnterFrame;
}
};
Symbol 324 MovieClip Frame 57
stop();
_root.jokerBonus._visible = false;
Symbol 324 MovieClip Frame 83
if (_root.timer.timeup == true) {
gotoAndStop (1);
} else {
_root.q = -3;
_root.pointsMC.doublecounter._visible = true;
_root.pointsMC.doublecounter.doublecount = _root.q;
}
Symbol 324 MovieClip Frame 99
_root.pointsCounter.play();
Symbol 324 MovieClip Frame 114
stop();
Symbol 325 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 1
stop();
unlockVar = false;
Symbol 352 MovieClip Frame 3
if (_root.cashB == false) {
siren.start();
}
_root.cashButton.enabled = false;
Key.removeListener(_root.backspaceListener);
_root.dealButton.enabled = false;
_root.dealButton.gotoAndStop(15);
Key.removeListener(_root.spaceListener);
_root.doubleButton.enabled = false;
_root.doubleButton.gotoAndStop(15);
Key.removeListener(_root.enterListener);
_root.takewinButton.enabled = false;
if (_root.takewinButton._currentframe == 1) {
_root.takewinButton.gotoAndStop(15);
}
_root.bet10.enabled = false;
_root.bet20.enabled = false;
_root.bet50.enabled = false;
_root.bet100.enabled = false;
_root.bet1000.enabled = false;
_root.timerpauseBtn.enabled = false;
Symbol 352 MovieClip Frame 26
if (_root.cashB == false) {
CashSound.start();
_root.cashB = true;
}
Symbol 352 MovieClip Frame 61
if (_root.pointsCounter._currentframe > 1) {
_root.pointsCounter.play();
}
if (_root.q == 0) {
_root.pointsCounter.gotoAndStop(3);
}
if (unlockVar == false) {
_root.paytable.unlock.play();
unlockVar = true;
}
Symbol 352 MovieClip Frame 75
gotoAndStop (1);
Symbol 366 MovieClip Frame 1
stop();
e = 0;
_root.q = 0;
_root.joker = 0;
if (_root.points < 0) {
_root.pointsMC.neg = "-";
_root.pointsMC.pts = Math.abs(_root.points);
} else {
_root.pointsMC.neg = "";
_root.pointsMC.pts = _root.points;
}
_root.pointsMC.doublecounter._visible = false;
if (_root._currentframe == 3) {
_root.dealButton.enabled = true;
_root.dealButton.gotoAndStop(1);
Key.addListener(_root.spaceListener);
_root.cashButton.enabled = true;
Key.addListener(_root.backspaceListener);
}
if (_root._currentframe == 31) {
_root.dealButton.enabled = true;
_root.dealButton.gotoAndStop(1);
Key.addListener(_root.spaceListener);
_root.cashButton.enabled = true;
Key.addListener(_root.backspaceListener);
if (_root.win > 0) {
_root.doubleButton.enabled = true;
_root.doubleButton.gotoAndStop(1);
Key.addListener(_root.enterListener);
_root.takewinButton.enabled = true;
_root.takewinButton.gotoAndStop(1);
}
}
if (_root._currentframe > 2) {
if (_root.z != 1) {
_root.bet10.enabled = true;
}
if (_root.z != 2) {
_root.bet20.enabled = true;
}
if (_root.z != 3) {
_root.bet50.enabled = true;
}
if (_root.z != 4) {
_root.bet100.enabled = true;
}
if ((_root.z != 5) && (_root.thousandbet == true)) {
_root.bet1000.enabled = true;
}
_root.timerpauseBtn.enabled = true;
}
g = 1;
while (g <= 5) {
_root["C" + g]._visible = true;
g++;
}
t = 0;
while (t <= 4) {
if (_root.cardarray[t] == 54) {
if (_root.win > 0) {
_root["C" + (t + 1)].joker.gotoAndStop(57);
}
}
t++;
}
if ((_root.timer.timeup == true) && (_root.win == 0)) {
_root.endofgame();
}
Symbol 366 MovieClip Frame 2
if ((_root.credit >= 2000) && (_root.cashB == false)) {
stop();
_root.cashButton._visible = true;
_root.cashButton.gotoAndPlay(3);
_root.maintext.text = "Y O U N O W H A V E U N L I M I T E D C A S H - G O N U T S !";
_root.temptext = "";
} else {
play();
}
_root.cashButton.enabled = false;
Key.removeListener(_root.backspaceListener);
_root.dealButton.enabled = false;
_root.dealButton.gotoAndStop(15);
Key.removeListener(_root.spaceListener);
_root.doubleButton.enabled = false;
_root.doubleButton.gotoAndStop(15);
Key.removeListener(_root.enterListener);
_root.takewinButton.enabled = false;
if (_root.takewinButton._currentframe == 1) {
_root.takewinButton.gotoAndStop(15);
}
_root.bet10.enabled = false;
_root.bet20.enabled = false;
_root.bet50.enabled = false;
_root.bet100.enabled = false;
_root.bet1000.enabled = false;
_root.timerpauseBtn.enabled = false;
Symbol 366 MovieClip Frame 3
if ((_root.credit >= 20000) && (_root.thousandbet == false)) {
stop();
_root.BBL.play();
_root.maintext.text = "Y O U C A N N O W B E T $ 1 0 0 0 !";
_root.temptext = "S E L E C T B E T A M O U N T A N D P L A Y !";
} else {
play();
}
Symbol 366 MovieClip Frame 4
if (((_root.credit >= 100000) && (_root.thousandbet == true)) && (_root.special == false)) {
stop();
_root.specialBonus.play();
_root.special = true;
_root.maintext.text = "B O N U S 1 0 P O I N T S !";
_root.temptext = "S E L E C T B E T A M O U N T A N D P L A Y !";
} else {
play();
}
Symbol 366 MovieClip Frame 10
if (_root.q > 0) {
if (e == _root.q) {
gotoAndStop (1);
} else {
_root.winpoint.start();
_root.pointsMC.nextFrame();
e++;
_root.pointsMC.doublecounter.doublecount--;
_root.points++;
if (_root.points == 7) {
stop();
t = 0;
while (t <= 4) {
if (_root.cardarray[t] == 54) {
_root["C" + (t + 1)].joker.gotoAndStop(57);
}
t++;
}
_root.pointsMC.reward.play();
bells.start();
if (e == _root.q) {
_root.pointsMC.doublecounter._visible = false;
}
} else {
gotoAndPlay (2);
}
}
if (_root.q == 1) {
_root.maintext.text = "Y O U H A V E E A R N E D 1 P O I N T";
} else {
_root.maintext.text = ("Y O U H A V E E A R N E D " + _root.q) + " P O I N T S";
}
}
if (_root.q < 0) {
if (e == _root.q) {
gotoAndStop (1);
} else {
_root.losepoint.start();
_root.pointsMC.prevFrame();
e--;
_root.pointsMC.doublecounter.doublecount++;
_root.points--;
if (_root.points == -7) {
stop();
_root.pointsMC.penalty.play();
if (e == _root.q) {
_root.pointsMC.doublecounter._visible = false;
}
} else {
gotoAndPlay (2);
}
}
if (_root.q == -1) {
_root.maintext.text = "Y O U H A V E L O S T 1 P O I N T";
} else {
_root.maintext.text = ("Y O U H A V E L O S T " + Math.abs(_root.q)) + " P O I N T S";
}
}
if (_root.points < 0) {
_root.pointsMC.neg = "-";
_root.pointsMC.pts = Math.abs(_root.points);
} else {
_root.pointsMC.neg = "";
_root.pointsMC.pts = _root.points;
}
Symbol 498 MovieClip Frame 1
_root.maintext.text = "Y O U H A V E L O S T 1 M I N U T E";
Symbol 498 MovieClip Frame 2
_root.timerpauseBtn.gotoAndStop(4);
Symbol 498 MovieClip Frame 17
if (_root.timer.min < 1) {
with (_root.timer) {
stop();
timer_one = 0;
timer_ten = 0;
timer_min = "00";
timeup = true;
}
this.gotoAndStop(1);
_root.endofgame();
} else {
_root.timer.min = _root.timer.min - 1;
}
Symbol 498 MovieClip Frame 55
if (_root.pointsCounter.e == _root.q) {
_root.pointsCounter.gotoAndStop(1);
} else {
_root.pointsCounter.gotoAndPlay(2);
}
_root.timerpauseBtn.gotoAndStop(1);
_root.points = 0;
_root.pointsMC.gotoAndStop(8);
_root.pointsMC.penalty.gotoAndStop(1);
this.gotoAndStop(1);
Symbol 499 MovieClip Frame 4
_parent.pointscircle._visible = false;
Symbol 499 MovieClip Frame 8
_parent.pointscircle._visible = true;
Symbol 499 MovieClip Frame 12
_parent.pointscircle._visible = false;
Symbol 499 MovieClip Frame 16
_parent.pointscircle._visible = true;
Symbol 499 MovieClip Frame 20
_parent.pointscircle._visible = false;
Symbol 499 MovieClip Frame 24
stop();
_root.pointsMC.penalty.penaltyMC.play();
Symbol 521 MovieClip Frame 1
stop();
Symbol 521 MovieClip Frame 3
_root.maintext.text = "Y O U R C R E D I T S H A V E B E E N D O U B L E D";
_root.credits.textColor = 16711680 /* 0xFF0000 */;
_root.dollarSign.textColor = 16711680 /* 0xFF0000 */;
bonusSound.start(1, 0);
Symbol 521 MovieClip Frame 32
_root.credit = _root.credit * 2;
Symbol 521 MovieClip Frame 58
if (_root.pointsCounter.e == _root.q) {
if ((_root.credit >= 2000) && (_root.cashB == false)) {
_root.cashButton._visible = true;
_root.cashButton.gotoAndPlay(3);
_root.maintext.text = "Y O U N O W H A V E U N L I M I T E D C A S H - G O N U T S !";
_root.temptext = "";
}
if ((_root.credit >= 20000) && (_root.thousandbet == false)) {
_root.BBL.play();
_root.maintext.text = "Y O U C A N N O W B E T $ 1 0 0 0 !";
_root.temptext = "S E L E C T B E T A M O U N T A N D P L A Y !";
}
if (((_root.credit >= 100000) && (_root.thousandbet == true)) && (_root.special == false)) {
_root.specialBonus.play();
_root.special = true;
_root.maintext.text = "B O N U S 1 0 P O I N T S !";
_root.temptext = "S E L E C T B E T A M O U N T A N D P L A Y !";
}
_root.pointsCounter.gotoAndStop(1);
} else {
_root.pointsCounter.gotoAndPlay(2);
}
g = 1;
while (g <= 5) {
_root["C" + g]._visible = true;
g++;
}
_root.credits.textColor = 65280;
_root.dollarSign.textColor = 65280;
_root.pointsMC.gotoAndStop(8);
_root.points = 0;
this.gotoAndStop(1);
_root.pointsMC.reward.timebonus.gotoAndStop(1);
_root.pointsMC.reward.gotoAndStop(1);
Symbol 531 MovieClip Frame 1
stop();
Symbol 531 MovieClip Frame 3
_root.maintext.text = "1 M I N U T E A D D E D";
bonusSound.start(1, 0);
_root.timerpauseBtn.gotoAndStop(3);
Symbol 531 MovieClip Frame 30
_root.timer.min = _root.timer.min + 1;
_root.timer.timeup = false;
_root.timer.play();
Symbol 531 MovieClip Frame 58
if (_root.pointsCounter.e == _root.q) {
_root.pointsCounter.gotoAndStop(1);
} else {
_root.pointsCounter.gotoAndPlay(2);
}
g = 1;
while (g <= 5) {
_root["C" + g]._visible = true;
g++;
}
_root.timerpauseBtn.gotoAndStop(1);
_root.pointsMC.gotoAndStop(8);
_root.points = 0;
this.gotoAndStop(1);
_root.pointsMC.reward.creditbonus.gotoAndStop(1);
_root.pointsMC.reward.gotoAndStop(1);
Symbol 532 MovieClip Frame 4
_parent.pointscircle._visible = false;
Symbol 532 MovieClip Frame 7
_parent.pointscircle._visible = true;
Symbol 532 MovieClip Frame 10
_parent.pointscircle._visible = false;
Symbol 532 MovieClip Frame 13
_parent.pointscircle._visible = true;
Symbol 532 MovieClip Frame 16
_parent.pointscircle._visible = false;
g = 1;
while (g <= 5) {
_root["C" + g]._visible = false;
g++;
}
_root.maintext.text = "S E L E C T Y O U R B O N U S";
Instance of Symbol 521 MovieClip "creditbonus" in Symbol 532 MovieClip Frame 29
onClipEvent (load) {
bonusSound = new Sound(this);
bonusSound.attachSound("bonusSound");
}
Symbol 532 MovieClip Frame 36
stop();
creditbonus.onRollOver = function () {
if (this._currentframe == 1) {
this.gotoAndStop(2);
_root.maintext.text = "C L I C K O R P R E S S < L e f t A r r o w >";
}
};
creditbonus.onRollOut = function () {
if (this._currentframe == 2) {
this.gotoAndStop(1);
_root.maintext.text = "S E L E C T Y O U R B O N U S";
}
};
creditbonus.onPress = function () {
this.play();
this.enabled = false;
timebonus.enabled = false;
timebonus.gotoAndStop(59);
Key.removeListener(leftarrowListener);
Key.removeListener(rightarrowListener);
};
timebonus.onRollOver = function () {
if (this._currentframe == 1) {
this.gotoAndStop(2);
_root.maintext.text = "C L I C K O R P R E S S < R i g h t A r r o w >";
}
};
timebonus.onRollOut = function () {
if (this._currentframe == 2) {
this.gotoAndStop(1);
_root.maintext.text = "S E L E C T Y O U R B O N U S";
}
};
timebonus.onPress = function () {
this.play();
this.enabled = false;
creditbonus.enabled = false;
creditbonus.gotoAndStop(59);
Key.removeListener(leftarrowListener);
Key.removeListener(rightarrowListener);
};
var leftarrowListener = new Object();
leftarrowListener.onKeyDown = function () {
if (Key.getCode() == 37) {
Key.removeListener(leftarrowListener);
Key.removeListener(rightarrowListener);
creditbonus.play();
creditbonus.enabled = false;
timebonus.enabled = false;
timebonus.gotoAndStop(59);
}
};
var rightarrowListener = new Object();
rightarrowListener.onKeyDown = function () {
if (Key.getCode() == 39) {
Key.removeListener(leftarrowListener);
Key.removeListener(rightarrowListener);
timebonus.play();
timebonus.enabled = false;
creditbonus.enabled = false;
creditbonus.gotoAndStop(59);
}
};
Key.addListener(leftarrowListener);
Key.addListener(rightarrowListener);
Instance of Symbol 531 MovieClip "timebonus" in Symbol 532 MovieClip Frame 36
onClipEvent (load) {
bonusSound = new Sound(this);
bonusSound.attachSound("bonusSound");
}
Instance of Symbol 499 MovieClip "penalty" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 532 MovieClip "reward" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 536 MovieClip "pointscircle" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 566 MovieClip Frame 1
stop();
timer_min = "07";
min = 7;
timer_ten = 0;
timer_one = 0;
timeup = false;
Symbol 566 MovieClip Frame 2
if (((timer_one == 0) && (timer_ten == 0)) && (timer_min == 0)) {
stop();
timeup = true;
_root.timerpauseBtn.enabled = false;
if (((_root._currentframe == 3) && (_root.q <= 0)) || ((_root._currentframe == 31) && (_root.win == 0))) {
_root.endofgame();
}
}
Symbol 566 MovieClip Frame 24
if (timer_one == 0) {
timer_one = 9;
if (timer_ten == 0) {
timer_ten = 5;
min = min - 1;
} else {
timer_ten = timer_ten - 1;
}
} else {
timer_one = timer_one - 1;
}
if ((timer_min >= 10) || (min >= 10)) {
timer_min = min;
}
if (timer_min < 10) {
timer_min = "0" + min;
}
gotoAndPlay (2);
Symbol 577 MovieClip Frame 1
stop();
if (_root._currentframe > 2) {
_root.timer.colour.setRGB(48896);
}
Symbol 577 MovieClip Frame 2
_root.timer.colour.setRGB(3947740);
Symbol 577 MovieClip Frame 3
_root.timer.colour.setRGB(16711680);
Symbol 577 MovieClip Frame 4
_root.timer.colour.setRGB(6697830);
Symbol 593 MovieClip Frame 1
stop();
Symbol 593 MovieClip Frame 2
_root.cashButton.enabled = false;
Key.removeListener(_root.backspaceListener);
_root.dealButton.enabled = false;
_root.dealButton.gotoAndStop(15);
Key.removeListener(_root.spaceListener);
_root.doubleButton.enabled = false;
_root.doubleButton.gotoAndStop(15);
Key.removeListener(_root.enterListener);
_root.takewinButton.enabled = false;
if (_root.takewinButton._currentframe == 1) {
_root.takewinButton.gotoAndStop(15);
}
_root.bet10.enabled = false;
_root.bet20.enabled = false;
_root.bet50.enabled = false;
_root.bet100.enabled = false;
_root.bet1000.enabled = false;
_root.timerpauseBtn.enabled = false;
Symbol 593 MovieClip Frame 6
_root.thousandbet = true;
_root.bet1000._visible = true;
_root.bet1000._xscale = 0;
_root.bet1000._yscale = 0;
_root.bet1000.onEnterFrame = function () {
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
if ((this._xscale == 100) && (this._yscale == 100)) {
delete _root.bet1000.onEnterFrame;
}
};
Symbol 593 MovieClip Frame 22
_root.paytable.QuestionL.gotoAndStop(2);
_root.paytable.QuestionR.gotoAndStop(2);
Symbol 593 MovieClip Frame 24
_root.paytable.QuestionL.gotoAndStop(1);
_root.paytable.QuestionR.gotoAndStop(1);
Symbol 593 MovieClip Frame 26
_root.paytable.QuestionL.gotoAndStop(2);
_root.paytable.QuestionR.gotoAndStop(2);
Symbol 593 MovieClip Frame 28
_root.paytable.QuestionL.gotoAndStop(1);
_root.paytable.QuestionR.gotoAndStop(1);
Symbol 593 MovieClip Frame 30
_root.paytable.QuestionL.gotoAndStop(2);
_root.paytable.QuestionR.gotoAndStop(2);
Symbol 593 MovieClip Frame 32
_root.paytable.QuestionL.gotoAndStop(1);
_root.paytable.QuestionR.gotoAndStop(1);
Symbol 593 MovieClip Frame 34
_root.paytable.QuestionL.gotoAndStop(2);
_root.paytable.QuestionR.gotoAndStop(2);
Symbol 593 MovieClip Frame 38
stop();
_root.paytable.play();
Symbol 631 MovieClip Frame 1
stop();
Symbol 631 MovieClip Frame 15
stop();
Symbol 636 MovieClip Frame 1
stop();
Symbol 636 MovieClip Frame 15
stop();
Symbol 641 MovieClip Frame 1
stop();
Symbol 641 MovieClip Frame 15
stop();
Symbol 683 MovieClip Frame 24
stop();
Symbol 683 MovieClip Frame 54
gotoAndStop (24);
Symbol 683 MovieClip Frame 77
stop();
Symbol 688 Button
on (rollOver) {
_root.maintext.text = "C L I C K O R P R E S S < L e f t A r r o w >";
}
on (rollOut, releaseOutside) {
_root.maintext.text = _root.temptext;
_root.takewinButton.enabled = true;
}
on (press) {
_root.takewinButton.enabled = false;
}
on (release, keyPress "<Left>") {
if ((_root.RB._currentframe <= 2) || ((_root.RB._currentframe == 8) || (_root.RB._currentframe == 9))) {
Key.removeListener(_root.doubleupspaceListener);
_root.takewinButton.enabled = false;
_root.takewinButton.gotoAndStop(15);
stopAllSounds();
gotoAndPlay (2);
_root.RB.special.gotoAndStop(1);
_root.RB.init();
t = 2;
while (t <= 6) {
_root.RB["button" + t]._alpha = 20;
t++;
}
u = random(4) + 2;
_root.RB.special.gotoAndStop(u);
if ((u == 2) || (u == 3)) {
_root.RB.doubleV1 = 1;
}
if ((u == 4) || (u == 5)) {
_root.RB.doubleV1 = 2;
}
_root.RB.k = u;
_root.RB.gotoAndPlay(2);
}
}
Symbol 689 Button
on (rollOver) {
_root.maintext.text = "C L I C K O R P R E S S < L e f t A r r o w >";
}
on (rollOut, releaseOutside) {
_root.maintext.text = _root.temptext;
}
on (release, keyPress "<Left>") {
if ((_root.RB._currentframe <= 2) || ((_root.RB._currentframe == 8) || (_root.RB._currentframe == 9))) {
stopAllSounds();
gotoAndPlay (2);
_root.RB.special.gotoAndStop(1);
_root.RB.init();
t = 2;
while (t <= 6) {
_root.RB["button" + t]._alpha = 20;
t++;
}
u = random(4) + 2;
_root.RB.special.gotoAndStop(u);
if ((u == 2) || (u == 3)) {
_root.RB.doubleV1 = 1;
}
if ((u == 4) || (u == 5)) {
_root.RB.doubleV1 = 2;
}
_root.RB.k = u;
_root.RB.gotoAndPlay(2);
}
}
Symbol 690 MovieClip Frame 1
stop();
Symbol 690 MovieClip Frame 10
gotoAndStop (1);
if (_root.win > 0) {
Key.addListener(_root.doubleupspaceListener);
_root.takewinButton.enabled = true;
_root.takewinButton.gotoAndStop(1);
}
Symbol 694 Button
on (rollOver) {
_root.maintext.text = "C L I C K O R P R E S S < D e l e t e >";
}
on (rollOut, releaseOutside) {
_root.maintext.text = _root.temptext;
_root.takewinButton.enabled = true;
}
on (press) {
_root.takewinButton.enabled = false;
}
on (release, keyPress "<Delete>") {
if ((_root.RB._currentframe <= 2) || ((_root.RB._currentframe == 8) || (_root.RB._currentframe == 9))) {
Key.removeListener(_root.doubleupspaceListener);
_root.takewinButton.enabled = false;
_root.takewinButton.gotoAndStop(15);
stopAllSounds();
gotoAndPlay (2);
_root.RB.special.gotoAndStop(1);
u = random(4) + 2;
_root.RB.special.gotoAndStop(u);
_root.RB.init();
if (u == 3) {
_root.RB.doubleV3 = 1;
}
if (((u == 2) || (u == 4)) || (u == 5)) {
_root.RB.doubleV3 = 2;
}
t = 1;
while (t <= 2) {
_root.RB["button" + t]._alpha = 20;
t++;
}
t = 4;
while (t <= 6) {
_root.RB["button" + t]._alpha = 20;
t++;
}
_root.RB.k = u;
_root.RB.gotoAndPlay(2);
}
}
Symbol 695 Button
on (rollOver) {
_root.maintext.text = "C L I C K O R P R E S S < D e l e t e >";
}
on (rollOut, releaseOutside) {
_root.maintext.text = _root.temptext;
}
on (release, keyPress "<Delete>") {
if ((_root.RB._currentframe <= 2) || ((_root.RB._currentframe == 8) || (_root.RB._currentframe == 9))) {
stopAllSounds();
gotoAndPlay (2);
_root.RB.special.gotoAndStop(1);
u = random(4) + 2;
_root.RB.special.gotoAndStop(u);
_root.RB.init();
if (u == 3) {
_root.RB.doubleV3 = 1;
}
if (((u == 2) || (u == 4)) || (u == 5)) {
_root.RB.doubleV2 = 2;
}
t = 1;
while (t <= 2) {
_root.RB["button" + t]._alpha = 20;
t++;
}
t = 4;
while (t <= 6) {
_root.RB["button" + t]._alpha = 20;
t++;
}
_root.RB.k = u;
_root.RB.gotoAndPlay(2);
}
}
Symbol 696 MovieClip Frame 1
stop();
Symbol 696 MovieClip Frame 10
gotoAndStop (1);
if (_root.win > 0) {
Key.addListener(_root.doubleupspaceListener);
_root.takewinButton.enabled = true;
_root.takewinButton.gotoAndStop(1);
}
Symbol 698 Button
on (rollOver) {
_root.maintext.text = "C L I C K O R P R E S S < I n s e r t >";
}
on (rollOut, releaseOutside) {
_root.maintext.text = _root.temptext;
_root.takewinButton.enabled = true;
}
on (press) {
_root.takewinButton.enabled = false;
}
on (release, keyPress "<Insert>") {
if ((_root.RB._currentframe <= 2) || ((_root.RB._currentframe == 8) || (_root.RB._currentframe == 9))) {
Key.removeListener(_root.doubleupspaceListener);
_root.takewinButton.enabled = false;
_root.takewinButton.gotoAndStop(15);
stopAllSounds();
gotoAndPlay (2);
_root.RB.special.gotoAndStop(1);
u = random(4) + 2;
_root.RB.special.gotoAndStop(u);
_root.RB.init();
if (u == 2) {
_root.RB.doubleV2 = 1;
}
if (((u == 3) || (u == 4)) || (u == 5)) {
_root.RB.doubleV2 = 2;
}
_root.RB.button1._alpha = 20;
t = 3;
while (t <= 6) {
_root.RB["button" + t]._alpha = 20;
t++;
}
_root.RB.k = u;
_root.RB.gotoAndPlay(2);
}
}
Symbol 699 Button
on (rollOver) {
_root.maintext.text = "C L I C K O R P R E S S < I n s e r t >";
}
on (rollOut, releaseOutside) {
_root.maintext.text = _root.temptext;
}
on (release, keyPress "<Insert>") {
if ((_root.RB._currentframe <= 2) || ((_root.RB._currentframe == 8) || (_root.RB._currentframe == 9))) {
stopAllSounds();
gotoAndPlay (2);
_root.RB.special.gotoAndStop(1);
u = random(4) + 2;
_root.RB.special.gotoAndStop(u);
_root.RB.init();
if (u == 2) {
_root.RB.doubleV2 = 1;
}
if (((u == 3) || (u == 4)) || (u == 5)) {
_root.RB.doubleV2 = 2;
}
_root.RB.button1._alpha = 20;
t = 3;
while (t <= 6) {
_root.RB["button" + t]._alpha = 20;
t++;
}
_root.RB.k = u;
_root.RB.gotoAndPlay(2);
}
}
Symbol 700 Button
on (rollOver) {
_root.maintext.text = "C L I C K O R P R E S S < I n s e r t >";
}
on (rollOut, releaseOutside) {
_root.maintext.text = _root.temptext;
}
on (release, keyPress "<Insert>") {
if ((_root.RB._currentframe <= 2) || ((_root.RB._currentframe == 8) || (_root.RB._currentframe == 9))) {
stopAllSounds();
gotoAndPlay (2);
_root.RB.special.gotoAndStop(1);
u = random(4) + 2;
_root.RB.special.gotoAndStop(u);
_root.RB.init();
if (u == 2) {
_root.RB.doubleV2 = 1;
}
if (((u == 3) || (u == 4)) || (u == 5)) {
_root.RB.doubleV2 = 2;
}
_root.RB.button1._alpha = 20;
t = 3;
while (t <= 6) {
_root.RB["button" + t]._alpha = 20;
t++;
}
_root.RB.k = u;
_root.RB.gotoAndPlay(2);
}
}
Symbol 701 MovieClip Frame 1
stop();
Symbol 701 MovieClip Frame 10
gotoAndStop (1);
if (_root.win > 0) {
Key.addListener(_root.doubleupspaceListener);
_root.takewinButton.enabled = true;
_root.takewinButton.gotoAndStop(1);
}
Symbol 705 Button
on (rollOver) {
_root.maintext.text = "C L I C K O R P R E S S < R i g h t A r r o w >";
}
on (rollOut, releaseOutside) {
_root.maintext.text = _root.temptext;
_root.takewinButton.enabled = true;
}
on (press) {
_root.takewinButton.enabled = false;
}
on (release, keyPress "<Right>") {
if ((_root.RB._currentframe <= 2) || ((_root.RB._currentframe == 8) || (_root.RB._currentframe == 9))) {
Key.removeListener(_root.doubleupspaceListener);
_root.takewinButton.enabled = false;
_root.takewinButton.gotoAndStop(15);
stopAllSounds();
gotoAndPlay (2);
_root.RB.special.gotoAndStop(1);
u = random(4) + 2;
_root.RB.special.gotoAndStop(u);
_root.RB.init();
if ((u == 4) || (u == 5)) {
_root.RB.doubleV4 = 1;
}
if ((u == 2) || (u == 3)) {
_root.RB.doubleV4 = 2;
}
t = 1;
while (t <= 3) {
_root.RB["button" + t]._alpha = 20;
t++;
}
t = 5;
while (t <= 6) {
_root.RB["button" + t]._alpha = 20;
t++;
}
_root.RB.k = u;
_root.RB.gotoAndPlay(2);
}
}
Symbol 706 Button
on (rollOver) {
_root.maintext.text = "C L I C K O R P R E S S < R i g h t A r r o w >";
}
on (rollOut, releaseOutside) {
_root.maintext.text = _root.temptext;
}
on (release, keyPress "<Right>") {
if ((_root.RB._currentframe <= 2) || ((_root.RB._currentframe == 8) || (_root.RB._currentframe == 9))) {
stopAllSounds();
gotoAndPlay (2);
_root.RB.special.gotoAndStop(1);
u = random(4) + 2;
_root.RB.special.gotoAndStop(u);
_root.RB.init();
if ((u == 4) || (u == 5)) {
_root.RB.doubleV4 = 1;
}
if ((u == 2) || (u == 3)) {
_root.RB.doubleV4 = 2;
}
t = 1;
while (t <= 3) {
_root.RB["button" + t]._alpha = 20;
t++;
}
t = 5;
while (t <= 6) {
_root.RB["button" + t]._alpha = 20;
t++;
}
_root.RB.k = u;
_root.RB.gotoAndPlay(2);
}
}
Symbol 707 MovieClip Frame 1
stop();
Symbol 707 MovieClip Frame 10
gotoAndStop (1);
if (_root.win > 0) {
Key.addListener(_root.doubleupspaceListener);
_root.takewinButton.enabled = true;
_root.takewinButton.gotoAndStop(1);
}
Symbol 711 Button
on (rollOver) {
_root.maintext.text = "C L I C K O R P R E S S < P a g e D o w n >";
}
on (rollOut, releaseOutside) {
_root.maintext.text = _root.temptext;
_root.takewinButton.enabled = true;
}
on (press) {
_root.takewinButton.enabled = false;
}
on (release, keyPress "<PgDn>") {
if ((_root.RB._currentframe <= 2) || ((_root.RB._currentframe == 8) || (_root.RB._currentframe == 9))) {
Key.removeListener(_root.doubleupspaceListener);
_root.takewinButton.enabled = false;
_root.takewinButton.gotoAndStop(15);
stopAllSounds();
gotoAndPlay (2);
_root.RB.special.gotoAndStop(1);
u = random(4) + 2;
_root.RB.special.gotoAndStop(u);
_root.RB.init();
if (u == 5) {
_root.RB.doubleV6 = 1;
}
if (((u == 2) || (u == 3)) || (u == 4)) {
_root.RB.doubleV6 = 2;
}
t = 1;
while (t <= 5) {
_root.RB["button" + t]._alpha = 20;
t++;
}
_root.RB.k = u;
_root.RB.gotoAndPlay(2);
}
}
Symbol 712 Button
on (rollOver) {
_root.maintext.text = "C L I C K O R P R E S S < P a g e D o w n >";
}
on (rollOut, releaseOutside) {
_root.maintext.text = _root.temptext;
}
on (release, keyPress "<PgDn>") {
if ((_root.RB._currentframe <= 2) || ((_root.RB._currentframe == 8) || (_root.RB._currentframe == 9))) {
stopAllSounds();
gotoAndPlay (2);
_root.RB.special.gotoAndStop(1);
u = random(4) + 2;
_root.RB.special.gotoAndStop(u);
_root.RB.init();
if (u == 5) {
_root.RB.doubleV6 = 1;
}
if (((u == 2) || (u == 3)) || (u == 4)) {
_root.RB.doubleV6 = 2;
}
t = 1;
while (t <= 5) {
_root.RB["button" + t]._alpha = 30;
t++;
}
_root.RB.k = u;
_root.RB.gotoAndPlay(2);
}
}
Symbol 713 MovieClip Frame 1
stop();
Symbol 713 MovieClip Frame 10
gotoAndStop (1);
if (_root.win > 0) {
Key.addListener(_root.doubleupspaceListener);
_root.takewinButton.enabled = true;
_root.takewinButton.gotoAndStop(1);
}
Symbol 715 Button
on (rollOver) {
_root.maintext.text = "C L I C K O R P R E S S < P a g e U p >";
}
on (rollOut, releaseOutside) {
_root.maintext.text = _root.temptext;
_root.takewinButton.enabled = true;
}
on (press) {
_root.takewinButton.enabled = false;
}
on (release, keyPress "<PgUp>") {
if ((_root.RB._currentframe <= 2) || ((_root.RB._currentframe == 8) || (_root.RB._currentframe == 9))) {
Key.removeListener(_root.doubleupspaceListener);
_root.takewinButton.enabled = false;
_root.takewinButton.gotoAndStop(15);
stopAllSounds();
gotoAndPlay (2);
_root.RB.special.gotoAndStop(1);
u = random(4) + 2;
_root.RB.special.gotoAndStop(u);
_root.RB.init();
if (u == 4) {
_root.RB.doubleV5 = 1;
}
if (((u == 2) || (u == 3)) || (u == 5)) {
_root.RB.doubleV5 = 2;
}
t = 1;
while (t <= 4) {
_root.RB["button" + t]._alpha = 20;
t++;
}
_root.RB.button6._alpha = 20;
t = 4;
while (t <= 6) {
t++;
}
_root.RB.k = u;
_root.RB.gotoAndPlay(2);
}
}
Symbol 716 Button
on (rollOver) {
_root.maintext.text = "C L I C K O R P R E S S < P a g e U p >";
}
on (rollOut, releaseOutside) {
_root.maintext.text = _root.temptext;
}
on (release, keyPress "<PgUp>") {
if ((_root.RB._currentframe <= 2) || ((_root.RB._currentframe == 8) || (_root.RB._currentframe == 9))) {
stopAllSounds();
gotoAndPlay (2);
_root.RB.special.gotoAndStop(1);
u = random(4) + 2;
_root.RB.special.gotoAndStop(u);
_root.RB.init();
if (u == 4) {
_root.RB.doubleV5 = 1;
}
if (((u == 2) || (u == 3)) || (u == 5)) {
_root.RB.doubleV5 = 2;
}
t = 1;
while (t <= 4) {
_root.RB["button" + t]._alpha = 20;
t++;
}
_root.RB.button6._alpha = 20;
t = 4;
while (t <= 6) {
t++;
}
_root.RB.k = u;
_root.RB.gotoAndPlay(2);
}
}
Symbol 717 MovieClip Frame 1
stop();
Symbol 717 MovieClip Frame 10
gotoAndStop (1);
if (_root.win > 0) {
Key.addListener(_root.doubleupspaceListener);
_root.takewinButton.enabled = true;
_root.takewinButton.gotoAndStop(1);
}
Symbol 723 MovieClip Frame 14
stop();
Symbol 723 MovieClip Frame 28
stop();
Symbol 723 MovieClip Frame 42
stop();
Symbol 723 MovieClip Frame 56
stop();
Symbol 727 MovieClip Frame 1
stop();
Symbol 727 MovieClip Frame 2
stop();
Symbol 732 MovieClip Frame 1
stop();
Symbol 732 MovieClip Frame 36
gotoAndStop (1);
Symbol 751 MovieClip Frame 1
stop();
Symbol 751 MovieClip Frame 20
gotoAndStop (1);
Symbol 777 MovieClip Frame 1
function init() {
q = 1;
while (q <= 6) {
_root.RB["doubleV" + q] = 0;
_root.RB["button" + q]._alpha = 100;
q++;
}
}
function lastcard(k) {
r = 1;
while (r <= 43) {
if ((_root.RB.last1._currentframe > r) && (_root.RB.last1._currentframe < (r + 13))) {
_root.RB.last1.gotoAndStop(r + 13);
}
r = r + 14;
}
L = 7;
while (L >= 2) {
_root.RB["last" + L].gotoAndStop(_root.RB["last" + (L - 1)]._currentframe);
L--;
}
if (k == 2) {
_root.RB.last1.gotoAndPlay(1);
}
if (k == 3) {
_root.RB.last1.gotoAndPlay(15);
}
if (k == 4) {
_root.RB.last1.gotoAndPlay(29);
}
if (k == 5) {
_root.RB.last1.gotoAndPlay(43);
}
}
RBfinish = false;
DUwin.tempwin = _root.win;
DUwin.gotoAndPlay(1);
n = _root.win;
_root.RB.special.gotoAndStop(1);
_root.pointsMC.doublecounter.doublecount = 0;
init();
w = 1;
while (w <= 4) {
_root.RB["DUBar" + w].gotoAndStop(1);
w++;
}
if (_root.thousandbet == false) {
WrongColour.gotoAndStop(1);
} else {
WrongColour.gotoAndStop(2);
}
gotoAndStop (2);
Instance of Symbol 732 MovieClip "FiveBar" in Symbol 777 MovieClip Frame 1
on (rollOver) {
if ((this._currentframe == 1) && (_root.win != 0)) {
this.gotoAndPlay(14);
}
}
Instance of Symbol 751 MovieClip "DUBar1" in Symbol 777 MovieClip Frame 1
on (rollOver) {
if ((this._currentframe == 1) && (_root.win != 0)) {
this.gotoAndPlay(5);
}
}
Instance of Symbol 751 MovieClip "DUBar2" in Symbol 777 MovieClip Frame 1
on (rollOver) {
if ((this._currentframe == 1) && (_root.win != 0)) {
this.gotoAndPlay(5);
}
}
Instance of Symbol 751 MovieClip "DUBar3" in Symbol 777 MovieClip Frame 1
on (rollOver) {
if ((this._currentframe == 1) && (_root.win != 0)) {
this.gotoAndPlay(5);
}
}
Instance of Symbol 751 MovieClip "DUBar4" in Symbol 777 MovieClip Frame 1
on (rollOver) {
if ((this._currentframe == 1) && (_root.win != 0)) {
this.gotoAndPlay(5);
}
}
Symbol 777 MovieClip Frame 2
if (DUwin.tempwin < n) {
DUwin.tempwin = n;
}
win2 = 0;
win4 = 0;
Symbol 777 MovieClip Frame 7
lastcard(k);
if ((_root.RB.doubleV1 == 1) || (_root.RB.doubleV4 == 1)) {
n = DUwin.tempwin * 2;
win2 = 1;
_root.maintext.text = "W I N W I N W I N";
_root.temptext = _root.maintext.text;
}
if ((((_root.RB.doubleV2 == 1) || (_root.RB.doubleV3 == 1)) || (_root.RB.doubleV5 == 1)) || (_root.RB.doubleV6 == 1)) {
n = DUwin.tempwin * 4;
win4 = 1;
_root.maintext.text = "W I N W I N W I N";
_root.temptext = _root.maintext.text;
}
if (win2 == 1) {
_root.pointsMC.doublecounter.doublecount = _root.pointsMC.doublecounter.doublecount + 1;
if (_root.pointsMC.doublecounter.doublecount == 5) {
_root.pointsMC.doublecounter.doublecount = 10;
FiveBar.gotoAndPlay(2);
cheep.start(0, 2);
}
DUBar1.gotoAndPlay(2);
DUBar2.gotoAndStop(1);
DUwin.gotoAndPlay(25);
double1.start(0, 999);
}
if ((_root.RB.doubleV1 == 2) || (_root.RB.doubleV4 == 2)) {
if (_root.thousandbet == false) {
_root.pointsMC.doublecounter.doublecount = _root.pointsMC.doublecounter.doublecount - 1;
} else {
_root.pointsMC.doublecounter.doublecount = _root.pointsMC.doublecounter.doublecount - 2;
}
gotoAndPlay ("lose");
DUBar1.gotoAndStop(1);
DUBar2.gotoAndStop(1);
DUBar3.gotoAndPlay(2);
Key.removeListener(_root.doubleupspaceListener);
_root.takewinButton.enabled = false;
n = 0;
_root.win = 0;
DUwin.gotoAndPlay(55);
}
if (win4 == 1) {
_root.pointsMC.doublecounter.doublecount = _root.pointsMC.doublecounter.doublecount + 2;
if ((_root.pointsMC.doublecounter.doublecount == 5) || (_root.pointsMC.doublecounter.doublecount == 6)) {
_root.pointsMC.doublecounter.doublecount = _root.pointsMC.doublecounter.doublecount + 5;
FiveBar.gotoAndPlay(2);
cheep.start(0, 2);
}
DUBar1.gotoAndStop(1);
DUBar2.gotoAndPlay(2);
DUwin.gotoAndPlay(25);
double2.start(0, 999);
}
if ((((_root.RB.doubleV2 == 2) || (_root.RB.doubleV3 == 2)) || (_root.RB.doubleV5 == 2)) || (_root.RB.doubleV6 == 2)) {
_root.pointsMC.doublecounter.doublecount = _root.pointsMC.doublecounter.doublecount - 1;
gotoAndPlay ("lose");
DUBar1.gotoAndStop(1);
DUBar2.gotoAndStop(1);
DUBar4.gotoAndPlay(2);
Key.removeListener(_root.doubleupspaceListener);
_root.takewinButton.enabled = false;
n = 0;
_root.win = 0;
DUwin.gotoAndPlay(55);
}
Symbol 777 MovieClip Frame 8
if (win2 == 1) {
if (DUwin.tempwin >= ((n / 2) + 100000)) {
DUwin.tempwin = DUwin.tempwin + 10000;
}
if ((DUwin.tempwin >= ((n / 2) + 10000)) && (DUwin.tempwin <= ((n / 2) + 100000))) {
DUwin.tempwin = DUwin.tempwin + 1000;
}
if ((DUwin.tempwin >= ((n / 2) + 1000)) && (DUwin.tempwin < ((n / 2) + 10000))) {
DUwin.tempwin = DUwin.tempwin + 100;
}
if ((DUwin.tempwin >= ((n / 2) + 100)) && (DUwin.tempwin < ((n / 2) + 1000))) {
DUwin.tempwin = DUwin.tempwin + 10;
}
if (DUwin.tempwin < ((n / 2) + 100)) {
DUwin.tempwin = DUwin.tempwin + 1;
}
if (DUwin.tempwin == ((n / 2) + 40)) {
init();
_root.RB.special.gotoAndStop(1);
_root.maintext.text = "";
_root.temptext = _root.maintext.text;
}
}
if (win4 == 1) {
if (DUwin.tempwin >= ((n / 4) + 100000)) {
DUwin.tempwin = DUwin.tempwin + 10000;
}
if ((DUwin.tempwin >= ((n / 4) + 10000)) && (DUwin.tempwin <= ((n / 4) + 100000))) {
DUwin.tempwin = DUwin.tempwin + 1000;
}
if ((DUwin.tempwin >= ((n / 4) + 1000)) && (DUwin.tempwin < ((n / 4) + 10000))) {
DUwin.tempwin = DUwin.tempwin + 100;
}
if ((DUwin.tempwin >= ((n / 4) + 100)) && (DUwin.tempwin < ((n / 4) + 1000))) {
DUwin.tempwin = DUwin.tempwin + 10;
}
if (DUwin.tempwin < ((n / 4) + 100)) {
DUwin.tempwin = DUwin.tempwin + 1;
}
if (DUwin.tempwin == ((n / 4) + 40)) {
init();
_root.RB.special.gotoAndStop(1);
_root.maintext.text = "";
_root.temptext = _root.maintext.text;
}
}
play();
Symbol 777 MovieClip Frame 9
if (DUwin.tempwin < n) {
prevFrame();
} else {
init();
stopAllSounds();
_root.RB.special.gotoAndStop(1);
_root.maintext.text = "";
_root.temptext = _root.maintext.text;
gotoAndStop (2);
}
Symbol 777 MovieClip Frame 15
_root.maintext.text = "L O S E";
_root.temptext = _root.maintext.text;
dada.start();
Symbol 777 MovieClip Frame 34
stopAllSounds();
_root.win = n;
_root.q = _root.pointsMC.doublecounter.doublecount;
if (!((_root.timer.timeup == true) && (_root.q <= 0))) {
_root.pointsCounter.play();
}
if (_root.win == 0) {
_root.maintext.text = "";
_root.temptext = _root.maintext.text;
}
_root.gotoAndStop(3);
Symbol 777 MovieClip Frame 35
stop();
_root.doubles = false;
RBfinish = true;
Symbol 780 MovieClip Frame 1
_root.paytable.QuestionL._visible = true;
_root.paytable.QuestionR._visible = true;
_root.paytable.paytable5._visible = true;
Symbol 780 MovieClip Frame 2
_parent.QuestionL._visible = false;
_parent.QuestionR._visible = false;
_parent.paytable5._visible = false;
Symbol 780 MovieClip Frame 10
if (_root.paytable.unlock.hitTest(_root._xmouse, _root._ymouse, true)) {
stop();
} else {
gotoAndStop (1);
}
Symbol 814 MovieClip Frame 1
stop();
Symbol 814 MovieClip Frame 2
stop();
Symbol 814 MovieClip Frame 18
stop();
Symbol 886 MovieClip Frame 1
stop();
Symbol 886 MovieClip Frame 2
stop();
Symbol 889 MovieClip Frame 1
stop();
Symbol 889 MovieClip Frame 2
stop();
Symbol 941 MovieClip Frame 1
stop();
Symbol 941 MovieClip Frame 2
stop();
Symbol 941 MovieClip Frame 18
stop();
Symbol 942 MovieClip Frame 1
stop();
unlock.useHandCursor = false;
Instance of Symbol 780 MovieClip "unlock" in Symbol 942 MovieClip Frame 1
onClipEvent (load) {
stop();
}
on (rollOver) {
if ((_root._currentframe == 3) || (_root._currentframe == 31)) {
if ((((((_root.doubles == false) && (_root.timer.timeup == false)) && (_root.cashB == true)) && (_root.timerpause == false)) && (_root.q == 0)) && (_root.joker == 0)) {
gotoAndPlay (1);
}
}
}
on (rollOut) {
if (_currentframe == 10) {
gotoAndStop (1);
}
}
Instance of Symbol 804 MovieClip "paytable1" in Symbol 942 MovieClip Frame 1
onClipEvent (load) {
i = 0;
while (i <= 10) {
this["c" + i] = new Color(eval ("pay" + i));
this["c" + i].setRGB(4605510);
i++;
}
}
Instance of Symbol 814 MovieClip "box1" in Symbol 942 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (18);
}
Instance of Symbol 837 MovieClip "paytable2" in Symbol 942 MovieClip Frame 1
onClipEvent (load) {
i = 0;
while (i <= 10) {
this["c" + i] = new Color(eval ("pay" + i));
this["c" + i].setRGB(3947740);
i++;
}
}
Instance of Symbol 860 MovieClip "paytable3" in Symbol 942 MovieClip Frame 1
onClipEvent (load) {
i = 0;
while (i <= 10) {
this["c" + i] = new Color(eval ("pay" + i));
this["c" + i].setRGB(3947740);
i++;
}
}
Instance of Symbol 882 MovieClip "paytable4" in Symbol 942 MovieClip Frame 1
onClipEvent (load) {
i = 0;
while (i <= 10) {
this["c" + i] = new Color(eval ("pay" + i));
this["c" + i].setRGB(3947740);
i++;
}
}
Instance of Symbol 933 MovieClip "paytable5" in Symbol 942 MovieClip Frame 1
onClipEvent (load) {
i = 0;
while (i <= 10) {
this["c" + i] = new Color(eval ("pay" + i));
this["c" + i].setRGB(3947740);
i++;
}
}
Symbol 942 MovieClip Frame 30
if (_root.pointsCounter._currentframe > 1) {
_root.pointsCounter.play();
}
Instance of Symbol 933 MovieClip "paytable5" in Symbol 942 MovieClip Frame 31
onClipEvent (load) {
i = 0;
while (i <= 10) {
this["c" + i] = new Color(eval ("pay" + i));
this["c" + i].setRGB(3947740);
i++;
}
}
Symbol 942 MovieClip Frame 43
stop();
_root.specialBonus._visible = true;
if (_root.q == 0) {
_root.pointsCounter.gotoAndStop(4);
}
Symbol 954 MovieClip Frame 1
stop();
Symbol 954 MovieClip Frame 2
specialsound.start();
_root.cashButton.enabled = false;
Key.removeListener(_root.backspaceListener);
_root.dealButton.enabled = false;
_root.dealButton.gotoAndStop(15);
Key.removeListener(_root.spaceListener);
_root.doubleButton.enabled = false;
_root.doubleButton.gotoAndStop(15);
Key.removeListener(_root.enterListener);
_root.takewinButton.enabled = false;
if (_root.takewinButton._currentframe == 1) {
_root.takewinButton.gotoAndStop(15);
}
_root.bet10.enabled = false;
_root.bet20.enabled = false;
_root.bet50.enabled = false;
_root.bet100.enabled = false;
_root.bet1000.enabled = false;
_root.timerpauseBtn.enabled = false;
Symbol 954 MovieClip Frame 35
_root.q = _root.q + 10;
_root.pointsMC.doublecounter._visible = true;
_root.pointsMC.doublecounter.doublecount = _root.pointsMC.doublecounter.doublecount + 10;
Symbol 954 MovieClip Frame 66
_root.pointsCounter.play();
Symbol 954 MovieClip Frame 72
gotoAndStop (1);
this._visible = false;