Hi Jalmari,
Jalmari Raippalinna schrieb:
> As I finally got into testing AMF3, there is thing to I've noticed that
> is not supported,
> i have classes that implement IExternalizable, with writeExternal
> that looks like this:
>
> public function writeExternal(output:IDataOutput):void
> {
> trace("SERIALIZING SIMPLE OBJECT!");
> output.writeUTF("DummyAction");
> output.writeUTF("DummyType");
> output.writeObject(new Object());
> output.writeObject(new Object());
> }
>
> First, the remote class needs to be in bin directory of the server,
> otherwise I get ClassNotFoundException, having resolved that I got
> following error from this serialization:
[...]
> ps. How can I get the java classes to use custom deserialization /
> serialization?
support for IExternalizable has been added in r1668. Your Java classes
need to implement the interface org.red5.server.io.amf3.IExternalizable
so they can serialize and deserialize themselves.
See the "echo" webapp and the file "swf/DEV_Source/echotest.mxml" for
an example.
Joachim
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org