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

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

Traffic Control.swf

This is the info page for
Flash #128911

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


Text
Well Done

Game Over

Your score
was:

How to play

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 !

CLOSE

Play Game

How to play

Geheee Games

Traffic Control - http://geheee.freespaces.com

Score

Queue

Traffic Control - http://geheee.freespaces.com

ActionScript [AS1/AS2]

Frame 1
stop(); play.onPress = function () { gotoAndPlay (2); }; howto.onPress = function () { attachMovie("howtoplay", "howtoplay", this.getNextHighestDepth, {_x:100, _y:0}); }; closebutton.onPress = function () { removeMovieClip("howtoplay"); }; (source);// not popped (function () { getURL ("../geheee.freespaces.com/default.htm", "_blank"); });// not popped
Frame 2
stop(); play.onPress = function () { gotoAndPlay (3); }; howto.onPress = function () { attachMovie("howtoplay", "howtoplay", this.getNextHighestDepth, {_x:100, _y:0}); }; closebutton.onPress = function () { removeMovieClip("howtoplay"); }; (source);// not popped (function () { getURL ("../geheee.freespaces.com/default.htm", "_blank"); });// not popped
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", this.getNextHighestDepth(), {_x:0, _y:0}); numofcarsleft = 0; numofcarsright = 0; numofcarsdown = 0; numofcarsup = 0; timer = 0; carsdone = 0; addedcars = 0; carfreq = 35; 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) { xpos = eval (("_root.carright" add n) add "._x"); ypos = eval (("_root.carright" add n) add "._y"); if (552 < xpos) { setProperty(eval ("_root.carright" add n), _x , eval (("_root.carright" add numofcarsright) add "._x")); setProperty(eval ("_root.carright" add n), _y , eval (("_root.carright" add numofcarsright) add "._y")); removeMovieClip(eval ("_root.carright" add numofcarsright)); numofcarsright = numofcarsright - 1; carsdone = carsdone + 1; } else if (84 == ypos) { if (((((60 == xpos) && (_root.map.trafficlight1.state == 0)) || ((180 == xpos) && (_root.map.trafficlight2.state == 0))) || ((324 == xpos) && (_root.map.trafficlight3.state == 0))) || ((420 == xpos) && (_root.map.trafficlight4.state == 0))) { movecar = 0; } else { movecar = 1; } } else if (228 == ypos) { if (((((60 == xpos) && (_root.map.trafficlight5.state == 0)) || ((180 == xpos) && (_root.map.trafficlight6.state == 0))) || ((324 == xpos) && (_root.map.trafficlight7.state == 0))) || ((420 == xpos) && (_root.map.trafficlight8.state == 0))) { movecar = 0; } else { movecar = 1; } } else if (348 == ypos) { if (((((60 == xpos) && (_root.map.trafficlight9.state == 0)) || ((180 == xpos) && (_root.map.trafficlight10.state == 0))) || ((324 == xpos) && (_root.map.trafficlight11.state == 0))) || ((420 == ypos) && (_root.map.trafficlight12.state == 0))) { movecar = 0; } else { movecar = 1; } } else { movecar = 1; } if (movecar == 1) { movecarfinal = 1; var p = 1; while (p <= numofcarsright) { if (((xpos > (eval (("_root.carright" add p) add "._x") - 30)) && (xpos < eval (("_root.carright" add p) add "._x"))) && (ypos == eval (("_root.carright" add p) add "._y"))) { 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 (("_root.cardown" add r) add "._x") - 26)) && (xpos < eval (("_root.cardown" add r) add "._x"))) && (ypos > (eval (("_root.cardown" add r) add "._y") - 15))) && (ypos < (eval (("_root.cardown" add r) add "._y") + 15))) { movecarfinal = 0; } r++; } var r = 1; while (r <= numofcarsup) { if ((((xpos > (eval (("_root.carup" add r) add "._x") - 26)) && (xpos < eval (("_root.carup" add r) add "._x"))) && (ypos > (eval (("_root.carup" add r) add "._y") - 15))) && (ypos < (eval (("_root.carup" add r) add "._y") + 15))) { movecarfinal = 0; } r++; } } } if (movecarfinal == 1) { setProperty(eval ("_root.carright" add n), _x , eval (("_root.carright" add n) add "._x") + 2); } if (0 == xpos) { queue = queue + 1; } movecarfinal = 0; n++; } var n = 1; while (n <= numofcarsleft) { xpos = eval (("_root.carleft" add n) add "._x"); ypos = eval (("_root.carleft" add n) add "._y"); if (0 > xpos) { setProperty(eval ("_root.carleft" add n), _x , eval (("_root.carleft" add numofcarsleft) add "._x")); setProperty(eval ("_root.carleft" add n), _y , eval (("_root.carleft" add numofcarsleft) add "._y")); removeMovieClip(eval ("_root.carleft" add numofcarsleft)); numofcarsleft = numofcarsleft - 1; carsdone = carsdone + 1; } if (104 == ypos) { if (((((132 == xpos) && (_root.map.trafficlight1.state == 0)) || ((252 == xpos) && (_root.map.trafficlight2.state == 0))) || ((396 == xpos) && (_root.map.trafficlight3.state == 0))) || ((492 == xpos) && (_root.map.trafficlight4.state == 0))) { movecar = 0; } else { movecar = 1; } } else if (248 == ypos) { if (((((132 == xpos) && (_root.map.trafficlight5.state == 0)) || ((252 == xpos) && (_root.map.trafficlight6.state == 0))) || ((396 == xpos) && (_root.map.trafficlight7.state == 0))) || ((492 == xpos) && (_root.map.trafficlight8.state == 0))) { movecar = 0; } else { movecar = 1; } } else if (368 == ypos) { if (((((132 == xpos) && (_root.map.trafficlight9.state == 0)) || ((252 == xpos) && (_root.map.trafficlight10.state == 0))) || ((396 == xpos) && (_root.map.trafficlight11.state == 0))) || ((492 == xpos) && (_root.map.trafficlight12.state == 0))) { movecar = 0; } else { movecar = 1; } } else { movecar = 1; } if (movecar == 1) { movecarfinal = 1; var p = 1; while (p <= numofcarsleft) { if (((xpos > eval (("_root.carleft" add p) add "._x")) && (xpos < (eval (("_root.carleft" add p) add "._x") + 30))) && (ypos == eval (("_root.carleft" add p) add "._y"))) { 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 (("_root.cardown" add r) add "._x")) && (xpos < (eval (("_root.cardown" add r) add "._x") + 26))) && (ypos > (eval (("_root.cardown" add r) add "._y") - 15))) && (ypos < (eval (("_root.cardown" add r) add "._y") + 15))) { movecarfinal = 0; } r++; } var r = 1; while (r <= numofcarsup) { if ((((xpos > eval (("_root.carup" add r) add "._x")) && (xpos < (eval (("_root.carup" add r) add "._x") + 26))) && (ypos > (eval (("_root.carup" add r) add "._y") - 15))) && (ypos < (eval (("_root.carup" add r) add "._y") + 15))) { movecarfinal = 0; } r++; } } } if (movecarfinal == 1) { setProperty(eval ("_root.carleft" add n), _x , eval (("_root.carleft" add n) add "._x") - 2); } if (552 == xpos) { queue = queue + 1; } movecarfinal = 0; n++; } var m = 1; while (m <= numofcarsdown) { xpos = eval (("_root.cardown" add m) add "._x"); ypos = eval (("_root.cardown" add m) add "._y"); if (456 < ypos) { setProperty(eval ("_root.cardown" add m), _x , eval (("_root.cardown" add numofcarsdown) add "._x")); setProperty(eval ("_root.cardown" add m), _y , eval (("_root.cardown" add numofcarsdown) add "._y")); removeMovieClip(eval ("_root.cardown" add numofcarsdown)); numofcarsdown = numofcarsdown - 1; carsdone = carsdone + 1; } if (60 == ypos) { 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 (204 == ypos) { 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 (324 == ypos) { 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) { if (((ypos > (eval (("_root.cardown" add q) add "._y") - 30)) && (ypos < eval (("_root.cardown" add q) add "._y"))) && (xpos == eval (("_root.cardown" add q) add "._x"))) { movecarfinal = 0; } q++; } if ((((60 <= eval (("_root.cardown" add m) add "._y")) && (132 >= eval (("_root.cardown" add m) add "._y"))) || ((204 <= eval (("_root.cardown" add m) add "._y")) && (272 >= eval (("_root.cardown" add m) add "._y")))) || ((324 <= eval (("_root.cardown" add m) add "._y")) && (396 >= eval (("_root.cardown" add m) add "._y")))) { var s = 1; while (s <= numofcarsright) { if ((((ypos > (eval (("_root.carright" add s) add "._y") - 26)) && (ypos < eval (("_root.carright" add s) add "._y"))) && (xpos > (eval (("_root.carright" add s) add "._x") - 15))) && (xpos < (eval (("_root.carright" add s) add "._x") + 15))) { movecarfinal = 0; } s++; } var s = 1; while (s <= numofcarsleft) { if ((((ypos > (eval (("_root.carleft" add s) add "._y") - 26)) && (ypos < eval (("_root.carleft" add s) add "._y"))) && (xpos > (eval (("_root.carleft" add s) add "._x") - 15))) && (xpos < (eval (("_root.carleft" add s) add "._x") + 15))) { movecarfinal = 0; } s++; } } } if (movecarfinal == 1) { setProperty(eval ("_root.cardown" add m), _y , eval (("_root.cardown" add m) add "._y") + 2); } if (0 == ypos) { queue = queue + 1; } movecarfinal = 0; m++; } var m = 1; while (m <= numofcarsup) { xpos = eval (("_root.carup" add m) add "._x"); ypos = eval (("_root.carup" add m) add "._y"); if (0 > ypos) { setProperty(eval ("_root.carup" add m), _x , eval (("_root.carup" add numofcarsup) add "._x")); setProperty(eval ("_root.carup" add m), _y , eval (("_root.carup" add numofcarsup) add "._y")); removeMovieClip(eval ("_root.carup" add numofcarsup)); numofcarsup = numofcarsup - 1; carsdone = carsdone + 1; } if (132 == ypos) { 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 (276 == ypos) { 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 (396 == ypos) { 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) { if (((ypos > eval (("_root.carup" add q) add "._y")) && (ypos < (eval (("_root.carup" add q) add "._y") + 30))) && (xpos == eval (("_root.carup" add q) add "._x"))) { 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 (("_root.carright" add s) add "._y")) && (ypos < (eval (("_root.carright" add s) add "._y") + 26))) && (xpos > (eval (("_root.carright" add s) add "._x") - 15))) && (xpos < (eval (("_root.carright" add s) add "._x") + 15))) { movecarfinal = 0; } s++; } var s = 1; while (s <= numofcarsleft) { if ((((ypos > eval (("_root.carleft" add s) add "._y")) && (ypos < (eval (("_root.carleft" add s) add "._y") + 26))) && (xpos > (eval (("_root.carleft" add s) add "._x") - 15))) && (xpos < (eval (("_root.carleft" add s) add "._x") + 15))) { movecarfinal = 0; } s++; } } } if (movecarfinal == 1) { setProperty(eval ("_root.carup" add m), _y , eval (("_root.carup" add m) add "._y") - 2); } 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 = 30; } if (carsdone >= 40) { carfreq = 25; } if (carsdone >= 60) { carfreq = 20; } if (carsdone >= 80) { carfreq = 15; } if (carsdone >= 100) { carfreq = 10; } if (carsdone >= 120) { carfreq = 5; } if (carsdone >= 140) { carfreq = 2; } if (timer >= carfreq) { cartype = random(4) + 1; if (cartype == 1) { carposition = random(3) + 1; addedcars = addedcars + 1; numofcarsright = numofcarsright + 1; if (carposition == 1) { attachMovie("carright", "carright" add numofcarsright, 100000 + addedcars, {_x:0, _y:84}); } else if (carposition == 2) { attachMovie("carright", "carright" add numofcarsright, 100000 + addedcars, {_x:0, _y:228}); } else if (carposition == 3) { attachMovie("carright", "carright" add numofcarsright, 100000 + addedcars, {_x:0, _y:348}); } timer = 0; } else if (cartype == 2) { carposition = random(4) + 1; addedcars = addedcars + 1; numofcarsdown = numofcarsdown + 1; if (carposition == 1) { attachMovie("cardown", "cardown" add numofcarsdown, 100000 + addedcars, {_x:84, _y:0}); } else if (carposition == 2) { attachMovie("cardown", "cardown" add numofcarsdown, 100000 + addedcars, {_x:204, _y:0}); } else if (carposition == 3) { attachMovie("cardown", "cardown" add numofcarsdown, 100000 + addedcars, {_x:348, _y:0}); } else if (carposition == 4) { attachMovie("cardown", "cardown" add numofcarsdown, 100000 + addedcars, {_x:444, _y:0}); } timer = 0; } else if (cartype == 3) { carposition = random(3) + 1; addedcars = addedcars + 1; numofcarsleft = numofcarsleft + 1; if (carposition == 1) { attachMovie("carleft", "carleft" add numofcarsleft, 100000 + addedcars, {_x:552, _y:104}); } else if (carposition == 2) { attachMovie("carleft", "carleft" add numofcarsleft, 100000 + addedcars, {_x:552, _y:248}); } else if (carposition == 3) { attachMovie("carleft", "carleft" add numofcarsleft, 100000 + addedcars, {_x:552, _y:368}); } timer = 0; } else if (cartype == 4) { carposition = random(4) + 1; addedcars = addedcars + 1; numofcarsup = numofcarsup + 1; if (carposition == 1) { attachMovie("carup", "carup" add numofcarsup, 100000 + addedcars, {_x:104, _y:456}); } else if (carposition == 2) { attachMovie("carup", "carup" add numofcarsup, 100000 + addedcars, {_x:224, _y:456}); } else if (carposition == 3) { attachMovie("carup", "carup" add numofcarsup, 100000 + addedcars, {_x:368, _y:456}); } else if (carposition == 4) { attachMovie("carup", "carup" add numofcarsup, 100000 + addedcars, {_x:464, _y:456}); } timer = 0; } } 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 62 MovieClip [howtoplay] Frame 1
_root.howtoplay.closebutton.onPress = function () { removeMovieClip("_root.howtoplay"); };
Symbol 69 Button
on (release) { _root.play(); }
Symbol 70 MovieClip Frame 1
_root.stop(); PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (PercentLoaded != 100) { setProperty(bar, _xscale , PercentLoaded); } else { gotoAndStop ("loaded"); }
Symbol 70 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 [carright]Uses:30
Symbol 32 GraphicUsed by:33
Symbol 33 Button [trafficlight]Uses:32
Symbol 34 FontUsed by:35
Symbol 35 TextUses:34Used by:36
Symbol 36 MovieClip [welldone]Uses:35
Symbol 37 GraphicUsed by:38
Symbol 38 MovieClip [trafficlightupdown]Uses:37
Symbol 39 GraphicUsed by:40
Symbol 40 MovieClip [trafficlightleftright]Uses:39
Symbol 41 GraphicUsed by:51
Symbol 42 FontUsed by:43
Symbol 43 EditableTextUses:42Used by:51
Symbol 44 FontUsed by:45 84 97 98 99 100
Symbol 45 EditableTextUses:44Used by:51
Symbol 46 GraphicUsed by:50 69
Symbol 47 GraphicUsed by:50 69
Symbol 48 GraphicUsed by:50 69
Symbol 49 GraphicUsed by:50 69
Symbol 50 ButtonUses:46 47 48 49Used by:51
Symbol 51 MovieClip [youlose]Uses:41 43 45 50
Symbol 52 GraphicUsed by:62
Symbol 53 FontUsed by:54 58 82 101
Symbol 54 EditableTextUses:53Used by:62
Symbol 55 FontUsed by:56 57
Symbol 56 EditableTextUses:55Used by:62
Symbol 57 EditableTextUses:55Used by:62
Symbol 58 EditableTextUses:53Used by:59
Symbol 59 MovieClipUses:58Used by:61 62
Symbol 60 GraphicUsed by:61
Symbol 61 ButtonUses:60 59Used by:62
Symbol 62 MovieClip [howtoplay]Uses:52 54 56 57 59 61
Symbol 63 GraphicUsed by:65
Symbol 64 GraphicUsed by:65
Symbol 65 Button [play]Uses:63 64Used by:Timeline
Symbol 66 GraphicUsed by:67
Symbol 67 MovieClipUses:66Used by:70
Symbol 68 GraphicUsed by:70
Symbol 69 ButtonUses:46 47 48 49Used by:70
Symbol 70 MovieClipUses:67 68 69Used by:Timeline
Symbol 71 GraphicUsed by:Timeline
Symbol 72 FontUsed by:73 74 75
Symbol 73 TextUses:72Used by:Timeline
Symbol 74 TextUses:72Used by:Timeline
Symbol 75 TextUses:72Used by:Timeline
Symbol 76 GraphicUsed by:78
Symbol 77 GraphicUsed by:78
Symbol 78 ButtonUses:76 77Used by:Timeline
Symbol 79 GraphicUsed by:81
Symbol 80 GraphicUsed by:81
Symbol 81 ButtonUses:79 80Used by:Timeline
Symbol 82 EditableTextUses:53Used by:Timeline
Symbol 83 GraphicUsed by:Timeline
Symbol 84 EditableTextUses:44Used by:Timeline
Symbol 85 GraphicUsed by:87
Symbol 86 GraphicUsed by:87
Symbol 87 ButtonUses:85 86Used by:Timeline
Symbol 88 GraphicUsed by:89
Symbol 89 ButtonUses:88Used by:Timeline
Symbol 90 GraphicUsed by:91
Symbol 91 ButtonUses:90Used by:Timeline
Symbol 92 GraphicUsed by:96
Symbol 93 GraphicUsed by:96
Symbol 94 GraphicUsed by:96
Symbol 95 GraphicUsed by:96
Symbol 96 ButtonUses:92 93 94 95Used by:Timeline
Symbol 97 EditableTextUses:44Used by:Timeline
Symbol 98 EditableTextUses:44Used by:Timeline
Symbol 99 EditableTextUses:44Used by:Timeline
Symbol 100 EditableTextUses:44Used by:Timeline
Symbol 101 EditableTextUses:53Used by:Timeline

