MM didn't make it complex, you are making it complex, it ain't rocket science.
They pretty much do have drag and drop components already built in, you can have remoting working in under 30 seconds or there is the data connector that's built in that can get data from a cfc or web service, again in under 30 seconds. http://www.macromedia.com/cfusion/exchange/index.cfm#view=sn106&viewName=Exchange%20Search%20Details&loc=en_us&authorid=60639501&page=0&scrollPos=0&subcatid=0&snid=sn106&itemnumber=13&extid=1011923&catid=0 I suggest that you check out all the remoting tutorials at communitymx.com or specifically this one http://www.communitymx.com/content/article.cfm?cid=ADF3B or asfusion.com has quite a bit of info as well. ~Dave the disruptor~ ---------------------------------------- From: "Andy Matthews" <[EMAIL PROTECTED]> Sent: Friday, February 24, 2006 10:27 AM To: CF-Talk <[email protected]> Subject: RE: Getting data into Flash 8 Honestly? I don't understand any of that. There's not a bit of that Actionscript that I recognize. How is any of this code triggered? Does this have to be run via a web browser or can it be run from within the IDE? Can I return a query object to Flash or does it have to be a structure? I'm sorry to be so dense but WHY does MM have to make this so complex? Something as simple as connecting to a database should, at this point, be a drag and drop thing. Anyway, I greatly appreciate your input to this point, but I'll just have to come up with another method, passing in the values via the query string, because I know that works. -----Original Message----- From: Kevin Aebig [mailto:[EMAIL PROTECTED] Sent: Thursday, February 23, 2006 4:16 PM To: CF-Talk Subject: RE: Getting data into Flash 8 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:233412 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

