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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:21:22+00:00 2026-05-17T17:21:22+00:00

I have a ProgressBar in MANUAL mode responding an URLLoader’s progress events that seems

  • 0

I have a ProgressBar in MANUAL mode responding an URLLoader’s progress events that seems to get drawn far less frequently than I would like. If I debug the app, I can see many events firing from the URLLoader yet it seems that the ProgressBar is being re-drawn at some random and slow rate.

Now if this was my own code (URLLoader is a black box), I would pause once in a while to let the UI update, say via loop with a timer. I presume that the URLLoader itself is blocking the main thread from processing drawing code. Adding validateNow() and invalidateDisplayList() does not seem to help much.

private function onLoadProgress(resource: TResource, evt: ProgressEvent): void 
{
  _progressDialog.prbCurrentItem.setProgress(evt.bytesLoaded, evt.bytesTotal);
  _progressDialog.prbCurrentItem.validateNow();
  _progressDialog.prbCurrentItem.invalidateDisplayList();
}

Now there are many TResources (just a class that can manage its data) being loaded in sequence, but the URLLoader is so greedy that it does not let the UI get updated more than a few times when loading & processing (parsing into XML objects) 50 or so 10KB files. So just counting which files loaded visually does not work either; I’m lucky to get 2-3 screen updates the entire time.

Loading a 700MB file looks much better, but again the progress bar updates are random and slow.

Additionally, I’d like to know if there is any way to influence or even control the rate at which ProgressEvents are fired by the URLLoader class. I have not been able to find at what rate it normally dispatches progress events either; is it at a fixed percentage per file or every x frames or milliseconds?

As these are local files, would I be better off not using the URLLoader class and instead switching to FileStream?

Environment

  • Flex 4.1.0.16076 SDK
  • Compiling to AIR app
  • App frameRate is 60
  • OS is Windows 7 x64

My bad, should have looked harder.

  .-'---`-.
,'          `.
|             \
|              \
\           _  \
,\  _    ,'-,/-)\
( * \ \,' ,' ,'-)
 `._,)     -',-')
   \/         ''/
    )        / /
   /       ,'-'
  • 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-17T17:21:23+00:00Added an answer on May 17, 2026 at 5:21 pm

    Provided that you have a regular connection , it is actually surprising that the loading progress of a 700MB file is not accurately represented with your Progress Bar. You also state that when debugging you can see the events being fired. This would lead me to think that the problem is on the display side. You have provided the code for the progress listener, it would be interesting to see what the code does on the view.

    Displaying loading progress is quite a common task which works fine on many applications, so , although this can’t be excluded , I wouldn’t blame URLLoader right off the bat. Do you have any other processes going on whilst loading , any possible interferences?

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

Sidebar

Related Questions

I have to implement a progressbar that show the progress of a report generation,
I have a function that simply fills a progress bar. private void FillProgressBar(ProgressBar bar,
I have an image called 'progressbar.png'. Is there a way that I could crop
I have the basic jQueryUI progress bar code here; <script> $(function() { $(#progressbar).progressbar({ value:
I have a form that has several controls: ProgressBar at the top of the
I have learn how to get progressbar works with perticular task from here .
I have just installed leksah following the user manual . The manual says that
I have tried to implement the ProgressBar in my application that gets displayed when
I have set Horizontal ProgressBar . I would like to change the progress color
I have an AsyncTask with an indeterminate ProgressBar that typically executes very quickly, but

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.