STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228096
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5121

swfchan turned sixteen years old today! (5may2024)

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/89739724?noj=FRM89739724-6DC" width="1" height="1"></div>

Parking Mania.swf

This is the info page for
Flash #115978

(Click the ID number above for more basic data on this flash file.)


Text
10

Presents

0 %

Instructions

PLAY

PLAY MORE GAMES

M

O

C

.

Add Games To Your Site

Top Scores

Instructions

BACK

Your aim is to park the cars in the parking space marked with the same color as that of the cars color.
Click on the car with your mouse cursor to select the car.
Make use of the arrow keys to move the car.
Your time is 100 seconds for each level and there are 10 levels to complete.
Complete the level as soon as possible so that you can get more points that will help you to
increase your score.
Happy Parking!!

100

0

Reset Level

NEXT LEVEL

TIME UP

Try Again

Try Again

Try Again

Play Again

YOU WIN

Your Score

Your Name

<p align="center"><font face="Tahoma" size="22" color="#ffff00" letterSpacing="0.000000" kerning="1">0</font></p>

<p align="center"></p>

<p align="center"></p>

Submit

HIGH SCORE

HIGH SCORE

<p align="center"><font face="Tahoma" size="20" color="#cc3300" letterSpacing="0.000000" kerning="1">Name</font></p>

<p align="center"><font face="Tahoma" size="20" color="#cc3300" letterSpacing="0.000000" kerning="1">Score</font></p>

<p align="center"><font face="Tahoma" size="20" color="#cc3300" letterSpacing="0.000000" kerning="1">Date Posted</font></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

ActionScript [AS1/AS2]

