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/13751074?noj=FRM13751074-22DC" width="1" height="1"></div>

Trucks Fun.swf

This is the info page for
Flash #113648

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


Text
Sound ON

Sound OFF

PLAY AGAIN?

LEVEL:

SCORE:

-100

-100

-100

-100

Start

Start

Drop the tire into the matching
colored truck. Use the arrows
to move left and right and the
space bar to drop the tire.

ActionScript [AS1/AS2]

Frame 1
function isContained(mc1, mc2) { var _local3 = {x:mc1._x, y:mc1._y}; mc1.localToGlobal(_local3); var _local2 = {x:mc2.truck._x, y:mc2.truck._y}; mc2.localToGlobal(_local2); if (((_local3.x + (mc1._width / 2)) > _local2.x) and ((_local3.x - (mc1._width / 2)) < (_local2.x + (mc2._width / 2)))) { if (((mc1._y + 123) > _local2.y) and (mc1._y < 320)) { return(true); } } else { return(false); } } function hitTest2(mc) { var _local1 = 0; while (_local1 < TruckRef.length) { if (isContained(mc, TruckRef[_local1]) and (mc._parent.type2 == TruckRef[_local1].type2)) { return(TruckRef[_local1]); } _local1++; } return(false); } function eraseMC(x) { for (mc in x) { removeMovieClip(x[mc]); } } function assignHandler(mc) { Key.addListener(mc); mc.root = this; DISTANCE = 10; addTire = false; mc.move = function () { this._x = this._x - 16; if (this.hitTest(home.bob.arm1)) { this._x = home.bob.arm1._x + 35; this.tire.piece_tire.gotoAndStop(1); this.onKeyDown = function () { if (!(Key.getCode() === 32)) { } else { Key.removeListener(this); addTire = false; this.onEnterFrame = function () { this.tire._y = this.tire._y + 10; var _local2 = false; _local2 = home.hitTest2(this.tire); if (_local2 != false) { trace("HITT!~!!!!!!!"); home.dropsound.start(); scoreboard.score = scoreboard.score + 10; this.stopMove(); removeMovieClip(this); addTire = true; placeTire(); addTire = false; } else if (this.tire._y >= 400) { _local2 = false; scoreboard.score = scoreboard.score - 20; wrong++; this.stopMove(); this.tire.piece_tire.gotoAndPlay("wrong"); addTire = true; placeTire(); addTire = false; } }; } }; } }; mc.beginMove = function () { this.onEnterFrame = function () { this.move(); }; }; mc.stopMove = function () { delete this.onEnterFrame; delete this.move; var _local2 = 0; while (_local2 < Key._listeners) { Key.removeListener(mc); _local2++; } eraseMC(this); addTire = true; checkDone(); }; } stop(); Key.addListener(bob); home = this; var url = (hex.rootx[0].url[0].$url + "/"); var level = 1; var wrong = 0; var DISTANCE = 10; var tireNumber = 1; scoreboard.levelNumber.level.text = String(level); scoreboard.score = 0; var max = 3; var truckNumber = 0; var HIGHSCORE = 50; var gamestate = "pause"; var music = new Sound(); music.attachSound("music"); var dropsound = new Sound(); dropsound.attachSound("drop.mp3"); var TireRef = new Array(); var TruckRef = new Array(); var pieces = new Array(); var Tires = Array("1_tire", "2_tire", "3_tire"); var Trucks = Array("1_truck", "2_truck", "3_truck"); var newTruck; music.setVolume(0); var addTire = true; playagain._visible = false; scoreboard._visible = false; scoreboard.playAgain._visible = false; stopper.onPress = function () { this.useHandCursor = false; }; randRange = function (min, max) { var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min; return(_local1); }; placeTrucks = function () { home.addTruck(); home.placeTire(); }; addTruck = function () { if (home.gamestate == "playing") { trace("function called num of Trucks " + truckNumber); switch (level) { case 1 : max = 2; break; case 2 : max = 3; break; case 3 : max = 4; } trace("I'm ALIVE!!!!"); var _local2 = randRange(0, max); if (previousPiece == _local2) { _local2 = previousTire; } var _local3 = home.truckHolder.attachMovie(Trucks[_local2], "truckmc_" + truckNumber, 900 + truckNumber); _local3._x = 756; _local3._y = 389; var _local5 = Trucks[_local2].split("_"); _local3.type2 = _local5[0]; var _local4 = new Object(); _local4 = _local3; TruckRef.push(_local4); pieces.push(Tires[_local2]); trace("TruckRef = " + TruckRef.length); trace("arrray = " + pieces.length); _local3.thisTruck = truckNumber; truckNumber++; previousPiece = _local2; _local3.onEnterFrame = function () { if (home.gamestate == "playing") { this.truck._x = this.truck._x - (2 + (2 * level)); if (this.truck._x < -480) { if (!this.created) { this.created = true; trace((this.thisTruck + " Is in Postion ") + this.truck._x); addTruck(); } } if (this.truck._x < -1200) { removeMovieClip(this); } } }; if (home.gamestate == "pause") { eraseMC(this); } } }; placeTire = function () { if (home.gamestate == "playing") { if (addTire == true) { switch (level) { case 1 : max = 2; break; case 2 : max = 3; break; case 3 : max = 4; } var _local1 = home.randRange(0, max); if (previousTire == _local1) { _local1 = home.randRange(0, max); } trace((("addTire = " + addTire) + " nextTire = ") + _local1); trace("pieces Array test " + Tires[_local1]); var _local2 = home.bob.tireHolder.attachMovie(Tires[_local1], "tiremc_" + _local1, _local1); _local2._x = 690; _local2._y = 0; trace("duplicat movie test " + _local2); var _local3 = Tires[_local1].split("_"); _local2.type2 = _local3[0]; trace("Tire Type: " + _local2.type2); previousTire = _local1; assignHandler(_local2); _local2.beginMove(); addTire = false; } } }; checkDone = function () { addTire = true; if (wrong >= 5) { home.scoreboard.swapDepths(10000); home.scoreboard.playAgain._visible = true; eraseMC(home.truckHolder); eraseMC(home.bob); music.stop(); home.scoreboard.gotoAndPlay("playAgain"); addTire = false; home.gamestate = "pause"; } trace("level =" + level); if (scoreboard.score > HIGHSCORE) { home.scoreboard.gotoAndPlay("levelup"); trace("NEXT LEVEL!"); level++; HIGHSCORE = HIGHSCORE + 100; switch (level) { case 2 : Tires.push("4_tire"); Trucks.push("4_truck"); HIGHSCORE = 150; break; case 3 : Tires.push("5_tire"); Trucks.push("5_truck"); HIGHSCORE = 300; } scoreboard.levelNumber.level.text = String(level); } }; start.onRelease = function () { music.start(0, 100); music.setVolume(100); this._visible = false; home.gamestate = "playing"; scoreboard._visible = true; home.placeTrucks(); }; scoreboard.playAgain.onRollOver = function () { this._alpha = 100; }; scoreboard.playAgain.onRelease = function () { this._visible = false; home.scoreboard.gotoAndStop(1); home.scoreboard.swapDepths(-16364); home.scoreboard._visible = false; Key.addListener(bob); level = 1; wrong = 0; DISTANCE = 10; tireNumber = 1; scoreboard.levelNumber.level.text = String(level); scoreboard.score = 0; max = 3; truckNumber = 0; HIGHSCORE = 50; home.gamestate = "pause"; home.Tires = Array("1_tire", "2_tire", "3_tire"); home.Trucks = Array("1_truck", "2_truck", "3_truck"); addTire = true; home.start._visible = true; }; bob.onKeyDown = function () { switch (Key.getCode()) { case 37 : this.arm2._x = this.arm2._x - DISTANCE; if (this.arm2._x < -12) { this.arm2._x = -12; } this.guy._x = this.guy._x - DISTANCE; if (this.guy._x < -57) { this.guy._x = -57; } this.arm1._x = this.arm1._x - DISTANCE; if (this.arm1._x < -70) { this.arm1._x = -70; } break; case 39 : this.arm2._x = this.arm2._x + DISTANCE; if (this.arm2._x > 708) { this.arm2._x = 708; } this.guy._x = this.guy._x + DISTANCE; if (this.guy._x > 663) { this.guy._x = 663; } this.arm1._x = this.arm1._x + DISTANCE; if (this.arm1._x <= 650) { break; } this.arm1._x = 650; } }; home.globalSound.onRelease = function () { if (soundON == true) { this.gotoAndStop(2); dropsound.setVolume(0); incorrect_sound.setVolume(0); levelup_sound.setVolume(0); music.setVolume(0); soundON = false; } else { this.gotoAndStop(1); dropsound.setVolume(100); incorrect_sound.setVolume(100); levelup_sound.setVolume(100); music.setVolume(100); soundON = true; } };
Symbol 16 MovieClip Frame 25
gotoAndPlay (1);
Symbol 16 MovieClip Frame 40
removeMovieClip(this._parent._parent); removeMovieClip(this); removeMovieClip(this._parent);
Symbol 17 MovieClip [tire_piece] Frame 1
stop();
Symbol 40 MovieClip [soundonoff] Frame 1
stop();
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 20
stop();
Symbol 66 MovieClip Frame 40
stop();

