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

spider.swf

This is the info page for
Flash #183172

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


Text
(C) Tomas Eriksson 2002
http://nowhere.embryo.se/spider/
mail: special@spray.se

ActionScript [AS1/AS2]

Symbol 2 MovieClip Frame 1
Symbol 4 MovieClip Frame 1
function between(a, b) { while (b < a) { b = b + (Math.PI*2); } if ((b - a) > ((a + (Math.PI*2)) - b)) { a = a + (Math.PI*2); } var v = (((a + b) / 2) % (Math.PI*2)); if (v > Math.PI) { v = v - (Math.PI*2); } return(v); } function movelegs() { } function moveleg(c, dir) { var l2 = this.legs2[c]; if (l2.w > 0) { return(undefined); } var l1 = this.legs1[c]; if (this.keyD) { dir = dir + Math.PI; } var a = ((((Math.PI * c) / 4) + this.dir) + 0.392699081698724); l2.x = ((Math.cos(a) * this.dist) + this._x) + (Math.cos(dir) * 50); l2.y = ((Math.sin(a) * this.dist) + this._y) + (Math.sin(dir) * 50); l2.d = ((l2.x - l1.x) * (l2.x - l1.x)) + ((l2.y - l1.y) * (l2.y - l1.y)); l2.w = 15; } this.drag = false; this.onmousedown = function () { if ((((_root._xmouse > (this._x - 50)) && (_root.xmouse < (this._x + 50))) && (_root._ymouse > (this._y - 50))) && (_root.ymouse < (this._y + 50))) { this.dragx = _root._xmouse; this.dragy = _root._ymouse; this.drag = true; } }; this.onmousemove = function () { if (this.drag) { this._x = this._x + (_root._xmouse - this.dragx); this._y = this._y + (_root._ymouse - this.dragy); var c = 0; while (c < 8) { var l = this.legs1[c]; var dist = (((l.x - this._x) * (l.x - this._x)) + ((l.y - this._y) * (l.y - this._y))); if (dist > 10000) { l.x = this._x + (((l.x - this._x) * 100) / dist); l.y = this._y + (((l.y - this._y) * 100) / dist); } c++; } this.dir = between(this.dir, Math.atan2(_root._ymouse - this.dragy, _root._xmouse - this.dragx)); this.dragx = _root._xmouse; this.dragy = _root._ymouse; } }; this.onmouseup = function () { this.drag = false; }; this.id = int(this._name.substr(6, this._name.length - 6)); this.counter = 0; this.dir = 0; this.legs1 = new Array(8); this.legs2 = new Array(8); this.dist = 60; this.leg = 0; this._x = 512; this._y = 384; var c = 0; while (c < 8) { this.legs2[c] = new Object(); this.legs2[c].x = (Math.cos(((Math.PI * c) / 4) + 0.392699081698724) * this.dist) + this._x; this.legs2[c].y = (Math.sin(((Math.PI * c) / 4) + 0.392699081698724) * this.dist) + this._y; this.legs1[c] = new Object(); this.legs1[c].x = this.legs2[c].x; this.legs1[c].y = this.legs2[c].y; moveleg(c); c++; } this.keyF = true; this.keyL = false; this.keyR = false; this.keyD = false; this.forward = true; this.onKeyDown = function () { var k = Key.getCode(); if (k == 38) { this.keyF = true; if (!this.forward) { this.forward = true; moveLegs(); } } else if (k == 39) { this.keyR = true; } else if (k == 37) { this.keyL = true; } }; this.onKeyUp = function () { var k = Key.getCode(); if (k == 38) { this.keyF = false; } else if (k == 39) { this.keyR = false; } else if (k == 37) { this.keyL = false; } }; Key.addListener(this);
Symbol 4 MovieClip Frame 2
this.rot = (Math.atan2(((this.legs1[0].y + this.legs1[7].y) / 2) - this._y, ((this.legs1[0].x + this.legs1[7].X) / 2) - this._x) * 180) / Math.PI; this.mouth._rotation = this.rot; if (this.keyF) { if (this.keyL) { this.dir = this.dir - 0.0392699081698724; } if (this.keyR) { this.dir = this.dir + 0.0392699081698724; } } if (((Math.abs(_root._ymouse - this._y) > 50) || (Math.abs(_root._xmouse - this._x) > 50)) || (this.drag)) { if (!this.drag) { var dr = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x); if (Math.abs(this.dir - dr) < Math.PI) { if (this.dir < dr) { this.dir = this.dir + 0.05; } else { this.dir = this.dir - 0.05; } } else { if (this.dir > dr) { this.dir = this.dir + 0.05; } else { this.dir = this.dir - 0.05; } if (this.dir > Math.PI) { this.dir = this.dir - (Math.PI*2); } else if (this.dir < -3.14159265358979) { this.dir = this.dir + (Math.PI*2); } } } this.clear(); this.moveTo(0, 0); var rad = 0; var len = 40; var hi = 60; var mv = 1.0471975511966; this.lineStyle(2, 3761553); var c = 0; while (c < 8) { var ps = this.legs1[c]; this.moveTo(0, 3); this.lineTo(ps.x - this._x, ps.y - this._y); c++; } this.lineStyle(2, 2105376); var c = 0; while (c < 8) { var ps = this.legs1[c]; var l2 = this.legs2[c]; var dx = (l2.x - ps.x); var dy = (l2.y - ps.y); var dt = ((dx * dx) + (dy * dy)); var dtr = Math.sqrt(dt); if (dtr > 10) { ps.x = ps.x + ((dx * 10) / dtr); ps.y = ps.y + ((dy * 10) / dtr); } else { ps.x = l2.x; ps.y = l2.y; } l2.w--; var x = (ps.x - this._x); var y = (ps.y - this._y); var len = 0; var d2 = ((x * x) + (y * y)); if (d2 < 7000) { len = Math.sqrt(7000 - d2) / 3; } if (len < 5) { moveleg(c, this.dir); } if (len < 0) { len = 0; } this.moveTo(0, 0); this.lineTo((ps.x - this._x) / 2, ((ps.y - this._y) / 2) - len); this.lineTo(ps.x - this._x, (ps.y - this._y) - (Math.sin((dt / l2.d) * Math.PI) * 10)); rad = rad + mv; c++; } if (!this.drag) { if ((this.counter % 3) == 0) { this.leg = (this.leg + (this.keyD ? -5 : 5)) & 7; moveleg(this.leg, this.dir); } this.counter = this.counter + (this.keyD ? -1 : 1); this._x = this._x + ((this.keyD ? -3 : 3) * Math.cos(this.dir)); this._y = this._y + ((this.keyD ? -3 : 3) * Math.sin(this.dir)); } }
Symbol 4 MovieClip Frame 3
gotoAndPlay (2);

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClipUses:1Used by:4
Symbol 3 GraphicUsed by:4
Symbol 4 MovieClipUses:2 3Used by:Timeline
Symbol 5 FontUsed by:6
Symbol 6 EditableTextUses:5Used by:Timeline

Instance Names

"spider"Frame 1Symbol 4 MovieClip
"mouth"Symbol 4 MovieClip Frame 2Symbol 2 MovieClip




http://swfchan.com/37/183172/info.shtml
Created: 6/8 -2019 22:40:25 Last modified: 6/8 -2019 22:40:25 Server time: 22/12 -2024 09:35:29