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 845237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:24:58+00:00 2026-05-15T06:24:58+00:00

We have a very large SWF hosted in a website which is just a

  • 0

We have a very large SWF hosted in a website which is just a repository of hundreds of movies/symbols. We load this SWF at the beginning with the Loader class but then the client will access a very few of them at that moment.

Is it possible to tell the loader to download symbols only when they’re needed? (as with applicationDomain.getDefinition(…)).

Thanks in advance.

  • 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-15T06:24:58+00:00Added an answer on May 15, 2026 at 6:24 am

    Don’t think so, you might need to load the whole swf before using getDefinition().

    A workaround I can think of is splitting the swf into many different ones.

    Either naming the swf’s by the class they contain, or storing some swf filename/contained classes pairs in a text file/xml and using that to load resources by name.

    Have a look at BulkLoader, it could save you some time.

    If you’re using the Flash IDE, I wrote a simple jsfl script that should make things
    less tedious:

    var doc   = fl.getDocumentDOM();
    var dir   = 'file:///' + doc.path.substr(0,(doc.path.lastIndexOf('/')+1));
    var lib   = doc.library;
    var code  = 'var loader : BulkLoader = new BulkLoader("assets");\n';
    var items = lib.items;
    var iNum  = items.length;
    var path;
    var name;
    
    fl.outputPanel.clear();
    
    for(var i = 0 ; i < iNum ; i++){
        if(items[i].linkageExportForAS){
            name = items[i].linkageClassName;
            path = dir+name+'.swf';
            items[i].exportSWF(path);
            code += 'loader.add("'+(name+'.swf')+'", {id:"'+name+'"});\n';
        }
    }
    
    fl.clipCopyString(code);
    fl.outputPanel.trace('symbols exported as swfs, code is in your clipboard');
    

    All it does is loops thought the library items, and for the symbols that are exported for actionscript, it exports a swf file(where the Class name is used as a filename), and generates a bulk-loader snippet.

    Easiest way to get it into Flash is this:

    1. Create a new Flash JavaScript
      File
      (File > New > Flash
      JavaScript File)
    2. Paste the code
    3. Save the file as ASSymbolsToFiles or something. It the file should
      default to the Commands folder,
      which means you could use it through
      the Commands menu. You can also
      set a keyboard shortcut, if needed.

    The generated code might not be perfect, but it gives you an idea, and it should be readable enough for easy tweaks.

    HTH,
    George

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

Sidebar

Related Questions

I have a very large (~6GB) SVN repository, for which I've written a batch
I have a very large file that looks like this (see below). I have
I have a very large app, 1.5 million lines of C++, which is currently
I have a very large code, a lot of which is legacy code. I
We have a very large app which has been designed exclusively by a single
I have a very large code base that contains extensive unit tests (using CppUnit).
We have some very large data files (5 gig to 1TB) where we need
I have a very large codebase (read: thousands of modules) that has code shared
I have a very large C project with many separate C files and headers
Here at work we have a very large application with multiple sub applications. (500

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.