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!
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().