Instance Names

"play"Frame 2Symbol 65 Button [play]
"howto"Frame 2Symbol 78 Button
"source"Frame 2Symbol 81 Button
"carsdone"Frame 4Symbol 84 EditableText
"nexttrack"Frame 4Symbol 87 Button
"volup"Frame 4Symbol 89 Button
"voldown"Frame 4Symbol 91 Button
"lasttrack"Frame 4Symbol 96 Button
"queue"Frame 4Symbol 97 EditableText
"songtitle"Frame 4Symbol 100 EditableText
"playagain"Symbol 51 MovieClip [youlose] Frame 1Symbol 50 Button
"closebutton"Symbol 62 MovieClip [howtoplay] Frame 1Symbol 61 Button
"bar"Symbol 70 MovieClip Frame 1Symbol 67 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 "carright"
ExportAssets (56)Timeline Frame 1Symbol 33 as "trafficlight"
ExportAssets (56)Timeline Frame 1Symbol 36 as "welldone"
ExportAssets (56)Timeline Frame 1Symbol 38 as "trafficlightupdown"
ExportAssets (56)Timeline Frame 1Symbol 40 as "trafficlightleftright"
ExportAssets (56)Timeline Frame 1Symbol 51 as "youlose"
ExportAssets (56)Timeline Frame 1Symbol 62 as "howtoplay"
ExportAssets (56)Timeline Frame 1Symbol 65 as "play"
ExportAssets (56)Timeline Frame 2Symbol 65 as "play"

Labels

"loaded"Symbol 70 MovieClip Frame 3

Dynamic Text Variables

_root.carsdoneSymbol 43 EditableText""
carsdoneSymbol 84 EditableText""
queueSymbol 97 EditableText""
songtitleSymbol 100 EditableText""




http://swfchan.com/26/128911/info.shtml
Created: 23/2 -2019 16:33:25 Last modified: 23/2 -2019 16:33:25 Server time: 22/12 -2024 10:53:05