So I’m doing this project that involves passing ColdFusion data into a flash movie, and I’ve run into a snag that I’m hopeful someone will be able to solve for me:
I need to be able to pass in a CF array, and have it populate a Flash array on the other side. I thought this would be easy. My code is thus
(having created the array (called arrValues) in CF, I pass it like this):
<cfset flash.Result = arrValues >
In Flash, I reference it as follows (it’s the file test.cfm):
clientPic = new Array (result);
… which I thought would then simply paste in the array I’m passing as the creation values to the array in Flash, but it doesn’t appear to work. Nor does calling elements specifically, such as
clientPic = result;
seem to do anything
I’ve also tried passing the array in as a string, with no better luck. I suspect I’ve totally got the wrong end of the stick on how to call the CF variable in Flash, but I’m a total novice when it comes to this Flash Remoting. I do know from the debug output that Flash is receiving the variables.
So any and all help would be appreciated!