Volume Control Problem

Hi there,

I followed this nice tutorial 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:

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

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


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 :slight_smile:

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

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

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

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

Nee, in het Vlaamse gedeelte :slight_smile:

Maar dan toch iemand met Duitse roots ? :slight_smile: