# Progress bar with lstreaming audio

**URL:** <https://forum.kirupa.com/t/progress-bar-with-lstreaming-audio/259568>\
**Category:** Uncategorized\
**Created:** [May 6, 2008, 7:38pm UTC](https://forum.kirupa.com/t/progress-bar-with-lstreaming-audio/259568 "2008-05-06T19:38:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sparkdemon](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sparkdemon](https://forum.kirupa.com/u/sparkdemon)\
**Post date:** [May 6, 2008, 7:38pm UTC](https://forum.kirupa.com/t/progress-bar-with-lstreaming-audio/259568/1 "2008-05-06T19:38:20Z")

</div>

Hello again…

I need some help with creating a progress bar for a mp3 player that loads mp3s with loadSound()

The problem is that the progress bar is not working correctly while the music is streaming (not completely downloaded to cache).

I can understand why it is so… (sound.duration is changing untill download is complete)

I have a simple progress bar… no masking etc:- … just using the good old “\_xscale”  
now how to correct the problem… please advice…

☹
