# Fade in and fade out audio with as

**URL:** <https://forum.kirupa.com/t/fade-in-and-fade-out-audio-with-as/262300>\
**Category:** flash\
**Created:** [June 4, 2008, 7:50pm UTC](https://forum.kirupa.com/t/fade-in-and-fade-out-audio-with-as/262300 "2008-06-04T19:50:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nnnswordfish](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@nnnswordfish](https://forum.kirupa.com/u/nnnswordfish)\
**Post date:** [June 4, 2008, 7:50pm UTC](https://forum.kirupa.com/t/fade-in-and-fade-out-audio-with-as/262300/1 "2008-06-04T19:50:59Z")

</div>

hi again 🙂 i load my sound like this on frame 1

```auto
mysound = new Sound();
mysound.loadSound("1.mp3", true);
mysound.setVolume(100);
mysound.onSoundComplete = function ()
{
    mysound.start(0);
};
stop ();

```

but on frame 2 i want to fade out mysound with as(set folum on 0 with fade out) and on frame 7 to fade in (to set volume again on 100 with fade in)

can some one helps 🙂
