Hi,
create a function to fade up the music.
Code:
mySound = new Sound();
mySound.attachSound("music");
mySound.start("", 999);
sounfFadeIncrement=5;
function fadeUp(){
//this sets a timer that calls your fadeSound function every 100
//milliseconds (aprox 1/10 second).
fadeInterval=setInterval(fadeSound,100);
}
function fadeSound(){
Volume=mySound.getVolume();
if(Volume<100){
mySound.setVolume(Volume+soundFadeIncrement);
}
else{
clearInterval(fadeInterval);
}
}
Then call the function on the second frame with
fadeUp();
Hope that helps
Shipstern