
688
DEVELOPING
COLDFUSION 9 APPLICATIONS
Flex and AIR Integration in ColdFusion
Las
t
upda
te
d 8/5/2010
Configure Flex
1
Export the keystore to a certificate by using the keytool utility, with a command like the following:
keytool -export -v -alias FlexAssembler -keystore cf.keystore -rfc -file cf.cer
2
Import the certificate into the JRE cacerts file for your server by using the keytool utility, with a command like the
following:
keytool -import -v -alias FlexAssembler -file cf.cer -keystore
C:\fds2\UninstallerData\jre\lib\security\cacerts
The previous example specifies the location of the keystore for LiveCycle Data Services ES with integrated JRun,
installed using the default settings. If you are using a different server, specify the location of the cacerts file for the
JRE that you are using. For example, if you are using JBoss, you specify the keystore location as
$JAVA_HOME/jre/lib/security/cacerts.
Enable SSL in the ColdFusion Administrator
1
In the ColdFusion Administrator, select Data & Services > Flex Integration, and specify the keystore file in the Full
Path to Keystore text box.
2
Specify the keystore password in the Keystore password text box.
3
Select the Enable RMI over SSL for Data Management option, and then click Submit Changes.
If you specify an invalid keystore file or password, ColdFusion does not enable SSL, and disables Flex Data
Management Support.
Data translation
The following table lists the ColdFusion data types and the corresponding Adobe Flash or ActionScript data type:
Using Server-Side ActionScript
Adobe ColdFusion server configuration includes the Flash Remoting service, a module that lets Adobe Flash
developers create server-side ActionScript. These ActionScript files can directly access ColdFusion query and HTTP
features through two new ActionScript functions:
CF.query
and
CF.http
.
ColdFusion data type
Flash data type
String
String
Array
[] = Array
Struct
{} = untyped Object
Query
ArrayCollection
CFC
Class = typed Object (if a matching ActionScript class exists, otherwise the CFC becomes a
generic untyped Object (map) in ActionScript)
CFC Date
ActionScript Date
CFC String
ActionScript String
CFC Numeric
ActionScript Numeric
ColdFusion XML Object
ActionScript XML Object