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

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

Traffic Control 2.swf

This is the info page for
Flash #31426

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


Text
Well Done

Game Over
Your score
was:

Save you high score
on our leaderboard by
playing at
www.geheee.com

REPLAY

How to play

There are 3 different types of vehicule in traffic control 2.
There is a truck, a sports car, and a basic car.

Each type of vehicule will drive at a different speed but
once it gets stuck behind a slower moving car it will not
be able to overtake and will have to slow down, bear this
in mind when playing.

CLOSE

Sports Car

Truck

Basic car

The aim of this game is to control the traffic lights
so that as many cars as possible can pass from one
side of the screen to the other.

Traffic lights can be changed by clicking on the
junctions.  Every time a car passes across the city
you score 1 point.  As your score increases the
amount of cars entering the city will increase.
The amount of cars queueing outside the city is
shown in the queue scorebox.  If 5 or more cars
are queueing outside the city then its game over!
Have fun !

CONT

Geheee
Games

presents

Play Game

How to play

Geheee Games

Traffic Control 2 - www.geheee.com

Score

Queue

Traffic Control 2 - http://www.geheee.com

ActionScript [AS1/AS2]

Frame 2
stop(); play.onPress = function () { gotoAndPlay (3); }; howto.onPress = function () { attachMovie("howtoplay", "howtoplay", this.getNextHighestDepth, {_x:100, _y:0}); }; _root.howtoplay.cont.onPress = function () { removeMovieClip("_root.howtoplay"); attachMovie("howtoplay2", "howtoplay2", this.getNextHighestDepth, {_x:100, _y:0}); }; closebutton.onPress = function () { removeMovieClip("howtoplay2"); }; source.onPress = function () { getURL ("http://www.geheee.com", "_blank"); };
Frame 3
vol = 100; var musictrack1 = new Sound(); var musictrack2 = new Sound(); musictrack2.attachSound("song2"); musictrack1.attachSound("song1"); musictrack1.start(); songtitle = "Omegabyte"; songnumber = 1; musictrack1.onSoundComplete = function () { musictrack1.stop(); musictrack2.start(); songtitle = "Trancetype"; songnumber = 2; }; musictrack2.onSoundComplete = function () { musictrack2.stop(); musictrack1.start(); songtitle = "Omegabyte"; songnumber = 1; }; attachMovie("map", "map", 9000, {_x:0, _y:0}); numofcarsleft = 0; numofcarsright = 0; numofcarsdown = 0; numofcarsup = 0; timer = 0; carsdone = 0; addedcars = 0; _root.submitted = 0; carfreq = 25; xpos1 = 96; ypos1 = 96; xpos2 = 216; ypos2 = 96; xpos3 = 360; ypos3 = 96; xpos4 = 456; ypos4 = 96; xpos5 = 96; ypos5 = 240; xpos6 = 216; ypos6 = 240; xpos7 = 360; ypos7 = 240; xpos8 = 456; ypos8 = 240; xpos9 = 96; ypos9 = 360; xpos10 = 216; ypos10 = 360; xpos11 = 360; ypos11 = 360; xpos12 = 456; ypos12 = 360;
Frame 4
nexttrack.onPress = function () { if (songnumber == 1) { musictrack1.stop(); musictrack2.start(); songtitle = "Trancetype"; songnumber = 2; } else if (songnumber == 2) { musictrack2.stop(); musictrack1.start(); songtitle = "Omegabyte"; songnumber = 1; } }; lasttrack.onPress = function () { if (songnumber == 1) { musictrack1.stop(); musictrack2.start(); songtitle = "Trancetype"; songnumber = 2; } else if (songnumber == 2) { musictrack2.stop(); musictrack1.start(); songtitle = "Omegabyte"; songnumber = 1; } }; volup.onPress = function () { vol = vol + 10; if (vol > 100) { vol = 100; } musictrack1.setVolume(vol); musictrack2.setVolume(vol); }; voldown.onPress = function () { vol = vol - 10; if (vol < 0) { vol = 0; } musictrack1.setVolume(vol); musictrack2.setVolume(vol); }; queue = 0; var n = 1; while (n <= numofcarsright) { if (1 == eval ("carrightok" + n)) { xpos = eval (("carright" add n) add "._x"); ypos = eval (("carright" add n) add "._y"); movecar = 0; if (552 < xpos) { removeMovieClip(eval ("carright" add n)); carsdone = carsdone + 1; Set("carrightok" + n, 0); } else if (104 == ypos) { if ((((((xpos < 62) && (xpos > 58)) && (_root.map.trafficlight1.state == 0)) || (((xpos < 182) && (xpos > 178)) && (_root.map.trafficlight2.state == 0))) || (((xpos < 326) && (xpos > 322)) && (_root.map.trafficlight3.state == 0))) || (((xpos < 422) && (xpos > 418)) && (_root.map.trafficlight4.state == 0))) { movecar = 0; } else { movecar = 1; } } else if (248 == ypos) { if ((((((xpos < 62) && (xpos > 58)) && (_root.map.trafficlight5.state == 0)) || (((xpos < 182) && (xpos > 178)) && (_root.map.trafficlight6.state == 0))) || (((xpos < 326) && (xpos > 322)) && (_root.map.trafficlight7.state == 0))) || (((xpos < 422) && (xpos > 418)) && (_root.map.trafficlight8.state == 0))) { movecar = 0; } else { movecar = 1; } } else if (368 == ypos) { if ((((((xpos < 62) && (xpos > 58)) && (_root.map.trafficlight9.state == 0)) || (((xpos < 182) && (xpos > 178)) && (_root.map.trafficlight10.state == 0))) || (((xpos < 326) && (xpos > 322)) && (_root.map.trafficlight11.state == 0))) || (((xpos < 422) && (xpos > 418)) && (_root.map.trafficlight12.state == 0))) { movecar = 0; } else { movecar = 1; } } else { movecar = 1; } if (movecar == 1) { movecarfinal = 1; var p = 1; while (p <= numofcarsright) { movieclip = eval ("carright" add p); if (movieclip.hitTest(xpos + 17, ypos, true)) { if (p != n) { movecarfinal = 0; } } p++; } if (((((60 <= xpos) && (132 >= xpos)) || ((180 <= xpos) && (252 >= xpos))) || ((324 <= xpos) && (396 >= xpos))) || ((420 <= xpos) && (492 >= xpos))) { var r = 1; while (r <= numofcarsdown) { if ((((xpos > (eval (("cardown" add r) add "._x") - 26)) && (xpos < eval (("cardown" add r) add "._x"))) && (ypos > (eval (("cardown" add r) add "._y") - eval ("cardownlength" + r)))) && (ypos < (eval (("cardown" add r) add "._y") + 15))) { movecarfinal = 0; } r++; } var r = 1; while (r <= numofcarsup) { if ((((xpos > (eval (("carup" add r) add "._x") - 26)) && (xpos < eval (("carup" add r) add "._x"))) && (ypos > (eval (("carup" add r) add "._y") - 15))) && (ypos < (eval (("carup" add r) add "._y") + eval ("caruplength" + r)))) { movecarfinal = 0; } r++; } } } if (movecarfinal == 1) { setProperty(eval ("carright" add n), _x , eval (("carright" add n) add "._x") + eval ("carrightspeed" + n)); } if (0 == xpos) { queue = queue + 1; } movecarfinal = 0; } n++; } var n = 1; while (n <= numofcarsleft) { if (1 == eval ("carleftok" + n)) { xpos = eval (("carleft" add n) add "._x"); ypos = eval (("carleft" add n) add "._y"); movecar = 0; if (0 > xpos) { removeMovieClip(eval ("carleft" add n)); carsdone = carsdone + 1; Set("carleftok" + n, 0); } if (84 == ypos) { if ((((((xpos < 134) && (xpos > 130)) && (_root.map.trafficlight1.state == 0)) || (((xpos < 254) && (xpos > 250)) && (_root.map.trafficlight2.state == 0))) || (((xpos < 398) && (xpos > 394)) && (_root.map.trafficlight3.state == 0))) || (((xpos > 490) && (xpos < 494)) && (_root.map.trafficlight4.state == 0))) { movecar = 0; } else { movecar = 1; } } else if (228 == ypos) { if ((((((xpos < 134) && (xpos > 130)) && (_root.map.trafficlight5.state == 0)) || (((xpos < 254) && (xpos > 250)) && (_root.map.trafficlight6.state == 0))) || (((xpos < 398) && (xpos > 394)) && (_root.map.trafficlight7.state == 0))) || (((xpos > 490) && (xpos < 494)) && (_root.map.trafficlight8.state == 0))) { movecar = 0; } else { movecar = 1; } } else if (348 == ypos) { if ((((((xpos < 134) && (xpos > 130)) && (_root.map.trafficlight9.state == 0)) || (((xpos < 254) && (xpos > 250)) && (_root.map.trafficlight10.state == 0))) || (((xpos < 398) && (xpos > 394)) && (_root.map.trafficlight11.state == 0))) || (((xpos > 490) && (xpos < 494)) && (_root.map.trafficlight12.state == 0))) { movecar = 0; } else { movecar = 1; } } else { movecar = 1; } if (movecar == 1) { movecarfinal = 1; var p = 1; while (p <= numofcarsleft) { movieclip = eval ("carleft" add p); if (movieclip.hitTest(xpos - 17, ypos, true)) { if (p != n) { movecarfinal = 0; } } p++; } if (((((60 <= xpos) && (132 >= xpos)) || ((180 <= xpos) && (252 >= xpos))) || ((324 <= xpos) && (396 >= xpos))) || ((420 <= xpos) && (492 >= xpos))) { var r = 1; while (r <= numofcarsdown) { if ((((xpos > eval (("cardown" add r) add "._x")) && (xpos < (eval (("cardown" add r) add "._x") + 26))) && (ypos > (eval (("cardown" add r) add "._y") - eval ("cardownlength" + r)))) && (ypos < (eval (("cardown" add r) add "._y") + 15))) { movecarfinal = 0; } r++; } var r = 1; while (r <= numofcarsup) { if ((((xpos > eval (("carup" add r) add "._x")) && (xpos < (eval (("carup" add r) add "._x") + 26))) && (ypos > (eval (("carup" add r) add "._y") - 15))) && (ypos < (eval (("carup" add r) add "._y") + eval ("caruplength" + r)))) { movecarfinal = 0; } r++; } } } if (movecarfinal == 1) { setProperty(eval ("carleft" add n), _x , eval (("carleft" add n) add "._x") - eval ("carleftspeed" + n)); } if (552 == xpos) { queue = queue + 1; } movecarfinal = 0; } n++; } var m = 1; while (m <= numofcarsdown) { if (1 == eval ("cardownok" + m)) { xpos = eval (("cardown" add m) add "._x"); ypos = eval (("cardown" add m) add "._y"); movecar = 0; if (456 < ypos) { removeMovieClip(eval ("cardown" add m)); carsdone = carsdone + 1; Set("cardownok" + m, 0); } if ((ypos > 58) && (ypos < 62)) { if (((((84 == xpos) && (_root.map.trafficlight1.state == 1)) || ((204 == xpos) && (_root.map.trafficlight2.state == 1))) || ((348 == xpos) && (_root.map.trafficlight3.state == 1))) || ((444 == xpos) && (_root.map.trafficlight4.state == 1))) { movecar = 0; } else { movecar = 1; } } else if ((ypos > 202) && (ypos < 206)) { if (((((84 == xpos) && (_root.map.trafficlight5.state == 1)) || ((204 == xpos) && (_root.map.trafficlight6.state == 1))) || ((348 == xpos) && (_root.map.trafficlight7.state == 1))) || ((444 == xpos) && (_root.map.trafficlight8.state == 1))) { movecar = 0; } else { movecar = 1; } } else if ((ypos > 322) && (ypos < 326)) { if (((((84 == xpos) && (_root.map.trafficlight9.state == 1)) || ((204 == xpos) && (_root.map.trafficlight10.state == 1))) || ((348 == xpos) && (_root.map.trafficlight11.state == 1))) || ((444 == xpos) && (_root.map.trafficlight12.state == 1))) { movecar = 0; } else { movecar = 1; } } else { movecar = 1; } if (movecar == 1) { movecarfinal = 1; var q = 1; while (q <= numofcarsdown) { movieclip = eval ("cardown" add q); if (movieclip.hitTest(xpos, ypos + 17, true)) { if (q != m) { movecarfinal = 0; } } q++; } if ((((60 <= eval (("cardown" add m) add "._y")) && (132 >= eval (("cardown" add m) add "._y"))) || ((204 <= eval (("cardown" add m) add "._y")) && (272 >= eval (("cardown" add m) add "._y")))) || ((324 <= eval (("cardown" add m) add "._y")) && (396 >= eval (("cardown" add m) add "._y")))) { var s = 1; while (s <= numofcarsright) { if ((((ypos > (eval (("carright" add s) add "._y") - 26)) && (ypos < eval (("carright" add s) add "._y"))) && (xpos > (eval (("carright" add s) add "._x") - eval ("carrightlength" + s)))) && (xpos < (eval (("carright" add s) add "._x") + 15))) { movecarfinal = 0; } s++; } var s = 1; while (s <= numofcarsleft) { if ((((ypos > (eval (("carleft" add s) add "._y") - 26)) && (ypos < eval (("carleft" add s) add "._y"))) && (xpos > (eval (("carleft" add s) add "._x") - 15))) && (xpos < (eval (("carleft" add s) add "._x") + eval ("carleftlength" + s)))) { movecarfinal = 0; } s++; } } } if (movecarfinal == 1) { setProperty(eval ("cardown" add m), _y , eval (("cardown" add m) add "._y") + eval ("cardownspeed" + m)); } if (0 == ypos) { queue = queue + 1; } movecarfinal = 0; } m++; } var m = 1; while (m <= numofcarsup) { if (1 == eval ("carupok" + m)) { xpos = eval (("carup" add m) add "._x"); ypos = eval (("carup" add m) add "._y"); movecar = 0; if (0 > ypos) { removeMovieClip(eval ("carup" add m)); carsdone = carsdone + 1; Set("carupok" + m, 0); } if ((ypos > 130) && (ypos < 134)) { if (((((104 == xpos) && (_root.map.trafficlight1.state == 1)) || ((224 == xpos) && (_root.map.trafficlight2.state == 1))) || ((368 == xpos) && (_root.map.trafficlight3.state == 1))) || ((464 == xpos) && (_root.map.trafficlight4.state == 1))) { movecar = 0; } else { movecar = 1; } } else if ((ypos > 274) && (ypos < 278)) { if (((((104 == xpos) && (_root.map.trafficlight5.state == 1)) || ((224 == xpos) && (_root.map.trafficlight6.state == 1))) || ((368 == xpos) && (_root.map.trafficlight7.state == 1))) || ((464 == xpos) && (_root.map.trafficlight8.state == 1))) { movecar = 0; } else { movecar = 1; } } else if ((ypos > 394) && (ypos < 398)) { if (((((104 == xpos) && (_root.map.trafficlight9.state == 1)) || ((224 == xpos) && (_root.map.trafficlight10.state == 1))) || ((368 == xpos) && (_root.map.trafficlight11.state == 1))) || ((464 == xpos) && (_root.map.trafficlight12.state == 1))) { movecar = 0; } else { movecar = 1; } } else { movecar = 1; } if (movecar == 1) { movecarfinal = 1; var q = 1; while (q <= numofcarsup) { movieclip = eval ("carup" add q); if (movieclip.hitTest(xpos, ypos - 17, true)) { if (q != m) { movecarfinal = 0; } } q++; } if ((((60 <= ypos) && (132 >= ypos)) || ((204 <= ypos) && (272 >= ypos))) || ((324 <= ypos) && (396 >= ypos))) { var s = 1; while (s <= numofcarsright) { if ((((ypos > eval (("carright" add s) add "._y")) && (ypos < (eval (("carright" add s) add "._y") + 26))) && (xpos > (eval (("carright" add s) add "._x") - eval ("carrightlength" + s)))) && (xpos < (eval (("carright" add s) add "._x") + 15))) { movecarfinal = 0; } s++; } var s = 1; while (s <= numofcarsleft) { if ((((ypos > eval (("carleft" add s) add "._y")) && (ypos < (eval (("carleft" add s) add "._y") + 26))) && (xpos > (eval (("carleft" add s) add "._x") - 15))) && (xpos < (eval (("carleft" add s) add "._x") + eval ("carleftlength" + s)))) { movecarfinal = 0; } s++; } } } if (movecarfinal == 1) { setProperty(eval ("carup" add m), _y , eval (("carup" add m) add "._y") - eval ("carupspeed" + m)); } if (456 == ypos) { queue = queue + 1; } movecarfinal = 0; } m++; } _root.map.trafficlight1.onPress = function () { if (_root.map.trafficlight1.state == 1) { removeMovieClip("_root.map.trafficlightpicture1"); attachMovie("trafficlightupdown", "trafficlightpicture1", 10013, {_x:xpos1, _y:_root.ypos1}); _root.map.trafficlight1.state = 0; } else { removeMovieClip("_root.map.trafficlightpicture1"); attachMovie("trafficlightleftright", "trafficlightpicture1", 10013, {_x:xpos1, _y:ypos1}); _root.map.trafficlight1.state = 1; } }; _root.map.trafficlight2.onPress = function () { if (_root.map.trafficlight2.state == 1) { _removeMovieClip("_root.map.trafficlightpicture2"); attachMovie("trafficlightupdown", "trafficlightpicture2", 10002, {_x:xpos2, _y:_root.ypos2}); _root.map.trafficlight2.state = 0; } else { removeMovieClip("_root.map.trafficlightpicture2"); attachMovie("trafficlightleftright", "trafficlightpicture2", 10002, {_x:xpos2, _y:ypos2}); _root.map.trafficlight2.state = 1; } }; _root.map.trafficlight3.onPress = function () { if (_root.map.trafficlight3.state == 1) { removeMovieClip("_root.map.trafficlightpicture3"); attachMovie("trafficlightupdown", "trafficlightpicture3", 10003, {_x:xpos3, _y:_root.ypos3}); _root.map.trafficlight3.state = 0; } else { removeMovieClip("_root.map.trafficlightpicture3"); attachMovie("trafficlightleftright", "trafficlightpicture3", 10003, {_x:xpos3, _y:ypos3}); _root.map.trafficlight3.state = 1; } }; _root.map.trafficlight4.onPress = function () { if (_root.map.trafficlight4.state == 1) { _removeMovieClip("_root.map.trafficlightpicture4"); attachMovie("trafficlightupdown", "trafficlightpicture4", 10004, {_x:xpos4, _y:_root.ypos4}); _root.map.trafficlight4.state = 0; } else { removeMovieClip("_root.map.trafficlightpicture4"); attachMovie("trafficlightleftright", "trafficlightpicture4", 10004, {_x:xpos4, _y:ypos4}); _root.map.trafficlight4.state = 1; } }; _root.map.trafficlight5.onPress = function () { if (_root.map.trafficlight5.state == 1) { removeMovieClip("_root.map.trafficlightpicture5"); attachMovie("trafficlightupdown", "trafficlightpicture5", 10005, {_x:xpos5, _y:_root.ypos5}); _root.map.trafficlight5.state = 0; } else { removeMovieClip("_root.map.trafficlightpicture5"); attachMovie("trafficlightleftright", "trafficlightpicture5", 10005, {_x:xpos5, _y:ypos5}); _root.map.trafficlight5.state = 1; } }; _root.map.trafficlight6.onPress = function () { if (_root.map.trafficlight6.state == 1) { removeMovieClip("_root.map.trafficlightpicture6"); attachMovie("trafficlightupdown", "trafficlightpicture6", 10006, {_x:xpos6, _y:_root.ypos6}); _root.map.trafficlight6.state = 0; } else { removeMovieClip("_root.map.trafficlightpicture6"); attachMovie("trafficlightleftright", "trafficlightpicture6", 10006, {_x:xpos6, _y:ypos6}); _root.map.trafficlight6.state = 1; } }; _root.map.trafficlight7.onPress = function () { if (_root.map.trafficlight7.state == 1) { removeMovieClip("_root.map.trafficlightpicture7"); attachMovie("trafficlightupdown", "trafficlightpicture7", 10007, {_x:xpos7, _y:_root.ypos7}); _root.map.trafficlight7.state = 0; } else { removeMovieClip("_root.map.trafficlightpicture1"); attachMovie("trafficlightleftright", "trafficlightpicture7", 10007, {_x:xpos7, _y:ypos7}); _root.map.trafficlight7.state = 1; } }; _root.map.trafficlight8.onPress = function () { if (_root.map.trafficlight8.state == 1) { removeMovieClip("_root.map.trafficlightpicture8"); attachMovie("trafficlightupdown", "trafficlightpicture8", 10008, {_x:xpos8, _y:_root.ypos8}); _root.map.trafficlight8.state = 0; } else { removeMovieClip("_root.map.trafficlightpicture8"); attachMovie("trafficlightleftright", "trafficlightpicture8", 10008, {_x:xpos8, _y:ypos8}); _root.map.trafficlight8.state = 1; } }; _root.map.trafficlight9.onPress = function () { if (_root.map.trafficlight9.state == 1) { removeMovieClip("_root.map.trafficlightpicture9"); attachMovie("trafficlightupdown", "trafficlightpicture9", 10009, {_x:xpos9, _y:_root.ypos9}); _root.map.trafficlight9.state = 0; } else { removeMovieClip("_root.map.trafficlightpicture9"); attachMovie("trafficlightleftright", "trafficlightpicture9", 10009, {_x:xpos9, _y:ypos9}); _root.map.trafficlight9.state = 1; } }; _root.map.trafficlight10.onPress = function () { if (_root.map.trafficlight10.state == 1) { removeMovieClip("_root.map.trafficlightpicture10"); attachMovie("trafficlightupdown", "trafficlightpicture10", 10010, {_x:xpos10, _y:_root.ypos10}); _root.map.trafficlight10.state = 0; } else { removeMovieClip("_root.map.trafficlightpicture10"); attachMovie("trafficlightleftright", "trafficlightpicture10", 10010, {_x:xpos10, _y:ypos10}); _root.map.trafficlight10.state = 1; } }; _root.map.trafficlight11.onPress = function () { if (_root.map.trafficlight11.state == 1) { removeMovieClip("_root.map.trafficlightpicture11"); attachMovie("trafficlightupdown", "trafficlightpicture11", 10011, {_x:xpos11, _y:_root.ypos11}); _root.map.trafficlight11.state = 0; } else { removeMovieClip("_root.map.trafficlightpicture11"); attachMovie("trafficlightleftright", "trafficlightpicture11", 10011, {_x:xpos11, _y:ypos11}); _root.map.trafficlight11.state = 1; } }; _root.map.trafficlight12.onPress = function () { if (_root.map.trafficlight12.state == 1) { removeMovieClip("_root.map.trafficlightpicture12"); attachMovie("trafficlightupdown", "trafficlightpicture12", 10012, {_x:xpos12, _y:_root.ypos12}); _root.map.trafficlight12.state = 0; } else { removeMovieClip("_root.map.trafficlightpicture12"); attachMovie("trafficlightleftright", "trafficlightpicture12", 10012, {_x:xpos12, _y:ypos12}); _root.map.trafficlight12.state = 1; } };
Frame 5
if (queue == 5) { gotoAndStop (6); } if (carsdone >= 20) { carfreq = 22; } if (carsdone >= 40) { carfreq = 20; } if (carsdone >= 60) { carfreq = 17; } if (carsdone >= 80) { carfreq = 15; } if (carsdone >= 100) { carfreq = 12; } if (carsdone >= 120) { carfreq = 10; } if (carsdone >= 140) { carfreq = 7; } if (carsdone >= 160) { carfreq = 5; } if (timer >= carfreq) { cartype = random(4) + 1; carsort = random(3) + 1; if (cartype == 1) { carposition = random(3) + 1; addedcars = addedcars + 1; numofcarsright = numofcarsright + 1; if (carsort == 1) { Set("carrightspeed" + numofcarsright, 3); Set("carrightlength" + numofcarsright, 15); Set("carrightsort" + numofcarsright, "carright"); } else if (carsort == 2) { Set("carrightspeed" + numofcarsright, 2.5); Set("carrightlength" + numofcarsright, 39); Set("carrightsort" + numofcarsright, "truckright"); } else if (carsort == 3) { Set("carrightspeed" + numofcarsright, 3.5); Set("carrightlength" + numofcarsright, 15); Set("carrightsort" + numofcarsright, "sportsright"); } if (carposition == 1) { attachMovie(eval ("carrightsort" + numofcarsright), "carright" add numofcarsright, 100000 + addedcars, {_x:0, _y:104}); } else if (carposition == 2) { attachMovie(eval ("carrightsort" + numofcarsright), "carright" add numofcarsright, 100000 + addedcars, {_x:0, _y:248}); } else if (carposition == 3) { attachMovie(eval ("carrightsort" + numofcarsright), "carright" add numofcarsright, 100000 + addedcars, {_x:0, _y:368}); } timer = 0; Set("carrightok" + numofcarsright, 1); } else if (cartype == 2) { carposition = random(4) + 1; addedcars = addedcars + 1; numofcarsdown = numofcarsdown + 1; if (carsort == 1) { Set("cardownspeed" + numofcarsdown, 3); Set("cardownlength" + numofcarsdown, 15); Set("cardownsort" + numofcarsdown, "cardown"); } else if (carsort == 2) { Set("cardownspeed" + numofcarsdown, 2.5); Set("cardownlength" + numofcarsdown, 39); Set("cardownsort" + numofcarsdown, "truckdown"); } else if (carsort == 3) { Set("cardownspeed" + numofcarsdown, 3.5); Set("cardownlength" + numofcarsdown, 15); Set("cardownsort" + numofcarsdown, "sportsdown"); } if (carposition == 1) { attachMovie(eval ("cardownsort" + numofcarsdown), "cardown" add numofcarsdown, 100000 + addedcars, {_x:84, _y:0}); } else if (carposition == 2) { attachMovie(eval ("cardownsort" + numofcarsdown), "cardown" add numofcarsdown, 100000 + addedcars, {_x:204, _y:0}); } else if (carposition == 3) { attachMovie(eval ("cardownsort" + numofcarsdown), "cardown" add numofcarsdown, 100000 + addedcars, {_x:348, _y:0}); } else if (carposition == 4) { attachMovie(eval ("cardownsort" + numofcarsdown), "cardown" add numofcarsdown, 100000 + addedcars, {_x:444, _y:0}); } timer = 0; Set("cardownok" + numofcarsdown, 1); } else if (cartype == 3) { carposition = random(3) + 1; addedcars = addedcars + 1; numofcarsleft = numofcarsleft + 1; if (carsort == 1) { Set("carleftspeed" + numofcarsleft, 3); Set("carleftlength" + numofcarsleft, 15); Set("carleftsort" + numofcarsleft, "carleft"); } else if (carsort == 2) { Set("carleftspeed" + numofcarsleft, 2.5); Set("carleftlength" + numofcarsleft, 39); Set("carleftsort" + numofcarsleft, "truckleft"); } else if (carsort == 3) { Set("carleftspeed" + numofcarsleft, 3.5); Set("carleftlength" + numofcarsleft, 15); Set("carleftsort" + numofcarsleft, "sportsleft"); } if (carposition == 1) { attachMovie(eval ("carleftsort" + numofcarsleft), "carleft" add numofcarsleft, 100000 + addedcars, {_x:552, _y:84}); } else if (carposition == 2) { attachMovie(eval ("carleftsort" + numofcarsleft), "carleft" add numofcarsleft, 100000 + addedcars, {_x:552, _y:228}); } else if (carposition == 3) { attachMovie(eval ("carleftsort" + numofcarsleft), "carleft" add numofcarsleft, 100000 + addedcars, {_x:552, _y:348}); } timer = 0; Set("carleftok" + numofcarsleft, 1); } else if (cartype == 4) { carposition = random(4) + 1; addedcars = addedcars + 1; numofcarsup = numofcarsup + 1; if (carsort == 1) { Set("carupspeed" + numofcarsup, 3); Set("caruplength" + numofcarsup, 15); Set("carupsort" + numofcarsup, "carup"); } else if (carsort == 2) { Set("carupspeed" + numofcarsup, 2.5); Set("caruplength" + numofcarsup, 39); Set("carupsort" + numofcarsup, "truckup"); } else if (carsort == 3) { Set("carupspeed" + numofcarsup, 3.5); Set("caruplength" + numofcarsup, 15); Set("carupsort" + numofcarsup, "sportsup"); } if (carposition == 1) { attachMovie(eval ("carupsort" + numofcarsup), "carup" add numofcarsup, 100000 + addedcars, {_x:104, _y:456}); } else if (carposition == 2) { attachMovie(eval ("carupsort" + numofcarsup), "carup" add numofcarsup, 100000 + addedcars, {_x:224, _y:456}); } else if (carposition == 3) { attachMovie(eval ("carupsort" + numofcarsup), "carup" add numofcarsup, 100000 + addedcars, {_x:368, _y:456}); } else if (carposition == 4) { attachMovie(eval ("carupsort" + numofcarsup), "carup" add numofcarsup, 100000 + addedcars, {_x:464, _y:456}); } timer = 0; Set("carupok" + numofcarsup, 1); } } timer = timer + 1; gotoAndPlay (4);
Frame 6
attachMovie("youlose", "youlose", this.getNextHighestDepth(), {_x:0, _y:0}); musictrack1.stop(); musictrack2.stop(); stop(); _root.youlose.playagain.onPress = function () { removeMovieClip("_root.map"); removeMovieClip("_root.map.trafficlightpicture1"); removeMovieClip("_root.map.trafficlightpicture2"); removeMovieClip("_root.map.trafficlightpicture3"); removeMovieClip("_root.map.trafficlightpicture4"); removeMovieClip("_root.map.trafficlightpicture5"); removeMovieClip("_root.map.trafficlightpicture6"); removeMovieClip("_root.map.trafficlightpicture7"); removeMovieClip("_root.map.trafficlightpicture8"); removeMovieClip("_root.map.trafficlightpicture9"); removeMovieClip("_root.map.trafficlightpicture10"); removeMovieClip("_root.map.trafficlightpicture11"); removeMovieClip("_root.map.trafficlightpicture12"); removeMovieClip("trafficlightpicture1"); removeMovieClip("trafficlightpicture2"); removeMovieClip("trafficlightpicture3"); removeMovieClip("trafficlightpicture4"); removeMovieClip("trafficlightpicture5"); removeMovieClip("trafficlightpicture6"); removeMovieClip("trafficlightpicture7"); removeMovieClip("trafficlightpicture8"); removeMovieClip("trafficlightpicture9"); removeMovieClip("trafficlightpicture10"); removeMovieClip("trafficlightpicture11"); removeMovieClip("trafficlightpicture12"); var n = 1; while (n <= numofcarsright) { removeMovieClip(eval ("_root.carright" add n)); n++; } var n = 1; while (n <= numofcarsleft) { removeMovieClip(eval ("_root.carleft" add n)); n++; } var n = 1; while (n <= numofcarsup) { removeMovieClip(eval ("_root.carup" add n)); n++; } var n = 1; while (n <= numofcarsdown) { removeMovieClip(eval ("_root.cardown" add n)); n++; } removeMovieClip("_root.youlose"); gotoAndPlay (2); };
Symbol 3 MovieClip [map] Frame 1
M0 = new Array(0, 0, 0, 1, 2, 9, 0, 0, 1, 2, 0, 0, 0, 0, 1, 2, 0, 0, 1, 2, 10, 0, 0); M1 = new Array(0, 7, 0, 1, 2, 0, 0, 0, 1, 2, 0, 9, 0, 0, 1, 2, 9, 0, 1, 2, 0, 0, 0); M2 = new Array(0, 0, 0, 1, 2, 0, 0, 0, 1, 2, 0, 0, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 0); M3 = new Array(3, 3, 3, 5, 6, 3, 3, 3, 5, 6, 3, 3, 3, 3, 5, 6, 3, 3, 5, 6, 3, 3, 3); M4 = new Array(4, 4, 4, 6, 6, 4, 4, 4, 6, 6, 4, 4, 4, 4, 6, 6, 4, 4, 6, 6, 4, 4, 4); M5 = new Array(9, 0, 0, 1, 2, 9, 0, 0, 1, 2, 8, 0, 0, 0, 1, 2, 9, 0, 1, 2, 9, 0, 0); M6 = new Array(0, 0, 0, 1, 2, 0, 0, 0, 1, 2, 0, 0, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 0); M7 = new Array(9, 0, 0, 1, 2, 0, 9, 0, 1, 2, 0, 0, 0, 0, 1, 2, 9, 0, 1, 2, 9, 0, 0); M8 = new Array(0, 0, 0, 1, 2, 0, 0, 0, 1, 2, 0, 0, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 0); M9 = new Array(3, 3, 3, 5, 6, 3, 3, 3, 5, 6, 3, 3, 3, 3, 5, 6, 3, 3, 5, 6, 3, 3, 3); M10 = new Array(4, 4, 4, 6, 6, 4, 4, 4, 6, 6, 4, 4, 4, 4, 6, 6, 4, 4, 6, 6, 4, 4, 4); M11 = new Array(0, 0, 0, 1, 2, 10, 0, 0, 1, 2, 0, 0, 0, 0, 1, 2, 0, 0, 1, 2, 9, 0, 0); M12 = new Array(0, 7, 0, 1, 2, 0, 0, 0, 1, 2, 0, 0, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 0); M13 = new Array(0, 0, 0, 1, 2, 0, 0, 0, 1, 2, 0, 0, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 0); M14 = new Array(3, 3, 3, 5, 6, 3, 3, 3, 5, 6, 3, 3, 3, 3, 5, 6, 3, 3, 5, 6, 3, 3, 3); M15 = new Array(4, 4, 4, 6, 6, 4, 4, 4, 6, 6, 4, 4, 4, 4, 6, 6, 4, 4, 6, 6, 4, 4, 4); M16 = new Array(10, 0, 0, 1, 2, 0, 0, 0, 1, 2, 0, 0, 0, 0, 1, 2, 9, 0, 1, 2, 0, 0, 0); M17 = new Array(0, 0, 0, 1, 2, 0, 7, 0, 1, 2, 0, 0, 7, 0, 1, 2, 0, 0, 1, 2, 0, 7, 0); M18 = new Array(0, 0, 0, 1, 2, 0, 0, 0, 1, 2, 0, 0, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 0); trafficlightnumber = 1; n3 = 1; var n1 = 0; while (n1 <= 18) { var n2 = 0; while (n2 <= 22) { if (eval ("M" add n1)[n2] == 0) { attachMovie("trees", (("trees" add n1) add "-") add n2, n3, {_x:n2 * 24, _y:n1 * 24}); } if (eval ("M" add n1)[n2] == 1) { attachMovie("road1", (("road1" add n1) add "-") add n2, n3, {_x:(n2 * 24) + 12, _y:(n1 * 24) + 12}); } if (eval ("M" add n1)[n2] == 2) { attachMovie("road2", (("road2" add n1) add "-") add n2, n3, {_x:(n2 * 24) + 12, _y:(n1 * 24) + 12}); } if (eval ("M" add n1)[n2] == 3) { attachMovie("road3", (("road3" add n1) add "-") add n2, n3, {_x:(n2 * 24) + 12, _y:(n1 * 24) + 12}); } if (eval ("M" add n1)[n2] == 4) { attachMovie("road4", (("road4" add n1) add "-") add n2, n3, {_x:(n2 * 24) + 12, _y:(n1 * 24) + 12}); } if (eval ("M" add n1)[n2] == 10) { attachMovie("building2", (("building2" add n1) add "-") add n2, 5000 + n3, {_x:n2 * 24, _y:n1 * 24}); } if (eval ("M" add n1)[n2] == 7) { attachMovie("building", (("building" add n1) add "-") add n2, 5000 + n3, {_x:(n2 * 24) + 12, _y:(n1 * 24) + 12}); } if (eval ("M" add n1)[n2] == 8) { attachMovie("stadium", (("stadium" add n1) add "-") add n2, 5000 + n3, {_x:n2 * 24, _y:n1 * 24}); } if (eval ("M" add n1)[n2] == 9) { attachMovie("house", (("house" add n1) add "-") add n2, 5000 + n3, {_x:n2 * 24, _y:n1 * 24}); } if (eval ("M" add n1)[n2] == 5) { attachMovie("trafficlight", "trafficlight" add trafficlightnumber, n3); attachMovie("trafficlightleftright", "trafficlightpicture" add trafficlightnumber, n3 + 1, {_x:(n2 * 24) + 24, _y:(n1 * 24) + 24}); eval ("trafficlight" add trafficlightnumber)._x = (n2 + 1) * 24; eval ("trafficlight" add trafficlightnumber)._y = (n1 + 1) * 24; eval ("trafficlight" add trafficlightnumber).state = 1; trafficlightnumber = trafficlightnumber + 1; } n3 = n3 + 2; n2++; } n2 = 0; n1++; }
Symbol 81 MovieClip [howtoplay2] Frame 1
_root.howtoplay2.closebutton.onPress = function () { removeMovieClip("_root.howtoplay2"); };
Symbol 86 MovieClip [howtoplay] Frame 1
_root.howtoplay.cont.onPress = function () { removeMovieClip("_root.howtoplay"); attachMovie("howtoplay2", "howtoplay2", this.getNextHighestDepth, {_x:100, _y:0}); };
Symbol 96 Button
on (release) { _root.play(); }
Symbol 97 MovieClip Frame 1
_root.stop(); PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (PercentLoaded != 100) { setProperty(bar, _xscale , PercentLoaded); } else { gotoAndStop ("loaded"); }
Symbol 97 MovieClip Frame 2
gotoAndPlay (1);

