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

Grow A Tree.swf

This is the info page for
Flash #59023

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


ActionScript [AS1/AS2]
Frame 1
if (false) { }
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
Frame 6
if (false) { }
Frame 9
if (false) { }
Frame 12
if (false) { }
Frame 13
if (false) { }
Frame 15
stop(); gotoAndPlay (4);
Symbol 4 MovieClip [tree] Frame 1
function addbranch(rotation, position) { var branch = new Object(); branch.segwidth = 2; branch.seglength = (Math.random() * 10) + 10; branch.rotation = (rotation + (Math.random() * 60)) - 30; branch.children = new Array(); tree[position] = branch; attachMovie("leaf", "leaf" + position, this.getNextHighestDepth(), {_rotation:(branch.rotation + (Math.random() * 180)) - 90}); var scaleleaf = ((Math.random() * 50) + 75); eval ("leaf" + position)._xscale = scaleleaf; eval ("leaf" + position)._yscale = scaleleaf; } function drawSegment(startx, starty, segment) { tree[segment].segwidth = Math.min(10, tree[segment].segwidth * 1.0015); tree[segment].seglength = Math.min(75, tree[segment].seglength * 1.0015); lineStyle(tree[segment].segwidth, 7750418, 100); moveTo(startx, starty); var endx = (startx + (tree[segment].seglength * Math.sin(tree[segment].rotation * degreestoradians))); var endy = (starty - (tree[segment].seglength * Math.cos(tree[segment].rotation * degreestoradians))); lineTo(endx, endy); if (Math.random() < 0.005) { tree[segment].children.push(tree.length); addbranch(tree[segment].rotation, tree.length); if (tree[segment].children.length == 1) { removeMovieClip("leaf" + segment); } } var childpos = 0; while (childpos < tree[segment].children.length) { drawSegment(endx, endy, tree[segment].children[childpos]); childpos++; } if (tree[segment].children.length == 0) { eval ("leaf" + segment)._x = endx; eval ("leaf" + segment)._y = endy; } } function resettree() { var treepos = 0; while (treepos < tree.length) { if (eval ("leaf" + treepos) != undefined) { removeMovieClip("leaf" + treepos); } treepos++; } tree = []; addbranch(0, 0); } degreestoradians = 0.01745329; var tree = new Array(); addbranch(0, 0); onEnterFrame = function () { if (tree.length < 1000) { clear(); drawSegment(0, 0, 0); } };
Symbol 44 Button
on (release) { getURL ("http://www.newgrounds.com", "_blank"); }
Symbol 53 Button
on (release) { startMovie(); }
Symbol 55 MovieClip Frame 1
function timerHandler() { if (!loadingComplete) { var _local4 = _root.getBytesLoaded() / _root.getBytesTotal(); bar._xscale = 100 * _local4; if (_local4 == 1) { loadingComplete = true; if (AUTO_PLAY) { startMovie(); } else { gotoAndStop ("loaded"); } return(undefined); } } dt = getTimer() - time; time = time + dt; frameAccum = frameAccum + dt; var _local3 = 0; while ((frameAccum >= FRAME_TIME) && (_local3 < MAX_FRAME_SKIP)) { advanceFrame(tankLogo, true, true); advanceFrame(loadingText, false, true); advanceFrame(barGfx, false, true); if (loadingComplete) { advanceFrame(this, false, false); } (frameAccum = frameAccum - FRAME_TIME); _local3++; } updateAfterEvent(); } function advanceFrame(clip, recurse, loop) { if (!clip) { return(undefined); } clip.stop(); if (clip._currentframe == clip._totalframes) { if (loop) { clip.gotoAndStop(1); } } else { clip.nextFrame(); } if (recurse) { for (childName in clip) { if (typeof(clip[childName]) == "movieclip") { advanceFrame(clip[childName], recurse, loop); } } } } function startMovie() { clearInterval(intervalId); _root.play(); } _root.stop(); stop(); var FRAME_TIME = 33.3333333333333; var AUTO_PLAY = false; var MAX_FRAME_SKIP = 5; var loadingComplete; var intervalId; var time; var frameAccum; loadingComplete = false; intervalId = setInterval(this, "timerHandler", FRAME_TIME / 2); frameAccum = 0; time = getTimer(); timerHandler();
Symbol 55 MovieClip Frame 2
stop();
Symbol 64 Button
on (release) { gotoAndPlay (4); }
Symbol 69 Button
on (release) { gotoAndPlay (5); }
Symbol 75 Button
on (release) { gotoAndPlay (6); }
Symbol 80 Button
on (release) { gotoAndPlay (3); }

Library Items

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

Instance Names

"tree"Frame 4Symbol 4 MovieClip [tree]
"bar"Symbol 55 MovieClip Frame 1Symbol 8 MovieClip
"tankLogo"Symbol 55 MovieClip Frame 1Symbol 43 MovieClip
"loadingText"Symbol 55 MovieClip Frame 1Symbol 47 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 2 as "leaf"
ExportAssets (56)Timeline Frame 1Symbol 4 as "tree"
Tag 0x0FF (255)Timeline Frame 11 bytes "."

Labels

"loaded"Symbol 55 MovieClip Frame 2




http://swfchan.com/12/59023/info.shtml
Created: 16/4 -2019 23:19:48 Last modified: 16/4 -2019 23:19:48 Server time: 22/12 -2024 12:13:57