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

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

The Lady Bug.swf

This is the info page for
Flash #25303

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


Text
play more games at LostJungle.com

add this game to your site

10.0

Elapsed
time

0.0

BEST
time

PLAY AGAIN

Help the LadyBug
avoid the garden insects,
by moving your mouse
as quickly as you can...

<p align="center"><font face="Arial Narrow" size="12" color="#000000">Produced by LostJungle</font></p><p align="center"><font face="Arial Narrow" size="12" color="#000000">Written by Yan Kleber de Moura</font></p><p align="center"></p>

click
to play!

ActionScript [AS1/AS2]

Frame 1
function circleCircleDetect(bug) { var _local3 = bug._x - _root.mcLadyBug._x; var _local2 = bug._y - _root.mcLadyBug._y; var _local5 = Math.sqrt((_local3 * _local3) + (_local2 * _local2)); return((bug.radius + _root.mcLadyBug.radius) < _local5); } function Smashing() { _root.mcLadyBug.gotoAndPlay(2); _root.mcInstructions.txtTitle.text = "HELICOPTER CRASHED!\rCLICK TO PLAY AGAIN..."; _root.mcInstructions._visible = true; sndCrickets.stop(); sndSmash = new Sound(this); sndSmash.attachSound("smash"); sndSmash.setVolume(40); sndSmash.start(); _root.mcPlayAgain._visible = true; Mouse.show(); if (_root.Best < parseFloat(_root.mcTimer.txtTimer.text)) { _root.Best = parseFloat(_root.mcTimer.txtTimer.text); _root.mcTimer.txtBestTime.text = _root.Best; } } function StartSound() { sndCrickets = new Sound(this); sndCrickets.attachSound("crickets"); sndCrickets.setVolume(100); sndCrickets.start(0, 999); sndCrickets.onSoundComplete = function () { sndCrickets.start(0, 999); }; } function ResetGame() { z = bugcounter - 30; while (z < (bugcounter + 1)) { _root["mcBug" + z].removeMovieClip(); z++; } _root.mcPlayAgain._visible = false; _root.Go = true; _root.mcLadyBug.gotoAndStop(1); StartSound(); _root.mystart = getTimer() / 1000; } _root.bugcounter = 10000; _root.bugframes = 0; _root.Go = false; _root.mystart = 0; _root.Best = 0; _root.newbug = 6; _root.bugspeed = 17; _root.bugradius = 15; _root.ladybugradius = 15; z = 0; while (z < 100) { x = Math.random() * 440; y = Math.random() * 440; size = (Math.random() * 40) + 60; _root.attachMovie("mcBush", "mcBush" + z, z + 1000); _root["mcBush" + z]._x = x; _root["mcBush" + z]._y = y; _root["mcBush" + z]._xscale = size; _root["mcBush" + z]._yscale = size; z++; } _root.attachMovie("mcPlayAgain", "mcPlayAgain", 81000); _root.mcPlayAgain._visible = false; _root.mcPlayAgain._x = 220; _root.mcPlayAgain._y = 220; _root.attachMovie("mcTitle", "mcTitle", 82000); _root.mcTitle._x = 220; _root.mcTitle._y = 220; _root.attachMovie("mcBottomBar", "mcBottomBar", 83000); _root.mcBottomBar._x = 220; _root.mcBottomBar._y = 425; _root.attachMovie("mcTimer", "mcTimer", 80000); _root.mcTimer._x = 400; _root.mcTimer._y = 50; _root.attachMovie("mcLadyBug", "mcLadyBug", 30000); _root.mcLadyBug._x = -1000; _root.mcLadyBug._y = -1000; _root.mcLadyBug.radius = _root.ladybugradius; MovieClip.prototype.pointAt = function (x, y) { var _local2 = x - this._x; var _local3 = y - this._y; var _local5 = Math.sqrt((_local2 * _local2) + (_local3 * _local3)); var _local4; if (_local3 < 0) { _local4 = (Math.PI*2) - Math.acos(_local2 / _local5); } else { _local4 = Math.acos(_local2 / _local5); } this._rotation = (_local4 * 180) / Math.PI; }; mcLadyBug.onEnterFrame = function () { if (_root.Go == true) { Mouse.hide(); this.pointAt(this._parent._xmouse, this._parent._ymouse); this._x = _xmouse; this._y = _ymouse; updateAfterEvent(); } }; stop();
Instance of Symbol 45 MovieClip "mcEngine" in Frame 1
onClipEvent (enterFrame) { if (_root.Go == true) { _root.bugframes++; if (_root.bugframes == _root.newbug) { side = Math.floor(Math.random() * 4) + 1; bug = Math.floor(Math.random() * 4) + 1; _root.attachMovie("mcBug" + bug, "mcBug" + _root.bugcounter, _root.bugcounter); _root["mcBug" + _root.bugcounter].radius = _root.bugradius; switch (side) { case 1 : x = Math.random() * 440; _root["mcBug" + _root.bugcounter]._x = x; _root["mcBug" + _root.bugcounter]._y = _root["mcBug" + _root.bugcounter]._height * -1; _root["mcBug" + _root.bugcounter]._rotation = 180; _root["mcBug" + _root.bugcounter].onEnterFrame = function () { if (_root.Go == true) { this._y = this._y + _root.bugspeed; if (_root.circleCircleDetect(this) == false) { _root.Go = false; _root.Smashing(); } if (this._y > (this._height + 440)) { this.removeMovieClip(); } } }; break; case 2 : y = Math.random() * 440; _root["mcBug" + _root.bugcounter]._y = y; _root["mcBug" + _root.bugcounter]._x = _root["mcBug" + _root.bugcounter]._width + 440; _root["mcBug" + _root.bugcounter]._rotation = 270; _root["mcBug" + _root.bugcounter].onEnterFrame = function () { if (_root.Go == true) { this._x = this._x - _root.bugspeed; if (_root.circleCircleDetect(this) == false) { _root.Go = false; _root.Smashing(); } if (this._x < (this._width * -1)) { this.removeMovieClip(); } } }; break; case 3 : x = Math.random() * 440; _root["mcBug" + _root.bugcounter]._x = x; _root["mcBug" + _root.bugcounter]._y = _root["mcBug" + _root.bugcounter]._height + 440; _root["mcBug" + _root.bugcounter]._rotation = 0; _root["mcBug" + _root.bugcounter].onEnterFrame = function () { if (_root.Go == true) { this._y = this._y - _root.bugspeed; if (_root.circleCircleDetect(this) == false) { _root.Go = false; _root.Smashing(); } if (this._y < (this._height * -1)) { this.removeMovieClip(); } } }; break; case 4 : y = Math.random() * 440; _root["mcBug" + _root.bugcounter]._y = y; _root["mcBug" + _root.bugcounter]._x = _root["mcBug" + _root.bugcounter]._width * -1; _root["mcBug" + _root.bugcounter]._rotation = 90; _root["mcBug" + _root.bugcounter].onEnterFrame = function () { if (_root.Go == true) { this._x = this._x + _root.bugspeed; if (_root.circleCircleDetect(this) == false) { _root.Go = false; _root.Smashing(); } if (this._x > (this._width + 440)) { this.removeMovieClip(); } } }; } _root.bugcounter++; _root.bugframes = 0; } } }
Symbol 8 Button
on (release) { getURL ("http://www.lostjungle.com"); }
Symbol 9 Button
on (release) { getURL ("http://www.lostjungle.com/add.php?game=ladybug"); }
Symbol 16 MovieClip [mcTimer] Frame 1
this.onEnterFrame = function () { if (_root.Go == true) { if (Math.floor(thetime) >= 10) { thetime = substring((getTimer() / 1000) - _root.mystart, 1, 4); } else { thetime = substring((getTimer() / 1000) - _root.mystart, 1, 3); } switch (length(thetime)) { case 1 : thetime = thetime + ".0"; break; case 2 : thetime = thetime + "0"; break; } this.txtTimer.text = thetime; } };
Symbol 18 MovieClip [mcLadyBug] Frame 1
stop();
Symbol 18 MovieClip [mcLadyBug] Frame 20
stop();
Symbol 32 Button
on (release) { _root.ResetGame(); }
Symbol 40 Button
on (release) { _root.mcTitle._visible = false; _root.ResetGame(); }

