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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:43:44+00:00 2026-05-23T10:43:44+00:00

Can anybody explain, why loader.close didn’t work? Btw i know about loading files from

  • 0

Can anybody explain, why loader.close didn’t work?
Btw i know about loading files from server thing.

for (var p:Number = 0; p < itemsOnPage; p++) 
{
    if (itterationStep != SqlRec.itemsArray.length) 
    {
        thumbImgLoader = new Loader();
        var imgName:String = SqlRec.itemsArray[itterationStep]["img"];
        thumbImgLoader.load(new URLRequest(GetXMLprefs.thumbsPath + imgName));
        thumbLoadersArray.push(thumbImgLoader);
        ...
    }
}

/////

if (ItemsBuilder.thumbLoadersArray) 
{
    if(ItemsBuilder.thumbLoadersArray.length > 0)
    {
        for (var i:Number = 0; i < ItemsBuilder.thumbLoadersArray.length; i++) 
        {
            try 
            {
                var obj:Loader = new Loader();
                obj = ItemsBuilder.thumbLoadersArray[i];
                obj.close();
                trace(">> "+obj.close);
            }catch (err:Error) 
            {
                trace(err)
            }
        }
        ItemsBuilder.thumbLoadersArray.splice(0, ItemsBuilder.thumbLoadersArray.length);
    }
}
  • 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-23T10:43:44+00:00Added an answer on May 23, 2026 at 10:43 am

    Are you getting anything out of the trace?

    Flash has an internal limit with how many simultaneous loads it can do at once. You’re loading 800 images in a loop, which means that the first ~780 or so will be overridden by the last 20 or so. The max I ever load at once is around 10 (I think BulkLoader has something similar). If you want to load in 800 images, use the array to keep track of what’s loading in. Something like:

    private var m_imagesLoaded:int = 0;
    private var m_toLoad:Array = null;
    
    private function _init():void
    {
        // create your array and set the first 10 or so loading
        this.m_toLoad = new Array( 800 );
        ...
    }
    
    private function _onImageLoad( e:Event ):void
    {
        // load the next one in the list
        this.m_imagesLoaded++;
        this.m_toLoad[this.m_imagesLoaded].load();
    
        // do whatever else
    }
    

    As for close(), it “Cancels a load() method operation that is currently in progress for the Loader instance.” If there’s no load() going on in the Loader, then nothing’s probably going to happen.

    P.S.: in your try statement, you’re creating a new Loader everytime, before assigning it to something else. Just change it to

    var obj:Loader = ItemsBuilder.thumbLoadersArray[i];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can anybody explain why uploaded php files treated by a server as a text
Can anybody explain how does foldr work? Take these examples: Prelude> foldr (-) 54
Can anybody explain me why an xsd file has 2 sub files (.cs and
Can anybody explain the following: The unique JSESSIONID generated by the server for every
Helo Can anybody explain me how to get configuration element from .config file. I
Possible Duplicate: How exactly does <script defer=“defer”> work? Can anybody explain me how defer
Can anybody explain about the SQL Range and List partitions with an example? i
Can anybody explain exactly how a web beacon works? I know they're generally used
Can anybody explain why the following c-style loop in a bash script doesn't work
Can anybody explain me, what is use of vector class? My Professor mentioned about

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.