Library Items

Symbol 1 Sound [song2]
Symbol 2 Sound [song1]
Symbol 3 MovieClip [map]
Symbol 4 GraphicUsed by:5
Symbol 5 MovieClip [road4]Uses:4
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClip [road3]Uses:6
Symbol 8 GraphicUsed by:9
Symbol 9 MovieClip [road2]Uses:8
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClip [road1]Uses:10
Symbol 12 GraphicUsed by:13
Symbol 13 MovieClip [grass]Uses:12
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClip [carup]Uses:14
Symbol 16 GraphicUsed by:17
Symbol 17 MovieClip [stadium]Uses:16
Symbol 18 GraphicUsed by:19
Symbol 19 MovieClip [trees]Uses:18
Symbol 20 GraphicUsed by:21
Symbol 21 MovieClip [house]Uses:20
Symbol 22 GraphicUsed by:23
Symbol 23 MovieClip [building2]Uses:22
Symbol 24 GraphicUsed by:25
Symbol 25 MovieClip [building]Uses:24
Symbol 26 GraphicUsed by:27
Symbol 27 MovieClip [cardown]Uses:26
Symbol 28 GraphicUsed by:29
Symbol 29 MovieClip [carleft]Uses:28
Symbol 30 GraphicUsed by:31
Symbol 31 MovieClip [truckup]Uses:30
Symbol 32 GraphicUsed by:33
Symbol 33 MovieClip [truckleft]Uses:32
Symbol 34 GraphicUsed by:35
Symbol 35 MovieClip [truckdown]Uses:34
Symbol 36 GraphicUsed by:37
Symbol 37 MovieClip [sportsdown]Uses:36
Symbol 38 GraphicUsed by:39
Symbol 39 MovieClip [sportsup]Uses:38
Symbol 40 GraphicUsed by:41
Symbol 41 MovieClip [sportsleft]Uses:40
Symbol 42 GraphicUsed by:43
Symbol 43 Button [trafficlight]Uses:42
Symbol 44 FontUsed by:45
Symbol 45 TextUses:44Used by:46
Symbol 46 MovieClip [welldone]Uses:45
Symbol 47 GraphicUsed by:48
Symbol 48 MovieClip [trafficlightupdown]Uses:47
Symbol 49 GraphicUsed by:50
Symbol 50 MovieClip [trafficlightleftright]Uses:49
Symbol 51 GraphicUsed by:61
Symbol 52 FontUsed by:53
Symbol 53 EditableTextUses:52Used by:61
Symbol 54 FontUsed by:55 56 58 114 127 128 129 130
Symbol 55 EditableTextUses:54Used by:61
Symbol 56 TextUses:54Used by:61
Symbol 57 GraphicUsed by:60 96
Symbol 58 TextUses:54Used by:60
Symbol 59 GraphicUsed by:60 96
Symbol 60 ButtonUses:57 58 59Used by:61
Symbol 61 MovieClip [youlose]Uses:51 53 55 56 60
Symbol 62 GraphicUsed by:63
Symbol 63 MovieClip [carright]Uses:62Used by:81
Symbol 64 GraphicUsed by:65
Symbol 65 MovieClip [truckright]Uses:64Used by:81
Symbol 66 GraphicUsed by:67
Symbol 67 MovieClip [sportsright]Uses:66Used by:81
Symbol 68 GraphicUsed by:81 86
Symbol 69 FontUsed by:70 74 84 112 131
Symbol 70 TextUses:69Used by:81 86
Symbol 71 FontUsed by:72 73 78 79 80 82 83
Symbol 72 TextUses:71Used by:81
Symbol 73 TextUses:71Used by:81
Symbol 74 TextUses:69Used by:75 77
Symbol 75 MovieClipUses:74Used by:77 81
Symbol 76 GraphicUsed by:77
Symbol 77 ButtonUses:76 75 74Used by:81
Symbol 78 TextUses:71Used by:81
Symbol 79 TextUses:71Used by:81
Symbol 80 TextUses:71Used by:81
Symbol 81 MovieClip [howtoplay2]Uses:68 70 72 73 75 77 67 65 63 78 79 80
Symbol 82 TextUses:71Used by:86
Symbol 83 TextUses:71Used by:86
Symbol 84 TextUses:69Used by:85
Symbol 85 ButtonUses:84Used by:86
Symbol 86 MovieClip [howtoplay]Uses:68 70 82 83 85
Symbol 87 GraphicUsed by:89
Symbol 88 GraphicUsed by:89
Symbol 89 Button [play]Uses:87 88Used by:Timeline
Symbol 90 GraphicUsed by:Timeline
Symbol 91 GraphicUsed by:92
Symbol 92 MovieClipUses:91Used by:97
Symbol 93 GraphicUsed by:97
Symbol 94 GraphicUsed by:96
Symbol 95 GraphicUsed by:96
Symbol 96 ButtonUses:57 94 59 95Used by:97
Symbol 97 MovieClipUses:92 93 96Used by:Timeline
Symbol 98 FontUsed by:99 100
Symbol 99 TextUses:98Used by:Timeline
Symbol 100 TextUses:98Used by:Timeline
Symbol 101 GraphicUsed by:Timeline
Symbol 102 FontUsed by:103 104 105
Symbol 103 TextUses:102Used by:Timeline
Symbol 104 TextUses:102Used by:Timeline
Symbol 105 TextUses:102Used by:Timeline
Symbol 106 GraphicUsed by:108
Symbol 107 GraphicUsed by:108
Symbol 108 ButtonUses:106 107Used by:Timeline
Symbol 109 GraphicUsed by:111
Symbol 110 GraphicUsed by:111
Symbol 111 ButtonUses:109 110Used by:Timeline
Symbol 112 EditableTextUses:69Used by:Timeline
Symbol 113 GraphicUsed by:Timeline
Symbol 114 EditableTextUses:54Used by:Timeline
Symbol 115 GraphicUsed by:117
Symbol 116 GraphicUsed by:117
Symbol 117 ButtonUses:115 116Used by:Timeline
Symbol 118 GraphicUsed by:119
Symbol 119 ButtonUses:118Used by:Timeline
Symbol 120 GraphicUsed by:121
Symbol 121 ButtonUses:120Used by:Timeline
Symbol 122 GraphicUsed by:126
Symbol 123 GraphicUsed by:126
Symbol 124 GraphicUsed by:126
Symbol 125 GraphicUsed by:126
Symbol 126 ButtonUses:122 123 124 125Used by:Timeline
Symbol 127 EditableTextUses:54Used by:Timeline
Symbol 128 TextUses:54Used by:Timeline
Symbol 129 TextUses:54Used by:Timeline
Symbol 130 EditableTextUses:54Used by:Timeline
Symbol 131 EditableTextUses:69Used by:Timeline

