Flex includes several configuration files to administer the behavior of your applications. Settings specific to the Flex application are defined in the flex_app_root/WEB-INF/flex/flex-config.xml file. Application server settings are located in the flex_app_root/WEB-INF/web.xml file.
The XML configuration files are easy to read and edit. In the case of the flex-config.xml file, you can use the flex-config.xsd schema file to validate your flex-config.xml settings. For web.xml file settings, consult your application server documentation.
You can change the location of the flex-config.xml file by editing the web.xml file and changing the value of the flex.configuration.file parameter. The following example shows the default settings:
<context-param> <param-name>flex.configuration.file</param-name> <param-value>/WEB-INF/flex/flex-config.xml</param-value> <description>configuration file</description> </context-param>
You must restart the server after making changes to the flex-config.xml and web.xml files.
If you specify a URL beginning with a slash (/), it is relative to the web root. You can also use the {context.root} token in the URL to point to the context root of the application. This is defined by your application server. For more information on using the {context.root} token, see Editing the context root.
Some tags in flex-config.xml use a <path-element> child tag to define values. These tags support relative paths and full URLs. The following example adds a URL to the SWC file in the <lib-path>:
<lib-path> <path-element>http://mydomain.com/foobar.swc</path-element> </lib-path>
The following tags can take file system paths or URLs as values:
<lib-path>
<debug-lib-path>
<actionscript-classpath>
<system-classes>
<global-css-url>
Version 1.5
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flex/15/flex_docs_en/00001189.htm
Comments
alongley said on Jan 7, 2005 at 8:02 AM : danger42 said on Jan 7, 2005 at 10:27 AM :