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






------------------------ Yahoo! Groups Sponsor --------------------~-->
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/SktRrD/hOaOAA/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/





__._,_.___

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





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to