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

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

542800707.swf

This is the info page for
Flash #12712

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


Text
Next Level

Reset board

New Game

Play Again

ActionScript [AS1/AS2]

Frame 1
function startCompetition() { bg.gotoAndStop(3); bg.but_next._visible = false; bg.but_back.onRelease = backToStart; bg.but_reset.gotoAndStop(2); bg.but_start.onRelease = function () { bg.but_next._visible = true; board.loadCompetition(); }; getHighscore(); } function startTraining() { bg.gotoAndStop(2); bg.but_next._visible = false; bg.but_back.onRelease = backToStart; bg.but_start.onRelease = function () { board.loadTraining(); }; bg.but_reset.gotoAndStop(2); bg.createEmptyMovieClip("container", 1); bg.container._x = 426; bg.container._y = 211; loadLevelMenu(1); loadLevelMenu(2); loadLevelMenu(3); loadLevelMenu(4); } function backToStart() { bg.container.removeMovieClip(); bg.gotoAndStop(1); bg.but_competition.onRelease = startCompetition; bg.but_training.onRelease = startTraining; } function loadLevelMenu(num) { var _local4 = new Level().getDifficultyLevels(num); var _local2 = 0; while (_local2 < _local4.length) { var _local3 = bg.container.attachMovie("menupoint" + num, "level" + _local4[_local2], bg.container.getNextHighestDepth()); _local3._x = _local2 * 18; _local3._y = num * 20; _local3.txt.text = _local4[_local2]; _local3.onRelease = function () { this._parent["level" + board.level].gotoAndStop(1); board.loadLevel(this.txt.text); this.gotoAndStop(2); }; _local2++; } } function competitionPopUp(time) { if (time < worstscore) { var _local2 = this.attachMovie("competitionpopup", "popup", this.getNextHighestDepth()); _local2.gotoAndStop(1); _local2.thename.restrict = "A-Z a-z 0-9"; _local2.submit_but.onRelease = function () { if (this._parent.thename.text != "") { this._parent._parent.saveHighscore(this._parent.thename.text, time); this._parent.removeMovieClip(); bg.but_start.onRelease = function () { board.loadCompetition(); }; bg.but_back.onRelease = backToStart; } }; _local2.cancel_but.onRelease = function () { this._parent.removeMovieClip(); bg.but_start.onRelease = function () { board.loadCompetition(); }; bg.but_back.onRelease = backToStart; }; } else { var _local2 = this.attachMovie("competitionpopup", "popup", this.getNextHighestDepth()); _local2.gotoAndStop(2); _local2.cancel_but.onRelease = function () { this._parent.removeMovieClip(); bg.but_start.onRelease = function () { board.loadCompetition(); }; bg.but_back.onRelease = backToStart; }; } } function getHighscore() { var _local1 = "connection.php"; var vars = new LoadVars(); vars.command = "getHighscore"; vars.onLoad = function (success) { if (success) { loadHighscore(vars); } else { trace("Error reading the php page"); } }; vars.sendAndLoad(_local1, vars, "POST"); } function saveHighscore(name, time) { var _local1 = "connection.php"; var vars = new LoadVars(); vars.command = "saveHighscore"; vars.name = name; vars.time = time; vars.onLoad = function (success) { if (success) { loadHighscore(vars); } else { trace("Error reading the php page"); } }; vars.sendAndLoad(_local1, vars, "POST"); } function loadHighscore(vars) { bg.createEmptyMovieClip("container", 1); bg.container._x = 400; bg.container._y = 215; timelines = new Array(); var _local1 = 0; while (_local1 < vars.num) { var _local3 = vars["msg" + _local1].split(";"); var _local2 = bg.container.attachMovie("highscore", "highscore" + _local1, _local1); _local2.score.text = _local1 + 1; _local2.name.text = _local3[0]; _local2.time.text = bg.timer.translateTimer(_local3[1]); _local2._y = _local1 * 10; if (_local1 == 9) { worstscore = _local3[1]; } _local1++; } } function adjustDepth(car) { car.swapDepths(car._x + (((car._y + 80) * 6) * 32)); } stop(); bg.stop(); bg.but_competition.onRelease = startCompetition; bg.but_training.onRelease = startTraining; var worstscore = 10000000000;
Symbol 3 MovieClip [car2] Frame 1
#initclip 25 Object.registerClass("car2", Car2); #endinitclip
Symbol 6 MovieClip [truck22] Frame 1
#initclip 11 Object.registerClass("truck22", ChildCar); #endinitclip
Symbol 9 MovieClip [truck21] Frame 1
#initclip 12 Object.registerClass("truck21", ChildCar); #endinitclip
Symbol 12 MovieClip [truck12] Frame 1
#initclip 13 Object.registerClass("truck12", ChildCar); #endinitclip
Symbol 14 MovieClip [truck11] Frame 1
#initclip 14 Object.registerClass("truck11", ChildCar); #endinitclip
Symbol 17 MovieClip [playercar1] Frame 1
#initclip 15 Object.registerClass("playercar1", ChildCar); #endinitclip
Symbol 20 MovieClip [car21] Frame 1
#initclip 16 Object.registerClass("car21", ChildCar); #endinitclip
Symbol 22 MovieClip [car11] Frame 1
#initclip 17 Object.registerClass("car11", ChildCar); #endinitclip
Symbol 24 MovieClip [car1] Frame 1
#initclip 18 Object.registerClass("car1", Car1); #endinitclip
Symbol 25 MovieClip [Vehicle] Frame 1
#initclip 19 Object.registerClass("Vehicle", Vehicle); #endinitclip
Symbol 28 MovieClip [playercar] Frame 1
#initclip 20 Object.registerClass("playercar", PlayerCar); #endinitclip
Symbol 30 MovieClip [truck2] Frame 1
#initclip 21 Object.registerClass("truck2", Truck2); #endinitclip
Symbol 32 MovieClip [truck1] Frame 1
#initclip 22 Object.registerClass("truck1", Truck1); #endinitclip
Symbol 42 MovieClip [menupoint4] Frame 1
stop();
Symbol 46 MovieClip [menupoint3] Frame 1
stop();
Symbol 50 MovieClip [menupoint2] Frame 1
stop();
Symbol 54 MovieClip [menupoint1] Frame 1
stop();
Symbol 66 MovieClip [numbers] Frame 1
stop();
Symbol 84 MovieClip [board] Frame 1
#initclip 23 Object.registerClass("board", Board); #endinitclip
Symbol 86 MovieClip [timer] Frame 1
#initclip 24 Object.registerClass("timer", Timer); #endinitclip
Symbol 97 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 1
stop();
Symbol 106 MovieClip [__Packages.Level] Frame 0
class Level { function Level () { } function getLevel(num) { var _local2 = this["level" + num].slice(1); return(_local2); } function getNumberofLevels() { return(l); } function getDifficultyLevels(num) { var _local3 = new Array(); var _local2 = 1; while (_local2 <= l) { if (this["level" + _local2][0] == num) { _local3.push(_local2); } _local2++; } return(_local3); } function getCompetitionLevel() { var _local2 = random(c); return(this["level0" + _local2]); } var l = 18; var c = 5; var level1 = [1, ["truck2", 0, 5], ["car1", 4, 4], ["car2", 1, 4], ["playercar", 2, 1]]; var level2 = [1, ["truck2", 0, 5], ["car1", 4, 4], ["truck2", 1, 3], ["truck1", 5, 2], ["playercar", 2, 1], ["car1", 0, 0], ["truck2", 1, 0], ["car2", 4, 0]]; var level3 = [1, ["truck1", 0, 3], ["truck2", 1, 5], ["car2", 2, 4], ["car2", 1, 3], ["car1", 4, 4], ["car1", 5, 3], ["car2", 0, 0], ["playercar", 2, 0], ["truck1", 3, 0], ["car2", 4, 2], ["car1", 5, 0]]; var level4 = [1, ["truck2", 0, 3], ["truck1", 3, 3], ["car2", 4, 5], ["truck1", 5, 2], ["playercar", 2, 1], ["car2", 3, 2], ["truck2", 0, 0]]; var level5 = [1, ["car2", 0, 5], ["car2", 2, 5], ["truck2", 1, 4], ["car1", 4, 4], ["car1", 5, 4], ["truck2", 0, 3], ["playercar", 2, 1], ["truck1", 3, 1], ["car1", 0, 0], ["truck2", 1, 0], ["car2", 4, 0]]; var level6 = [1, ["truck2", 1, 5], ["truck2", 1, 4], ["car2", 0, 3], ["truck2", 2, 3], ["truck1", 5, 3], ["car1", 0, 0], ["car1", 1, 0], ["playercar", 2, 1], ["car2", 3, 2], ["car1", 3, 0], ["car2", 4, 0]]; var level7 = [2, ["truck2", 0, 3], ["truck1", 3, 3], ["car2", 4, 5], ["car1", 0, 1], ["playercar", 2, 1], ["car2", 3, 2], ["truck1", 5, 2], ["truck2", 0, 0]]; var level8 = [2, ["truck2", 0, 5], ["truck1", 3, 3], ["car2", 4, 4], ["car1", 0, 1], ["truck2", 1, 2], ["truck1", 5, 0], ["car2", 0, 0], ["playercar", 2, 0]]; var level9 = [2, ["truck2", 1, 5], ["car2", 0, 4], ["car1", 4, 4], ["car1", 5, 4], ["car1", 0, 2], ["playercar", 2, 3], ["car1", 3, 3], ["car2", 4, 3], ["car2", 1, 2], ["car1", 5, 1], ["car1", 0, 0], ["car2", 2, 1], ["truck2", 3, 0]]; var level10 = [2, ["car1", 1, 4], ["car2", 2, 5], ["car2", 2, 4], ["car1", 4, 4], ["car2", 0, 2], ["playercar", 2, 2], ["car1", 3, 2], ["car2", 4, 2], ["car1", 0, 0], ["car2", 2, 1], ["car2", 2, 0], ["car1", 5, 0]]; var level11 = [2, ["truck2", 1, 5], ["truck2", 1, 4], ["car1", 4, 4], ["car1", 0, 3], ["car1", 1, 2], ["playercar", 2, 2], ["car2", 3, 3], ["car2", 3, 2], ["car1", 5, 3], ["car1", 0, 1], ["car1", 1, 0], ["truck2", 2, 1], ["truck2", 2, 0], ["car1", 5, 1]]; var level12 = [3, ["truck2", 0, 3], ["truck1", 5, 3], ["car2", 0, 2], ["playercar", 2, 1], ["truck1", 3, 1], ["car1", 0, 0], ["truck2", 1, 0]]; var level13 = [3, ["truck1", 0, 3], ["car1", 1, 4], ["car1", 3, 4], ["car2", 4, 5], ["truck2", 1, 3], ["car1", 4, 2], ["truck1", 5, 1], ["car2", 0, 2], ["playercar", 2, 1], ["car2", 3, 1], ["car2", 1, 0], ["car2", 4, 0]]; var level14 = [3, ["truck2", 0, 5], ["car1", 3, 4], ["car1", 4, 4], ["truck1", 0, 2], ["car1", 1, 3], ["playercar", 2, 3], ["car2", 3, 3], ["truck1", 5, 2], ["car2", 1, 2], ["car2", 3, 2]]; var level15 = [3, ["car1", 0, 3], ["car2", 2, 4], ["car2", 4, 4], ["car2", 0, 2], ["playercar", 2, 2], ["car2", 1, 1], ["car1", 3, 1], ["car2", 2, 0], ["truck1", 4, 0], ["car1", 5, 0]]; var level16 = [4, ["truck1", 0, 3], ["car1", 1, 4], ["truck2", 2, 5], ["truck1", 5, 3], ["car2", 1, 3], ["car1", 3, 3], ["playercar", 2, 1], ["truck2", 3, 2], ["car1", 0, 0], ["car2", 2, 0], ["car1", 4, 0]]; var level17 = [4, ["car1", 0, 4], ["truck2", 3, 5], ["car2", 0, 3], ["car1", 3, 3], ["car2", 4, 3], ["truck2", 0, 2], ["car1", 3, 1], ["car1", 0, 0], ["playercar", 2, 0], ["car2", 3, 0], ["car1", 5, 0]]; var level18 = [4, ["car1", 0, 4], ["truck2", 3, 5], ["car1", 3, 3], ["car2", 4, 4], ["car2", 4, 3], ["truck2", 0, 2], ["car2", 0, 1], ["playercar", 2, 0], ["car1", 3, 1], ["car1", 4, 1], ["car2", 3, 0], ["truck1", 5, 0]]; var level00 = [["car1", 0, 4], ["car1", 0, 2], ["truck2", 1, 5], ["car1", 4, 4], ["car1", 1, 3], ["car2", 3, 3], ["car2", 0, 1], ["car2", 1, 2], ["playercar", 2, 0], ["car1", 3, 1], ["truck1", 5, 1], ["truck2", 3, 0]]; var level01 = [["car1", 0, 4], ["truck2", 1, 5], ["car2", 1, 4], ["truck2", 0, 2], ["truck1", 3, 2], ["car1", 4, 4], ["car2", 4, 3], ["car2", 0, 0], ["playercar", 2, 0], ["car2", 3, 1], ["car1", 5, 1], ["car2", 4, 0]]; var level02 = [["car2", 0, 5], ["car2", 0, 4], ["car2", 0, 3], ["car2", 2, 3], ["car1", 3, 4], ["car1", 4, 3], ["car2", 4, 5], ["truck1", 0, 0], ["car1", 1, 0], ["playercar", 2, 0], ["car1", 3, 1], ["car2", 3, 0], ["car2", 4, 2], ["car1", 5, 0]]; var level03 = [["car1", 0, 3], ["car2", 1, 3], ["car2", 3, 3], ["car1", 3, 4], ["car2", 4, 5], ["car1", 0, 1], ["truck2", 1, 2], ["playercar", 2, 0], ["car1", 3, 0], ["car1", 4, 1], ["car2", 4, 0], ["truck1", 5, 1]]; var level04 = [["truck2", 0, 5], ["truck1", 0, 2], ["playercar", 2, 3], ["car2", 1, 2], ["car1", 4, 4], ["car2", 3, 3], ["car2", 3, 2], ["car1", 3, 0], ["truck1", 5, 2], ["car2", 4, 1], ["car2", 4, 0]]; }
Symbol 107 MovieClip [__Packages.ChildCar] Frame 0
class ChildCar extends MovieClip { var theparent; function ChildCar () { super(); } function onPress() { theparent.onPress(); } function onRelease() { theparent.onRelease(); } function onReleaseOutside() { theparent.onRelease(); } function onLoad() { _root.adjustDepth(this); } }
Symbol 108 MovieClip [__Packages.Vehicle] Frame 0
class Vehicle extends MovieClip { var onEnterFrame, _x, ypos, xpos, spacing, _y, _parent, size, getDepth, cartype; function Vehicle () { super(); } function onRelease() { delete onEnterFrame; _x = spacing * (xpos + ypos); _y = (spacing / 2) * (xpos - ypos); _root.adjustDepth(this); _parent.updateBoard(); } function onReleaseOutside() { onRelease(); } function onLoad() { var _local10; var _local5; var _local4; if (size[0] > size[1]) { _local10 = size[0]; } else { _local10 = size[1]; } var _local2 = 1; while (_local2 <= _local10) { if (size[0] > size[1]) { _local5 = spacing * ((xpos + _local2) + ypos); _local4 = (spacing / 2) * ((xpos + _local2) - ypos); } else { _local5 = spacing * ((xpos + ypos) + _local2); _local4 = (spacing / 2) * ((xpos - ypos) - _local2); } var _local3 = getDepth().toString() + _local2.toString(); var _local6 = cartype + _local2; this["child" + _local2] = _parent.attachMovie(_local6, "car" + _local3, parseInt(_local3), {_x:_local5, _y:_local4, theparent:this}); _local2++; } } function getPossibleX(a) { return(spacing * (a[0] + a[1])); } }
Symbol 109 MovieClip [__Packages.Car1] Frame 0
class Car1 extends Vehicle { var _parent, getPossibleX, spacing, _xmouse, onEnterFrame, ypos, xpos; function Car1 () { super(); } function onPress() { var _local3 = _parent.possibleMoves(this); if ((cartype == "playercar") && (_local3[1][1] == 5)) { _local3[1][1] = 6; } var min_x = getPossibleX(_local3[0]); var max_x = (getPossibleX(_local3[1]) - (spacing * size[1])); var mousehelper = _xmouse; onEnterFrame = function () { var _local2; if (((this._parent._xmouse - mousehelper) >= min_x) && ((this._parent._xmouse - mousehelper) <= max_x)) { _local2 = (this._parent._xmouse - this._x) - mousehelper; } else if ((this._parent._xmouse - mousehelper) < min_x) { _local2 = min_x - this._x; } else if ((this._parent._xmouse - mousehelper) > max_x) { _local2 = max_x - this._x; } var _local3 = _local2 / 2; var _local4 = Math.round((((this._x + _local2) / this.spacing) - ((2 * (this._y + _local3)) / this.spacing)) / 2); this._x = this._x + _local2; this._y = this._y - _local3; this.moveChildren(_local2, _local3); this.adjustDepth(); this.ypos = _local4; }; } function adjustDepth() { _root.adjustDepth(this); var _local3 = 1; while (_local3 <= size[0]) { _root.adjustDepth(this["child" + _local3]); _local3++; } } function moveChildren(xmove, ymove) { var _local3 = 1; while (_local3 <= size[1]) { this["child" + _local3]._x = this["child" + _local3]._x + xmove; this["child" + _local3]._y = this["child" + _local3]._y - ymove; _root.adjustDepth(this["child" + _local3]); _local3++; } } function onRelease() { super.onRelease(); var _local4 = 1; while (_local4 <= size[1]) { this["child" + _local4]._x = spacing * ((xpos + ypos) + _local4); this["child" + _local4]._y = (spacing / 2) * ((xpos - ypos) - _local4); _root.adjustDepth(this["child" + _local4]); _local4++; } } function onUnload() { var _local2 = 1; while (_local2 <= size[1]) { this["child" + _local2].swapDepths(100000); this["child" + _local2].removeMovieClip(); _local2++; } } var cartype = "car1"; var size = [0, 1]; }
Symbol 110 MovieClip [__Packages.PlayerCar] Frame 0
class PlayerCar extends Car1 { var ypos, _parent; function PlayerCar () { super(); } function onRelease() { super.onRelease(); if (ypos == 5) { if (_parent.mode == "training") { _parent.endOfGame(); } else if (_parent.mode == "competition") { _parent.endOfCompetition(); } } } function onReleaseOutside() { onRelease(); } var cartype = "playercar"; }
Symbol 111 MovieClip [__Packages.Car2] Frame 0
class Car2 extends Vehicle { var _parent, getPossibleX, spacing, _xmouse, onEnterFrame, ypos, xpos; function Car2 () { super(); } function onPress() { var _local4 = _parent.possibleMoves(this); var min_x = getPossibleX(_local4[0]); var max_x = (getPossibleX(_local4[1]) - (spacing * size[0])); var mousehelper = _xmouse; onEnterFrame = function () { var _local2; if (((this._parent._xmouse - mousehelper) >= min_x) && ((this._parent._xmouse - mousehelper) <= max_x)) { _local2 = (this._parent._xmouse - this._x) - mousehelper; } else if ((this._parent._xmouse - mousehelper) < min_x) { _local2 = min_x - this._x; } else if ((this._parent._xmouse - mousehelper) > max_x) { _local2 = max_x - this._x; } var _local3 = _local2 / 2; var _local4 = Math.round((((this._x + _local2) / this.spacing) + ((2 * (this._y + _local3)) / this.spacing)) / 2); this._x = this._x + _local2; this._y = this._y + _local3; this.moveChildren(_local2, _local3); this.adjustDepth(); this.xpos = _local4; }; } function adjustDepth() { _root.adjustDepth(this); var _local3 = 1; while (_local3 <= size[0]) { _root.adjustDepth(this["child" + _local3]); _local3++; } } function moveChildren(xmove, ymove) { var _local2 = 1; while (_local2 <= size[0]) { this["child" + _local2]._x = this["child" + _local2]._x + xmove; this["child" + _local2]._y = this["child" + _local2]._y + ymove; _local2++; } } function onRelease() { super.onRelease(); var _local4 = 1; while (_local4 <= size[0]) { this["child" + _local4]._x = spacing * ((xpos + _local4) + ypos); this["child" + _local4]._y = (spacing / 2) * ((xpos + _local4) - ypos); _root.adjustDepth(this["child" + _local4]); _local4++; } } function onUnload() { var _local2 = 1; while (_local2 <= size[0]) { this["child" + _local2].swapDepths(100000); this["child" + _local2].removeMovieClip(); _local2++; } } var cartype = "car2"; var size = [1, 0]; }
Symbol 112 MovieClip [__Packages.Truck2] Frame 0
class Truck2 extends Car2 { function Truck2 () { super(); } var cartype = "truck2"; var size = [2, 0]; }
Symbol 113 MovieClip [__Packages.Truck1] Frame 0
class Truck1 extends Car1 { function Truck1 () { super(); } var cartype = "truck1"; var size = [0, 2]; }
Symbol 114 MovieClip [__Packages.Board] Frame 0
class Board extends MovieClip { var attachMovie, _parent, mode; function Board () { super(); attachMovie("borderfront", "borderfront", 1000000); loadCar("playercar", 2, 1, 1); } function loadCar(id, xpos, ypos, d) { var _local4 = spacing * (xpos + ypos); var _local3 = (spacing / 2) * (xpos - ypos); var _local5 = _local4 + (((_local3 + 80) * 6) * 32); var _local2 = attachMovie(id, "car" + d, _local5, {_x:_local4, _y:_local3, xpos:xpos, ypos:ypos, spacing:spacing}); placeCar(_local2, xpos, ypos); cars.push(_local2); } function loadCars(l) { var _local2 = 1; while (_local2 <= l.length) { loadCar(l[_local2 - 1][0], l[_local2 - 1][1], l[_local2 - 1][2], _local2); _local2++; } } function unloadCars() { var _local2 = 0; while (_local2 < cars.length) { cars[_local2].swapDepths(100000); cars[_local2].removeMovieClip(); _local2++; } cars = new Array(); } function placeCar(car, xpos, ypos) { board[xpos][ypos] = 1; var _local2 = 1; while (_local2 <= car.size[0]) { board[xpos + _local2][ypos] = 1; _local2++; } _local2 = 1; while (_local2 <= car.size[1]) { board[xpos][ypos + _local2] = 1; _local2++; } } function updateBoard() { loadBoard(); var _local2 = 0; while (_local2 < cars.length) { placeCar(cars[_local2], cars[_local2].xpos, cars[_local2].ypos); _local2++; } } function loadBoard() { board = new Array([0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]); } function possibleMoves(car) { var _local4; var _local6; var _local3; var _local5; if (car.size[0] > 0) { _local4 = car.xpos; _local6 = _local4 + car.size[0]; _local3 = car.ypos; _local5 = _local3; var _local2 = _local4 - 1; while (_local2 >= 0) { if (board[_local2][_local3] == 0) { _local4 = _local2; } else { break; } _local2--; } _local2 = _local6 + 1; while (_local2 <= 5) { if (board[_local2][_local3] == 0) { _local6 = _local2; } else { break; } _local2++; } } else if (car.size[1] > 0) { _local4 = car.xpos; _local6 = _local4; _local3 = car.ypos; _local5 = _local3 + car.size[1]; var _local2 = _local3 - 1; while (_local2 >= 0) { if (board[_local4][_local2] == 0) { _local3 = _local2; } else { break; } _local2--; } _local2 = _local5 + 1; while (_local2 <= 5) { if (board[_local4][_local2] == 0) { _local5 = _local2; } else { break; } _local2++; } } return([[_local4, _local3], [_local6, _local5]]); } function loadLevel(num) { unloadCars(); loadBoard(); level = num; var _local2 = new Level().getLevel(level); loadCars(_local2); var path = this; _parent.bg.but_next.gotoAndStop(2); _parent.bg.but_next._visible = true; _parent.bg.but_reset.gotoAndStop(1); _parent.bg.but_reset.onRelease = function () { path.loadLevel(path.level); }; delete _parent.bg.but_start.onRelease; } function endOfGame() { var path = this; _parent.bg.but_next.gotoAndStop(1); _parent.bg.but_reset.gotoAndStop(2); delete _parent.bg.but_reset.onRelease; _parent.bg.but_start.onRelease = function () { this._parent.container["level" + path.level].gotoAndStop(1); path.level++; this._parent.container["level" + path.level].gotoAndStop(2); if (path.level > new Level().getNumberofLevels()) { path.level = 1; } path.loadLevel(path.level); }; } function loadTraining() { mode = "training"; _parent.bg.container["level" + level].gotoAndStop(2); loadLevel(level); var path = this; _parent.bg.but_back.onRelease = function () { path.unloadCars(); path.loadCar("playercar", 2, 1, 1); this._parent._parent.backToStart(); }; } function endOfCompetition() { unloadCars(); var _local2 = _parent.bg.timer.stopTimerAndGetTime(); _parent.competitionPopUp(_local2); _parent.bg.but_next.gotoAndStop(2); delete _parent.bg.but_reset.onRelease; _parent.bg.but_reset.gotoAndStop(2); delete _parent.bg.but_start.onRelease; delete _parent.bg.but_back.onRelease; } function loadCompetitionLevel(newlevel) { unloadCars(); loadBoard(); loadCars(newlevel); var path = this; _parent.bg.but_next.gotoAndStop(1); _parent.bg.but_reset.gotoAndStop(1); _parent.bg.but_reset.onRelease = function () { path.loadCompetitionLevel(newlevel); }; } function loadCompetition() { mode = "competition"; var _local2 = new Level().getCompetitionLevel(); loadCompetitionLevel(_local2); _parent.bg.timer.startTimer(); var path = this; _parent.bg.but_back.onRelease = function () { path.unloadCars(); path.loadCar("playercar", 2, 1, 1); this._parent._parent.backToStart(); }; _parent.bg.but_start.onRelease = function () { path.loadCompetitionLevel(new Level().getCompetitionLevel()); this._parent.timer.startTimer(); }; } var spacing = 32; var cars = new Array(); var board = new Array(); var level = 1; }
Symbol 115 MovieClip [__Packages.Timer] Frame 0
class Timer extends MovieClip { var starttime, onEnterFrame, h1, attachMovie, h2, m1, m2, s1, s2; function Timer () { super(); } function showTime(letter, value) { var _local3; var _local2; if (value < 10) { _local3 = 0; _local2 = value; } else { _local3 = parseInt(value.toString().charAt(0)); _local2 = parseInt(value.toString().charAt(1)); } if (_local3 == 0) { _local3 = 10; } if (_local2 == 0) { _local2 = 10; } this[letter + 1].gotoAndStop(_local3); this[letter + 2].gotoAndStop(_local2); } function startTimer() { starttime = getTimer(); onEnterFrame = function () { var _local5 = getTimer() - this.starttime; var _local3 = Math.floor(_local5 / 3600000); var _local2 = _local5 - (_local3 * 3600000); var _local6 = Math.floor(_local2 / 60000); _local2 = _local2 - (_local6 * 60000); var _local4 = Math.floor(_local2 / 1000); _local2 = _local2 - (_local4 * 1000); this.showTime("h", _local3); this.showTime("m", _local6); this.showTime("s", _local4); }; } function stopTimerAndGetTime() { delete onEnterFrame; return(getTimer() - starttime); } function translateTimer(num) { var _local6; var _local7; var _local5; var _local2 = Math.floor(num / 3600000); var _local1 = num - (_local2 * 3600000); var _local4 = Math.floor(_local1 / 60000); _local1 = _local1 - (_local4 * 60000); var _local3 = Math.floor(_local1 / 1000); _local1 = _local1 - (_local3 * 1000); if (_local2 < 10) { _local6 = "0" + _local2.toString(); } else { _local6 = _local2.toString(); } if (_local4 < 10) { _local7 = "0" + _local4.toString(); } else { _local7 = _local4.toString(); } if (_local3 < 10) { _local5 = "0" + _local3.toString(); } else { _local5 = _local3.toString(); } return((((_local6 + ":") + _local7) + ":") + _local5); } function onLoad() { h1 = attachMovie("numbers", "h1", 1, {_x:0, _y:-16}); h2 = attachMovie("numbers", "h2", 2, {_x:12, _y:-22}); m1 = attachMovie("numbers", "m1", 3, {_x:34, _y:-33}); m2 = attachMovie("numbers", "m2", 4, {_x:46, _y:-39}); s1 = attachMovie("numbers", "s1", 5, {_x:68, _y:-50}); s2 = attachMovie("numbers", "s2", 6, {_x:80, _y:-56}); showTime("h", 0); showTime("m", 0); showTime("s", 0); } }

