Ben,

Have you looked into the CF Connectivity wizards for creating cfc's to
represent your AS object types?  This is the way you're going to maintain
the "object" properties between server and client side.  If you'd like, I
can blog an example of what I'm talking about.

Brendan


On 21 Mar 2007 15:31:39 -0700, Ben <[EMAIL PROTECTED]> wrote:

  Hi all, The message below was originally send to flashcoders
mailinglist, but later I figured it might be better of on Flexcoders.

Ben

-----

I am wondering how people are solving the following issue in the real
world.

I am struggling to understand Flash Remoting with Coldfusion. I know it
should make my life a whole lot easier but at the moment it's not
reallyh helping :) All of the examples I find on the net are too
straightforward; select a table query and return that to flash (or in my
case flex).

But in my situation, I want to return a joined recordset. How do I
return that recordset while maintaining the advantages of "object on
server is object in client"? I can return the whole query without
problems of course (plain old returntype=query) but what do I do after I
get that recordset in flash/flex? Is it still nescesarry to parse out
that resultset to make objects out of the recordset? Wouldn't that
defeat the whole purpose of remoting? (I used to do that in my xml
communication days too).

While I am busy, might as well ask the following question to the
Coldfusion Remoting guru's out there too: What is best practice to let
CF retujrn to Flash? In code examples I see a lot of 'query' being
returned. But doesn't this go against the purpose of communicating only
"Objects" between the two layers? In my head I have this image of
letting Coldfusion return an Array of (e.g.) Person objects, when I
execute a (e.g.) getPerson command.

Tnx for any insights in advance,

Ben



--
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca

Reply via email to