Simple Flex/CF Remoting Example
FlexHello all, in response to some questions on the FlexCoders list, I have made this very simple remoting example.
Before I get into the code, I just want to clarify what you need to run this example. All you need is CF 7.02, thats it.
Below is the MXML/AS code for the example.
In the above code, there are 2 functions that run. The first one is the initApp() and loadConfirm(event).
The initApp() runs when the application is created. its only job at the moment is to call a method in the remoting.cfc called confirmCFC.
The loadConfirm function sets a bindable variable to the response of the remote call's response. The variable is bound to a label components text attribute.
Here is the code for the cfc.
Thats it. Feel free to IM me with questions or post here on the blog.




Loading....