Frame 1
stop();
Instance of Symbol 31 MovieClip in Frame 1
onClipEvent (load) {
b = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
l = _root.getBytesLoaded();
p = (l / b) * 100;
text = Math.floor(p);
text = text + "%";
if (l >= b) {
_root.gotoAndStop(2);
}
}
Frame 2
stop();
Frame 3
function initNewGame() {
hero.gotoAndStop(1);
winsInARow = 0;
finishedCars = 0;
raceInit();
card._visible = false;
objects = new Array();
wildPresend = false;
gamePoints = 0;
txtGamePoints = "0";
wnd_wonHand._visible = false;
wnd_discovery._visible = false;
wnd_loozeHand._visible = false;
wnd_wonGame._visible = false;
row = -1;
curDepth = 1;
_root.getFigovina = false;
initGameField();
}
function initGameField() {
var _local3 = _root;
txtLine0 = "0";
txtLine1 = "0";
txtLine2 = "0";
winsInARow++;
startTime = new Date();
state = stGame;
field = new Array();
var _local1 = 0;
while (_local1 < fieldDef.length) {
field[_local1] = new Array();
var _local2 = 0;
while (_local2 < fieldDef[_local1].length) {
field[_local1][_local2] = fieldDef[_local1][_local2];
_local2++;
}
_local1++;
}
clip_btn_undo.gotoAndStop(1);
_local3.lastMotion = -1;
_local3.lastX = 0;
_local3.lastY = 0;
_local3.lastName = "";
_local3.lastdepth = 0;
_local3.longCombo = 0;
_local3.maxLongCombo = 0;
clip_mult15.gotoAndStop(1);
clip_mult2.gotoAndStop(1);
clip_mult25.gotoAndStop(1);
clip_mult3.gotoAndStop(1);
snake.gotoAndStop(1);
multiplyer = 1;
endHand = false;
endl1 = false;
endl2 = false;
endl3 = false;
line0.gotoAndStop(1);
line1.gotoAndStop(1);
line2.gotoAndStop(1);
txtHandPoints = "0";
HandPoints = 0;
drowsLeft = 0;
btn_newHand._visible = false;
row++;
kolodaB = new Array();
var i = 0;
while (i < 52) {
kolodaB.push(i);
drowsLeft++;
i++;
}
mixArray(kolodaB);
_local1 = 0;
while (_local1 < field.length) {
var _local2 = 0;
while (_local2 < field[0].length) {
if (field[_local1][_local2]) {
var d = getDepth();
card.duplicateMovieClip((("card_" add _local1) add "_") add _local2, d);
rememberObj((("card_" add _local1) add "_") add _local2);
_local3[(("card_" add _local1) add "_") add _local2]._x = (10 + (_local2 * 50)) - (_local1 * 2);
_local3[(("card_" add _local1) add "_") add _local2]._y = 110 + (_local1 * 32);
_local3[(("card_" add _local1) add "_") add _local2].x = _local2;
_local3[(("card_" add _local1) add "_") add _local2].y = _local1;
_local3[(("card_" add _local1) add "_") add _local2].cardNum = kolodaB.pop();
drowsLeft--;
_local3[(("card_" add _local1) add "_") add _local2].rubashka._visible = true;
_local3[(("card_" add _local1) add "_") add _local2].button._visible = false;
_local3[(("card_" add _local1) add "_") add _local2].location = 0;
_local3[(("card_" add _local1) add "_") add _local2].depth = d;
if ((_local1 % 2) == 0) {
_local3[(("card_" add _local1) add "_") add _local2]._x = _local3[(("card_" add _local1) add "_") add _local2]._x + 25;
}
}
_local2++;
}
_local1++;
}
kolodaE = new Array();
kolodaE.push(kolodaB.pop());
drowsLeft--;
var d = getDepth();
card.duplicateMovieClip("card_" add d, d);
rememberObj("card_" add d, d);
_local3["card_" add d]._x = 420;
_local3["card_" add d]._y = 290;
_local3["card_" add d].x = 420;
_local3["card_" add d].y = 290;
_local3["card_" add d].cardNum = kolodaE[0];
_local3["card_" add d].rubashka._visible = false;
_local3["card_" add d].button._visible = true;
_local3["card_" add d].location = 2;
_local3["card_" add d].depth = d;
openNeedCards();
var i = 0;
while (i < kolodaB.length) {
d = getDepth();
card.duplicateMovieClip("card__" add i, getDepth());
rememberObj("card__" add i);
_local3["card__" add i]._x = 20 + (i * 14);
_local3["card__" add i]._y = 290;
_local3["card__" add i].x = 20 + (i * 14);
_local3["card__" add i].y = 290;
_local3["card__" add i].cardNum = kolodaB[i];
_local3["card__" add i].rubashka._visible = true;
_local3["card__" add i].button._visible = false;
_local3["card__" add i].location = 1;
_local3["card__" add i].depth = d;
i++;
}
}
function mixArray(arr) {
var _local1 = 0;
while (_local1 < 52) {
var _local2 = random(52);
var _local3 = kolodaB[_local1];
kolodaB[_local1] = kolodaB[_local2];
kolodaB[_local2] = _local3;
_local1++;
}
}
function getDepth() {
if (typeof(curDepth) == "undefined") {
curDepth = 1;
}
curDepth++;
if (curDepth >= 999) {
curDepth = 2;
}
return(curDepth);
}
function openNeedCards() {
var _local3 = _root;
var _local1 = 0;
while (_local1 < field.length) {
var _local2 = 0;
while (_local2 < field[0].length) {
if (field[_local1][_local2]) {
if (_local1 == 3) {
_local3[(("card_" add _local1) add "_") add _local2].rubashka._visible = false;
_local3[(("card_" add _local1) add "_") add _local2].button._visible = true;
} else if ((_local1 % 2) == 0) {
if ((field[_local1 + 1][_local2] == 0) && (field[_local1 + 1][_local2 + 1] == 0)) {
_local3[(("card_" add _local1) add "_") add _local2].rubashka._visible = false;
_local3[(("card_" add _local1) add "_") add _local2].button._visible = true;
}
} else if ((field[_local1 + 1][_local2 - 1] == 0) && (field[_local1 + 1][_local2] == 0)) {
_local3[(("card_" add _local1) add "_") add _local2].rubashka._visible = false;
_local3[(("card_" add _local1) add "_") add _local2].button._visible = true;
}
}
_local2++;
}
_local1++;
}
}
function closeNeedCards() {
var _local3 = _root;
var _local2 = 0;
while (_local2 < field.length) {
var _local1 = 0;
while (_local1 < field[0].length) {
if (field[_local2][_local1]) {
if ((_local2 % 2) == 0) {
if ((field[_local2 + 1][_local1] == 1) || (field[_local2 + 1][_local1 + 1] == 1)) {
_local3[(("card_" add _local2) add "_") add _local1].rubashka._visible = true;
_local3[(("card_" add _local2) add "_") add _local1].button._visible = false;
}
} else if ((field[_local2 + 1][_local1 - 1] == 1) || (field[_local2 + 1][_local1] == 1)) {
_local3[(("card_" add _local2) add "_") add _local1].rubashka._visible = true;
_local3[(("card_" add _local2) add "_") add _local1].button._visible = false;
}
}
_local1++;
}
_local2++;
}
}
function rememberObj(objName) {
objects.push(objName);
}
function deleteAllObj() {
var _local2 = _root;
while (objects.length > 0) {
var _local1 = objects.pop();
_local2[_local1].removeMovieClip();
}
curDepth = 1;
}
function goodMove() {
snake.gotoAndStop(snake._currentFrame + 1);
check4multiply();
}
function badMove() {
if (snake._currentFrame < snake._totalFrames) {
snake.gotoAndStop(snake._currentFrame - 1);
check4multiply();
}
}
function createWild() {
var _local1 = _root;
wildPresend = true;
var _local2 = 1;
card.duplicateMovieClip("wild", _local2);
_local1.wild._x = 510;
_local1.wild._y = 330;
_local1.wild.x = 510;
_local1.wild.y = 330;
_local1.wild.cardNum = 53;
_local1.wild.rubashka._visible = false;
_local1.wild.button._visible = true;
_local1.wild.location = 3;
_local1.wild.depth = _local2;
}
function check4multiply() {
var _local1 = _root;
if (_local1.clip_mult15.hitTest(_local1.snake) && (multiplyer < 1.5)) {
clip_mult15.gotoAndStop(1);
clip_mult2.gotoAndStop(1);
clip_mult25.gotoAndStop(1);
clip_mult3.gotoAndStop(1);
multiplyer = 1.5;
clip_mult15.gotoAndStop(2);
}
if (_local1.clip_mult2.hitTest(_local1.snake) && (multiplyer < 2)) {
clip_mult15.gotoAndStop(1);
clip_mult2.gotoAndStop(1);
clip_mult25.gotoAndStop(1);
clip_mult3.gotoAndStop(1);
multiplyer = 2;
clip_mult2.gotoAndStop(2);
}
if (_local1.clip_mult25.hitTest(_local1.snake) && (multiplyer < 2.5)) {
clip_mult15.gotoAndStop(1);
clip_mult2.gotoAndStop(1);
clip_mult25.gotoAndStop(1);
clip_mult3.gotoAndStop(1);
multiplyer = 2.5;
clip_mult25.gotoAndStop(2);
}
if (_local1.clip_mult3.hitTest(_local1.snake) && (multiplyer < 3)) {
clip_mult15.gotoAndStop(1);
clip_mult2.gotoAndStop(1);
clip_mult25.gotoAndStop(1);
clip_mult3.gotoAndStop(1);
multiplyer = 3;
clip_mult3.gotoAndStop(2);
}
}
function check4endOfLineAndHand() {
var _local3 = _root;
if ((field[0][1] == 0) && (!endl1)) {
_local3.playSound("money_anim");
endl1 = true;
txtLine0 = "+" add txtLine0;
text_line0._visible = true;
line0.Play();
}
if ((field[0][4] == 0) && (!endl2)) {
_local3.playSound("money_anim");
endl2 = true;
txtLine1 = "+" add txtLine1;
text_line1._visible = true;
line1.Play();
}
if ((field[0][7] == 0) && (!endl3)) {
_local3.playSound("money_anim");
endl3 = true;
txtLine2 = "+" add txtLine2;
text_line2._visible = true;
line2.Play();
}
var _local2 = true;
var _local1 = 0;
while (_local1 < field[0].length) {
if (field[0][_local1] == 1) {
_local2 = false;
}
_local1++;
}
if (_local2 && (!endHand)) {
endHand = true;
state = stNone;
}
if ((kolodaB.length == 0) && (!endHand)) {
btn_newHand._visible = true;
} else {
btn_newHand._visible = false;
}
}
function endMoneyAnim() {
var _local1 = _root;
if (endHand) {
_local1.line0.stop();
_local1.line1.stop();
_local1.line2.stop();
wnd_wonHand.init();
}
}
function deleteWild() {
_root.wild.removeMovieClip();
}
function endHeroWinAnim() {
var _local1 = _root;
_local1.getFigovina = !_local1.getFigovina;
if (_local1.getFigovina) {
wnd_discovery.init();
} else {
_local1.deleteAllObj();
_local1.initGameField();
}
}
function endHeroAllWinAnim() {
var _local2 = _root;
var _local1 = 1;
while (_local1 < 5) {
_local2.race["carTrack" add _local1].Stop();
_local2.race["carTrack" add _local1].goFrames = 0;
_local2.race["carTrack" add _local1].runGoodAnimEnd = false;
_local2.race["carTrack" add _local1].runBadAnimEnd = false;
_local1++;
}
_local2.deleteAllObj();
_local2.race.carTrack1["badAnim_" add _local2.dsds].removeMovieClip();
_local2.race.carTrack1.carRotate1.gotoAndStop(1);
wnd_wonGame.init();
}
function rotateAllField() {
var _local3 = _root;
var _local2 = 0;
while (_local2 < field.length) {
var _local1 = 0;
while (_local1 < field[_local2].length) {
if (field[_local2][_local1] != 0) {
_local3[(("card_" add _local2) add "_") add _local1].rubashka._visible = false;
_local3[(("card_" add _local2) add "_") add _local1].button._visible = true;
}
_local1++;
}
_local2++;
}
}
function raceInit() {
var _local2 = _root;
race.gotoAndStop(1);
var _local1 = 1;
while (_local1 < 5) {
_local2.race["carTrack" add _local1].gotoAndStop(2);
_local1++;
}
}
function raceGoodPlay() {
var _local2 = _root;
_local2.playSound("car_go");
_local2.goodPlay = true;
_local2.race.carTrack1.goFrames = _local2.car1speedRate[random(_local2.car1speedRate.length)];
_local2.race.carTrack2.goFrames = _local2.car2speedRate[random(_local2.car2speedRate.length)];
_local2.race.carTrack3.goFrames = _local2.car3speedRate[random(_local2.car3speedRate.length)];
_local2.race.carTrack4.goFrames = _local2.car4speedRate[random(_local2.car4speedRate.length)];
_local2.race.carTrack1.runGoodAnimEnd = false;
_local2.race.carTrack2.runGoodAnimEnd = false;
_local2.race.carTrack3.runGoodAnimEnd = false;
_local2.race.carTrack4.runGoodAnimEnd = false;
_local2.race.carTrack1.runBadAnimEnd = false;
var _local3 = 0;
var _local1 = 1;
while (_local1 < 5) {
if (_local3 < _local2.race["carTrack" add _local1].goFrames) {
_local3 = _local2.race["carTrack" add _local1].goFrames;
maxi = _local1;
}
_local1++;
}
maxi = 1;
_local2.race["carTrack" add maxi].runGoodAnimEnd = true;
_local2.race.carTrack1.carRotate1.Stop();
}
function raceBadPlay() {
var _local1 = _root;
_local1.playSound("car_go");
_local1.goodPlay = false;
_local1.race.carTrack1.goFrames = 4;
_local1.race.carTrack2.goFrames = _local1.car2speedRate[random(_local1.car2speedRate.length)];
_local1.race.carTrack3.goFrames = _local1.car3speedRate[random(_local1.car3speedRate.length)];
_local1.race.carTrack4.goFrames = _local1.car4speedRate[random(_local1.car4speedRate.length)];
_local1.race.carTrack1.runGoodAnimEnd = false;
_local1.race.carTrack2.runGoodAnimEnd = false;
_local1.race.carTrack3.runGoodAnimEnd = false;
_local1.race.carTrack4.runGoodAnimEnd = false;
_local1.race.carTrack1.runBadAnimEnd = true;
_local1.race.carTrack1.carRotate1.Stop();
}
function endBadCarAnimation() {
var _local1 = _root;
_local1.race.carTrack1.gotoAndStop(_local1.race.carTrack1._currentFrame - 3);
_local1.deleteAllObj();
_local1.initGameField();
}
function endBadCarAnimation1() {
var _local1 = _root;
_local1.race.carTrack1.gotoAndStop(_local1.race.carTrack1._currentFrame - 3);
_local1.race.carTrack1.carRotate1.gotoAndStop(1);
_local1.deleteAllObj();
_local1.initGameField();
}
function endBadCarAnimation2() {
var _local1 = _root;
_local1.race.carTrack1.gotoAndStop(_local1.race.carTrack1._currentFrame - 3);
_local1.race.carTrack1.carRotate1.gotoAndStop(1);
_local1.deleteAllObj();
_local1.initGameField();
}
function badAnimStart() {
var _local1 = _root;
if (!_local1.goodPlay) {
r = random(3);
if (r == 0) {
_local1.playSound("car_break0");
d = getDepth();
_local1.dsds = d;
_local1.race.carTrack1.stop();
_local1.race.carTrack1.badAnim.duplicateMovieClip("badAnim_" add d, d);
var _local2 = new Object();
_local2.x = _local1.race.carTrack1.carRotate1._x;
_local2.y = _local1.race.carTrack1.carRotate1._y;
_local1.race.carTrack1["badAnim_" add d]._x = _local2.x;
_local1.race.carTrack1["badAnim_" add d]._y = _local2.y;
} else if (r == 1) {
_local1.playSound("car_break1");
_local1.race.carTrack1.stop();
_local1.race.carTrack1.carRotate1.play();
} else if (r == 2) {
_local1.playSound("car_break2");
_local1.race.carTrack1.stop();
_local1.race.carTrack1.carRotate1.gotoAndPlay(16);
}
}
}
function oneCarFinished() {
finishedCars++;
}
function playSound(snd) {
so = new Sound();
so.attachSound(snd);
so.start(0, 1);
}
function processGameTimer() {
var _local2 = new Date();
var _local1 = _local2.getTime() - _root.startTime.getTime();
passSec = Math.round(_local1 / 1000);
if (passSec < 10) {
gameTime = "00" add passSec;
} else if (passSec < 100) {
gameTime = "0" add passSec;
} else {
gameTime = passSec;
}
txtTimeBonusLeft = bonusTimeStart - passSec;
if (txtTimeBonusLeft < 0) {
txtTimeBonusLeft = "0";
}
}
fieldDef = [[0, 1, 0, 0, 1, 0, 0, 1, 0, 0], [0, 1, 1, 0, 1, 1, 0, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
discoveryArr = [-1, -2, -3, -4, -5, 10, 15];
discNitroBust = "You fined extra speed fuel.";
discNewTires = "You find\nNew Tires.\n+50 score bonus";
discSplashSpotCarSponsership = "You find\na Lost Jungle\nsponsership.\n+75 score bonus";
discCoolNewPaintJob = "You find\nNew Tires.\n+35 score bonus";
discAmazonCard = "You find a\nT-Solitaire\nWild Card.";
discMoney1 = "You find\n";
discMoney2 = " score bonus";
discNewTirespointBonus = 50;
discSplashSpotCarSponsershippointBonus = 75;
discCoolNewPaintJobpointBonus = 35;
bonusForPlaceWin = [1500, 1000, 500, 0];
jp_Values = [10, 20, 30, 50, 100, 300];
jp_spin_time = 5;
bonusTimeStart = 100;
streakPoints = [1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4];
streakPointsBonus = [0, 0, 0, 0, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110, 115, 120, 125];
points4winsInARow = [100, 200, 300, 400, 500, 600];
car1speedRate = [20];
car2speedRate = [12, 12, 12, 12, 11, 6, 12, 12, 10, 12, 12, 10, 15, 15, 15, 20, 24];
car3speedRate = [13, 6, 11, 16, 12, 8, 12, 16, 14, 20, 5, 6, 7, 5, 7, 6, 8, 5, 7, 9, 12, 7, 5, 7, 6];
car4speedRate = [12, 12, 13, 12, 6, 12, 15, 15, 20, 24];
cheat_button_visible = false;
stNone = 0;
stGame = 1;
state = stNone;
clip_wnd_wonHand.duplicateMovieClip("wnd_wonHand", 10000);
clip_wnd_discovery.duplicateMovieClip("wnd_discovery", 10001);
clip_wnd_loozeHand.duplicateMovieClip("wnd_loozeHand", 10002);
clip_wnd_wonGame.duplicateMovieClip("wnd_wonGame", 10003);
_root.race.carTrack1.badAnim._visible = false;
_root.race.carTrack1.badAnim.stop();
heroASDF._visible = false;
initNewGame();
Frame 4
if (state == stGame) {
processGameTimer();
}
Frame 5
if (state == stGame) {
processGameTimer();
}
Frame 6
if (state == stGame) {
processGameTimer();
}
Frame 7
if (state == stGame) {
processGameTimer();
}
gotoAndPlay (6);
Symbol 21 Button
on (release) {
getURL ("http://www.lostjungle.com");
}
Symbol 22 Button
on (release) {
getURL ("http://www.lostjungle.com/add.php?game=tsolitaire");
}
Symbol 40 Button
on (press) {
_root.play();
}
Symbol 75 Button
on (press) {
if (_root.state == _root.stGame) {
_root.playSound("standart");
if (location == 0) {
var c1 = cardNum;
var c2 = _root.KolodaE[_root.KolodaE.length - 1];
if (c1 != 53) {
while (c1 > 12) {
c1 = c1 - 13;
}
}
if (c2 != 53) {
while (c2 > 12) {
c2 = c2 - 13;
}
}
if (((((((c1 - c2) == -1) || ((c1 - c2) == 1)) || ((c1 - c2) == 12)) || ((c1 - c2) == -12)) || (c1 == 53)) || (c2 == 53)) {
_root.longCombo++;
if (Number(_root.longCombo) > Number(_root.maxLongCombo)) {
_root.maxLongCombo = _root.LongCombo;
}
_root.HandPoints = _root.HandPoints + (_root.streakPoints[Number(_root.longCombo) - 1] + _root.streakPointsBonus[Number(_root.longCombo) - 1]);
_root.txtHandPoints = _root.HandPoints;
if (x < 3) {
_root.txtLine0 = Number(_root.txtLine0) + _root.longCombo;
}
if ((x < 6) && (x > 2)) {
_root.txtLine1 = Number(_root.txtLine1) + _root.longCombo;
}
if (x > 5) {
_root.txtLine2 = Number(_root.txtLine2) + _root.longCombo;
}
if ((x == 3) && (y == 3)) {
_root.txtLine0 = Number(_root.txtLine0) + _root.longCombo;
}
if ((x == 6) && (y == 3)) {
_root.txtLine1 = Number(_root.txtLine1) + _root.longCombo;
}
_root.lastMotion = 0;
_root.lastX = _x;
_root.lastY = _y;
_root.llastName = _root.lastName;
_root.lastName = this._name;
_root.lastDepth = this.depth;
_x = 420;
_y = 290;
this.swapDepths(1001);
_root.field[y][x] = 0;
_root.openNeedCards();
_root.kolodaE.push(cardNum);
button._visible = false;
_root.goodMove();
}
} else if (location == 2) {
if (_root.KolodaB.length > 0) {
_root.longCombo = 0;
_root.lastMotion = 2;
_root.lastX = _root["card__" add (_root.kolodaB.length - 1)]._x;
_root.lastY = _root["card__" add (_root.kolodaB.length - 1)]._y;
_root.llastName = _root.lastName;
_root.lastName = "card__" add (_root.kolodaB.length - 1);
_root.lastNameE = "card__" add (_root.kolodaE.length - 1);
_root.lastDepth = _root["card__" add (_root.kolodaB.length - 1)].depth;
_root["card__" add (_root.kolodaB.length - 1)].rubashka._visible = false;
_root["card__" add (_root.kolodaB.length - 1)]._x = 420;
_root["card__" add (_root.kolodaB.length - 1)]._y = 290;
_root["card__" add (_root.kolodaB.length - 1)].location = 2;
_root["card__" add (_root.kolodaB.length - 1)].swapDepths(1001);
_root.kolodaE.push(_root.KolodaB.pop());
_root.drowsLeft--;
var i = 0;
while (i < _root.kolodaB.length) {
_root["card__" add i]._x = _root["card__" add i]._x + 10;
_root["card__" add i].x = _root["card__" add i].x + 10;
i++;
}
_root.badMove();
}
} else if (location == 3) {
_root.longCombo++;
if (Number(_root.longCombo) > Number(_root.maxLongCombo)) {
_root.maxLongCombo = _root.LongCombo;
}
_root.lastMotion = 3;
_root.lastX = _x;
_root.lastY = _y;
_root.llastName = _root.lastName;
_root.lastName = this._name;
_root.lastDepth = this.depth;
_x = 420;
_y = 290;
this.swapDepths(1001);
_root.kolodaE.push(cardNum);
button._visible = false;
_root.goodMove();
}
_root.check4endOfLineAndHand();
}
}
Symbol 124 MovieClip Frame 1
gotoAndStop(cardNum + 2);
Symbol 129 Button
on (release) {
if (_root.state == _root.stGame) {
_root.playSound("undo_btn");
if (_root.lastMotion != -1) {
gotoAndStop (2);
_root.longCombo = 0;
if (_root.snake._currentFrame < _root.snake._totalFrames) {
_root.snake.gotoAndStop(1);
_root.check4multiply();
}
if (_root.lastMotion == 0) {
_root[_root.lastName]._x = _root.lastX;
_root[_root.lastName]._y = _root.lastY;
_root.field[_root.lastY][_root.lastX] = 1;
_root.kolodaE.pop();
_root[_root.lastName].button._visible = true;
_root[_root.lastName].swapDepths(_root.lastDepth);
_root.field[_root[_root.lastName].y][_root[_root.lastName].x] = 1;
_root.closeNeedCards();
} else if (_root.lastMotion == 2) {
var i = 0;
while (i < _root.kolodaB.length) {
_root["card__" add i]._x = _root["card__" add i]._x - 10;
_root["card__" add i].x = _root["card__" add i].x - 10;
i++;
}
_root.kolodaB.push(_root.KolodaE.pop());
_root.drowsLeft++;
_root[_root.lastName]._x = _root.lastX;
_root[_root.lastName]._y = _root.lastY;
_root[_root.lastName].location = 1;
_root[_root.lastName].rubashka._visible = true;
_root[_root.lastName].button._visible = false;
_root[_root.lastName].swapDepths(_root.lastDepth);
_root[_root.llastName].swapDepths(1000);
} else if (_root.lastMotion == 3) {
_root[_root.lastName]._x = _root.lastX;
_root[_root.lastName]._y = _root.lastY;
_root.kolodaE.pop();
_root[_root.lastName].button._visible = true;
_root[_root.lastName].swapDepths(_root.lastDepth);
}
}
_root.check4endOfLineAndHand();
}
}
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 2
stop();
Symbol 139 Button
on (press) {
if (_root.state == _root.stGame) {
_root.playSound("looze_hand");
_root.deleteAllObj();
_root.race.carTrack1["badAnim_" add _root.dsds].romoveMovieClip();
_root.race.carTrack1.carRotate1.gotoAndStop(1);
_root.wnd_loozeHand.init();
_root.btn_newHand._visible = false;
_root.state = _root.stNone;
}
}
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 2
stop();
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 2
stop();
Symbol 147 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 2
stop();
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 2
stop();
Symbol 153 MovieClip Frame 1
stop();
Symbol 158 Button
on (press) {
rotateAllField();
}
Symbol 162 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 24
stop();
_root.endMoneyAnim();
Symbol 168 Button
on (release) {
_root.deleteAllObj();
_root.wild.removeMovieClip();
_root.race.carTrack1["badAnim_" add _root.dsds].removeMovieClip();
gotoAndStop (1);
}
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 15
_root.endBadCarAnimation1();
stop();
Symbol 174 MovieClip Frame 35
_root.endBadCarAnimation2();
stop();
Symbol 183 MovieClip Frame 72
_root.endBadCarAnimation();
this.removeMovieClip();
Symbol 184 MovieClip Frame 2
stop();
Symbol 184 MovieClip Frame 121
stop();
Symbol 187 MovieClip Frame 2
stop();
Symbol 187 MovieClip Frame 121
_root.oneCarFinished();
stop();
Symbol 190 MovieClip Frame 2
stop();
Symbol 190 MovieClip Frame 121
_root.oneCarFinished();
stop();
Symbol 193 MovieClip Frame 2
stop();
Symbol 193 MovieClip Frame 121
_root.oneCarFinished();
stop();
Instance of Symbol 184 MovieClip "carTrack1" in Symbol 194 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_currentframe == 121) or (((_root.race.carTrack2._currentFrame == 121) && (_root.race.carTrack3._currentFrame == 121)) && (_root.race.carTrack4._currentFrame == 121))) {
_root.endHeroAllWinAnim();
gotoAndStop (2);
_root.race.carTrack2.gotoAndStop(2);
_root.race.carTrack2.gotoAndStop(3);
_root.race.carTrack2.gotoAndStop(4);
}
if (typeof(goFrames) == "undefined") {
goFrames = 0;
runGoodAnimEnd = false;
gotoAndStop (2);
} else if (goFrames > 0) {
goFrames--;
play();
if ((goFrames == 0) && (runGoodAnimEnd)) {
_root.endHeroWinAnim();
}
if ((goFrames == 0) && (runBadAnimEnd)) {
_root.badAnimStart();
}
} else if (goFrames == 0) {
stop();
}
}
Instance of Symbol 187 MovieClip "carTrack2" in Symbol 194 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe != 121) {
if (typeof(goFrames) == "undefined") {
goFrames = 0;
runGoodAnimEnd = false;
gotoAndStop (2);
} else if (goFrames > 0) {
goFrames--;
play();
if ((goFrames == 0) && (runGoodAnimEnd)) {
_root.endHeroWinAnim();
}
} else if (goFrames == 0) {
stop();
}
} else {
if (runGoodAnimEnd) {
_root.endHeroWinAnim();
runGoodAnimEnd = false;
goFrames = 0;
_root.wnd_discovery._visible = false;
}
stop();
}
}
Instance of Symbol 190 MovieClip "carTrack3" in Symbol 194 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe != 121) {
if (typeof(goFrames) == "undefined") {
goFrames = 0;
runGoodAnimEnd = false;
gotoAndStop (2);
} else if (goFrames > 0) {
goFrames--;
play();
if ((goFrames == 0) && (runGoodAnimEnd)) {
_root.endHeroWinAnim();
}
} else if (goFrames == 0) {
stop();
}
} else {
if (runGoodAnimEnd) {
_root.endHeroWinAnim();
runGoodAnimEnd = false;
goFrames = 0;
_root.wnd_discovery._visible = false;
}
stop();
}
}
Instance of Symbol 193 MovieClip "carTrack4" in Symbol 194 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe != 121) {
if (typeof(goFrames) == "undefined") {
goFrames = 0;
runGoodAnimEnd = false;
gotoAndStop (2);
} else if (goFrames > 0) {
goFrames--;
play();
if ((goFrames == 0) && (runGoodAnimEnd)) {
_root.endHeroWinAnim();
}
} else if (goFrames == 0) {
stop();
}
} else {
if (runGoodAnimEnd) {
_root.endHeroWinAnim();
runGoodAnimEnd = false;
goFrames = 0;
_root.wnd_discovery._visible = false;
}
stop();
}
}
Symbol 203 Button
on (press) {
_root.playSound("standart");
ok();
}
Symbol 204 MovieClip Frame 1
function init() {
var _local1 = _root;
_visible = true;
disc = _local1.discoveryArr[random(_local1.discoveryArr.length)];
discWin = 0;
if (disc == -1) {
txt = _local1.discNitroBust;
discWin = 0;
} else if (disc == -2) {
txt = _local1.discNewTires;
discWin = _local1.discNewTirespointBonus;
} else if (disc == -3) {
txt = _local1.discSplashSpotCarSponsership;
discWin = _local1.discSplashSpotCarSponsershippointBonus;
} else if (disc == -4) {
txt = _local1.discCoolNewPaintJob;
discWin = _local1.discCoolNewPaintJobpointBonus;
} else if (disc == -5) {
txt = _local1.discAmazonCard;
discWin = 0;
} else {
txt = (_local1.discMoney1 add disc) add _local1.discMoney2;
discWin = disc;
}
}
function ok() {
var _local1 = _root;
_visible = false;
_local1.deleteAllObj();
_local1.initGameField();
if (disc == -1) {
_local1.race.carTrack1.goFrames = _local1.car1speedRate[random(_local1.car1speedRate.length)];
_local1.race.carTrack1.runGoodAnimEnd = false;
_local1.race.carTrack1.runBadAnimEnd = false;
} else if (disc == -2) {
} else if (disc == -3) {
} else if (disc == -4) {
} else if (disc == -5) {
_local1.createWild();
}
_local1.playSound("bonus" add Math.abs(disc));
}
_visible = false;
stop();
Symbol 215 MovieClip Frame 1
stop();
Symbol 215 MovieClip Frame 2
stop();
Symbol 215 MovieClip Frame 3
stop();
Symbol 215 MovieClip Frame 4
stop();
Symbol 220 Button
on (press) {
_root.playSound("standart");
ok();
}
Symbol 233 MovieClip Frame 1
function init() {
var _local1 = _root;
_local1.deleteAllObj();
_local1.race.carTrack1["badAnim_" add _local1.dsds].removeMovieClip();
_local1.race.carTrack1.carRotate1.gotoAndStop(1);
_local1.playSound("win_game");
_visible = true;
txtGamePoints = _local1.txtGamePoints;
txtPlace = _local1.finishedCars + 1;
_local1.GamePoints = Number(txtTotalGamePoints);
var _local2 = Number(txtPlace) + 1;
if (Number(txtPlace) < 4) {
_local1.wnd_wonGame.trophey_pic.gotoAndStop(_local2);
} else {
_local1.wnd_wonGame.trophey_pic.gotoAndStop(1);
}
}
function ok() {
_visible = false;
_root.deleteAllObj();
_root.initNewGame();
}
_visible = false;
stop();
Symbol 235 Button
on (press) {
_root.playSound("standart");
ok();
}
Symbol 238 MovieClip Frame 1
function init() {
_visible = true;
longestStreak = _root.maxLongCombo;
_root.winsInARow = 0;
}
function ok() {
var _local1 = _root;
_visible = false;
_local1.HandPoints = 0;
_local1.txtHandPoints = _local1.HandPoints;
_local1.raceBadPlay();
_local1.btn_newHand._visible = false;
}
_visible = false;
stop();
Symbol 240 Button
on (press) {
_root.playSound("standart");
ok();
}
Symbol 258 MovieClip Frame 1
function init() {
var _local1 = _root;
_local1.playSound("win_hand");
_local1.deleteAllObj();
_local1.race.carTrack1["badAnim_" add _local1.dsds].romoveMovieClip();
_local1.race.carTrack1.carRotate1.gotoAndStop(1);
_visible = true;
txtHandPoints = _local1.handPoints;
drowsLeft = _local1.drowsLeft;
winsInARow = _local1.points4winsInARow[_local1.winsInARow - 1];
txtTimeBonus = _local1.txtTimeBonusLeft;
bonusMultiplier = _local1.multiplyer;
txtTotalHandPoints = Math.ceil((((Number(_local1.handPoints) + Number(_local1.drowsLeft)) + Number(winsInARow)) + Number(txtTimeBonus)) * Number(_local1.multiplyer));
longestStreak = _local1.maxLongCombo;
_local1.GamePoints = _local1.GamePoints + Number(txtTotalHandPoints);
_local1.txtGamePoints = _local1.GamePoints;
txtTotalGamePoints = _local1.txtGamePoints;
}
function ok() {
_visible = false;
_root.raceGoodPlay();
}
_visible = false;
stop();