I have Flex 4 set up to talk to ColdFusion, and I have the calls running through CFC's no problem. My issue is, that one of the CFCs returns data to Flex. The first time I call the component, I get no results, but I get results on the second call. I have tried moving the call to the component into my creation_complete() handler, just to make it call sooner, but no luck.
I am using the lastResult component of the returned result. Why would the calls not execute the first time, or is this an issue with using the lastResult portion. I didn't think that the result portion was ideal for data-binding.
Any suggestions are welcome!
I did not run into the problem you describe just using the stuff generated by Flex. I did have problems when I tried to use lastResult and/or making other changes. I got a lot of help from David F57 in these forums. You may want to check out this thread, http://forums.adobe.com/thread/638392?tstart=0 for some of David’s code suggestions.