Unfortunately the player wont do data type conversion when deserializing the
contents of an object returned via remoting.
You have to make sure your types are right on the server so that when the
remoting gateway constructs the amf data to send to flash it has the correct
types already inside.
Obviously this is more of a pain from something like PHP than say Java as PHP
has a much looser type system.
For me the beauty of remoting is that you *do* get the datatypes that you create
on the server sent to you in flash.
I think the other issue you are running into is that when the player creates the
actionscript objects from the remoting data it populates the object *before* it
runs the constructor.
This means that it doesnt care about any getters / setters and you have to be
extra careful if you do anything in the constructor or are expecting parameters
to your constructor.
Julius Turnmire wrote:
Ok, I've got it working as advertised. I'm using VO's and my returned
values are being mapped to my VO classes. But the problem is how
they're mapped.
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com