Search Flex Components Free

Custom Search

December 5, 2007

Flex and ColdFusion Integrating Flex 2 with ColdFusion MX

In this article, you'll learn how to build a small application using Adobe Flex Builder 2 and ColdFusion MX. You'll build a simple application that reads names and e-mail addresses from a database and displays them to the user. The application also enables users to add user names and e-mail addresses to the database.
Requirements
To make the most of this article, you need to install the following software and files:
Flex Builder 2 (SDK included)
Try
Buy
ColdFusion MX 7.0.2 (Includes connectivity for ColdFusion with Flex 2, installed on a local web server)
Try
Buy
Note: By installing ColdFusion MX 7.0.2, you have easy access to ColdFusion components from within Flex. You also get a new version of Flash Remoting, the Flex Message Gateway, and the Flex Data Services assembler. For full details visit the ColdFusion MX 7 and Flex 2 product page.
ColdFusion Extensions for Flex Builder 2 (Already included in the download for Flex Builder 2)
Try
Buy
Note: By installing Flex Builder 2, you also get ColdFusion Extensions (an included option with Flex Builder 2). The ColdFusion Extensions contain features such as a collection of powerful wizards that automatically generate code and applications, a Remote Development Services (RDS) module, and a Services Browser for web services and CFC introspection. For full information on the ColdFusion Extensions, visit the ColdFusion MX 7 and Flex 2 product page.
Prerequisite knowledge
Familiarity with simple ColdFusion development as well as some basic knowledge of XML.
Getting started
Download and install Flex Builder 2 if you haven't done so already. To start, you must create the database. I've called mine sample but you can call yours whatever you like.
Next, create a table that will hold the user data. For Microsoft Access, here is the column information:
Primary key
Column name
Data type
Yes
userid
AutoNumber
No
username
Text (255)
No
emailaddress
Text (255)
For MySQL, here is a SQL script you can use to create the table:

Related Flex Tutorials