# Fading Audio Out in FLV File

**URL:** <https://forum.kirupa.com/t/fading-audio-out-in-flv-file/209896>\
**Category:** flash\
**Created:** [December 13, 2006, 4:01am UTC](https://forum.kirupa.com/t/fading-audio-out-in-flv-file/209896 "2006-12-13T04:01:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mw2006](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@mw2006](https://forum.kirupa.com/u/mw2006)\
**Post date:** [December 13, 2006, 4:01am UTC](https://forum.kirupa.com/t/fading-audio-out-in-flv-file/209896/1 "2006-12-13T04:01:13Z")

</div>

Ok, so I’ve accomplished fading out the flv file once activated by a cue point, but I’d like to fade out the audio with it as well. Does anyone know if this is possible, and if it is, what the necessary AS would be? I’ve attached the AS I use to fade out my flv files once they reach the cue point.

Thanks for any help!

-m

```auto

var vid:Object = new Object();
vid.cuePoint = function(cues) {
    vidTest.onEnterFrame = fade;
}

vidTest.addEventListener("cuePoint", vid);

function fade() {
this._alpha -=5;
if (this._alpha <1) {
    delete this.onEnterFrame;
}
}

```
