With an embeded .swf file (300 byte). The Flash API is bridged to Javascript using:
FS Commands
TCallLabel
Look at the sourcecode of this file to see how it works! Pretty easy!
function SocketConnect(host,port){}
function SocketSend(data){}
function SocketClose(){}
function SocketOnInit(){}
function SocketOnConnect(success){}
function SocketOnData(data){}
function SocketOnClose(){}
|