Frame 1
fscommand ("allowScale", "false"); Stage.showMenu = false; onLoad = function () { this.progressbar.bar_mc._width = 1; var _local2 = false; }; onEnterFrame = function () { myLoaded = Math.round(_root.getBytesLoaded()); myTotal = Math.round(_root.getBytesTotal()); myPercent = (myLoaded / myTotal) * 100; this.progressbar.bar_mc._width = myPercent * 2; percenttext.percentText.text = Math.round(myPercent) + "%"; if ((myLoaded == myTotal) && (_root.animationCompleted == true)) { gotoAndPlay (2); _root.animationCompleted = false; } }; animation.onPress = function () { getURL ("http://www.flasharcade.com/", _blank); }; stop();
Frame 2
fscommand ("allowscale", "false"); fscommand ("showmenu", "false"); _root.gameBGSound.stop(); _root.gameBGSound = null; _root.gameBGSound = new Sound(); _root.gameBGSound.attachSound("bgSound"); _root.gameBGSound.start(0, 1000); _root.gameBGSound.setVolume(50);
Frame 20
stop();
Frame 21
fscommand ("allowscale", "false"); fscommand ("showmenu", "false"); _root.gameBGSound.stop(); _root.gameBGSound = null; delete _root.gameBGSound;
Frame 23
stop();
Frame 24
fscommand ("allowscale", "false"); _root.score = 0; stop();
Instance of Symbol 211 MovieClip in Frame 24
onClipEvent (enterFrame) { text = ((int(_parent.getBytesLoaded() / 1000) + " KBYTES OF ") + int(_parent.getBytesTotal() / 1000)) + " LOADED ..."; if (_parent.getBytesTotal() == _parent.getBytesLoaded()) { _parent.gotoAndStop(2); } }
Frame 26
function depreciateAmount() { _root.totalAmount = _root.totalAmount - 1; timeNum = 100 - _root.totalAmount; if (_root.totalAmount <= 0) { _root.gameEnd(); } } function buildMap(map) { counter = 0; _root.attachMovie("empty", "tiles", 2); _root.tiles.attachMovie("empty", "back", 0); game.clip = _root.tiles; game.clip._x = 280; game.clip._y = 0; var _local7 = map[0].length; var _local8 = map.length; var _local4 = 0; while (_local4 < _local8) { var _local3 = 0; while (_local3 < _local7) { var _local2 = (("t_" + _local4) + "_") + _local3; game[_local2] = new game["Tile" + map[_local4][_local3]](); if (game[_local2].walkable) { var _local5 = game.clip.back; } else { var _local5 = game.clip; } game[_local2].depth = (((((_local3 + _local4) * game.tileW) / 2) * 300) + ((_local3 - _local4) * game.tileW)) + 1; _local5.attachMovie("tile", _local2, game[_local2].depth); _local5[_local2]._x = (_local3 - _local4) * game.tileW; _local5[_local2]._y = ((_local3 + _local4) * game.tileW) / 2; _local5[_local2].gotoAndStop(game[_local2].frame); counter++; _local3++; } _local4++; } createCars(_root.totalCar + 1); } function createCars(num) { i = 1; while (i < num) { var _local3 = this["car" + i]; _local3.x = _local3.xtile * game.tileW; _local3.y = _local3.ytile * game.tileW; _local3.xiso = _local3.x - _local3.y; _local3.yiso = (_local3.x + _local3.y) / 2; _local3.depthshift = (game.tileW - _local3.height) / 2; _local3.depth = (((_local3.yiso - _local3.depthshift) * 300) + _local3.xiso) + 1; _local3.correctstatus = false; carName = "car" + i; dupName = _local3.clipName; carRef = game.clip.attachMovie(dupName, carName, _local3.depth); _local3.clip = carRef; _local3.clip.objectRef = _local3; _local3.clip._x = _local3.xiso; _local3.clip._y = _local3.yiso; _local3.clip.gotoAndStop(_local3.frame); _root.tileMap[_local3.ytile][_local3.xtile] = 20; var _local4 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local4].walkable = false; i++; } } function getMyCorners(x, y, ob) { ob.downY = Math.floor(((y + ob.height) - 1) / game.tileW); ob.upY = Math.floor(y / game.tileW); ob.leftX = Math.floor(x / game.tileW); ob.rightX = Math.floor(((x + ob.width) - 1) / game.tileW); ob.upleft = game[(("t_" + ob.upY) + "_") + ob.leftX].walkable; ob.downleft = game[(("t_" + ob.downY) + "_") + ob.leftX].walkable; ob.upright = game[(("t_" + ob.upY) + "_") + ob.rightX].walkable; ob.downright = game[(("t_" + ob.downY) + "_") + ob.rightX].walkable; } function moveChar(ob, dirx, diry) { getMyCorners(ob.x, ob.y + (ob.speed * diry), ob); if (diry == -1) { if (ob.upleft and ob.upright) { ob.y = ob.y + (ob.speed * diry); ob.clip.gotoAndStop("up"); } else { ob.y = ob.ytile * game.tileW; _root.movement = null; } } if (diry == 1) { if (ob.downleft and ob.downright) { ob.y = ob.y + (ob.speed * diry); ob.clip.gotoAndStop("down"); } else { ob.y = ((ob.ytile + 1) * game.tileW) - ob.height; _root.movement = null; } } getMyCorners(ob.x + (ob.speed * dirx), ob.y, ob); if (dirx == -1) { if (ob.downleft and ob.upleft) { ob.x = ob.x + (ob.speed * dirx); ob.clip.gotoAndStop("left"); } else { ob.x = ob.xtile * game.tileW; _root.movement = null; } } if (dirx == 1) { if (ob.upright and ob.downright) { ob.x = ob.x + (ob.speed * dirx); ob.clip.gotoAndStop("right"); } else { ob.x = ((ob.xtile + 1) * game.tileW) - ob.width; _root.movement = null; } } ob.xiso = ob.x - ob.y; ob.yiso = (ob.x + ob.y) / 2; ob.clip._x = ob.xiso; ob.clip._y = ob.yiso; ob.xtile = Math.floor(ob.x / game.tileW); ob.ytile = Math.floor(ob.y / game.tileW); _root.tileMap[ob.ytile][ob.xtile] = 20; var _local5 = (("t_" + ob.ytile) + "_") + ob.xtile; var _local6 = game[_local5].frame; game[_local5].walkable = false; ob.depth = (((ob.yiso - ob.depthshift) * 300) + ob.xiso) + 1; ob.clip.swapDepths(ob.depth); if (_local6 == ob.correctcode) { ob.correctstatus = true; checkLevelEnd(); } else { ob.correctstatus = false; } return(true); } function detectKeys() { var _local3 = _root.objectRef; if (_root.movement == "right") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 0, -1); } else if (_root.movement == "left") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 0, 1); } else if (_root.movement == "up") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, -1, 0); } else if (_root.movement == "down") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 1, 0); } if (!keyPressed) { _local3.clip.char.gotoAndStop(1); } else { _local3.clip.char.play(); } i = 1; while (i < (totalCar + 1)) { var _local4 = this["car" + i]; _local4.clip.fade._visible = true; i++; } _root.objectRef.clip.fade._visible = false; } function checkLevelEnd() { if (_root.movement == null) { i = 1; while (i < (totalCar + 1)) { var _local3 = this["car" + i].correctstatus; if (_local3 != true) { return(false); } i++; } if (!_root.levelEnd) { endLevel(); } } } function endLevel() { _root.score = _root.score + Number(_root.totalAmount * 10); clearInterval(_root.timerInterval); _root.tilesSwap.swapDepths(_root.tiles); _root.mc_levelup.gotoAndPlay(2); _root.levelEnd = true; return(undefined); } function gameEnd() { clearInterval(_root.timerInterval); _root.tilesSwap.swapDepths(_root.tiles); _root.mc_timeup.gotoAndPlay(2); _root.gameEndStatus = true; return(undefined); } function reset1() { clearInterval(timerInterval); _root.levelEnd = false; _root.gameEndStatus = false; _root.tiles.removeMovieClip(); _root.movement = null; _root.objectRef = null; _root.totalAmount = 100; _root.startGameStatus = true; gotoAndPlay ("level1"); } fscommand ("allowscale", false); _root.score = 0; _root.levelEnd = false; _root.gameEndStatus = false; _root.tiles.removeMovieClip(); _root.movement = null; _root.objectRef = null; _root.totalAmount = 100; _root.startGameStatus = true; _root.gameLevel = 1; _root.mc_amount._x = 0; _root.mc_amount._y = 0; if (_root.startGameStatus) { _root.timer_clip.gotoAndStop(1); _root.timerInterval = setInterval(depreciateAmount, 1000); _root.startGameStatus = false; } myMap1 = [[1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1], [1, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 1], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 12, 11, 0, 1], [3, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 1], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 1], [1, 0, 14, 0, 14, 0, 4, 0, 14, 0, 14, 0, 14, 2], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 1], [1, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 1], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 1], [1, 0, 14, 0, 14, 0, 14, 0, 14, 0, 11, 12, 14, 1], [1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1]]; game = {tileW:30}; game.Tile0 = function () { }; game.Tile0.prototype.walkable = true; game.Tile0.prototype.frame = 1; game.Tile14 = function () { }; game.Tile14.prototype.walkable = true; game.Tile14.prototype.frame = 14; game.Tile1 = function () { }; game.Tile1.prototype.walkable = false; game.Tile1.prototype.frame = 2; game.Tile2 = function () { }; game.Tile2.prototype.walkable = false; game.Tile2.prototype.frame = 3; game.Tile3 = function () { }; game.Tile3.prototype.walkable = false; game.Tile3.prototype.frame = 4; game.Tile4 = function () { }; game.Tile4.prototype.walkable = false; game.Tile4.prototype.frame = 5; game.Tile11 = function () { }; game.Tile11.prototype.walkable = true; game.Tile11.prototype.frame = 11; game.Tile12 = function () { }; game.Tile12.prototype.walkable = true; game.Tile12.prototype.frame = 12; car1 = {xtile:2, ytile:1, speed:10, width:30, height:30, correctcode:11, clipName:"car1"}; car2 = {xtile:8, ytile:1, speed:10, width:30, height:30, correctcode:11, clipName:"car1"}; car3 = {xtile:3, ytile:3, speed:10, width:30, height:30, correctcode:12, clipName:"car2"}; car4 = {xtile:2, ytile:3, speed:10, width:30, height:30, correctcode:12, clipName:"car2"}; totalCar = 4; buildMap(_root.myMap1); _root.tiles._xscale = 120; _root.tiles._yscale = 120; _root.mc_mask.swapDepths(_root.tiles); _root.gameBGSound.stop(); _root.gameBGSound = null; _root.gameBGSound = new Sound(); _root.gameBGSound.attachSound("bgSound"); _root.gameBGSound.start(0, 1000); _root.gameBGSound.setVolume(50); stop();
Instance of Symbol 44 MovieClip [empty] "controller" in Frame 26
onClipEvent (enterFrame) { _root.detectKeys(); } onClipEvent (keyDown) { if ((_root.movement == null) && (!_root.gameEndStatus)) { if (Key.isDown(39)) { _root.movement = "right"; } else if (Key.isDown(37)) { _root.movement = "left"; } else if (Key.isDown(38)) { _root.movement = "up"; } else if (Key.isDown(40)) { _root.movement = "down"; } else if (Key.getCode() == "90") { _root.objectRef = _root.car1; } else if (Key.getCode() == "88") { _root.objectRef = _root.car2; } else if (Key.getCode() == "67") { _root.objectRef = _root.car3; } else if (Key.getCode() == "86") { _root.objectRef = _root.car4; } } }
Instance of Symbol 229 MovieClip "tilesSwap" in Frame 26
/* no clip actions */
Instance of Symbol 245 MovieClip "mc_levelup" in Frame 26
onClipEvent (load) { nextLevel = 2; }
Instance of Symbol 250 MovieClip "mc_timeup" in Frame 26
onClipEvent (load) { function callFunc() { _root.reset1(); } }
Frame 28
function depreciateAmount() { _root.totalAmount = _root.totalAmount - 1; timeNum = 100 - _root.totalAmount; if (_root.totalAmount <= 0) { _root.gameEnd(); } } function buildMap(map) { _root.attachMovie("empty", "tiles", 2); _root.tiles.attachMovie("empty", "back", 0); game.clip = _root.tiles; game.clip._x = 280; game.clip._y = 0; var _local7 = map[0].length; var _local8 = map.length; var _local4 = 0; while (_local4 < _local8) { var _local3 = 0; while (_local3 < _local7) { var _local2 = (("t_" + _local4) + "_") + _local3; game[_local2] = new game["Tile" + map[_local4][_local3]](); if (game[_local2].walkable) { var _local5 = game.clip.back; } else { var _local5 = game.clip; } game[_local2].depth = (((((_local3 + _local4) * game.tileW) / 2) * 300) + ((_local3 - _local4) * game.tileW)) + 1; _local5.attachMovie("tile", _local2, game[_local2].depth); _local5[_local2]._x = (_local3 - _local4) * game.tileW; _local5[_local2]._y = ((_local3 + _local4) * game.tileW) / 2; _local5[_local2].gotoAndStop(game[_local2].frame); _local3++; } _local4++; } createCars(_root.totalCar + 1); } function createCars(num) { i = 1; while (i < num) { var _local3 = this["car" + i]; _local3.x = _local3.xtile * game.tileW; _local3.y = _local3.ytile * game.tileW; _local3.xiso = _local3.x - _local3.y; _local3.yiso = (_local3.x + _local3.y) / 2; _local3.depthshift = (game.tileW - _local3.height) / 2; _local3.depth = (((_local3.yiso - _local3.depthshift) * 300) + _local3.xiso) + 1; _local3.correctstatus = false; carName = "car" + i; dupName = _local3.clipName; carRef = game.clip.attachMovie(dupName, carName, _local3.depth); _local3.clip = carRef; _local3.clip.objectRef = _local3; _local3.clip._x = _local3.xiso; _local3.clip._y = _local3.yiso; _root.tileMap[_local3.ytile][_local3.xtile] = 20; var _local4 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local4].walkable = false; i++; } } function getMyCorners(x, y, ob) { ob.downY = Math.floor(((y + ob.height) - 1) / game.tileW); ob.upY = Math.floor(y / game.tileW); ob.leftX = Math.floor(x / game.tileW); ob.rightX = Math.floor(((x + ob.width) - 1) / game.tileW); ob.upleft = game[(("t_" + ob.upY) + "_") + ob.leftX].walkable; ob.downleft = game[(("t_" + ob.downY) + "_") + ob.leftX].walkable; ob.upright = game[(("t_" + ob.upY) + "_") + ob.rightX].walkable; ob.downright = game[(("t_" + ob.downY) + "_") + ob.rightX].walkable; } function moveChar(ob, dirx, diry) { getMyCorners(ob.x, ob.y + (ob.speed * diry), ob); if (diry == -1) { if (ob.upleft and ob.upright) { ob.y = ob.y + (ob.speed * diry); ob.clip.gotoAndStop("up"); } else { ob.y = ob.ytile * game.tileW; _root.movement = null; } } if (diry == 1) { if (ob.downleft and ob.downright) { ob.y = ob.y + (ob.speed * diry); ob.clip.gotoAndStop("down"); } else { ob.y = ((ob.ytile + 1) * game.tileW) - ob.height; _root.movement = null; } } getMyCorners(ob.x + (ob.speed * dirx), ob.y, ob); if (dirx == -1) { if (ob.downleft and ob.upleft) { ob.x = ob.x + (ob.speed * dirx); ob.clip.gotoAndStop("left"); } else { ob.x = ob.xtile * game.tileW; _root.movement = null; } } if (dirx == 1) { if (ob.upright and ob.downright) { ob.x = ob.x + (ob.speed * dirx); ob.clip.gotoAndStop("right"); } else { ob.x = ((ob.xtile + 1) * game.tileW) - ob.width; _root.movement = null; } } ob.xiso = ob.x - ob.y; ob.yiso = (ob.x + ob.y) / 2; ob.clip._x = ob.xiso; ob.clip._y = ob.yiso; ob.xtile = Math.floor(ob.x / game.tileW); ob.ytile = Math.floor(ob.y / game.tileW); _root.tileMap[ob.ytile][ob.xtile] = 20; var _local5 = (("t_" + ob.ytile) + "_") + ob.xtile; var _local6 = game[_local5].frame; game[_local5].walkable = false; ob.depth = (((ob.yiso - ob.depthshift) * 300) + ob.xiso) + 1; ob.clip.swapDepths(ob.depth); if (_local6 == ob.correctcode) { ob.correctstatus = true; checkLevelEnd(); } else { ob.correctstatus = false; } return(true); } function detectKeys() { var _local3 = _root.objectRef; if (_root.movement == "right") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 0, -1); } else if (_root.movement == "left") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 0, 1); } else if (_root.movement == "up") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, -1, 0); } else if (_root.movement == "down") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 1, 0); } if (!keyPressed) { _local3.clip.char.gotoAndStop(1); } else { _local3.clip.char.play(); } i = 1; while (i < (totalCar + 1)) { var _local4 = this["car" + i]; _local4.clip.fade._visible = true; i++; } _root.objectRef.clip.fade._visible = false; } function checkLevelEnd() { if (_root.movement == null) { i = 1; while (i < (totalCar + 1)) { var _local3 = this["car" + i].correctstatus; if (_local3 != true) { return(false); } i++; } if (!_root.levelEnd) { endLevel(); } } } function endLevel() { _root.score = _root.score + (_root.totalAmount * 10); clearInterval(_root.timerInterval); _root.tilesSwap.swapDepths(_root.tiles); _root.mc_levelup.gotoAndPlay(2); _root.levelEnd = true; return(undefined); } function gameEnd() { clearInterval(_root.timerInterval); _root.tilesSwap.swapDepths(_root.tiles); _root.mc_timeup.gotoAndPlay(2); _root.gameEndStatus = true; return(undefined); } function reset2() { clearInterval(timerInterval); _root.levelEnd = false; _root.gameEndStatus = false; _root.tiles.removeMovieClip(); _root.movement = null; _root.objectRef = null; _root.totalAmount = 100; _root.startGameStatus = true; gotoAndPlay ("level2"); } fscommand ("allowscale", false); _root.levelEnd = false; _root.gameEndStatus = false; _root.tiles.removeMovieClip(); _root.movement = null; _root.objectRef = null; _root.totalAmount = 100; _root.startGameStatus = true; _root.gameLevel = 2; if (_root.startGameStatus) { _root.timer_clip.gotoAndStop(1); _root.timerInterval = setInterval(depreciateAmount, 1000); _root.startGameStatus = false; } myMap1 = [[1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 2], [1, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 1], [1, 14, 0, 12, 11, 14, 0, 14, 0, 14, 0, 14, 0, 1], [1, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 12, 1], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 1], [5, 0, 14, 0, 14, 0, 14, 0, 14, 4, 14, 0, 14, 2], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 2], [1, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 1], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 1], [1, 0, 14, 0, 14, 2, 11, 0, 14, 0, 14, 0, 14, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2]]; game = {tileW:30}; game.Tile0 = function () { }; game.Tile0.prototype.walkable = true; game.Tile0.prototype.frame = 1; game.Tile14 = function () { }; game.Tile14.prototype.walkable = true; game.Tile14.prototype.frame = 14; game.Tile1 = function () { }; game.Tile1.prototype.walkable = false; game.Tile1.prototype.frame = 2; game.Tile2 = function () { }; game.Tile2.prototype.walkable = false; game.Tile2.prototype.frame = 3; game.Tile3 = function () { }; game.Tile3.prototype.walkable = false; game.Tile3.prototype.frame = 4; game.Tile4 = function () { }; game.Tile4.prototype.walkable = false; game.Tile4.prototype.frame = 5; game.Tile5 = function () { }; game.Tile5.prototype.walkable = false; game.Tile5.prototype.frame = 6; game.Tile11 = function () { }; game.Tile11.prototype.walkable = true; game.Tile11.prototype.frame = 11; game.Tile12 = function () { }; game.Tile12.prototype.walkable = true; game.Tile12.prototype.frame = 12; car1 = {xtile:7, ytile:1, speed:10, width:30, height:30, correctcode:11, clipName:"car1"}; car2 = {xtile:2, ytile:7, speed:10, width:30, height:30, correctcode:11, clipName:"car1"}; car3 = {xtile:5, ytile:5, speed:10, width:30, height:30, correctcode:12, clipName:"car2"}; car4 = {xtile:1, ytile:3, speed:10, width:30, height:30, correctcode:12, clipName:"car2"}; totalCar = 4; buildMap(_root.myMap1); _root.tiles._xscale = 120; _root.tiles._yscale = 120; _root.mc_mask.swapDepths(_root.tiles); _root.gameBGSound.stop(); _root.gameBGSound = null; _root.gameBGSound = new Sound(); _root.gameBGSound.attachSound("bgSound"); _root.gameBGSound.start(0, 1000); _root.gameBGSound.setVolume(50); stop();
Instance of Symbol 44 MovieClip [empty] "controller" in Frame 28
onClipEvent (enterFrame) { _root.detectKeys(); } onClipEvent (keyDown) { if ((_root.movement == null) && (!_root.gameEndStatus)) { if (Key.isDown(39)) { _root.movement = "right"; } else if (Key.isDown(37)) { _root.movement = "left"; } else if (Key.isDown(38)) { _root.movement = "up"; } else if (Key.isDown(40)) { _root.movement = "down"; } else if (Key.getCode() == "90") { _root.objectRef = _root.car1; } else if (Key.getCode() == "88") { _root.objectRef = _root.car2; } else if (Key.getCode() == "67") { _root.objectRef = _root.car3; } else if (Key.getCode() == "86") { _root.objectRef = _root.car4; } } }
Instance of Symbol 229 MovieClip "tilesSwap" in Frame 28
/* no clip actions */
Instance of Symbol 245 MovieClip "mc_levelup" in Frame 28
onClipEvent (load) { nextLevel = 3; }
Instance of Symbol 250 MovieClip "mc_timeup" in Frame 28
onClipEvent (load) { function callFunc() { _root.reset2(); } }
Frame 30
function depreciateAmount() { _root.totalAmount = _root.totalAmount - 1; timeNum = 100 - _root.totalAmount; if (_root.totalAmount <= 0) { _root.gameEnd(); } } function buildMap(map) { _root.attachMovie("empty", "tiles", 2); _root.tiles.attachMovie("empty", "back", 0); game.clip = _root.tiles; game.clip._x = 280; game.clip._y = 0; var _local7 = map[0].length; var _local8 = map.length; var _local4 = 0; while (_local4 < _local8) { var _local3 = 0; while (_local3 < _local7) { var _local2 = (("t_" + _local4) + "_") + _local3; game[_local2] = new game["Tile" + map[_local4][_local3]](); if (game[_local2].walkable) { var _local5 = game.clip.back; } else { var _local5 = game.clip; } game[_local2].depth = (((((_local3 + _local4) * game.tileW) / 2) * 300) + ((_local3 - _local4) * game.tileW)) + 1; _local5.attachMovie("tile", _local2, game[_local2].depth); _local5[_local2]._x = (_local3 - _local4) * game.tileW; _local5[_local2]._y = ((_local3 + _local4) * game.tileW) / 2; _local5[_local2].gotoAndStop(game[_local2].frame); _local3++; } _local4++; } createCars(_root.totalCar + 1); } function createCars(num) { i = 1; while (i < num) { var _local3 = this["car" + i]; _local3.x = _local3.xtile * game.tileW; _local3.y = _local3.ytile * game.tileW; _local3.xiso = _local3.x - _local3.y; _local3.yiso = (_local3.x + _local3.y) / 2; _local3.depthshift = (game.tileW - _local3.height) / 2; _local3.depth = (((_local3.yiso - _local3.depthshift) * 300) + _local3.xiso) + 1; _local3.correctstatus = false; carName = "car" + i; dupName = _local3.clipName; carRef = game.clip.attachMovie(dupName, carName, _local3.depth); _local3.clip = carRef; _local3.clip.objectRef = _local3; _local3.clip._x = _local3.xiso; _local3.clip._y = _local3.yiso; _root.tileMap[_local3.ytile][_local3.xtile] = 20; var _local4 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local4].walkable = false; i++; } } function getMyCorners(x, y, ob) { ob.downY = Math.floor(((y + ob.height) - 1) / game.tileW); ob.upY = Math.floor(y / game.tileW); ob.leftX = Math.floor(x / game.tileW); ob.rightX = Math.floor(((x + ob.width) - 1) / game.tileW); ob.upleft = game[(("t_" + ob.upY) + "_") + ob.leftX].walkable; ob.downleft = game[(("t_" + ob.downY) + "_") + ob.leftX].walkable; ob.upright = game[(("t_" + ob.upY) + "_") + ob.rightX].walkable; ob.downright = game[(("t_" + ob.downY) + "_") + ob.rightX].walkable; } function moveChar(ob, dirx, diry) { getMyCorners(ob.x, ob.y + (ob.speed * diry), ob); if (diry == -1) { if (ob.upleft and ob.upright) { ob.y = ob.y + (ob.speed * diry); ob.clip.gotoAndStop("up"); } else { ob.y = ob.ytile * game.tileW; _root.movement = null; } } if (diry == 1) { if (ob.downleft and ob.downright) { ob.y = ob.y + (ob.speed * diry); ob.clip.gotoAndStop("down"); } else { ob.y = ((ob.ytile + 1) * game.tileW) - ob.height; _root.movement = null; } } getMyCorners(ob.x + (ob.speed * dirx), ob.y, ob); if (dirx == -1) { if (ob.downleft and ob.upleft) { ob.x = ob.x + (ob.speed * dirx); ob.clip.gotoAndStop("left"); } else { ob.x = ob.xtile * game.tileW; _root.movement = null; } } if (dirx == 1) { if (ob.upright and ob.downright) { ob.x = ob.x + (ob.speed * dirx); ob.clip.gotoAndStop("right"); } else { ob.x = ((ob.xtile + 1) * game.tileW) - ob.width; _root.movement = null; } } ob.xiso = ob.x - ob.y; ob.yiso = (ob.x + ob.y) / 2; ob.clip._x = ob.xiso; ob.clip._y = ob.yiso; ob.xtile = Math.floor(ob.x / game.tileW); ob.ytile = Math.floor(ob.y / game.tileW); _root.tileMap[ob.ytile][ob.xtile] = 20; var _local5 = (("t_" + ob.ytile) + "_") + ob.xtile; var _local6 = game[_local5].frame; game[_local5].walkable = false; ob.depth = (((ob.yiso - ob.depthshift) * 300) + ob.xiso) + 1; ob.clip.swapDepths(ob.depth); if (_local6 == ob.correctcode) { ob.correctstatus = true; checkLevelEnd(); } else { ob.correctstatus = false; } return(true); } function detectKeys() { var _local3 = _root.objectRef; if (_root.movement == "right") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 0, -1); } else if (_root.movement == "left") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 0, 1); } else if (_root.movement == "up") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, -1, 0); } else if (_root.movement == "down") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 1, 0); } if (!keyPressed) { _local3.clip.char.gotoAndStop(1); } else { _local3.clip.char.play(); } i = 1; while (i < (totalCar + 1)) { var _local4 = this["car" + i]; _local4.clip.fade._visible = true; i++; } _root.objectRef.clip.fade._visible = false; } function checkLevelEnd() { if (_root.movement == null) { i = 1; while (i < (totalCar + 1)) { var _local3 = this["car" + i].correctstatus; if (_local3 != true) { return(false); } i++; } if (!_root.levelEnd) { endLevel(); } } } function endLevel() { _root.score = _root.score + (_root.totalAmount * 10); clearInterval(_root.timerInterval); _root.tilesSwap.swapDepths(_root.tiles); _root.mc_levelup.gotoAndPlay(2); _root.levelEnd = true; return(undefined); } function gameEnd() { clearInterval(_root.timerInterval); _root.tilesSwap.swapDepths(_root.tiles); _root.mc_timeup.gotoAndPlay(2); _root.gameEndStatus = true; return(undefined); } function reset3() { clearInterval(timerInterval); _root.levelEnd = false; _root.gameEndStatus = false; _root.tiles.removeMovieClip(); _root.movement = null; _root.objectRef = null; _root.totalAmount = 100; _root.startGameStatus = true; gotoAndPlay ("level3"); } fscommand ("allowscale", false); _root.levelEnd = false; _root.gameEndStatus = false; _root.tiles.removeMovieClip(); _root.movement = null; _root.objectRef = null; _root.totalAmount = 100; _root.startGameStatus = true; _root.gameLevel = 3; if (_root.startGameStatus) { _root.timer_clip.gotoAndStop(1); _root.timerInterval = setInterval(depreciateAmount, 1000); _root.startGameStatus = false; } myMap1 = [[1, 1, 1, 1, 1, 5, 2, 1, 1, 1, 1, 1, 1, 1], [1, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 1], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 1], [3, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 1], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 1], [1, 0, 14, 0, 14, 0, 4, 0, 14, 0, 14, 0, 14, 1], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 1], [1, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 1], [1, 14, 0, 14, 0, 14, 0, 14, 0, 12, 11, 14, 0, 1], [1, 0, 14, 0, 14, 0, 14, 0, 14, 11, 12, 0, 14, 1], [1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1]]; game = {tileW:30}; game.Tile0 = function () { }; game.Tile0.prototype.walkable = true; game.Tile0.prototype.frame = 1; game.Tile14 = function () { }; game.Tile14.prototype.walkable = true; game.Tile14.prototype.frame = 14; game.Tile1 = function () { }; game.Tile1.prototype.walkable = false; game.Tile1.prototype.frame = 2; game.Tile2 = function () { }; game.Tile2.prototype.walkable = false; game.Tile2.prototype.frame = 3; game.Tile3 = function () { }; game.Tile3.prototype.walkable = false; game.Tile3.prototype.frame = 4; game.Tile4 = function () { }; game.Tile4.prototype.walkable = false; game.Tile4.prototype.frame = 5; game.Tile5 = function () { }; game.Tile5.prototype.walkable = false; game.Tile5.prototype.frame = 6; game.Tile11 = function () { }; game.Tile11.prototype.walkable = true; game.Tile11.prototype.frame = 11; game.Tile12 = function () { }; game.Tile12.prototype.walkable = true; game.Tile12.prototype.frame = 12; car1 = {xtile:4, ytile:6, speed:10, width:30, height:30, correctcode:11, clipName:"car1"}; car2 = {xtile:7, ytile:1, speed:10, width:30, height:30, correctcode:11, clipName:"car1"}; car3 = {xtile:5, ytile:2, speed:10, width:30, height:30, correctcode:12, clipName:"car2"}; car4 = {xtile:1, ytile:7, speed:10, width:30, height:30, correctcode:12, clipName:"car2"}; totalCar = 4; buildMap(_root.myMap1); _root.tiles._xscale = 120; _root.tiles._yscale = 120; _root.mc_mask.swapDepths(_root.tiles); _root.gameBGSound.stop(); _root.gameBGSound = null; _root.gameBGSound = new Sound(); _root.gameBGSound.attachSound("bgSound"); _root.gameBGSound.start(0, 1000); _root.gameBGSound.setVolume(50); stop();
Instance of Symbol 44 MovieClip [empty] "controller" in Frame 30
onClipEvent (enterFrame) { _root.detectKeys(); } onClipEvent (keyDown) { if ((_root.movement == null) && (!_root.gameEndStatus)) { if (Key.isDown(39)) { _root.movement = "right"; } else if (Key.isDown(37)) { _root.movement = "left"; } else if (Key.isDown(38)) { _root.movement = "up"; } else if (Key.isDown(40)) { _root.movement = "down"; } else if (Key.getCode() == "90") { _root.objectRef = _root.car1; } else if (Key.getCode() == "88") { _root.objectRef = _root.car2; } else if (Key.getCode() == "67") { _root.objectRef = _root.car3; } else if (Key.getCode() == "86") { _root.objectRef = _root.car4; } } }
Instance of Symbol 229 MovieClip "tilesSwap" in Frame 30
/* no clip actions */
Instance of Symbol 245 MovieClip "mc_levelup" in Frame 30
onClipEvent (load) { nextLevel = 4; }
Instance of Symbol 250 MovieClip "mc_timeup" in Frame 30
onClipEvent (load) { function callFunc() { _root.reset3(); } }
Frame 32
function depreciateAmount() { _root.totalAmount = _root.totalAmount - 1; timeNum = 100 - _root.totalAmount; if (_root.totalAmount <= 0) { _root.gameEnd(); } } function buildMap(map) { _root.attachMovie("empty", "tiles", 2); _root.tiles.attachMovie("empty", "back", 0); game.clip = _root.tiles; game.clip._x = 280; game.clip._y = 0; var _local7 = map[0].length; var _local8 = map.length; var _local4 = 0; while (_local4 < _local8) { var _local3 = 0; while (_local3 < _local7) { var _local2 = (("t_" + _local4) + "_") + _local3; game[_local2] = new game["Tile" + map[_local4][_local3]](); if (game[_local2].walkable) { var _local5 = game.clip.back; } else { var _local5 = game.clip; } game[_local2].depth = (((((_local3 + _local4) * game.tileW) / 2) * 300) + ((_local3 - _local4) * game.tileW)) + 1; _local5.attachMovie("tile", _local2, game[_local2].depth); _local5[_local2]._x = (_local3 - _local4) * game.tileW; _local5[_local2]._y = ((_local3 + _local4) * game.tileW) / 2; _local5[_local2].gotoAndStop(game[_local2].frame); _local3++; } _local4++; } createCars(_root.totalCar + 1); } function createCars(num) { i = 1; while (i < num) { var _local3 = this["car" + i]; _local3.x = _local3.xtile * game.tileW; _local3.y = _local3.ytile * game.tileW; _local3.xiso = _local3.x - _local3.y; _local3.yiso = (_local3.x + _local3.y) / 2; _local3.depthshift = (game.tileW - _local3.height) / 2; _local3.depth = (((_local3.yiso - _local3.depthshift) * 300) + _local3.xiso) + 1; _local3.correctstatus = false; carName = "car" + i; dupName = _local3.clipName; carRef = game.clip.attachMovie(dupName, carName, _local3.depth); _local3.clip = carRef; _local3.clip.objectRef = _local3; _local3.clip._x = _local3.xiso; _local3.clip._y = _local3.yiso; _root.tileMap[_local3.ytile][_local3.xtile] = 20; var _local4 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local4].walkable = false; i++; } } function getMyCorners(x, y, ob) { ob.downY = Math.floor(((y + ob.height) - 1) / game.tileW); ob.upY = Math.floor(y / game.tileW); ob.leftX = Math.floor(x / game.tileW); ob.rightX = Math.floor(((x + ob.width) - 1) / game.tileW); ob.upleft = game[(("t_" + ob.upY) + "_") + ob.leftX].walkable; ob.downleft = game[(("t_" + ob.downY) + "_") + ob.leftX].walkable; ob.upright = game[(("t_" + ob.upY) + "_") + ob.rightX].walkable; ob.downright = game[(("t_" + ob.downY) + "_") + ob.rightX].walkable; } function moveChar(ob, dirx, diry) { getMyCorners(ob.x, ob.y + (ob.speed * diry), ob); if (diry == -1) { if (ob.upleft and ob.upright) { ob.y = ob.y + (ob.speed * diry); ob.clip.gotoAndStop("up"); } else { ob.y = ob.ytile * game.tileW; _root.movement = null; } } if (diry == 1) { if (ob.downleft and ob.downright) { ob.y = ob.y + (ob.speed * diry); ob.clip.gotoAndStop("down"); } else { ob.y = ((ob.ytile + 1) * game.tileW) - ob.height; _root.movement = null; } } getMyCorners(ob.x + (ob.speed * dirx), ob.y, ob); if (dirx == -1) { if (ob.downleft and ob.upleft) { ob.x = ob.x + (ob.speed * dirx); ob.clip.gotoAndStop("left"); } else { ob.x = ob.xtile * game.tileW; _root.movement = null; } } if (dirx == 1) { if (ob.upright and ob.downright) { ob.x = ob.x + (ob.speed * dirx); ob.clip.gotoAndStop("right"); } else { ob.x = ((ob.xtile + 1) * game.tileW) - ob.width; _root.movement = null; } } ob.xiso = ob.x - ob.y; ob.yiso = (ob.x + ob.y) / 2; ob.clip._x = ob.xiso; ob.clip._y = ob.yiso; ob.xtile = Math.floor(ob.x / game.tileW); ob.ytile = Math.floor(ob.y / game.tileW); _root.tileMap[ob.ytile][ob.xtile] = 20; var _local5 = (("t_" + ob.ytile) + "_") + ob.xtile; var _local6 = game[_local5].frame; game[_local5].walkable = false; ob.depth = (((ob.yiso - ob.depthshift) * 300) + ob.xiso) + 1; ob.clip.swapDepths(ob.depth); if (_local6 == ob.correctcode) { ob.correctstatus = true; checkLevelEnd(); } else { ob.correctstatus = false; } return(true); } function detectKeys() { var _local3 = _root.objectRef; if (_root.movement == "right") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 0, -1); } else if (_root.movement == "left") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 0, 1); } else if (_root.movement == "up") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, -1, 0); } else if (_root.movement == "down") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 1, 0); } if (!keyPressed) { _local3.clip.char.gotoAndStop(1); } else { _local3.clip.char.play(); } i = 1; while (i < (totalCar + 1)) { var _local4 = this["car" + i]; _local4.clip.fade._visible = true; i++; } _root.objectRef.clip.fade._visible = false; } function checkLevelEnd() { if (_root.movement == null) { i = 1; while (i < (totalCar + 1)) { var _local3 = this["car" + i].correctstatus; if (_local3 != true) { return(false); } i++; } if (!_root.levelEnd) { endLevel(); } } } function endLevel() { _root.score = _root.score + (_root.totalAmount * 10); clearInterval(_root.timerInterval); _root.tilesSwap.swapDepths(_root.tiles); _root.mc_levelup.gotoAndPlay(2); _root.levelEnd = true; return(undefined); } function gameEnd() { clearInterval(_root.timerInterval); _root.tilesSwap.swapDepths(_root.tiles); _root.mc_timeup.gotoAndPlay(2); _root.gameEndStatus = true; return(undefined); } function reset4() { clearInterval(timerInterval); _root.levelEnd = false; _root.gameEndStatus = false; _root.tiles.removeMovieClip(); _root.movement = null; _root.objectRef = null; _root.totalAmount = 100; _root.startGameStatus = true; gotoAndPlay ("level4"); } fscommand ("allowscale", false); _root.levelEnd = false; _root.gameEndStatus = false; _root.tiles.removeMovieClip(); _root.movement = null; _root.objectRef = null; _root.totalAmount = 100; _root.startGameStatus = true; _root.gameLevel = 4; if (_root.startGameStatus) { _root.timer_clip.gotoAndStop(1); _root.timerInterval = setInterval(depreciateAmount, 1000); _root.startGameStatus = false; } myMap1 = [[1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1], [1, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 1], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 1], [3, 0, 14, 0, 14, 0, 14, 0, 2, 0, 14, 0, 14, 1], [1, 14, 1, 14, 0, 14, 0, 14, 12, 14, 0, 14, 0, 1], [1, 0, 11, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 1], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 1], [1, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 1], [1, 14, 0, 14, 0, 14, 0, 12, 11, 14, 0, 14, 0, 1], [1, 3, 14, 0, 14, 0, 14, 0, 14, 4, 14, 0, 14, 1], [1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2]]; game = {tileW:30}; game.Tile0 = function () { }; game.Tile0.prototype.walkable = true; game.Tile0.prototype.frame = 1; game.Tile14 = function () { }; game.Tile14.prototype.walkable = true; game.Tile14.prototype.frame = 14; game.Tile1 = function () { }; game.Tile1.prototype.walkable = false; game.Tile1.prototype.frame = 2; game.Tile2 = function () { }; game.Tile2.prototype.walkable = false; game.Tile2.prototype.frame = 3; game.Tile3 = function () { }; game.Tile3.prototype.walkable = false; game.Tile3.prototype.frame = 4; game.Tile4 = function () { }; game.Tile4.prototype.walkable = false; game.Tile4.prototype.frame = 5; game.Tile11 = function () { }; game.Tile11.prototype.walkable = true; game.Tile11.prototype.frame = 11; game.Tile12 = function () { }; game.Tile12.prototype.walkable = true; game.Tile12.prototype.frame = 12; car1 = {xtile:4, ytile:1, speed:10, width:30, height:30, correctcode:11, clipName:"car1"}; car2 = {xtile:7, ytile:3, speed:10, width:30, height:30, correctcode:11, clipName:"car1"}; car3 = {xtile:7, ytile:6, speed:10, width:30, height:30, correctcode:12, clipName:"car2"}; car4 = {xtile:1, ytile:1, speed:10, width:30, height:30, correctcode:12, clipName:"car2"}; totalCar = 4; buildMap(_root.myMap1); _root.tiles._xscale = 120; _root.tiles._yscale = 120; _root.mc_mask.swapDepths(_root.tiles); _root.gameBGSound.stop(); _root.gameBGSound = null; _root.gameBGSound = new Sound(); _root.gameBGSound.attachSound("bgSound"); _root.gameBGSound.start(0, 1000); _root.gameBGSound.setVolume(50); stop();
Instance of Symbol 44 MovieClip [empty] "controller" in Frame 32
onClipEvent (enterFrame) { _root.detectKeys(); } onClipEvent (keyDown) { if ((_root.movement == null) && (!_root.gameEndStatus)) { if (Key.isDown(39)) { _root.movement = "right"; } else if (Key.isDown(37)) { _root.movement = "left"; } else if (Key.isDown(38)) { _root.movement = "up"; } else if (Key.isDown(40)) { _root.movement = "down"; } else if (Key.getCode() == "90") { _root.objectRef = _root.car1; } else if (Key.getCode() == "88") { _root.objectRef = _root.car2; } else if (Key.getCode() == "67") { _root.objectRef = _root.car3; } else if (Key.getCode() == "86") { _root.objectRef = _root.car4; } } }
Instance of Symbol 229 MovieClip "tilesSwap" in Frame 32
/* no clip actions */
Instance of Symbol 245 MovieClip "mc_levelup" in Frame 32
onClipEvent (load) { nextLevel = 5; }
Instance of Symbol 250 MovieClip "mc_timeup" in Frame 32
onClipEvent (load) { function callFunc() { _root.reset4(); } }
Frame 34
function depreciateAmount() { _root.totalAmount = _root.totalAmount - 1; timeNum = 100 - _root.totalAmount; if (_root.totalAmount <= 0) { _root.gameEnd(); } } function buildMap(map) { _root.attachMovie("empty", "tiles", 1); _root.tiles.attachMovie("empty", "back", 0); game.clip = _root.tiles; game.clip._x = 280; game.clip._y = 0; var _local7 = map[0].length; var _local8 = map.length; var _local4 = 0; while (_local4 < _local8) { var _local3 = 0; while (_local3 < _local7) { var _local2 = (("t_" + _local4) + "_") + _local3; game[_local2] = new game["Tile" + map[_local4][_local3]](); if (game[_local2].walkable) { var _local5 = game.clip.back; } else { var _local5 = game.clip; } game[_local2].depth = (((((_local3 + _local4) * game.tileW) / 2) * 300) + ((_local3 - _local4) * game.tileW)) + 1; _local5.attachMovie("tile", _local2, game[_local2].depth); _local5[_local2]._x = (_local3 - _local4) * game.tileW; _local5[_local2]._y = ((_local3 + _local4) * game.tileW) / 2; _local5[_local2].gotoAndStop(game[_local2].frame); _local3++; } _local4++; } createCars(_root.totalCar + 1); } function createCars(num) { i = 1; while (i < num) { var _local3 = this["car" + i]; _local3.x = _local3.xtile * game.tileW; _local3.y = _local3.ytile * game.tileW; _local3.xiso = _local3.x - _local3.y; _local3.yiso = (_local3.x + _local3.y) / 2; _local3.depthshift = (game.tileW - _local3.height) / 2; _local3.depth = (((_local3.yiso - _local3.depthshift) * 300) + _local3.xiso) + 1; _local3.correctstatus = false; carName = "car" + i; dupName = _local3.clipName; carRef = game.clip.attachMovie(dupName, carName, _local3.depth); _local3.clip = carRef; _local3.clip.objectRef = _local3; _local3.clip._x = _local3.xiso; _local3.clip._y = _local3.yiso; _root.tileMap[_local3.ytile][_local3.xtile] = 20; var _local4 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local4].walkable = false; i++; } } function getMyCorners(x, y, ob) { ob.downY = Math.floor(((y + ob.height) - 1) / game.tileW); ob.upY = Math.floor(y / game.tileW); ob.leftX = Math.floor(x / game.tileW); ob.rightX = Math.floor(((x + ob.width) - 1) / game.tileW); ob.upleft = game[(("t_" + ob.upY) + "_") + ob.leftX].walkable; ob.downleft = game[(("t_" + ob.downY) + "_") + ob.leftX].walkable; ob.upright = game[(("t_" + ob.upY) + "_") + ob.rightX].walkable; ob.downright = game[(("t_" + ob.downY) + "_") + ob.rightX].walkable; } function moveChar(ob, dirx, diry) { getMyCorners(ob.x, ob.y + (ob.speed * diry), ob); if (diry == -1) { if (ob.upleft and ob.upright) { ob.y = ob.y + (ob.speed * diry); ob.clip.gotoAndStop("up"); } else { ob.y = ob.ytile * game.tileW; _root.movement = null; } } if (diry == 1) { if (ob.downleft and ob.downright) { ob.y = ob.y + (ob.speed * diry); ob.clip.gotoAndStop("down"); } else { ob.y = ((ob.ytile + 1) * game.tileW) - ob.height; _root.movement = null; } } getMyCorners(ob.x + (ob.speed * dirx), ob.y, ob); if (dirx == -1) { if (ob.downleft and ob.upleft) { ob.x = ob.x + (ob.speed * dirx); ob.clip.gotoAndStop("left"); } else { ob.x = ob.xtile * game.tileW; _root.movement = null; } } if (dirx == 1) { if (ob.upright and ob.downright) { ob.x = ob.x + (ob.speed * dirx); ob.clip.gotoAndStop("right"); } else { ob.x = ((ob.xtile + 1) * game.tileW) - ob.width; _root.movement = null; } } ob.xiso = ob.x - ob.y; ob.yiso = (ob.x + ob.y) / 2; ob.clip._x = ob.xiso; ob.clip._y = ob.yiso; ob.xtile = Math.floor(ob.x / game.tileW); ob.ytile = Math.floor(ob.y / game.tileW); _root.tileMap[ob.ytile][ob.xtile] = 20; var _local5 = (("t_" + ob.ytile) + "_") + ob.xtile; var _local6 = game[_local5].frame; game[_local5].walkable = false; ob.depth = (((ob.yiso - ob.depthshift) * 300) + ob.xiso) + 1; ob.clip.swapDepths(ob.depth); if (_local6 == ob.correctcode) { ob.correctstatus = true; checkLevelEnd(); } else { ob.correctstatus = false; } return(true); } function detectKeys() { var _local3 = _root.objectRef; if (_root.movement == "right") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 0, -1); } else if (_root.movement == "left") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 0, 1); } else if (_root.movement == "up") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, -1, 0); } else if (_root.movement == "down") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 1, 0); } if (!keyPressed) { _local3.clip.char.gotoAndStop(1); } else { _local3.clip.char.play(); } i = 1; while (i < (totalCar + 1)) { var _local4 = this["car" + i]; _local4.clip.fade._visible = true; i++; } _root.objectRef.clip.fade._visible = false; } function checkLevelEnd() { if (_root.movement == null) { i = 1; while (i < (totalCar + 1)) { var _local3 = this["car" + i].correctstatus; if (_local3 != true) { return(false); } i++; } if (!_root.levelEnd) { endLevel(); } } } function endLevel() { _root.score = _root.score + (_root.totalAmount * 10); clearInterval(_root.timerInterval); _root.tilesSwap.swapDepths(_root.tiles); _root.mc_levelup.gotoAndPlay(2); _root.levelEnd = true; return(undefined); } function gameEnd() { clearInterval(_root.timerInterval); _root.tilesSwap.swapDepths(_root.tiles); _root.mc_timeup.gotoAndPlay(2); _root.gameEndStatus = true; return(undefined); } function reset5() { clearInterval(timerInterval); _root.levelEnd = false; _root.gameEndStatus = false; _root.tiles.removeMovieClip(); _root.movement = null; _root.objectRef = null; _root.totalAmount = 100; _root.startGameStatus = true; gotoAndPlay ("level5"); } fscommand ("allowscale", false); _root.levelEnd = false; _root.gameEndStatus = false; _root.tiles.removeMovieClip(); _root.movement = null; _root.objectRef = null; _root.totalAmount = 100; _root.startGameStatus = true; _root.gameLevel = 5; if (_root.startGameStatus) { _root.timer_clip.gotoAndStop(1); _root.timerInterval = setInterval(depreciateAmount, 1000); _root.startGameStatus = false; } myMap1 = [[1, 1, 5, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1], [1, 0, 14, 0, 14, 0, 12, 0, 14, 0, 14, 0, 14, 1], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 1], [1, 0, 14, 0, 14, 0, 14, 0, 14, 0, 13, 0, 14, 1], [1, 14, 11, 1, 0, 14, 0, 14, 0, 14, 4, 14, 0, 1], [1, 0, 4, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 2], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 2], [1, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 1], [3, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 1], [1, 0, 14, 0, 14, 11, 12, 13, 14, 0, 14, 0, 2, 1], [1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1]]; game = {tileW:30}; game.Tile0 = function () { }; game.Tile0.prototype.walkable = true; game.Tile0.prototype.frame = 1; game.Tile14 = function () { }; game.Tile14.prototype.walkable = true; game.Tile14.prototype.frame = 14; game.Tile1 = function () { }; game.Tile1.prototype.walkable = false; game.Tile1.prototype.frame = 2; game.Tile2 = function () { }; game.Tile2.prototype.walkable = false; game.Tile2.prototype.frame = 3; game.Tile3 = function () { }; game.Tile3.prototype.walkable = false; game.Tile3.prototype.frame = 4; game.Tile4 = function () { }; game.Tile4.prototype.walkable = false; game.Tile4.prototype.frame = 5; game.Tile5 = function () { }; game.Tile5.prototype.walkable = false; game.Tile5.prototype.frame = 6; game.Tile11 = function () { }; game.Tile11.prototype.walkable = true; game.Tile11.prototype.frame = 11; game.Tile12 = function () { }; game.Tile12.prototype.walkable = true; game.Tile12.prototype.frame = 12; game.Tile13 = function () { }; game.Tile13.prototype.walkable = true; game.Tile13.prototype.frame = 13; car1 = {xtile:4, ytile:2, speed:10, width:30, height:30, correctcode:11, clipName:"car1"}; car2 = {xtile:1, ytile:6, speed:10, width:30, height:30, correctcode:11, clipName:"car1"}; car3 = {xtile:2, ytile:2, speed:10, width:30, height:30, correctcode:12, clipName:"car2"}; car4 = {xtile:8, ytile:3, speed:10, width:30, height:30, correctcode:12, clipName:"car2"}; car5 = {xtile:1, ytile:1, speed:10, width:30, height:30, correctcode:13, clipName:"car3"}; car6 = {xtile:9, ytile:3, speed:10, width:30, height:30, correctcode:13, clipName:"car3"}; totalCar = 6; buildMap(_root.myMap1); _root.tiles._xscale = 120; _root.tiles._yscale = 120; _root.mc_mask.swapDepths(_root.tiles); _root.gameBGSound.stop(); _root.gameBGSound = null; _root.gameBGSound = new Sound(); _root.gameBGSound.attachSound("bgSound"); _root.gameBGSound.start(0, 1000); _root.gameBGSound.setVolume(50); stop();
Instance of Symbol 44 MovieClip [empty] "controller" in Frame 34
onClipEvent (enterFrame) { _root.detectKeys(); } onClipEvent (keyDown) { if ((_root.movement == null) && (!_root.gameEndStatus)) { if (Key.isDown(39)) { _root.movement = "right"; } else if (Key.isDown(37)) { _root.movement = "left"; } else if (Key.isDown(38)) { _root.movement = "up"; } else if (Key.isDown(40)) { _root.movement = "down"; } else if (Key.getCode() == "90") { _root.objectRef = _root.car1; } else if (Key.getCode() == "88") { _root.objectRef = _root.car2; } else if (Key.getCode() == "67") { _root.objectRef = _root.car3; } else if (Key.getCode() == "86") { _root.objectRef = _root.car4; } } }
Instance of Symbol 229 MovieClip "tilesSwap" in Frame 34
/* no clip actions */
Instance of Symbol 245 MovieClip "mc_levelup" in Frame 34
onClipEvent (load) { nextLevel = 6; }
Instance of Symbol 250 MovieClip "mc_timeup" in Frame 34
onClipEvent (load) { function callFunc() { _root.reset5(); } }
Frame 36
function depreciateAmount() { _root.totalAmount = _root.totalAmount - 1; timeNum = 100 - _root.totalAmount; if (_root.totalAmount <= 0) { _root.gameEnd(); } } function buildMap(map) { _root.attachMovie("empty", "tiles", 2); _root.tiles.attachMovie("empty", "back", 0); game.clip = _root.tiles; game.clip._x = 280; game.clip._y = 0; var _local7 = map[0].length; var _local8 = map.length; var _local4 = 0; while (_local4 < _local8) { var _local3 = 0; while (_local3 < _local7) { var _local2 = (("t_" + _local4) + "_") + _local3; game[_local2] = new game["Tile" + map[_local4][_local3]](); if (game[_local2].walkable) { var _local5 = game.clip.back; } else { var _local5 = game.clip; } game[_local2].depth = (((((_local3 + _local4) * game.tileW) / 2) * 300) + ((_local3 - _local4) * game.tileW)) + 1; _local5.attachMovie("tile", _local2, game[_local2].depth); _local5[_local2]._x = (_local3 - _local4) * game.tileW; _local5[_local2]._y = ((_local3 + _local4) * game.tileW) / 2; _local5[_local2].gotoAndStop(game[_local2].frame); _local3++; } _local4++; } createCars(_root.totalCar + 1); } function createCars(num) { i = 1; while (i < num) { var _local3 = this["car" + i]; _local3.x = _local3.xtile * game.tileW; _local3.y = _local3.ytile * game.tileW; _local3.xiso = _local3.x - _local3.y; _local3.yiso = (_local3.x + _local3.y) / 2; _local3.depthshift = (game.tileW - _local3.height) / 2; _local3.depth = (((_local3.yiso - _local3.depthshift) * 300) + _local3.xiso) + 1; _local3.correctstatus = false; carName = "car" + i; dupName = _local3.clipName; carRef = game.clip.attachMovie(dupName, carName, _local3.depth); _local3.clip = carRef; _local3.clip.objectRef = _local3; _local3.clip._x = _local3.xiso; _local3.clip._y = _local3.yiso; _root.tileMap[_local3.ytile][_local3.xtile] = 20; var _local4 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local4].walkable = false; i++; } } function getMyCorners(x, y, ob) { ob.downY = Math.floor(((y + ob.height) - 1) / game.tileW); ob.upY = Math.floor(y / game.tileW); ob.leftX = Math.floor(x / game.tileW); ob.rightX = Math.floor(((x + ob.width) - 1) / game.tileW); ob.upleft = game[(("t_" + ob.upY) + "_") + ob.leftX].walkable; ob.downleft = game[(("t_" + ob.downY) + "_") + ob.leftX].walkable; ob.upright = game[(("t_" + ob.upY) + "_") + ob.rightX].walkable; ob.downright = game[(("t_" + ob.downY) + "_") + ob.rightX].walkable; } function moveChar(ob, dirx, diry) { getMyCorners(ob.x, ob.y + (ob.speed * diry), ob); if (diry == -1) { if (ob.upleft and ob.upright) { ob.y = ob.y + (ob.speed * diry); ob.clip.gotoAndStop("up"); } else { ob.y = ob.ytile * game.tileW; _root.movement = null; } } if (diry == 1) { if (ob.downleft and ob.downright) { ob.y = ob.y + (ob.speed * diry); ob.clip.gotoAndStop("down"); } else { ob.y = ((ob.ytile + 1) * game.tileW) - ob.height; _root.movement = null; } } getMyCorners(ob.x + (ob.speed * dirx), ob.y, ob); if (dirx == -1) { if (ob.downleft and ob.upleft) { ob.x = ob.x + (ob.speed * dirx); ob.clip.gotoAndStop("left"); } else { ob.x = ob.xtile * game.tileW; _root.movement = null; } } if (dirx == 1) { if (ob.upright and ob.downright) { ob.x = ob.x + (ob.speed * dirx); ob.clip.gotoAndStop("right"); } else { ob.x = ((ob.xtile + 1) * game.tileW) - ob.width; _root.movement = null; } } ob.xiso = ob.x - ob.y; ob.yiso = (ob.x + ob.y) / 2; ob.clip._x = ob.xiso; ob.clip._y = ob.yiso; ob.xtile = Math.floor(ob.x / game.tileW); ob.ytile = Math.floor(ob.y / game.tileW); _root.tileMap[ob.ytile][ob.xtile] = 20; var _local5 = (("t_" + ob.ytile) + "_") + ob.xtile; var _local6 = game[_local5].frame; game[_local5].walkable = false; ob.depth = (((ob.yiso - ob.depthshift) * 300) + ob.xiso) + 1; ob.clip.swapDepths(ob.depth); if (_local6 == ob.correctcode) { ob.correctstatus = true; checkLevelEnd(); } else { ob.correctstatus = false; } return(true); } function detectKeys() { var _local3 = _root.objectRef; if (_root.movement == "right") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 0, -1); } else if (_root.movement == "left") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 0, 1); } else if (_root.movement == "up") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, -1, 0); } else if (_root.movement == "down") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 1, 0); } if (!keyPressed) { _local3.clip.char.gotoAndStop(1); } else { _local3.clip.char.play(); } i = 1; while (i < (totalCar + 1)) { var _local4 = this["car" + i]; _local4.clip.fade._visible = true; i++; } _root.objectRef.clip.fade._visible = false; } function checkLevelEnd() { if (_root.movement == null) { i = 1; while (i < (totalCar + 1)) { var _local3 = this["car" + i].correctstatus; if (_local3 != true) { return(false); } i++; } if (!_root.levelEnd) { endLevel(); } } } function endLevel() { _root.score = _root.score + (_root.totalAmount * 10); clearInterval(_root.timerInterval); _root.tilesSwap.swapDepths(_root.tiles); _root.mc_levelup.gotoAndPlay(2); _root.levelEnd = true; return(undefined); } function gameEnd() { clearInterval(_root.timerInterval); _root.tilesSwap.swapDepths(_root.tiles); _root.mc_timeup.gotoAndPlay(2); _root.gameEndStatus = true; return(undefined); } function reset6() { clearInterval(timerInterval); _root.levelEnd = false; _root.gameEndStatus = false; _root.tiles.removeMovieClip(); _root.movement = null; _root.objectRef = null; _root.totalAmount = 100; _root.startGameStatus = true; gotoAndPlay ("level6"); } fscommand ("allowscale", false); _root.levelEnd = false; _root.gameEndStatus = false; _root.tiles.removeMovieClip(); _root.movement = null; _root.objectRef = null; _root.totalAmount = 100; _root.startGameStatus = true; _root.gameLevel = 6; if (_root.startGameStatus) { _root.timer_clip.gotoAndStop(1); _root.timerInterval = setInterval(depreciateAmount, 1000); _root.startGameStatus = false; } myMap1 = [[1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1], [1, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 1], [1, 14, 0, 14, 2, 14, 0, 14, 0, 1, 0, 14, 0, 1], [1, 0, 14, 2, 13, 0, 14, 0, 14, 11, 1, 0, 14, 1], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 1], [1, 0, 14, 0, 14, 0, 4, 0, 2, 0, 14, 0, 14, 2], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 2], [2, 0, 14, 0, 14, 1, 14, 0, 14, 0, 14, 0, 13, 1], [2, 14, 0, 14, 0, 11, 0, 14, 0, 14, 0, 14, 0, 1], [1, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2]]; game = {tileW:30}; game.Tile0 = function () { }; game.Tile0.prototype.walkable = true; game.Tile0.prototype.frame = 1; game.Tile14 = function () { }; game.Tile14.prototype.walkable = true; game.Tile14.prototype.frame = 14; game.Tile1 = function () { }; game.Tile1.prototype.walkable = false; game.Tile1.prototype.frame = 2; game.Tile2 = function () { }; game.Tile2.prototype.walkable = false; game.Tile2.prototype.frame = 3; game.Tile3 = function () { }; game.Tile3.prototype.walkable = false; game.Tile3.prototype.frame = 4; game.Tile4 = function () { }; game.Tile4.prototype.walkable = false; game.Tile4.prototype.frame = 5; game.Tile5 = function () { }; game.Tile5.prototype.walkable = false; game.Tile5.prototype.frame = 6; game.Tile11 = function () { }; game.Tile11.prototype.walkable = true; game.Tile11.prototype.frame = 11; game.Tile12 = function () { }; game.Tile12.prototype.walkable = true; game.Tile12.prototype.frame = 12; game.Tile13 = function () { }; game.Tile13.prototype.walkable = true; game.Tile13.prototype.frame = 13; car1 = {xtile:1, ytile:5, speed:10, width:30, height:30, correctcode:11, clipName:"car1"}; car2 = {xtile:9, ytile:8, speed:10, width:30, height:30, correctcode:11, clipName:"car1"}; car3 = {xtile:7, ytile:1, speed:10, width:30, height:30, correctcode:13, clipName:"car3"}; car4 = {xtile:11, ytile:3, speed:10, width:30, height:30, correctcode:13, clipName:"car3"}; totalCar = 4; buildMap(_root.myMap1); _root.tiles._xscale = 120; _root.tiles._yscale = 120; _root.mc_mask.swapDepths(_root.tiles); _root.gameBGSound.stop(); _root.gameBGSound = null; _root.gameBGSound = new Sound(); _root.gameBGSound.attachSound("bgSound"); _root.gameBGSound.start(0, 1000); _root.gameBGSound.setVolume(50); stop();
Instance of Symbol 44 MovieClip [empty] "controller" in Frame 36
onClipEvent (enterFrame) { _root.detectKeys(); } onClipEvent (keyDown) { if ((_root.movement == null) && (!_root.gameEndStatus)) { if (Key.isDown(39)) { _root.movement = "right"; } else if (Key.isDown(37)) { _root.movement = "left"; } else if (Key.isDown(38)) { _root.movement = "up"; } else if (Key.isDown(40)) { _root.movement = "down"; } else if (Key.getCode() == "90") { _root.objectRef = _root.car1; } else if (Key.getCode() == "88") { _root.objectRef = _root.car2; } else if (Key.getCode() == "67") { _root.objectRef = _root.car3; } else if (Key.getCode() == "86") { _root.objectRef = _root.car4; } } }
Instance of Symbol 229 MovieClip "tilesSwap" in Frame 36
/* no clip actions */
Instance of Symbol 245 MovieClip "mc_levelup" in Frame 36
onClipEvent (load) { nextLevel = 7; }
Instance of Symbol 250 MovieClip "mc_timeup" in Frame 36
onClipEvent (load) { function callFunc() { _root.reset6(); } }
Frame 38
function depreciateAmount() { _root.totalAmount = _root.totalAmount - 1; timeNum = 100 - _root.totalAmount; if (_root.totalAmount <= 0) { _root.gameEnd(); } } function buildMap(map) { _root.attachMovie("empty", "tiles", 1); _root.tiles.attachMovie("empty", "back", 0); game.clip = _root.tiles; game.clip._x = 280; game.clip._y = 0; var _local7 = map[0].length; var _local8 = map.length; var _local4 = 0; while (_local4 < _local8) { var _local3 = 0; while (_local3 < _local7) { var _local2 = (("t_" + _local4) + "_") + _local3; game[_local2] = new game["Tile" + map[_local4][_local3]](); if (game[_local2].walkable) { var _local5 = game.clip.back; } else { var _local5 = game.clip; } game[_local2].depth = (((((_local3 + _local4) * game.tileW) / 2) * 300) + ((_local3 - _local4) * game.tileW)) + 1; _local5.attachMovie("tile", _local2, game[_local2].depth); _local5[_local2]._x = (_local3 - _local4) * game.tileW; _local5[_local2]._y = ((_local3 + _local4) * game.tileW) / 2; _local5[_local2].gotoAndStop(game[_local2].frame); _local3++; } _local4++; } createCars(_root.totalCar + 1); } function createCars(num) { i = 1; while (i < num) { var _local3 = this["car" + i]; _local3.x = _local3.xtile * game.tileW; _local3.y = _local3.ytile * game.tileW; _local3.xiso = _local3.x - _local3.y; _local3.yiso = (_local3.x + _local3.y) / 2; _local3.depthshift = (game.tileW - _local3.height) / 2; _local3.depth = (((_local3.yiso - _local3.depthshift) * 300) + _local3.xiso) + 1; _local3.correctstatus = false; carName = "car" + i; dupName = _local3.clipName; carRef = game.clip.attachMovie(dupName, carName, _local3.depth); _local3.clip = carRef; _local3.clip.objectRef = _local3; _local3.clip._x = _local3.xiso; _local3.clip._y = _local3.yiso; _root.tileMap[_local3.ytile][_local3.xtile] = 20; var _local4 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local4].walkable = false; i++; } } function getMyCorners(x, y, ob) { ob.downY = Math.floor(((y + ob.height) - 1) / game.tileW); ob.upY = Math.floor(y / game.tileW); ob.leftX = Math.floor(x / game.tileW); ob.rightX = Math.floor(((x + ob.width) - 1) / game.tileW); ob.upleft = game[(("t_" + ob.upY) + "_") + ob.leftX].walkable; ob.downleft = game[(("t_" + ob.downY) + "_") + ob.leftX].walkable; ob.upright = game[(("t_" + ob.upY) + "_") + ob.rightX].walkable; ob.downright = game[(("t_" + ob.downY) + "_") + ob.rightX].walkable; } function moveChar(ob, dirx, diry) { getMyCorners(ob.x, ob.y + (ob.speed * diry), ob); if (diry == -1) { if (ob.upleft and ob.upright) { ob.y = ob.y + (ob.speed * diry); ob.clip.gotoAndStop("up"); } else { ob.y = ob.ytile * game.tileW; _root.movement = null; } } if (diry == 1) { if (ob.downleft and ob.downright) { ob.y = ob.y + (ob.speed * diry); ob.clip.gotoAndStop("down"); } else { ob.y = ((ob.ytile + 1) * game.tileW) - ob.height; _root.movement = null; } } getMyCorners(ob.x + (ob.speed * dirx), ob.y, ob); if (dirx == -1) { if (ob.downleft and ob.upleft) { ob.x = ob.x + (ob.speed * dirx); ob.clip.gotoAndStop("left"); } else { ob.x = ob.xtile * game.tileW; _root.movement = null; } } if (dirx == 1) { if (ob.upright and ob.downright) { ob.x = ob.x + (ob.speed * dirx); ob.clip.gotoAndStop("right"); } else { ob.x = ((ob.xtile + 1) * game.tileW) - ob.width; _root.movement = null; } } ob.xiso = ob.x - ob.y; ob.yiso = (ob.x + ob.y) / 2; ob.clip._x = ob.xiso; ob.clip._y = ob.yiso; ob.xtile = Math.floor(ob.x / game.tileW); ob.ytile = Math.floor(ob.y / game.tileW); _root.tileMap[ob.ytile][ob.xtile] = 20; var _local5 = (("t_" + ob.ytile) + "_") + ob.xtile; var _local6 = game[_local5].frame; game[_local5].walkable = false; ob.depth = (((ob.yiso - ob.depthshift) * 300) + ob.xiso) + 1; ob.clip.swapDepths(ob.depth); if (_local6 == ob.correctcode) { ob.correctstatus = true; checkLevelEnd(); } else { ob.correctstatus = false; } return(true); } function detectKeys() { var _local3 = _root.objectRef; if (_root.movement == "right") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 0, -1); } else if (_root.movement == "left") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 0, 1); } else if (_root.movement == "up") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, -1, 0); } else if (_root.movement == "down") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 1, 0); } if (!keyPressed) { _local3.clip.char.gotoAndStop(1); } else { _local3.clip.char.play(); } i = 1; while (i < (totalCar + 1)) { var _local4 = this["car" + i]; _local4.clip.fade._visible = true; i++; } _root.objectRef.clip.fade._visible = false; } function checkLevelEnd() { if (_root.movement == null) { i = 1; while (i < (totalCar + 1)) { var _local3 = this["car" + i].correctstatus; if (_local3 != true) { return(false); } i++; } if (!_root.levelEnd) { endLevel(); } } } function endLevel() { _root.score = _root.score + (_root.totalAmount * 10); clearInterval(_root.timerInterval); _root.tilesSwap.swapDepths(_root.tiles); _root.mc_levelup.gotoAndPlay(2); _root.levelEnd = true; return(undefined); } function gameEnd() { clearInterval(_root.timerInterval); _root.tilesSwap.swapDepths(_root.tiles); _root.mc_timeup.gotoAndPlay(2); _root.gameEndStatus = true; return(undefined); } function reset7() { clearInterval(timerInterval); _root.levelEnd = false; _root.gameEndStatus = false; _root.tiles.removeMovieClip(); _root.movement = null; _root.objectRef = null; _root.totalAmount = 100; _root.startGameStatus = true; gotoAndPlay ("level7"); } fscommand ("allowscale", false); _root.levelEnd = false; _root.gameEndStatus = false; _root.tiles.removeMovieClip(); _root.movement = null; _root.objectRef = null; _root.totalAmount = 100; _root.startGameStatus = true; _root.gameLevel = 7; if (_root.startGameStatus) { _root.timer_clip.gotoAndStop(1); _root.timerInterval = setInterval(depreciateAmount, 1000); _root.startGameStatus = false; } myMap1 = [[1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1], [1, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 1], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 1], [1, 0, 14, 1, 4, 1, 14, 0, 14, 1, 12, 1, 14, 1], [1, 14, 0, 11, 12, 13, 0, 14, 0, 1, 1, 1, 0, 1], [1, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 2], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 1, 1, 0, 1], [1, 13, 14, 0, 14, 0, 14, 0, 14, 0, 11, 4, 14, 1], [3, 14, 0, 14, 0, 14, 0, 14, 0, 14, 1, 1, 0, 1], [1, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 1], [1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 2]]; game = {tileW:30}; game.Tile0 = function () { }; game.Tile0.prototype.walkable = true; game.Tile0.prototype.frame = 1; game.Tile14 = function () { }; game.Tile14.prototype.walkable = true; game.Tile14.prototype.frame = 14; game.Tile1 = function () { }; game.Tile1.prototype.walkable = false; game.Tile1.prototype.frame = 2; game.Tile2 = function () { }; game.Tile2.prototype.walkable = false; game.Tile2.prototype.frame = 3; game.Tile3 = function () { }; game.Tile3.prototype.walkable = false; game.Tile3.prototype.frame = 4; game.Tile4 = function () { }; game.Tile4.prototype.walkable = false; game.Tile4.prototype.frame = 5; game.Tile5 = function () { }; game.Tile5.prototype.walkable = false; game.Tile5.prototype.frame = 6; game.Tile11 = function () { }; game.Tile11.prototype.walkable = true; game.Tile11.prototype.frame = 11; game.Tile12 = function () { }; game.Tile12.prototype.walkable = true; game.Tile12.prototype.frame = 12; game.Tile13 = function () { }; game.Tile13.prototype.walkable = true; game.Tile13.prototype.frame = 13; car1 = {xtile:1, ytile:4, speed:10, width:30, height:30, correctcode:11, clipName:"car1"}; car2 = {xtile:8, ytile:8, speed:10, width:30, height:30, correctcode:11, clipName:"car1"}; car3 = {xtile:4, ytile:9, speed:10, width:30, height:30, correctcode:12, clipName:"car2"}; car4 = {xtile:5, ytile:5, speed:10, width:30, height:30, correctcode:12, clipName:"car2"}; car5 = {xtile:2, ytile:6, speed:10, width:30, height:30, correctcode:13, clipName:"car3"}; car6 = {xtile:9, ytile:2, speed:10, width:30, height:30, correctcode:13, clipName:"car3"}; totalCar = 6; buildMap(_root.myMap1); _root.tiles._xscale = 120; _root.tiles._yscale = 120; _root.mc_mask.swapDepths(_root.tiles); _root.gameBGSound.stop(); _root.gameBGSound = null; _root.gameBGSound = new Sound(); _root.gameBGSound.attachSound("bgSound"); _root.gameBGSound.start(0, 1000); _root.gameBGSound.setVolume(50); stop();
Instance of Symbol 44 MovieClip [empty] "controller" in Frame 38
onClipEvent (enterFrame) { _root.detectKeys(); } onClipEvent (keyDown) { if ((_root.movement == null) && (!_root.gameEndStatus)) { if (Key.isDown(39)) { _root.movement = "right"; } else if (Key.isDown(37)) { _root.movement = "left"; } else if (Key.isDown(38)) { _root.movement = "up"; } else if (Key.isDown(40)) { _root.movement = "down"; } else if (Key.getCode() == "90") { _root.objectRef = _root.car1; } else if (Key.getCode() == "88") { _root.objectRef = _root.car2; } else if (Key.getCode() == "67") { _root.objectRef = _root.car3; } else if (Key.getCode() == "86") { _root.objectRef = _root.car4; } } }
Instance of Symbol 229 MovieClip "tilesSwap" in Frame 38
/* no clip actions */
Instance of Symbol 245 MovieClip "mc_levelup" in Frame 38
onClipEvent (load) { nextLevel = 8; }
Instance of Symbol 250 MovieClip "mc_timeup" in Frame 38
onClipEvent (load) { function callFunc() { _root.reset7(); } }
Frame 40
function depreciateAmount() { _root.totalAmount = _root.totalAmount - 1; timeNum = 100 - _root.totalAmount; if (_root.totalAmount <= 0) { _root.gameEnd(); } } function buildMap(map) { _root.attachMovie("empty", "tiles", 2); _root.tiles.attachMovie("empty", "back", 0); game.clip = _root.tiles; game.clip._x = 280; game.clip._y = 0; var _local7 = map[0].length; var _local8 = map.length; var _local4 = 0; while (_local4 < _local8) { var _local3 = 0; while (_local3 < _local7) { var _local2 = (("t_" + _local4) + "_") + _local3; game[_local2] = new game["Tile" + map[_local4][_local3]](); if (game[_local2].walkable) { var _local5 = game.clip.back; } else { var _local5 = game.clip; } game[_local2].depth = (((((_local3 + _local4) * game.tileW) / 2) * 300) + ((_local3 - _local4) * game.tileW)) + 1; _local5.attachMovie("tile", _local2, game[_local2].depth); _local5[_local2]._x = (_local3 - _local4) * game.tileW; _local5[_local2]._y = ((_local3 + _local4) * game.tileW) / 2; _local5[_local2].gotoAndStop(game[_local2].frame); _local3++; } _local4++; } createCars(_root.totalCar + 1); } function createCars(num) { i = 1; while (i < num) { var _local3 = this["car" + i]; _local3.x = _local3.xtile * game.tileW; _local3.y = _local3.ytile * game.tileW; _local3.xiso = _local3.x - _local3.y; _local3.yiso = (_local3.x + _local3.y) / 2; _local3.depthshift = (game.tileW - _local3.height) / 2; _local3.depth = (((_local3.yiso - _local3.depthshift) * 300) + _local3.xiso) + 1; _local3.correctstatus = false; carName = "car" + i; dupName = _local3.clipName; carRef = game.clip.attachMovie(dupName, carName, _local3.depth); _local3.clip = carRef; _local3.clip.objectRef = _local3; _local3.clip._x = _local3.xiso; _local3.clip._y = _local3.yiso; _root.tileMap[_local3.ytile][_local3.xtile] = 20; var _local4 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local4].walkable = false; i++; } } function getMyCorners(x, y, ob) { ob.downY = Math.floor(((y + ob.height) - 1) / game.tileW); ob.upY = Math.floor(y / game.tileW); ob.leftX = Math.floor(x / game.tileW); ob.rightX = Math.floor(((x + ob.width) - 1) / game.tileW); ob.upleft = game[(("t_" + ob.upY) + "_") + ob.leftX].walkable; ob.downleft = game[(("t_" + ob.downY) + "_") + ob.leftX].walkable; ob.upright = game[(("t_" + ob.upY) + "_") + ob.rightX].walkable; ob.downright = game[(("t_" + ob.downY) + "_") + ob.rightX].walkable; } function moveChar(ob, dirx, diry) { getMyCorners(ob.x, ob.y + (ob.speed * diry), ob); if (diry == -1) { if (ob.upleft and ob.upright) { ob.y = ob.y + (ob.speed * diry); ob.clip.gotoAndStop("up"); } else { ob.y = ob.ytile * game.tileW; _root.movement = null; } } if (diry == 1) { if (ob.downleft and ob.downright) { ob.y = ob.y + (ob.speed * diry); ob.clip.gotoAndStop("down"); } else { ob.y = ((ob.ytile + 1) * game.tileW) - ob.height; _root.movement = null; } } getMyCorners(ob.x + (ob.speed * dirx), ob.y, ob); if (dirx == -1) { if (ob.downleft and ob.upleft) { ob.x = ob.x + (ob.speed * dirx); ob.clip.gotoAndStop("left"); } else { ob.x = ob.xtile * game.tileW; _root.movement = null; } } if (dirx == 1) { if (ob.upright and ob.downright) { ob.x = ob.x + (ob.speed * dirx); ob.clip.gotoAndStop("right"); } else { ob.x = ((ob.xtile + 1) * game.tileW) - ob.width; _root.movement = null; } } ob.xiso = ob.x - ob.y; ob.yiso = (ob.x + ob.y) / 2; ob.clip._x = ob.xiso; ob.clip._y = ob.yiso; ob.xtile = Math.floor(ob.x / game.tileW); ob.ytile = Math.floor(ob.y / game.tileW); _root.tileMap[ob.ytile][ob.xtile] = 20; var _local5 = (("t_" + ob.ytile) + "_") + ob.xtile; var _local6 = game[_local5].frame; game[_local5].walkable = false; ob.depth = (((ob.yiso - ob.depthshift) * 300) + ob.xiso) + 1; ob.clip.swapDepths(ob.depth); if (_local6 == ob.correctcode) { ob.correctstatus = true; checkLevelEnd(); } else { ob.correctstatus = false; } return(true); } function detectKeys() { var _local3 = _root.objectRef; if (_root.movement == "right") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 0, -1); } else if (_root.movement == "left") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 0, 1); } else if (_root.movement == "up") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, -1, 0); } else if (_root.movement == "down") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 1, 0); } if (!keyPressed) { _local3.clip.char.gotoAndStop(1); } else { _local3.clip.char.play(); } i = 1; while (i < (totalCar + 1)) { var _local4 = this["car" + i]; _local4.clip.fade._visible = true; i++; } _root.objectRef.clip.fade._visible = false; } function checkLevelEnd() { if (_root.movement == null) { i = 1; while (i < (totalCar + 1)) { var _local3 = this["car" + i].correctstatus; if (_local3 != true) { return(false); } i++; } if (!_root.levelEnd) { endLevel(); } } } function endLevel() { _root.score = _root.score + (_root.totalAmount * 10); clearInterval(_root.timerInterval); _root.tilesSwap.swapDepths(_root.tiles); _root.mc_levelup.gotoAndPlay(2); _root.levelEnd = true; return(undefined); } function gameEnd() { clearInterval(_root.timerInterval); _root.tilesSwap.swapDepths(_root.tiles); _root.mc_timeup.gotoAndPlay(2); _root.gameEndStatus = true; return(undefined); } function reset8() { clearInterval(timerInterval); _root.levelEnd = false; _root.gameEndStatus = false; _root.tiles.removeMovieClip(); _root.movement = null; _root.objectRef = null; _root.totalAmount = 100; _root.startGameStatus = true; gotoAndPlay ("level8"); } fscommand ("allowscale", false); _root.levelEnd = false; _root.gameEndStatus = false; _root.tiles.removeMovieClip(); _root.movement = null; _root.objectRef = null; _root.totalAmount = 100; _root.startGameStatus = true; _root.gameLevel = 8; if (_root.startGameStatus) { _root.timer_clip.gotoAndStop(1); _root.timerInterval = setInterval(depreciateAmount, 1000); _root.startGameStatus = false; } myMap1 = [[1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1], [1, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 1], [5, 14, 0, 14, 0, 11, 12, 14, 0, 14, 0, 14, 0, 1], [1, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 1], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 1], [1, 0, 14, 0, 14, 0, 4, 0, 14, 12, 2, 0, 14, 2], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 2], [1, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 1], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 1], [1, 0, 14, 0, 14, 11, 1, 0, 14, 0, 14, 0, 14, 1], [1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 2]]; game = {tileW:30}; game.Tile0 = function () { }; game.Tile0.prototype.walkable = true; game.Tile0.prototype.frame = 1; game.Tile14 = function () { }; game.Tile14.prototype.walkable = true; game.Tile14.prototype.frame = 14; game.Tile1 = function () { }; game.Tile1.prototype.walkable = false; game.Tile1.prototype.frame = 2; game.Tile2 = function () { }; game.Tile2.prototype.walkable = false; game.Tile2.prototype.frame = 3; game.Tile3 = function () { }; game.Tile3.prototype.walkable = false; game.Tile3.prototype.frame = 4; game.Tile4 = function () { }; game.Tile4.prototype.walkable = false; game.Tile4.prototype.frame = 5; game.Tile5 = function () { }; game.Tile5.prototype.walkable = false; game.Tile5.prototype.frame = 6; game.Tile11 = function () { }; game.Tile11.prototype.walkable = true; game.Tile11.prototype.frame = 11; game.Tile12 = function () { }; game.Tile12.prototype.walkable = true; game.Tile12.prototype.frame = 12; car1 = {xtile:4, ytile:1, speed:10, width:30, height:30, correctcode:11, clipName:"car1"}; car2 = {xtile:7, ytile:3, speed:10, width:30, height:30, correctcode:11, clipName:"car1"}; car3 = {xtile:7, ytile:6, speed:10, width:30, height:30, correctcode:12, clipName:"car2"}; car4 = {xtile:1, ytile:1, speed:10, width:30, height:30, correctcode:12, clipName:"car2"}; totalCar = 4; buildMap(_root.myMap1); _root.tiles._xscale = 120; _root.tiles._yscale = 120; _root.mc_mask.swapDepths(_root.tiles); _root.gameBGSound.stop(); _root.gameBGSound = null; _root.gameBGSound = new Sound(); _root.gameBGSound.attachSound("bgSound"); _root.gameBGSound.start(0, 1000); _root.gameBGSound.setVolume(50); stop();
Instance of Symbol 44 MovieClip [empty] "controller" in Frame 40
onClipEvent (enterFrame) { _root.detectKeys(); } onClipEvent (keyDown) { if ((_root.movement == null) && (!_root.gameEndStatus)) { if (Key.isDown(39)) { _root.movement = "right"; } else if (Key.isDown(37)) { _root.movement = "left"; } else if (Key.isDown(38)) { _root.movement = "up"; } else if (Key.isDown(40)) { _root.movement = "down"; } else if (Key.getCode() == "90") { _root.objectRef = _root.car1; } else if (Key.getCode() == "88") { _root.objectRef = _root.car2; } else if (Key.getCode() == "67") { _root.objectRef = _root.car3; } else if (Key.getCode() == "86") { _root.objectRef = _root.car4; } } }
Instance of Symbol 229 MovieClip "tilesSwap" in Frame 40
/* no clip actions */
Instance of Symbol 245 MovieClip "mc_levelup" in Frame 40
onClipEvent (load) { nextLevel = 9; }
Instance of Symbol 250 MovieClip "mc_timeup" in Frame 40
onClipEvent (load) { function callFunc() { _root.reset8(); } }
Frame 42
function depreciateAmount() { _root.totalAmount = _root.totalAmount - 1; timeNum = 100 - _root.totalAmount; if (_root.totalAmount <= 0) { _root.gameEnd(); } } function buildMap(map) { _root.attachMovie("empty", "tiles", 1); _root.tiles.attachMovie("empty", "back", 0); game.clip = _root.tiles; game.clip._x = 280; game.clip._y = 0; var _local7 = map[0].length; var _local8 = map.length; var _local4 = 0; while (_local4 < _local8) { var _local3 = 0; while (_local3 < _local7) { var _local2 = (("t_" + _local4) + "_") + _local3; game[_local2] = new game["Tile" + map[_local4][_local3]](); if (game[_local2].walkable) { var _local5 = game.clip.back; } else { var _local5 = game.clip; } game[_local2].depth = (((((_local3 + _local4) * game.tileW) / 2) * 300) + ((_local3 - _local4) * game.tileW)) + 1; _local5.attachMovie("tile", _local2, game[_local2].depth); _local5[_local2]._x = (_local3 - _local4) * game.tileW; _local5[_local2]._y = ((_local3 + _local4) * game.tileW) / 2; _local5[_local2].gotoAndStop(game[_local2].frame); _local3++; } _local4++; } createCars(_root.totalCar + 1); } function createCars(num) { i = 1; while (i < num) { var _local3 = this["car" + i]; _local3.x = _local3.xtile * game.tileW; _local3.y = _local3.ytile * game.tileW; _local3.xiso = _local3.x - _local3.y; _local3.yiso = (_local3.x + _local3.y) / 2; _local3.depthshift = (game.tileW - _local3.height) / 2; _local3.depth = (((_local3.yiso - _local3.depthshift) * 300) + _local3.xiso) + 1; _local3.correctstatus = false; carName = "car" + i; dupName = _local3.clipName; carRef = game.clip.attachMovie(dupName, carName, _local3.depth); _local3.clip = carRef; _local3.clip.objectRef = _local3; _local3.clip._x = _local3.xiso; _local3.clip._y = _local3.yiso; _root.tileMap[_local3.ytile][_local3.xtile] = 20; var _local4 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local4].walkable = false; i++; } } function getMyCorners(x, y, ob) { ob.downY = Math.floor(((y + ob.height) - 1) / game.tileW); ob.upY = Math.floor(y / game.tileW); ob.leftX = Math.floor(x / game.tileW); ob.rightX = Math.floor(((x + ob.width) - 1) / game.tileW); ob.upleft = game[(("t_" + ob.upY) + "_") + ob.leftX].walkable; ob.downleft = game[(("t_" + ob.downY) + "_") + ob.leftX].walkable; ob.upright = game[(("t_" + ob.upY) + "_") + ob.rightX].walkable; ob.downright = game[(("t_" + ob.downY) + "_") + ob.rightX].walkable; } function moveChar(ob, dirx, diry) { getMyCorners(ob.x, ob.y + (ob.speed * diry), ob); if (diry == -1) { if (ob.upleft and ob.upright) { ob.y = ob.y + (ob.speed * diry); ob.clip.gotoAndStop("up"); } else { ob.y = ob.ytile * game.tileW; _root.movement = null; } } if (diry == 1) { if (ob.downleft and ob.downright) { ob.y = ob.y + (ob.speed * diry); ob.clip.gotoAndStop("down"); } else { ob.y = ((ob.ytile + 1) * game.tileW) - ob.height; _root.movement = null; } } getMyCorners(ob.x + (ob.speed * dirx), ob.y, ob); if (dirx == -1) { if (ob.downleft and ob.upleft) { ob.x = ob.x + (ob.speed * dirx); ob.clip.gotoAndStop("left"); } else { ob.x = ob.xtile * game.tileW; _root.movement = null; } } if (dirx == 1) { if (ob.upright and ob.downright) { ob.x = ob.x + (ob.speed * dirx); ob.clip.gotoAndStop("right"); } else { ob.x = ((ob.xtile + 1) * game.tileW) - ob.width; _root.movement = null; } } ob.xiso = ob.x - ob.y; ob.yiso = (ob.x + ob.y) / 2; ob.clip._x = ob.xiso; ob.clip._y = ob.yiso; ob.xtile = Math.floor(ob.x / game.tileW); ob.ytile = Math.floor(ob.y / game.tileW); _root.tileMap[ob.ytile][ob.xtile] = 20; var _local5 = (("t_" + ob.ytile) + "_") + ob.xtile; var _local6 = game[_local5].frame; game[_local5].walkable = false; ob.depth = (((ob.yiso - ob.depthshift) * 300) + ob.xiso) + 1; ob.clip.swapDepths(ob.depth); if (_local6 == ob.correctcode) { ob.correctstatus = true; checkLevelEnd(); } else { ob.correctstatus = false; } return(true); } function detectKeys() { var _local3 = _root.objectRef; if (_root.movement == "right") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 0, -1); } else if (_root.movement == "left") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 0, 1); } else if (_root.movement == "up") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, -1, 0); } else if (_root.movement == "down") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 1, 0); } if (!keyPressed) { _local3.clip.char.gotoAndStop(1); } else { _local3.clip.char.play(); } i = 1; while (i < (totalCar + 1)) { var _local4 = this["car" + i]; _local4.clip.fade._visible = true; i++; } _root.objectRef.clip.fade._visible = false; } function checkLevelEnd() { if (_root.movement == null) { i = 1; while (i < (totalCar + 1)) { var _local3 = this["car" + i].correctstatus; if (_local3 != true) { return(false); } i++; } if (!_root.levelEnd) { endLevel(); } } } function endLevel() { clearInterval(_root.timerInterval); _root.score = _root.score + Number(_root.totalAmount * 10); _root.tilesSwap.swapDepths(_root.tiles); _root.mc_levelup.gotoAndPlay(2); _root.levelEnd = true; return(undefined); } function gameEnd() { clearInterval(_root.timerInterval); _root.tilesSwap.swapDepths(_root.tiles); _root.mc_timeup.gotoAndPlay(2); _root.gameEndStatus = true; return(undefined); } function reset9() { clearInterval(timerInterval); _root.levelEnd = false; _root.gameEndStatus = false; _root.tiles.removeMovieClip(); _root.movement = null; _root.objectRef = null; _root.totalAmount = 100; _root.startGameStatus = true; gotoAndPlay ("level9"); } fscommand ("allowscale", false); _root.levelEnd = false; _root.gameEndStatus = false; _root.tiles.removeMovieClip(); _root.movement = null; _root.objectRef = null; _root.totalAmount = 100; _root.startGameStatus = true; _root.gameLevel = 9; if (_root.startGameStatus) { _root.timer_clip.gotoAndStop(1); _root.timerInterval = setInterval(depreciateAmount, 1000); _root.startGameStatus = false; } myMap1 = [[1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1], [2, 0, 14, 0, 14, 0, 14, 0, 14, 0, 12, 0, 14, 1], [2, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 1], [1, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 1], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 2], [1, 11, 14, 0, 14, 0, 4, 0, 14, 0, 14, 0, 14, 2], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 13, 0, 1], [1, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 1], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 1], [1, 0, 14, 11, 14, 0, 14, 12, 13, 2, 14, 0, 14, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2]]; game = {tileW:30}; game.Tile0 = function () { }; game.Tile0.prototype.walkable = true; game.Tile0.prototype.frame = 1; game.Tile14 = function () { }; game.Tile14.prototype.walkable = true; game.Tile14.prototype.frame = 14; game.Tile1 = function () { }; game.Tile1.prototype.walkable = false; game.Tile1.prototype.frame = 2; game.Tile2 = function () { }; game.Tile2.prototype.walkable = false; game.Tile2.prototype.frame = 3; game.Tile3 = function () { }; game.Tile3.prototype.walkable = false; game.Tile3.prototype.frame = 4; game.Tile4 = function () { }; game.Tile4.prototype.walkable = false; game.Tile4.prototype.frame = 5; game.Tile11 = function () { }; game.Tile11.prototype.walkable = true; game.Tile11.prototype.frame = 11; game.Tile12 = function () { }; game.Tile12.prototype.walkable = true; game.Tile12.prototype.frame = 12; game.Tile13 = function () { }; game.Tile13.prototype.walkable = true; game.Tile13.prototype.frame = 13; car1 = {xtile:4, ytile:4, speed:10, width:30, height:30, correctcode:11, clipName:"car1"}; car2 = {xtile:2, ytile:8, speed:10, width:30, height:30, correctcode:11, clipName:"car1"}; car3 = {xtile:6, ytile:9, speed:10, width:30, height:30, correctcode:12, clipName:"car2"}; car4 = {xtile:3, ytile:5, speed:10, width:30, height:30, correctcode:12, clipName:"car2"}; car5 = {xtile:2, ytile:4, speed:10, width:30, height:30, correctcode:13, clipName:"car3"}; car6 = {xtile:2, ytile:1, speed:10, width:30, height:30, correctcode:13, clipName:"car3"}; totalCar = 6; buildMap(_root.myMap1); _root.tiles._xscale = 120; _root.tiles._yscale = 120; _root.mc_mask.swapDepths(_root.tiles); _root.gameBGSound.stop(); _root.gameBGSound = null; _root.gameBGSound = new Sound(); _root.gameBGSound.attachSound("bgSound"); _root.gameBGSound.start(0, 1000); _root.gameBGSound.setVolume(50); stop();
Instance of Symbol 44 MovieClip [empty] "controller" in Frame 42
onClipEvent (enterFrame) { _root.detectKeys(); } onClipEvent (keyDown) { if ((_root.movement == null) && (!_root.gameEndStatus)) { if (Key.isDown(39)) { _root.movement = "right"; } else if (Key.isDown(37)) { _root.movement = "left"; } else if (Key.isDown(38)) { _root.movement = "up"; } else if (Key.isDown(40)) { _root.movement = "down"; } else if (Key.getCode() == "90") { _root.objectRef = _root.car1; } else if (Key.getCode() == "88") { _root.objectRef = _root.car2; } else if (Key.getCode() == "67") { _root.objectRef = _root.car3; } else if (Key.getCode() == "86") { _root.objectRef = _root.car4; } } }
Instance of Symbol 229 MovieClip "tilesSwap" in Frame 42
/* no clip actions */
Instance of Symbol 245 MovieClip "mc_levelup" in Frame 42
onClipEvent (load) { nextLevel = 10; }
Instance of Symbol 250 MovieClip "mc_timeup" in Frame 42
onClipEvent (load) { function callFunc() { _root.reset9(); } }
Frame 44
function depreciateAmount() { _root.totalAmount = _root.totalAmount - 1; timeNum = 100 - _root.totalAmount; if (_root.totalAmount <= 0) { _root.gameEnd(); } } function buildMap(map) { _root.attachMovie("empty", "tiles", 1); _root.tiles.attachMovie("empty", "back", 0); game.clip = _root.tiles; game.clip._x = 280; game.clip._y = 0; var _local7 = map[0].length; var _local8 = map.length; var _local4 = 0; while (_local4 < _local8) { var _local3 = 0; while (_local3 < _local7) { var _local2 = (("t_" + _local4) + "_") + _local3; game[_local2] = new game["Tile" + map[_local4][_local3]](); if (game[_local2].walkable) { var _local5 = game.clip.back; } else { var _local5 = game.clip; } game[_local2].depth = (((((_local3 + _local4) * game.tileW) / 2) * 300) + ((_local3 - _local4) * game.tileW)) + 1; _local5.attachMovie("tile", _local2, game[_local2].depth); _local5[_local2]._x = (_local3 - _local4) * game.tileW; _local5[_local2]._y = ((_local3 + _local4) * game.tileW) / 2; _local5[_local2].gotoAndStop(game[_local2].frame); _local3++; } _local4++; } createCars(_root.totalCar + 1); } function createCars(num) { i = 1; while (i < num) { var _local3 = this["car" + i]; _local3.x = _local3.xtile * game.tileW; _local3.y = _local3.ytile * game.tileW; _local3.xiso = _local3.x - _local3.y; _local3.yiso = (_local3.x + _local3.y) / 2; _local3.depthshift = (game.tileW - _local3.height) / 2; _local3.depth = (((_local3.yiso - _local3.depthshift) * 300) + _local3.xiso) + 1; _local3.correctstatus = false; carName = "car" + i; dupName = _local3.clipName; carRef = game.clip.attachMovie(dupName, carName, _local3.depth); _local3.clip = carRef; _local3.clip.objectRef = _local3; _local3.clip._x = _local3.xiso; _local3.clip._y = _local3.yiso; _root.tileMap[_local3.ytile][_local3.xtile] = 20; var _local4 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local4].walkable = false; i++; } } function getMyCorners(x, y, ob) { ob.downY = Math.floor(((y + ob.height) - 1) / game.tileW); ob.upY = Math.floor(y / game.tileW); ob.leftX = Math.floor(x / game.tileW); ob.rightX = Math.floor(((x + ob.width) - 1) / game.tileW); ob.upleft = game[(("t_" + ob.upY) + "_") + ob.leftX].walkable; ob.downleft = game[(("t_" + ob.downY) + "_") + ob.leftX].walkable; ob.upright = game[(("t_" + ob.upY) + "_") + ob.rightX].walkable; ob.downright = game[(("t_" + ob.downY) + "_") + ob.rightX].walkable; } function moveChar(ob, dirx, diry) { getMyCorners(ob.x, ob.y + (ob.speed * diry), ob); if (diry == -1) { if (ob.upleft and ob.upright) { ob.y = ob.y + (ob.speed * diry); ob.clip.gotoAndStop("up"); } else { ob.y = ob.ytile * game.tileW; _root.movement = null; } } if (diry == 1) { if (ob.downleft and ob.downright) { ob.y = ob.y + (ob.speed * diry); ob.clip.gotoAndStop("down"); } else { ob.y = ((ob.ytile + 1) * game.tileW) - ob.height; _root.movement = null; } } getMyCorners(ob.x + (ob.speed * dirx), ob.y, ob); if (dirx == -1) { if (ob.downleft and ob.upleft) { ob.x = ob.x + (ob.speed * dirx); ob.clip.gotoAndStop("left"); } else { ob.x = ob.xtile * game.tileW; _root.movement = null; } } if (dirx == 1) { if (ob.upright and ob.downright) { ob.x = ob.x + (ob.speed * dirx); ob.clip.gotoAndStop("right"); } else { ob.x = ((ob.xtile + 1) * game.tileW) - ob.width; _root.movement = null; } } ob.xiso = ob.x - ob.y; ob.yiso = (ob.x + ob.y) / 2; ob.clip._x = ob.xiso; ob.clip._y = ob.yiso; ob.xtile = Math.floor(ob.x / game.tileW); ob.ytile = Math.floor(ob.y / game.tileW); _root.tileMap[ob.ytile][ob.xtile] = 20; var _local5 = (("t_" + ob.ytile) + "_") + ob.xtile; var _local6 = game[_local5].frame; game[_local5].walkable = false; ob.depth = (((ob.yiso - ob.depthshift) * 300) + ob.xiso) + 1; ob.clip.swapDepths(ob.depth); if (_local6 == ob.correctcode) { ob.correctstatus = true; checkLevelEnd(); } else { ob.correctstatus = false; } return(true); } function detectKeys() { var _local3 = _root.objectRef; if (_root.movement == "right") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 0, -1); } else if (_root.movement == "left") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 0, 1); } else if (_root.movement == "up") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, -1, 0); } else if (_root.movement == "down") { _root.tileMap[_local3.ytile][_local3.xtile] = 0; var _local5 = (("t_" + _local3.ytile) + "_") + _local3.xtile; game[_local5].walkable = true; keyPressed = _root.moveChar(_local3, 1, 0); } if (!keyPressed) { _local3.clip.char.gotoAndStop(1); } else { _local3.clip.char.play(); } i = 1; while (i < (totalCar + 1)) { var _local4 = this["car" + i]; _local4.clip.fade._visible = true; i++; } _root.objectRef.clip.fade._visible = false; } function checkLevelEnd() { if (_root.movement == null) { i = 1; while (i < (totalCar + 1)) { var _local3 = this["car" + i].correctstatus; if (_local3 != true) { return(false); } i++; } if (!_root.levelEnd) { endLevel(); } } } function endLevel() { _root.score = _root.score + (_root.totalAmount * 10); clearInterval(_root.timerInterval); _root.tilesSwap.swapDepths(_root.tiles); _root.mc_levelup.gotoAndPlay(2); _root.levelEnd = true; return(undefined); } function gameEnd() { clearInterval(_root.timerInterval); _root.tilesSwap.swapDepths(_root.tiles); _root.mc_timeup.gotoAndPlay(2); _root.gameEndStatus = true; return(undefined); } function congrats() { clearInterval(_root.timerInterval); _root.levelEnd = true; _root.gameBGSound.stop(); _root.gameBGSound = null; _root.tiles.removeMovieClip(); _root.movement = null; _root.objectRef = null; _root.totalAmount = 100; _root.startGameStatus = true; _root.gameEndStatus = true; gotoAndPlay (49); return(undefined); } function reset10() { clearInterval(timerInterval); _root.levelEnd = false; _root.gameEndStatus = false; _root.tiles.removeMovieClip(); _root.movement = null; _root.objectRef = null; _root.totalAmount = 100; _root.startGameStatus = true; gotoAndPlay ("level10"); } fscommand ("allowscale", false); _root.levelEnd = false; _root.gameEndStatus = false; _root.tiles.removeMovieClip(); _root.movement = null; _root.objectRef = null; _root.totalAmount = 100; _root.startGameStatus = true; _root.gameLevel = 10; if (_root.startGameStatus) { _root.timer_clip.gotoAndStop(1); _root.timerInterval = setInterval(depreciateAmount, 1000); _root.startGameStatus = false; } myMap1 = [[1, 1, 1, 5, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1], [1, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 1], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 1], [3, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 1], [1, 14, 0, 14, 1, 1, 4, 1, 1, 14, 0, 14, 0, 1], [1, 0, 14, 0, 11, 1, 12, 1, 13, 0, 14, 0, 14, 2], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 1], [1, 0, 1, 12, 14, 0, 14, 0, 14, 11, 1, 0, 14, 1], [1, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 1], [1, 0, 14, 0, 14, 0, 14, 0, 14, 0, 14, 0, 13, 1], [1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 2]]; game = {tileW:30}; game.Tile0 = function () { }; game.Tile0.prototype.walkable = true; game.Tile0.prototype.frame = 1; game.Tile14 = function () { }; game.Tile14.prototype.walkable = true; game.Tile14.prototype.frame = 14; game.Tile1 = function () { }; game.Tile1.prototype.walkable = false; game.Tile1.prototype.frame = 2; game.Tile2 = function () { }; game.Tile2.prototype.walkable = false; game.Tile2.prototype.frame = 3; game.Tile3 = function () { }; game.Tile3.prototype.walkable = false; game.Tile3.prototype.frame = 4; game.Tile4 = function () { }; game.Tile4.prototype.walkable = false; game.Tile4.prototype.frame = 5; game.Tile5 = function () { }; game.Tile5.prototype.walkable = false; game.Tile5.prototype.frame = 6; game.Tile11 = function () { }; game.Tile11.prototype.walkable = true; game.Tile11.prototype.frame = 11; game.Tile12 = function () { }; game.Tile12.prototype.walkable = true; game.Tile12.prototype.frame = 12; game.Tile13 = function () { }; game.Tile13.prototype.walkable = true; game.Tile13.prototype.frame = 13; car1 = {xtile:1, ytile:2, speed:10, width:30, height:30, correctcode:11, clipName:"car1"}; car2 = {xtile:6, ytile:2, speed:10, width:30, height:30, correctcode:11, clipName:"car1"}; car3 = {xtile:3, ytile:9, speed:10, width:30, height:30, correctcode:12, clipName:"car2"}; car4 = {xtile:9, ytile:5, speed:10, width:30, height:30, correctcode:12, clipName:"car2"}; car5 = {xtile:11, ytile:4, speed:10, width:30, height:30, correctcode:13, clipName:"car3"}; car6 = {xtile:4, ytile:1, speed:10, width:30, height:30, correctcode:13, clipName:"car3"}; totalCar = 6; buildMap(_root.myMap1); _root.tiles._xscale = 120; _root.tiles._yscale = 120; _root.mc_mask.swapDepths(_root.tiles); _root.gameBGSound.stop(); _root.gameBGSound = null; _root.gameBGSound = new Sound(); _root.gameBGSound.attachSound("bgSound"); _root.gameBGSound.start(0, 1000); _root.gameBGSound.setVolume(50); stop();
Instance of Symbol 44 MovieClip [empty] "controller" in Frame 44
onClipEvent (enterFrame) { _root.detectKeys(); } onClipEvent (keyDown) { if ((_root.movement == null) && (!_root.gameEndStatus)) { if (Key.isDown(39)) { _root.movement = "right"; } else if (Key.isDown(37)) { _root.movement = "left"; } else if (Key.isDown(38)) { _root.movement = "up"; } else if (Key.isDown(40)) { _root.movement = "down"; } else if (Key.getCode() == "90") { _root.objectRef = _root.car1; } else if (Key.getCode() == "88") { _root.objectRef = _root.car2; } else if (Key.getCode() == "67") { _root.objectRef = _root.car3; } else if (Key.getCode() == "86") { _root.objectRef = _root.car4; } } }
Instance of Symbol 229 MovieClip "tilesSwap" in Frame 44
/* no clip actions */
Instance of Symbol 260 MovieClip "mc_levelup" in Frame 44
onClipEvent (load) { nextLevel = 11; }
Instance of Symbol 250 MovieClip "mc_timeup" in Frame 44
onClipEvent (load) { function callFunc() { _root.reset10(); } }
Frame 45
fscommand ("allowscale", "false"); fscommand ("showmenu", "false");
Frame 48
stop();
Frame 49
fscommand ("allowscale", "false"); fscommand ("showmenu", "false");
Instance of Symbol 279 MovieClip in Frame 54
onClipEvent (load) { _root.scoreSubmit = false; } onClipEvent (enterFrame) { if (_parent.scoreName.text != "") { _parent.trans_btn._visible = false; } else if (_root.scoreSubmit != true) { _parent.trans_btn.useHandCursor = false; _parent.trans_btn._visible = true; } }
Frame 59
this.scoreText2.text = Math.ceil(_root.score);
Frame 64
stop();
Frame 80
stop();
Symbol 4 Button
on (release) { if (_root.movement == null) { _root.objectRef = this.objectRef; } }
Symbol 10 MovieClip [car2] Frame 1
stop();
Symbol 10 MovieClip [car2] Frame 2
stop();
Symbol 10 MovieClip [car2] Frame 3
stop();
Symbol 10 MovieClip [car2] Frame 4
stop();
Symbol 15 MovieClip [car3] Frame 1
stop(); stop();
Symbol 15 MovieClip [car3] Frame 2
stop();
Symbol 15 MovieClip [car3] Frame 3
stop();
Symbol 15 MovieClip [car3] Frame 4
stop();
Symbol 20 MovieClip [car1] Frame 1
stop(); stop();
Symbol 20 MovieClip [car1] Frame 2
stop();
Symbol 20 MovieClip [car1] Frame 3
stop();
Symbol 20 MovieClip [car1] Frame 4
stop();
Symbol 87 MovieClip Frame 95
stop();
Symbol 103 MovieClip Frame 180
stop(); _root.animationCompleted = true;
Instance of Symbol 108 MovieClip "bar_mc" in Symbol 109 MovieClip Frame 1
onClipEvent (enterFrame) { _xscale = (_root.percentDone * 4); }
Symbol 130 Button
on (press) { gotoAndStop (21); }
Symbol 137 Button
on (release) { gotoAndStop (26); }
Symbol 158 MovieClip Frame 20
stop();
Symbol 163 Button
on (release) { getURL ("http://www.flasharcade.com", "_blank"); }
Symbol 168 Button
on (release) { getURL ("http://www.flasharcade.com/flash-games/", "_blank"); }
Symbol 173 Button
on (release) { gotoAndPlay (65); }
Symbol 200 Button
on (press) { gotoAndPlay (2); }
Symbol 213 Button
on (release, keyPress "<Enter>") { gotoAndStop (26); }
Symbol 235 Button
on (release) { this.reset1(); }
Symbol 244 MovieClip Frame 26
stop();
Symbol 245 MovieClip Frame 1
stop();
Symbol 245 MovieClip Frame 2
btn.useHandCursor = false;
Symbol 245 MovieClip Frame 90
var lNum = ("level" + nextLevel); _root.gotoAndPlay(lNum);
Symbol 248 MovieClip Frame 26
stop();
Symbol 249 Button
on (release) { this.callFunc(); }
Symbol 250 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 2
btn.useHandCursor = false;
Symbol 250 MovieClip Frame 25
stop();
Symbol 251 Button
on (release) { this.reset2(); }
Symbol 252 Button
on (release) { this.reset3(); }
Symbol 253 Button
on (release) { this.reset4(); }
Symbol 254 Button
on (release) { this.reset5(); }
Symbol 255 Button
on (release) { this.reset6(); }
Symbol 256 Button
on (release) { this.reset7(); }
Symbol 257 Button
on (release) { this.reset8(); }
Symbol 258 Button
on (release) { this.reset9(); }
Symbol 259 Button
on (release) { this.reset10(); }
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 2
btn.useHandCursor = false; stop(); _root.congrats();
Symbol 266 Button
on (release) { gotoAndStop (2); }
Symbol 272 Button
on (release) { gotoAndPlay (2); }
Symbol 276 MovieClip Frame 1
stop();
Symbol 290 Button
on (release) { if ((this.scoreName.text != "") && (_root.scoreSubmit == false)) { trans_btn._visible = false; var lv = new LoadVars(); var lvAnswer = new LoadVars(); this.message_text.text = "Saving your score..."; lv.scoreName = this.scoreName.text; lv.scoreText = this.scoreText2.text; lv.gameId = "ace002"; lv.gameName = "Parking Mania"; lv.sendAndLoad("http://www.flasharcade.com/setscores.php", lvAnswer, "POST"); lvAnswer.onLoad = function (success) { if (lvAnswer.status1 == "success") { trans_btn._visible = true; message_text.text = "Your score is saved successfully."; gotoAndPlay (65); } else { trans_btn._visible = true; trans_btn.useHandCursor = false; message_text.text = "Your score could not be saved."; } }; } trans_btn._visible = true; trans_btn.useHandCursor = false; _root.scoreSubmit = true; }
Symbol 334 MovieClip Frame 12
var lv = new LoadVars(); var lvAnswer = new LoadVars(); lvAnswer.name0 = ""; lvAnswer.name1 = ""; lvAnswer.name2 = ""; lvAnswer.name3 = ""; lvAnswer.name4 = ""; lvAnswer.name5 = ""; lvAnswer.name6 = ""; lvAnswer.name7 = ""; lvAnswer.name8 = ""; lvAnswer.name9 = ""; lvAnswer.score0 = ""; lvAnswer.score1 = ""; lvAnswer.score2 = ""; lvAnswer.score3 = ""; lvAnswer.score4 = ""; lvAnswer.score5 = ""; lvAnswer.score6 = ""; lvAnswer.score7 = ""; lvAnswer.score8 = ""; lvAnswer.score9 = ""; lvAnswer.date0 = ""; lvAnswer.date1 = ""; lvAnswer.date2 = ""; lvAnswer.date3 = ""; lvAnswer.date4 = ""; lvAnswer.date5 = ""; lvAnswer.date6 = ""; lvAnswer.date7 = ""; lvAnswer.date8 = ""; lvAnswer.date9 = ""; this.get_message_text.text = ""; lv.gameId = "ace002"; lv.sendAndLoad("http://www.flasharcade.com/getscores.php", lvAnswer, "POST"); lvAnswer.onLoad = function (success) { if (lvAnswer.status1 == "success") { _root.score_mc.name0.text = this.name0; _root.score_mc.name1.text = this.name1; _root.score_mc.name2.text = this.name2; _root.score_mc.name3.text = this.name3; _root.score_mc.name4.text = this.name4; _root.score_mc.name5.text = this.name5; _root.score_mc.name6.text = this.name6; _root.score_mc.name7.text = this.name7; _root.score_mc.name8.text = this.name8; _root.score_mc.name9.text = this.name9; _root.score_mc.score0.text = this.score0; _root.score_mc.score1.text = this.score1; _root.score_mc.score2.text = this.score2; _root.score_mc.score3.text = this.score3; _root.score_mc.score4.text = this.score4; _root.score_mc.score5.text = this.score5; _root.score_mc.score6.text = this.score6; _root.score_mc.score7.text = this.score7; _root.score_mc.score8.text = this.score8; _root.score_mc.score9.text = this.score9; _root.score_mc.date0.text = this.date0; _root.score_mc.date1.text = this.date1; _root.score_mc.date2.text = this.date2; _root.score_mc.date3.text = this.date3; _root.score_mc.date4.text = this.date4; _root.score_mc.date5.text = this.date5; _root.score_mc.date6.text = this.date6; _root.score_mc.date7.text = this.date7; _root.score_mc.date8.text = this.date8; _root.score_mc.date9.text = this.date9; } }; stop();

