A simple Hello World example that shows how to use the basic EventHandlers tag, how to call a service using RemoteObject and how to use the CallBack tag. If you write "microsoft" instead of your name, you will see how the server faults are handled. It uses mock services to simulate Flash Remoting, but it also includes a ColdFusion service as an example. To use it, you'll need to uncomment the actual RemoteObject tag in the Services.mxml file. cfcs should be placed in a folder off the root called "helloworld". If you wish to change that path, you can make the change in the RemoteObjectInvoker inside the MainEventMap.mxml file.
To use other type of server side technology, simply change the RemoteObject to match your endpoint and other configuration options. Your service should have a method called "sayHello" which should accept a string. It should return a typed object (class Message) which has a "text" property.
To compile with the mock services, you need to add the folder "mock" to your build path.
I wish they didn't rely upon ColdFusion though ... or at least have a PHP version available too.
But the demo"Hello world:" can't put in Chinese.
CF is a little bit ... dead? I know nobody who use it (10 years in IT) :)
xmlns:mate="http://mate.asfusion.com/"
It doesn not seem make any difference. Am I missing something?
Thanks.
Great stuff, I can't get this to build because of error;Access of undefined property MockHelloService given in line 10 of services.mxml
Make sure you include the folder "mock" in your build path.