title: How to create a variable in flex-config xml file usable inside of it?
body: <p>We <a href="https://stackoverflow.com/questions/5475938/having-a-flex-project-how-to-compile-it-with-mxmlc-not-using-flashbuilder-gui/5476362#5476362">can auto-generate flex-confix xml file from flash-builder</a> so that users who want to compile project on their own would be capable of doing such thing without buying FB. So we use something like <code>-dump-config slotConfig.xml</code> as flex compiler argument. This generates a file for us... with lots of detailed comments like this one I generated <a href="http://code.google.com/p/cloudobserver/source/browse/?r=977#svn/trunk/CloudObserverAdvancedPlayer" rel="nofollow noreferrer">from that project</a>:</p>
  
  <pre><code>&lt;flex-config&gt;
     &lt;!-- benchmark: output performance benchmark--&gt;
     &lt;!-- benchmark usage:
     &lt;benchmark&gt;boolean&lt;/benchmark&gt;
     --&gt;
     &lt;compiler&gt;
        &lt;!-- compiler.accessible: generate an accessible SWF--&gt;
        &lt;accessible&gt;false&lt;/accessible&gt;
        &lt;!-- compiler.actionscript-file-encoding: specifies actionscript file encoding. If there is no BOM in the AS3 source files, the compiler will use this file encoding.--&gt;
        &lt;!-- compiler.actionscript-file-encoding usage:
        &lt;actionscript-file-encoding&gt;string&lt;/actionscript-file-encoding&gt;
        --&gt;
        &lt;!-- compiler.allow-source-path-overlap: checks if a source-path entry is a subdirectory of another source-path entry. It helps make the package names of MXML components unambiguous.--&gt;
        &lt;allow-source-path-overlap&gt;false&lt;/allow-source-path-overlap&gt;
        &lt;!-- compiler.as3: use the ActionScript 3 class based object model for greater performance and better error reporting. In the class based object model most built-in functions are implemented as fixed methods of classes.--&gt;
        &lt;as3&gt;true&lt;/as3&gt;
        &lt;!-- compiler.context-root: path to replace {context.root} tokens for service channel endpoints--&gt;
        &lt;!-- compiler.context-root usage:
        &lt;context-root&gt;context-path&lt;/context-root&gt;
        --&gt;
        &lt;!-- compiler.debug: generates a movie that is suitable for debugging--&gt;
        &lt;debug&gt;true&lt;/debug&gt;
        &lt;!-- compiler.defaults-css-files usage:
        &lt;defaults-css-files&gt;
           &lt;filename&gt;string&lt;/filename&gt;
           &lt;filename&gt;string&lt;/filename&gt;
        &lt;/defaults-css-files&gt;
        --&gt;
        &lt;!-- compiler.defaults-css-url: defines the location of the default style sheet. Setting this option overrides the implicit use of the defaults.css style sheet in the framework.swc file.--&gt;
        &lt;!-- compiler.defaults-css-url usage:
        &lt;defaults-css-url&gt;string&lt;/defaults-css-url&gt;
        --&gt;
        &lt;!-- compiler.define: define a global AS3 conditional compilation definition, e.g. -define=CONFIG::debugging,true or -define+=CONFIG::debugging,true (to append to existing definitions in flex-config.xml) --&gt;
        &lt;!-- compiler.define usage:
        &lt;define&gt;
           &lt;name&gt;string&lt;/name&gt;
           &lt;value&gt;string&lt;/value&gt;
           &lt;value&gt;string&lt;/value&gt;
        &lt;/define&gt;
        --&gt;
        &lt;!-- compiler.enable-runtime-design-layers usage:
        &lt;enable-runtime-design-layers&gt;boolean&lt;/enable-runtime-design-layers&gt;
        --&gt;
        &lt;!-- compiler.es: use the ECMAScript edition 3 prototype based object model to allow dynamic overriding of prototype properties. In the prototype based object model built-in functions are implemented as dynamic properties of prototype objects.--&gt;
        &lt;es&gt;false&lt;/es&gt;
        &lt;extensions&gt;
           &lt;!-- compiler.extensions.extension usage:
           &lt;extension&gt;
              &lt;extension&gt;string&lt;/extension&gt;
              &lt;parameters&gt;string&lt;/parameters&gt;
           &lt;/extension&gt;
           --&gt;
        &lt;/extensions&gt;
        &lt;!-- compiler.external-library-path: list of SWC files or directories to compile against but to omit from linking--&gt;
        &lt;external-library-path&gt;
           &lt;path-element&gt;C:\downloads\flex_sdk_4.1.0.16076\frameworks\libs\player\10.1\playerglobal.swc&lt;/path-element&gt;
        &lt;/external-library-path&gt;
        &lt;fonts&gt;
           &lt;!-- compiler.fonts.advanced-anti-aliasing: enables advanced anti-aliasing for embedded fonts, which provides greater clarity for small fonts.--&gt;
           &lt;advanced-anti-aliasing&gt;true&lt;/advanced-anti-aliasing&gt;
           &lt;!-- compiler.fonts.flash-type: enables FlashType for embedded fonts, which provides greater clarity for small fonts.--&gt;
           &lt;!-- compiler.fonts.flash-type usage:
           &lt;flash-type&gt;boolean&lt;/flash-type&gt;
           --&gt;
           &lt;languages&gt;
              &lt;!-- compiler.fonts.languages.language-range: a range to restrict the number of font glyphs embedded into the SWF--&gt;
              &lt;!-- compiler.fonts.languages.language-range usage:
              &lt;language-range&gt;
                 &lt;lang&gt;string&lt;/lang&gt;
                 &lt;range&gt;string&lt;/range&gt;
                 &lt;range&gt;string&lt;/range&gt;
              &lt;/language-range&gt;
              --&gt;
           &lt;/languages&gt;
           &lt;!-- compiler.fonts.local-font-paths usage:
           &lt;local-font-paths&gt;
              &lt;path-element&gt;string&lt;/path-element&gt;
              &lt;path-element&gt;string&lt;/path-element&gt;
           &lt;/local-font-paths&gt;
           --&gt;
           &lt;!-- compiler.fonts.local-fonts-snapshot: File containing system font data produced by flex2.tools.FontSnapshot.--&gt;
           &lt;local-fonts-snapshot&gt;${flexlib}/localFonts.ser&lt;/local-fonts-snapshot&gt;
           &lt;!-- compiler.fonts.managers: Compiler font manager classes, in policy resolution order--&gt;
           &lt;managers&gt;
              &lt;manager-class&gt;flash.fonts.JREFontManager&lt;/manager-class&gt;
              &lt;manager-class&gt;flash.fonts.BatikFontManager&lt;/manager-class&gt;
              &lt;manager-class&gt;flash.fonts.AFEFontManager&lt;/manager-class&gt;
              &lt;manager-class&gt;flash.fonts.CFFFontManager&lt;/manager-class&gt;
           &lt;/managers&gt;
           &lt;!-- compiler.fonts.max-cached-fonts: sets the maximum number of fonts to keep in the server cache.  The default value is 20.--&gt;
           &lt;max-cached-fonts&gt;20&lt;/max-cached-fonts&gt;
           &lt;!-- compiler.fonts.max-glyphs-per-face: sets the maximum number of character glyph-outlines to keep in the server cache for each font face. The default value is 1000.--&gt;
           &lt;max-glyphs-per-face&gt;1000&lt;/max-glyphs-per-face&gt;
        &lt;/fonts&gt;
        &lt;!-- compiler.headless-server: a flag to set when Flex is running on a server without a display--&gt;
        &lt;!-- compiler.headless-server usage:
        &lt;headless-server&gt;boolean&lt;/headless-server&gt;
        --&gt;
        &lt;!-- compiler.include-libraries: a list of libraries (SWCs) to completely include in the SWF--&gt;
        &lt;!-- compiler.include-libraries usage:
        &lt;include-libraries&gt;
           &lt;library&gt;string&lt;/library&gt;
           &lt;library&gt;string&lt;/library&gt;
        &lt;/include-libraries&gt;
        --&gt;
        &lt;!-- compiler.incremental: enables incremental compilation--&gt;
        &lt;!-- compiler.incremental usage:
        &lt;incremental&gt;boolean&lt;/incremental&gt;
        --&gt;
        &lt;!-- compiler.isolate-styles: enables the compiled application or module to set styles that only affect itself and its children--&gt;
        &lt;!-- compiler.isolate-styles usage:
        &lt;isolate-styles&gt;boolean&lt;/isolate-styles&gt;
        --&gt;
        &lt;!-- compiler.keep-all-type-selectors: disables the pruning of unused CSS type selectors--&gt;
        &lt;!-- compiler.keep-all-type-selectors usage:
        &lt;keep-all-type-selectors&gt;boolean&lt;/keep-all-type-selectors&gt;
        --&gt;
        &lt;!-- compiler.keep-as3-metadata: keep the specified metadata in the SWF--&gt;
        &lt;!-- compiler.keep-as3-metadata usage:
        &lt;keep-as3-metadata&gt;
           &lt;name&gt;string&lt;/name&gt;
           &lt;name&gt;string&lt;/name&gt;
        &lt;/keep-as3-metadata&gt;
        --&gt;
        &lt;!-- compiler.keep-generated-actionscript: save temporary source files generated during MXML compilation--&gt;
        &lt;keep-generated-actionscript&gt;false&lt;/keep-generated-actionscript&gt;
        &lt;!-- compiler.library-path: list of SWC files or directories that contain SWC files--&gt;
        &lt;library-path&gt;
           &lt;path-element&gt;C:\downloads\flex_sdk_4.1.0.16076\frameworks\libs\textLayout.swc&lt;/path-element&gt;
           &lt;path-element&gt;C:\downloads\flex_sdk_4.1.0.16076\frameworks\libs\osmf.swc&lt;/path-element&gt;
           &lt;path-element&gt;C:\downloads\flex_sdk_4.1.0.16076\frameworks\libs\framework.swc&lt;/path-element&gt;
           &lt;path-element&gt;C:\downloads\flex_sdk_4.1.0.16076\frameworks\libs\spark.swc&lt;/path-element&gt;
           &lt;path-element&gt;C:\downloads\flex_sdk_4.1.0.16076\frameworks\libs\sparkskins.swc&lt;/path-element&gt;
           &lt;path-element&gt;C:\downloads\flex_sdk_4.1.0.16076\frameworks\libs\rpc.swc&lt;/path-element&gt;
           &lt;path-element&gt;C:\downloads\flex_sdk_4.1.0.16076\frameworks\libs\datavisualization.swc&lt;/path-element&gt;
           &lt;path-element&gt;C:\downloads\flex_sdk_4.1.0.16076\frameworks\libs\flash-integration.swc&lt;/path-element&gt;
           &lt;path-element&gt;C:\downloads\flex_sdk_4.1.0.16076\frameworks\libs\utilities.swc&lt;/path-element&gt;
           &lt;path-element&gt;C:\downloads\flex_sdk_4.1.0.16076\frameworks\locale\{locale}&lt;/path-element&gt;
           &lt;path-element&gt;C:\Users\Avesta\Adobe Flash Builder 4\CloudObserverAdvancedPlayer\libs&lt;/path-element&gt;
        &lt;/library-path&gt;
        &lt;!-- compiler.locale: specifies the locale for internationalization--&gt;
        &lt;locale&gt;
           &lt;locale-element&gt;en_US&lt;/locale-element&gt;
        &lt;/locale&gt;
        &lt;!-- compiler.minimum-supported-version usage:
        &lt;minimum-supported-version&gt;string&lt;/minimum-supported-version&gt;
        --&gt;
        &lt;mxml&gt;
           &lt;!-- compiler.mxml.compatibility-version: specifies a compatibility version. e.g. -compatibility-version=2.0.1--&gt;
           &lt;!-- compiler.mxml.compatibility-version usage:
           &lt;compatibility-version&gt;version&lt;/compatibility-version&gt;
           --&gt;
           &lt;!-- compiler.mxml.minimum-supported-version usage:
           &lt;minimum-supported-version&gt;string&lt;/minimum-supported-version&gt;
           --&gt;
           &lt;!-- compiler.mxml.qualified-type-selectors usage:
           &lt;qualified-type-selectors&gt;boolean&lt;/qualified-type-selectors&gt;
           --&gt;
        &lt;/mxml&gt;
        &lt;namespaces&gt;
           &lt;!-- compiler.namespaces.namespace: Specify a URI to associate with a manifest of components for use as MXML elements--&gt;
           &lt;namespace&gt;
              &lt;uri&gt;http://ns.adobe.com/mxml/2009&lt;/uri&gt;
              &lt;manifest&gt;mxml-2009-manifest.xml&lt;/manifest&gt;
           &lt;/namespace&gt;
           &lt;namespace&gt;
              &lt;uri&gt;library://ns.adobe.com/flex/spark&lt;/uri&gt;
              &lt;manifest&gt;spark-manifest.xml&lt;/manifest&gt;
           &lt;/namespace&gt;
           &lt;namespace&gt;
              &lt;uri&gt;library://ns.adobe.com/flex/mx&lt;/uri&gt;
              &lt;manifest&gt;mx-manifest.xml&lt;/manifest&gt;
           &lt;/namespace&gt;
           &lt;namespace&gt;
              &lt;uri&gt;http://www.adobe.com/2006/mxml&lt;/uri&gt;
              &lt;manifest&gt;mxml-manifest.xml&lt;/manifest&gt;
           &lt;/namespace&gt;
        &lt;/namespaces&gt;
        &lt;!-- compiler.omit-trace-statements: toggle whether trace statements are omitted--&gt;
        &lt;omit-trace-statements&gt;true&lt;/omit-trace-statements&gt;
        &lt;!-- compiler.optimize: Enable post-link SWF optimization--&gt;
        &lt;optimize&gt;true&lt;/optimize&gt;
        &lt;!-- compiler.report-invalid-styles-as-warnings: enables reporting of invalid styles as warnings--&gt;
        &lt;!-- compiler.report-invalid-styles-as-warnings usage:
        &lt;report-invalid-styles-as-warnings&gt;boolean&lt;/report-invalid-styles-as-warnings&gt;
        --&gt;
        &lt;!-- compiler.services: path to Flex Data Services configuration file--&gt;
        &lt;!-- compiler.services usage:
        &lt;services&gt;filename&lt;/services&gt;
        --&gt;
        &lt;!-- compiler.show-actionscript-warnings: runs the AS3 compiler in a mode that detects legal but potentially incorrect code--&gt;
        &lt;show-actionscript-warnings&gt;false&lt;/show-actionscript-warnings&gt;
        &lt;!-- compiler.show-binding-warnings: toggle whether warnings generated from data binding code are displayed--&gt;
        &lt;show-binding-warnings&gt;false&lt;/show-binding-warnings&gt;
        &lt;!-- compiler.show-invalid-css-property-warnings: toggle whether invalid css property warnings are reported--&gt;
        &lt;!-- compiler.show-invalid-css-property-warnings usage:
        &lt;show-invalid-css-property-warnings&gt;boolean&lt;/show-invalid-css-property-warnings&gt;
        --&gt;
        &lt;!-- compiler.show-shadowed-device-font-warnings: toggles whether warnings are displayed when an embedded font name shadows a device font name--&gt;
        &lt;show-shadowed-device-font-warnings&gt;false&lt;/show-shadowed-device-font-warnings&gt;
        &lt;!-- compiler.show-unused-type-selector-warnings: toggle whether warnings generated from unused CSS type selectors are displayed--&gt;
        &lt;show-unused-type-selector-warnings&gt;false&lt;/show-unused-type-selector-warnings&gt;
        &lt;!-- compiler.source-path: list of path elements that form the roots of ActionScript class hierarchies--&gt;
        &lt;source-path&gt;
           &lt;path-element&gt;C:\Users\Avesta\Adobe Flash Builder 4\CloudObserverAdvancedPlayer\src&lt;/path-element&gt;
        &lt;/source-path&gt;
        &lt;!-- compiler.strict: runs the AS3 compiler in strict error checking mode.--&gt;
        &lt;strict&gt;true&lt;/strict&gt;
        &lt;!-- compiler.theme: list of CSS or SWC files to apply as a theme--&gt;
        &lt;theme&gt;
           &lt;filename&gt;themes/Spark/spark.css&lt;/filename&gt;
        &lt;/theme&gt;
        &lt;theme&gt;
           &lt;filename&gt;C:\downloads\flex_sdk_4.1.0.16076\frameworks\themes\Wireframe\wireframe.swc&lt;/filename&gt;
        &lt;/theme&gt;
        &lt;!-- compiler.use-resource-bundle-metadata: determines whether resources bundles are included in the application.--&gt;
        &lt;use-resource-bundle-metadata&gt;true&lt;/use-resource-bundle-metadata&gt;
        &lt;!-- compiler.verbose-stacktraces: save callstack information to the SWF for debugging--&gt;
        &lt;verbose-stacktraces&gt;false&lt;/verbose-stacktraces&gt;
        &lt;!-- compiler.warn-array-tostring-changes: Array.toString() format has changed.--&gt;
        &lt;warn-array-tostring-changes&gt;false&lt;/warn-array-tostring-changes&gt;
        &lt;!-- compiler.warn-assignment-within-conditional: Assignment within conditional.--&gt;
        &lt;warn-assignment-within-conditional&gt;true&lt;/warn-assignment-within-conditional&gt;
        &lt;!-- compiler.warn-bad-array-cast: Possibly invalid Array cast operation.--&gt;
        &lt;warn-bad-array-cast&gt;true&lt;/warn-bad-array-cast&gt;
        &lt;!-- compiler.warn-bad-bool-assignment: Non-Boolean value used where a Boolean value was expected.--&gt;
        &lt;warn-bad-bool-assignment&gt;true&lt;/warn-bad-bool-assignment&gt;
        &lt;!-- compiler.warn-bad-date-cast: Invalid Date cast operation.--&gt;
        &lt;warn-bad-date-cast&gt;true&lt;/warn-bad-date-cast&gt;
        &lt;!-- compiler.warn-bad-es3-type-method: Unknown method.--&gt;
        &lt;warn-bad-es3-type-method&gt;true&lt;/warn-bad-es3-type-method&gt;
        &lt;!-- compiler.warn-bad-es3-type-prop: Unknown property.--&gt;
        &lt;warn-bad-es3-type-prop&gt;true&lt;/warn-bad-es3-type-prop&gt;
        &lt;!-- compiler.warn-bad-nan-comparison: Illogical comparison with NaN. Any comparison operation involving NaN will evaluate to false because NaN != NaN.--&gt;
        &lt;warn-bad-nan-comparison&gt;true&lt;/warn-bad-nan-comparison&gt;
        &lt;!-- compiler.warn-bad-null-assignment: Impossible assignment to null.--&gt;
        &lt;warn-bad-null-assignment&gt;true&lt;/warn-bad-null-assignment&gt;
        &lt;!-- compiler.warn-bad-null-comparison: Illogical comparison with null.--&gt;
        &lt;warn-bad-null-comparison&gt;true&lt;/warn-bad-null-comparison&gt;
        &lt;!-- compiler.warn-bad-undefined-comparison: Illogical comparison with undefined.  Only untyped variables (or variables of type *) can be undefined.--&gt;
        &lt;warn-bad-undefined-comparison&gt;true&lt;/warn-bad-undefined-comparison&gt;
        &lt;!-- compiler.warn-boolean-constructor-with-no-args: Boolean() with no arguments returns false in ActionScript 3.0.  Boolean() returned undefined in ActionScript 2.0.--&gt;
        &lt;warn-boolean-constructor-with-no-args&gt;false&lt;/warn-boolean-constructor-with-no-args&gt;
        &lt;!-- compiler.warn-changes-in-resolve: __resolve is no longer supported.--&gt;
        &lt;warn-changes-in-resolve&gt;false&lt;/warn-changes-in-resolve&gt;
        &lt;!-- compiler.warn-class-is-sealed: Class is sealed.  It cannot have members added to it dynamically.--&gt;
        &lt;warn-class-is-sealed&gt;true&lt;/warn-class-is-sealed&gt;
        &lt;!-- compiler.warn-const-not-initialized: Constant not initialized.--&gt;
        &lt;warn-const-not-initialized&gt;true&lt;/warn-const-not-initialized&gt;
        &lt;!-- compiler.warn-constructor-returns-value: Function used in new expression returns a value.  Result will be what the function returns, rather than a new instance of that function.--&gt;
        &lt;warn-constructor-returns-value&gt;false&lt;/warn-constructor-returns-value&gt;
        &lt;!-- compiler.warn-deprecated-event-handler-error: EventHandler was not added as a listener.--&gt;
        &lt;warn-deprecated-event-handler-error&gt;false&lt;/warn-deprecated-event-handler-error&gt;
        &lt;!-- compiler.warn-deprecated-function-error: Unsupported ActionScript 2.0 function.--&gt;
        &lt;warn-deprecated-function-error&gt;true&lt;/warn-deprecated-function-error&gt;
        &lt;!-- compiler.warn-deprecated-property-error: Unsupported ActionScript 2.0 property.--&gt;
        &lt;warn-deprecated-property-error&gt;true&lt;/warn-deprecated-property-error&gt;
        &lt;!-- compiler.warn-duplicate-argument-names: More than one argument by the same name.--&gt;
        &lt;warn-duplicate-argument-names&gt;true&lt;/warn-duplicate-argument-names&gt;
        &lt;!-- compiler.warn-duplicate-variable-def: Duplicate variable definition --&gt;
        &lt;warn-duplicate-variable-def&gt;true&lt;/warn-duplicate-variable-def&gt;
        &lt;!-- compiler.warn-for-var-in-changes: ActionScript 3.0 iterates over an object's properties within a "for x in target" statement in random order.--&gt;
        &lt;warn-for-var-in-changes&gt;false&lt;/warn-for-var-in-changes&gt;
        &lt;!-- compiler.warn-import-hides-class: Importing a package by the same name as the current class will hide that class identifier in this scope.--&gt;
        &lt;warn-import-hides-class&gt;true&lt;/warn-import-hides-class&gt;
        &lt;!-- compiler.warn-instance-of-changes: Use of the instanceof operator.--&gt;
        &lt;warn-instance-of-changes&gt;true&lt;/warn-instance-of-changes&gt;
        &lt;!-- compiler.warn-internal-error: Internal error in compiler.--&gt;
        &lt;warn-internal-error&gt;true&lt;/warn-internal-error&gt;
        &lt;!-- compiler.warn-level-not-supported: _level is no longer supported. For more information, see the flash.display package.--&gt;
        &lt;warn-level-not-supported&gt;true&lt;/warn-level-not-supported&gt;
        &lt;!-- compiler.warn-missing-namespace-decl: Missing namespace declaration (e.g. variable is not defined to be public, private, etc.).--&gt;
        &lt;warn-missing-namespace-decl&gt;true&lt;/warn-missing-namespace-decl&gt;
        &lt;!-- compiler.warn-negative-uint-literal: Negative value will become a large positive value when assigned to a uint data type.--&gt;
        &lt;warn-negative-uint-literal&gt;true&lt;/warn-negative-uint-literal&gt;
        &lt;!-- compiler.warn-no-constructor: Missing constructor.--&gt;
        &lt;warn-no-constructor&gt;false&lt;/warn-no-constructor&gt;
        &lt;!-- compiler.warn-no-explicit-super-call-in-constructor: The super() statement was not called within the constructor.--&gt;
        &lt;warn-no-explicit-super-call-in-constructor&gt;false&lt;/warn-no-explicit-super-call-in-constructor&gt;
        &lt;!-- compiler.warn-no-type-decl: Missing type declaration.--&gt;
        &lt;warn-no-type-decl&gt;true&lt;/warn-no-type-decl&gt;
        &lt;!-- compiler.warn-number-from-string-changes: In ActionScript 3.0, white space is ignored and '' returns 0. Number() returns NaN in ActionScript 2.0 when the parameter is '' or contains white space.--&gt;
        &lt;warn-number-from-string-changes&gt;false&lt;/warn-number-from-string-changes&gt;
        &lt;!-- compiler.warn-scoping-change-in-this: Change in scoping for the this keyword.  Class methods extracted from an instance of a class will always resolve this back to that instance.  In ActionScript 2.0 this is looked up dynamically based on where the method is invoked from.--&gt;
        &lt;warn-scoping-change-in-this&gt;false&lt;/warn-scoping-change-in-this&gt;
        &lt;!-- compiler.warn-slow-text-field-addition: Inefficient use of += on a TextField.--&gt;
        &lt;warn-slow-text-field-addition&gt;true&lt;/warn-slow-text-field-addition&gt;
        &lt;!-- compiler.warn-unlikely-function-value: Possible missing parentheses.--&gt;
        &lt;warn-unlikely-function-value&gt;true&lt;/warn-unlikely-function-value&gt;
        &lt;!-- compiler.warn-xml-class-has-changed: Possible usage of the ActionScript 2.0 XML class.--&gt;
        &lt;warn-xml-class-has-changed&gt;false&lt;/warn-xml-class-has-changed&gt;
     &lt;/compiler&gt;
     &lt;!-- debug-password: the password to include in debuggable SWFs--&gt;
     &lt;!-- debug-password usage:
     &lt;debug-password&gt;string&lt;/debug-password&gt;
     --&gt;
     &lt;!-- default-background-color: default background color (may be overridden by the application code)--&gt;
     &lt;default-background-color&gt;0xFFFFFF&lt;/default-background-color&gt;
     &lt;!-- default-frame-rate: default frame rate to be used in the SWF.--&gt;
     &lt;default-frame-rate&gt;24&lt;/default-frame-rate&gt;
     &lt;!-- default-script-limits: default script execution limits (may be overridden by root attributes)--&gt;
     &lt;default-script-limits&gt;
        &lt;max-recursion-depth&gt;1000&lt;/max-recursion-depth&gt;
        &lt;max-execution-time&gt;60&lt;/max-execution-time&gt;
     &lt;/default-script-limits&gt;
     &lt;!-- default-size: default application size (may be overridden by root attributes in the application)--&gt;
     &lt;default-size&gt;
        &lt;width&gt;500&lt;/width&gt;
        &lt;height&gt;375&lt;/height&gt;
     &lt;/default-size&gt;
     &lt;!-- externs: a list of symbols to omit from linking when building a SWF--&gt;
     &lt;!-- externs usage:
     &lt;externs&gt;
        &lt;symbol&gt;string&lt;/symbol&gt;
        &lt;symbol&gt;string&lt;/symbol&gt;
     &lt;/externs&gt;
     --&gt;
     &lt;frames&gt;
        &lt;!-- frames.frame: A SWF frame label with a sequence of classnames that will be linked onto the frame.--&gt;
        &lt;!-- frames.frame usage:
        &lt;frame&gt;
           &lt;label&gt;string&lt;/label&gt;
           &lt;classname&gt;string&lt;/classname&gt;
        &lt;/frame&gt;
        --&gt;
     &lt;/frames&gt;
     &lt;framework&gt;halo&lt;/framework&gt;
     &lt;!-- include-resource-bundles: a list of resource bundles to include in the output SWC--&gt;
     &lt;!-- include-resource-bundles usage:
     &lt;include-resource-bundles&gt;
        &lt;bundle&gt;string&lt;/bundle&gt;
        &lt;bundle&gt;string&lt;/bundle&gt;
     &lt;/include-resource-bundles&gt;
     --&gt;
     &lt;!-- includes: a list of symbols to always link in when building a SWF--&gt;
     &lt;!-- includes usage:
     &lt;includes&gt;
        &lt;symbol&gt;string&lt;/symbol&gt;
        &lt;symbol&gt;string&lt;/symbol&gt;
     &lt;/includes&gt;
     --&gt;
     &lt;!-- link-report: Output a XML-formatted report of all definitions linked into the application.--&gt;
     &lt;!-- link-report usage:
     &lt;link-report&gt;filename&lt;/link-report&gt;
     --&gt;
     &lt;!-- load-config: load a file containing configuration options--&gt;
     &lt;load-config&gt;${flexlib}/${configname}-config.xml&lt;/load-config&gt;
     &lt;!-- load-externs: an XML file containing &lt;def&gt;, &lt;pre&gt;, and &lt;ext&gt; symbols to omit from linking when building a SWF--&gt;
     &lt;!-- load-externs usage:
     &lt;load-externs&gt;filename&lt;/load-externs&gt;
     --&gt;
     &lt;metadata&gt;
        &lt;!-- metadata.contributor: A contributor's name to store in the SWF metadata--&gt;
        &lt;!-- metadata.contributor usage:
        &lt;contributor&gt;name&lt;/contributor&gt;
        --&gt;
        &lt;!-- metadata.creator: A creator's name to store in the SWF metadata--&gt;
        &lt;creator&gt;unknown&lt;/creator&gt;
        &lt;!-- metadata.date: The creation date to store in the SWF metadata--&gt;
        &lt;!-- metadata.date usage:
        &lt;date&gt;text&lt;/date&gt;
        --&gt;
        &lt;!-- metadata.description: The default description to store in the SWF metadata--&gt;
        &lt;description&gt;http://www.adobe.com/products/flex&lt;/description&gt;
        &lt;!-- metadata.language: The language to store in the SWF metadata (i.e. EN, FR)--&gt;
        &lt;language&gt;EN&lt;/language&gt;
        &lt;!-- metadata.localized-description: A localized RDF/XMP description to store in the SWF metadata--&gt;
        &lt;!-- metadata.localized-description usage:
        &lt;localized-description&gt;
           &lt;text&gt;string&lt;/text&gt;
           &lt;lang&gt;string&lt;/lang&gt;
           &lt;lang&gt;string&lt;/lang&gt;
        &lt;/localized-description&gt;
        --&gt;
        &lt;!-- metadata.localized-title: A localized RDF/XMP title to store in the SWF metadata--&gt;
        &lt;!-- metadata.localized-title usage:
        &lt;localized-title&gt;
           &lt;title&gt;string&lt;/title&gt;
           &lt;lang&gt;string&lt;/lang&gt;
           &lt;lang&gt;string&lt;/lang&gt;
        &lt;/localized-title&gt;
        --&gt;
        &lt;!-- metadata.publisher: A publisher's name to store in the SWF metadata--&gt;
        &lt;publisher&gt;unknown&lt;/publisher&gt;
        &lt;!-- metadata.title: The default title to store in the SWF metadata--&gt;
        &lt;title&gt;Adobe Flex 4 Application&lt;/title&gt;
     &lt;/metadata&gt;
     &lt;!-- raw-metadata: XML text to store in the SWF metadata (overrides metadata.* configuration)--&gt;
     &lt;!-- raw-metadata usage:
     &lt;raw-metadata&gt;text&lt;/raw-metadata&gt;
     --&gt;
     &lt;!-- resource-bundle-list: prints a list of resource bundles to a file for input to the compc compiler to create a resource bundle SWC file. --&gt;
     &lt;!-- resource-bundle-list usage:
     &lt;resource-bundle-list&gt;filename&lt;/resource-bundle-list&gt;
     --&gt;
     &lt;!-- runtime-shared-libraries: a list of runtime shared library URLs to be loaded before the application starts--&gt;
     &lt;!-- runtime-shared-libraries usage:
     &lt;runtime-shared-libraries&gt;
        &lt;url&gt;string&lt;/url&gt;
        &lt;url&gt;string&lt;/url&gt;
     &lt;/runtime-shared-libraries&gt;
     --&gt;
     &lt;!-- runtime-shared-library-path usage:
     &lt;runtime-shared-library-path&gt;
        &lt;path-element&gt;string&lt;/path-element&gt;
        &lt;rsl-url&gt;string&lt;/rsl-url&gt;
        &lt;policy-file-url&gt;string&lt;/policy-file-url&gt;
     &lt;/runtime-shared-library-path&gt;
     --&gt;
     &lt;!-- static-link-runtime-shared-libraries: statically link the libraries specified by the -runtime-shared-libraries-path option.--&gt;
     &lt;static-link-runtime-shared-libraries&gt;false&lt;/static-link-runtime-shared-libraries&gt;
     &lt;!-- target-player: specifies the version of the player the application is targeting. Features requiring a later version will not be compiled into the application. The minimum value supported is "9.0.0".--&gt;
     &lt;target-player&gt;10.1.0&lt;/target-player&gt;
     &lt;!-- tools-locale: specifies the locale used by the compiler when reporting errors and warnings.--&gt;
     &lt;!-- tools-locale usage:
     &lt;tools-locale&gt;string&lt;/tools-locale&gt;
     --&gt;
     &lt;!-- use-network: toggle whether the SWF is flagged for access to network resources--&gt;
     &lt;use-network&gt;true&lt;/use-network&gt;
     &lt;!-- verify-digests: verifies the libraries loaded at runtime are the correct ones.--&gt;
     &lt;verify-digests&gt;true&lt;/verify-digests&gt;
     &lt;!-- warnings: toggle the display of warnings--&gt;
     &lt;!-- warnings usage:
     &lt;warnings&gt;boolean&lt;/warnings&gt;
     --&gt;
  &lt;/flex-config&gt;
  </code></pre>
  
  <p>as you can see it contains lots of absolute paths. But we want to deploy this script. So we defiantly need to create a layer of abstraction for stuff like pathes to flex SDK ( here "C:\downloads\flex_sdk_4.1.0.16076\") or path to    <code>&lt;path-element&gt;C:\Users\Avesta\Adobe Flash Builder 4\CloudObserverAdvancedPlayer\src&lt;/path-element&gt;</code> and of course path to libs  </p>
  
  <pre><code>&lt;path-element&gt;C:\Users\Avesta\Adobe Flash Builder 4\CloudObserverAdvancedPlayer\libs&lt;/path-element&gt;
  </code></pre>
  
  <p>Also fact that FB generates such "dirty" file seems strange to me.  Does not compiler knows where he is in File System? And why we can not use dynamic addresses, relative paths?</p>
  
  <p>So generally some of this problems can be solved: for example we can (CAN WE?) create some varSdk, varSource, varLibs in that xml and replace there content (<code>&lt;varSdk&gt;_varSdkContent_&lt;/varSdk&gt;</code>)with such scripts (<a href="https://stackoverflow.com/questions/5477209/how-to-replace-text-in-text-file-using-bat-file-script">windows - bat</a>, <a href="https://stackoverflow.com/questions/5477724/how-to-replace-text-in-text-file-using-sh-file-script">linux, mac - sh</a>) put that scripts somewhere into our project and add th them line that compiles all project like:</p>
  
  <pre><code>mxmlc MainApp.mxml load-config flex-config.xml output /pathToRelease
  </code></pre>
  
  <p>So... my questions are</p>
  
  <ul>
  <li>Can ve use relative paths in flex-config file?</li>
  <li>Can compiler give us link to where he is?</li>
  </ul>
  
  <p>or if first 2 are not solvable:</p>
  
  <ul>
  <li>How to create variables in that flex-config file?</li>
  <li>How than to use tham inside of it?</li>
  </ul>