Library Items

Symbol 1 Sound [bgSound]
Symbol 2 GraphicUsed by:10
Symbol 3 GraphicUsed by:4 236
Symbol 4 ButtonUses:3Used by:10 15 20
Symbol 5 GraphicUsed by:6
Symbol 6 MovieClipUses:5Used by:10 15 20
Symbol 7 GraphicUsed by:10
Symbol 8 GraphicUsed by:10
Symbol 9 GraphicUsed by:10
Symbol 10 MovieClip [car2]Uses:2 4 6 7 8 9
Symbol 11 GraphicUsed by:15
Symbol 12 GraphicUsed by:15
Symbol 13 GraphicUsed by:15
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClip [car3]Uses:11 4 6 12 13 14
Symbol 16 GraphicUsed by:20
Symbol 17 GraphicUsed by:20
Symbol 18 GraphicUsed by:20
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClip [car1]Uses:16 4 6 17 18 19
Symbol 21 BitmapUsed by:22 38
Symbol 22 GraphicUses:21Used by:23 39
Symbol 23 MovieClipUses:22Used by:43
Symbol 24 BitmapUsed by:25 28 31 34 38
Symbol 25 GraphicUses:24Used by:26
Symbol 26 MovieClipUses:25Used by:27 43
Symbol 27 MovieClipUses:26Used by:43
Symbol 28 GraphicUses:24Used by:29
Symbol 29 MovieClipUses:28Used by:43
Symbol 30 BitmapUsed by:31
Symbol 31 GraphicUses:30 24Used by:43
Symbol 32 BitmapUsed by:34
Symbol 33 BitmapUsed by:34
Symbol 34 GraphicUses:32 33 24Used by:43
Symbol 35 GraphicUsed by:43
Symbol 36 BitmapUsed by:38
Symbol 37 BitmapUsed by:38
Symbol 38 GraphicUses:21 24 36 37Used by:43
Symbol 39 MovieClipUses:22Used by:43
Symbol 40 GraphicUsed by:43
Symbol 41 GraphicUsed by:43
Symbol 42 GraphicUsed by:43
Symbol 43 MovieClip [tile]Uses:23 26 27 29 31 34 35 38 39 40 41 42
Symbol 44 MovieClip [empty]Used by:Timeline
Symbol 45 FontUsed by:46
Symbol 46 EditableTextUses:45Used by:47
Symbol 47 MovieClip [mc_amount]Uses:46Used by:214
Symbol 48 GraphicUsed by:49
Symbol 49 MovieClipUses:48Used by:Timeline
Symbol 50 GraphicUsed by:51
Symbol 51 MovieClipUses:50Used by:103
Symbol 52 BitmapUsed by:53
Symbol 53 GraphicUses:52Used by:54
Symbol 54 MovieClipUses:53Used by:103
Symbol 55 SoundUsed by:103
Symbol 56 GraphicUsed by:57
Symbol 57 MovieClipUses:56Used by:87 89 91
Symbol 58 SoundUsed by:87
Symbol 59 GraphicUsed by:60
Symbol 60 MovieClipUses:59Used by:87 89 91
Symbol 61 GraphicUsed by:62
Symbol 62 MovieClipUses:61Used by:87 89 91
Symbol 63 GraphicUsed by:64
Symbol 64 MovieClipUses:63Used by:87 89 91
Symbol 65 GraphicUsed by:66
Symbol 66 MovieClipUses:65Used by:87 89 91
Symbol 67 GraphicUsed by:68
Symbol 68 MovieClipUses:67Used by:87 89 91
Symbol 69 SoundUsed by:87
Symbol 70 GraphicUsed by:71
Symbol 71 MovieClipUses:70Used by:87 89 91
Symbol 72 GraphicUsed by:73
Symbol 73 MovieClipUses:72Used by:87 89 91
Symbol 74 GraphicUsed by:75
Symbol 75 MovieClipUses:74Used by:87 89 91
Symbol 76 GraphicUsed by:77
Symbol 77 MovieClipUses:76Used by:87 89 91
Symbol 78 GraphicUsed by:79
Symbol 79 MovieClipUses:78Used by:87 89 91
Symbol 80 SoundUsed by:87
Symbol 81 GraphicUsed by:82
Symbol 82 MovieClipUses:81Used by:87 89 91
Symbol 83 GraphicUsed by:84
Symbol 84 MovieClipUses:83Used by:87 89 91
Symbol 85 GraphicUsed by:86
Symbol 86 MovieClipUses:85Used by:87 89 91
Symbol 87 MovieClipUses:57 58 60 62 64 66 68 69 71 73 75 77 79 80 82 84 86Used by:103
Symbol 88 SoundUsed by:89
Symbol 89 MovieClipUses:86 84 82 79 77 75 68 73 71 57 60 62 64 66 88Used by:103
Symbol 90 SoundUsed by:103
Symbol 91 MovieClipUses:86 84 82 79 77 75 68 73 71 57 60 62 64 66Used by:103
Symbol 92 GraphicUsed by:93
Symbol 93 MovieClipUses:92Used by:103
Symbol 94 GraphicUsed by:96
Symbol 95 GraphicUsed by:96
Symbol 96 MovieClipUses:94 95Used by:103
Symbol 97 BitmapUsed by:98
Symbol 98 GraphicUses:97Used by:99
Symbol 99 MovieClipUses:98Used by:103
Symbol 100 FontUsed by:101
Symbol 101 TextUses:100Used by:102
Symbol 102 MovieClipUses:101Used by:103
Symbol 103 MovieClipUses:51 54 55 87 89 90 91 93 96 99 102Used by:Timeline
Symbol 104 GraphicUsed by:Timeline
Symbol 105 GraphicUsed by:106
Symbol 106 MovieClipUses:105Used by:Timeline
Symbol 107 GraphicUsed by:108
Symbol 108 MovieClipUses:107Used by:109
Symbol 109 MovieClipUses:108Used by:Timeline
Symbol 110 FontUsed by:111 283
Symbol 111 EditableTextUses:110Used by:112
Symbol 112 MovieClipUses:111Used by:Timeline
Symbol 113 BitmapUsed by:114
Symbol 114 GraphicUses:113Used by:Timeline
Symbol 115 BitmapUsed by:116 175 237
Symbol 116 GraphicUses:115Used by:117
Symbol 117 MovieClipUses:116Used by:Timeline
Symbol 118 GraphicUsed by:119
Symbol 119 MovieClipUses:118Used by:Timeline
Symbol 120 GraphicUsed by:125 130
Symbol 121 GraphicUsed by:122 130 137 173
Symbol 122 MovieClipUses:121Used by:125 129 136 172 173
Symbol 123 FontUsed by:124 139 165 170 184 195 242 246 274 283
Symbol 124 TextUses:123Used by:125 129 130
Symbol 125 MovieClipUses:120 122 124Used by:130
Symbol 126 ShapeTweeningUsed by:129
Symbol 127 ShapeTweeningUsed by:129
Symbol 128 GraphicUsed by:129 172
Symbol 129 MovieClipUses:126 122 124 127 128Used by:130
Symbol 130 ButtonUses:125 129 120 121 124Used by:Timeline
Symbol 131 ShapeTweeningUsed by:136 137
Symbol 132 FontUsed by:133 231 269 287
Symbol 133 TextUses:132Used by:136 137
Symbol 134 ShapeTweeningUsed by:136
Symbol 135 GraphicUsed by:136
Symbol 136 MovieClipUses:131 122 133 134 135Used by:137
Symbol 137 ButtonUses:136 131 121 133Used by:Timeline
Symbol 138 GraphicUsed by:163
Symbol 139 TextUses:123Used by:140
Symbol 140 MovieClipUses:139Used by:163
Symbol 141 GraphicUsed by:163 168
Symbol 142 GraphicUsed by:143
Symbol 143 MovieClipUses:142Used by:163 168
Symbol 144 GraphicUsed by:163 168
Symbol 145 GraphicUsed by:146
Symbol 146 MovieClipUses:145Used by:157
Symbol 147 GraphicUsed by:148
Symbol 148 MovieClipUses:147Used by:157
Symbol 149 GraphicUsed by:150
Symbol 150 MovieClipUses:149Used by:157
Symbol 151 FontUsed by:152 153 154 155
Symbol 152 TextUses:151Used by:156
Symbol 153 TextUses:151Used by:156
Symbol 154 TextUses:151Used by:156
Symbol 155 TextUses:151Used by:156
Symbol 156 MovieClipUses:152 153 154 155Used by:157
Symbol 157 MovieClipUses:146 148 150 156Used by:158
Symbol 158 MovieClipUses:157Used by:163
Symbol 159 GraphicUsed by:160 163 168
Symbol 160 MovieClipUses:159Used by:163 168
Symbol 161 BitmapUsed by:162
Symbol 162 GraphicUses:161Used by:163
Symbol 163 ButtonUses:138 140 141 143 144 158 160 162 159Used by:250  Timeline
Symbol 164 GraphicUsed by:168
Symbol 165 TextUses:123Used by:166
Symbol 166 MovieClipUses:165Used by:168
Symbol 167 GraphicUsed by:168
Symbol 168 ButtonUses:164 166 141 143 144 160 167 159Used by:Timeline
Symbol 169 ShapeTweeningUsed by:172 173
Symbol 170 TextUses:123Used by:172 173
Symbol 171 ShapeTweeningUsed by:172
Symbol 172 MovieClipUses:169 122 170 171 128Used by:173
Symbol 173 ButtonUses:169 122 170 172 121Used by:Timeline
Symbol 174 GraphicUsed by:Timeline
Symbol 175 GraphicUses:115Used by:179
Symbol 176 BitmapUsed by:177
Symbol 177 GraphicUses:176Used by:178
Symbol 178 MovieClipUses:177Used by:179 238
Symbol 179 MovieClipUses:175 178Used by:180
Symbol 180 MovieClipUses:179Used by:Timeline
Symbol 181 GraphicUsed by:Timeline
Symbol 182 GraphicUsed by:183 229
Symbol 183 MovieClipUses:182Used by:185 243 247 275
Symbol 184 TextUses:123Used by:185
Symbol 185 MovieClipUses:183 184Used by:Timeline
Symbol 186 GraphicUsed by:187
Symbol 187 MovieClipUses:186Used by:188 189
Symbol 188 MovieClipUses:187Used by:190
Symbol 189 MovieClipUses:187Used by:190
Symbol 190 MovieClipUses:188 189Used by:245 250  Timeline
Symbol 191 GraphicUsed by:Timeline
Symbol 192 GraphicUsed by:196 199 200 289
Symbol 193 GraphicUsed by:194 200 235 249 251 252 253 254 255 256 257 258 259 272 290
Symbol 194 MovieClipUses:193Used by:196 199 234 271 289
Symbol 195 TextUses:123Used by:196 199 200
Symbol 196 MovieClipUses:192 194 195Used by:200
Symbol 197 ShapeTweeningUsed by:199
Symbol 198 ShapeTweeningUsed by:199
Symbol 199 MovieClipUses:197 194 195 198 192Used by:200
Symbol 200 ButtonUses:196 199 192 193 195Used by:Timeline
Symbol 201 FontUsed by:202 283 284 285 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333
Symbol 202 TextUses:201Used by:Timeline
Symbol 203 GraphicUsed by:Timeline
Symbol 204 BitmapUsed by:205
Symbol 205 GraphicUses:204Used by:208
Symbol 206 GraphicUsed by:207
Symbol 207 MovieClipUses:206Used by:208
Symbol 208 MovieClipUses:205 207Used by:Timeline
Symbol 209 FontUsed by:210
Symbol 210 EditableTextUses:209Used by:211
Symbol 211 MovieClipUses:210Used by:Timeline
Symbol 212 GraphicUsed by:213
Symbol 213 ButtonUses:212Used by:Timeline
Symbol 214 MovieClipUses:47Used by:Timeline
Symbol 215 GraphicUsed by:Timeline
Symbol 216 GraphicUsed by:217
Symbol 217 MovieClipUses:216Used by:Timeline
Symbol 218 GraphicUsed by:Timeline
Symbol 219 GraphicUsed by:Timeline
Symbol 220 FontUsed by:221 226
Symbol 221 EditableTextUses:220Used by:222
Symbol 222 MovieClipUses:221Used by:223
Symbol 223 MovieClipUses:222Used by:Timeline
Symbol 224 GraphicUsed by:Timeline
Symbol 225 GraphicUsed by:Timeline
Symbol 226 EditableTextUses:220Used by:227
Symbol 227 MovieClipUses:226Used by:228
Symbol 228 MovieClipUses:227Used by:Timeline
Symbol 229 MovieClipUses:182Used by:Timeline
Symbol 230 ShapeTweeningUsed by:234 235 249 251 252 253 254 255 256 257 258 259
Symbol 231 TextUses:132Used by:234 235 249 251 252 253 254 255 256 257 258 259
Symbol 232 ShapeTweeningUsed by:234
Symbol 233 GraphicUsed by:234 271
Symbol 234 MovieClipUses:230 194 231 232 233Used by:235 249 251 252 253 254 255 256 257 258 259
Symbol 235 ButtonUses:234 230 193 231Used by:Timeline
Symbol 236 ButtonUses:3Used by:245 250 260
Symbol 237 GraphicUses:115Used by:238
Symbol 238 MovieClipUses:237 178Used by:245 250  Timeline
Symbol 239 GraphicUsed by:240
Symbol 240 MovieClipUses:239Used by:244 248 276
Symbol 241 GraphicUsed by:244 248 276
Symbol 242 TextUses:123Used by:243
Symbol 243 MovieClipUses:183 242Used by:244
Symbol 244 MovieClipUses:240 241 243Used by:245
Symbol 245 MovieClipUses:236 238 244 190Used by:Timeline
Symbol 246 TextUses:123Used by:247
Symbol 247 MovieClipUses:183 246Used by:248
Symbol 248 MovieClipUses:240 241 247Used by:250
Symbol 249 ButtonUses:234 230 193 231Used by:250
Symbol 250 MovieClipUses:236 238 248 190 249 163Used by:Timeline
Symbol 251 ButtonUses:234 230 193 231Used by:Timeline
Symbol 252 ButtonUses:234 230 193 231Used by:Timeline
Symbol 253 ButtonUses:234 230 193 231Used by:Timeline
Symbol 254 ButtonUses:234 230 193 231Used by:Timeline
Symbol 255 ButtonUses:234 230 193 231Used by:Timeline
Symbol 256 ButtonUses:234 230 193 231Used by:Timeline
Symbol 257 ButtonUses:234 230 193 231Used by:Timeline
Symbol 258 ButtonUses:234 230 193 231Used by:Timeline
Symbol 259 ButtonUses:234 230 193 231Used by:Timeline
Symbol 260 MovieClipUses:236Used by:Timeline
Symbol 261 FontUsed by:262 263 264
Symbol 262 TextUses:261Used by:266
Symbol 263 TextUses:261Used by:266
Symbol 264 TextUses:261Used by:266
Symbol 265 GraphicUsed by:266
Symbol 266 ButtonUses:262 263 264 265Used by:Timeline
Symbol 267 MovieClipUsed by:Timeline
Symbol 268 ShapeTweeningUsed by:271 272
Symbol 269 TextUses:132Used by:271 272
Symbol 270 ShapeTweeningUsed by:271
Symbol 271 MovieClipUses:268 194 269 270 233Used by:272
Symbol 272 ButtonUses:271 268 193 269Used by:Timeline
Symbol 273 GraphicUsed by:276
Symbol 274 TextUses:123Used by:275
Symbol 275 MovieClipUses:183 274Used by:276
Symbol 276 MovieClipUses:273 275 241 240Used by:Timeline
Symbol 277 GraphicUsed by:Timeline
Symbol 278 GraphicUsed by:279
Symbol 279 MovieClipUses:278Used by:Timeline
Symbol 280 FontUsed by:281 282
Symbol 281 TextUses:280Used by:Timeline
Symbol 282 TextUses:280Used by:Timeline
Symbol 283 EditableTextUses:110 123 201Used by:Timeline
Symbol 284 EditableTextUses:201Used by:Timeline
Symbol 285 EditableTextUses:201Used by:Timeline
Symbol 286 ShapeTweeningUsed by:289 290
Symbol 287 TextUses:132Used by:289 290
Symbol 288 ShapeTweeningUsed by:289
Symbol 289 MovieClipUses:286 194 287 288 192Used by:290
Symbol 290 ButtonUses:289 286 193 287Used by:Timeline
Symbol 291 GraphicUsed by:292
Symbol 292 ButtonUses:291Used by:Timeline
Symbol 293 GraphicUsed by:294
Symbol 294 MovieClipUses:293Used by:334
Symbol 295 GraphicUsed by:334
Symbol 296 FontUsed by:297 298
Symbol 297 TextUses:296Used by:334
Symbol 298 TextUses:296Used by:334
Symbol 299 GraphicUsed by:334
Symbol 300 EditableTextUses:201Used by:334
Symbol 301 EditableTextUses:201Used by:334
Symbol 302 EditableTextUses:201Used by:334
Symbol 303 EditableTextUses:201Used by:334
Symbol 304 EditableTextUses:201Used by:334
Symbol 305 EditableTextUses:201Used by:334
Symbol 306 EditableTextUses:201Used by:334
Symbol 307 EditableTextUses:201Used by:334
Symbol 308 EditableTextUses:201Used by:334
Symbol 309 EditableTextUses:201Used by:334
Symbol 310 EditableTextUses:201Used by:334
Symbol 311 EditableTextUses:201Used by:334
Symbol 312 EditableTextUses:201Used by:334
Symbol 313 EditableTextUses:201Used by:334
Symbol 314 EditableTextUses:201Used by:334
Symbol 315 EditableTextUses:201Used by:334
Symbol 316 EditableTextUses:201Used by:334
Symbol 317 EditableTextUses:201Used by:334
Symbol 318 EditableTextUses:201Used by:334
Symbol 319 EditableTextUses:201Used by:334
Symbol 320 EditableTextUses:201Used by:334
Symbol 321 EditableTextUses:201Used by:334
Symbol 322 EditableTextUses:201Used by:334
Symbol 323 EditableTextUses:201Used by:334
Symbol 324 EditableTextUses:201Used by:334
Symbol 325 EditableTextUses:201Used by:334
Symbol 326 EditableTextUses:201Used by:334
Symbol 327 EditableTextUses:201Used by:334
Symbol 328 EditableTextUses:201Used by:334
Symbol 329 EditableTextUses:201Used by:334
Symbol 330 EditableTextUses:201Used by:334
Symbol 331 EditableTextUses:201Used by:334
Symbol 332 EditableTextUses:201Used by:334
Symbol 333 EditableTextUses:201Used by:334
Symbol 334 MovieClipUses:294 295 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333Used by:Timeline

