Accessibility
Ben Forta

Ben Forta

forta.com

Table of Contents

Created:
27 June 2006
User Level:
Intermediate
Products:
Flex

Using ColdFusion with Flex – Part 3: Creating and running a phone selector

Important note: Effective with the release of Adobe LiveCycle ES, the Adobe Flex Data Services 2 server product has been rebranded as a Solution Component of LiveCycle ES. This article was written based on Flex Data Services but will likely work as is with LiveCycle Data Services ES. Any articles referring to or using ColdFusion and Flex Data Services are not compatible with LiveCycle Data Services ES. To learn about the new capabilities of LiveCycle Data Services ES, see the tutorials in the LiveCycle Developer Center and read about Adobe LiveCycle Data Services ES.

Adobe ColdFusion MX 7.0.2 enables you to create applications with the rich Internet capabilities of Adobe Flex and the advanced data retrieval features of ColdFusion. You can use ColdFusion to create, read, update, and delete records in a database while using the rich presentation features of Flex. This article is part of a series of articles that demonstrate how you can use ColdFusion with Flex.

This article uses the Flex Phone Selector sample application to demonstrate some basic Flex funcitonality, including:

  • The use of Flex states to control display
  • The use of renderers and custom components
  • The use of custom formatters

The Phone Selector application is a very simple example of a Flex application powered by ColdFusion. This sample application is deliberately small and highly focused to demonstrate ColdFusion Flex integration options, including:

  • Accessing ColdFusion components through Flash Remoting
  • The automatic conversion between ColdFusion components and equivalent ActionScript objects

This application is not intended to demonstrate development best practices, and was designed purely to demonstrate integration capabilities, functionality, and techniques.

Note: This application does not require Flex Data Services 2.0, nor does it require any data sources or setup within ColdFusion.

Requirements

To make the most of this article, you need to install the following software and files:

Important note: Effective with the release of Adobe LiveCycle ES, the Adobe Flex Data Services 2 server product has been rebranded as a Solution Component of LiveCycle ES. This article was written based on Flex Data Services but will likely work as is with LiveCycle Data Services ES. Any articles referring to or using ColdFusion and Flex Data Services are not compatible with LiveCycle Data Services ES. To learn about the new capabilities of LiveCycle Data Services ES, see the tutorials in the LiveCycle Developer Center and read about Adobe LiveCycle Data Services ES.

Flex Builder 2 (SDK Included)

Flash Player 9

ColdFusion MX 7.0.2  (Includes connectivity for ColdFusion with Flex 2)

Sample files:

Prerequisite knowledge

Familiarity with ColdFusion data management and general Flex concepts.

Additional documentation

About the author

Ben Forta is the Adobe senior product evangelist and the author of numerous books, including ColdFusion Web Application Construction Kit and its sequel Advanced ColdFusion Application Development, as well as books on SQL, JavaServer Pages, WAP, Windows development, and more. Ben co-authored the official ColdFusion training material, the certification tests and Macromedia Press study guides for those tests, and now spends a considerable amount of time lecturing, speaking, and writing about application development worldwide. Visit Ben's blog to read his regular postings on ColdFusion and more.