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

Flakey.swf

This is the info page for
Flash #50296

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


Text
IT ISNT SNOWING

ActionScript [AS1/AS2]

Frame 1
function snowFlake() { trace("snowFlake"); this.reset(); } function doLoop() { gWindSpeed = gWindSpeed + ((Math.random() * (2 * gWindMaxChange)) - gWindMaxChange); if (gWindSpeed > gWindMaxSpeed) { gWindSpeed = gWindMaxSpeed; } else if (gWindSpeed < (-gWindMaxSpeed)) { gWindSpeed = -gWindMaxSpeed; } } function initSnow() { var _local1 = _root; trace("initSnow"); i = 0; while (i < gFlakeCount) { _local1.attachMovie("anim", "flake" + i, i); i++; } resetWind(); } function init() { trace("init"); gZDepth = 100; gXSpeedRange = 0.1; gYInitSpeed = 0.04; gPerspFactor = 1; gWindSpeed = 0; gWindMaxChange = 0.008; gWindMaxSpeed = 0.12; gFlakeCount = 500; screenMarginWidth = 20; } function resetWind() { trace("resetWind"); gWindSpeed = (Math.random() * (2 * gWindMaxSpeed)) - gWindMaxSpeed; } snowFlake.prototype = new MovieClip(); snowFlake.prototype.reset = function () { var _local1 = this; _local1.zloc = Math.random() * (gZDepth - 20); _local1.swapDepths(_local1.zloc); _local1._x = Math.random() * Stage.width; _local1._y = -20; _local1._initXspeed = (Math.random() * gXSpeedRange) - (gXSpeedRange / 2); _local1._yspeed = gYInitSpeed; _local1.gotoAndPlay(Math.floor(Math.random() * _local1._totalframes)); }; snowFlake.prototype.onEnterFrame = function () { var _local1 = this; var _local2 = gPerspFactor * (gZDepth - _local1.zloc); _local1._xscale = _local2; _local1._yscale = _local2; _local1._xspeed = _local1._initXspeed + gWindSpeed; _local1._x = _local1._x + (_local1._xspeed * _local2); _local1._y = _local1._y + (_local1._yspeed * _local2); _local1._rotation = _local1._xspeed * 360; _local1._xscale = _local1._xscale - ((_local1._xspeed * _local2) * 2); if (_local1._y > Stage.height) { _local1.reset(); } if (_local1._x > (Stage.width + screenMarginWidth)) { _local1._x = (-screenMarginWidth) / 2; } else if (_local1._x < (-screenMarginWidth)) { _local1._x = Stage.width + (screenMarginWidth / 2); } }; Object.registerClass("anim", snowFlake); init();
Frame 2
stop();
Instance of Symbol 7 MovieClip in Frame 2
onClipEvent (enterFrame) { _root.doLoop(); } onClipEvent (load) { _root.initSnow(); } onClipEvent (mouseUp) { _root.resetWind(); }

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClip [anim]Uses:1
Symbol 3 GraphicUsed by:Timeline
Symbol 4 GraphicUsed by:Timeline
Symbol 5 GraphicUsed by:Timeline
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClipUses:6Used by:Timeline
Symbol 8 FontUsed by:9
Symbol 9 TextUses:8Used by:10
Symbol 10 MovieClipUses:9Used by:Timeline
Symbol 11 SoundUsed by:Timeline

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 2 as "anim"




http://swfchan.com/11/50296/info.shtml
Created: 26/4 -2019 19:00:04 Last modified: 26/4 -2019 19:00:04 Server time: 22/12 -2024 10:48:44