Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You will need to specify the path to the SWC of your custom libraries via the "path-element" attribute on the "runtime-shared-library-path" element and define the "rsl-url" in the "url" element which points to the SWF. Note that this is needed for each custom RSL individually.</p> <p>To achieve this you'll need to unpack the SWC and extract the SWF from it so that the compiler can copy it to the output folder.</p> <p>There is a comment on a post <a href="http://mate.asfusion.com/forums/topic.php?id=170" rel="noreferrer">here</a> that describes how to include the Mate framework as an RSL. I added the interesting part below.</p> <blockquote> <p>First, you have to extract the SWF from the SWC file yourself.</p> </blockquote> <pre><code>&lt;macrodef name="create-rsl"&gt; &lt;attribute name="rsl-dir" /&gt; &lt;attribute name="swc-dir" /&gt; &lt;attribute name="swc-name" /&gt; &lt;sequential&gt; &lt;unzip src="@{swc-dir}/@{swc-name}.swc" dest="@{rsl-dir}" &gt; &lt;patternset&gt; &lt;include name="library.swf" /&gt; &lt;/patternset&gt; &lt;/unzip&gt; &lt;move file="@{rsl-dir}/library.swf" tofile="@{rsl-dir}/@{swc-name}.swf"/&gt; &lt;/sequential&gt; &lt;/macrodef&gt; &lt;target name="extract-rsls"&gt; &lt;!-- Third parties RSLs --&gt; &lt;create-rsl rsl-dir="${build.rsls.dir}" swc-dir="${lib.dir}" swc-name="mate" /&gt; &lt;/target&gt; </code></pre> <blockquote> <p>Then, you need to put this SWF file as a RSL:</p> </blockquote> <pre><code>&lt;target name="compile"&gt; &lt;mxmlc file="${src.dir}/MyApplication.mxml" output="${build.dir}/MyApplication.swf" locale="${locale}" debug="false"&gt; &lt;!-- Flex default compile configuration --&gt; &lt;load-config filename="${flex.frameworks.dir}/flex-config.xml" /&gt; &lt;!-- Main source path --&gt; &lt;source-path path-element="${src.dir}" /&gt; &lt;runtime-shared-library-path path-element="${lib.dir}/mate.swc"&gt; &lt;url rsl-url="rsls/mate.swf" /&gt; &lt;/runtime-shared-library-path&gt; &lt;/mxmlc&gt; &lt;/target&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload