how can I make this sound to start automatically. for some reason it waits till I touch the volume bar. THanks!
this is the code inside the volume slider:
onClipEvent (load) {
mySound = new Sound();
mySound.loadSound(“IgalLoop.mp3”, false);
}
onClipEvent (enterFrame) {
downloaded = mySound.getBytesLoaded();
total = mySound.getBytesTotal();
if (downloaded != total) {
_root.dl = "downloading song...";
} else {
complete = 1;
_root.dl = "";
}
mySound.setVolume(_root.volume);
}
this is the code in the first frame of the volume slider:
this.ratio =0;
dragger._x=100
dragger.onPress = function() {
this.startDrag(true, 0, 0, line._width, 0);
this.onEnterFrame = function() {
ratio = Math.round(this._x*100/line._width);
_root.volume = ratio;
};
};
dragger.onRelease = dragger.onreleaseOutside=stopDrag;
thanks so much for your help!!!