Instance Names

"play"Frame 2Symbol 89 Button [play]
"howto"Frame 2Symbol 108 Button
"source"Frame 2Symbol 111 Button
"carsdone"Frame 4Symbol 114 EditableText
"nexttrack"Frame 4Symbol 117 Button
"volup"Frame 4Symbol 119 Button
"voldown"Frame 4Symbol 121 Button
"lasttrack"Frame 4Symbol 126 Button
"queue"Frame 4Symbol 127 EditableText
"songtitle"Frame 4Symbol 130 EditableText
"playagain"Symbol 61 MovieClip [youlose] Frame 1Symbol 60 Button
"closebutton"Symbol 81 MovieClip [howtoplay2] Frame 1Symbol 77 Button
"cont"Symbol 86 MovieClip [howtoplay] Frame 1Symbol 85 Button
"bar"Symbol 97 MovieClip Frame 1Symbol 92 MovieClip

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 1 as "song2"
ExportAssets (56)Timeline Frame 1Symbol 2 as "song1"
ExportAssets (56)Timeline Frame 1Symbol 3 as "map"
ExportAssets (56)Timeline Frame 1Symbol 5 as "road4"
ExportAssets (56)Timeline Frame 1Symbol 7 as "road3"
ExportAssets (56)Timeline Frame 1Symbol 9 as "road2"
ExportAssets (56)Timeline Frame 1Symbol 11 as "road1"
ExportAssets (56)Timeline Frame 1Symbol 13 as "grass"
ExportAssets (56)Timeline Frame 1Symbol 15 as "carup"
ExportAssets (56)Timeline Frame 1Symbol 17 as "stadium"
ExportAssets (56)Timeline Frame 1Symbol 19 as "trees"
ExportAssets (56)Timeline Frame 1Symbol 21 as "house"
ExportAssets (56)Timeline Frame 1Symbol 23 as "building2"
ExportAssets (56)Timeline Frame 1Symbol 25 as "building"
ExportAssets (56)Timeline Frame 1Symbol 27 as "cardown"
ExportAssets (56)Timeline Frame 1Symbol 29 as "carleft"
ExportAssets (56)Timeline Frame 1Symbol 31 as "truckup"
ExportAssets (56)Timeline Frame 1Symbol 33 as "truckleft"
ExportAssets (56)Timeline Frame 1Symbol 35 as "truckdown"
ExportAssets (56)Timeline Frame 1Symbol 37 as "sportsdown"
ExportAssets (56)Timeline Frame 1Symbol 39 as "sportsup"
ExportAssets (56)Timeline Frame 1Symbol 41 as "sportsleft"
ExportAssets (56)Timeline Frame 1Symbol 43 as "trafficlight"
ExportAssets (56)Timeline Frame 1Symbol 46 as "welldone"
ExportAssets (56)Timeline Frame 1Symbol 48 as "trafficlightupdown"
ExportAssets (56)Timeline Frame 1Symbol 50 as "trafficlightleftright"
ExportAssets (56)Timeline Frame 1Symbol 61 as "youlose"
ExportAssets (56)Timeline Frame 1Symbol 63 as "carright"
ExportAssets (56)Timeline Frame 1Symbol 65 as "truckright"
ExportAssets (56)Timeline Frame 1Symbol 67 as "sportsright"
ExportAssets (56)Timeline Frame 1Symbol 67 as "sportsright"
ExportAssets (56)Timeline Frame 1Symbol 65 as "truckright"
ExportAssets (56)Timeline Frame 1Symbol 63 as "carright"
ExportAssets (56)Timeline Frame 1Symbol 81 as "howtoplay2"
ExportAssets (56)Timeline Frame 1Symbol 86 as "howtoplay"
ExportAssets (56)Timeline Frame 1Symbol 89 as "play"
ExportAssets (56)Timeline Frame 2Symbol 89 as "play"

Labels

"loaded"Symbol 97 MovieClip Frame 3

Dynamic Text Variables

_root.carsdoneSymbol 53 EditableText""
carsdoneSymbol 114 EditableText""
queueSymbol 127 EditableText""
songtitleSymbol 130 EditableText""




http://swfchan.com/7/31426/info.shtml
Created: 18/5 -2019 15:48:06 Last modified: 18/5 -2019 15:48:06 Server time: 13/05 -2024 12:57:39