Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / October 2004



Tip: Looking for answers? Try searching our database.

SEND AND RETURN ARRAY TO CF FROM FLASH

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
neg - 24 Oct 2004 16:24 GMT
Hello,

Can anyone tell me how I can send two arrays from FLASH to CFMX, assign values
to them using CFMX (values from a query) and return them back to FLASH.

In other words, if I specify:
<cfparam name="FLASH.flash01_Array" type="array">
<cfparam name="FLASH.flash02_Array" type="array">

Where in my Action Script 2.0 code do I send these flash arrays when calling
my cf service and how (what is the syntax?)... If possible, please show an
example.

Please help.. Urgent....

Thanks
Vic
Keith Dodd - 25 Oct 2004 15:14 GMT
Vic
If I'm understanding your stituation, I *think* what you need is:
1. in the actionscript, define an object to hold the parameters you want to
pass:
var myParams:Object = new Object();
2. Make the arrays you want to pass a part of that object
myParams.arrayOne = whatever it is;
myParams.arrayTwo = whatever that one is;
3. Then call the service/method passing the object as param
Keith Dodd - 25 Oct 2004 15:16 GMT
Something submitted this before i finished:

3. Call service/method with obj as param
myRemoteService.getSuff(myParams)

4. Make sure the cfc is then prepared to receive this with whatever names you
assigned.

Hope this addresses your situation and helps

Keith
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.