# Volume control slider problem

**URL:** <https://forum.kirupa.com/t/volume-control-slider-problem/106553>\
**Category:** Uncategorized\
**Created:** [April 6, 2004, 10:27pm UTC](https://forum.kirupa.com/t/volume-control-slider-problem/106553 "2004-04-06T22:27:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![serch](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@serch](https://forum.kirupa.com/u/serch)\
**Post date:** [April 6, 2004, 10:27pm UTC](https://forum.kirupa.com/t/volume-control-slider-problem/106553/1 "2004-04-06T22:27:43Z")

</div>

I read the tutorial on how to make a volume control slider, but I don’t know what to do if I want the sound to play after it’s loaded, not wait for the user to press ‘play’, and start at a different point in the slider, instead of volume = zero.

I want the sound to play  
• automatically just after it’s loaded  
• at a certain volume (not volume = zero)

---

<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:** [April 6, 2004, 10:36pm UTC](https://forum.kirupa.com/t/volume-control-slider-problem/106553/2 "2004-04-06T22:36:08Z")

</div>

I just answered the second question about an hour ago:  
[http://www.kirupaforum.com/forums/showthread.php?t=52773#post477331](http://www.kirupaforum.com/forums/showthread.php?t=52773#post477331)

To play the sound automatically, define the [font=courier new]onLoad[/font] event and call the [font=courier new]Sound.start()[/font] method.

```auto
mySound.onLoad = mySound.start;

```

Oh! And welcome to kirupaForum. 🙂
