Adobe COLDFUSION 9 Manual page 625

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Flex and AIR Integration in ColdFusion
Note: With ColdFusion 9, you will need to install LiveCycle Data Services 2.6.1 manually because it is not available
as an option with the ColdFusion installer. However, ColdFusion 9 is available with the BLAZE DS installation, which
allows messaging support. For more information about manually installing LiveCycle Data Services ES 2.6.1, see
Installing LiveCycle Data Services Manually in the Installation Guide.
• Flash Player 8.5 or later
Configure Flex Compilation
You use Flash Builder or the Flex SDK to compile Flex applications into SWF files. To use the Flash Remoting Update,
these programs must use the ColdFusion
You need to configure Flash Builder to use the ColdFusion configuration file, or specify the file when you use the SDK
to compile your application (as described in
Configure Flex Builder 2 to use the ColdFusion configuration file
When you use the Flex Builder Project Setup Wizard and select ColdFusion as the server type, the wizard configures
Flex Builder to use the services-config.xml file for you. Use the following steps to configure your project:
1
Select File> New> Flex Project to open the New Flex Project Wizard. and enter the appropriate information in the
first sections of the Create a Flex project page.
Select one of the radio buttons, as follows:
2
• Select ColdFusion Flash Remoting to compile in Flex Builder.
• If you installed LiveCycle Data Services with ColdFusion and want to use messaging or data management, select
Flex Data Services.
3
If you select Flex Data services, select whether to compile the application locally in Flex Builder or on the
application server where the page is viewed. Do not select to compile code that you deploy on the server; this option
is for development purposes only.
Click Next and complete creating the project, then click Finish.
4
If you select Basic on the first Create a Flex Project page, and decide later to compile the application for use with
ColdFusion, configure Flex Builder manually, as follows:
Select Project > Properties.
1
Select Flex Complier in the right pane of the Properties dialog.
2
3
In the Additional Compiler arguments add
file in the local ColdFusion installation. For example, on a Windows system with a default ColdFusion stand-alone
installation, specify the following argument string.
-services=C:/ColdFusion9/wwwroot/WEB-INF/flex/services-config.xml
Configure Flex Builder 3 to use the ColdFusion configuration file
When you use the Flex Builder Project Setup Wizard and select ColdFusion as the server type, the wizard configures
Flex Builder to use the services-config.xml file for you. Use the following steps to configure your project:
Select File> New> Flex Project to open the New Flex Project Wizard. and enter the appropriate information in the
1
first sections of the Create a Flex project page.
In the Server technology section of the Create a Flex project page, select ColdFusion as the Application server type,
2
and select Use remote object access service.
file when compiling the MXML.
services-config.xml
Compile and Run the
application).
followed by the absolute path to the services-config.xml
-services=
Last updated 8/5/2010
620

Advertisement

Table of Contents
loading

Table of Contents