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 <[email protected]>
To: [email protected]
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>

>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>  >
>
>>
> 
>>      
> 
>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
>
 


      

Reply via email to