in this tutorial: 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:
bump
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
yea so i’m guessin i change the false to true?