Flash Remoting Question

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[0] = result[0];
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!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: