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

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

smash-the-bugs.swf

This is the info page for
Flash #108004

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


Text
Loading...

more smashin'

more smashin'

sound on

sound off

squish sound

buzz clip

start smashin'

start smashin'

Smash the Bugs!

= 2 points

= 1 point

you know you
want to

more games

more games

score:

high score this session:

Score:

ActionScript [AS1/AS2]

Frame 1
var total; var loaded; var percent; var submitID; mcLoaderBar._width = 0; total = getBytesTotal(); loaded = getBytesLoaded(); percent = Math.round((100 * loaded) / total); mcLoaderBar._width = (310 * percent) / 100; dt1.text = percent + "%"; if (percent >= 100) { gotoAndPlay (10); }
Frame 2
gotoAndPlay (1);
Frame 10
var bugs = new Array(); var numberOfBugs; var timeCheckInterval; var highScore = 0; stop(); beeSound.stop(); beeSound.tabIndex = 1; mcStartBanner.btStartButton.onPress = function () { play(); }; duplicateMovieClip (mcPlayAgainBanner, "playAgainBanner", 400); playAgainBanner._y = 140; playAgainBanner._x = 725; duplicateMovieClip (btPlayAgain, "playAgainButt", 401); playAgainButt._x = 725; playAgainButt.onPress = function () { gotoAndPlay ("start"); }; btBuzzButt.buzzOn = true; btBuzzButt.onPress = function () { if (this.buzzOn) { this.gotoAndStop("buzz off"); this.buzzOn = false; } else { this.gotoAndStop("buzz on"); this.buzzOn = true; } };
Frame 11
gotoAndPlay ("start"); duplicateMovieClip (mcThumb, "thumbCursor", 300); onEnterFrame = function () { thumbCursor._y = _ymouse; if (_ymouse < 55) { thumbCursor._y = 55; } else if (_ymouse > 420) { thumbCursor._y = 420; } thumbCursor._x = _xmouse; if (_xmouse < 0) { thumbCursor._x = 0; } else if (_xmouse > 700) { thumbCursor._x = 700; } }; onMouseDown = function () { thumbCursor.gotoAndStop(2); }; onMouseUp = function () { thumbCursor.gotoAndStop(1); };
Frame 16
function checkTimer() { if (mcTimer.timerDone) { endRound(); clearInterval(timeCheckInterval); } } function makeNewBug(whichBug, whichType) { this.attachMovie("bug" + whichType, "bug" + whichBug, 200 + whichBug); bugs[whichBug] = eval ("bug" + whichBug); numberOfBugs = numberOfBugs + 1; if (whichType == 2) { bugs[whichBug].swapDepths(200); } bugs[whichBug].tag = whichBug; bugs[whichBug].live = true; if (Math.floor(Math.random() * 2) == 0) { bugs[whichBug]._x = -100; } else { bugs[whichBug]._x = 750; } bugs[whichBug]._y = Math.floor((Math.random() * ((mcFlyZone._height - mcFlyZone._y) - bugs[whichBug]._height)) + mcFlyZone._y); bugs[whichBug].onPress = function () { if (btBuzzButt.buzzOn) { mcSquishSound.gotoAndPlay(2); } this.gotoAndPlay("splat"); clearInterval(bugs[this.tag].bugInterval); bugs[this.tag].swapDepths(splatDepth); splatDepth = splatDepth + 1; bugs[this.tag].live = false; delete this.onPress; score = score + bugs[this.tag].points; dtScore.text = "Score: " + score; if (score > highScore) { highScore = score; } makeNewBug(numberOfBugs, this.bugType); }; } function removeBug(whichBug) { removeMovieClip(bugs[whichBug]); } function endRound() { count = 0; while (count < numberOfBugs) { clearInterval(bugs[count].bugInterval); delete bugs[count].onEnterFrame; if (bugs[count].live) { removeMovieClip(bugs[count]); } playAgainBanner.dtHighScore.text = "high score this session: " + highScore; playAgainBanner.dtScore.text = "score: " + score; playAgainBanner._x = 95; thumbCursor._visible = false; Mouse.show(); beeSound.stop(); btBuzzButt._visible = true; gotoAndPlay ("finish"); count++; } } Mouse.hide(); thumbCursor._visible = true; playAgainBanner._x = 725; playAgainButt._x = 725; btBuzzButt._visible = false; if (btBuzzButt.buzzOn) { beeSound.gotoAndPlay(10); } splatDepth = 100; score = 0; dtScore.text = "Score: " + score; count = 0; while (count < numberOfBugs) { clearInterval(bugs[count].bugInterval); removeMovieClip(bugs[count]); count++; } numberOfBugs = 0; makeNewBug(0, 0); makeNewBug(1, 0); makeNewBug(2, 1); makeNewBug(3, 1); makeNewBug(4, 2); mcTimer.timerDone = false; mcTimer.run(30); timeCheckInterval = setInterval(checkTimer, 100);
Frame 18
stop();
Frame 59
function buttFade() { playAgainButt._alpha = playAgainButt._alpha + 5; if (playAgainButt._alpha >= 100) { clearInterval(buttFadeInterval); } } var buttFadeInterval; stop(); playAgainButt._alpha = 0; playAgainButt._x = 250; playAgainButt._y = 230; buttFadeInterval = setInterval(buttFade, 40);
Symbol 6 Button
on (press) { getURL ("http://zuzugames.com/?smash-the-bugs", "_blank", "POST"); }
Symbol 20 MovieClip Frame 1
function allOff() { count = 1; while (count < 5) { flap[count]._visible = false; count++; } } var count; var bob; var flap = new Array(10); var blurX; var whichOne = new Array(5); blurX = mcBlur._x; count = 1; while (count < 5) { flap[count] = eval ("w" + count); flap[count]._alpha = 60; count++; } whichOne = [1, 3, 2, 4]; bob = 0; onEnterFrame = function () { allOff(); flap[whichOne[bob]]._rotation = (Math.random() * 10) - 5; flap[whichOne[bob]]._visible = true; bob = bob + 1; if (bob == 4) { bob = 0; } mcBlur._x = blurX + Math.floor((Math.random() * 5) - 2); };
Symbol 33 MovieClip [bug2] Frame 1
function bugBrain() { if (bugCounter > maxSitTime) { oldX = thisBug._x; oldY = thisBug._y; newX = Math.floor((Math.random() * ((rightLim - leftLim) - thisBug._width)) + leftLim); newY = Math.floor((Math.random() * ((bottomLim - topLim) - thisBug._height)) + topLim); xDistance = (newX - oldX) / 5; yDistance = (newY - oldY) / 5; bugCounter = Math.floor(Math.random() * (maxSitTime - minSitTime)); } thisBug._x = thisBug._x + xDistance; thisBug._y = thisBug._y + yDistance; if (Math.abs(thisBug._x - newX) < 10) { xDistance = 0; } if (Math.abs(thisBug._y - newY) < 10) { yDistance = 0; } bugCounter = bugCounter + 1; } var count; var slideDelay = 150; var oldX; var oldY; var newX; var newY; var xDistance; var yDistance; var bugCounter; var bugInterval; var thisBug; var leftLim = -150; var rightLim = 850; var topLim = 55; var bottomLim = 421; var minSitTime = 8; var maxSitTime = 15; var points = 2; var bugType = 2; stop(); thisBug = this; bugCounter = 40; bugInterval = setInterval(bugBrain, 40);
Symbol 33 MovieClip [bug2] Frame 5
count = 0; onEnterFrame = function () { count++; if (count >= slideDelay) { gotoAndPlay ("fall1"); delete onEnterFrame; } };
Symbol 33 MovieClip [bug2] Frame 30
stop();
Symbol 33 MovieClip [bug2] Frame 56
stop();
Symbol 40 MovieClip Frame 55
stop();
Symbol 41 MovieClip [bug1] Frame 1
function bugBrain() { if (bugCounter > maxSitTime) { oldX = thisBug._x; oldY = thisBug._y; newX = Math.floor((Math.random() * ((rightLim - leftLim) - thisBug._width)) + leftLim); newY = Math.floor((Math.random() * ((bottomLim - topLim) - thisBug._height)) + topLim); xDistance = (newX - oldX) / 5; yDistance = (newY - oldY) / 5; bugCounter = Math.floor(Math.random() * (maxSitTime - minSitTime)); } thisBug._x = thisBug._x + xDistance; thisBug._y = thisBug._y + yDistance; if (Math.abs(thisBug._x - newX) < 10) { xDistance = 0; } if (Math.abs(thisBug._y - newY) < 10) { yDistance = 0; } bugCounter = bugCounter + 1; } var count; var slideDelay = 60; var oldX; var oldY; var newX; var newY; var xDistance; var yDistance; var bugCounter; var bugInterval; var thisBug; var leftLim = -150; var rightLim = 850; var topLim = 55; var bottomLim = 421; var minSitTime = 20; var maxSitTime = 30; var points = 1; var bugType = 1; stop(); thisBug = this; bugCounter = 40; bugInterval = setInterval(bugBrain, 40); r = Math.floor(Math.random() * 4); mcWing1.bob = r; mcWing2.bob = r;
Symbol 41 MovieClip [bug1] Frame 10
stop(); count = 0; onEnterFrame = function () { count++; if (count >= slideDelay) { gotoAndPlay ("fall1"); delete onEnterFrame; } };
Symbol 41 MovieClip [bug1] Frame 44
stop();
Symbol 43 MovieClip [bug0] Frame 1
function bugBrain() { if (bugCounter > maxSitTime) { oldX = thisBug._x; oldY = thisBug._y; newX = Math.floor((Math.random() * ((rightLim - leftLim) - thisBug._width)) + leftLim); newY = Math.floor((Math.random() * ((bottomLim - topLim) - thisBug._height)) + topLim); xDistance = (newX - oldX) / 5; yDistance = (newY - oldY) / 5; bugCounter = Math.floor(Math.random() * (maxSitTime - minSitTime)); } thisBug._x = thisBug._x + xDistance; thisBug._y = thisBug._y + yDistance; if (Math.abs(thisBug._x - newX) < 10) { xDistance = 0; } if (Math.abs(thisBug._y - newY) < 10) { yDistance = 0; } bugCounter = bugCounter + 1; } var count; var slideDelay = 60; var oldX; var oldY; var newX; var newY; var xDistance; var yDistance; var bugCounter; var bugInterval; var thisBug; var leftLim = -150; var rightLim = 850; var topLim = 55; var bottomLim = 421; var minSitTime = 20; var maxSitTime = 30; var points = 1; var bugType = 0; stop(); thisBug = this; bugCounter = 40; bugInterval = setInterval(bugBrain, 40); r = Math.floor(Math.random() * 4); mcWing1.bob = r; mcWing2.bob = r;
Symbol 43 MovieClip [bug0] Frame 10
stop(); count = 0; onEnterFrame = function () { count++; if (count >= slideDelay) { gotoAndPlay ("fall1"); delete onEnterFrame; } };
Symbol 43 MovieClip [bug0] Frame 44
stop();
Symbol 54 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 10
stop();
Symbol 59 MovieClip Frame 1
stop(); mcClipTag._visible = false;
Symbol 59 MovieClip Frame 4
stop();
Symbol 73 Button
on (press) { getURL ("http://zuzugames.com/?smash-the-bugs", "_blank", "POST"); }
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 2
stop();
Symbol 88 MovieClip Frame 1
function run(seconds) { function drawBar() { var _local1 = new Date(); msecsCur = _local1.getMilliseconds(); msecsInterval = msecsCur - msecsPrev; if (msecsInterval < 0) { msecsInterval = msecsInterval + 1000; } if (msecsInterval > 0) { msecsTotal = msecsTotal + msecsInterval; msecsPrev = msecsCur; mcBar._width = (fullLength * msecsTotal) / mseconds; if (mcBar._width > fullLength) { mcBar._width = fullLength; timerDone = true; } updateAfterEvent(); } if (msecsTotal >= mseconds) { clearInterval(barInterval); timerDone = true; } } var mseconds = (seconds * 1000); var _local1 = new Date(); msecsCur = _local1.getMilliseconds(); msecsPrev = msecsCur; msecsTotal = 0; barInterval = setInterval(drawBar, 40); } var fullLength; var barInterval; var my_date = new Date(); var msecsCur; var msecsPrev; var msecsInterval; var msecsTotal; var timerDone = false; fullLength = mcBar._width; mcBar._width = 0; stop();

