1 person found this helpful
1. The following ENTER_FRAME
2. Flash is single-threaded and a deferred renderer, so there is no way to
show progress when running a sequence of code. Best to do is to break up
the work onto separate frames.
1. It's just confusing that after creating a component, I have to wait for TWO frames, even if I use validateNow just after creation. Subsequent updates are reflected at the next frame, as you say.
2. I've found that calling validateNow followed by UIComponent.suspendBackgroundProcessing() allows me to update the progressbar at finer steps.
Flex uses both ENTER_FRAME and RENDER for callLater and to validate
components and those components sometimes go around for another validation
pass. If you get called on ENTER_FRAME it won't show up right away, but
will if you get called on RENDER.