Library Items

Symbol 1 Sound [smash]
Symbol 2 Sound [crickets]
Symbol 3 GraphicUsed by:10
Symbol 4 FontUsed by:5 6
Symbol 5 TextUses:4Used by:10
Symbol 6 TextUses:4Used by:10
Symbol 7 GraphicUsed by:8 9  Timeline
Symbol 8 ButtonUses:7Used by:10
Symbol 9 ButtonUses:7Used by:10
Symbol 10 MovieClip [mcBottomBar]Uses:3 5 6 8 9
Symbol 11 FontUsed by:12 13 14 15 30 41
Symbol 12 EditableTextUses:11Used by:16
Symbol 13 TextUses:11Used by:16
Symbol 14 EditableTextUses:11Used by:16
Symbol 15 TextUses:11Used by:16
Symbol 16 MovieClip [mcTimer]Uses:12 13 14 15
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClip [mcLadyBug]Uses:17
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClip [mcBug1]Uses:19
Symbol 21 GraphicUsed by:22
Symbol 22 MovieClip [mcBug2]Uses:21
Symbol 23 GraphicUsed by:24
Symbol 24 MovieClip [mcBug3]Uses:23
Symbol 25 GraphicUsed by:26
Symbol 26 MovieClip [mcBug4]Uses:25
Symbol 27 GraphicUsed by:28
Symbol 28 MovieClip [mcBush]Uses:27
Symbol 29 GraphicUsed by:34
Symbol 30 TextUses:11Used by:34
Symbol 31 GraphicUsed by:32 33 40
Symbol 32 ButtonUses:31Used by:34
Symbol 33 ButtonUses:31Used by:34
Symbol 34 MovieClip [mcPlayAgain]Uses:29 30 32 33
Symbol 35 GraphicUsed by:43
Symbol 36 FontUsed by:37
Symbol 37 TextUses:36Used by:43
Symbol 38 FontUsed by:39
Symbol 39 EditableTextUses:38Used by:43
Symbol 40 ButtonUses:31Used by:43
Symbol 41 TextUses:11Used by:42
Symbol 42 MovieClipUses:41Used by:43
Symbol 43 MovieClip [mcTitle]Uses:35 37 39 40 42
Symbol 44 GraphicUsed by:45
Symbol 45 MovieClipUses:44Used by:Timeline