Library Items

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

Instance Names

"mcLoaderBar"Frame 1Symbol 8 MovieClip
"btPlayAgain"Frame 10Symbol 49 Button
"btBuzzButt"Frame 10Symbol 54 MovieClip
"mcSquishSound"Frame 10Symbol 59 MovieClip
"beeSound"Frame 10Symbol 62 MovieClip
"mcStartBanner"Frame 10Symbol 75 MovieClip
"mcPlayAgainBanner"Frame 10Symbol 78 MovieClip
"mcThumb"Frame 10Symbol 81 MovieClip
"mcTimer"Frame 15Symbol 88 MovieClip
"dtScore"Frame 15Symbol 90 EditableText
"mcBlur"Symbol 20 MovieClip Frame 1Symbol 14 MovieClip
"w1"Symbol 20 MovieClip Frame 1Symbol 16 MovieClip
"w2"Symbol 20 MovieClip Frame 1Symbol 17 MovieClip
"w3"Symbol 20 MovieClip Frame 1Symbol 18 MovieClip
"w4"Symbol 20 MovieClip Frame 1Symbol 19 MovieClip
"mcWing2"Symbol 41 MovieClip [bug1] Frame 1Symbol 20 MovieClip
"mcWing1"Symbol 41 MovieClip [bug1] Frame 1Symbol 20 MovieClip
"mcBirdSplat"Symbol 41 MovieClip [bug1] Frame 10Symbol 40 MovieClip
"mcWing2"Symbol 43 MovieClip [bug0] Frame 1Symbol 20 MovieClip
"mcWing1"Symbol 43 MovieClip [bug0] Frame 1Symbol 20 MovieClip
"mcBirdSplat"Symbol 43 MovieClip [bug0] Frame 10Symbol 40 MovieClip
"mcClipTag"Symbol 59 MovieClip Frame 1Symbol 57 MovieClip
"btStartButton"Symbol 75 MovieClip Frame 1Symbol 65 Button
"dtScore"Symbol 78 MovieClip Frame 1Symbol 76 EditableText
"dtHighScore"Symbol 78 MovieClip Frame 1Symbol 77 EditableText
"mcBar"Symbol 88 MovieClip Frame 1Symbol 86 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 3Symbol 33 as "bug2"
ExportAssets (56)Timeline Frame 3Symbol 41 as "bug1"
ExportAssets (56)Timeline Frame 3Symbol 43 as "bug0"

Labels

"start"Frame 16
"finish"Frame 30
"splat"Symbol 33 MovieClip [bug2] Frame 5
"fall1"Symbol 33 MovieClip [bug2] Frame 34
"splat"Symbol 41 MovieClip [bug1] Frame 10
"fall1"Symbol 41 MovieClip [bug1] Frame 20
"splat"Symbol 43 MovieClip [bug0] Frame 10
"fall1"Symbol 43 MovieClip [bug0] Frame 20
"buzz on"Symbol 54 MovieClip Frame 1
"buzz off"Symbol 54 MovieClip Frame 10




http://swfchan.com/22/108004/info.shtml
Created: 15/3 -2019 23:25:53 Last modified: 15/3 -2019 23:25:53 Server time: 14/11 -2024 06:33:18