This Article in the CFDJ should be of help to you:

http://it.sys-con.com/read/264726_1.htm
http://it.sys-con.com/read/264726_2.htm

As an aside, I'll be checking in some code to the Adobe Labs SVN this 
week to handle this in a slightly more generic fashion.

-d

mdoberenz wrote:
>
>
> I'm pretty sure this is possible, but I can't get it to work.
>
> I'm wanting to typecast a generic object that gets returned by a
> WebService call into a VO, but I'm having some issues.
> Say I have a VO of the following:
>
> public class TestVO{
> [Bindable] public var i_test:int;
> [Bindable] public var s_test:String;
> [Bindable] public var o_test:Object;
> }
>
> Then I get an object back from a WebService call that has a similar
> structure, can't I just do the following?:
>
> var typeCastTry:TestVO = RETURN_OBJ as TestVO;
>
> When I do this, typeCastTry gets set to null.
>
> Any help would be awesome!
>
> Mark
>
>  




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to