Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6628091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:05:25+00:00 2026-05-25T22:05:25+00:00

I’ve created a modular application where a parent SWF loads a number of other

  • 0

I’ve created a modular application where a parent SWF loads a number of other SWFs on demand. For optimization, I’ve created a standard RSL.

I’ve compiled common code into a swc, and recompiled the application swfs to reference this swc, using the following in my build.xml ANT task (for each swf in my application):

<static-link-runtime-shared-libraries>false</static-link-runtime-shared-libraries>
<runtime-shared-library-path path-element="${lib.loc}/RSL.swc">
    <url rsl-url="RSL.swf"/>
</runtime-shared-library-path>

I’ve extracted RSL.swf from RSL.swc and put this on my webserver in the same directory as the application swfs and container html file.

Now when I load my application, I get the message:

VerifyError: Error #1014: Class mx.core:BitmapAsset could not be found.

I can see this class included in the classes in RSL.swc / RSL.swf.

I’ve used fiddler to observe what is happening and I can see my Application swf file is loaded, but no attempt is made to get the RSL.swf.

Having set up the Application.swf file to use RSLs, I would have expected it to attempt loading RSL.swf before initialising, however this doesn’t happen. Can anyone suggest why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T22:05:26+00:00Added an answer on May 25, 2026 at 10:05 pm

    From http://livedocs.adobe.com/flex/3/html/help.html?content=rsl_02.html:

    “You cannot use RSLs in ActionScript-only projects if the base class is Sprite or MovieClip. RSLs require that the application’s base class, such as Application or SimpleApplication, understand RSL loading.”

    As my base class was Sprite, I had this error.

    In my case, it was better to compile all the required classes into my Application swf file, using the following steps:

    1. use compc to create a SWC with the files I want to include in my Application swf file
    2. use mxmlc with include-libraries pointing to the SWC file to include. Generate a linked file report (xml) using link-report
    3. compile each additional child swf with load-externs pointing to the linked file report (xml) – this excludes the files linked to the Application.swf from being compiled into each of the child swfs

    To achieve step 1:

    <!-- We define the global classes which will be compiled into the parent Application   
         swf, but excluded from the tool swfs. As pure actionscript projects with base 
         class of Sprite can't usually use RSLs, we are forcing these classes to be loaded 
         into the parent application, and excluded from the child applications, allowing an 
         "Rsl-like" optimisation -->
    
    <fileset id="rsl.inclusions" dir="${main.src.loc}">
        <include name="${main.src.loc}/path1/**/*.as"/>
        <include name="${main.src.loc}/path2/**/*.as"/>
        ...
    </fileset> 
    
    <pathconvert property="rsl.classes" pathsep=" " refid="rsl.inclusions">
    <chainedmapper>
        <globmapper from="${main.src.loc}\*" to="*"/>
            <mapper type="package" from="*.as" to="*"/>
    </chainedmapper> 
    </pathconvert>
    
    <!-- Compile SWC -->
    <compc output="${lib.loc}/MySwc.swc" 
           include-classes="${rsl.classes}">
    <static-link-runtime-shared-libraries>true</static-link-runtime-shared-libraries>   
    <source-path path-element="${main.src.loc}"/>
    </compc>
    

    To achieve step 2:

    <mxmlc file="${main.src.loc}/pathToApp/Application.as" 
       output="${bin.loc}/Application.swf" 
       debug="${debug}"
       use-network="true"
       link-report="WorkbenchLinkReport.xml"
       fork="true">
        <compiler.source-path path-element="${main.src.loc}" />
    <static-link-runtime-shared-libraries>true</static-link-runtime-shared-libraries>
    <include-libraries dir="${lib.loc}" append="true">
        <include name="MySwc.swc" />
    </include-libraries>
    </mxmlc> 
    

    To achieve step 3:

    <mxmlc file="${main.src.loc}/pathToChildSwf1/Child1.as"      
           output="${bin.loc}/Child1.swf" 
           debug="${debug}" 
           load-externs="WorkbenchLinkReport.xml" 
           fork="true">
    <compiler.source-path path-element="${main.src.loc}" />
    <static-link-runtime-shared-libraries>true</static-link-runtime-shared-libraries>
    <compiler.headless-server>true</compiler.headless-server>           
    </mxmlc>
    

    Another handy tip: using fork=”true” prevents the Java VM running out of memory where many swfs are being compiled.

    Hope this is helpful!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
Basically, what I'm trying to create is a page of div tags, each has
I am trying to understand how to use SyndicationItem to display feed which is
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.