How to show the current progressBar value of process within a loop in flex-as3?

前端 未结 2 1960
死守一世寂寞
死守一世寂寞 2021-01-28 04:21

I dont know how to show the current progress in progressBar component when the process is a loop that requires a lot of seconds to do the job. Inside the loop, i setProgress an

2条回答
  •  Happy的楠姐
    2021-01-28 04:48

    If you mean an ordinary loop like for or while the answer is: it is impossible. Loops in Flash are synchronous but all the animations (including programming) are frame based asynchronous. So the only way is to distribute your loop across multiply frames.

提交回复
热议问题