Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-30-2009, 03:52 PM   #1
Senior Member
Join Date: Jan 2003
Posts: 153
Default ProgressBar not updating no matter what I try


I'm working on a progressBar for the loading of several local files in an AIR app. I am calling an update function out of a loop that runs on every line of a file that has loaded. I can't, for the life of me, get the progressbar to visually update. I've tried just about everything with the progressBar, manual mode, event mode (dispatching my own ProgressEvents, etc.) and nothing will work. I'm running mac os x10.4 and compiling for flash player 9. Anybody have any ideas. Here is a code snippet from where I'm updating the progressbar.

Like I said, I can verify, through breakpoints, that setPercentage is getting called, but no visual result displayed.

<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml">
<!--<mxissolve id="myShow" duration="500" alphaFrom="0.0" alphaTo="1.0"/>-->
import com.widgetmakers.coolwidget.globals.MessageStrings ;

[Bindable] private var progressLabel:String = MessageStrings.EXTRACTING_INVOICE_INFO;

public function setPercentage(thePercentage:Number):void {
var theP:Number = Math.round(thePercentage);
this.bar.setProgress( theP, 100 );


<mx:ProgressBar id="bar" labelPlacement="bottom" themeColor="#F20D7A"
minimum="0" visible="true" maximum="100" label="{this.progressLabel}"
direction="right" mode="manual" width="100%"/>
shizny is offline   Reply With Quote
Old 07-15-2009, 07:30 PM   #2
Registered User
Join Date: Jul 2009
Posts: 1

I know I'm resurrecting a dead thread, but I'm having the exact same problem with no solution in sight. I can invalidate then validate everything and watch it step through the code, it even runs the drawRect() to redraw the rectangle, but it visually does not change.

My code goes like this

Set progressBar to 12% (invalidate and validate everything having to do with the bar)
Set progressBar to 56% (numbers are arbitrary)

The progress bar is not visually updating to 12% during the work, it only updates when flash finishes everything and by then the work is all done and progressBar is now at 56%, making the progressBar kinda useless.

I have also tried making the doWork() be called by callLater(doWork) and by setTimeout(doWork) with no success. I might be able to switch to even mode however switching to polled mode is out of the question. Most of the progress bars I can find online are only used when down/up loading a file where polled mode can be used, instead of in my case where I'm waiting on flex calculations or backend (Java server) calculations or loading.
Raptoer is offline   Reply With Quote
Old 12-29-2009, 04:03 PM   #3
Registered User
Join Date: Sep 2009
Posts: 13

Yeah, same problem here. This simply doesn't work in ActionScript.

If I do it in Flex using the mx:ProgressBar it works. Just not in ActionScript.

Wish this would be fixed. Need to update my PB in ActionScript.
rexdtripod is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
itemRenderer on progressBar in a DataGrid fedotenko Flex 2, 3 & 4 0 06-18-2008 08:20 AM
Access a ProgressBar from a custom class chriscox ActionScript 2.0 2 09-11-2007 09:31 PM
ProgressBar Class JustinMs66 ActionScript 3.0 4 06-28-2007 05:15 PM
Trouble Reskinning ProgressBar Component vikktor Components 0 04-05-2005 06:04 AM
progressbar weirdness eyecircus ActionScript 2.0 1 08-26-2004 06:44 PM

All times are GMT. The time now is 08:30 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.