Frame 1
stop();
Instance of Symbol 45 MovieClip in Frame 1
onClipEvent (load) {
this.swapDepths(100000);
}
Frame 3
soundController.gotoAndStop(2);
bgsndClip.gotoAndPlay(2);
stop();
Frame 4
fscommand ("allowscale", "false");
stop();
var totalScore = 0;
dbInterface.updateScore(totalScore);
var roundNumber = 1;
var pauseTime = 0;
var totalGameTime = 240000;
var totalTimeSpend = 0;
var timeSpendInRounds = 0;
var pauseTheGame = false;
var totalPausedTime = 0;
var pauseInitialTime = 0;
var optionClicked = 0;
var slidemusic_X = 0;
var slidesound_X = 0;
var defaultVolume = 1;
var defaultFxVolume = 1;
Symbol 6 MovieClip Frame 1
stop();
Symbol 6 MovieClip Frame 2
play();
Symbol 6 MovieClip Frame 4905
gotoAndPlay (2);
Symbol 14 MovieClip Frame 1
stop();
Symbol 14 MovieClip Frame 100
stop();
Symbol 20 MovieClip Frame 1
titleMc.autoSize = true;
titletxt = "YOU ARE LISTENING TO-PITBULL";
Symbol 29 Button
on (release) {
_parent.bgsndClip.stop();
gotoAndStop (3);
}
Symbol 33 Button
on (release) {
_parent.bgsndClip.play();
gotoAndStop (2);
}
Symbol 34 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 2
stop();
Instance of Symbol 25 MovieClip in Symbol 34 MovieClip Frame 2
onClipEvent (load) {
speed = 0.6;
titleClipX = _parent.titleClip._x + 180;
}
onClipEvent (enterFrame) {
if ((_parent.titleClip.hitTest(_parent.hit1) || (_parent.titleClip.hitTest(_parent.hit2))) || (_parent.titleClip.hitTest(_parent.hit3))) {
_parent.titleClip._x = _parent.titleClip._x - speed;
} else if (_parent.hit3._x < _parent.titleClip._x) {
_parent.titleClip._x = _parent.titleClip._x - speed;
} else {
_parent.titleClip._x = titleClipX;
}
}
Symbol 34 MovieClip Frame 3
stop();
Symbol 44 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 1
stop();
LoaderBlk.useHandCursor = false;
Instance of Symbol 44 MovieClip in Symbol 45 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 45 MovieClip Frame 2
stop();
_parent.gotoAndStop(3);
Symbol 55 Button
on (release) {
getURL ("http://www.ikoncity.com", "_blank");
}
Symbol 59 Button
on (release) {
gotoAndStop (4);
}
Symbol 61 Button
on (release) {
getURL ("http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2FEl-Mariel-Pitbull%2Fdp%2FB000HEW17Y%2Fsr%3D1-1%2Fqid%3D1168343136%3Fie%3DUTF8%26s%3Dmusic&tag=ikoncitycom-20&linkCode=ur2&camp=1789&creative=9325", "_blank");
}
Symbol 134 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 5
backSidebt.useHandCursor = false;
Symbol 153 Button
on (rollOver) {
_parent.gameEngine.mouseOverCardNumber = this.getDepth();
_parent.cardOvered = "left";
_parent.gameEngine.determineMouseOverHighlight();
effects.gotoAndStop("mouseOver");
}
on (rollOut, releaseOutside) {
_parent.gameEngine.removeMouseOverHighlight();
effects.gotoAndStop("blank");
}
on (release) {
_parent._parent.cardSound.musicObj.start(0, 1);
_parent.cardPressed = "left";
_parent.gameEngine.selectedCardNumber = this.getDepth();
_parent.gameEngine.removeMouseOverHighlight();
_parent.gameEngine.determineUserCardDirection();
_parent.gameEngine.placeTheCard();
}
Symbol 154 Button
on (rollOver) {
_parent.gameEngine.mouseOverCardNumber = this.getDepth();
_parent.cardOvered = "right";
_parent.gameEngine.determineMouseOverHighlight();
effects.gotoAndStop("mouseOver");
}
on (rollOut, releaseOutside) {
_parent.gameEngine.removeMouseOverHighlight();
effects.gotoAndStop("blank");
}
on (release) {
_parent._parent.cardSound.musicObj.start(0, 1);
_parent.cardPressed = "right";
_parent.gameEngine.selectedCardNumber = this.getDepth();
_parent.gameEngine.removeMouseOverHighlight();
_parent.gameEngine.determineUserCardDirection();
_parent.gameEngine.placeTheCard();
}
Symbol 163 MovieClip Frame 1
function determineDoubleFn() {
if (left == right) {
doubleFlag = true;
} else {
doubleFlag = false;
}
}
stop();
left = 0;
right = 0;
var doubleFlag;
determineDoubleFn();
Symbol 163 MovieClip Frame 2
stop();
left = 0;
right = 1;
determineDoubleFn();
Symbol 163 MovieClip Frame 3
stop();
left = 0;
right = 2;
determineDoubleFn();
Symbol 163 MovieClip Frame 4
stop();
left = 0;
right = 3;
determineDoubleFn();
Symbol 163 MovieClip Frame 5
stop();
left = 0;
right = 4;
determineDoubleFn();
Symbol 163 MovieClip Frame 6
stop();
left = 0;
right = 5;
determineDoubleFn();
Symbol 163 MovieClip Frame 7
stop();
left = 0;
right = 6;
determineDoubleFn();
Symbol 163 MovieClip Frame 8
stop();
left = 1;
right = 1;
determineDoubleFn();
Symbol 163 MovieClip Frame 9
stop();
left = 1;
right = 2;
determineDoubleFn();
Symbol 163 MovieClip Frame 10
stop();
left = 1;
right = 3;
determineDoubleFn();
Symbol 163 MovieClip Frame 11
stop();
left = 1;
right = 4;
determineDoubleFn();
Symbol 163 MovieClip Frame 12
stop();
left = 1;
right = 5;
determineDoubleFn();
Symbol 163 MovieClip Frame 13
stop();
left = 1;
right = 6;
determineDoubleFn();
Symbol 163 MovieClip Frame 14
stop();
left = 2;
right = 2;
determineDoubleFn();
Symbol 163 MovieClip Frame 15
stop();
left = 2;
right = 3;
determineDoubleFn();
Symbol 163 MovieClip Frame 16
stop();
left = 2;
right = 4;
determineDoubleFn();
Symbol 163 MovieClip Frame 17
stop();
left = 2;
right = 5;
determineDoubleFn();
Symbol 163 MovieClip Frame 18
stop();
left = 2;
right = 6;
determineDoubleFn();
Symbol 163 MovieClip Frame 19
stop();
left = 3;
right = 3;
determineDoubleFn();
Symbol 163 MovieClip Frame 20
stop();
left = 3;
right = 4;
determineDoubleFn();
Symbol 163 MovieClip Frame 21
stop();
left = 3;
right = 5;
determineDoubleFn();
Symbol 163 MovieClip Frame 22
stop();
left = 3;
right = 6;
determineDoubleFn();
Symbol 163 MovieClip Frame 23
stop();
left = 4;
right = 4;
determineDoubleFn();
Symbol 163 MovieClip Frame 24
stop();
left = 4;
right = 5;
determineDoubleFn();
Symbol 163 MovieClip Frame 25
stop();
left = 4;
right = 6;
determineDoubleFn();
Symbol 163 MovieClip Frame 26
stop();
left = 5;
right = 5;
determineDoubleFn();
Symbol 163 MovieClip Frame 27
stop();
left = 5;
right = 6;
determineDoubleFn();
Symbol 163 MovieClip Frame 28
stop();
left = 6;
right = 6;
determineDoubleFn();
Symbol 165 Button
on (release) {
deckHighlight.gotoAndStop(1);
_parent.gameEngine.placeCardFromDeckToUser();
}
Symbol 168 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 2
stop();
Symbol 179 Button
on (press) {
startDrag (this, true, left_M, top_M, right_M, bottom_M);
}
on (release, releaseOutside) {
stopDrag();
}
Symbol 181 Button
on (press) {
startDrag (this, false, left_j, top_j, right_j, bottom_j);
}
on (release, releaseOutside) {
stopDrag();
}
Symbol 186 MovieClip Frame 1
function closeVolumeControl() {
if (_parent.countTime == true) {
_parent._parent.totalPausedTime = _parent._parent.totalPausedTime + (getTimer() - _parent._parent.pauseInitialTime);
}
_parent._parent.pauseTheGame = false;
_parent.gameStatus.gotoAndStop(1);
_parent._parent.optionClicked = 0;
_parent._parent.slidemusic_X = slidemusic._x;
_parent._parent.slidesound_X = slidesound._x;
gotoAndStop (1);
}
stop();
Symbol 186 MovieClip Frame 2
_parent._parent.pauseTheGame = true;
if (_parent.countTime == true) {
_parent._parent.pauseInitialTime = getTimer();
}
_parent.gameStatus.gotoAndStop("pauseScreen");
Symbol 186 MovieClip Frame 9
stop();
Instance of Symbol 180 MovieClip "slidemusic" in Symbol 186 MovieClip Frame 9
onClipEvent (load) {
right_M = _x + 100;
top_M = _y;
bottom_M = _y;
left_M = _x;
if (_parent._parent._parent.defaultVolume == 1) {
_x = (_x + 100);
_parent._parent._parent.defaultVolume = 0;
} else {
_x = _parent._parent._parent.slidemusic_X;
}
}
onClipEvent (enterFrame) {
_parent._parent._parent.bgMusic.musicObj.setVolume(_x - left_M);
}
Instance of Symbol 182 MovieClip "slidesound" in Symbol 186 MovieClip Frame 9
onClipEvent (load) {
top_j = _y;
bottom_j = _y;
left_j = _x;
right_j = _x + 100;
if (_parent._parent._parent.defaultFxVolume == 1) {
_x = (_x + 100);
_parent._parent._parent.defaultFxVolume = 0;
} else {
_x = _parent._parent._parent.slidesound_X;
}
}
onClipEvent (enterFrame) {
_parent._parent._parent.cardSound.musicObj.setVolume(_x - left_j);
}
Symbol 188 Button
on (release) {
if (_parent.optionClicked == 0) {
controls.gotoAndPlay(2);
_parent.optionClicked = 1;
} else {
controls.closeVolumeControl();
}
}
Symbol 202 Button
on (release) {
_parent.removeCards();
_parent._parent.roundNumber++;
gotoAndStop (1);
_parent.setDepthValues();
_parent.gotoAndPlay("nextRound");
}
Symbol 209 Button
on (release) {
_parent._parent.gotoAndStop(3);
}
Symbol 213 Button
on (release) {
getURL ("http://www.ikoncity.com/icgames/published/ikons/pitbull/pitbull.html", "_blank");
}
Symbol 217 Button
on (release) {
getURL ("http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playlistId=202096999&s=143441&i=202097250", "_blank");
}
Symbol 221 Button
on (release) {
getURL ("http://www.pitbullmusic.com/?location=newsletter", "_blank");
}
Symbol 225 Button
on (release) {
getURL ("http://www.pitbullmusic.com", "_blank");
}
Symbol 229 Button
on (release) {
getURL ("http://www.modtones.com/download/MudPromo.do?@PROMOTEID@=51", "_blank");
}
Symbol 232 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 2
blocker.useHandCursor = false;
stop();
_parent._parent.timeSpendInRounds = _parent._parent.timeSpendInRounds + (getTimer() - _parent.roundStartTime);
_parent.roundStartTime = 0;
_parent.timerClip.displayTime();
_parent.countTime = false;
if (_parent.winner == "user") {
winnerName = "YOU WON THIS ROUND!!!";
if (_parent.winnerType == 1) {
roundResult = ("And scored " + _parent.roundScore) + " points.";
} else if (_parent.winnerType == 2) {
roundResult = (("You have the smallest sum :: " + _parent.gameEngine.userCardTotal) + " to ") + _parent.gameEngine.computerCardTotal;
}
} else if (_parent.winner == "computer") {
winnerName = "COMPUTER WON THIS ROUND";
if (_parent.winnerType == 1) {
if (_parent.roundScore == 0) {
roundResult = ("You lost " + _parent.roundScore) + " point in this round.";
} else {
roundResult = ("You lost " + _parent.roundScore) + " points in this round.";
}
} else if (_parent.winnerType == 2) {
roundResult = (("Computer have the smallest sum :: " + _parent.gameEngine.computerCardTotal) + " to ") + _parent.gameEngine.userCardTotal;
if (_parent.roundScore == 0) {
roundResult = roundResult + (("\nAnd you lost " + _parent.roundScore) + " point in this round.");
} else {
roundResult = roundResult + (("\nAnd you lost " + _parent.roundScore) + " points in this round.");
}
}
} else if (_parent.winner == "tie") {
winnerName = "ROUND TIE";
roundResult = "You and Computer have the same sum value.";
}
Symbol 232 MovieClip Frame 3
_parent._parent.bgsndClip.stop();
_parent._parent.soundController.gotoAndStop(1);
stopAllSounds();
blocker.useHandCursor = false;
stop();
_parent._parent.setDeactive();
_parent._parent.timeSpendInRounds = _parent._parent.timeSpendInRounds + (getTimer() - _parent.roundStartTime);
_parent.roundStartTime = 0;
_parent.countTime = false;
Symbol 232 MovieClip Frame 4
blocker.useHandCursor = false;
stop();
Symbol 233 MovieClip Frame 1
var gameStatusDepth;
var deckDepth;
function createRandomNumber() {
currentNo = random(noOfRandomNo) + 1;
if (randomFlag[currentNo] == 0) {
randomFlag[currentNo] = 1;
return(currentNo);
}
j = 1;
while (j <= noOfRandomNo) {
if (randomFlag[j] == 0) {
randomFlag[j] = 1;
return(j);
}
j++;
}
}
function setDepthValues() {
trace("deckDepthdeckDepthdeckDepthdecsetDepthValues()kDepth");
gameStatus.swapDepths(gameStatusDepth);
deckButton.swapDepths(deckDepth);
}
function removeCards() {
var _local1 = 0;
trace("removeCards removeCards removeCards");
_local1 = 1;
while (_local1 <= noOfRandomNo) {
removeMovieClip("card" + _local1);
_local1++;
}
}
stop();
displayScore = _parent.totalScore;
_parent.dbInterface.updateScore(_parent.totalScore);
displayRoundNumber = _parent.roundNumber;
playerArray = new Array();
computerArray = new Array();
deckArray = new Array();
var xSpacing = refLocationUser._x;
var ySpacing = refLocationUser._y;
var cardPressed = "left";
var cardOvered = "left";
var roundScore = 0;
var roundOver = false;
var winner = null;
var winnerType = 0;
var countTime = false;
var roundStartTime = 0;
randomFlag = new Array();
cardValue = new Array();
var noOfRandomNo = 28;
i = 1;
while (i <= noOfRandomNo) {
randomFlag[i] = 0;
i++;
}
i = 1;
while (i <= noOfRandomNo) {
cardValue[i] = createRandomNumber();
i++;
}
c = 1;
while (c <= noOfRandomNo) {
card.duplicateMovieClip("card" + c, c);
this["card" + c]._x = refLocationDeck._x;
this["card" + c]._y = refLocationDeck._y;
this["card" + c].gotoAndStop(cardValue[c]);
if (c <= 7) {
playerArray[c] = c;
} else if ((c > 7) && (c <= 14)) {
computerArray[c - 7] = c;
} else if (c > 14) {
deckArray[c - 14] = c;
this["card" + c].effects.gotoAndStop("backSide");
}
this["card" + c].btLeft.enabled = false;
this["card" + c].btRight.enabled = false;
c++;
}
Instance of Symbol 64 MovieClip "gameEngine" in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
function placesMaximumDouble() {
i = 1;
while (i <= 7) {
if (_parent["card" + _parent.playerArray[i]].doubleFlag == true) {
if (maxDouble < _parent["card" + _parent.playerArray[i]].left) {
maxDouble = _parent["card" + _parent.playerArray[i]].left;
maxDoubleIndex = i;
nextMoveBy = "user";
trace((("inside " + maxDouble) + " :: ") + nextMoveBy);
}
}
i++;
}
i = 1;
while (i <= 7) {
if (_parent["card" + _parent.computerArray[i]].doubleFlag == true) {
if (maxDouble < _parent["card" + _parent.computerArray[i]].left) {
maxDouble = _parent["card" + _parent.computerArray[i]].left;
maxDoubleIndex = i + 7;
nextMoveBy = "computer";
trace((("inside " + maxDouble) + " :: ") + nextMoveBy);
}
}
i++;
}
leftCardIndex = maxDoubleIndex;
rightCardIndex = maxDoubleIndex;
leftCardValue = maxDouble;
rightCardValue = maxDouble;
}
function moveTheCard(cardNumber, xStepArg, yStepArg) {
_parent["card" + cardNumber]._x = _parent["card" + cardNumber]._x + xStepArg;
_parent["card" + cardNumber]._y = _parent["card" + cardNumber]._y + yStepArg;
}
function lockPlayerCards(totalCards) {
var _local2 = 0;
if (totalCards == "all") {
_local2 = 1;
while (_local2 <= _parent.playerArray.length) {
_parent["card" + _parent.playerArray[_local2]].effects.gotoAndStop("block");
_parent["card" + _parent.playerArray[_local2]].btLeft.enabled = false;
_parent["card" + _parent.playerArray[_local2]].btRight.enabled = false;
_local2++;
}
}
}
function terminateRound() {
var _local2 = 0;
userCardTotal = 0;
computerCardTotal = 0;
_local2 = 1;
while (_local2 < _parent.playerArray.length) {
userCardTotal = userCardTotal + _parent["card" + _parent.playerArray[_local2]].left;
userCardTotal = userCardTotal + _parent["card" + _parent.playerArray[_local2]].right;
_local2++;
}
trace("userCard Total :: " + userCardTotal);
_local2 = 1;
while (_local2 < _parent.computerArray.length) {
computerCardTotal = computerCardTotal + _parent["card" + _parent.computerArray[_local2]].left;
computerCardTotal = computerCardTotal + _parent["card" + _parent.computerArray[_local2]].right;
_local2++;
}
trace("computerCard Total :: " + computerCardTotal);
if (((userCardTotal < computerCardTotal) && (_parent.winnerType == 2)) || ((_parent.winnerType == 1) && (_parent.winner == "user"))) {
_parent.roundOver = true;
_parent.winner = "user";
_parent.deckButton._visible = false;
_parent.roundScore = (100 * _parent._parent.roundNumber) + ((_parent.computerArray.length - 1) * 5);
_parent._parent.totalGameTime = _parent._parent.totalGameTime + 5000;
if (_parent["card" + selectedCardNumber].doubleFlag == true) {
_parent.roundScore = _parent.roundScore + (50 * _parent._parent.roundNumber);
_parent._parent.totalGameTime = _parent._parent.totalGameTime + 15000;
}
_parent._parent.totalScore = _parent._parent.totalScore + _parent.roundScore;
_parent._parent.dbInterface.updateScore(_parent._parent.totalScore);
_parent.displayScore = _parent._parent.totalScore;
_parent.gameStatus.gotoAndStop("result");
} else if (((userCardTotal > computerCardTotal) && (_parent.winnerType == 2)) || ((_parent.winnerType == 1) && (_parent.winner == "computer"))) {
_parent.roundOver = true;
_parent.winner = "computer";
_parent.deckButton._visible = false;
_parent._parent.totalScore = _parent._parent.totalScore - 25;
_parent._parent.dbInterface.updateScore(_parent._parent.totalScore);
_parent._parent.totalGameTime = _parent._parent.totalGameTime - 10000;
_parent.roundScore = 25;
if (_parent._parent.totalScore < 0) {
_parent._parent.totalScore = 0;
_parent._parent.dbInterface.updateScore(_parent._parent.totalScore);
_parent.roundScore = 0;
}
_parent.displayScore = _parent._parent.totalScore;
_parent.gameStatus.gotoAndStop("result");
} else if ((userCardTotal == computerCardTotal) && (_parent.winnerType == 2)) {
_parent.roundOver = true;
_parent.winner = "tie";
_parent.deckButton._visible = false;
_parent.gameStatus.gotoAndStop("result");
}
}
function placeMaxDoubleInStage() {
movementSteps = maxmiumSteps;
_parent["card" + maxDoubleIndex]._rotation = 90;
_parent["card" + maxDoubleIndex].leftDots._xscale = -100;
_parent["card" + maxDoubleIndex].rightDots._xscale = -100;
_parent["card" + maxDoubleIndex].effects.gotoAndStop("blank");
xStep = (_parent.cardLocation._x - _parent["card" + maxDoubleIndex]._x) / movementSteps;
yStep = (_parent.cardLocation._y - _parent["card" + maxDoubleIndex]._y) / movementSteps;
selectedCardNumber = maxDoubleIndex;
action = 1;
}
function placeNormalCardInStage() {
if (cardPlacePosition == "flip") {
_parent["card" + selectedCardNumber]._xscale = -50;
_parent["card" + selectedCardNumber].leftDots._xscale = -100;
_parent["card" + selectedCardNumber].rightDots._xscale = -100;
}
if (_parent["card" + selectedCardNumber].doubleFlag == true) {
_parent["card" + selectedCardNumber]._rotation = 90;
_parent["card" + selectedCardNumber].leftDots._xscale = -100;
_parent["card" + selectedCardNumber].rightDots._xscale = -100;
}
if (cardMoveDirection == "right") {
if (_parent["card" + rightCardIndex]._rotation == 90) {
cardDisplacement = _parent["card" + rightCardIndex]._x + (((_parent["card" + rightCardIndex]._width / 2) + (_parent["card" + selectedCardNumber]._width / 2)) * rightDirection);
} else if (_parent["card" + selectedCardNumber]._rotation == 90) {
cardDisplacement = _parent["card" + rightCardIndex]._x + (((_parent["card" + rightCardIndex]._width / 2) + (_parent["card" + selectedCardNumber]._width / 2)) * rightDirection);
} else {
cardDisplacement = _parent["card" + rightCardIndex]._x + (_parent["card" + selectedCardNumber]._width * rightDirection);
}
rightBorder = _parent.cardRightLimit._x - _parent["card" + rightCardIndex]._x;
trace("RIGHT card x diff ***** value :: " + rightBorder);
if (rightType == 0) {
if (rightBorder < 47) {
rightType = 2;
} else if (rightBorder < 75) {
rightType = 1;
}
}
trace("rightType :::: " + rightType);
if (rightType == 1) {
if (rightStep == 0) {
_parent["card" + selectedCardNumber]._rotation = 90;
_parent["card" + selectedCardNumber].leftDots._xscale = -100;
_parent["card" + selectedCardNumber].rightDots._xscale = -100;
cardDisplacement = (_parent["card" + rightCardIndex]._x + (_parent["card" + rightCardIndex]._width / 2)) + (_parent["card" + selectedCardNumber]._width / 2);
if (_parent["card" + rightCardIndex].doubleFlag == false) {
rightYShift = (_parent["card" + rightCardIndex]._height / 2) + 2;
} else {
rightYShift = _parent["card" + rightCardIndex]._height / 4;
}
rightStep = 1;
} else if (rightStep == 1) {
if (_parent["card" + selectedCardNumber].doubleFlag == true) {
_parent["card" + selectedCardNumber]._rotation = 0;
_parent["card" + selectedCardNumber].leftDots._xscale = 100;
_parent["card" + selectedCardNumber].rightDots._xscale = 100;
}
cardDisplacement = (_parent["card" + rightCardIndex]._x - (_parent["card" + selectedCardNumber]._width / 3)) + 5;
rightYShift = _parent["card" + rightCardIndex]._height;
rightDirection = -1;
rightStep = 2;
}
} else if (rightType == 2) {
if (rightStep == 0) {
_parent["card" + selectedCardNumber]._rotation = 90;
_parent["card" + selectedCardNumber].leftDots._xscale = -100;
_parent["card" + selectedCardNumber].rightDots._xscale = -100;
cardDisplacement = _parent["card" + rightCardIndex]._x + (_parent["card" + selectedCardNumber]._width / 2);
rightYShift = (_parent["card" + rightCardIndex]._height / 2) + (_parent["card" + selectedCardNumber]._height / 2);
rightStep = 1;
} else if (rightStep == 1) {
if (_parent["card" + selectedCardNumber].doubleFlag == true) {
cardDisplacement = _parent["card" + rightCardIndex]._x - _parent["card" + selectedCardNumber]._width;
rightYShift = _parent["card" + rightCardIndex]._height;
} else {
cardDisplacement = (_parent["card" + rightCardIndex]._x - (_parent["card" + rightCardIndex]._width / 2)) - (_parent["card" + selectedCardNumber]._width / 2);
rightYShift = _parent["card" + rightCardIndex]._height;
}
rightDirection = -1;
rightStep = 2;
}
}
} else if (cardMoveDirection == "left") {
if (_parent["card" + leftCardIndex]._rotation == 90) {
cardDisplacement = _parent["card" + leftCardIndex]._x - (((_parent["card" + leftCardIndex]._width / 2) + (_parent["card" + selectedCardNumber]._width / 2)) * leftDirection);
} else if (_parent["card" + selectedCardNumber]._rotation == 90) {
cardDisplacement = _parent["card" + leftCardIndex]._x - (((_parent["card" + leftCardIndex]._width / 2) + (_parent["card" + selectedCardNumber]._width / 2)) * leftDirection);
} else {
cardDisplacement = _parent["card" + leftCardIndex]._x - (_parent["card" + selectedCardNumber]._width * leftDirection);
}
trace("card x diff ***** value :: " + Number(_parent["card" + leftCardIndex]._x - _parent.cardLeftLimit._x));
leftBorder = _parent["card" + leftCardIndex]._x - _parent.cardLeftLimit._x;
if (leftType == 0) {
if (leftBorder < 45) {
leftType = 2;
} else if (leftBorder < 75) {
leftType = 1;
}
}
trace("leftType :::: " + leftType);
if (leftType == 1) {
if (leftStep == 0) {
_parent["card" + selectedCardNumber]._rotation = 90;
_parent["card" + selectedCardNumber].leftDots._xscale = -100;
_parent["card" + selectedCardNumber].rightDots._xscale = -100;
cardDisplacement = (_parent["card" + leftCardIndex]._x - (_parent["card" + leftCardIndex]._width / 2)) - (_parent["card" + selectedCardNumber]._width / 2);
if (_parent["card" + leftCardIndex].doubleFlag == false) {
leftYShift = (_parent["card" + leftCardIndex]._height / 2) + 2;
} else {
leftYShift = _parent["card" + leftCardIndex]._height / 4;
}
leftStep = 1;
} else if (leftStep == 1) {
if (_parent["card" + selectedCardNumber].doubleFlag == true) {
_parent["card" + selectedCardNumber]._rotation = 0;
_parent["card" + selectedCardNumber].leftDots._xscale = 100;
_parent["card" + selectedCardNumber].rightDots._xscale = 100;
}
cardDisplacement = (_parent["card" + leftCardIndex]._x + (_parent["card" + selectedCardNumber]._width / 3)) - 5;
leftYShift = _parent["card" + leftCardIndex]._height;
leftDirection = -1;
leftStep = 2;
}
} else if (leftType == 2) {
if (leftStep == 0) {
_parent["card" + selectedCardNumber]._rotation = 90;
_parent["card" + selectedCardNumber].leftDots._xscale = -100;
_parent["card" + selectedCardNumber].rightDots._xscale = -100;
cardDisplacement = _parent["card" + leftCardIndex]._x - (_parent["card" + selectedCardNumber]._width / 2);
leftYShift = (_parent["card" + leftCardIndex]._height / 2) + (_parent["card" + selectedCardNumber]._height / 2);
leftStep = 1;
} else if (leftStep == 1) {
if (_parent["card" + selectedCardNumber].doubleFlag == true) {
cardDisplacement = _parent["card" + leftCardIndex]._x + _parent["card" + selectedCardNumber]._width;
leftYShift = _parent["card" + leftCardIndex]._height;
} else {
cardDisplacement = (_parent["card" + leftCardIndex]._x + (_parent["card" + leftCardIndex]._width / 2)) + (_parent["card" + selectedCardNumber]._width / 2);
leftYShift = _parent["card" + leftCardIndex]._height;
}
leftDirection = -1;
leftStep = 2;
}
}
}
movementSteps = maxmiumSteps;
_parent["card" + selectedCardNumber].effects.gotoAndStop("blank");
xStep = (cardDisplacement - _parent["card" + selectedCardNumber]._x) / movementSteps;
if (cardMoveDirection == "left") {
yStep = ((_parent.cardLocation._y - leftYShift) - _parent["card" + selectedCardNumber]._y) / movementSteps;
} else if (cardMoveDirection == "right") {
yStep = ((_parent.cardLocation._y + rightYShift) - _parent["card" + selectedCardNumber]._y) / movementSteps;
}
trace((("cardMoveDirection :: " + cardMoveDirection) + " cardPlacePosition :: ") + cardPlacePosition);
if (cardMoveDirection == "right") {
rightCardIndex = selectedCardNumber;
if (cardPlacePosition == "flip") {
rightCardValue = _parent["card" + selectedCardNumber].left;
} else {
rightCardValue = _parent["card" + selectedCardNumber].right;
}
if (rightDirection == -1) {
if (_parent["card" + selectedCardNumber].doubleFlag == false) {
if (cardPlacePosition != "flip") {
_parent["card" + selectedCardNumber]._xscale = -50;
_parent["card" + selectedCardNumber].leftDots._xscale = -100;
_parent["card" + selectedCardNumber].rightDots._xscale = -100;
} else {
_parent["card" + selectedCardNumber]._xscale = 50;
_parent["card" + selectedCardNumber].leftDots._xscale = 100;
_parent["card" + selectedCardNumber].rightDots._xscale = 100;
}
}
}
} else if (cardMoveDirection == "left") {
leftCardIndex = selectedCardNumber;
if (cardPlacePosition == "flip") {
leftCardValue = _parent["card" + selectedCardNumber].right;
} else {
leftCardValue = _parent["card" + selectedCardNumber].left;
}
if (leftDirection == -1) {
if (_parent["card" + selectedCardNumber].doubleFlag == false) {
if (cardPlacePosition != "flip") {
_parent["card" + selectedCardNumber]._xscale = -50;
_parent["card" + selectedCardNumber].leftDots._xscale = -100;
_parent["card" + selectedCardNumber].rightDots._xscale = -100;
} else {
_parent["card" + selectedCardNumber]._xscale = 50;
_parent["card" + selectedCardNumber].leftDots._xscale = 100;
_parent["card" + selectedCardNumber].rightDots._xscale = 100;
}
}
}
}
action = 1;
}
function placeCardFromDeckToComputer() {
movementSteps = maxmiumSteps;
cardDisplacement = _parent["card" + _parent.computerArray[_parent.computerArray.length - 1]]._x;
_parent["card" + _parent.deckArray[deckPointer]].effects.gotoAndStop("blank");
_parent["card" + _parent.deckArray[deckPointer]].effects.gotoAndStop("backSide");
xStep = (cardDisplacement - _parent["card" + _parent.deckArray[deckPointer]]._x) / movementSteps;
yStep = (_parent.refLocationComputer._y - _parent["card" + _parent.deckArray[deckPointer]]._y) / movementSteps;
_parent.deckNos.gotoAndStop(_parent.deckNos._currentframe - 1);
_parent.computerNos.gotoAndStop(_parent.computerNos._currentframe + 1);
action = 3;
}
function placeCardFromDeckToUser() {
var _local2 = 0;
deckPointer++;
_parent.deckButton._visible = false;
movementSteps = maxmiumSteps;
_local2 = _parent.playerArray.length - 1;
trace("******** noOfPlayerCards ********");
if ((_local2 >= 1) && (_local2 <= 6)) {
cardDisplacement = _parent["card" + _parent.playerArray[_parent.playerArray.length - 1]]._x + _parent.card._width;
cardYDisplacement = _parent.refLocationUser._y;
} else if (_local2 == 7) {
cardDisplacement = _parent.refLocationUser._x;
cardYDisplacement = (_parent.refLocationUser._y + _parent.card._height) + 5;
} else if ((_local2 >= 8) && (_local2 <= 13)) {
cardDisplacement = _parent["card" + _parent.playerArray[_parent.playerArray.length - 1]]._x + _parent.card._width;
cardYDisplacement = (_parent.refLocationUser._y + _parent.card._height) + 5;
} else if (_local2 == 14) {
cardDisplacement = _parent.refLocationUser._x;
cardYDisplacement = _parent.refLocationUser._y + ((_parent.card._height + 5) * 2);
} else if ((_local2 >= 15) && (_local2 <= 20)) {
cardDisplacement = _parent["card" + _parent.playerArray[_parent.playerArray.length - 1]]._x + _parent.card._width;
cardYDisplacement = _parent.refLocationUser._y + ((_parent.card._height + 5) * 2);
}
_parent["card" + _parent.deckArray[deckPointer]].effects.gotoAndStop("block");
xStep = (cardDisplacement - _parent["card" + _parent.deckArray[deckPointer]]._x) / movementSteps;
yStep = (cardYDisplacement - _parent["card" + _parent.deckArray[deckPointer]]._y) / movementSteps;
_parent.deckNos.gotoAndStop(_parent.deckNos._currentframe - 1);
action = 3;
}
function repositionPlayerCards() {
var _local2 = 0;
var _local3;
var _local4 = 0;
trace("repositionPlayerCards");
_local3 = _parent.refLocationUser._x;
_local4 = _parent.refLocationUser._y;
_local2 = 1;
while (_local2 <= _parent.playerArray.length) {
if ((_parent.playerCardLimit._x > _parent["card" + _parent.playerArray[_local2 - 1]]._x) || (_local2 == 1)) {
_parent["card" + _parent.playerArray[_local2]]._x = _local3;
_local3 = _local3 + _parent.card._width;
_parent["card" + _parent.playerArray[_local2]]._y = _local4;
} else {
_local3 = _parent.refLocationUser._x;
_local4 = _local4 + (_parent.card._height + 5);
}
_local2++;
}
}
function findArrayIndexForCardNumber(playerType, cardNumberArg) {
var _local2 = 0;
if (playerType == "computer") {
_local2 = 1;
while (_local2 <= _parent.computerArray.length) {
if (_parent.computerArray[_local2] == cardNumberArg) {
trace("inside ************ computer");
selectedCardArrayIndex = _local2;
}
_local2++;
}
} else if (playerType == "user") {
_local2 = 1;
while (_local2 <= _parent.playerArray.length) {
if (_parent.playerArray[_local2] == cardNumberArg) {
trace("inside ************ user");
selectedCardArrayIndex = _local2;
}
_local2++;
}
}
}
function determineMouseOverHighlight() {
if (_parent["card" + mouseOverCardNumber].doubleFlag == true) {
if (leftCardValue == rightCardValue) {
if (_parent.cardOvered == "right") {
cardhighlightDirection = "right";
} else if (_parent.cardOvered == "left") {
cardhighlightDirection = "left";
}
} else if (_parent["card" + mouseOverCardNumber].left == leftCardValue) {
cardhighlightDirection = "left";
} else if (_parent["card" + mouseOverCardNumber].right == rightCardValue) {
cardhighlightDirection = "right";
}
} else if (((_parent["card" + mouseOverCardNumber].left == leftCardValue) || (_parent["card" + mouseOverCardNumber].right == leftCardValue)) && ((_parent["card" + mouseOverCardNumber].left == rightCardValue) || (_parent["card" + mouseOverCardNumber].right == rightCardValue))) {
if (_parent.cardOvered == "right") {
cardhighlightDirection = "right";
} else if (_parent.cardOvered == "left") {
cardhighlightDirection = "left";
}
} else if (_parent["card" + mouseOverCardNumber].left == leftCardValue) {
cardhighlightDirection = "left";
} else if (_parent["card" + mouseOverCardNumber].right == leftCardValue) {
cardhighlightDirection = "left";
} else if (_parent["card" + mouseOverCardNumber].left == rightCardValue) {
cardhighlightDirection = "right";
} else if (_parent["card" + mouseOverCardNumber].right == rightCardValue) {
cardhighlightDirection = "right";
}
if (cardhighlightDirection == "left") {
_parent["card" + leftCardIndex].effects.gotoAndStop("highLight");
} else if (cardhighlightDirection == "right") {
_parent["card" + rightCardIndex].effects.gotoAndStop("highLight");
}
}
function removeMouseOverHighlight() {
_parent["card" + leftCardIndex].effects.gotoAndStop("blank");
_parent["card" + rightCardIndex].effects.gotoAndStop("blank");
}
function determineUserCardDirection() {
if (_parent["card" + selectedCardNumber].doubleFlag == true) {
if (leftCardValue == rightCardValue) {
if (_parent.cardPressed == "right") {
cardMoveDirection = "right";
cardPlacePosition = "noflip";
} else if (_parent.cardPressed == "left") {
cardMoveDirection = "left";
cardPlacePosition = "noflip";
}
} else if (_parent["card" + selectedCardNumber].left == leftCardValue) {
cardMoveDirection = "left";
cardPlacePosition = "noflip";
} else if (_parent["card" + selectedCardNumber].right == rightCardValue) {
cardMoveDirection = "right";
cardPlacePosition = "noflip";
}
} else if (((_parent["card" + selectedCardNumber].left == leftCardValue) || (_parent["card" + selectedCardNumber].right == leftCardValue)) && ((_parent["card" + selectedCardNumber].left == rightCardValue) || (_parent["card" + selectedCardNumber].right == rightCardValue))) {
if (_parent.cardPressed == "right") {
cardMoveDirection = "right";
if (_parent["card" + selectedCardNumber].right == rightCardValue) {
cardPlacePosition = "flip";
} else {
cardPlacePosition = "noflip";
}
} else if (_parent.cardPressed == "left") {
cardMoveDirection = "left";
if (_parent["card" + selectedCardNumber].left == leftCardValue) {
cardPlacePosition = "flip";
} else {
cardPlacePosition = "noflip";
}
}
} else if (_parent["card" + selectedCardNumber].left == leftCardValue) {
cardMoveDirection = "left";
cardPlacePosition = "flip";
} else if (_parent["card" + selectedCardNumber].right == leftCardValue) {
cardMoveDirection = "left";
cardPlacePosition = "noflip";
} else if (_parent["card" + selectedCardNumber].left == rightCardValue) {
cardMoveDirection = "right";
cardPlacePosition = "noflip";
} else if (_parent["card" + selectedCardNumber].right == rightCardValue) {
cardMoveDirection = "right";
cardPlacePosition = "flip";
}
}
function placeTheCard() {
if (action == -1) {
_parent["card" + maxDoubleIndex].btLeft.enabled = false;
_parent["card" + maxDoubleIndex].btRight.enabled = false;
placeMaxDoubleInStage();
trace((("player cards :: " + _parent.playerArray) + " : ") + maxDoubleIndex);
_parent.playerArray.splice(maxDoubleIndex, 1);
trace((("player cards :: " + _parent.playerArray) + " : ") + maxDoubleIndex);
} else {
trace("selectedCardNumber :: " + selectedCardNumber);
if (nextMoveBy == "computer") {
findArrayIndexForCardNumber("computer", selectedCardNumber);
trace(((((("computer cards :: " + _parent.computerArray) + " : ") + "selectedCardNumber : ") + selectedCardNumber) + " index : ") + selectedCardArrayIndex);
_parent.computerNos.gotoAndStop(_parent.computerNos._currentframe - 1);
_parent.computerArray.splice(selectedCardArrayIndex, 1);
trace(((((("computer cards :: " + _parent.computerArray) + " : ") + "selectedCardNumber : ") + selectedCardNumber) + " index : ") + selectedCardArrayIndex);
} else if (nextMoveBy == "user") {
lockPlayerCards("all");
findArrayIndexForCardNumber("user", selectedCardNumber);
trace(((((("player cards :: " + _parent.playerArray) + " : ") + "selectedCardNumber : ") + selectedCardNumber) + " index : ") + selectedCardArrayIndex);
_parent.playerArray.splice(selectedCardArrayIndex, 1);
trace(((((("player cards :: " + _parent.playerArray) + " : ") + "selectedCardNumber : ") + selectedCardNumber) + " index : ") + selectedCardArrayIndex);
}
placeNormalCardInStage();
}
}
var i;
var j;
var k;
var maxDoubleIndex = 0;
var maxDouble = -1;
var nextMoveBy = null;
var maxmiumSteps = 10;
var xStep;
var yStep;
var action = 0;
var movementSteps = 0;
var distribute = false;
var distributeIndex = 0;
var xSpacing = 0;
var leftCardIndex = 0;
var rightCardIndex = 0;
var leftCardValue = -1;
var rightCardValue = -1;
var selectedCardNumber = 0;
var mouseOverCardNumber = 0;
var selectedCardArrayIndex = 0;
var cardDisplacement = 0;
var delayTime;
var noCard;
var deckPointer = 0;
var cardMoveDirection = "left";
var cardPlacePosition = "double";
var cardhighlightDirection = "left";
var userCardTotal = 0;
var computerCardTotal = 0;
_parent.deckButton._visible = false;
var leftYShift = 0;
var rightYShift = 0;
var leftStep = 0;
var rightStep = 0;
var leftDirection = 1;
var rightDirection = 1;
var leftType = 0;
var rightType = 0;
var cardYDisplacement = _parent.refLocationUser._y;
}
onClipEvent (enterFrame) {
_parent.timerClip.displayTime();
if (_parent.timerClip.myTime <= 0) {
_parent.roundOver = true;
_parent.deckButton._visible = false;
_parent.gameStatus.gotoAndStop("timeOut");
}
if ((_parent.roundOver == false) && (_parent._parent.pauseTheGame == false)) {
if ((distribute == false) && (movementSteps == 0)) {
movementSteps = maxmiumSteps;
distributeIndex++;
xStep1 = ((_parent.refLocationUser._x + xSpacing) - _parent["card" + distributeIndex]._x) / movementSteps;
xSpacing = xSpacing + _parent.card._width;
yStep1 = (_parent.refLocationUser._y - _parent["card" + distributeIndex]._y) / movementSteps;
_parent["card" + Number(distributeIndex + 7)].effects.gotoAndStop("backSide");
xStep2 = (_parent.refLocationComputer._x - _parent["card" + Number(distributeIndex + 7)]._x) / movementSteps;
yStep2 = (_parent.refLocationComputer._y - _parent["card" + Number(distributeIndex + 7)]._y) / movementSteps;
_parent.deckNos.gotoAndStop(_parent.deckNos._currentframe - 2);
_parent.computerNos.gotoAndStop(_parent.computerNos._currentframe + 1);
action = -1;
} else if ((nextMoveBy == null) && (distribute == true)) {
lockPlayerCards("all");
placesMaximumDouble();
if (nextMoveBy == "computer") {
placeMaxDoubleInStage();
trace((("computer cards :: " + _parent.computerArray) + " : ") + Number(maxDoubleIndex - 7));
_parent.computerNos.gotoAndStop(_parent.computerNos._currentframe - 1);
_parent.computerArray.splice(Number(maxDoubleIndex - 7), 1);
trace((("computer cards :: " + _parent.computerArray) + " : ") + Number(maxDoubleIndex - 7));
} else if (nextMoveBy == "user") {
_parent["card" + maxDoubleIndex].effects.gotoAndStop("blank");
_parent["card" + maxDoubleIndex].btLeft.enabled = true;
_parent["card" + maxDoubleIndex].btRight.enabled = true;
}
}
switch (action) {
case -1 :
if (movementSteps > 0) {
moveTheCard(distributeIndex, xStep1, yStep1);
moveTheCard(Number(distributeIndex + 7), xStep2, yStep2);
movementSteps--;
}
if (movementSteps == 0) {
if (distributeIndex == 7) {
if (distribute == false) {
_parent.countTime = true;
_parent.roundStartTime = getTimer();
}
distribute = true;
}
}
break;
case 1 :
if (movementSteps > 0) {
moveTheCard(selectedCardNumber, xStep, yStep);
movementSteps--;
} else if (movementSteps == 0) {
if (nextMoveBy == "user") {
if (_parent.playerArray.length == 1) {
_parent.winnerType = 1;
_parent.winner = "user";
terminateRound();
}
nextMoveBy = "computer";
repositionPlayerCards();
} else if (nextMoveBy == "computer") {
if (_parent.computerArray.length == 1) {
_parent.winnerType = 1;
_parent.winner = "computer";
terminateRound();
}
nextMoveBy = "user";
}
delayTime = 25;
action = 2;
}
break;
case 2 :
trace("nextMoveBy :: " + nextMoveBy);
var m = 0;
if (nextMoveBy == "user") {
noCard = true;
m = 1;
while (m <= _parent.playerArray.length) {
if ((_parent["card" + _parent.playerArray[m]].left == leftCardValue) || (_parent["card" + _parent.playerArray[m]].left == rightCardValue)) {
_parent["card" + _parent.playerArray[m]].effects.gotoAndStop("blank");
_parent["card" + _parent.playerArray[m]].btLeft.enabled = true;
_parent["card" + _parent.playerArray[m]].btRight.enabled = true;
noCard = false;
}
if ((_parent["card" + _parent.playerArray[m]].right == leftCardValue) || (_parent["card" + _parent.playerArray[m]].right == rightCardValue)) {
_parent["card" + _parent.playerArray[m]].effects.gotoAndStop("blank");
_parent["card" + _parent.playerArray[m]].btLeft.enabled = true;
_parent["card" + _parent.playerArray[m]].btRight.enabled = true;
noCard = false;
}
m++;
}
if (noCard == true) {
trace("No cards in the player array....");
if (deckPointer >= 14) {
trace("Terminate round, no card in the deck....User side");
_parent.winnerType = 2;
terminateRound();
} else {
_parent.deckButton.deckHighlight.gotoAndStop(2);
_parent.deckButton._visible = true;
}
}
action = 100;
} else if (nextMoveBy == "computer") {
noCard = true;
m = 1;
while (m <= _parent.computerArray.length) {
if (_parent["card" + _parent.computerArray[m]].left == rightCardValue) {
cardMoveDirection = "right";
cardPlacePosition = "noflip";
selectedCardNumber = _parent.computerArray[m];
noCard = false;
} else if (_parent["card" + _parent.computerArray[m]].right == leftCardValue) {
cardMoveDirection = "left";
cardPlacePosition = "noflip";
selectedCardNumber = _parent.computerArray[m];
noCard = false;
} else if (_parent["card" + _parent.computerArray[m]].left == leftCardValue) {
cardMoveDirection = "left";
cardPlacePosition = "flip";
selectedCardNumber = _parent.computerArray[m];
noCard = false;
} else if (_parent["card" + _parent.computerArray[m]].right == rightCardValue) {
cardMoveDirection = "right";
cardPlacePosition = "flip";
selectedCardNumber = _parent.computerArray[m];
noCard = false;
}
m++;
}
if (noCard == false) {
placeTheCard();
} else if (noCard == true) {
if (delayTime > 0) {
delayTime--;
trace("delayTime :: " + delayTime);
} else if (delayTime == 0) {
trace("Deck Array :: " + _parent.deckArray);
if (deckPointer >= 14) {
trace("Terminate round, no card in the deck....computer side");
_parent.winnerType = 2;
terminateRound();
} else {
deckPointer++;
placeCardFromDeckToComputer();
}
}
}
}
break;
case 3 :
if (movementSteps > 0) {
moveTheCard(_parent.deckArray[deckPointer], xStep, yStep);
movementSteps--;
} else if (movementSteps == 0) {
if (nextMoveBy == "computer") {
_parent.computerArray[_parent.computerArray.length] = _parent.deckArray[deckPointer];
} else if (nextMoveBy == "user") {
_parent.playerArray[_parent.playerArray.length] = _parent.deckArray[deckPointer];
}
action = 2;
}
break;
case 100 :
break;
}
}
}
Instance of Symbol 134 MovieClip "deckNos" in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (29);
}
Instance of Symbol 143 MovieClip "timerClip" in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
function displayTime() {
if ((_parent.countTime == true) && (_parent._parent.pauseTheGame == false)) {
if (_parent.roundStartTime == 0) {
_parent._parent.totalTimeSpend = _parent._parent.timeSpendInRounds - _parent._parent.totalPausedTime;
} else {
_parent._parent.totalTimeSpend = (getTimer() - _parent.roundStartTime) + (_parent._parent.timeSpendInRounds - _parent._parent.totalPausedTime);
}
myTime = _parent._parent.totalGameTime - _parent._parent.totalTimeSpend;
if (myTime <= 0) {
myTime = 0;
}
mins = Math.floor(myTime / 60000);
secs = Math.floor(myTime / 1000) % 60;
tenthSecs = Math.floor(myTime / 100) % 10;
tenthSecs2 = Math.floor(myTime / 10) % 10;
if (secs.toString().length == 1) {
secs = "0" + secs;
}
if (mins.toString().length == 1) {
mins = "0" + mins;
}
_parent.myTimer = ((((mins + ":") + secs) + ":") + tenthSecs) + tenthSecs2;
}
}
myTime = 1;
}
Instance of Symbol 169 MovieClip "deckButton" in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
_parent.deckDepth = this.getDepth();
this.swapDepths(1000);
}
Instance of Symbol 232 MovieClip "gameStatus" in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
_parent.gameStatusDepth = this.getDepth();
this.swapDepths(1001);
}
Symbol 237 MovieClip Frame 1
musicObj = new Sound(this);
musicObj.attachSound("bgMusic");
Symbol 239 MovieClip Frame 1
musicObj = new Sound(this);
musicObj.attachSound("selectSound");