I have updated the RemoteObjectAMF0 examples to demonstrate it working
with out the error.  The problem was that I was using the old
"registerClass" method instead of the proper
"[RemoteClass(alias="com.renaun.samples.vo.BookVO")]" in the
BookVO.as.  You can get the updated source off my blog.  And a big
thanks to Andi for that code tip.

Renaun

--- In [email protected], "Oriol Gual" <[EMAIL PROTECTED]> wrote:
>
> First of all, I'd like to thank you all.
> 
> I tried Renaun's example, and with ServiceCapture, it is returning
an array
> of BookVO. At this point everything seems OK.
> 
> But when you receive this array, if you do something like this:
> 
> var testBook : BookVO = new BookVO;
> testBook = BookVO(ModelLocator.getInstance().books[0]);
> 
> It will fail, because the objects inside the array collection aren't
> BookVO's, they are Objects:
> TypeError: Error #1034: Type Coercion failed: cannot convert
[EMAIL PROTECTED]
> com.renaun.samples.vo.BookVO.
> 
> And the same happens with your example Andi.
> 
> Then, my question is, can anyone do this without the coercion error,
and,
> without extra functions to map it?
> 
> Thanks, Oriol.
> 
> 2006/7/25, Renaun Erickson <[EMAIL PROTECTED]>:
> >
> > I have updated the RemoteObjectAMF0 with samples of how to do the
> > AMFPHP  and VO's.
> >
> > Example Using Cairngorm:
> >
> >
http://www.renaun.com/flex2/CairngormAMFPHPExample/CairngormAMFPHPExample2.html
> >
> > Example With Out Using Cairngorm:
> >
> >
http://www.renaun.com/flex2/CairngormAMFPHPExample/RemoteObjectAMF0Sample.html
> >
> > You can find the source here:
> > http://www.renaun.com/flex2/CairngormAMFPHPExample/srcview/
> >
> > Thanks Robert for the partial code.
> >
> > Renaun
> >
> >
> >
> >
> >
> >
> >
> > --
> > 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
> >
> >
> >
> >
> >
> >
> >
> >
>







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/TktRrD/gOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

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

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