Ok! Basicly got it working, but only by adding the slider into the soundtrack movie itself. It then seems to change only the volume of the music track without affecting other sounds in the main movie. Of course you'll have to make your soundtrack movies of the same size as the main movie and/or position the slider accordingly, so that it fall in place in the main movie.
Had to put the sountrack in a mc, so your music1.swf is now a 1 frame movie with a mc (the old music1.swf) instance named
music1, and which has the following code on it:
track = new Sound(_root.music1);
stop ();
The slider (instance
handle), basicly the same as in the .fla I sent you, has the following code:
onClipEvent (load) {
top = Math.round(_y);
// default position
left = Math.round(_x);
right = left;
// prevent horizontal drag
bottom = top+100;
// 100 pixels below top
}
// This is what I added...
// I established the 256 number by finding out
// the lowest y position of the slider. It should be
// changed according to where you set
// the slider on the screen.
onClipEvent (enterFrame) {
_root.ypos = 256-Math.round(_root.handle._y);
_root.track.setVolume(_root.ypos);
}
If you can't work it out with these indications, I'll clean up the .fla and send it to you in the morning!
Regards,
ldnewbie