It's using certain development idea's that complicate things for beginners like using Delegates to handle listeners.
Here's a bare-bones example... comments included. Let me know if any of this is confusing. Cheers, !k /* --------- CODE-START ----------- */ import mx.remoting.*; import mx.rpc.*; import mx.remoting.debug.NetDebug; // This is gatewayurl. Replace the 'my.serverdomain.com' with the domain of // the server that is running your CFC var gatewayUrl:String = "http://my.serverdomain.com/flashservices/gateway"; // This is the actual folder path to the service, only it's separated by // dots instead of slashes. // So this one, using the domain from above as an example would be // 'http://my.serverdomain.com/test/services/testService.cfc' var pathToComponent:String = "test.services.testService"; // Initialize the gateway as well as the service NetDebug.initialize(); var service:Service = new Service(gatewayUrl, null, pathToComponent); function onClick() { var pc:PendingCall = service.testCall(); pc.responder = new RelayResponder(this, "handleCallSuccess", "handleCallError"); } function handleCallSuccess (result:ResultEvent) { // Deal with the data as you see fit. If you're unsure what kind of // data you're getting back, take a // look at the NetConnection Debugger. It can show you what the data // looks like as well as the result and the calls // being made. } function handleCallError(fe:FaultEvent) { // Look at the FaultEvent Object if you want to show any warnings or // log the error. // Flash's docs show some good examples how to easily get to and use // this object. } /* --------- CODE-END ----------- */ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233303 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54