Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

on Release Fade sound

Status
Not open for further replies.

TigerGirl7

Programmer
Apr 8, 2003
152
0
0
US
Hello,

I'm working on a project where I would like my audio to fade out when I click a button. Can anyone direct me to a tutorial for this? I am using Flash 5.

Thanks, Jen
 
are you using attachSound to load the music into an empty clip? if not how are you doing it.

_______________________________________
You know you're old if you can remember when bacon, eggs and sunshine were good for you
 
timeline

mysound = new sound();
mysound.attachSound("....");
mysound.start();

this.onEnterFrame = function(){
if(fade){
mysound.setVolume(mysound.getVolume() - 5 )
}
}

//change the 5 to whatever you want

button

on (release){
_root.fade = true;
}


_______________________________________
You know you're old if you can remember when bacon, eggs and sunshine were good for you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top