# Volume Control Problem

**URL:** <https://forum.kirupa.com/t/volume-control-problem/34811>\
**Category:** flash\
**Created:** [November 6, 2003, 5:22pm UTC](https://forum.kirupa.com/t/volume-control-problem/34811 "2003-11-06T17:22:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Herr\_Vredy](https://avatars.discourse-cdn.com/v4/letter/h/a88e4f/32.png) [@Herr\_Vredy](https://forum.kirupa.com/u/Herr_Vredy)\
**Post date:** [November 6, 2003, 5:22pm UTC](https://forum.kirupa.com/t/volume-control-problem/34811/1 "2003-11-06T17:22:46Z")

</div>

Hi there,

I followed this nice tutorial [http://www.kirupa.com/developer/mx/volume\_slider.htm](http://www.kirupa.com/developer/mx/volume_slider.htm), but I got a little problem.  
When I want to play another mp3 then the one that is given with the tutorial, it only plays 15 sec. of that song.  
I changed this to the code:

```auto
onClipEvent (load) {
  mySound = new Sound();
  mySound.loadSound("new_song.mp3", false);
}

```

Do I have to make another change to play the whole song?

And another question: is it possible to show the duration and the progress of the song (in sec. or in a progress-bar)?

Thanks a lot,

greetings

---

<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 6, 2003, 6:41pm UTC](https://forum.kirupa.com/t/volume-control-problem/34811/2 "2003-11-06T18:41:23Z")

</div>

I don’t se’e your problem being with volume, but anyway.

```auto

onClipEvent (load) {
  mySound = new Sound(this);
  mySound.loadSound("new_song.mp3", false);
//to start the song
mySound.start(0,999)
}

```

You can always make a progress bar using the duration and position properties of the sound object 🙂

[http://www.macromedia.com/support/flash/action\_scripts/actionscript\_dictionary/actionscript\_dictionary665.html](http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary665.html)  
[http://www.macromedia.com/support/flash/action\_scripts/actionscript\_dictionary/actionscript\_dictionary656.html](http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary656.html)

---

<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, 9:08pm UTC](https://forum.kirupa.com/t/volume-control-problem/34811/3 "2003-11-07T21:08:58Z")

</div>

OK, it was an error of my computer that it only played 15 sec. 🙂

And thanks for the URL’s, they helped me out.

---

<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, 9:18pm UTC](https://forum.kirupa.com/t/volume-control-problem/34811/4 "2003-11-07T21:18:16Z")

</div>

No problem 🙂 Just noticed we live in the same country. You live in the German part of Belgium ? ‘Herr’ seems kinda German to me 😉

---

<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 10, 2003, 1:42am UTC](https://forum.kirupa.com/t/volume-control-problem/34811/5 "2003-11-10T01:42:12Z")

</div>

Nee, in het Vlaamse gedeelte 🙂

---

<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 10, 2003, 8:07am UTC](https://forum.kirupa.com/t/volume-control-problem/34811/6 "2003-11-10T08:07:43Z")

</div>

Maar dan toch iemand met Duitse roots ? 🙂