Library Items

Symbol 1 BitmapUsed by:2 21
Symbol 2 GraphicUses:1Used by:3
Symbol 3 MovieClip [car2]Uses:2
Symbol 4 BitmapUsed by:5 31
Symbol 5 GraphicUses:4Used by:6
Symbol 6 MovieClip [truck22]Uses:5
Symbol 7 BitmapUsed by:8 13
Symbol 8 GraphicUses:7Used by:9
Symbol 9 MovieClip [truck21]Uses:8
Symbol 10 BitmapUsed by:11 29
Symbol 11 GraphicUses:10Used by:12
Symbol 12 MovieClip [truck12]Uses:11
Symbol 13 GraphicUses:7Used by:14
Symbol 14 MovieClip [truck11]Uses:13
Symbol 15 BitmapUsed by:16
Symbol 16 GraphicUses:15Used by:17
Symbol 17 MovieClip [playercar1]Uses:16
Symbol 18 BitmapUsed by:19 23
Symbol 19 GraphicUses:18Used by:20
Symbol 20 MovieClip [car21]Uses:19
Symbol 21 GraphicUses:1Used by:22
Symbol 22 MovieClip [car11]Uses:21
Symbol 23 GraphicUses:18Used by:24
Symbol 24 MovieClip [car1]Uses:23
Symbol 25 MovieClip [Vehicle]
Symbol 26 BitmapUsed by:27
Symbol 27 GraphicUses:26Used by:28
Symbol 28 MovieClip [playercar]Uses:27
Symbol 29 GraphicUses:10Used by:30
Symbol 30 MovieClip [truck2]Uses:29
Symbol 31 GraphicUses:4Used by:32
Symbol 32 MovieClip [truck1]Uses:31
Symbol 33 BitmapUsed by:34
Symbol 34 GraphicUses:33Used by:35
Symbol 35 MovieClip [borderfront]Uses:34
Symbol 36 BitmapUsed by:37
Symbol 37 GraphicUses:36Used by:42
Symbol 38 FontUsed by:39 45 49 53
Symbol 39 EditableTextUses:38Used by:42
Symbol 40 BitmapUsed by:41
Symbol 41 GraphicUses:40Used by:42 46 50 54
Symbol 42 MovieClip [menupoint4]Uses:37 39 41
Symbol 43 BitmapUsed by:44
Symbol 44 GraphicUses:43Used by:46
Symbol 45 EditableTextUses:38Used by:46
Symbol 46 MovieClip [menupoint3]Uses:44 45 41
Symbol 47 BitmapUsed by:48
Symbol 48 GraphicUses:47Used by:50
Symbol 49 EditableTextUses:38Used by:50
Symbol 50 MovieClip [menupoint2]Uses:48 49 41
Symbol 51 BitmapUsed by:52
Symbol 52 GraphicUses:51Used by:54
Symbol 53 EditableTextUses:38Used by:54
Symbol 54 MovieClip [menupoint1]Uses:52 53 41
Symbol 55 BitmapUsed by:56 57 58 59 60 61 62 63 64 65 85
Symbol 56 GraphicUses:55Used by:66
Symbol 57 GraphicUses:55Used by:66
Symbol 58 GraphicUses:55Used by:66
Symbol 59 GraphicUses:55Used by:66
Symbol 60 GraphicUses:55Used by:66
Symbol 61 GraphicUses:55Used by:66
Symbol 62 GraphicUses:55Used by:66
Symbol 63 GraphicUses:55Used by:66
Symbol 64 GraphicUses:55Used by:66
Symbol 65 GraphicUses:55Used by:66
Symbol 66 MovieClip [numbers]Uses:56 57 58 59 60 61 62 63 64 65
Symbol 67 FontUsed by:68 69 70
Symbol 68 EditableTextUses:67Used by:71
Symbol 69 EditableTextUses:67Used by:71
Symbol 70 EditableTextUses:67Used by:71
Symbol 71 MovieClip [highscore]Uses:68 69 70
Symbol 72 GraphicUsed by:81
Symbol 73 BitmapUsed by:74
Symbol 74 GraphicUses:73Used by:81
Symbol 75 FontUsed by:76
Symbol 76 EditableTextUses:75Used by:81
Symbol 77 GraphicUsed by:78
Symbol 78 MovieClipUses:77Used by:81 105
Symbol 79 BitmapUsed by:80
Symbol 80 GraphicUses:79Used by:81
Symbol 81 MovieClip [competitionpopup]Uses:72 74 76 78 80
Symbol 82 BitmapUsed by:83
Symbol 83 GraphicUses:82Used by:84
Symbol 84 MovieClip [board]Uses:83Used by:Timeline
Symbol 85 GraphicUses:55Used by:86
Symbol 86 MovieClip [timer]Uses:85Used by:105
Symbol 87 BitmapUsed by:88
Symbol 88 GraphicUses:87Used by:105
Symbol 89 BitmapUsed by:90
Symbol 90 GraphicUses:89Used by:105
Symbol 91 BitmapUsed by:92
Symbol 92 GraphicUses:91Used by:97 99 104
Symbol 93 FontUsed by:94 98 102 103
Symbol 94 TextUses:93Used by:97
Symbol 95 BitmapUsed by:96
Symbol 96 GraphicUses:95Used by:97 99
Symbol 97 MovieClipUses:92 94 96Used by:105
Symbol 98 TextUses:93Used by:99
Symbol 99 MovieClipUses:92 98 96Used by:105
Symbol 100 BitmapUsed by:101
Symbol 101 GraphicUses:100Used by:105
Symbol 102 TextUses:93Used by:104
Symbol 103 TextUses:93Used by:104
Symbol 104 MovieClipUses:92 102 103Used by:105
Symbol 105 MovieClipUses:88 78 90 97 99 101 104 86Used by:Timeline
Symbol 106 MovieClip [__Packages.Level]
Symbol 107 MovieClip [__Packages.ChildCar]
Symbol 108 MovieClip [__Packages.Vehicle]
Symbol 109 MovieClip [__Packages.Car1]
Symbol 110 MovieClip [__Packages.PlayerCar]
Symbol 111 MovieClip [__Packages.Car2]
Symbol 112 MovieClip [__Packages.Truck2]
Symbol 113 MovieClip [__Packages.Truck1]
Symbol 114 MovieClip [__Packages.Board]
Symbol 115 MovieClip [__Packages.Timer]

