coldfusion flash integration:
I am comfortable getting info from flash to a database via remoting with cf without using any components. I do not seem to be able to get data back into flash via remoting with cf without a component. Is this possible? Thank you! John
I figured out the answer to my problem and wanted to post it for anyone else who might need it or might be able to imrove upon it. I grew so accustomed to using the flash components I was not sure that flash remoting could be done without them. But it can, and yes it is simple. For those who have been using the tutorials online you get to a point in the code where you are using a line that goes something like this: DataGlue.bindFormatStrings(someFLash_componentInstanceName, someCF_function, "#SOME_CATEGORY#", "#ID#"); That helps populate the component. Intead, do this: function someCF_function_Result(someCF_function) { for (i = 0; i < someCF_function.getLength(); i++) { var thisItem = someCF_function.getItemAt(i); trace(thisItem.SOME_CATEGORY); myBasicTextField_txt.text = thisItem.SOME_CATEGORY; } } This assumes you have set up everything else properly.
Don't see what you're looking for? Try a search.
|