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

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

image-grid2.swf

This is the info page for
Flash #43559

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


Text
<p align="left"><font face="Arial" size="27" color="#ffffff" letterSpacing="1.500000" kerning="0">Click to Connect</font></p>

Connecting...

ActionScript [AS3]

Section 1
//MainTimeline (image_fla.MainTimeline) package image_fla { import flash.events.*; import flash.text.*; import flash.display.*; import flash.net.*; import flash.filters.*; import flash.geom.*; import flash.utils.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.media.*; import flash.printing.*; import flash.system.*; import flash.ui.*; import flash.xml.*; public dynamic class MainTimeline extends MovieClip { public var pass:Array; public var loader:URLLoader; public var downx; public var downy; public var coords:TextField; public var usercount:TextField; public var raw:Array; public var spacex:int; public var spacey:int; public var mapon:Boolean; public var collide:Boolean; public var border; public var xmove; public var starty:int; public var startx:int; public var blur:BlurFilter; public var i:int; public var download; public var iposy; public var rec:Array; public var red:ColorTransform; public var test:Boolean; public var dir:String; public var posx:Array; public var req:URLRequest; public var iposx; public var sendtext; public var posy:Array; public var unbold:TextFormat; public var pictLdr2:Loader; public var keycode:Array; public var over:Boolean; public var mytext:TextField; public var i2:int; public var helpon:String; public var addsquare:Shape; public var added:Array; public var space; public var raw3:Array; public var raw2:String; public var filecount:int; public var itext:TextField; public var smmove; public var square:Shape; public var ip:String; public var shadow:DropShadowFilter; public var iblack:Sprite; public var imip:Array; public var map:Sprite; public var file:Array; public var addbox:Sprite; public var hugeblur:BlurFilter; public var screenx:int; public var screeny:int; public var glow:GlowFilter; public var host:String; public var oform:TextFormat; public var imgborder:int; public var whole:Array; public var boxborder:Array; public var allowed:Boolean; public var neutral:ColorTransform; public var movestage:Boolean; public var box:Array; public var pictURLReq2:URLRequest; public var onsend:Boolean; public var mess:TextField; public var ondisplay:int; public var filename:TextField; public var dismap; public var inmap:Shape; public var mapsquares:Array; public var right:TextFormat; public var imloaded:Boolean; public var mapbit:BitmapData; public var imgisdown:Boolean; public var so:SharedObject; public var filenamebox:Sprite; public var txt:TextField; public var elisten:Boolean; public var intro:Sprite; public var screenxblock:int; public var igraph:Shape; public var helpoff:String; public var sendit:Sprite; public var mover:Sprite; public var boxfade:Array; public var blurred:Array; public var underline:TextFormat; public var time:String; public var ondown:Boolean; public var overprogress:Sprite; public var onscreen:Array; public var keyjump:int; public var hrtgd:int; public var mtimer:Timer; public var screenyblock:int; public var downmost:int; public var browser:String; public var maxmove:int; public var mapzoom:Number; public var boxfadeout:Array; public var iclose; public var chat:Object; public var coversquare:Shape; public var sposx:int; public var sposy:int; public var rightmost:int; public var adding:Boolean; public var boxed:Array; public var coordclick; public var overprogresstext:TextField; public var cover:Sprite; public var usermouse:MovieClip; public var img:Array; public var ymove; public var stagezoom:Number; public var inc; public var lmousex:int; public var lmousey:int; public var format:TextFormat; public var helptext; public function MainTimeline(){ addFrameScript(0, frame1, 1, frame2, 2, frame3); } public function stopout(_arg1:Event):void{ ondown = false; } public function overoff(){ removeChild(square); unblur(); stage.removeEventListener(MouseEvent.MOUSE_DOWN, overclick); stage.removeEventListener(MouseEvent.MOUSE_MOVE, moveit); stageon(); lmousex = mouseX; lmousey = mouseY; } public function updatezoom(){ i = 0; while (i < onscreen.length) { if (file[onscreen[i]]){ file[onscreen[i]].width = (128 * stagezoom); file[onscreen[i]].height = (128 * stagezoom); }; i++; }; updatepos(); } public function eframe(_arg1:Event):void{ if (keycode[0]){ screeny = (screeny - keyjump); updatepos(); }; if (keycode[1]){ screenx = (screenx + keyjump); updatepos(); }; if (keycode[2]){ screeny = (screeny + keyjump); updatepos(); }; if (keycode[3]){ screenx = (screenx - keyjump); updatepos(); }; } public function maketext(_arg1:String=""):TextField{ var txt:TextField; var str = _arg1; txt = new TextField(); var _local3 = txt; with (_local3) { antiAliasType = AntiAliasType.ADVANCED; autoSize = TextFieldAutoSize.LEFT; wordWrap = false; multiline = true; selectable = false; defaultTextFormat = format; filters = [shadow]; text = str; }; return (txt); } public function ghcjb(_arg1:Event):void{ if (_arg1.target != stage.focus){ chat.inbox.alpha = 0.5; }; } public function sendover(_arg1:Event):void{ sendtext.setTextFormat(underline); onsend = true; } public function overlay(_arg1:int){ var ioErrorHandler:Function; var imgloading:Function; var imgLoaded2:Function; var b = _arg1; ioErrorHandler = function (_arg1:IOErrorEvent):void{ removeChild(overprogress); overoff(); }; imgloading = function (_arg1:ProgressEvent):void{ overprogresstext.text = (((_arg1.bytesLoaded + " of ") + _arg1.bytesTotal) + " bytes"); }; imgLoaded2 = function (_arg1:Event):void{ ondown = false; removeChild(overprogress); mover.addChild(pictLdr2.content); pictLdr2.content.y = 25; filename.text = file[b]; mover.addChild(filenamebox); download.spr.x = (filename.textWidth + 10); mover.addChild(download.spr); if ((mover.width + border) < stage.stageWidth){ mover.x = Math.ceil(((stage.stageWidth - mover.width) / 2)); } else { mover.x = (-(((mouseX / stage.stageWidth) * ((mover.width + (border * 2)) - stage.stageWidth))) + border); }; if ((mover.height + border) < stage.stageHeight){ mover.y = Math.ceil(((stage.stageHeight - mover.height) / 2)); } else { mover.y = (-(((mouseY / stage.stageHeight) * ((mover.height + (border * 2)) - stage.stageHeight))) + border); }; stage.addEventListener(MouseEvent.MOUSE_MOVE, moveit); }; ondisplay = b; stageoff(); blurit(); addChild(square); addChild(mover); stage.addEventListener(MouseEvent.MOUSE_DOWN, overclick); pictURLReq2 = new URLRequest(((dir + "img/") + file[b])); pictLdr2.load(pictURLReq2); overprogresstext.text = ""; overprogress.x = ((stage.stageWidth / 2) - 50); overprogress.y = (stage.stageHeight / 2); addChild(overprogress); pictLdr2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler); pictLdr2.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, imgloading); pictLdr2.contentLoaderInfo.addEventListener(Event.COMPLETE, imgLoaded2); } function frame2(){ stop(); loader = new URLLoader(); whole = new Array(); req = new URLRequest((dir + "request.php?block=5")); loader.load(req); loader.addEventListener(Event.COMPLETE, hand); } function frame1(){ stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; dir = new String(); if (test){ dir = "http://localhost/~zareste/guider/preg/"; } else { if (loaderInfo.parameters.grid == "exp"){ dir = "http://zareste.com/preg/"; txt.text = ("The Expansion Grid\n\n" + txt.text); } else { dir = "http://zareste.com/grid/"; txt.text = ("The Image Grid\n\n" + txt.text); }; }; } function frame3(){ stop(); space = 0x2000; spacex = space; spacey = space; screenx = 0; screeny = 0; over = false; added = new Array(); onscreen = new Array(); img = new Array(); box = new Array(); adding = false; so = SharedObject.getLocal("application-name"); stagezoom = 1; filecount = 0; raw = raw2.split(";"); raw3 = new Array(); file = new Array(); posx = new Array(); posy = new Array(); imip = new Array(); pass = new Array(); i = 0; while (i < raw.length) { raw3 = raw[i].split(",", 30); file[i] = raw3[0]; posx[i] = raw3[1]; posy[i] = raw3[2]; if (raw3[1] > rightmost){ rightmost = raw3[1]; }; if (raw3[2] > downmost){ downmost = raw3[2]; }; added[i] = false; i++; }; i = (file.length - 1); while (i >= 0) { i2 = 0; while (i2 < file.length) { if (((((!((i2 == i))) && ((difference(posx[i2], posx[i]) < ((stage.stageWidth / 2) - 5))))) && ((difference(posy[i2], posy[i]) < ((stage.stageHeight / 2) - 5))))){ screenx = (posx[i] - (stage.stageWidth / 2)); screeny = (posy[i] - (stage.stageHeight / 2)); trace(file[i2]); i = -1; break; }; i2++; }; i--; }; lmousex = mouseX; lmousey = mouseY; imgisdown = false; imgborder = 0; blur = new BlurFilter(); var _local2 = blur; with (_local2) { blurX = 7; blurY = 7; quality = 1; }; hugeblur = new BlurFilter(); _local2 = hugeblur; with (_local2) { blurX = 20; blurY = 20; quality = 2; }; shadow = new DropShadowFilter(); shadow.distance = 0; shadow.angle = 25; shadow.strength = 1.2; glow = new GlowFilter(); _local2 = glow; with (_local2) { blurX = 12; blurY = 12; color = 0xFFFFFF; }; oform = new TextFormat(); _local2 = oform; with (_local2) { color = 0; size = 18; font = "Arial"; bold = true; }; keycode = new Array(); elisten = false; stage.addEventListener(KeyboardEvent.KEY_UP, keyup); stage.addEventListener(KeyboardEvent.KEY_DOWN, key); format = new TextFormat(); _local2 = format; with (_local2) { color = 0xFFFFFF; size = 15; font = "Arial"; bold = true; }; format.underline = false; right = new TextFormat(); right.align = "right"; underline = new TextFormat(); underline.underline = true; unbold = new TextFormat(); unbold.bold = false; mytext = new TextField(); mytext.antiAliasType = AntiAliasType.ADVANCED; mytext.selectable = false; mytext.mouseEnabled = true; mytext.defaultTextFormat = format; mytext.filters = [shadow]; map = new Sprite(); mapzoom = 0.4; hrtgd = (128 * mapzoom); inmap = new Shape(); mapsquares = new Array(); mapbit = new BitmapData((hrtgd + 1), (hrtgd + 1), false, 5793154); _local2 = inmap.graphics; with (_local2) { lineStyle(1, 7898530); lineTo(0, hrtgd); lineTo(hrtgd, hrtgd); lineTo(hrtgd, 0); lineTo(0, 0); }; mapbit.draw(inmap); i = 0; while (i < file.length) { mapsquares[i] = new Bitmap(mapbit); mapsquares[i].x = Math.floor((posx[i] * mapzoom)); mapsquares[i].y = Math.floor((posy[i] * mapzoom)); map.addChild(mapsquares[i]); i++; }; if (so.data.map == null){ so.data.map = 1; }; if (so.data.map == 1){ addChild(map); mapon = true; dismap = makelink("disable map"); } else { dismap = makelink("enable map"); }; dismap.spr.x = (stage.stageWidth - 200); addChild(dismap.spr); dismap.spr.addEventListener(MouseEvent.MOUSE_DOWN, jkfhjhfjh); keyjump = 10; sendit = new Sprite(); sendtext = new TextField(); sendit.addChild(sendtext); _local2 = sendtext; with (_local2) { antiAliasType = AntiAliasType.ADVANCED; autoSize = TextFieldAutoSize.CENTER; selectable = false; mouseEnabled = true; defaultTextFormat = format; filters = [shadow]; text = "add a picture\n<spacebar>"; }; sendtext.setTextFormat(right); sendit.x = ((stage.stageWidth - sendtext.textWidth) - 5); addChild(sendit); sendit.addEventListener(MouseEvent.MOUSE_OVER, sendover); sendit.addEventListener(MouseEvent.MOUSE_OUT, sendout); mess = new TextField(); _local2 = mess; with (_local2) { antiAliasType = AntiAliasType.ADVANCED; autoSize = TextFieldAutoSize.LEFT; defaultTextFormat = format; selectable = false; mouseEnabled = true; filters = [shadow]; }; mess.y = 50; red = new ColorTransform(20, 0.5, 5); neutral = new ColorTransform(1, 1, 1); cover = new Sprite(); coversquare = new Shape(); coversquare.graphics.beginFill(0, 0); coversquare.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight); coversquare.graphics.endFill(); cover.buttonMode = true; cover.useHandCursor = false; cover.addChild(coversquare); boxborder = new Array(); addbox = new Sprite(); addsquare = new Shape(); addbox.x = mouseX; addbox.y = mouseY; addbox.addChild(addsquare); _local2 = addsquare.graphics; with (_local2) { lineStyle(1, 8978363); lineTo(128, 0); lineTo(128, 128); lineTo(0, 128); lineTo(0, 0); lineTo(128, 128); moveTo(0, 128); lineTo(128, 0); }; collide = false; boxed = new Array(); stageon(); smmove = 0.3; inc = 2; maxmove = 3; boxfade = new Array(); boxfadeout = new Array(); blurred = new Array(); border = 80; square = new Shape(); square.graphics.beginFill(68, 0.4); square.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight); square.graphics.endFill(); pictLdr2 = new Loader(); mover = new Sprite(); filenamebox = new Sprite(); filename = maketext(); filename.selectable = true; stopclicks(filename); filenamebox.addChild(filename); overprogress = new Sprite(); overprogresstext = maketext(); overprogresstext.filters = []; overprogress.addChild(overprogresstext); download = makelink("[download]"); download.spr.addEventListener(MouseEvent.MOUSE_DOWN, downclick); updatepos(true); usercount = maketext(); usercount.y = (stage.stageHeight - 20); usercount.text = ("users: " + whole[5]); addChild(usercount); usercount.visible = false; mtimer = new Timer(10000, 0); mtimer.addEventListener(TimerEvent.TIMER, mtimerh); mtimer.start(); if ((((so.data.intro == null)) && ((loaderInfo.parameters.grid == "exp")))){ intro = new Sprite(); iblack = new Sprite(); igraph = new Shape(); itext = new TextField(); _local2 = itext; with (_local2) { antiAliasType = AntiAliasType.ADVANCED; autoSize = TextFieldAutoSize.LEFT; wordWrap = true; multiline = true; selectable = false; defaultTextFormat = format; width = 450; text = "Zareste -\n This is the Expansion Grid, made for expansion-related pictures. Click and drag to move around. Here, you can add pictures of pregnant ladies, drawings of inflation, or anything expansion-related. No registration. It's in beta mode right now, so if you see any bugs or have any ideas, you can e-mail me at oryan@zareste.com.\n The idea behind The Grid is you can put related pictures close to each other instead of sorting by categories or directories or tags. For example we can put live pregnancy pictures in one area, drawings in another area, and so forth. Group by size or anything you want. I'll leave it to you.\n This board is based on the Grid system I've been coding and planning for a while. I have big plans for the system, and figured an Expansion Grid would be a nice way to test it."; }; itext.x = 25; itext.y = 25; _local2 = igraph.graphics; with (_local2) { beginFill(6766972); drawRect(0, 0, (itext.textWidth + 50), (itext.textHeight + 50)); endFill(); }; _local2 = iblack; with (_local2) { addChild(igraph); filters = [hugeblur]; cacheAsBitmap = true; }; iclose = makelink(); iclose.txt.text = "close"; iclose.spr.x = ((iblack.width - iclose.txt.textWidth) - 30); iclose.spr.y = 10; iclose.spr.addEventListener(MouseEvent.MOUSE_DOWN, icloser); stage.addEventListener(MouseEvent.MOUSE_MOVE, imover); intro.addChild(iblack); intro.addChild(itext); intro.addChild(iclose.spr); centerx(intro); centery(intro); iposx = (screenx + intro.x); iposy = (screeny + intro.y); addChild(intro); }; chat = {intext:new TextField(), inname:new TextField(), inbox:new Sprite(), box:new Sprite(), txt:maketext(), size:150, sending:new String(), nam:new Array(), messages:new Array(), codes:new Array(), disable:makelink()}; if (so.data.chat == null){ chat.disable.txt.text = "disable chat"; } else { chat.disable.txt.text = "enable chat"; }; chat.disable.spr.addEventListener(MouseEvent.MOUSE_DOWN, dfghgdh); _local2 = chat; with (_local2) { box.y = (stage.stageHeight - chat.size); var _local3 = intext; with (_local3) { antiAliasType = AntiAliasType.ADVANCED; width = 300; type = TextFieldType.INPUT; wordWrap = false; maxChars = 90; text = "chat"; height = 17; addEventListener(MouseEvent.MOUSE_DOWN, sdfvdg); }; }; _local2 = chat; with (_local2) { _local3 = inname; with (_local3) { antiAliasType = AntiAliasType.ADVANCED; width = 70; type = TextFieldType.INPUT; wordWrap = false; maxChars = 15; if (((!((so.data.name == null))) && (!((so.data.name == ""))))){ text = so.data.name; }; height = 17; }; intext.x = (chat.inname.width + 5); inbox.y = (chat.size - 17); _local3 = inbox; with (_local3) { graphics.beginFill(0xFFFFFF, 1); graphics.drawRect(chat.inname.x, chat.inname.y, chat.inname.width, chat.inname.height); graphics.endFill(); graphics.beginFill(0xFFFFFF, 1); graphics.drawRect(chat.intext.x, chat.intext.y, chat.intext.width, chat.intext.height); graphics.endFill(); }; inbox.alpha = 0.5; }; stopclicks(chat.intext); stopclicks(chat.inname); addChild(chat.box); chat.box.addChild(chat.txt); chat.box.addChild(chat.inbox); chat.inbox.addChild(chat.intext); chat.inbox.addChild(chat.inname); chat.txt.width = chat.box.width; addChild(chat.disable.spr); usercount.x = (chat.inbox.width + 10); chat.disable.spr.x = ((chat.box.width + usercount.width) + 30); chat.disable.spr.y = (stage.stageHeight - chat.disable.spr.height); chat.inbox.addEventListener(MouseEvent.MOUSE_OVER, fxgh); chat.inbox.addEventListener(MouseEvent.MOUSE_OUT, ghcjb); chat.inbox.addEventListener(FocusEvent.FOCUS_OUT, cvhnbv); chat.inbox.addEventListener(FocusEvent.FOCUS_IN, xfhfg); removeChild(usermouse); coordclick = makelink("show coordinates"); coordclick.spr.addEventListener(MouseEvent.MOUSE_DOWN, cxgvb547); addChild(coordclick.spr); coords = maketext(); coords.y = 20; if (so.data.coord == 1){ addChild(coords); }; helpon = "Click and drag to move\nClick an image to view it\nPress 'h' to hide these Help messages"; helpoff = "Press 'h' for help"; helptext = maketext(); helptext.autoSize = TextFieldAutoSize.RIGHT; if (so.data.help == 1){ helptext.text = helpoff; } else { helptext.text = helpon; }; alignhelp(); addChild(helptext); } public function stagemouse(_arg1:MouseEvent):void{ if ((((((((mouseX > 0)) && ((mouseX < stage.stageWidth)))) && ((mouseY > 0)))) && ((mouseY < stage.stageHeight)))){ xmove = (mouseX - lmousex); ymove = (mouseY - lmousey); if (xmove > maxmove){ xmove = maxmove; } else { if (xmove < -(maxmove)){ xmove = -(maxmove); }; }; if (ymove > maxmove){ ymove = maxmove; } else { if (ymove < -(maxmove)){ ymove = -(maxmove); }; }; screenx = (screenx + xmove); screeny = (screeny + ymove); lmousex = mouseX; lmousey = mouseY; updatepos(); }; } public function hand(_arg1:Event){ whole = loader.data.split("\n"); raw2 = whole[0]; ip = whole[1]; browser = whole[2]; time = whole[3]; host = whole[4]; loader.removeEventListener(Event.COMPLETE, hand); nextFrame(); } public function mtimerh(_arg1:Event):void{ update(); } public function togglehelp(){ if (so.data.help == null){ helptext.text = helpoff; so.data.help = 1; } else { helptext.text = helpon; so.data.help = null; }; alignhelp(); } public function icloseit(){ so.data.intro = 1; stage.removeEventListener(MouseEvent.MOUSE_MOVE, imover); removeChild(intro); } public function rep(_arg1:String, _arg2:String, _arg3:String):String{ var _local4:*; _local4 = 0; while (_local4 < 40) { if (_arg1.indexOf(_arg2) != -1){ _arg1 = _arg1.replace(_arg2, _arg3); }; _local4++; }; return (_arg1); } public function moveit(_arg1:Event):void{ if ((((((((mouseX > 0)) && ((mouseX < stage.stageWidth)))) && ((mouseY > 0)))) && ((mouseY < stage.stageHeight)))){ if ((mover.width + border) > stage.stageWidth){ mover.x = (-(((mouseX / stage.stageWidth) * ((mover.width + (border * 2)) - stage.stageWidth))) + border); }; if ((mover.height + border) > stage.stageHeight){ mover.y = (-(((mouseY / stage.stageHeight) * ((mover.height + (border * 2)) - stage.stageHeight))) + border); }; }; } public function update(){ var req2:URLRequest; var variables:URLVariables; var ldr:URLLoader; var mcomplete:Function; mcomplete = function (_arg1:Event):void{ var _local2:URLLoader; var _local3:Array; var _local4:Array; var _local5:*; var _local6:*; _local2 = URLLoader(_arg1.target); _local3 = _local2.data.split("\n"); time = _local3[0]; usercount.visible = true; usercount.text = ("users: " + _local3[2]); if (chat.sending != ""){ chat.intext.text = ""; chat.intext.type = TextFieldType.INPUT; chat.inname.type = TextFieldType.INPUT; chat.sending = ""; }; if (_local3[3] != ""){ _local5 = _local3[3].split(";"); i = 0; while (i < _local5.length) { _local6 = _local5[i].split(","); if (_local6[0] == ""){ chat.nam.push("Anon"); } else { chat.nam.push(_local6[0]); }; chat.messages.push(_local6[1]); chat.codes.push(_local6[2]); chatupdate(); i++; }; }; _local3 = _local3[1].split(";"); _local4 = new Array(); i = 0; while (i < _local3.length) { _local4 = _local3[i].split(","); file.push(_local4[0]); posx.push(_local4[1]); posy.push(_local4[2]); added.push(false); i++; }; updatepos(true); mtimer.start(); }; mtimer.stop(); mtimer.reset(); req2 = new URLRequest((dir + "request.php")); req2.method = URLRequestMethod.POST; variables = new URLVariables(); variables.mytime = time; variables.ip = ip; if (chat.inname.text == "name"){ variables.myname = ""; } else { variables.myname = chat.inname.text; so.data.name = chat.inname.text; }; if (chat.sending != ""){ variables.chat = chat.sending; chat.intext.text = "sending..."; chat.intext.type = TextFieldType.DYNAMIC; chat.inname.type = TextFieldType.DYNAMIC; chat.nam.push(variables.myname); chat.messages.push(chat.sending); chat.codes.push(" "); chatupdate(); }; req2.data = variables; ldr = new URLLoader(); ldr.load(req2); ldr.addEventListener(Event.COMPLETE, mcomplete); } public function secondbox(_arg1:int){ boxadd(_arg1); } public function cancelall(){ sendtext.text = "add a picture\n<spacebar>"; adding = false; removeChild(addbox); i = 0; while (i < boxed.length) { box[boxed[i]].removeChildAt(0); i++; }; stage.removeEventListener(KeyboardEvent.KEY_DOWN, key2); stage.removeEventListener(MouseEvent.MOUSE_MOVE, addmove); stage.removeEventListener(MouseEvent.MOUSE_UP, addup); mtimer.stop(); mtimer.reset(); } public function updatepos(_arg1:Boolean=false){ var _local2:*; var _local3:*; if (screenx < 0){ screenx = 0; } else { if (screenx > rightmost){ screenx = rightmost; }; }; if (screeny > downmost){ screeny = downmost; } else { if (screeny < 0){ screeny = 0; }; }; if (mapon){ _local2 = ((stage.stageWidth - (stage.stageWidth * mapzoom)) * mapzoom); _local3 = ((stage.stageHeight - (stage.stageHeight * mapzoom)) * mapzoom); map.x = (_local2 - (screenx * mapzoom)); map.y = (_local2 - (screeny * mapzoom)); }; if ((((((((((screenx < screenxblock)) || ((screenx > (screenxblock + stage.stageWidth))))) || ((screeny < screenyblock)))) || ((screeny > (screenyblock + stage.stageHeight))))) || ((_arg1 == true)))){ onscreen.length = 0; screenxblock = (screenx - (stage.stageWidth / 2)); screenyblock = (screeny - (stage.stageHeight / 2)); if (screenxblock < 0){ screenxblock = 0; }; if (screenyblock < 0){ screenyblock = 0; }; i = 0; while (i < file.length) { if ((((((((posx[i] > screenxblock)) && ((posy[i] > screenyblock)))) && ((posx[i] < (screenxblock + (stage.stageWidth * 2)))))) && ((posy[i] < (screenyblock + (stage.stageHeight * 2)))))){ onscreen.push(i); if (added[i] == false){ boxadd(i); }; }; i++; }; }; i = 0; while (i < onscreen.length) { box[onscreen[i]].x = ((posx[onscreen[i]] * stagezoom) - screenx); box[onscreen[i]].y = ((posy[onscreen[i]] * stagezoom) - screeny); i++; }; if (coords != null){ if (contains(coords)){ coords.text = ((("x-" + screenx) + "\ny-") + screeny); }; }; } public function linkout(_arg1:Event):void{ _arg1.currentTarget.getChildAt(0).setTextFormat(format); } public function fxgh(_arg1:Event):void{ chat.inbox.alpha = 1; } public function drag(_arg1:MouseEvent):void{ if (onsend == true){ if (adding == false){ addpic(); } else { cancelall(); }; } else { downx = mouseX; downy = mouseY; if (adding == false){ stage.addEventListener(MouseEvent.MOUSE_MOVE, stagemove); stage.removeEventListener(MouseEvent.MOUSE_MOVE, stagemouse); stage.addEventListener(MouseEvent.MOUSE_UP, noDrag); }; lmousex = mouseX; lmousey = mouseY; movestage = true; }; } public function keyup(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == 38){ keycode[0] = false; }; if (_arg1.keyCode == 39){ keycode[1] = false; }; if (_arg1.keyCode == 40){ keycode[2] = false; }; if (_arg1.keyCode == 37){ keycode[3] = false; }; if (((((((!(keycode[0])) && (!(keycode[1])))) && (!(keycode[2])))) && (!(keycode[3])))){ removeEventListener(Event.ENTER_FRAME, eframe); elisten = false; }; } public function overclick(_arg1:Event):void{ if (ondown == false){ mover.removeChild(filenamebox); mover.removeChild(download.spr); mover.removeChild(pictLdr2.content); pictLdr2 = new Loader(); removeChild(mover); overoff(); }; } public function difference(_arg1:int, _arg2:int){ if (_arg1 > _arg2){ return ((_arg1 - _arg2)); }; return ((_arg2 - _arg1)); } public function addpic():void{ boxed.length = 0; sendtext.text = "cancel\n<spacebar>"; addChild(addbox); adding = true; i = 0; while (i < onscreen.length) { boxborder[onscreen[i]] = new Shape(); var _local2 = boxborder[onscreen[i]].graphics; with (_local2) { lineStyle(1, 8978363); lineTo(128, 0); lineTo(128, 128); lineTo(0, 128); lineTo(0, 0); }; box[onscreen[i]].addChildAt(boxborder[onscreen[i]], 0); boxed.push(onscreen[i]); i++; }; colcheck(); stage.addEventListener(MouseEvent.MOUSE_MOVE, addmove); stage.addEventListener(KeyboardEvent.KEY_DOWN, key2); stage.addEventListener(MouseEvent.MOUSE_UP, addup); } public function stageon(){ stage.addEventListener(KeyboardEvent.KEY_UP, keyup); stage.addEventListener(KeyboardEvent.KEY_DOWN, key); stage.addEventListener(MouseEvent.MOUSE_DOWN, drag); stage.addEventListener(MouseEvent.MOUSE_MOVE, stagemouse); } public function xfhfg(_arg1:Event):void{ chat.inbox.alpha = 1; } public function stageoff(){ stage.removeEventListener(KeyboardEvent.KEY_UP, keyup); stage.removeEventListener(KeyboardEvent.KEY_DOWN, key); stage.removeEventListener(MouseEvent.MOUSE_DOWN, drag); stage.removeEventListener(MouseEvent.MOUSE_MOVE, stagemouse); } public function key2(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == 32){ cancelall(); }; } public function chatupdate():void{ chat.txt.text = ""; i = 1; while ((((i <= chat.messages.length)) && ((i <= 7)))) { if (chat.messages[(chat.messages.length - i)] != null){ chat.messages[(chat.messages.length - i)] = rep(chat.messages[(chat.messages.length - i)], "%c", ","); chat.messages[(chat.messages.length - i)] = rep(chat.messages[(chat.messages.length - i)], "%s", ";"); chat.txt.text = (chat.txt.text + (((chat.nam[(chat.messages.length - i)] + ": ") + chat.messages[(chat.messages.length - i)]) + "\n")); }; i++; }; } public function downclick(_arg1:Event):void{ navigateToURL(new URLRequest(((dir + "dl.php?u=") + file[ondisplay])), "_self"); } public function jkfhjhfjh(_arg1:Event):void{ if (dismap.txt.text == "disable map"){ dismap.txt.text = "enable map"; removeChild(map); mapon = false; so.data.map = 0; } else { dismap.txt.text = "disable map"; addChildAt(map, 0); mapon = true; so.data.map = 1; updatepos(); }; } public function key(_arg1:KeyboardEvent):void{ if ((((stage.focus == chat.intext)) || ((stage.focus == chat.inname)))){ if (_arg1.keyCode == 13){ chat.sending = chat.intext.text; update(); }; } else { if (_arg1.keyCode == 72){ togglehelp(); }; if (_arg1.keyCode == 189){ stagezoom = (stagezoom / 2); updatezoom(); }; if ((((_arg1.keyCode > 36)) && ((_arg1.keyCode < 41)))){ if (!elisten){ addEventListener(Event.ENTER_FRAME, eframe); elisten = true; }; if (_arg1.keyCode == 38){ keycode[0] = true; }; if (_arg1.keyCode == 39){ keycode[1] = true; }; if (_arg1.keyCode == 40){ keycode[2] = true; }; if (_arg1.keyCode == 37){ keycode[3] = true; }; }; if ((((_arg1.keyCode == 32)) && ((adding == false)))){ addpic(); }; }; } public function stopclicks(_arg1):void{ _arg1.addEventListener(MouseEvent.MOUSE_OVER, stopover); _arg1.addEventListener(MouseEvent.MOUSE_OUT, stopout); } public function unblur(){ i = 0; while (i < blurred.length) { box[blurred[i]].filters = []; i++; }; } public function noDrag(_arg1:MouseEvent):void{ stage.removeEventListener(MouseEvent.MOUSE_MOVE, stagemove); stage.addEventListener(MouseEvent.MOUSE_MOVE, stagemouse); stage.removeEventListener(MouseEvent.MOUSE_UP, noDrag); movestage = false; if (ondown == false){ if (adding == false){ if ((difference(mouseX, downx) + difference(mouseY, downy)) < 4){ i = 0; while (i < onscreen.length) { if ((((box[onscreen[i]].x > (mouseX - 128))) && ((box[onscreen[i]].x < mouseX)))){ if ((((box[onscreen[i]].y > (mouseY - 128))) && ((box[onscreen[i]].y < mouseY)))){ overlay(onscreen[i]); break; }; }; i++; }; }; }; }; } public function centerx(_arg1){ _arg1.x = ((stage.stageWidth / 2) - (_arg1.width / 2)); } public function centery(_arg1){ _arg1.y = ((stage.stageHeight / 2) - (_arg1.height / 2)); } public function sendout(_arg1:Event):void{ sendtext.setTextFormat(format); onsend = false; } public function cvhnbv(_arg1:Event):void{ chat.inbox.alpha = 0.5; } public function makelink(_arg1:String=""):Object{ var _local2:Object; _local2 = {spr:new Sprite(), txt:maketext(_arg1)}; _local2.spr.addChild(_local2.txt); _local2.spr.addEventListener(MouseEvent.MOUSE_OVER, linkover); _local2.spr.addEventListener(MouseEvent.MOUSE_OUT, linkout); stopclicks(_local2.spr); return (_local2); } public function boxadd(_arg1:int){ var pictLdr:Loader; var pictURLReq:URLRequest; var ioErrorHandler:Function; var imgLoaded:Function; var a = _arg1; ioErrorHandler = function (_arg1:IOErrorEvent):void{ }; imgLoaded = function (_arg1:Event):void{ box[a].addChild(pictLdr.content); pictLdr.content.x = (Math.ceil((64 - (box[a].width / 2))) + imgborder); pictLdr.content.y = (Math.ceil((64 - (box[a].height / 2))) + imgborder); box[a].width = (box[a].width * stagezoom); box[a].height = (box[a].height * stagezoom); }; added[a] = true; box[a] = new Sprite(); if (mapon){ addChildAt(box[a], 2); } else { addChildAt(box[a], 0); }; pictLdr = new Loader(); pictURLReq = new URLRequest(((dir + "prev/") + file[a].replace(".png", ".jpg"))); pictLdr.load(pictURLReq); pictLdr.contentLoaderInfo.addEventListener(Event.COMPLETE, imgLoaded); pictLdr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler); } public function addup(_arg1:Event):void{ var imageFilter:FileFilter; var req:URLRequest; var variables:URLVariables; var ref:FileReference; var addcancel:Function; var addselect:Function; var addprogress:Function; var addcomplete:Function; var event = _arg1; if (collide == false){ addcancel = function (_arg1:Event):void{ cancelall(); stageon(); }; addselect = function (_arg1:Event):void{ var event = _arg1; if (ref.size > 1500000){ mess.text = "file must be under 1.5 MB"; cancelall(); } else { lmousex = mouseX; lmousey = mouseY; mess.text = "sending"; centerx(mess); addChild(mess); cancelall(); stageon(); ref.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, addcomplete); ref.addEventListener(ProgressEvent.PROGRESS, addprogress); try { ref.upload(req); } catch(e:ArgumentError) { mess.text = "upload fuckup"; }; }; }; addprogress = function (_arg1:ProgressEvent):void{ if (_arg1.bytesLoaded == _arg1.bytesTotal){ mess.text = "checking file..."; } else { mess.text = ((("sending - " + _arg1.bytesLoaded) + " of ") + _arg1.bytesTotal); }; }; addcomplete = function (_arg1:DataEvent):void{ var myTimer:Timer; var timerHandler:Function; var xcfjhhg:Timer; var xcvhvbcbh:Function; var e = _arg1; if (e.data.length == 2){ timerHandler = function (_arg1:Event):void{ removeChild(mess); }; mess.text = "updating the Grid"; update(); myTimer = new Timer(8000, 1); myTimer.addEventListener(TimerEvent.TIMER, timerHandler); myTimer.start(); } else { xcvhvbcbh = function (_arg1:Event):void{ removeChild(mess); }; mess.text = e.data; centerx(mess); xcfjhhg = new Timer(5000, 1); xcfjhhg.addEventListener(TimerEvent.TIMER, xcvhvbcbh); xcfjhhg.start(); }; }; mtimer.stop(); mtimer.reset(); stageoff(); stage.removeEventListener(MouseEvent.MOUSE_UP, addup); stage.removeEventListener(MouseEvent.MOUSE_MOVE, addmove); imageFilter = new FileFilter("Image Files (*.jpg, *.jpeg, *.gif, *.png)", "*.jpg; *.jpeg; *.gif; *.png"); req = new URLRequest((dir + "request.php")); req.method = URLRequestMethod.POST; variables = new URLVariables(); variables.vx = (addbox.x + screenx); variables.vy = (addbox.y + screeny); variables.ip = ip; req.data = variables; ref = new FileReference(); ref.browse([imageFilter]); ref.addEventListener(Event.CANCEL, addcancel); ref.addEventListener(Event.SELECT, addselect); }; } public function icloser(_arg1:Event):void{ icloseit(); } public function sdfvdg(_arg1:Event):void{ _arg1.currentTarget.text = ""; _arg1.currentTarget.removeEventListener(MouseEvent.MOUSE_DOWN, sdfvdg); } public function collision(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ if ((((((((_arg1 >= (_arg3 - 128))) && ((_arg1 <= (_arg3 + 128))))) && ((_arg2 <= (_arg4 + 128))))) && ((_arg2 >= (_arg4 - 128))))){ return (true); }; return (false); } public function dfghgdh(_arg1:Event):void{ if (so.data.chat == null){ chat.box.visible = false; so.data.chat = 1; chat.disable.txt.text = "enable chat"; } else { chat.box.visible = true; so.data.chat = null; chat.disable.txt.text = "disable chat"; }; } public function colcheck(){ collide = false; i = 0; while (i < onscreen.length) { if (collision((posx[onscreen[i]] - screenx), (posy[onscreen[i]] - screeny), addbox.x, addbox.y)){ collide = true; break; }; i++; }; if (collide){ addbox.transform.colorTransform = red; } else { addbox.transform.colorTransform = neutral; }; if (((addbox.x + screenx) + addbox.width) > spacex){ addbox.x = ((spacex - addbox.width) - screenx); }; if (((addbox.y + screeny) + addbox.height) > spacey){ addbox.y = ((spacey - addbox.height) - screeny); }; } public function alignhelp(){ helptext.x = (stage.stageWidth - helptext.width); helptext.y = ((stage.stageHeight - helptext.height) - 20); helptext.setTextFormat(right); } public function stagemove(_arg1:MouseEvent):void{ imgisdown = false; screenx = (screenx - (mouseX - lmousex)); screeny = (screeny - (mouseY - lmousey)); updatepos(); lmousex = mouseX; lmousey = mouseY; } public function blurit(){ blurred.length = 0; i = 0; while (i < onscreen.length) { box[onscreen[i]].filters = [blur]; blurred.push(onscreen[i]); i++; }; } public function linkover(_arg1:Event):void{ _arg1.currentTarget.getChildAt(0).setTextFormat(underline); } public function stopover(_arg1:Event):void{ ondown = true; } public function addmove(_arg1:Event):void{ addbox.x = mouseX; addbox.y = mouseY; colcheck(); } public function imover(_arg1:Event):void{ intro.x = (iposx - screenx); intro.y = (iposy - screeny); if ((((((((intro.x > stage.stageWidth)) || ((intro.y > stage.stageHeight)))) || (((intro.x + intro.width) < 0)))) || (((intro.y + intro.height) < 0)))){ icloseit(); }; } public function cxgvb547(_arg1:Event):void{ if (contains(coords)){ removeChild(coords); so.data.coord = null; coordclick.txt.text = "show coordinates"; } else { addChild(coords); so.data.coord = 1; coordclick.txt.text = "hide coordinates"; }; } } }//package image_fla
Section 2
//usermouse_1 (image_fla.usermouse_1) package image_fla { import flash.display.*; public dynamic class usermouse_1 extends MovieClip { public function usermouse_1(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package image_fla

Library Items

Symbol 1 FontUsed by:2 3
Symbol 2 EditableTextUses:1Used by:Timeline
Symbol 3 TextUses:1Used by:Timeline
Symbol 4 GraphicUsed by:5
Symbol 5 MovieClip {image_fla.usermouse_1}Uses:4Used by:Timeline

Instance Names

"txt"Frame 1Symbol 2 EditableText
"usermouse"Frame 3Symbol 5 MovieClip {image_fla.usermouse_1}

Special Tags

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




http://swfchan.com/9/43559/info.shtml
Created: 9/5 -2019 09:33:46 Last modified: 9/5 -2019 09:33:46 Server time: 22/12 -2024 01:50:34