In this example we have a client side class MyClass which contains public properties and importantly a private property accessed by a public getter and setter.
We create an instance on the client side send it down the wire via our NetConnection to Flash Media Server 3 (FMS3).
FMS3 then changes the public and private properties and returns the instance plus a totally new one back to our client where they both get deserialized and correctly instantiated… Wicked!
Wo hoo
Here’s a zipped up solution for anyone interested: example files
Advertisement
October 2nd, 2008 at 4:08 am
Wicked ! And you can, with no doubt, do the same on the client side by writing yourself AMF3 to a ByteArray and deserialize it.
October 2nd, 2008 at 10:31 am
My example also works with AMF0 so you can use either!