# Fade out sound clip without a button

**URL:** <https://forum.kirupa.com/t/fade-out-sound-clip-without-a-button/293653>\
**Category:** flash\
**Created:** [July 31, 2009, 9:00pm UTC](https://forum.kirupa.com/t/fade-out-sound-clip-without-a-button/293653 "2009-07-31T21:00:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lorelei](https://avatars.discourse-cdn.com/v4/letter/l/b4bc9f/32.png) [@lorelei](https://forum.kirupa.com/u/lorelei)\
**Post date:** [July 31, 2009, 9:00pm UTC](https://forum.kirupa.com/t/fade-out-sound-clip-without-a-button/293653/1 "2009-07-31T21:00:22Z")

</div>

Hey, I have an animation with some sound attached to it from the library. I want to fade out the sound when the animation ends… How do I do this? My code for starting the sound is:

var music:Sound = new Sound();  
music.attachSound(“mySound”);  
music.start(0, 5);

Thanks for any advise!
