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

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

fly.swf

This is the info page for
Flash #44899

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


ActionScript [AS1/AS2]
Frame 1
function slide(angle, speed) { angle = (Math.PI/180) * angle; var _local4 = Math.cos(angle) * speed; var _local3 = Math.sin(angle) * speed; this.fly._x = this.fly._x + _local4; this.fly._y = this.fly._y - _local3; } function rotate(angleVar) { angle = angle + angleVar; } function accelerate(accVar) { speed = speed + accVar; } function decelerate(decVar) { speed = speed - decVar; } function wait() { waitTime = waitTime - 1; if (waitTime == 0) { setHalt = 0; angle = Math.random() * 360; if (this.fly._x > 750) { angle = parseInt(115 + (Math.random() * 90)); } if (this.fly._x < 50) { angle = parseInt(315 + (Math.random() * 90)); } if (this.fly._y > 550) { angle = parseInt(45 + (Math.random() * 90)); } if (this.fly._y < 50) { angle = parseInt(225 + (Math.random() * 90)); } waitTime = parseInt(10 + (Math.random() * 50)); } } function moveStop() { var _local1 = Math.random() * 0.8; if (movevar < 11) { accelerate(_local1); movevar = movevar + 1; } if ((movevar > 10) && (movevar < 20)) { movevar = movevar + 1; } if ((movevar >= 20) && (movevar < 30)) { decelerate(_local1); movevar = movevar + 1; } if (movevar == 30) { speed = 0; movevar = 0; setHalt = 1; } } function wiggle() { xWiggle = Math.sin(getTimer() * 0.02) * (2 + Math.random(2)); xWiggle2 = Math.sin(getTimer() * 0.03) * (2 + Math.random(2)); this.fly._x = (this.fly._x - xWiggle) + xWiggle2; yWiggle = Math.sin(getTimer() * 0.03) * (2 + Math.random(2)); yWiggle2 = Math.sin(getTimer() * 0.03) * (1 + Math.random(3)); this.fly._y = (this.fly._y - yWiggle) + yWiggle2; } function sethitzone() { this.hitzone._x = _root._xmouse - 50; this.hitzone._y = _root._ymouse - 50; } function compareAngle() { if (((_root._xmouse - this.fly._x) >= 0) && ((_root._ymouse - this.fly._y) >= 0)) { angle = parseInt(90 + (Math.random() * 90)); } if (((_root._xmouse - this.fly._x) <= 0) && ((_root._ymouse - this.fly._y) >= 0)) { angle = parseInt(0 + (Math.random() * 90)); } if (((_root._xmouse - this.fly._x) <= 0) && ((_root._ymouse - this.fly._y) <= 0)) { angle = parseInt(270 + (Math.random() * 90)); } if (((_root._xmouse - this.fly._x) >= 0) && ((_root._ymouse - this.fly._y) <= 0)) { angle = parseInt(180 + (Math.random() * 90)); } } var angle = (Math.random() * 360); var speed = 0; var movevar = 0; var setHalt = 0; var waitTime = 50; var xWiggle = 0; var xWiggle2 = 0; var yWiggle = 0; var yWiggle2 = 0; this.onEnterFrame = function () { sethitzone(); wiggle(); if (setHalt == 0) { moveStop(); } if (setHalt == 1) { wait(); } if (this.fly.hitTest(this.hitzone)) { sethalt = 1; waitTime = 10; speed = 4; compareAngle(); } slide(angle, speed); };

Library Items

Symbol 1 GraphicUsed by:11
Symbol 2 GraphicUsed by:11
Symbol 3 GraphicUsed by:11
Symbol 4 GraphicUsed by:11
Symbol 5 GraphicUsed by:11
Symbol 6 GraphicUsed by:11
Symbol 7 GraphicUsed by:11
Symbol 8 GraphicUsed by:11
Symbol 9 GraphicUsed by:11
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClipUses:1 2 3 4 5 6 7 8 9 10Used by:Timeline
Symbol 12 GraphicUsed by:13
Symbol 13 MovieClipUses:12Used by:Timeline
Symbol 14 SoundUsed by:Timeline

Instance Names

"fly"Frame 1Symbol 11 MovieClip
"hitzone"Frame 1Symbol 13 MovieClip




http://swfchan.com/9/44899/info.shtml
Created: 7/3 -2019 07:16:33 Last modified: 7/3 -2019 07:16:33 Server time: 26/04 -2024 02:50:36