# Music / volume question

**URL:** https://forum.kirupa.com/t/music-volume-question/111707
**Category:** Uncategorized
**Created:** [May 30, 2004, 2:06am UTC](https://forum.kirupa.com/t/music-volume-question/111707 "2004-05-30T02:06:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![seanc](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@seanc](https://forum.kirupa.com/u/seanc)
#### Post date: [May 30, 2004, 2:06am UTC](https://forum.kirupa.com/t/music-volume-question/111707/1 "2004-05-30T02:06:10Z")

</div>

in this tutorial: [http://www.kirupa.com/developer/mx/volume\_slider.htm](http://www.kirupa.com/developer/mx/volume_slider.htm)  
i’d like to know how to alter the script so that when the clip loads, the music plays automatically so you dont have to hit the play button. ( i want to use it on a site where there is music in the background and only a volume slider for controls (no play or stop buttons) can yall help? :evil:

---

<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: [May 30, 2004, 6:11am UTC](https://forum.kirupa.com/t/music-volume-question/111707/2 "2004-05-30T06:11:16Z")

</div>

bump

---

<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: [May 30, 2004, 6:21am UTC](https://forum.kirupa.com/t/music-volume-question/111707/3 "2004-05-30T06:21:18Z")

</div>

```auto

onClipEvent (load) {
  mySound = new Sound();
  mySound.loadSound("sound2.mp3", false);
}
onClipEvent (enterFrame) {
  downloaded = mySound.getBytesLoaded();
  total = mySound.getBytesTotal();
    if (downloaded != total) {
      _root.dl = "downloading song...";
    } else {
      complete = 1;
      _root.dl = "";
     mysound.start();
    }
    mySound.setVolume(_root.volume);
}

```

Really easy if you would take the time to read through the code 🙂

---

<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: [May 30, 2004, 7:50am UTC](https://forum.kirupa.com/t/music-volume-question/111707/4 "2004-05-30T07:50:20Z")

</div>

yea so i’m guessin i change the false to true?
