Sending a class from Flash Actionscript 3 to Flash Media Server 3 and accessing/editing/updating private variables on the server side!

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

Advertisements

2 responses to “Sending a class from Flash Actionscript 3 to Flash Media Server 3 and accessing/editing/updating private variables on the server side!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: