Specifications

CHAPTER 8
150
runtime-shared-library-path=path-
element,rsl-url[,policy-file-
url,failover-url,...]
Specifies the location of a runtime shared library (RSL). The compiler external-
izes the contents of the application that you are compiling that overlap with
the RSL.
The path-element argument is the location of the SWC file or open directory
to compile against. For example, c:\flexsdk\frameworks\libs\framework.swc.
This is the equivalent of the using the
external-library-path option
when compiling against an RSL using the
runtime-shared-libraries
option.
The rsl-url argument is the URL of the RSL that will be used to load the RSL
at runtime. The compiler does not verify the existence of the SWF file at this
location at compile time. It does store this string in the application, however,
and uses it at run time. As a result, the SWF file must be available at run time
but necessarily not at compile time.
The policy-file-url is the location of the crossdomain.xml file that gives
permission to read the RSL from the server. This might be necessary because
the RSL can be on a separate server as the application. For example,
http://www.mydomain.com/rsls/crossdomain.xml.
The failover-url and second policy-file-url arguments specify the
location of the secondary RSL and crossdomain.xml file if the first RSL cannot
be loaded. This most commonly happens when the client Player version does
not support cross-domain RSLs. You can add any number of failover RSLs, but
must include a policy file URL for each one.
Do not include spaces between the comma-separated values. The following
example shows how to use this option:
mxmlc -o=../lib/app.swf -runtime-shared-library-
path=../lib/mylib.swc,../bin/myrsl.swf Main.mxml
You can specify more than one library file to be used as an RSL. You do this by
adding additional
runtime-shared-library-path options.
You can also use the runtime-shared-libraries command to use RSLs
with your Flex applications. However, the
runtime-shared-library-
path
option lets you also specify the location of the policy file and failover
RSL.
For more information about RSLs, see Using Runtime Shared Librarieson
page 195.
services filename
Specifies the location of the services-config.xml file. This file is used by Live-
Cycle Data Services ES.
Option Description