In my main flash movie I have 20 links to 20 songs each in there own individual .swf file. When a link is selected the song will stream. I want to add volume to the main movie that will work with all 20 songs. I have a movie with a volume control but it doesnt seem to work with the songs. Basically the script probably needs to be edited but I'm not really sure what to do.



Here is the script used in the volume movie

var volPercent = 50;
volumeText = volPercent + "%";
volumeFill._yscale = 50;

mySound = new Sound( )
mySound .attachSound( "soundfile");
mySound .setvolume(volPercent * 2);


(I have added the above script to my main movie):




here is the (-) volume button script:

on (release)(
if (volPercent ! = 0 )(
volumeFill.-yscale -= 2;
volPercent -= 2;
volumeText = volPercent + "%"
my Sound.setVolume(volPercent * 2);

)

)

here is the (+) volume button script:

volume button ( + )

on (release)(
if (volPercent ! = 0 )(
volumeFill.-yscale -= 2;
volPercent += 2;
volumeText = volPercent + "%"
my Sound.setVolume(volPercent * 2);

)

)



So there is all the script. please can someone help

thankyou