Instance Names

"mcEngine"Frame 1Symbol 45 MovieClip
"txtTimer"Symbol 16 MovieClip [mcTimer] Frame 1Symbol 12 EditableText
"txtBestTime"Symbol 16 MovieClip [mcTimer] Frame 1Symbol 14 EditableText

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 1 as "smash"
ExportAssets (56)Timeline Frame 1Symbol 2 as "crickets"
ExportAssets (56)Timeline Frame 1Symbol 10 as "mcBottomBar"
ExportAssets (56)Timeline Frame 1Symbol 16 as "mcTimer"
ExportAssets (56)Timeline Frame 1Symbol 18 as "mcLadyBug"
ExportAssets (56)Timeline Frame 1Symbol 20 as "mcBug1"
ExportAssets (56)Timeline Frame 1Symbol 22 as "mcBug2"
ExportAssets (56)Timeline Frame 1Symbol 24 as "mcBug3"
ExportAssets (56)Timeline Frame 1Symbol 26 as "mcBug4"
ExportAssets (56)Timeline Frame 1Symbol 28 as "mcBush"
ExportAssets (56)Timeline Frame 1Symbol 34 as "mcPlayAgain"
ExportAssets (56)Timeline Frame 1Symbol 43 as "mcTitle"

Labels

"mcSeta"Frame 1

Dynamic Text Variables

theTimeSymbol 12 EditableText"10.0"




http://swfchan.com/6/25303/info.shtml
Created: 23/5 -2019 20:07:29 Last modified: 23/5 -2019 20:07:29 Server time: 19/05 -2024 01:17:59