Marlon,
I think you have two options:
1) used a quick method to pass in named arguments
myService.setInfo( {firstName:firstName_txt.text,
lastName:lastName_txt.text, city:city_txt.text} );
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 prefer method 2 - the thing is, you use the same CFC for both methods
because Flash Remoting seems to do a little data manipulation 'trick'
where if you pass in an object to a CFC method as the only argument the
object is expanded and the CFC method recieves all the object properties
individually. Now that I think about it, I guess it works like
ARGUMENTCOLLECTION would work from CFINVOKE.
HTH,
t
**********************************************************************
Tyler M. Fitch
Certified Advanced ColdFusion Developer
http://isitedesign.com
**********************************************************************
-----Original Message-----
From: Marlon Moyer [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 10:50 AM
To: [EMAIL PROTECTED]
Subject: [CFCDev] Flash remoting and CFC's
If your cfc has multiple parameters, how do you specifiy in Flash which
are which when you make the call to the cfc?
----------------------------------------------------------
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).