Instance Names

"bg"Frame 1Symbol 105 MovieClip
"board"Frame 1Symbol 84 MovieClip [board]
"txt"Symbol 42 MovieClip [menupoint4] Frame 1Symbol 39 EditableText
"txt"Symbol 46 MovieClip [menupoint3] Frame 1Symbol 45 EditableText
"txt"Symbol 50 MovieClip [menupoint2] Frame 1Symbol 49 EditableText
"txt"Symbol 54 MovieClip [menupoint1] Frame 1Symbol 53 EditableText
"score"Symbol 71 MovieClip [highscore] Frame 1Symbol 68 EditableText
"name"Symbol 71 MovieClip [highscore] Frame 1Symbol 69 EditableText
"time"Symbol 71 MovieClip [highscore] Frame 1Symbol 70 EditableText
"thename"Symbol 81 MovieClip [competitionpopup] Frame 1Symbol 76 EditableText
"cancel_but"Symbol 81 MovieClip [competitionpopup] Frame 1Symbol 78 MovieClip
"submit_but"Symbol 81 MovieClip [competitionpopup] Frame 1Symbol 78 MovieClip
"but_training"Symbol 105 MovieClip Frame 1Symbol 78 MovieClip
"but_competition"Symbol 105 MovieClip Frame 1Symbol 78 MovieClip
"but_next"Symbol 105 MovieClip Frame 2Symbol 97 MovieClip
"but_start"Symbol 105 MovieClip Frame 2Symbol 78 MovieClip
"but_back"Symbol 105 MovieClip Frame 2Symbol 78 MovieClip
"but_reset"Symbol 105 MovieClip Frame 2Symbol 99 MovieClip
"but_next"Symbol 105 MovieClip Frame 3Symbol 104 MovieClip
"timer"Symbol 105 MovieClip Frame 3Symbol 86 MovieClip [timer]

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 3 as "car2"
ExportAssets (56)Timeline Frame 1Symbol 6 as "truck22"
ExportAssets (56)Timeline Frame 1Symbol 9 as "truck21"
ExportAssets (56)Timeline Frame 1Symbol 12 as "truck12"
ExportAssets (56)Timeline Frame 1Symbol 14 as "truck11"
ExportAssets (56)Timeline Frame 1Symbol 17 as "playercar1"
ExportAssets (56)Timeline Frame 1Symbol 20 as "car21"
ExportAssets (56)Timeline Frame 1Symbol 22 as "car11"
ExportAssets (56)Timeline Frame 1Symbol 24 as "car1"
ExportAssets (56)Timeline Frame 1Symbol 25 as "Vehicle"
ExportAssets (56)Timeline Frame 1Symbol 28 as "playercar"
ExportAssets (56)Timeline Frame 1Symbol 30 as "truck2"
ExportAssets (56)Timeline Frame 1Symbol 32 as "truck1"
ExportAssets (56)Timeline Frame 1Symbol 35 as "borderfront"
ExportAssets (56)Timeline Frame 1Symbol 42 as "menupoint4"
ExportAssets (56)Timeline Frame 1Symbol 46 as "menupoint3"
ExportAssets (56)Timeline Frame 1Symbol 50 as "menupoint2"
ExportAssets (56)Timeline Frame 1Symbol 54 as "menupoint1"
ExportAssets (56)Timeline Frame 1Symbol 66 as "numbers"
ExportAssets (56)Timeline Frame 1Symbol 71 as "highscore"
ExportAssets (56)Timeline Frame 1Symbol 81 as "competitionpopup"
ExportAssets (56)Timeline Frame 1Symbol 84 as "board"
ExportAssets (56)Timeline Frame 1Symbol 86 as "timer"
ExportAssets (56)Timeline Frame 1Symbol 106 as "__Packages.Level"
ExportAssets (56)Timeline Frame 1Symbol 107 as "__Packages.ChildCar"
ExportAssets (56)Timeline Frame 1Symbol 108 as "__Packages.Vehicle"
ExportAssets (56)Timeline Frame 1Symbol 109 as "__Packages.Car1"
ExportAssets (56)Timeline Frame 1Symbol 110 as "__Packages.PlayerCar"
ExportAssets (56)Timeline Frame 1Symbol 111 as "__Packages.Car2"
ExportAssets (56)Timeline Frame 1Symbol 112 as "__Packages.Truck2"
ExportAssets (56)Timeline Frame 1Symbol 113 as "__Packages.Truck1"
ExportAssets (56)Timeline Frame 1Symbol 114 as "__Packages.Board"
ExportAssets (56)Timeline Frame 1Symbol 115 as "__Packages.Timer"




http://swfchan.com/3/12712/info.shtml
Created: 5/6 -2019 16:09:31 Last modified: 5/6 -2019 16:09:31 Server time: 14/11 -2024 06:33:54