Frame 1
startAgain = true;
stop();
_root.slidemusic_X = 0;
_root.slidesound_X = 0;
countmain = 0;
countsound = 0;
activate = 0;
totalDelay = 0;
Instance of Symbol 265 MovieClip "controls" in Frame 1
onClipEvent (load) {
this.swapDepths(2000675);
}
Instance of Symbol 294 MovieClip in Frame 1
onClipEvent (load) {
this.swapDepths(100000);
}
Frame 3
function defineCalls() {
dbInterface.startGame = function () {
lc.send(lcBaseString + lcString, "startGame");
_root.score = 0;
_root.dbInterface.updateScore(_root.score);
};
dbInterface.endGame = function () {
lc.send(lcBaseString + lcString, "endGame");
};
dbInterface.endGameUncompleted = function () {
lc.send(lcBaseString + lcString, "endGameUncompleted");
};
dbInterface.setFeedbackType = function (fbType) {
lc.send(lcBaseString + lcString, "setFeedbackType", fbType);
};
dbInterface.updateTime = function (strTime) {
lc.send(lcBaseString + lcString, "updateTime", strTime);
};
dbInterface.updateScore = function (strScore) {
lc.send(lcBaseString + lcString, "updateScore", strScore);
};
setActive();
}
function setActive() {
trace("heree");
connection.text = "Connection: made";
dbInterface.setFeedbackType("score");
dbInterface.startGame();
}
function setDeactive() {
dbInterface.endGame();
}
function testConnection() {
lcTest.send(lcBaseString + lcString, "active");
feedback.text = lcBaseString + lcString;
}
stop();
instClip.gotoAndStop(2);
var lc = new LocalConnection();
var lcTest = new LocalConnection();
var lcBaseString = "IKONCITY_GAMES";
var dbInterface = new Object();
var iTestConnectionIntervalID;
var iTimerIntervalID;
lcTest.onStatus = function (infoObject) {
if (infoObject.level == "error") {
clearInterval(iTestConnectionIntervalID);
defineCalls();
}
};
iTestConnectionIntervalID = setInterval(testConnection, 500);
lab = random(6) + 1;
_root.score = 0;
_root.gRound = 1;
countCard = 0;
Instance of Symbol 321 MovieClip "timer" in Frame 4
onClipEvent (load) {
function startTimer(limit_in) {
running = true;
limit = limit_in;
startGame = getTimer() - _root.pAgainTime;
}
function randomfun(Rsec) {
ranSec = random(Rsec) + 10;
ranMin = 3;
}
function randomfun1(Rsec1, Rmin1) {
ranSec = random(Rsec1) + 10;
ranMin = Rmin1;
}
_root.snd1.musicObj.start(0, 10000);
_root.timeLineBoost = false;
_root.once = 1;
_root.optionsclick = 1;
SpTime = 0;
Btime = 0;
_root.specialBonus = false;
_root.totalDelay = getTimer();
limit = 100;
rtime = limit;
running = false;
startTimer(240);
randomfun(50);
}
onClipEvent (enterFrame) {
if (running && (_root.optionsclick == 1)) {
delta = ((getTimer() - startGame) - _root.totalDelay) / 1000;
rtime = limit - delta;
if (rtime <= 0) {
rtime = 0;
running = false;
_root.gotoAndStop("lose");
}
timeMin = int(rtime / 60);
timeSec = int(rtime % 60);
if (timeSec < 10) {
TimeFormat = (timeMin + ":0") + timeSec;
} else {
TimeFormat = (timeMin + ":") + timeSec;
}
if (((ranMin == timeMin) && (ranSec == timeSec)) && (SpTime == 0)) {
SpTime = 1;
Btime = 0;
_root.specialBonus = true;
rand = random(3) + 2;
_parent.SpBonus_mc.gotoAndStop(rand);
}
if ((_root.specialBonus == true) && (Btime == 0)) {
_root.timeLineBoost = true;
if (_root.BoostTimeCalculate == 0) {
Btime = 1;
_root.BoostTimeCalculate = 10;
_root.specialBonus = false;
_root.timeLineBoost = false;
_parent.SpBonus_mc.gotoAndStop(1);
}
}
time = int(rtime);
}
}
Instance of Symbol 323 MovieClip in Frame 4
onClipEvent (load) {
_root.tempTLvar = 10;
}
Frame 5
function selectBackground(n) {
lab = n;
i = 0;
while (i < 53) {
eval (all[i]).cb.gotoAndStop(n);
i++;
}
}
function restart() {
_root.n.onEnterFrame = undefined;
_root.m.onEnterFrame = undefined;
_root.k.onEnterFrame = undefined;
_root.t.onEnterFrame = undefined;
i = 0;
while (i < 53) {
eval (all[i]).removeMovieClip();
eval (top[i]).removeMovieClip();
i++;
}
_root.timer.limit = _root.timer.limit + 15;
_root.SpBonus_mc.gotoAndStop(1);
_root.timer.SpTime = 0;
_root.gRound = _root.gRound + 1;
_root.tempTLvar = 10;
tempTSec = _root.timer.timeSec;
tempTMin = _root.timer.timeMin;
trace("tempTMin=" + tempTSec);
trace("tempTMin=" + tempTMin);
_root.timer.randomfun1(tempTSec, tempTMin);
_root.comboBar.gotoAndStop(1);
_root.nextRound.gotoAndStop(2);
_root.laneOnecardA = false;
_root.laneTwocardA = false;
_root.laneThreecardA = false;
_root.laneFourcardA = false;
_root.b1.enabled = true;
_root.b2.enabled = true;
_root.b3.enabled = true;
_root.b4.enabled = true;
_root.b1._alpha = 100;
_root.b2._alpha = 100;
_root.b3._alpha = 100;
_root.b4._alpha = 100;
gotoAndPlay (4);
}
function GetCards(forwho, num, cardDepth) {
var card = new Array();
var myCards = new Array();
var myCardsLength = 0;
var i = 0;
while (i < num) {
var n = random(cardslength);
card[i] = cards[n];
cards.splice(n, 1);
myCardsLength = myCards.push(card[i]);
cardslength = cards.length;
attachMovie(card[i], card[i], cardDepth);
cardDepth = cardDepth + 1;
var a = eval (card[i]);
var b = eval (forwho);
with (a) {
if (b == a1) {
_x = b._x + (2 * i);
_y = b._y;
gotoAndStop(20);
cb.gotoAndStop(lab);
} else {
_x = b._x - (2 * i);
_y = b._y;
gotoAndStop(20);
cb.gotoAndStop(lab);
}
}
i++;
}
return(myCards);
}
function swap(mcName) {
mcName.swapDepths(eval (swapCards[swapCounter]));
swapCounter = swapCounter + 1;
}
function placeCard() {
if (tempArr.length <= 53) {
if (cardStake == true) {
_root[temp + i] = eval (a1Cards[a1Cards.length - 1]);
i++;
if (tempArr) {
tempArr.push(a1Cards[a1Cards.length - 1]);
_root.CheckArr.push(a1Cards[a1Cards.length - 1]);
}
a1Cards.pop(a1Cards[a1Cards.length - 1]);
moveMe = true;
cardStake = false;
} else {
_root[temp + i] = eval (b1Cards[b1Cards.length - 1]);
i++;
tempArr.push(b1Cards[b1Cards.length - 1]);
b1Cards.pop(b1Cards[b1Cards.length - 1]);
_root.CheckArr.push(b1Cards[b1Cards.length - 1]);
cardStake = true;
moveMe = false;
}
_root[temp + i].gotoAndStop(1);
_root[temp + i].onEnterFrame = function () {
if (moveMe == true) {
if (_root[temp + i]._x >= 309) {
if (_root[temp + i]._name == "c135") {
_root.spCardWord.gotoAndStop(2);
trace("move card=" + _root[temp + i]);
}
_root[temp + i]._x = _root[temp + i]._x - 25;
}
if (_root[temp + i]._x <= 309) {
_root[temp + i].onEnterFrame = undefined;
}
} else {
if (_root[temp + i]._x <= 309) {
if (_root[temp + i]._name == "c135") {
_root.spCardWord.gotoAndStop(2);
trace("move card11=" + _root[temp + i]);
}
_root[temp + i]._x = _root[temp + i]._x + 25;
}
if (_root[temp + i]._x >= 309) {
_root[temp + i].onEnterFrame = undefined;
}
}
};
} else {
_root.restart();
}
}
stop();
order1 = new Array("01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13");
order2 = new Array("1", "2", "3", "4", "5");
allcards = new Array();
cards = new Array();
all = new Array();
laneOneArr = new Array();
laneTwoArr = new Array();
laneThreeArr = new Array();
laneFourArr = new Array();
_root.CheckArr = new Array();
_root.laneOneScore.countCardOne = 0;
_root.laneTwoScore.countCardTwo = 0;
_root.laneThreeScore.countCardThree = 0;
_root.laneFourScore.countCardFour = 0;
_root.tempArr = new Array();
_root.laneOneScore._visible = false;
_root.laneTwoScore._visible = false;
_root.laneThreeScore._visible = false;
_root.laneFourScore._visible = false;
laneOnecardA = false;
laneTwocardA = false;
laneThreecardA = false;
laneFourcardA = false;
getcardMusic = new Sound();
getcardMusic.attachSound("18_levelup1.wav");
i = 0;
while (i <= 13) {
if (i < 13) {
j = 0;
while (j < 4) {
allcards[j] = ("c" + order1[i]) + order2[j];
cardslength = cards.push(allcards[j]);
alllength = all.push(allcards[j]);
j++;
}
} else if (i == 13) {
j = 4;
allcards[j] = ("c" + order1[i - 1]) + order2[j];
i - 1;
cardslength = cards.push(allcards[j]);
i - 1;
alllength = all.push(allcards[j]);
}
i++;
}
a1Cards = GetCards(d1, 27, 1);
b1Cards = GetCards(a1, 26, 28);
swapCards = new Array();
swapCounter = 0;
var i = 2000;
while (i <= 2053) {
attachMovie("deep", "top" + i, i);
swapCards.push("top" + i);
i++;
}
firstMove = true;
frame = 1;
cardStake = true;
counter = 0;
tempArr.push(a1Cards[0]);
_root[a1Cards[0]]._x = a2._x;
_root[a1Cards[0]]._y = a2._y;
if (_root[a1Cards[0]]._name == "c135") {
_root.spCardWord.gotoAndStop(2);
}
_root[a1Cards[0]].gotoAndStop(1);
i = 1;
_root.createEmptyMovieClip("checkCard", 5000);
checkCard.onEnterFrame = function () {
if (_root.CheckArr[0] != undefined) {
_root.placeCard();
CheckArr = [];
}
};
_root.counter = true;
Frame 6
stop();
stopAllSounds();
setDeactive();
i = 0;
while (i < 53) {
eval (all[i])._alpha = 0;
eval (top[i])._alpha = 0;
i++;
}
Symbol 10 MovieClip Frame 1
stop();
Symbol 11 MovieClip Frame 1
attachMovie("bgmc1", "bg", 0);
stop();
Symbol 11 MovieClip Frame 2
attachMovie("bgmc2", "bg", 0);
stop();
Symbol 11 MovieClip Frame 3
attachMovie("bgmc3", "bg", 0);
stop();
Symbol 11 MovieClip Frame 4
attachMovie("bgmc4", "bg", 0);
stop();
Symbol 11 MovieClip Frame 5
attachMovie("bgmc5", "bg", 0);
stop();
Symbol 11 MovieClip Frame 6
attachMovie("bgmc6", "bg", 0);
stop();
Symbol 12 MovieClip [c011] Frame 1
stop();
Symbol 12 MovieClip [c011] Frame 2
gotoAndStop (1);
Symbol 12 MovieClip [c011] Frame 3
stop();
Symbol 15 MovieClip [c133] Frame 1
stop();
Symbol 15 MovieClip [c133] Frame 2
gotoAndStop (1);
Symbol 15 MovieClip [c133] Frame 3
stop();
Symbol 17 MovieClip [c132] Frame 1
stop();
Symbol 17 MovieClip [c132] Frame 2
gotoAndStop (1);
Symbol 17 MovieClip [c132] Frame 3
stop();
Symbol 19 MovieClip [c131] Frame 1
stop();
Symbol 19 MovieClip [c131] Frame 2
gotoAndStop (1);
Symbol 19 MovieClip [c131] Frame 3
stop();
Symbol 21 MovieClip [c124] Frame 1
stop();
Symbol 21 MovieClip [c124] Frame 2
gotoAndStop (1);
Symbol 21 MovieClip [c124] Frame 3
stop();
Symbol 23 MovieClip [c123] Frame 1
stop();
Symbol 23 MovieClip [c123] Frame 2
gotoAndStop (1);
Symbol 23 MovieClip [c123] Frame 3
stop();
Symbol 25 MovieClip [c122] Frame 1
stop();
Symbol 25 MovieClip [c122] Frame 2
gotoAndStop (1);
Symbol 25 MovieClip [c122] Frame 3
stop();
Symbol 27 MovieClip [c121] Frame 1
stop();
Symbol 27 MovieClip [c121] Frame 2
gotoAndStop (1);
Symbol 27 MovieClip [c121] Frame 3
stop();
Symbol 29 MovieClip [c114] Frame 1
stop();
Symbol 29 MovieClip [c114] Frame 2
gotoAndStop (1);
Symbol 29 MovieClip [c114] Frame 3
stop();
Symbol 31 MovieClip [c113] Frame 1
stop();
Symbol 31 MovieClip [c113] Frame 2
gotoAndStop (1);
Symbol 31 MovieClip [c113] Frame 3
stop();
Symbol 33 MovieClip [c112] Frame 1
stop();
Symbol 33 MovieClip [c112] Frame 2
gotoAndStop (1);
Symbol 33 MovieClip [c112] Frame 3
stop();
Symbol 36 MovieClip [c111] Frame 1
stop();
Symbol 36 MovieClip [c111] Frame 2
gotoAndStop (1);
Symbol 36 MovieClip [c111] Frame 3
stop();
Symbol 38 MovieClip Frame 1
stop();
Symbol 39 MovieClip [c104] Frame 1
stop();
Symbol 39 MovieClip [c104] Frame 2
gotoAndStop (1);
Symbol 39 MovieClip [c104] Frame 3
stop();
Symbol 41 MovieClip Frame 1
stop();
Symbol 42 MovieClip [c103] Frame 1
stop();
Symbol 42 MovieClip [c103] Frame 2
gotoAndStop (1);
Symbol 42 MovieClip [c103] Frame 3
stop();
Symbol 45 Button
on (release) {
_root.opencard(22);
}
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 2
stop();
Symbol 47 MovieClip [c102] Frame 1
stop();
Symbol 47 MovieClip [c102] Frame 2
gotoAndStop (1);
Symbol 47 MovieClip [c102] Frame 3
stop();
Symbol 48 MovieClip [c101] Frame 1
stop();
Symbol 48 MovieClip [c101] Frame 2
gotoAndStop (1);
Symbol 48 MovieClip [c101] Frame 3
stop();
Symbol 50 MovieClip Frame 1
stop();
Symbol 51 MovieClip [c094] Frame 1
stop();
Symbol 51 MovieClip [c094] Frame 2
gotoAndStop (1);
Symbol 51 MovieClip [c094] Frame 3
stop();
Symbol 53 MovieClip Frame 1
stop();
Symbol 54 MovieClip [c093] Frame 1
stop();
Symbol 54 MovieClip [c093] Frame 2
gotoAndStop (1);
Symbol 54 MovieClip [c093] Frame 3
stop();
Symbol 56 MovieClip Frame 1
stop();
Symbol 57 MovieClip [c092] Frame 1
stop();
Symbol 57 MovieClip [c092] Frame 2
gotoAndStop (1);
Symbol 57 MovieClip [c092] Frame 3
stop();
Symbol 59 MovieClip Frame 1
stop();
Symbol 60 MovieClip [c091] Frame 1
stop();
Symbol 60 MovieClip [c091] Frame 2
gotoAndStop (1);
Symbol 60 MovieClip [c091] Frame 3
stop();
Symbol 62 MovieClip Frame 1
stop();
Symbol 63 MovieClip [c084] Frame 1
stop();
Symbol 63 MovieClip [c084] Frame 2
gotoAndStop (1);
Symbol 63 MovieClip [c084] Frame 3
stop();
Symbol 65 MovieClip Frame 1
stop();
Symbol 66 MovieClip [c083] Frame 1
stop();
Symbol 66 MovieClip [c083] Frame 2
gotoAndStop (1);
Symbol 66 MovieClip [c083] Frame 3
stop();
Symbol 68 MovieClip Frame 1
stop();
Symbol 69 MovieClip [c082] Frame 1
stop();
Symbol 69 MovieClip [c082] Frame 2
gotoAndStop (1);
Symbol 69 MovieClip [c082] Frame 3
stop();
Symbol 71 MovieClip Frame 1
stop();
Symbol 72 MovieClip [c081] Frame 1
stop();
Symbol 72 MovieClip [c081] Frame 2
gotoAndStop (1);
Symbol 72 MovieClip [c081] Frame 3
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 75 MovieClip [c074] Frame 1
stop();
Symbol 75 MovieClip [c074] Frame 2
gotoAndStop (1);
Symbol 75 MovieClip [c074] Frame 3
stop();
Symbol 77 MovieClip Frame 1
stop();
Symbol 78 MovieClip [c073] Frame 1
stop();
Symbol 78 MovieClip [c073] Frame 2
gotoAndStop (1);
Symbol 78 MovieClip [c073] Frame 3
stop();
Symbol 80 MovieClip Frame 1
stop();
Symbol 81 MovieClip [c072] Frame 1
stop();
Symbol 81 MovieClip [c072] Frame 2
gotoAndStop (1);
Symbol 81 MovieClip [c072] Frame 3
stop();
Symbol 83 MovieClip Frame 1
stop();
Symbol 84 MovieClip [c071] Frame 1
stop();
Symbol 84 MovieClip [c071] Frame 2
gotoAndStop (1);
Symbol 84 MovieClip [c071] Frame 3
stop();
Symbol 86 MovieClip [c064] Frame 1
stop();
Symbol 86 MovieClip [c064] Frame 2
gotoAndStop (1);
Symbol 86 MovieClip [c064] Frame 3
stop();
Symbol 88 MovieClip Frame 1
stop();
Symbol 89 MovieClip [c063] Frame 1
stop();
Symbol 89 MovieClip [c063] Frame 2
gotoAndStop (1);
Symbol 89 MovieClip [c063] Frame 3
stop();
Symbol 91 MovieClip Frame 1
stop();
Symbol 92 MovieClip [c062] Frame 1
stop();
Symbol 92 MovieClip [c062] Frame 2
gotoAndStop (1);
Symbol 92 MovieClip [c062] Frame 3
stop();
Symbol 94 MovieClip Frame 1
stop();
Symbol 95 MovieClip [c061] Frame 1
stop();
Symbol 95 MovieClip [c061] Frame 2
gotoAndStop (1);
Symbol 95 MovieClip [c061] Frame 3
stop();
Symbol 97 MovieClip Frame 1
stop();
Symbol 98 MovieClip [c054] Frame 1
stop();
Symbol 98 MovieClip [c054] Frame 2
gotoAndStop (1);
Symbol 98 MovieClip [c054] Frame 3
stop();
Symbol 100 MovieClip Frame 1
stop();
Symbol 101 MovieClip [c053] Frame 1
stop();
Symbol 101 MovieClip [c053] Frame 2
gotoAndStop (1);
Symbol 101 MovieClip [c053] Frame 3
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 104 MovieClip [c052] Frame 1
stop();
Symbol 104 MovieClip [c052] Frame 2
gotoAndStop (1);
Symbol 104 MovieClip [c052] Frame 3
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 107 MovieClip [c051] Frame 1
stop();
Symbol 107 MovieClip [c051] Frame 2
gotoAndStop (1);
Symbol 107 MovieClip [c051] Frame 3
stop();
Symbol 109 MovieClip Frame 1
stop();
Symbol 110 MovieClip [c044] Frame 1
stop();
Symbol 110 MovieClip [c044] Frame 2
gotoAndStop (1);
Symbol 110 MovieClip [c044] Frame 3
stop();
Symbol 112 MovieClip Frame 1
stop();
Symbol 113 MovieClip [c043] Frame 1
stop();
Symbol 113 MovieClip [c043] Frame 2
gotoAndStop (1);
Symbol 113 MovieClip [c043] Frame 3
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 116 MovieClip [c042] Frame 1
stop();
Symbol 116 MovieClip [c042] Frame 2
gotoAndStop (1);
Symbol 116 MovieClip [c042] Frame 3
stop();
Symbol 118 MovieClip Frame 1
stop();
Symbol 119 MovieClip [c041] Frame 1
stop();
Symbol 119 MovieClip [c041] Frame 2
gotoAndStop (1);
Symbol 119 MovieClip [c041] Frame 3
stop();
Symbol 121 MovieClip Frame 1
stop();
Symbol 122 MovieClip [c034] Frame 1
stop();
Symbol 122 MovieClip [c034] Frame 2
gotoAndStop (1);
Symbol 122 MovieClip [c034] Frame 3
stop();
Symbol 124 MovieClip Frame 1
stop();
Symbol 125 MovieClip [c033] Frame 1
stop();
Symbol 125 MovieClip [c033] Frame 2
gotoAndStop (1);
Symbol 125 MovieClip [c033] Frame 3
stop();
Symbol 127 MovieClip Frame 1
stop();
Symbol 128 MovieClip [c032] Frame 1
stop();
Symbol 128 MovieClip [c032] Frame 2
gotoAndStop (1);
Symbol 128 MovieClip [c032] Frame 3
stop();
Symbol 130 MovieClip Frame 1
stop();
Symbol 131 MovieClip [c031] Frame 1
stop();
Symbol 131 MovieClip [c031] Frame 2
gotoAndStop (1);
Symbol 131 MovieClip [c031] Frame 3
stop();
Symbol 133 MovieClip Frame 1
stop();
Symbol 134 MovieClip [c024] Frame 1
stop();
Symbol 134 MovieClip [c024] Frame 2
gotoAndStop (1);
Symbol 134 MovieClip [c024] Frame 3
stop();
Symbol 136 MovieClip Frame 1
stop();
Symbol 137 MovieClip [c023] Frame 1
stop();
Symbol 137 MovieClip [c023] Frame 2
gotoAndStop (1);
Symbol 137 MovieClip [c023] Frame 3
stop();
Symbol 139 MovieClip Frame 1
stop();
Symbol 140 MovieClip [c022] Frame 1
stop();
Symbol 140 MovieClip [c022] Frame 2
gotoAndStop (1);
Symbol 140 MovieClip [c022] Frame 3
stop();
Symbol 142 MovieClip Frame 1
stop();
Symbol 143 MovieClip [c021] Frame 1
stop();
Symbol 143 MovieClip [c021] Frame 2
gotoAndStop (1);
Symbol 143 MovieClip [c021] Frame 3
stop();
Symbol 145 MovieClip Frame 1
stop();
Symbol 147 MovieClip [c014] Frame 1
stop();
Symbol 147 MovieClip [c014] Frame 2
gotoAndStop (1);
Symbol 147 MovieClip [c014] Frame 3
stop();
Symbol 149 MovieClip Frame 1
stop();
Symbol 150 MovieClip [c013] Frame 1
stop();
Symbol 150 MovieClip [c013] Frame 2
gotoAndStop (1);
Symbol 150 MovieClip [c013] Frame 3
stop();
Symbol 152 MovieClip Frame 1
stop();
Symbol 153 MovieClip [c012] Frame 1
stop();
Symbol 153 MovieClip [c012] Frame 2
gotoAndStop (1);
Symbol 153 MovieClip [c012] Frame 3
stop();
Symbol 160 MovieClip [c135] Frame 1
stop();
Symbol 160 MovieClip [c135] Frame 2
gotoAndStop (1);
Symbol 160 MovieClip [c135] Frame 3
stop();
Symbol 162 MovieClip [c134] Frame 1
stop();
Symbol 162 MovieClip [c134] Frame 2
gotoAndStop (1);
Symbol 162 MovieClip [c134] Frame 3
stop();
Symbol 164 MovieClip [dragMC] Frame 1
var g = eval ("_root." + _root.o.group);
(i = _root.o.order + 1);
(j = 1);
while (i < g.length) {
a = eval ("_root." + _root.o.name);
b = eval ("_root." + g[i]);
b._x = a._x;
b._y = a._y + (15 * j);
i++;
j++;
}
Symbol 164 MovieClip [dragMC] Frame 2
gotoAndPlay (1);
Symbol 181 MovieClip [bust] Frame 1
stop();
Symbol 181 MovieClip [bust] Frame 2
play();
Symbol 181 MovieClip [bust] Frame 5
_root.counter = false;
Symbol 181 MovieClip [bust] Frame 19
_root.counter = true;
removeMovieClip(this);
Symbol 181 MovieClip [bust] Frame 20
_root.counter = false;
play();
Symbol 181 MovieClip [bust] Frame 33
_root.counter = true;
removeMovieClip(this);
Symbol 181 MovieClip [bust] Frame 34
_root.counter = false;
play();
Symbol 181 MovieClip [bust] Frame 47
_root.counter = true;
removeMovieClip(this);
Symbol 192 Button
on (release) {
if (_root.once == 1) {
_root.optionPressed = getTimer();
_root.controls.gotoAndPlay(2);
_root.once = 0;
_root.optionsclick = 0;
}
}
Symbol 211 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 2
semiBg_mc.swapDepths(99999);
_root.b1.enabled = false;
_root.b2.enabled = false;
_root.b3.enabled = false;
_root.b4.enabled = false;
play();
Symbol 211 MovieClip Frame 48
_root.b1.enabled = true;
_root.b2.enabled = true;
_root.b3.enabled = true;
_root.b4.enabled = true;
gotoAndStop (1);
Symbol 219 MovieClip Frame 1
stop();
_root.randomSelected1 = false;
_root.randomSelected2 = false;
_root.randomSelected3 = false;
_root.randomSelected4 = false;
Symbol 219 MovieClip Frame 2
stop();
_root.randomSelected1 = true;
Symbol 219 MovieClip Frame 3
stop();
_root.randomSelected2 = true;
Symbol 219 MovieClip Frame 4
stop();
_root.randomSelected3 = true;
Symbol 219 MovieClip Frame 5
stop();
_root.randomSelected4 = true;
Symbol 224 Button
on (rollOver) {
_root.snd6.hitOverObj.start(0, 1);
}
on (release) {
if (_root.counter == true) {
if (tempArr.length <= 53) {
_root.snd2.correctObj.start(0, 1);
if (_root.laneOneScore.countCardOne <= 21) {
var m = eval (tempArr[tempArr.length - 1]);
_root.CheckArr.push(m);
_root.swap(m);
getCardNumOne = tempArr[tempArr.length - 1].substr(2, 1);
checkforA = Number(tempArr[tempArr.length - 1].substr(3, 1)) + Number(getCardNumOne);
_root.laneOneScore._visible = true;
if (tempArr[tempArr.length - 1].substr(1, 1) == "1") {
if (m._name == "c135") {
_root.snd7.spCardObj.start(0, 1);
_root.spCardWord.gotoAndStop(1);
tempScore = _root.laneOneScore.countCardOne;
Spscore = 21 - tempScore;
getCardNumOne = Spscore;
} else {
getCardNumOne = 10;
}
} else if ((tempArr[tempArr.length - 1].substr(1, 1) == "0") && (tempArr[tempArr.length - 1].substr(2, 1) == "1")) {
if (checkforA == 2) {
if ((_root.laneOneScore.countCardOne + 11) > 21) {
getCardNumOne = 1;
} else {
getCardNumOne = 11;
laneOnecardA = true;
}
} else if (checkforA == 3) {
if ((_root.laneOneScore.countCardOne + 11) > 21) {
getCardNumOne = 1;
} else {
getCardNumOne = 11;
laneOnecardA = true;
}
} else if (checkforA == 4) {
if ((_root.laneOneScore.countCardOne + 11) > 21) {
getCardNumOne = 1;
} else {
getCardNumOne = 11;
laneOnecardA = true;
}
} else if (checkforA == 5) {
if ((_root.laneOneScore.countCardOne + 11) > 21) {
getCardNumOne = 1;
} else {
getCardNumOne = 11;
laneOnecardA = true;
}
} else {
getCardNumOne = tempArr[tempArr.length - 1].substr(2, 1);
}
} else {
getCardNumOne = tempArr[tempArr.length - 1].substr(2, 1);
}
laneOneArr.push(tempArr[tempArr.length - 1]);
_root.laneOneScore.countCardOne = _root.laneOneScore.countCardOne + Number(getCardNumOne);
if ((laneOnecardA == true) && (_root.laneOneScore.countCardOne > 21)) {
_root.laneOneScore.countCardOne = _root.laneOneScore.countCardOne - 10;
laneOnecardA = false;
}
}
if (_root.laneOneScore.countCardOne > 21) {
b1.enabled = false;
b1._alpha = 50;
frame = 1;
_root.comboBar.gotoAndStop(frame);
duplicateMovieClip ("but_mc", "but_mc1", 9000);
but_mc1.gotoAndPlay(2);
_root.snd5.hitBustObj.start(0, 1);
_root.but_mc1.bust = "-" + Number(_root.laneOneScore.countCardOne - 21);
_root.but_mc1._x = 66.7;
_root.but_mc1._y = 190.7;
_root.score = Number(_root.score - (_root.laneOneScore.countCardOne - 21));
_root.dbInterface.updateScore(_root.score);
if (_root.score < 0) {
_root.score = 0;
_root.dbInterface.updateScore(_root.score);
}
} else if (_root.laneOneScore.countCardOne == 21) {
b1.enabled = false;
b1._alpha = 50;
_root.score = _root.score + (15 * frame);
if ((_root.specialBonus == true) && (_root.randomSelected1 == true)) {
_root.snd8.bonusObj.start(0, 1);
_root.score = _root.score + 200;
}
_root.dbInterface.updateScore(_root.score);
if (frame < 15) {
frame = frame + 1;
}
_root.comboBar.gotoAndStop(frame);
duplicateMovieClip ("but_mc", "but_mc1", 9000);
_root.ikonTitle.gotoAndPlay(2);
_root.but_mc1._x = 66.7;
_root.but_mc1._y = 190.7;
_root.but_mc1.gotoAndStop("win");
_root.snd3.hit21Obj.start(0, 1);
}
if ((laneOneArr.length == 5) && (_root.laneOneScore.countCardOne < 21)) {
b1.enabled = false;
b1._alpha = 50;
_root.score = _root.score + (20 * frame);
if ((_root.specialBonus == true) && (_root.randomSelected1 == true)) {
_root.snd8.bonusObj.start(0, 1);
_root.score = _root.score + 200;
}
_root.dbInterface.updateScore(_root.score);
if (frame < 15) {
frame = frame + 1;
}
_root.comboBar.gotoAndStop(frame);
duplicateMovieClip ("but_mc", "but_mc1", 9000);
_root.but_mc1._x = 66.7;
_root.but_mc1._y = 190.7;
_root.but_mc1.gotoAndStop("trick");
_root.snd4.hitTrickObj.start(0, 1);
}
if (tempArr.length == 53) {
tempArr.push("dummy");
}
m.onEnterFrame = function () {
if (laneOneArr.length == 1) {
m._x = lane1._x;
m._y = lane1._y;
} else {
m._x = _root[laneOneArr[laneOneArr.length - 2]]._x;
m._y = _root[laneOneArr[laneOneArr.length - 2]]._y + 15;
}
if (laneOneArr.length < 5) {
if (_root.laneOneScore.countCardOne > 21) {
if (_root[laneOneArr[0]]._y <= 490) {
_root[laneOneArr[0]]._y = _root[laneOneArr[0]]._y + 5;
_root[laneOneArr[1]]._y = _root[laneOneArr[1]]._y + 5;
_root[laneOneArr[2]]._y = _root[laneOneArr[2]]._y + 5;
_root[laneOneArr[3]]._y = _root[laneOneArr[3]]._y + 5;
} else {
var _local2 = 0;
while (_local2 <= laneOneArr.length) {
removeMovieClip(_root[laneOneArr[_local2]]);
_local2++;
}
_root.b1.enabled = true;
b1._alpha = 100;
laneOneArr = [];
_root.laneOneScore._visible = false;
_root.laneOneScore.countCardOne = 0;
laneOnecardA = false;
}
} else if (_root.laneOneScore.countCardOne == 21) {
if (_root[laneOneArr[0]]._y <= 490) {
if (_root.laneOneArr.length == 1) {
_root.laneOneArr[0]._y = _root.laneOneArr[0]._y + 5;
} else {
_root[laneOneArr[0]]._y = _root[laneOneArr[0]]._y + 5;
_root[laneOneArr[1]]._y = _root[laneOneArr[1]]._y + 5;
_root[laneOneArr[2]]._y = _root[laneOneArr[2]]._y + 5;
}
} else {
var _local2 = 0;
while (_local2 <= laneOneArr.length) {
removeMovieClip(_root[laneOneArr[_local2]]);
_local2++;
}
_root.b1.enabled = true;
b1._alpha = 100;
_root.laneOneScore._visible = false;
laneOneArr = [];
_root.laneOneScore.countCardOne = 0;
laneOnecardA = false;
}
if (_root.laneOneArr[0] == "c135") {
_root.snd7.spCardObj.start(0, 1);
_root.spCardWord.gotoAndStop(1);
removeMovieClip(_root.laneOneArr[0]);
_root.b1.enabled = true;
b1._alpha = 100;
_root.laneOneScore._visible = false;
laneOneArr = [];
_root.laneOneScore.countCardOne = 0;
laneOnecardA = false;
}
}
} else if (laneOneArr.length >= 5) {
if (_root.laneOneScore.countCardOne <= 21) {
if (_root[laneOneArr[0]]._y <= 490) {
_root[laneOneArr[0]]._y = _root[laneOneArr[0]]._y + 5;
_root[laneOneArr[1]]._y = _root[laneOneArr[1]]._y + 5;
_root[laneOneArr[2]]._y = _root[laneOneArr[2]]._y + 5;
_root[laneOneArr[3]]._y = _root[laneOneArr[3]]._y + 5;
_root[laneOneArr[4]]._y = _root[laneOneArr[4]]._y + 5;
} else {
var _local2 = 0;
while (_local2 <= laneOneArr.length) {
removeMovieClip(_root[laneOneArr[_local2]]);
_local2++;
}
_root.b1.enabled = true;
b1._alpha = 100;
_root.laneOneScore._visible = false;
laneOneArr = [];
_root.laneOneScore.countCardOne = 0;
laneOnecardA = false;
}
} else if (_root.laneOneScore.countCardOne > 21) {
if (_root[laneOneArr[0]]._y <= 490) {
_root[laneOneArr[0]]._y = _root[laneOneArr[0]]._y + 5;
_root[laneOneArr[1]]._y = _root[laneOneArr[1]]._y + 5;
_root[laneOneArr[2]]._y = _root[laneOneArr[2]]._y + 5;
_root[laneOneArr[3]]._y = _root[laneOneArr[3]]._y + 5;
} else {
var _local2 = 0;
while (_local2 <= laneOneArr.length) {
removeMovieClip(_root[laneOneArr[_local2]]);
_local2++;
}
_root.b1.enabled = true;
b1._alpha = 100;
laneOneArr = [];
_root.laneOneScore._visible = false;
_root.laneOneScore.countCardOne = 0;
laneOnecardA = false;
}
}
}
};
}
}
}
Symbol 225 Button
on (rollOver) {
_root.snd6.hitOverObj.start(0, 1);
}
on (release) {
if (counter == true) {
if (tempArr.length <= 53) {
_root.snd2.correctObj.start(0, 1);
if (_root.laneTwoScore.countCardTwo <= 21) {
var t = eval (tempArr[tempArr.length - 1]);
_root.CheckArr.push(t);
swap(t);
getCardNumOne = tempArr[tempArr.length - 1].substr(2, 1);
checkforA = Number(tempArr[tempArr.length - 1].substr(3, 1)) + Number(getCardNumOne);
_root.laneTwoScore._visible = true;
if (tempArr[tempArr.length - 1].substr(1, 1) == "1") {
if (t._name == "c135") {
_root.snd7.spCardObj.start(0, 1);
_root.spCardWord.gotoAndStop(1);
tempScore = _root.laneTwoScore.countCardTwo;
Spscore = 21 - tempScore;
getCardNumOne = Spscore;
} else {
getCardNumOne = 10;
}
} else if ((tempArr[tempArr.length - 1].substr(1, 1) == "0") && (tempArr[tempArr.length - 1].substr(2, 1) == "1")) {
if (checkforA == 2) {
if ((_root.laneTwoScore.countCardTwo + 11) > 21) {
trace(_root.laneTwoScore.countCardTwo + 11);
getCardNumOne = 1;
} else {
getCardNumOne = 11;
laneTwocardA = true;
}
} else if (checkforA == 3) {
if ((_root.laneTwoScore.countCardTwo + 11) > 21) {
_root.laneTwoScore.countCardTwo + 11;
getCardNumOne = 1;
} else {
getCardNumOne = 11;
laneTwocardA = true;
}
} else if (checkforA == 4) {
if ((_root.laneTwoScore.countCardTwo + 11) > 21) {
getCardNumOne = 1;
} else {
getCardNumOne = 11;
laneTwocardA = true;
}
} else if (checkforA == 5) {
if ((_root.laneTwoScore.countCardTwo + 11) > 21) {
getCardNumOne = 1;
} else {
getCardNumOne = 11;
laneTwocardA = true;
}
} else {
getCardNumOne = tempArr[tempArr.length - 1].substr(2, 1);
}
} else {
getCardNumOne = tempArr[tempArr.length - 1].substr(2, 1);
}
laneTwoArr.push(tempArr[tempArr.length - 1]);
_root.laneTwoScore.countCardTwo = _root.laneTwoScore.countCardTwo + Number(getCardNumOne);
if ((laneTwocardA == true) && (_root.laneTwoScore.countCardTwo > 21)) {
_root.laneTwoScore.countCardTwo = _root.laneTwoScore.countCardTwo - 10;
laneTwocardA = false;
}
}
if (_root.laneTwoScore.countCardTwo > 21) {
_root.b2.enabled = false;
b2._alpha = 50;
frame = 1;
_root.comboBar.gotoAndStop(frame);
duplicateMovieClip ("but_mc", "but_mc1", 9000);
but_mc1.gotoAndPlay(2);
_root.snd5.hitBustObj.start(0, 1);
_root.but_mc1.bust = "-" + Number(_root.laneTwoScore.countCardTwo - 21);
_root.but_mc1._x = 170.2;
_root.but_mc1._y = 190.7;
_root.score = Number(_root.score - (_root.laneTwoScore.countCardTwo - 21));
_root.dbInterface.updateScore(_root.score);
if (_root.score < 0) {
_root.score = 0;
_root.dbInterface.updateScore(_root.score);
}
} else if (_root.laneTwoScore.countCardTwo == 21) {
_root.b2.enabled = false;
b2._alpha = 50;
_root.score = _root.score + (15 * frame);
if ((_root.specialBonus == true) && (_root.randomSelected2 == true)) {
_root.snd8.bonusObj.start(0, 1);
_root.score = _root.score + 200;
}
_root.dbInterface.updateScore(_root.score);
if (frame < 15) {
frame = frame + 1;
}
_root.comboBar.gotoAndStop(frame);
duplicateMovieClip ("but_mc", "but_mc1", 9000);
_root.ikonTitle.play();
_root.but_mc1._x = 170.2;
_root.but_mc1._y = 190.7;
_root.but_mc1.gotoAndStop("win");
_root.snd3.hit21Obj.start(0, 1);
}
if ((laneTwoArr.length == 5) && (_root.laneTwoScore.countCardTwo <= 21)) {
_root.b2.enabled = false;
b2._alpha = 50;
_root.score = _root.score + (20 * frame);
if ((_root.specialBonus == true) && (_root.randomSelected2 == true)) {
_root.snd8.bonusObj.start(0, 1);
_root.score = _root.score + 200;
}
_root.dbInterface.updateScore(_root.score);
if (frame < 15) {
frame = frame + 1;
}
_root.comboBar.gotoAndStop(frame);
duplicateMovieClip ("but_mc", "but_mc1", 9000);
_root.but_mc1._x = 170.2;
_root.but_mc1._y = 190.7;
_root.but_mc1.gotoAndStop("trick");
_root.snd4.hitTrickObj.start(0, 1);
}
if (tempArr.length == 53) {
trace("dummy");
tempArr.push("dummy");
}
t.onEnterFrame = function () {
if (laneTwoArr.length == 1) {
t._x = lane2._x;
t._y = lane2._y;
} else {
t._x = _root[laneTwoArr[laneTwoArr.length - 2]]._x;
t._y = _root[laneTwoArr[laneTwoArr.length - 2]]._y + 15;
}
if (laneTwoArr.length < 5) {
if (_root.laneTwoScore.countCardTwo > 21) {
if (_root[laneTwoArr[0]]._y <= 490) {
_root[laneTwoArr[0]]._y = _root[laneTwoArr[0]]._y + 5;
_root[laneTwoArr[1]]._y = _root[laneTwoArr[1]]._y + 5;
_root[laneTwoArr[2]]._y = _root[laneTwoArr[2]]._y + 5;
_root[laneTwoArr[3]]._y = _root[laneTwoArr[3]]._y + 5;
} else {
var _local2 = 0;
while (_local2 <= laneTwoArr.length) {
removeMovieClip(_root[laneTwoArr[_local2]]);
_local2++;
}
b2._alpha = 100;
_root.b1.enabled = true;
_root.b2.enabled = true;
_root.b3.enabled = true;
_root.b4.enabled = true;
laneTwoArr = [];
_root.laneTwoScore._visible = false;
_root.laneTwoScore.countCardTwo = 0;
laneTwocardA = false;
}
} else if (_root.laneTwoScore.countCardTwo == 21) {
if (_root[laneTwoArr[0]]._y <= 490) {
if (_root.laneTwoArr.length == 1) {
_root.laneTwoArr[0]._y = _root.laneTwoArr[0]._y + 5;
} else {
_root[laneTwoArr[0]]._y = _root[laneTwoArr[0]]._y + 5;
_root[laneTwoArr[1]]._y = _root[laneTwoArr[1]]._y + 5;
_root[laneTwoArr[2]]._y = _root[laneTwoArr[2]]._y + 5;
}
} else {
var _local2 = 0;
while (_local2 <= laneTwoArr.length) {
removeMovieClip(_root[laneTwoArr[_local2]]);
_local2++;
}
b2._alpha = 100;
_root.b2.enabled = true;
_root.laneTwoScore._visible = false;
laneTwoArr = [];
_root.laneTwoScore.countCardTwo = 0;
laneTwocardA = false;
}
if (_root.laneTwoArr[0] == "c135") {
_root.snd7.spCardObj.start(0, 1);
_root.spCardWord.gotoAndStop(1);
removeMovieClip(_root.laneTwoArr[0]);
b2._alpha = 100;
_root.b2.enabled = true;
_root.laneTwoScore._visible = false;
laneTwoArr = [];
_root.laneTwoScore.countCardTwo = 0;
laneTwocardA = false;
}
}
} else if (laneTwoArr.length >= 5) {
if (_root.laneTwoScore.countCardTwo <= 21) {
if (_root[laneTwoArr[0]]._y <= 490) {
_root[laneTwoArr[0]]._y = _root[laneTwoArr[0]]._y + 5;
_root[laneTwoArr[1]]._y = _root[laneTwoArr[1]]._y + 5;
_root[laneTwoArr[2]]._y = _root[laneTwoArr[2]]._y + 5;
_root[laneTwoArr[3]]._y = _root[laneTwoArr[3]]._y + 5;
_root[laneTwoArr[4]]._y = _root[laneTwoArr[4]]._y + 5;
} else {
var _local2 = 0;
while (_local2 <= laneTwoArr.length) {
removeMovieClip(_root[laneTwoArr[_local2]]);
_local2++;
}
_root.b2.enabled = true;
b2._alpha = 100;
_root.laneTwoScore._visible = false;
laneTwoArr = [];
_root.laneTwoScore.countCardTwo = 0;
laneTwocardA = false;
}
} else if (_root.laneTwoScore.countCardTwo > 21) {
if (_root[laneTwoArr[0]]._y <= 490) {
_root[laneTwoArr[0]]._y = _root[laneTwoArr[0]]._y + 5;
_root[laneTwoArr[1]]._y = _root[laneTwoArr[1]]._y + 5;
_root[laneTwoArr[2]]._y = _root[laneTwoArr[2]]._y + 5;
_root[laneTwoArr[3]]._y = _root[laneTwoArr[3]]._y + 5;
} else {
var _local2 = 0;
while (_local2 <= laneTwoArr.length) {
removeMovieClip(_root[laneTwoArr[_local2]]);
_local2++;
}
_root.b2.enabled = true;
b2._alpha = 100;
laneTwoArr = [];
_root.laneTwoScore._visible = false;
_root.laneTwoScore.countCardTwo = 0;
laneTwocardA = false;
}
}
}
};
}
}
}
Symbol 226 Button
on (rollOver) {
_root.snd6.hitOverObj.start(0, 1);
}
on (release) {
if (_root.counter == true) {
if (tempArr.length <= 53) {
_root.snd2.correctObj.start(0, 1);
if (_root.laneThreeScore.countCardThree <= 21) {
var k = eval (tempArr[tempArr.length - 1]);
_root.CheckArr.push(k);
_root.swap(k);
getCardNumOne = tempArr[tempArr.length - 1].substr(2, 1);
checkforA = Number(tempArr[tempArr.length - 1].substr(3, 1)) + Number(getCardNumOne);
_root.laneThreeScore._visible = true;
if (tempArr[tempArr.length - 1].substr(1, 1) == "1") {
if (k._name == "c135") {
_root.snd7.spCardObj.start(0, 1);
_root.spCardWord.gotoAndStop(1);
tempScore = _root.laneThreeScore.countCardThree;
Spscore = 21 - tempScore;
getCardNumOne = Spscore;
} else {
getCardNumOne = 10;
}
} else if ((tempArr[tempArr.length - 1].substr(1, 1) == "0") && (tempArr[tempArr.length - 1].substr(2, 1) == "1")) {
if (checkforA == 2) {
if ((_root.laneThreeScore.countCardThree + 11) > 21) {
getCardNumOne = 1;
} else {
getCardNumOne = 11;
laneThreecardA = true;
}
} else if (checkforA == 3) {
if ((_root.laneThreeScore.countCardThree + 11) > 21) {
getCardNumOne = 1;
} else {
getCardNumOne = 11;
laneThreecardA = true;
}
} else if (checkforA == 4) {
if ((_root.laneThreeScore.countCardThree + 11) > 21) {
getCardNumOne = 1;
} else {
getCardNumOne = 11;
laneThreecardA = true;
}
} else if (checkforA == 5) {
if ((_root.laneThreeScore.countCardThree + 11) > 21) {
getCardNumOne = 1;
} else {
getCardNumOne = 11;
laneThreecardA = true;
}
} else {
getCardNumOne = tempArr[tempArr.length - 1].substr(2, 1);
}
} else {
getCardNumOne = tempArr[tempArr.length - 1].substr(2, 1);
}
laneThreeArr.push(tempArr[tempArr.length - 1]);
_root.laneThreeScore.countCardThree = _root.laneThreeScore.countCardThree + Number(getCardNumOne);
if ((laneThreecardA == true) && (_root.laneThreeScore.countCardThree > 21)) {
_root.laneThreeScore.countCardThree = _root.laneThreeScore.countCardThree - 10;
laneThreecardA = false;
}
}
if (_root.laneThreeScore.countCardThree > 21) {
_root.b3.enabled = false;
b3._alpha = 50;
frame = 1;
_root.comboBar.gotoAndStop(frame);
duplicateMovieClip ("but_mc", "but_mc1", 9000);
but_mc1.gotoAndPlay(2);
_root.snd5.hitBustObj.start(0, 1);
_root.but_mc1.bust = "-" + Number(_root.laneThreeScore.countCardThree - 21);
_root.but_mc1._x = 273.7;
_root.but_mc1._y = 190.7;
_root.score = Number(_root.score - (_root.laneThreeScore.countCardThree - 21));
_root.dbInterface.updateScore(_root.score);
if (_root.score < 0) {
_root.score = 0;
_root.dbInterface.updateScore(_root.score);
}
} else if (_root.laneThreeScore.countCardThree == 21) {
_root.b3.enabled = false;
b3._alpha = 50;
_root.score = _root.score + (15 * frame);
if ((_root.specialBonus == true) && (_root.randomSelected3 == true)) {
_root.snd8.bonusObj.start(0, 1);
_root.score = _root.score + 200;
}
_root.dbInterface.updateScore(_root.score);
if (frame < 15) {
frame = frame + 1;
}
_root.comboBar.gotoAndStop(frame);
duplicateMovieClip ("but_mc", "but_mc1", 9000);
_root.ikonTitle.gotoAndPlay(2);
_root.but_mc1._x = 273.7;
_root.but_mc1._y = 190.7;
_root.but_mc1.gotoAndStop("win");
_root.snd3.hit21Obj.start(0, 1);
}
if ((laneThreeArr.length == 5) && (_root.laneThreeScore.countCardThree < 21)) {
_root.b3.enabled = false;
b3._alpha = 50;
_root.score = _root.score + (20 * frame);
if ((_root.specialBonus == true) && (_root.randomSelected3 == true)) {
_root.snd8.bonusObj.start(0, 1);
_root.score = _root.score + 200;
}
_root.dbInterface.updateScore(_root.score);
if (frame < 15) {
frame = frame + 1;
}
_root.comboBar.gotoAndStop(frame);
duplicateMovieClip ("but_mc", "but_mc1", 9000);
_root.but_mc1._x = 273.7;
_root.but_mc1._y = 190.7;
_root.but_mc1.gotoAndStop("trick");
_root.snd4.hitTrickObj.start(0, 1);
}
if (tempArr.length == 53) {
tempArr.push("dummy");
}
k.onEnterFrame = function () {
if (laneThreeArr.length == 1) {
k._x = lane3._x;
k._y = lane3._y;
} else {
k._x = _root[laneThreeArr[laneThreeArr.length - 2]]._x;
k._y = _root[laneThreeArr[laneThreeArr.length - 2]]._y + 15;
}
if (laneThreeArr.length < 5) {
if (_root.laneThreeScore.countCardThree > 21) {
if (_root[laneThreeArr[0]]._y <= 490) {
_root[laneThreeArr[0]]._y = _root[laneThreeArr[0]]._y + 5;
_root[laneThreeArr[1]]._y = _root[laneThreeArr[1]]._y + 5;
_root[laneThreeArr[2]]._y = _root[laneThreeArr[2]]._y + 5;
_root[laneThreeArr[3]]._y = _root[laneThreeArr[3]]._y + 5;
} else {
var _local2 = 0;
while (_local2 <= laneThreeArr.length) {
removeMovieClip(_root[laneThreeArr[_local2]]);
_local2++;
}
_root.b3.enabled = true;
b3._alpha = 100;
laneThreeArr = [];
_root.laneThreeScore._visible = false;
_root.laneThreeScore.countCardThree = 0;
laneThreecardA = false;
}
} else if (_root.laneThreeScore.countCardThree == 21) {
if (_root[laneThreeArr[0]]._y <= 490) {
if (_root.laneThreeArr.length == 1) {
_root.laneThreeArr[0]._y = _root.laneThreeArr[0]._y + 5;
} else {
_root[laneThreeArr[0]]._y = _root[laneThreeArr[0]]._y + 5;
_root[laneThreeArr[1]]._y = _root[laneThreeArr[1]]._y + 5;
_root[laneThreeArr[2]]._y = _root[laneThreeArr[2]]._y + 5;
}
} else {
var _local2 = 0;
while (_local2 <= laneThreeArr.length) {
removeMovieClip(_root[laneThreeArr[_local2]]);
_local2++;
}
_root.b3.enabled = true;
b3._alpha = 100;
_root.laneThreeScore._visible = false;
laneThreeArr = [];
_root.laneThreeScore.countCardThree = 0;
laneThreecardA = false;
}
if (_root.laneThreeArr[0] == "c135") {
_root.snd7.spCardObj.start(0, 1);
_root.spCardWord.gotoAndStop(1);
removeMovieClip(_root.laneThreeArr[0]);
_root.b3.enabled = true;
b3._alpha = 100;
_root.laneThreeScore._visible = false;
laneThreeArr = [];
_root.laneThreeScore.countCardThree = 0;
laneThreecardA = false;
}
}
} else if (laneThreeArr.length >= 5) {
if (_root.laneThreeScore.countCardThree <= 21) {
if (_root[laneThreeArr[0]]._y <= 490) {
_root[laneThreeArr[0]]._y = _root[laneThreeArr[0]]._y + 5;
_root[laneThreeArr[1]]._y = _root[laneThreeArr[1]]._y + 5;
_root[laneThreeArr[2]]._y = _root[laneThreeArr[2]]._y + 5;
_root[laneThreeArr[3]]._y = _root[laneThreeArr[3]]._y + 5;
_root[laneThreeArr[4]]._y = _root[laneThreeArr[4]]._y + 5;
} else {
var _local2 = 0;
while (_local2 <= laneThreeArr.length) {
removeMovieClip(_root[laneThreeArr[_local2]]);
_local2++;
}
_root.b3.enabled = true;
b3._alpha = 100;
_root.laneThreeScore._visible = false;
laneThreeArr = [];
_root.laneThreeScore.countCardThree = 0;
laneThreecardA = false;
}
} else if (_root.laneThreeScore.countCardThree > 21) {
if (_root[laneThreeArr[0]]._y <= 490) {
_root[laneThreeArr[0]]._y = _root[laneThreeArr[0]]._y + 5;
_root[laneThreeArr[1]]._y = _root[laneThreeArr[1]]._y + 5;
_root[laneThreeArr[2]]._y = _root[laneThreeArr[2]]._y + 5;
_root[laneThreeArr[3]]._y = _root[laneThreeArr[3]]._y + 5;
} else {
var _local2 = 0;
while (_local2 <= laneThreeArr.length) {
removeMovieClip(_root[laneThreeArr[_local2]]);
_local2++;
}
_root.b3.enabled = true;
b3._alpha = 100;
laneThreeArr = [];
_root.laneThreeScore._visible = false;
_root.laneThreeScore.countCardThree = 0;
laneThreecardA = false;
}
}
}
};
}
}
}
Symbol 227 Button
on (rollOver) {
_root.snd6.hitOverObj.start(0, 1);
}
on (release) {
if (counter == true) {
if (tempArr.length <= 53) {
_root.snd2.correctObj.start(0, 1);
if (_root.laneFourScore.countCardFour <= 21) {
var n = eval (tempArr[tempArr.length - 1]);
_root.CheckArr.push(n);
swap(n);
getCardNumOne = tempArr[tempArr.length - 1].substr(2, 1);
checkforA = Number(tempArr[tempArr.length - 1].substr(3, 1)) + Number(getCardNumOne);
_root.laneFourScore._visible = true;
if (tempArr[tempArr.length - 1].substr(1, 1) == "1") {
if (n._name == "c135") {
_root.snd7.spCardObj.start(0, 1);
_root.spCardWord.gotoAndStop(1);
tempScore = _root.laneFourScore.countCardFour;
Spscore = 21 - tempScore;
getCardNumOne = Spscore;
} else {
getCardNumOne = 10;
}
} else if ((tempArr[tempArr.length - 1].substr(1, 1) == "0") && (tempArr[tempArr.length - 1].substr(2, 1) == "1")) {
if ((checkforA >= 2) && (checkforA <= 5)) {
if ((_root.laneFourScore.countCardFour + 11) > 21) {
getCardNumOne = 1;
} else {
getCardNumOne = 11;
laneFourcardA = true;
}
}
} else {
getCardNumOne = tempArr[tempArr.length - 1].substr(2, 1);
}
laneFourArr.push(tempArr[tempArr.length - 1]);
_root.laneFourScore.countCardFour = _root.laneFourScore.countCardFour + Number(getCardNumOne);
if ((laneFourcardA == true) && (_root.laneFourScore.countCardFour > 21)) {
_root.laneFourScore.countCardFour = _root.laneFourScore.countCardFour - 10;
laneFourcardA = false;
}
}
if (_root.laneFourScore.countCardFour > 21) {
_root.b4.enabled = false;
b4._alpha = 50;
frame = 1;
_root.comboBar.gotoAndStop(frame);
duplicateMovieClip ("but_mc", "but_mc1", 9000);
but_mc1.gotoAndPlay(2);
_root.snd5.hitBustObj.start(0, 1);
_root.but_mc1.bust = "-" + Number(_root.laneFourScore.countCardFour - 21);
_root.but_mc1._x = 377.2;
_root.but_mc1._y = 190.7;
_root.score = Number(_root.score - (_root.laneFourScore.countCardFour - 21));
_root.dbInterface.updateScore(_root.score);
if (_root.score < 0) {
_root.score = 0;
_root.dbInterface.updateScore(_root.score);
}
} else if (_root.laneFourScore.countCardFour == 21) {
_root.b4.enabled = false;
b4._alpha = 50;
_root.score = _root.score + (15 * frame);
if ((_root.specialBonus == true) && (_root.randomSelected4 == true)) {
_root.snd8.bonusObj.start(0, 1);
_root.score = _root.score + 200;
}
_root.dbInterface.updateScore(_root.score);
if (frame < 15) {
frame = frame + 1;
}
_root.comboBar.gotoAndStop(frame);
duplicateMovieClip ("but_mc", "but_mc1", 9000);
_root.ikonTitle.play();
_root.but_mc1._x = 377.2;
_root.but_mc1._y = 190.7;
_root.but_mc1.gotoAndStop("win");
_root.snd3.hit21Obj.start(0, 1);
}
if ((laneFourArr.length == 5) && (_root.laneFourScore.countCardFour < 21)) {
_root.b4.enabled = false;
b4._alpha = 50;
_root.score = _root.score + (20 * frame);
if ((_root.specialBonus == true) && (_root.randomSelected4 == true)) {
_root.snd8.bonusObj.start(0, 1);
_root.score = _root.score + 200;
}
_root.dbInterface.updateScore(_root.score);
if (frame < 15) {
frame = frame + 1;
}
_root.comboBar.gotoAndStop(frame);
duplicateMovieClip ("but_mc", "but_mc1", 9000);
_root.but_mc1._x = 377.2;
_root.but_mc1._y = 190.7;
_root.but_mc1.gotoAndStop("trick");
_root.snd4.hitTrickObj.start(0, 1);
}
if (tempArr.length == 53) {
tempArr.push("dummy");
}
n.onEnterFrame = function () {
if (laneFourArr.length == 1) {
n._x = lane4._x;
n._y = lane4._y;
} else {
n._x = _root[laneFourArr[laneFourArr.length - 2]]._x;
n._y = _root[laneFourArr[laneFourArr.length - 2]]._y + 15;
}
if (laneFourArr.length < 5) {
if (_root.laneFourScore.countCardFour > 21) {
if (_root[laneFourArr[0]]._y <= 490) {
_root[laneFourArr[0]]._y = _root[laneFourArr[0]]._y + 5;
_root[laneFourArr[1]]._y = _root[laneFourArr[1]]._y + 5;
_root[laneFourArr[2]]._y = _root[laneFourArr[2]]._y + 5;
_root[laneFourArr[3]]._y = _root[laneFourArr[3]]._y + 5;
} else {
var _local2 = 0;
while (_local2 <= laneFourArr.length) {
removeMovieClip(_root[laneFourArr[_local2]]);
_local2++;
}
_root.b4.enabled = true;
b4._alpha = 100;
laneFourArr = [];
_root.laneFourScore._visible = false;
_root.laneFourScore.countCardFour = 0;
laneFourcardA = false;
}
} else if (_root.laneFourScore.countCardFour == 21) {
if (_root[laneFourArr[0]]._y <= 490) {
if (_root.laneFourArr.length == 1) {
_root.laneFourArr[0]._y = _root.laneFourArr[0]._y + 5;
} else {
_root[laneFourArr[0]]._y = _root[laneFourArr[0]]._y + 5;
_root[laneFourArr[1]]._y = _root[laneFourArr[1]]._y + 5;
_root[laneFourArr[2]]._y = _root[laneFourArr[2]]._y + 5;
}
} else {
var _local2 = 0;
while (_local2 <= laneFourArr.length) {
removeMovieClip(_root[laneFourArr[_local2]]);
_local2++;
}
_root.b4.enabled = true;
b4._alpha = 100;
_root.laneFourScore._visible = false;
laneFourArr = [];
_root.laneFourScore.countCardFour = 0;
laneFourcardA = false;
}
if (_root.laneFourArr[0] == "c135") {
_root.snd7.spCardObj.start(0, 1);
_root.spCardWord.gotoAndStop(1);
removeMovieClip(_root.laneFourArr[0]);
_root.b4.enabled = true;
b4._alpha = 100;
_root.laneFourScore._visible = false;
laneFourArr = [];
_root.laneFourScore.countCardFour = 0;
laneFourcardA = false;
}
}
} else if (laneFourArr.length >= 5) {
if (_root.laneFourScore.countCardFour <= 21) {
if (_root[laneFourArr[0]]._y <= 490) {
_root[laneFourArr[0]]._y = _root[laneFourArr[0]]._y + 5;
_root[laneFourArr[1]]._y = _root[laneFourArr[1]]._y + 5;
_root[laneFourArr[2]]._y = _root[laneFourArr[2]]._y + 5;
_root[laneFourArr[3]]._y = _root[laneFourArr[3]]._y + 5;
_root[laneFourArr[4]]._y = _root[laneFourArr[4]]._y + 5;
} else {
var _local2 = 0;
while (_local2 <= laneFourArr.length) {
removeMovieClip(_root[laneFourArr[_local2]]);
_local2++;
}
_root.b4.enabled = true;
b4._alpha = 100;
_root.laneFourScore._visible = false;
laneFourArr = [];
_root.laneFourScore.countCardFour = 0;
laneFourcardA = false;
}
} else if (_root.laneFourScore.countCardFour > 21) {
if (_root[laneFourArr[0]]._y <= 490) {
_root[laneFourArr[0]]._y = _root[laneFourArr[0]]._y + 5;
_root[laneFourArr[1]]._y = _root[laneFourArr[1]]._y + 5;
_root[laneFourArr[2]]._y = _root[laneFourArr[2]]._y + 5;
_root[laneFourArr[3]]._y = _root[laneFourArr[3]]._y + 5;
} else {
var _local2 = 0;
while (_local2 <= laneFourArr.length) {
removeMovieClip(_root[laneFourArr[_local2]]);
_local2++;
}
_root.b4.enabled = true;
b4._alpha = 100;
laneFourArr = [];
_root.laneFourScore._visible = false;
_root.laneFourScore.countCardFour = 0;
laneFourcardA = false;
}
}
}
};
}
}
}
Symbol 246 MovieClip Frame 1
stop();
Symbol 246 MovieClip Frame 2
stop();
Symbol 246 MovieClip Frame 3
stop();
Symbol 246 MovieClip Frame 4
stop();
Symbol 246 MovieClip Frame 5
stop();
Symbol 246 MovieClip Frame 6
stop();
Symbol 246 MovieClip Frame 7
stop();
Symbol 246 MovieClip Frame 8
stop();
Symbol 246 MovieClip Frame 9
stop();
Symbol 246 MovieClip Frame 10
stop();
Symbol 246 MovieClip Frame 11
stop();
Symbol 246 MovieClip Frame 12
stop();
Symbol 246 MovieClip Frame 13
stop();
Symbol 246 MovieClip Frame 14
stop();
Symbol 246 MovieClip Frame 15
stop();
Symbol 249 MovieClip Frame 1
stop();
Symbol 249 MovieClip Frame 2
play();
Symbol 249 MovieClip Frame 20
gotoAndStop (1);
Symbol 259 Button
on (press) {
startDrag (this, true, left_M, top_M, right_M, bottom_M);
}
on (release, releaseOutside) {
stopDrag();
}
Symbol 261 Button
on (press) {
startDrag (this, false, left_j, top_j, right_j, bottom_j);
}
on (release, releaseOutside) {
stopDrag();
}
Symbol 264 Button
on (release) {
_root.once = 1;
_root.optionsclick = 1;
_root.slidemusic_X = slidemusic._x;
_root.slidesound_X = slidesound._x;
_root.totalDelay = _root.totalDelay + (getTimer() - _root.optionPressed);
gotoAndStop (1);
}
Symbol 265 MovieClip Frame 1
stop();
_root.activate = 0;
Symbol 265 MovieClip Frame 2
blocker.useHandCursor = false;
_root.activate = 1;
Symbol 265 MovieClip Frame 9
stop();
_root.activate = 1;
Instance of Symbol 260 MovieClip "slidemusic" in Symbol 265 MovieClip Frame 9
onClipEvent (load) {
right_M = _x + 100;
top_M = _y;
bottom_M = _y;
left_M = _x;
if (_root.countmain == 0) {
_x = (_x + 100);
} else {
_x = _root.slidemusic_X;
}
}
onClipEvent (enterFrame) {
_root.countmain = 1;
_root.snd1.musicObj.setVolume(_x - left_M);
}
Instance of Symbol 262 MovieClip "slidesound" in Symbol 265 MovieClip Frame 9
onClipEvent (load) {
top_j = _y;
bottom_j = _y;
left_j = _x;
right_j = _x + 100;
if (_root.countsound == 0) {
_x = (_x + 100);
} else {
_x = _root.slidesound_X;
}
}
onClipEvent (enterFrame) {
_root.countsound = 1;
_root.snd2.correctObj.setVolume(_x - left_j);
_root.snd3.hit21Obj.setVolume(_x - left_j);
_root.snd4.hitTrickObj.setVolume(_x - left_j);
_root.snd5.hitBustObj.setVolume(_x - left_j);
_root.snd6.hitOverObj.setVolume(_x - left_j);
_root.snd7.spCardObj.setVolume(_x - left_j);
_root.snd8.bonusObj.setVolume(_x - left_j);
}
Symbol 267 MovieClip Frame 1
musicObj = new Sound(this);
musicObj.attachSound("bgmusic");
Symbol 268 MovieClip Frame 1
correctObj = new Sound(this);
correctObj.attachSound("HitPress");
Symbol 269 MovieClip Frame 1
hit21Obj = new Sound(this);
hit21Obj.attachSound("hit21");
Symbol 271 MovieClip Frame 1
hitTrickObj = new Sound(this);
hitTrickObj.attachSound("hitTrick");
Symbol 272 MovieClip Frame 1
hitBustObj = new Sound(this);
hitBustObj.attachSound("bustSnd");
Symbol 273 MovieClip Frame 1
hitOverObj = new Sound(this);
hitOverObj.attachSound("hitOver");
Symbol 274 MovieClip Frame 1
spCardObj = new Sound(this);
spCardObj.attachSound("spcardsnd");
Symbol 275 MovieClip Frame 1
bonusObj = new Sound(this);
bonusObj.attachSound("Bonussnd");
Symbol 281 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 2
stop();
Symbol 293 MovieClip Frame 1
stop();
Symbol 294 MovieClip Frame 1
stop();
LoaderBlk.useHandCursor = false;
Instance of Symbol 293 MovieClip in Symbol 294 MovieClip Frame 1
onClipEvent (load) {
total = _parent._parent.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _parent._parent.getBytesLoaded();
percent = int((loaded / total) * 100);
gotoAndStop(percent);
perText = percent + "%";
if (percent >= 100) {
_parent.gotoAndStop(2);
}
}
Symbol 294 MovieClip Frame 2
stop();
_parent.gotoAndPlay(3);
Symbol 311 Button
on (release) {
_root.pAgainTime = getTimer();
_parent.gotoAndPlay(4);
}
Symbol 319 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 2
stop();
blocks.useHandCursor = false;
Symbol 323 MovieClip Frame 35
if ((_root.timeLineBoost == true) && (_root.optionsclick == 1)) {
_root.BoostTimeCalculate = _root.tempTLvar;
trace("_root.BoostTimeCalculate=" + _root.BoostTimeCalculate);
_root.tempTLvar = _root.tempTLvar - 1;
}
Symbol 348 Button
on (release) {
getURL ("http://www.ikoncity.com/ic-master.asp?pageID=805", "_blank");
}
Symbol 352 Button
on (release) {
_root.score = 0;
_root.gRound = 1;
_root.pAgainTime = getTimer();
gotoAndStop (3);
}