Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
smontesa #1
Show the progress of an action script function
Sorry for my English :-(
I have a very long action script function, updating a database, and I want to
show their progress on screen with a component Progress Bar.
I am using a Progress Bar in mode=manual and a function like this:
private function longfunction() : void {
<bla,bla, bla>
pg.setProgress(10, 100);
pg.label= "Loading 10%";
<bla,bla, bla>
pg.setProgress(50, 100);
pg.label= "Loading 50%";
<bla,bla, bla>
pg.setProgress(100, 100);
pg.label= "Loading 100%";
}
But the progress bar not refresh in screen until ends the function. ?Why? How
I can force refresh screen in each progress?
smontesa Guest
-
CF Grid / Java Script / Action Script
Hi, Does anyone know of a good reference for the attributes CFgrid exposes in a flash form? eg. I would like to select the first row on load. ... -
Making progress, mp3 player script question
Hello, again. Thank you all for your help. I am building an mp3 player, right now I have .mp3 files in a folder along with my Flash file. The... -
Need Help with action script.
I am working on a project for one of my classes, and in it I want to be able to click on an apple (which is a button) and make it fall. I have tried... -
how to create a progress bar to control show
I'm not even sure what to call what I want. But I'd like to build a slide show of photos with a progress bar that would indicate how far along the... -
Script Error: MPEG Progress Bar
this is a known bug in director, dont worry, there's nothing wrong with your script. to remove the error, look here:... -
javamonjoe #2
Re: Show the progress of an action script function
You might try checking the mode of update defined for your progressBar. The
default mode is Event and you are using Manual. You do not need to be
concerned with your English. It is miles above my Spanish!
javamonjoe Guest
-
ntsiii #3
Re: Show the progress of an action script function
The Flash Player is essentially single threaded. The UI will not update until
the processing in the current frame is complete.
The only way to work around this is to break the processing up into parts.
Between the parts, use callLater() to allow the UI a chance to update.
You can maintain a counter variable outside your function. Have your function
start at the counter variable, and loop for some number of iterations(100?),
update the counter, then call itself again, using callLater().
Tracy
ntsiii Guest



Reply With Quote

