Matt,
There are three ways to connect to "data" in Flex: 1. HTTPService 2. WebService 3. RemoteObject (Java only) An HTTPService call is as simple as specifying a URL that returns XML data. This could be any kind of page... a CFM, JSP, ASP... even a flat XML file. WebService can use any SOAP or REST web service. These can be implemented in any language that supports web services... Java, .NET... and of course oru wonderful CFCs. :) RemoteObject is used to directly call a compiled Java class that sits on the same server as Flex. It's very powerful because you're not using web services as at, it's actually a binary protocol called AMF and it's supposedly a good deal faster than web service calls as well. However it natuarlly imposes a lot of limitations and it's basically worthless if all you do is write ColdFusion. Whichever of the 3 methods above you choose, they have to connect to your DB, pull out the data and return XML to the Flash Player client. WebService and RemoteObject essentially handle this for you, but if you aren't comfortable working with them then you *could* set up CFM pages that would spit out XML... but the power there is a lot more limited. If you're interested in Flex, check out the Flex book by MM press and "Essential Actionscript 2.0" by Moock. They're both solid. Also tomlink.net has some good resources for some of the nuances you'll run into when working with Flex. And if you can afford the training from MM... go for it. I just finished the 3 course last week and learned A LOT! Also there is a useful mailing list called "Flexcoders" over at Yahoo Groups. Good luck :) -Cliff Subject: OT: Connecting Flex with Databases From: Mark Drew <[EMAIL PROTECTED]> Date: Fri, 29 Apr 2005 08:29:39 +0100 Thread: http://www.houseoffusion.com/cf_lists/index.cfm/method=messages&threadid=39940&forumid=4#205044 Sorry for the off-topic I have been playing with flex, and one thing that is missing from my brain is how I can connect it to a database. I presume most of the data connection stuff is done via XML and JSP? is this correct? We cant use our CFC's? Are there any examples out there? I have been working through the tutorials but the JSP files just output XML .. and I needed to know how to actually connect to a DB Any pointers apreciated! Again.. sorry for OT!! -- Mark Drew ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205066 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