Library Items

Symbol 1 Sound [music]
Symbol 2 Sound [drop.mp3]
Symbol 3 Sound [incorrect_sound]Used by:16
Symbol 4 GraphicUsed by:11
Symbol 5 BitmapUsed by:6
Symbol 6 GraphicUses:5Used by:11
Symbol 7 GraphicUsed by:8
Symbol 8 MovieClipUses:7Used by:11
Symbol 9 GraphicUsed by:10
Symbol 10 MovieClipUses:9Used by:11
Symbol 11 MovieClip [dumptruck]Uses:4 6 8 10Used by:12 19 27 28 29 30 31 32
Symbol 12 MovieClip [5_truck]Uses:11
Symbol 13 GraphicUsed by:16
Symbol 14 GraphicUsed by:16
Symbol 15 GraphicUsed by:16
Symbol 16 MovieClipUses:13 14 3 15Used by:17
Symbol 17 MovieClip [tire_piece]Uses:16Used by:18 20 21 22 23 24 25 26
Symbol 18 MovieClip [5_tire]Uses:17
Symbol 19 MovieClip [4_truck]Uses:11
Symbol 20 MovieClip [4_tire]Uses:17
Symbol 21 MovieClip [3_tire]Uses:17
Symbol 22 MovieClip [7_tire]Uses:17
Symbol 23 MovieClip [8_tire]Uses:17
Symbol 24 MovieClip [6_tire]Uses:17
Symbol 25 MovieClip [1_tire]Uses:17
Symbol 26 MovieClip [2_tire]Uses:17
Symbol 27 MovieClip [2_truck]Uses:11
Symbol 28 MovieClip [6_truck]Uses:11
Symbol 29 MovieClip [3_truck]Uses:11
Symbol 30 MovieClip [7_truck]Uses:11
Symbol 31 MovieClip [8_truck]Uses:11
Symbol 32 MovieClip [1_truck]Uses:11
Symbol 33 GraphicUsed by:40
Symbol 34 GraphicUsed by:40
Symbol 35 FontUsed by:36 38
Symbol 36 TextUses:35Used by:40
Symbol 37 GraphicUsed by:40
Symbol 38 TextUses:35Used by:40
Symbol 39 GraphicUsed by:40
Symbol 40 MovieClip [soundonoff]Uses:33 34 36 37 38 39Used by:Timeline
Symbol 41 MovieClip [trucks]Used by:Timeline
Symbol 42 MovieClipUsed by:43
Symbol 43 MovieClip [tireHolder]Uses:42Used by:73
Symbol 44 GraphicUsed by:47
Symbol 45 FontUsed by:46 56 58 60 61 62 63 64 78 79 80
Symbol 46 TextUses:45Used by:47
Symbol 47 MovieClip [playAgain]Uses:44 46Used by:66
Symbol 48 BitmapUsed by:49
Symbol 49 GraphicUses:48Used by:Timeline
Symbol 50 GraphicUsed by:Timeline
Symbol 51 GraphicUsed by:Timeline
Symbol 52 BitmapUsed by:55
Symbol 53 BitmapUsed by:55
Symbol 54 BitmapUsed by:55
Symbol 55 GraphicUses:52 53 54Used by:Timeline
Symbol 56 TextUses:45Used by:57 66
Symbol 57 MovieClipUses:56Used by:66
Symbol 58 EditableTextUses:45Used by:59
Symbol 59 MovieClipUses:58Used by:66
Symbol 60 TextUses:45Used by:66
Symbol 61 EditableTextUses:45Used by:66
Symbol 62 EditableTextUses:45Used by:66
Symbol 63 EditableTextUses:45Used by:66
Symbol 64 EditableTextUses:45Used by:66
Symbol 65 SoundUsed by:66
Symbol 66 MovieClipUses:57 59 47 60 61 62 63 56 64 65Used by:Timeline
Symbol 67 GraphicUsed by:68
Symbol 68 MovieClipUses:67Used by:73
Symbol 69 GraphicUsed by:70
Symbol 70 MovieClipUses:69Used by:73
Symbol 71 GraphicUsed by:72
Symbol 72 MovieClipUses:71Used by:73
Symbol 73 MovieClipUses:68 43 70 72Used by:Timeline
Symbol 74 GraphicUsed by:75
Symbol 75 MovieClipUses:74Used by:Timeline
Symbol 76 GraphicUsed by:84
Symbol 77 GraphicUsed by:84
Symbol 78 TextUses:45Used by:84
Symbol 79 TextUses:45Used by:84
Symbol 80 TextUses:45Used by:84
Symbol 81 GraphicUsed by:84
Symbol 82 GraphicUsed by:84
Symbol 83 GraphicUsed by:84
Symbol 84 ButtonUses:76 77 78 79 80 81 82 83Used by:Timeline

