Skip navigation
Currently Being Moderated

Client - Server socket in AS3

Jan 11, 2012 3:43 AM

Tags: #flash #as3 #3.0 #netstream #as3.0

hi every body


i just wana an exiplinantion about socket in AS3

this a java code for socket communication


Server Side
Client Side


serversocket s  = new ServerSocket("ip",port);

Socket client;

while (true)


client = s.accept();

DataInptStream d =client.get ...etc

DataOutptStrm o=client.getoutpt....etc


write methods


Socket client=new socket(port);

Dataoutptstrm SendtoServer=client.getoutpt...







i asked for an implementation for that , i read about but i couldn't understand how could it be

also if i have a java listeneer on a port,, could as3 socket connect to that port, i ment does dataoutpt streams in java will work with as3 sockets???


More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points