Hi Claudiu, thanks for your reply. I'm not sure what you mean proper data? It is real data that we want returned.
I will certainly look into using that Utility, thanks. But is this a bug in Flex? has anyone else come across this? It seems odd that it works with 3 levels of nested data but not 4 or 5... Thanks, Nick 2010/1/7 claudiu ursica <the_bran...@yahoo.com> > > > Still you can try the utility I mentioned ( > http://www.darronschall.com/weblog/2006/10/convert-generic-objects-into-class-instances.cfm) > or fix the service on the backend to answer with proper data. > > TH, > Claudiu > > ------------------------------ > *From:* Nick Middleweek <n...@middleweek.co.uk> > *To:* flexcoders@yahoogroups.com > *Sent:* Wed, January 6, 2010 5:13:46 PM > *Subject:* Re: [Spam] Re: [flexcoders] Problem Casting an Object to a > known type > > > > Hi, > > Thanks for your reply... > > Our problem is that the http service isn't returning e4x or xml (even > though the returnResult is set to that) if the data levels are 4 or more. > It's coming back as untyped Objects. > > Normally we would call the HTTP Service asking for e4x, get the data back > in the response and pass the XML through a parser so it returns a type > Object. > > > Cheers, > Nick > > > > > 2010/1/6 claudiu ursica <the_braniak@ yahoo.com <the_bran...@yahoo.com>> > >> >> >> You should have parser/unmarshaller for the e4x/xml returned by the >> service and handle this situation in there. On the other hand what you are >> trying to achieive doesn't work like that out of the box I mean the >> conversion. Google for the ObjectTranslator utility for flex/as3 and use >> that to convert your object. >> >> HTH, >> C >> > >