Leif,
I haven't tested for any speed difference so I can't comment on that.
Knowing I have no hard facts, in thinking about it I bet the object
method is faster because it doesn't have to process all the arguments of
the {} block individually before passing them along. But since I
haven't tested it, I can't be sure. It seems like less processing would
be need to be done when calling the CFC method to pass an object.
My choice on when to implement either system is based on the size of
what I'm working with. If I'm going to only pass in 2 or 3 arguments I
won't spend the time to wrap them into an object. If it is something
bigger then I will use the object approach.
Welcome to the list,
t
**********************************************************************
Tyler M. Fitch
Certified Advanced ColdFusion Developer
http://isitedesign.com
**********************************************************************
-----Original Message-----
From: Leif Wells [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 11:56 AM
To: [EMAIL PROTECTED]
Subject: Re: [CFCDev] Flash remoting and CFC's
On Thursday, April 3, 2003, at 02:05 PM, Fitch, Tyler wrote:
> 2) Put all the arguments into the an object, and pass the object as
> the single argument UserInfo = new Object();
> UserInfo.firstName = firstName_txt.text;
> UserInfo.lastName = lastName_txt.text;
> UserInfo.city = city_txt.text;
> // then pass UserInfo to setInfo()
> myService.setInfo( UserInfo );
>
I suppose that always wrapping it into an object would be cleaner for
the transportation, but have you found there to be any speed
difference. If so, under what conditions?
As I just joined this list today, so please forgive me if this is too
simple a point for everyone. I am an experienced Flash developer and a
relatively inexperienced ColdFusion developer, I'd like to add one
small item to this thread to make it more complete:
My assumption is that you already have the Flash Remoting MX Components
installed in your Flash MX IDE. And if you are using ColdFusion MX
Update 3, you have updated your Flash Remoting MX Components (with
Macromedia's painfully manual process).
Thanks. I look forward to learning a lot from this list.
Leif
Manager, Atlanta Macromedia User Group
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).