![]() ![]() When you create a new Flex Project, you will define the project location, server settings and build paths. You should see employee data from the database successfully displayed in a datagrid. your server:your port}/TestDrive/test/test.htmlįor a default standalone ColdFusion installation, browse to: For details, refer to the documentation on using Flash Remoting with your particular server. ![]() Note: If you are using an earlier version of ColdFusion, your configuration file may not have these tags and you will need to add them. Locate the tag and change all three values to true as shown below: Open /ColdFusion9/This file is used when calls are made to the server from your application.Note that the methods have the access argument set to remote so that they can be called from a Flex application. Open /ColdFusion/This class file contains the methods you will call from your Flex application.O In the ColdFusion Administrator ( for the default standalone installation), navigate to Data & Services > Data Sources and create a new data source called testdrive_db with an Apache Derby Embedded driver and the database folder set to the testdrive folder you just placed in the /ColdFusion/db/ folder. O Place this testdrive folder in the ColdFusion db folder, /ColdFusion/db/. O Place the TestDrive folder in the ColdFusion webroot, /ColdFusion/wwwroot/. If you have ColdFusion Standard, you need to manually place the server files and create a datasource.O In the Deploy Wizard, change the deploy locations to reflect the locations of the db and o After deploying, check that you have a new data source called testdrive_db and a new folder in O In the ColdFusion Administrator ( for the default standalone installation), navigate to Packaging & Deployment > ColdFusion Archives and browse to and deploy one of the CAR files. If you have ColdFusion Enterprise or ColdFusion Developer, deploy one of the CAR files.It contains two CAR files (testdrive_mac.car and testdrive_win.car) and a ZIP file (testdrive.zip). Download the Test Drive setup archive (ZIP 15.7 MB) archive and unzip the testdrive_setup_CF file.(Information taken from Abobe Website - Creative Commons) Connect to DatabaseĬonnect to database using a variety of technologies (ColdFusion, PHP, Java, etc.) In this tutorial we will connect to a ColdFusion database by using the ColdFusion Administration page. In this tutorial, we will use an EXISTING ColdFusion database that is provided for you. A Flex application does NOT connect DIRECTLY to a database but rather it uses a middle man called a data service that can be written in a variety of technologies (i.e., ColdFusion component, PHP/Java classes, etc.). The first step you perform with any database-driven app is to create a database so that you can connect and introspect it. Create A Database or Use and Existing Database A CMS is used to create (add), read (select), update and delete records from a database that is sometimes called CRUD (Create, Read, Update and Delete). We will use ColdFusion as the backend database using a Coldfusion Component (cfc) file. We will use Flash Builder 4.5.1 with both and ActionScript 3 to build a Flex Content Management System (CMS). CREATING A FLEX CONTENT MANAGEMENT SYSTEM (CMS) ![]()
0 Comments
Leave a Reply. |