I have an mxml form that act like a view with controls bound to an 
Model tag.

Now I want to pop this up and edit an object.

But I cant see a way to "set" my object into the Model even though they 
have the same structure.

I know the Model is just an ObjectProxy which wraps a plain object, but 
that object variable is declared private, and the property is read only 
and therefore cant be set.

I could off course copy in every property one by one, and also when 
finished copy every property out but that seems overkill.

Another idea I had was to create my own ObjectProxy class with the 
object var public so I could access it but that prevents me from 
defining the structure in the mxml.

It seem such an obvious thing you would want to do with a Model that 
there must surely be a simple way to do this, so whats the solution?

tks

Reply via email to