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

McDonalds_Soni_Game.swf

This is the info page for
Flash #228312

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


Text
loading...

Click on the flag to restart the game.

Use the left and right arrows to help Sonic get through traffic!

ActionScript [AS1/AS2]

Frame 1
iStatus = 0; setProperty("pBar", _xscale , 0);
Frame 2
iBytesTotal = _root.getBytesTotal(); iBytesLoaded = _root.getBytesLoaded(); iBytes = (iBytesLoaded / iBytesTotal) * 100; setProperty("pBar", _xscale , iBytes); sStatus = Math.floor(iBytes) add "%";
Frame 3
if (iBytes < 100) { gotoAndPlay (2); } else { sStatus = "COMPLETE"; gotoAndPlay (4); }
Frame 4
sStatus = "loaded"; stop(); gotoAndStop (5);
Frame 5
function genRandom() { seed = a + Math.floor(Math.random() * ((b - a) + 1)); switch (seed) { case 1 : if (_root.target1._currentframe > 1) { genRandom(); } else { target1.gotoAndPlay(1); launches++; } return; case 2 : if (_root.target2._currentframe > 1) { genRandom(); } else { target2.gotoAndPlay(1); launches++; } return; case 3 : if (_root.target3._currentframe > 1) { genRandom(); } else { target3.gotoAndPlay(1); launches++; } return; case 4 : if ((_root.target4._currentframe > 1) && (_root.target5._currentframe > 1)) { genRandom(); } else { _root.target4.gotoAndPlay(1); _root.target5.gotoAndPlay(1); launches++; } return; case 5 : if ((_root.target6._currentframe > 1) && (_root.target7._currentframe > 1)) { genRandom(); } else { _root.target6.gotoAndPlay(1); _root.target7.gotoAndPlay(1); launches++; } return; case 6 : if ((_root.target8._currentframe > 1) || (_root.target9._currentframe > 1)) { genRandom(); } else { _root.target8.gotoAndPlay(1); _root.target9.gotoAndPlay(1); launches++; } } } function restart1(vers1) { if (vers1._currentframe == restartFrame) { genRandom(); } if (vers1._currentframe >= hitFrame) { if (vers1.hitTest(_root.character.hitter)) { if (_root.character._x > 450) { _root.flashR.gotoAndPlay(2); } else { _root.flashL.gotoAndPlay(2); } collisions++; playBadSound(); vers1.gotoAndStop(1); if (collisions == 5) { loseGame(collisions); } } } } function restart2(vers3) { if (vers3._currentframe == restartFrame) { genRandom(); } } function score2(vers5) { if (vers5._currentframe >= hitFrame) { if (vers5.hitTest(_root.character.hitter)) { if (_root.character._x > 450) { _root.flashR.gotoAndPlay(2); } else { _root.flashL.gotoAndPlay(2); } collisions++; playBadSound(); vers5.gotoAndStop(1); if (collisions == 5) { loseGame(collisions); } } } } function targetStop(vers2) { if (vers2._currentframe == missFrame) { avoided++; switch (avoided) { case 30 : level = 2; _root.level2._visible = 1; collisions = 0; break; case 60 : level = 3; _root.level3._visible = 1; collisions = 0; break; case 90 : level = 4; _root.level4._visible = 1; collisions = 0; } if (avoided == 120) { playWinSound(); } else { playGoodSound(); } vers2.gotoAndStop(1); } } function targetStop2(vers3) { if (vers3._currentframe == missFrame) { vers3.gotoAndStop(1); } } function loseGame(miss) { target1.gotoAndStop(1); target2.gotoAndStop(1); target3.gotoAndStop(1); target4.gotoAndStop(1); target5.gotoAndStop(1); target6.gotoAndStop(1); target7.gotoAndStop(1); target8.gotoAndStop(1); target9.gotoAndStop(1); playLoseSound(); } function levelJumper(item, levNum) { if (levNum > 1) { switch (levNum) { case 2 : if (item._currentframe == 13) { item.gotoAndPlay(16); } if (item._currentframe == 28) { item.gotoAndPlay(31); } if (item._currentframe == 43) { hitFrame = 53; item.gotoAndPlay(47); } return; case 3 : if (item._currentframe == 11) { item.gotoAndPlay(16); } if (item._currentframe == 26) { item.gotoAndPlay(31); } if (item._currentframe == 41) { hitFrame = 56; item.gotoAndPlay(50); } return; case 4 : if (item._currentframe == 9) { item.gotoAndPlay(16); } if (item._currentframe == 24) { item.gotoAndPlay(31); } if (item._currentframe != 39) { break; } hitFrame = 58; item.gotoAndPlay(53); } } } function playBadSound() { badBeep = new Sound(); badBeep.attachSound("badSound"); badBeep.start(); } function playGoodSound() { goodBeep = new Sound(); goodBeep.attachSound("goodSound"); goodBeep.start(); } function playLevelSound() { levelBeep = new Sound(); levelBeep.attachSound("levelSound"); levelBeep.start(); } function playStartSound() { startBeep = new Sound(); startBeep.attachSound("startSound"); startBeep.start(); } function playWinSound() { winBeep = new Sound(); winBeep.attachSound("winSound"); winBeep.start(); } function playLoseSound() { loseBeep = new Sound(); loseBeep.attachSound("loseSound"); loseBeep.start(); } avoided = 0; collisions = 0; launches = 0; level = 1; characterMove = 100; restartFrame = 16; hitFrame = 52; missFrame = 61; character._x = 220; level2._visible = 0; level3._visible = 0; level4._visible = 0; character.gotoAndStop("center"); flashL.gotoAndStop(1); flashR.gotoAndStop(1); target1.gotoAndStop(1); target2.gotoAndStop(1); target3.gotoAndStop(1); target4.gotoAndStop(1); target5.gotoAndStop(1); target6.gotoAndStop(1); target7.gotoAndStop(1); target8.gotoAndStop(1); target9.gotoAndStop(1); a = 1; b = 6; flashL.onEnterFrame = function () { with (flashL) { if (_currentframe == 8) { gotoAndStop(1); } } }; flashR.onEnterFrame = function () { with (flashR) { if (_currentframe == 8) { gotoAndStop(1); } } }; character.onEnterFrame = function () { with (character) { if (key.isDown(37)) { _x = _x - characterMove; if (_x <= 150) { _x = 90; gotoAndStop("left"); } else { _x = 220; gotoAndStop("center"); } } if (key.isDown(39)) { _x = _x + characterMove; if (_x >= 200) { _x = 370; gotoAndStop("right"); } else { _x = 220; gotoAndStop("center"); } } if (avoided >= 120) { level = 5; target1.gotoAndStop(1); target2.gotoAndStop(1); target3.gotoAndStop(1); target4.gotoAndStop(1); target5.gotoAndStop(1); target6.gotoAndStop(1); target7.gotoAndStop(1); target8.gotoAndStop(1); target9.gotoAndStop(1); } } }; target1.onEnterFrame = function () { levelJumper(target1, level); restart1(target1); targetStop(target1); }; target2.onEnterFrame = function () { levelJumper(target2, level); restart1(target2); targetStop(target2); }; target3.onEnterFrame = function () { levelJumper(target3, level); restart1(target3); targetStop(target3); }; target4.onEnterFrame = function () { levelJumper(target4, level); restart2(target4); score2(target4); targetStop(target4); }; target6.onEnterFrame = function () { levelJumper(target6, level); restart2(target6); score2(target6); targetStop(target6); }; target8.onEnterFrame = function () { levelJumper(target8, level); restart2(target8); score2(target8); targetStop(target8); }; target5.onEnterFrame = function () { levelJumper(target5, level); score2(target5); targetStop2(target5); }; target7.onEnterFrame = function () { levelJumper(target7, level); score2(target7); targetStop2(target7); }; target9.onEnterFrame = function () { levelJumper(target9, level); score2(target9); targetStop2(target9); }; playStartSound(); genRandom(); resetButton.onRelease = function () { avoided = 0; collisions = 0; launches = 0; level = 1; var i = 2; while (i < 5) { _root["level" + i]._visible = 0; i++; } var i = 0; while (i < 9) { _root["target" + i].gotoAndStop(1); i++; } playStartSound(); genRandom(); };

Library Items

Symbol 1 Sound [winSound]
Symbol 2 Sound [startSound]
Symbol 3 Sound [goodSound]
Symbol 4 Sound [badSound]
Symbol 5 Sound [loseSound]
Symbol 6 Sound [levelSound]
Symbol 7 GraphicUsed by:Timeline
Symbol 8 GraphicUsed by:9
Symbol 9 MovieClipUses:8Used by:Timeline
Symbol 10 FontUsed by:11
Symbol 11 EditableTextUses:10Used by:Timeline
Symbol 12 FontUsed by:13 41 46
Symbol 13 TextUses:12Used by:Timeline
Symbol 14 BitmapUsed by:15
Symbol 15 GraphicUses:14Used by:16
Symbol 16 MovieClipUses:15Used by:Timeline
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClipUses:17Used by:25
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClipUses:19Used by:25
Symbol 21 GraphicUsed by:22
Symbol 22 MovieClipUses:21Used by:25
Symbol 23 GraphicUsed by:24
Symbol 24 MovieClipUses:23Used by:25
Symbol 25 MovieClipUses:18 20 22 24Used by:Timeline
Symbol 26 GraphicUsed by:27
Symbol 27 MovieClipUses:26Used by:28 33
Symbol 28 MovieClipUses:27Used by:Timeline
Symbol 29 GraphicUsed by:30
Symbol 30 MovieClipUses:29Used by:33 36
Symbol 31 GraphicUsed by:32
Symbol 32 MovieClipUses:31Used by:33 36
Symbol 33 MovieClipUses:27 30 32Used by:Timeline
Symbol 34 GraphicUsed by:35
Symbol 35 MovieClipUses:34Used by:36
Symbol 36 MovieClipUses:30 32 35Used by:Timeline
Symbol 37 GraphicUsed by:38
Symbol 38 MovieClipUses:37Used by:Timeline
Symbol 39 GraphicUsed by:40
Symbol 40 MovieClipUses:39Used by:Timeline
Symbol 41 EditableTextUses:12Used by:Timeline
Symbol 42 GraphicUsed by:43
Symbol 43 MovieClipUses:42Used by:Timeline
Symbol 44 GraphicUsed by:45
Symbol 45 ButtonUses:44Used by:Timeline
Symbol 46 EditableTextUses:12Used by:Timeline

