Hello... We've just run into a problem... Has anyone else come across this before?
We're making HTTP Service calls and we're getting back nested data. We have set the resultFormat="e4x" which we then parse into known Object types, such a IContactData, IInvoiceDetails... The Problem: With some service calls, the data returned has 4 or more levels of nested data. In these cases, Flex isn't giving us XML. It is just returning an untyped Object with the nested data. If the returned data has 3 levels or less of nested data then we get XML. We then thought, ok... The untyped Object returned by Flex does have all the properties required to Cast it to our typed Object, e.g. IContactData... But we are getting a "Coercion failed" message by the Compiler. Here's a basic example of the problem... var myPerson : Object = new Object(); myPerson.age = "25"; myPerson.sex = "dunno" myPerson.name = "Nick"; var myContact : ContactPerson = new ContactPerson(); myContact = ContactPerson(myPerson); // Where ContactPerson is a typed Object with age, sex and name String properties. So has anyone managed to solve the 4 levels of nested data problem from an HTTP Service call? and :) Why can't we cast an untyped Object into a typed Object? :) Cheers guys... Nick

