title: mxmlc and framework linkage - how to specify linkage as rsl
body: <p>I'm trying to build my flex 4 project using ant. In Flash Builder 4, in project properties it's possible to set the "Framework linkage" to one of "Merged into code", "Runtime Shared Library (RSL)" or "Use SDK Default (Runtime Shared library)". How can I set the equivalent as mxmlc options in build.xml?</p>
  
  <p>My current build.xml looks like this:</p>
  
  <pre><code>&lt;target name="myapp"&gt;
      &lt;mxmlc 
          file="${PROJECT_ROOT}/myapp.mxml" 
          output="${DEPLOY_DIR}/myapp.swf"
          actionscript-file-encoding="UTF-8"
          keep-generated-actionscript="false"
          warnings="false" optimize="true" incremental="false" &gt;
  
          &lt;load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/&gt; 
  
          &lt;source-path path-element="${FLEX_FRAMEWORKS}"/&gt; 
  
          &lt;compiler.debug&gt;true&lt;/compiler.debug&gt;
  
          &lt;runtime-shared-library-path path-element="${FLEX_FRAMEWORKS}/libs/framework.swc"&gt;
              &lt;url rsl-url="framework_4.0.0.14159.swz"/&gt;
              &lt;url rsl-url="framework_4.0.0.14159.swf"/&gt;
          &lt;/runtime-shared-library-path&gt;                       
  
          &lt;compiler.source-path path-element="src"/&gt;
  
          &lt;!-- List of external libraries --&gt;
          &lt;compiler.source-path path-element="${MY_LIB}/src" /&gt;
  
          &lt;!-- List of SWC files or directories that contain SWC files. --&gt;
          &lt;compiler.library-path dir="libs" append="true"&gt;
              &lt;include name="*.swc" /&gt;
          &lt;/compiler.library-path&gt;
  
          &lt;copy todir="${DEPLOY_DIR}" file="${FLEX_FRAMEWORKS}/rsls/framework_4.0.0.14159.swz"/&gt;
          &lt;copy todir="${DEPLOY_DIR}" file="${FLEX_FRAMEWORKS}/rsls/framework_4.0.0.14159.swf"/&gt;
  
      &lt;/mxmlc&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>I assumed that setting the runtime-shared-library-path directive and copying the framework swf, swz files into my target folder would make things work, but this does not seem to be the case.</p>
  
  <p>The way I'm assessing whether this works is as follows: I use a custom preloader, and for it to work I need to have framework linkage as RSL. With "merged into code", my preloader gets stuck at a certain point and does not progress to my application swf. This is the same behavior i see when i use the above build.xml, which makes me think that the SWF is being built with framework linkage merged into code (rather than RSL linked).</p>
  
  <p>A related question to this is how to determine if my swf is using RSL or not. I guess I could look at the size of the compiled output. But it seems there should be a way to tell if I'm using the external framework file or it's being bundled into the SWF somehow, without my knowledge.</p>