# Sound object interfering with FLV player component

**URL:** <https://forum.kirupa.com/t/sound-object-interfering-with-flv-player-component/243496>\
**Category:** Uncategorized\
**Created:** [November 7, 2007, 5:34pm UTC](https://forum.kirupa.com/t/sound-object-interfering-with-flv-player-component/243496 "2007-11-07T17:34:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shuga](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@shuga](https://forum.kirupa.com/u/shuga)\
**Post date:** [November 7, 2007, 5:34pm UTC](https://forum.kirupa.com/t/sound-object-interfering-with-flv-player-component/243496/1 "2007-11-07T17:34:19Z")

</div>

i have a sound object that i created with fade in and out functions. but when i use the fade out function i created called “stopSound” it seems to stop all sound so that when my FLV player goes to play the movie it has no sound but still plays the FLV.

Here’s my code. Can someone please help me figure out why calling this function is turning off the sound in my flv player instead of just the sound object “music” that i created.

```auto
stopSound = function() {
	_root.audiobtn.gotoAndStop ("Off");
	
	if (id) {
        clearInterval(id);
    }
    var volume = music.getVolume();
    id = setInterval(fadeOut, 10);
    function fadeOut():Void {
        music.setVolume(volume--);
        if (volume<=0) {
            clearInterval(id);
            music.stop();
            lastPosition = Math.round(music.position/1000);
        }
    }
	soundStarted = false;
}

```
