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

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

1187737394.nitro_colour_lines.swf

This is the info page for
Flash #9162

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


ActionScript [AS3]
Section 1
//MainTimeline (colour_lines_fla.MainTimeline) package colour_lines_fla { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.geom.*; import flash.text.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.net.*; import flash.printing.*; import flash.system.*; import flash.ui.*; import flash.xml.*; public dynamic class MainTimeline extends MovieClip { public var point1v; public var FPSTimer:Timer; public var point3v:Point; public var rv; public var bv:Number; public var V:Number; public var fGreen; public var b:Number; public var color:Number; public var U; public var a; public var Y; public var g; public var screen:BitmapData; public var nRange; public var r; public var fRed; public var nH; public var shape:Shape; public var fps_counter:Number; public var point2; public var nV; public var point1; public var fQ; public var point3:Point; public var nS; public var display:Bitmap; public var FPS:TextField; public var fP; public var fF; public var fT; public var fBlue:Number; public var gv; public var myTimer:Timer; public function MainTimeline(){ addFrameScript(0, frame1); } function frame1(){ myTimer = new Timer(1); myTimer.addEventListener(TimerEvent.TIMER, render); myTimer.start(); FPSTimer = new Timer(1000); FPSTimer.addEventListener(TimerEvent.TIMER, fps_update); FPSTimer.start(); screen = new BitmapData(640, 480); display = new Bitmap(screen); shape = new Shape(); shape.graphics.clear(); shape.graphics.lineStyle(1, 0, 0.1); display.bitmapData.fillRect(display.bitmapData.rect, 0); addChild(display); point1 = new Point(0, 0); point2 = new Point(0, 0); point3 = new Point(320, 240); point1v = new Point(0.1, 0.1); point3v = new Point(0.1, 0.1); r = 1; g = 1; b = 1; rv = 0.6; gv = 0.4; bv = 0.2; color = 1; } public function RGB(_arg1:Number, _arg2:Number, _arg3:Number){ return (((_arg3 | (_arg2 << 8)) | (_arg1 << 16))); } public function render(_arg1:TimerEvent){ point2.x = mouseX; point2.y = mouseY; point1.x = (point1.x + point1v.x); point1.y = (point1.y + point1v.y); point3.x = (point3.x + point3v.x); point3.y = (point3.y + point3v.y); if (point1.x < mouseX){ point1v.x = (point1v.x + 0.01); }; if (point1.x > mouseX){ point1v.x = (point1v.x - 0.01); }; if (point1.y < mouseY){ point1v.y = (point1v.y + 0.01); }; if (point1.y > mouseY){ point1v.y = (point1v.y - 0.01); }; if (point3.x < mouseX){ point3v.x = (point3v.x + 0.01); }; if (point3.x > mouseX){ point3v.x = (point3v.x - 0.01); }; if (point3.y < mouseY){ point3v.y = (point3v.y + 0.01); }; if (point3.y > mouseY){ point3v.y = (point3v.y - 0.01); }; if (point1.x > 640){ point1.x = 640; }; if (point1.x < 0){ point1.x = 0; }; if (point1.y > 480){ point1.y = 480; }; if (point1.y < 0){ point1.y = 0; }; if (point3.x > 640){ point3.x = 640; }; if (point3.x < 0){ point3.x = 0; }; if (point3.y > 480){ point3.y = 480; }; if (point3.y < 0){ point3.y = 0; }; color = (color + 0.5); if (color > 254){ color = 0; }; nH = color; nS = 120; nV = 0xFF; if (nS == 0){ fRed = nV; fGreen = nV; fBlue = nV; }; nH = (nH / 42.5); nS = (nS / 0xFF); nRange = Math.floor(nH); fF = (nH - nRange); fP = (nV * (1 - nS)); fQ = (nV * (1 - (nS * fF))); fT = (nV * (1 - (nS * (1 - fF)))); switch (nRange){ case 0: fRed = nV; fGreen = fT; fBlue = fP; break; case 1: fRed = fQ; fGreen = nV; fBlue = fP; break; case 2: fRed = fP; fGreen = nV; fBlue = fT; break; case 3: fRed = fP; fGreen = fQ; fBlue = nV; break; case 4: fRed = fT; fGreen = fP; fBlue = nV; break; default: fRed = nV; fGreen = fP; fBlue = fQ; break; }; r = fRed; g = fGreen; b = fBlue; shape.graphics.clear(); shape.graphics.moveTo(point1.x, point1.y); shape.graphics.lineStyle(0, RGB(r, g, b), 0.1); shape.graphics.curveTo(point2.x, point2.y, point3.x, point3.y); display.bitmapData.draw(shape, null, null); fps_counter++; } public function clickHandler(_arg1:MouseEvent){ display.bitmapData.fillRect(display.bitmapData.rect, 0); trace("lol"); } public function fps_update(_arg1:TimerEvent):void{ FPS.text = (String(fps_counter) + " FPS"); fps_counter = 0; } } }//package colour_lines_fla
Section 2
//BG (BG) package { import flash.display.*; public dynamic class BG extends MovieClip { } }//package

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClip {BG}Uses:1
Symbol 3 FontUsed by:4
Symbol 4 EditableTextUses:3Used by:Timeline

Instance Names

"FPS"Frame 1Symbol 4 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.




http://swfchan.com/2/9162/info.shtml
Created: 10/6 -2019 06:54:13 Last modified: 10/6 -2019 06:54:13 Server time: 29/04 -2024 12:33:14