Is there anyway to get the AS3 libs onto flash 8 or do i have
to get flash cs3?
Im trying to find a simple AS to send a message to a socks
server thats made in vb6. Basicly i need to know how to connect to
it and to send the message.
i have found numerous ways to do it but its all in AS3...like
this one.
package {
import flash.display.Sprite;
import flash.events.*;
import flash.net.Socket;
import flash.util.trace;
public class test_sockets extends Sprite{
public var host:String = '
http://127.0.0.1';
public var port:uint = 80;
public function test_sockets(){
super(host,port);
var conn:Socket = new Socket();
conn.connect(host,port);
conn.addEventListener(EventType.CONNECT,connectListener);
}
public function connectListener(event:Event) {
trace(event.type); // output: connect
}
}
}
Thanks in advance if you can help me. If not well thanks for
reading this. Good Day.