Groups | Blog | Home
all groups > flash actionscript > june 2004 >

flash actionscript : Progress Bar in "manual" mode


Carlos Lerma
6/8/2004 10:02:14 PM
Hi,

I have a result set that I add in a grid, So i want to use the progress Bar to
show the advance of the data load into the grid...

So, I used the mode as "manual" but It did not work!!!

then I back to a simple example, and it not works, see the code (2 layers and
in the first frame appear my progress bar and also in the 1st, appear the code)


var i,j,k,r;
var max = 100000;
pBar.mode = "manual";
pBar.minimum = 0;
pBar.maximum = max;
pBar.label = "Loading...";
var percent = 0;
for (i=0; i < max; i++) {

percent = i / max* 100;
//trace(percent);
pBar.setProgress(percent, 100);

}
stop();



but it did not work!!!! Please help me!!!!


Carlos Lerma
6/10/2004 3:57:07 PM
AddThis Social Bookmark Button