I have an SWF movie (1375 frames) and created a progress bar (248px wide) with a slider that moves according to the movie progress.
I'm doing that next way:
- Calculating the distance for the slider to be moved each frame (248 / 1375)
- On each ENTER_FRAME moving the slider for the calculated distance
The problem is - the movie ends far before the slider reaches the end of the progress bar.
I'm thinking that the distance (Step 1) is is somehow ends floored by Flash and the actual distance it moves the slider is smaller than required. That's why the movie ends, but the timeline control just passed the 2/3 of its way.
My question is - is there any solution for the problem? Or any other way to go, if it's a wrong one?
Thanks!