Instance Names

"scoreboard"Frame 1Symbol 66 MovieClip
"bob"Frame 1Symbol 73 MovieClip
"truckHolder"Frame 1Symbol 41 MovieClip [trucks]
"hills"Frame 1Symbol 75 MovieClip
"globalSound"Frame 1Symbol 40 MovieClip [soundonoff]
"start"Frame 1Symbol 84 Button
"truck"Symbol 12 MovieClip [5_truck] Frame 1Symbol 11 MovieClip [dumptruck]
"piece_tire"Symbol 17 MovieClip [tire_piece] Frame 1Symbol 16 MovieClip
"tire"Symbol 18 MovieClip [5_tire] Frame 1Symbol 17 MovieClip [tire_piece]
"truck"Symbol 19 MovieClip [4_truck] Frame 1Symbol 11 MovieClip [dumptruck]
"tire"Symbol 20 MovieClip [4_tire] Frame 1Symbol 17 MovieClip [tire_piece]
"tire"Symbol 21 MovieClip [3_tire] Frame 1Symbol 17 MovieClip [tire_piece]
"tire"Symbol 22 MovieClip [7_tire] Frame 1Symbol 17 MovieClip [tire_piece]
"tire"Symbol 23 MovieClip [8_tire] Frame 1Symbol 17 MovieClip [tire_piece]
"tire"Symbol 24 MovieClip [6_tire] Frame 1Symbol 17 MovieClip [tire_piece]
"tire"Symbol 25 MovieClip [1_tire] Frame 1Symbol 17 MovieClip [tire_piece]
"tire"Symbol 26 MovieClip [2_tire] Frame 1Symbol 17 MovieClip [tire_piece]
"truck"Symbol 27 MovieClip [2_truck] Frame 1Symbol 11 MovieClip [dumptruck]
"truck"Symbol 28 MovieClip [6_truck] Frame 1Symbol 11 MovieClip [dumptruck]
"truck"Symbol 29 MovieClip [3_truck] Frame 1Symbol 11 MovieClip [dumptruck]
"truck"Symbol 30 MovieClip [7_truck] Frame 1Symbol 11 MovieClip [dumptruck]
"truck"Symbol 31 MovieClip [8_truck] Frame 1Symbol 11 MovieClip [dumptruck]
"truck"Symbol 32 MovieClip [1_truck] Frame 1Symbol 11 MovieClip [dumptruck]
"tire"Symbol 43 MovieClip [tireHolder] Frame 1Symbol 42 MovieClip
"level"Symbol 59 MovieClip Frame 1Symbol 58 EditableText
"levelNumber"Symbol 66 MovieClip Frame 1Symbol 59 MovieClip
"playAgain"Symbol 66 MovieClip Frame 1Symbol 47 MovieClip [playAgain]
"score"Symbol 66 MovieClip Frame 1Symbol 61 EditableText
"score"Symbol 66 MovieClip Frame 2Symbol 62 EditableText
"score"Symbol 66 MovieClip Frame 20Symbol 63 EditableText
"levelNumber"Symbol 66 MovieClip Frame 22Symbol 59 MovieClip
"score"Symbol 66 MovieClip Frame 22Symbol 64 EditableText
"guy"Symbol 73 MovieClip Frame 1Symbol 68 MovieClip
"tireHolder"Symbol 73 MovieClip Frame 1Symbol 43 MovieClip [tireHolder]
"arm1"Symbol 73 MovieClip Frame 1Symbol 70 MovieClip
"arm2"Symbol 73 MovieClip Frame 1Symbol 72 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "music"
ExportAssets (56)Timeline Frame 1Symbol 2 as "drop.mp3"
ExportAssets (56)Timeline Frame 1Symbol 3 as "incorrect_sound"
ExportAssets (56)Timeline Frame 1Symbol 11 as "dumptruck"
ExportAssets (56)Timeline Frame 1Symbol 12 as "5_truck"
ExportAssets (56)Timeline Frame 1Symbol 17 as "tire_piece"
ExportAssets (56)Timeline Frame 1Symbol 18 as "5_tire"
ExportAssets (56)Timeline Frame 1Symbol 19 as "4_truck"
ExportAssets (56)Timeline Frame 1Symbol 20 as "4_tire"
ExportAssets (56)Timeline Frame 1Symbol 21 as "3_tire"
ExportAssets (56)Timeline Frame 1Symbol 22 as "7_tire"
ExportAssets (56)Timeline Frame 1Symbol 23 as "8_tire"
ExportAssets (56)Timeline Frame 1Symbol 24 as "6_tire"
ExportAssets (56)Timeline Frame 1Symbol 25 as "1_tire"
ExportAssets (56)Timeline Frame 1Symbol 26 as "2_tire"
ExportAssets (56)Timeline Frame 1Symbol 27 as "2_truck"
ExportAssets (56)Timeline Frame 1Symbol 28 as "6_truck"
ExportAssets (56)Timeline Frame 1Symbol 29 as "3_truck"
ExportAssets (56)Timeline Frame 1Symbol 30 as "7_truck"
ExportAssets (56)Timeline Frame 1Symbol 31 as "8_truck"
ExportAssets (56)Timeline Frame 1Symbol 32 as "1_truck"
ExportAssets (56)Timeline Frame 1Symbol 40 as "soundonoff"
ExportAssets (56)Timeline Frame 1Symbol 41 as "trucks"
ExportAssets (56)Timeline Frame 1Symbol 43 as "tireHolder"
ExportAssets (56)Timeline Frame 1Symbol 47 as "playAgain"

Labels

"wrong"Symbol 16 MovieClip Frame 26
"on"Symbol 40 MovieClip [soundonoff] Frame 1
"off"Symbol 40 MovieClip [soundonoff] Frame 2
"playAgain"Symbol 66 MovieClip Frame 2
"levelup"Symbol 66 MovieClip Frame 22

Dynamic Text Variables

scoreSymbol 61 EditableText"-100"
scoreSymbol 62 EditableText"-100"
scoreSymbol 63 EditableText"-100"
scoreSymbol 64 EditableText"-100"




http://swfchan.com/23/113648/info.shtml
Created: 11/3 -2019 11:33:23 Last modified: 11/3 -2019 11:33:23 Server time: 22/12 -2024 14:19:25