# Volume slider

**URL:** https://forum.kirupa.com/t/volume-slider/34870
**Category:** Uncategorized
**Created:** [November 7, 2003, 9:38am UTC](https://forum.kirupa.com/t/volume-slider/34870 "2003-11-07T09:38:39Z")
**Posts on this page:** 3
**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/34870/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 = “”;  
}

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 7, 2003, 7:16pm UTC](https://forum.kirupa.com/t/volume-slider/34870/2 "2003-11-07T19:16:22Z")

</div>

By streaming the sound, it starts playing automatically after a certain amount has been downloaded 🙂 You play a sound streaming by using loadSound(“file.mp3”,true), where true indicates streaming and false not streaming.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 8, 2003, 10:31am UTC](https://forum.kirupa.com/t/volume-slider/34870/3 "2003-11-08T10:31:05Z")

</div>

Thanks, but decided to go with another audio player - [www.hopkins-online.co.uk/gtr/click.html](http://www.hopkins-online.co.uk/gtr/click.html)
