This content has been marked as final. Show 3 replies
the RemoteClass and the AS Object must be identical and have an exact property match. Any deviation will cause the processor to revert back to Object instead of the Customer class due to inconsistancies that are there
Yeah they are identical and it serializes perfectly when I return a Customer. But when I return a Customer (array), i just get Object's, not Customer's on the AS side.
Is there a certain type of array/collection I need to use or something?
Doh! Ok I solved my own problem. This might be a gotcha for others. Originally, I had code like this in the result handler for my remoteobject:
var cust:Customer = Customer(event.result);
But when I was testing returning an array of Customer objects, I changed my code to this just to see what was coming back:
When I did this, I removed any references to my Customer class so it did not get compiled. Once I added in a dummy reference to my Customer class, all worked well again.