Tom if you want to avoid casting all away in your flex app you can follow the 
"new" rules for mapping cfcs & AS.
Instead of returning an array of struts, return an array of components with 
<cfproperty /> define in them (very same order or it won't work).
Better, right click on your AS file and use the CF extensions to generate your 
cfc. 

1) bind your AS class to your cfc generated object 
2) in your remote function call define returntype="mypath.to.my.cfc[]" <--- 
return type of array of mypath.to.my.cfc (don't know if it's mandatory)

If it's not clear , generate your AS & CFC based on your table and check what 
was generated. 


João Fernandes
Dep. Informática - Área de Desenvolvimento
Cofina media

Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL
Tel (+351) 213 185 200 . Fax (+351) 213 540 370
[EMAIL PROTECTED]


-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Tom 
Chiverton
Sent: terça-feira, 4 de Julho de 2006 16:27
To: [email protected]
Subject: Re: [flexcoders] Array of object types returned from remote objects

On Tuesday 04 July 2006 16:11, João Fernandes wrote:
> If you're using ColdFusion why don't you map your AS class to your CFC 
> and

Sounds good- I take it that says 'when I invoke this RemoteObject, the results 
are of this type ?
Do you have a pointer how to do this ?

> get those objects correctly translated? Are you returning Reactor's TO 
> by any chance?

No, not in this case :-)
It's an Array of Struts at the ColdFusion end, with the Strut having key/value 
pairs that match the properties of the ActionScript value object.

--
Tom Chiverton

****************************************************

This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



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



 




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