I'm working with Flex 3.
I'm drawing a lot of things using flash drawing API, so I want to use a ProgressBar to let user know the drawing progress.
1: Before all the drawings, a TitleWindow with progressBar is Poped.
2: After each small part is drawn, a ProgressEvent is sent. A listener listens to that event changes the progressBar.
3. After all drawing complete, the poped TitleWindow is removed.
However, what I get is: the program blocks until drawing complete; the progress window appear only after all drawing complete and disappear. So how can I keep UI sober in a long-run task?
Break up the task over several frames.
How? You mean using timer class?