TracNav
AS3 Standard : Query CFC...
- Downloads
- Installation
- Release Notes
- View Source
- Discussion
Project Owner...
- Simon Bailey
Demo - Flex + ColdFusion / Query CFC
This demo illustrates the use of ColdFusion with PureMVC to perform a query against a remote CFC from a Flex client.
Installation
- From the archive
- Download the latest source code archive.
- Unzip the source code zip to any folder on your disk. (for instance: c:\development\)
- You will see a QueryCFC source folder. (for instance: c:\development\QueryCFC )
- From the Repository
- Use your favorite SVN client to retrieve the latest source code release from the repository.
- Add the Services
- Set up a ColdFusion datasource (this example uses a datasource named flexcf) and point to a MySQL database with single table named users and 3 fields, user_id, username and password.
- In the server root folder (typically wwwroot for ColdFusion) create a new folder named QueryCFC for the server side script.
- Copy the contents of the Services folder from the distribution into the QueryCFC folder on the server.
- Setup and Compile the Demo Using Flex Builder 3
- Create a new Flex Project called 'QueryCFC' in Flex Builder 3:
- Pointing to the new QueryCFC source folder
- Application Server Type = ColdFusion
- Remote Object access service = ColdFusion Flash Remoting
- On the Configure ColdFusion page of the wizard, enter your ColdFusion root folder and web root.
- For the Output Folder browse to the server-based QueryCFC folder you created above.
- Add the required libraries to the QueryCFC project's build path.
- From the Flex Builder menu do: Project -> Properties -> Flex Build Path -> Library Path -> Add SWC Folder
- Browse and select: QueryCFC/libs
- Run QueryCFC.mxml
- Create a new Flex Project called 'QueryCFC' in Flex Builder 3:
