# Downloading and then playing sound

**URL:** https://forum.kirupa.com/t/downloading-and-then-playing-sound/93618
**Category:** Uncategorized
**Created:** [November 2, 2003, 11:18pm UTC](https://forum.kirupa.com/t/downloading-and-then-playing-sound/93618 "2003-11-02T23:18:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![imported\_mucho](https://avatars.discourse-cdn.com/v4/letter/i/3da27b/32.png) [@imported\_mucho](https://forum.kirupa.com/u/imported_mucho)
#### Post date: [November 2, 2003, 11:18pm UTC](https://forum.kirupa.com/t/downloading-and-then-playing-sound/93618/1 "2003-11-02T23:18:59Z")

</div>

Hi All,

I’m using this script do download a loop and after the dl it should start playing…doesn’t work though…  
Anyone and idea?

thx,

m.  
to d…

onClipEvent (load) {  
mySound = new Sound();  
mySound.loadSound(“goodloop.mp3”, false);  
}  
onClipEvent (enterFrame) {  
downloaded = mySound.getBytesLoaded();  
total = mySound.getBytesTotal();  
if (downloaded != total) {  
\_root.dl = “downloading loop…”;  
} else {  
complete = 1;  
\_root.dl = “”;

```
}

```

}

to start

if (\_root.mySlider.complete == 1) {  
\_root.mySlider.mySound.start(0, 99);  
}
