# Can't get sound fade to work

**URL:** <https://forum.kirupa.com/t/cant-get-sound-fade-to-work/150332>\
**Category:** flash\
**Created:** [June 6, 2005, 8:59pm UTC](https://forum.kirupa.com/t/cant-get-sound-fade-to-work/150332 "2005-06-06T20:59:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Melanie\_Haycock](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@Melanie\_Haycock](https://forum.kirupa.com/u/Melanie_Haycock)\
**Post date:** [June 6, 2005, 8:59pm UTC](https://forum.kirupa.com/t/cant-get-sound-fade-to-work/150332/1 "2005-06-06T20:59:20Z")

</div>

Hi all

I am trying Kenny Bellew’s fade sound tutorial with no luck. I have been trawling threads for hours to see where I’m going wrong. Can anyone help? Here is the code…

music = new Sound(musicMc);  
music.loadSound(“MP3s/feelGoodInc.mp3”, true);  
musicVolume=0;  
music.setVolume(musicVolume);

this.onEnterFrame = function () {  
if (fadeIn01==1) {  
\_root.music.setVolume(musicVolume);  
musicVolume=musicVolume+5;  
if (musicVolume\>99) {  
fadeIn01=0;  
}  
}  
}

I also want to then fade the sound to 7 at a certain point.

Help!
