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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:09:26+00:00 2026-05-13T08:09:26+00:00

I’ve got a bit of an issue… We have an application that needs to

  • 0

I’ve got a bit of an issue…

We have an application that needs to load a varying amount of row graphics depending on user input. Currently, each row SWF is being loaded repeatedly using Flash.Display.Loader. The swf is rather large (17k) and loading 10 or so of them takes some time. Is there a way to only load this file one time and use it multiple times?

I am extremely new to Flash/actionscript. If there is any other info needed just let me know and I will try to provide it.

thanks.

  • 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-13T08:09:27+00:00Added an answer on May 13, 2026 at 8:09 am

    Hey there, yes you can load it once; you can have all your assets in one SWF, and once loaded use them as it becomes necessary.

    For example, let’s say you want to use two graphical rows (movie clips), rowA and rowB, on the SWF you have to load; this SWF will act as your asset library. What you have to do is create the rowA and rowB movie clips in your library and set them to be exported for Actionscript use. (On your FLA’s library, right-click on them and click on properties, and select Export for Actionscript, on the Class input field enter “rowA” for this example, and “rowB” respectively). Now that you have you assets on your library (they don’t have to on stage) publish the swf file.

    Now, let’s move to the SWF where you’ll actually use this “library”. Here, you just need to load your SWF library (the one with the graphic assets) and you are good to go. Code example,

        // Our URL Request
        var req:URLRequest = new URLRequest();
        req.url = "assets.swf";
    
        // Let create our loader
        var loader:Loader = new Loader();
        loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLibLoaded);
    
        var context:LoaderContext = new LoaderContext();
        context.applicationDomain=ApplicationDomain.currentDomain;
    
        loader.load(req,context);
    
    
        function onLibLoaded(e:Event):void
        {
         createRows();
        }
    
        function createRows()
        {
         var myRowAClass:Class = loader.contentLoaderInfo.applicationDomain.getDefinition("rowA")  as  Class;
         var rowA:MovieClip = new myRowAClass() as MovieClip;
         this.addChild(rowA);
    
         var myRowBClass:Class = loader.contentLoaderInfo.applicationDomain.getDefinition("rowB")  as  Class;
         var rowB:MovieClip = new myRowBClass() as MovieClip;
         rowB.y = rowA.height;
         this.addChild(rowB);
        }
    

    As you can see, once your asset library is loaded, you can use the assets whichever way you like. Anyway, hope this helps, and hopefully is what you were looking for.

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

Sidebar

Ask A Question

Stats

  • Questions 252k
  • Answers 252k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer At first this looks like a problem of dueling APIs,… May 13, 2026 at 9:38 am
  • Editorial Team
    Editorial Team added an answer The first request at 3:20 caused some memory to be… May 13, 2026 at 9:38 am
  • Editorial Team
    Editorial Team added an answer Thanks. I found the answer by using PIVOT. In my… May 13, 2026 at 9:38 am

Related Questions

I've got a string that has curly quotes in it. I'd like to replace
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a French site that I want to parse, but am running into
I have text I am displaying in SIlverlight that is coming from a CMS

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.