|
Found it out myself! Before serializing the instance you have
to register the class with an alias. Than everything is perfect. Like so: flash.net.registerClassAlias("de.benz.test",Test); var customClass:Test=new Test(); customClass.test="hallo"; out.text+="\n"+typeof customClass; byteObj.writeObject(customClass); socket.writeBytes( byteObj ); socket.flush(); cooolllll! Von:
[email protected] [mailto:[EMAIL PROTECTED] Im Auftrag von Benjamin Dobler Hi, i started playing with the Socket Class and Byte Arrays. So
far i`ve a Java Socket Server that sends all the Byte Data back to all
listening clients. One client sends for example an array. This comes perfectly
back too all connected clients. All the data is still intact and i can easily
find out about the Thanx Benz
-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
__,_._,___ |
- AW: [flexcoders] ByteArray - Custom Class Benjamin Dobler
- AW: [flexcoders] ByteArray - Custom Class Benjamin Dobler

