Specifications
211ADOBE FLEX 3
Building and Deploying Adobe Flex 3 Applications
The following example shows how to use the runtime-shared-library-path option when compiling your
application on the command line:
mxmlc -runtime-shared-library-path=../lib/mylib.swc,../bin/library.swf Main.mxml
Do not include spaces between the comma-separated arguments of the runtime-shared-library-path option
on the command line.
Your Flex application can use any number of RSLs. In Flex Builder, you add a list of RSLs on the Library Path tab.
When using the command line, you add additional
runtime-shared-library-path options. In both cases, the
order of the RSLs is significant because base classes must be loaded before the classes that use them.
You can also use a configuration file to use RSLs, as the following example shows:
<runtime-shared-library-path>
<path-element>../lib/mylib.swc</path-element>
<rsl-url>../bin/library.swf</rsl-url>
</runtime-shared-library-path>
In the previous example, the file structure at compile time looks like this:
c:/Main.mxml
c:/lib/CustomDataGrid.swc
The deployed files are structured like this:
web_root/Main.swf
web_root/bin/library.swf
policy-file-url
Specifies the location of the policy file (crossdomain.xml) that gives permission to load the RSL from the
server. For example, http://www.mydomain.com/rsls/crossdomain.xml. This is only necessary if the RSL and
the application that uses it are on different domains. If you are serving the application and the RSL SWF file
from the same domain, then you do not need to specify a policy file URL.
This argument is optional.
If you do not provide a value, then Flash Player looks at the root of the target web server for the crossdo-
main.xml file. For more information on using RSLs in different domains, see “About cross-domain RSLs” on
page 204.
failover-url
Specifies the location of a secondary RSL if the first RSL cannot be loaded. This is most commonly used to
ensure that an unsigned framework RSL will be used if the signed framework RSL fails to load. If the version
of Flash Player is earlier than 9.0.115, it cannot load signed RSLs, so it must load an unsigned RSL. While this
argument is used primarily to ensure that the framework RSL is loaded, it can also be used by cross-domain
RSLs to ensure that a secondary RSL is available in case of network or server failure.
This argument is optional.
If you specify a second policy-file-url, then Flash Player will look to that location for the crossdo-
main.xml file for the failover RSL.
Argument Description










