# Volume slider

**URL:** https://forum.kirupa.com/t/volume-slider/94008
**Category:** Uncategorized
**Created:** [November 7, 2003, 9:38am UTC](https://forum.kirupa.com/t/volume-slider/94008 "2003-11-07T09:38:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![muppet](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@muppet](https://forum.kirupa.com/u/muppet)
#### Post date: [November 7, 2003, 9:38am UTC](https://forum.kirupa.com/t/volume-slider/94008/1 "2003-11-07T09:38:39Z")

</div>

I am using this tutorial / FLA for some work;

[http://www.kirupa.com/developer/mx/volume\_slider.htm](http://www.kirupa.com/developer/mx/volume_slider.htm)

However, I want to stream a large(ish) file so want it playing while it still downloads.

Can anyone help me with the actionscript here, so instead of downloading then playing, it plays automatically (or even better, after a 15 second wait);

onClipEvent (enterFrame) {  
downloaded = mySound.getBytesLoaded();  
total = mySound.getBytesTotal();  
if (downloaded != total) {  
\_root.dl = “downloading song…”;  
} else {  
complete = 1;  
\_root.dl = “”;  
}