Instance Names

"pbar"Frame 2Symbol 9 MovieClip
"character"Frame 5Symbol 25 MovieClip
"target1"Frame 5Symbol 28 MovieClip
"target2"Frame 5Symbol 33 MovieClip
"target3"Frame 5Symbol 36 MovieClip
"target4"Frame 5Symbol 28 MovieClip
"target5"Frame 5Symbol 33 MovieClip
"target6"Frame 5Symbol 28 MovieClip
"target7"Frame 5Symbol 36 MovieClip
"target8"Frame 5Symbol 33 MovieClip
"target9"Frame 5Symbol 36 MovieClip
"flashL"Frame 5Symbol 38 MovieClip
"flashR"Frame 5Symbol 38 MovieClip
"level2"Frame 5Symbol 40 MovieClip
"level3"Frame 5Symbol 40 MovieClip
"level4"Frame 5Symbol 40 MovieClip
"resetButton"Frame 5Symbol 45 Button
"hitter"Symbol 25 MovieClip Frame 1Symbol 20 MovieClip

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 1 as "winSound"
ExportAssets (56)Timeline Frame 1Symbol 2 as "startSound"
ExportAssets (56)Timeline Frame 1Symbol 3 as "goodSound"
ExportAssets (56)Timeline Frame 1Symbol 4 as "badSound"
ExportAssets (56)Timeline Frame 1Symbol 5 as "loseSound"
ExportAssets (56)Timeline Frame 1Symbol 6 as "levelSound"

Labels

"center"Symbol 25 MovieClip Frame 1
"left"Symbol 25 MovieClip Frame 2
"right"Symbol 25 MovieClip Frame 3

Dynamic Text Variables

sStatusSymbol 11 EditableText""




http://swfchan.com/46/228312/info.shtml
Created: 30/11 -2019 22:35:29 Last modified: 30/11 -2019 22:35:29 Server time: 22/12 -2024 13:47:58