Instance Names

"bg"Frame 1Symbol 49 MovieClip
"animation"Frame 1Symbol 103 MovieClip
"progressBar_mc"Frame 1Symbol 106 MovieClip
"progressbar"Frame 1Symbol 109 MovieClip
"percenttext"Frame 1Symbol 112 MovieClip
"controller"Frame 26Symbol 44 MovieClip [empty]
"tilesSwap"Frame 26Symbol 229 MovieClip
"mc_levelup"Frame 26Symbol 245 MovieClip
"mc_timeup"Frame 26Symbol 250 MovieClip
"controller"Frame 28Symbol 44 MovieClip [empty]
"tilesSwap"Frame 28Symbol 229 MovieClip
"mc_levelup"Frame 28Symbol 245 MovieClip
"mc_timeup"Frame 28Symbol 250 MovieClip
"controller"Frame 30Symbol 44 MovieClip [empty]
"tilesSwap"Frame 30Symbol 229 MovieClip
"mc_levelup"Frame 30Symbol 245 MovieClip
"mc_timeup"Frame 30Symbol 250 MovieClip
"controller"Frame 32Symbol 44 MovieClip [empty]
"tilesSwap"Frame 32Symbol 229 MovieClip
"mc_levelup"Frame 32Symbol 245 MovieClip
"mc_timeup"Frame 32Symbol 250 MovieClip
"controller"Frame 34Symbol 44 MovieClip [empty]
"tilesSwap"Frame 34Symbol 229 MovieClip
"mc_levelup"Frame 34Symbol 245 MovieClip
"mc_timeup"Frame 34Symbol 250 MovieClip
"controller"Frame 36Symbol 44 MovieClip [empty]
"tilesSwap"Frame 36Symbol 229 MovieClip
"mc_levelup"Frame 36Symbol 245 MovieClip
"mc_timeup"Frame 36Symbol 250 MovieClip
"controller"Frame 38Symbol 44 MovieClip [empty]
"tilesSwap"Frame 38Symbol 229 MovieClip
"mc_levelup"Frame 38Symbol 245 MovieClip
"mc_timeup"Frame 38Symbol 250 MovieClip
"controller"Frame 40Symbol 44 MovieClip [empty]
"tilesSwap"Frame 40Symbol 229 MovieClip
"mc_levelup"Frame 40Symbol 245 MovieClip
"mc_timeup"Frame 40Symbol 250 MovieClip
"controller"Frame 42Symbol 44 MovieClip [empty]
"tilesSwap"Frame 42Symbol 229 MovieClip
"mc_levelup"Frame 42Symbol 245 MovieClip
"mc_timeup"Frame 42Symbol 250 MovieClip
"controller"Frame 44Symbol 44 MovieClip [empty]
"tilesSwap"Frame 44Symbol 229 MovieClip
"mc_levelup"Frame 44Symbol 260 MovieClip
"mc_timeup"Frame 44Symbol 250 MovieClip
"scoreText2"Frame 54Symbol 283 EditableText
"message_text"Frame 54Symbol 284 EditableText
"scoreName"Frame 54Symbol 285 EditableText
"trans_btn"Frame 58Symbol 292 Button
"score_mc"Frame 68Symbol 334 MovieClip
"fade"Symbol 10 MovieClip [car2] Frame 1Symbol 6 MovieClip
"fade"Symbol 15 MovieClip [car3] Frame 1Symbol 6 MovieClip
"fade"Symbol 20 MovieClip [car1] Frame 1Symbol 6 MovieClip
"bar_mc"Symbol 109 MovieClip Frame 1Symbol 108 MovieClip
"percentText"Symbol 112 MovieClip Frame 1Symbol 111 EditableText
"mc_amount"Symbol 214 MovieClip Frame 1Symbol 47 MovieClip [mc_amount]
"btn"Symbol 245 MovieClip Frame 2Symbol 236 Button
"btn"Symbol 250 MovieClip Frame 2Symbol 236 Button
"btn"Symbol 260 MovieClip Frame 2Symbol 236 Button
"name0"Symbol 334 MovieClip Frame 12Symbol 303 EditableText
"score0"Symbol 334 MovieClip Frame 12Symbol 304 EditableText
"date0"Symbol 334 MovieClip Frame 12Symbol 305 EditableText
"name1"Symbol 334 MovieClip Frame 12Symbol 306 EditableText
"score1"Symbol 334 MovieClip Frame 12Symbol 307 EditableText
"date1"Symbol 334 MovieClip Frame 12Symbol 308 EditableText
"name2"Symbol 334 MovieClip Frame 12Symbol 309 EditableText
"score2"Symbol 334 MovieClip Frame 12Symbol 310 EditableText
"date2"Symbol 334 MovieClip Frame 12Symbol 311 EditableText
"name3"Symbol 334 MovieClip Frame 12Symbol 312 EditableText
"score3"Symbol 334 MovieClip Frame 12Symbol 313 EditableText
"date3"Symbol 334 MovieClip Frame 12Symbol 314 EditableText
"name4"Symbol 334 MovieClip Frame 12Symbol 315 EditableText
"score4"Symbol 334 MovieClip Frame 12Symbol 316 EditableText
"date4"Symbol 334 MovieClip Frame 12Symbol 317 EditableText
"name5"Symbol 334 MovieClip Frame 12Symbol 318 EditableText
"score5"Symbol 334 MovieClip Frame 12Symbol 319 EditableText
"date5"Symbol 334 MovieClip Frame 12Symbol 320 EditableText
"name6"Symbol 334 MovieClip Frame 12Symbol 321 EditableText
"score6"Symbol 334 MovieClip Frame 12Symbol 322 EditableText
"date6"Symbol 334 MovieClip Frame 12Symbol 323 EditableText
"name7"Symbol 334 MovieClip Frame 12Symbol 324 EditableText
"score7"Symbol 334 MovieClip Frame 12Symbol 325 EditableText
"date7"Symbol 334 MovieClip Frame 12Symbol 326 EditableText
"name8"Symbol 334 MovieClip Frame 12Symbol 327 EditableText
"score8"Symbol 334 MovieClip Frame 12Symbol 328 EditableText
"date8"Symbol 334 MovieClip Frame 12Symbol 329 EditableText
"name9"Symbol 334 MovieClip Frame 12Symbol 330 EditableText
"score9"Symbol 334 MovieClip Frame 12Symbol 331 EditableText
"date9"Symbol 334 MovieClip Frame 12Symbol 332 EditableText
"get_message_text"Symbol 334 MovieClip Frame 12Symbol 333 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "bgSound"
ExportAssets (56)Timeline Frame 1Symbol 10 as "car2"
ExportAssets (56)Timeline Frame 1Symbol 15 as "car3"
ExportAssets (56)Timeline Frame 1Symbol 20 as "car1"
ExportAssets (56)Timeline Frame 1Symbol 43 as "tile"
ExportAssets (56)Timeline Frame 1Symbol 44 as "empty"
ExportAssets (56)Timeline Frame 1Symbol 47 as "mc_amount"

