# SOUND: Fade in & Fade out

**URL:** <https://forum.kirupa.com/t/sound-fade-in-fade-out/269710>\
**Category:** flash\
**Created:** [August 31, 2008, 7:45am UTC](https://forum.kirupa.com/t/sound-fade-in-fade-out/269710 "2008-08-31T07:45:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![toonz\_atom](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@toonz\_atom](https://forum.kirupa.com/u/toonz_atom)\
**Post date:** [August 31, 2008, 7:45am UTC](https://forum.kirupa.com/t/sound-fade-in-fade-out/269710/1 "2008-08-31T07:45:40Z")

</div>

Hi every one 🙂  
this my first post

the code below load external sound file “bg.mp3”  
the sound will play automatically.

i have a a buuton that load FLV  
i want to FADE OUT the sound “bg.mp3” if i loaded the flv.  
and fade in if i close the FLV

[AS]  
var musicURL:URLRequest = new URLRequest(“bg.mp3”);  
var sndMusic:Sound = new Sound(musicURL);  
var channel1:SoundChannel;  
channel1 = sndMusic.play();  
[/AS]

Thanks for your help
