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

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

1227470370540.swf

This is the info page for
Flash #43998

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


Text
<p align="left"></p>

ActionScript [AS3]

Section 1
//SocketExample (SocketExample) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.errors.*; import flash.net.*; import flash.system.*; import flash.ui.*; import flash.utils.*; public class SocketExample extends Sprite { public const VERSION:int = 1; public var my_txt:TextField; public function SocketExample(){ Security.loadPolicyFile("xmlsocket://www.0chan.ru:1843"); sock = new Socket(); sock.addEventListener(Event.CONNECT, connected); sock.addEventListener(Event.CLOSE, disconnected); sock.addEventListener(IOErrorEvent.IO_ERROR, ioerror); sock.addEventListener(ProgressEvent.SOCKET_DATA, read); var _local1:uint = setInterval(temp, 5000); connect(); } private function connect(){ sock.connect("www.0chan.ru", 1984); } private function ioerror(){ my_txt.htmlText = (my_txt.htmlText + "Какаято хуита!"); } private function temp():void{ chars = "ABCDEFGHGKOPQRSTUVWXYZ123078934\\'&&&7777723234"; txt = ""; tmp_ch = Math.round((100 * Math.random())); i = 0; while (i < tmp_ch) { tmp = Math.round((chars.length * Math.random())); txt = (txt + chars.charAt(tmp)); i++; }; trace(txt); sendString(txt); } public function read(_arg1:ProgressEvent){ var _local2:int; var _local3:int; var _local4:int; _local2 = 0; while (_arg1.bytesLoaded > _local2) { _local3 = sock.readUnsignedShort(); _local4 = sock.readByte(); switch (_local4){ case 1: my_txt.htmlText = (my_txt.htmlText + sock.readUTFBytes(_local3)); break; case 2: my_txt.htmlText = ((my_txt.htmlText + "Online: ") + sock.readUTFBytes(_local3)); break; case 3: my_txt.htmlText = (my_txt.htmlText + sock.readUTFBytes(_local3)); break; default: break; }; _local2 = (_local2 + ((_local3 + 2) + 1)); _local3 = 0; }; } public function sendString(_arg1:String){ _arg1 = _arg1.substr(0, 0xFF); sock.writeUTFBytes(_arg1); sock.flush(); } public function connected(_arg1:Event){ my_txt.htmlText = (my_txt.htmlText + "Подключились"); sendString((("<handshake version=" + VERSION) + "/>")); } public function disconnected(_arg1:Event){ my_txt.htmlText = (my_txt.htmlText + "Отключились"); } } }//package

Library Items

Symbol 1 GraphicUsed by:Timeline
Symbol 2 FontUsed by:3
Symbol 3 EditableTextUses:2Used by:Timeline

Instance Names

"my_txt"Frame 1Symbol 3 EditableText

Special Tags

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




http://swfchan.com/9/43998/info.shtml
Created: 8/5 -2019 11:57:53 Last modified: 8/5 -2019 11:57:53 Server time: 30/04 -2024 04:15:18