Specifications

217ADOBE FLEX 3
Building and Deploying Adobe Flex 3 Applications
Included framework RSLs
The framework RSLs are located in the flex_sdk_dir/frameworks/rsls directory. For Flex Builder, the framework
RSLs are located in the flex_builder_dir/sdks/3.0.0/frameworks/rsls directory. The naming convention includes
the version number of Flex, plus the build number of the compiler that you currently use. The following
framework RSLs are included with the Flex products:
framework_3.0.build_number.swz (signed framework RSL)
framework_3.0.build_number.swf (unsigned framework RSL)
rpc_3.0.build_number.swz (signed data services RSL)
rpc_3.0.build_number.swf (unsigned data services RSL)
(Flex Builder only) datavisualization_3.0.build_number.swz (signed data visualization RSL)
(Flex Builder only) datavisualization_3.0.build_number.swf (unsigned data visualization RSL)
The signed and unsigned framework RSLs are optimized, as described in Optimizing RSL SWF files” on
page 212.
Flex also includes a number of SWC files that you can use as standard or cross-domain RSLs. These libraries are
unsigned and not optimized. These SWC files are located in the frameworks/libs directory. They include
automation.swc (for automation classes) and qtp.swc (for Mercury QuickTest Pro agent classes).
Framework RSL digests
After the framework RSLs are transferred across the network, Flash Player generates a digest of the framework
RSL and compares that digest to the digest that was stored in the Flex application when it was compiled. If the
digests match, then the RSL is loaded. If not, then Flash Player throws an error and attempts to load a failover RSL.
Using a framework RSL
To use the framework RSL in your Flex applications, you compile against the framework.swc file in your /frame-
works/libs directory with the
runtime-shared-library-path option on the command line. You can optionally
add a policy file URL if necessary, plus one or more failover RSLs and their policy file URLs.
The following example compiles SimpleApp with the framework RSL:
mxmlc -runtime-shared-library-path=libs/framework.swc,
framework_3.0.183453.swz,,framework_3.0.183453.swf
SimpleApp.mxml
This example sets the signed framework RSL (*.swz) as the primary RSL, and then the unsigned framework RSL
(*.swf) as the secondary RSL. This example does not specify a location for the policy file, so it is assumed that
either the RSLs and the application are in the same domain or the policy file is at the root of the target server.