Tnx Brendan,
I did try those. They seem a good "out of the box" starting point. It didn't
show me how to return the more complicated results though. It seems it's
tailored to just returning row 'a' to 'z' from table 'x'. The results i
receive are not much more usefull than say a xml output. If I want to
inspect the results and do things with it, I still have to loop through the
resultset and find the objects encapsulated within and cast them to my known
objects.
for (item in list)
{
var a :MyObject = new MyObject();
a.name = list[item]["name"];
etc....
}
This was something i hoped wouldn't be needed anymore when using remoting.
If you have any examples how you are returning complex results and how you
are using them in your app, I would be very happy to seen some examples.
Even very rough ones would point me in the right direction.
Tx.
Ben
22 Mar 2007 12:49:41 -0700, Brendan Meutzner <[EMAIL PROTECTED]>:
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