Labels

"level1"Frame 25
"level2"Frame 27
"level3"Frame 29
"level4"Frame 31
"level5"Frame 33
"level6"Frame 35
"level7"Frame 37
"level8"Frame 39
"level9"Frame 41
"level10"Frame 43
"loser"Frame 48
"winner"Frame 49
"right"Symbol 10 MovieClip [car2] Frame 1
"left"Symbol 10 MovieClip [car2] Frame 2
"up"Symbol 10 MovieClip [car2] Frame 3
"down"Symbol 10 MovieClip [car2] Frame 4
"right"Symbol 15 MovieClip [car3] Frame 1
"left"Symbol 15 MovieClip [car3] Frame 2
"up"Symbol 15 MovieClip [car3] Frame 3
"down"Symbol 15 MovieClip [car3] Frame 4
"right"Symbol 20 MovieClip [car1] Frame 1
"left"Symbol 20 MovieClip [car1] Frame 2
"up"Symbol 20 MovieClip [car1] Frame 3
"down"Symbol 20 MovieClip [car1] Frame 4

Dynamic Text Variables

_root.gameLevelSymbol 46 EditableText"10"
percentSymbol 111 EditableText"0 %"
textSymbol 210 EditableText""
_root.totalAmountSymbol 221 EditableText"100"
_root.scoreSymbol 226 EditableText"0"




http://swfchan.com/24/115978/info.shtml
Created: 9/3 -2019 05:06:38 Last modified: 9/3 -2019 05:06:38 Server time: 06/05 -2024 02:56:14