Hello Oriol, 

I've found this thread looking for some elegant way to interact amfphp
with cairngorm. For what i've read, did you have a php class with the
structure of you AS VO? Are you returning an array containing the
bookvo info or an bookvo object?. 

If i'm wrong or this is not your case, please correct me.



--- 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 --------------------~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/7EuRwD/fOaOAA/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