PDA

View Full Version : progress bar reloading



liqidhed
05-30-2005, 11:29 PM
hello,
i added a progress bar to my movie that shows the progress of a sound loading. its mode is polled and its source is set to a sound file in the play function i created. it works perfectly the first time but the only problem is that when its done loading it stays at 100% even when its called again. How can i make it so that the next time the play fucntion is called itll reset it sell and start loading from zero. Any help would be greatly appreciated.
Thank You.
yiannis

PS these forums are awesome, great job

NTD
05-31-2005, 01:26 AM
Hi,

Post some sample code of how you have the progress bar set up. I suspect all you need is an if statment to clear the textfield if the totalBytes>=100. Something else to keep in mind is that once something is cached in the users computer, even something as big as an MP3 file, the download time is essentially skipped because the data is already in memory.

liqidhed
05-31-2005, 05:26 AM
i actually figured out how to do it. I just created an instance of the ProgressBar and destroyed it when its done. ive been using it to show the progress of mp3s and my new problem is that when it has finished loading it restarts the song. i have no idea why that is yet.