# Sound help required

**URL:** https://forum.kirupa.com/t/sound-help-required/316538
**Category:** flash
**Created:** [November 24, 2010, 7:07pm UTC](https://forum.kirupa.com/t/sound-help-required/316538 "2010-11-24T19:07:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kwasiada](https://avatars.discourse-cdn.com/v4/letter/k/5f9b8f/32.png) [@kwasiada](https://forum.kirupa.com/u/kwasiada)
#### Post date: [November 24, 2010, 7:07pm UTC](https://forum.kirupa.com/t/sound-help-required/316538/1 "2010-11-24T19:07:30Z")

</div>

Hi guys

I’m using AS2  
I have a movie with Bg music playing  
I need to silence music when I enter my video section & turn back on when I leave  
At the moment it does those things but when I enter another section it adds another instance of Bg music

This initialises the Bg music

```auto
onEnterFrame = function() {
bgSound = new Sound(this);
bgSound.attachSound("sound9");
bgSound.start(0, 99);
delete this.onEnterFrame;
}

```

This turns it off (myPlayer is flv playback component)

```auto
myPlayer.onEnterFrame = function(){
        _root.bgSound.stop();
    delete this.onEnterFrame;
}

```

This turns it back on (clip event on component)

```auto
onClipEvent(unload){
      _root.bgSound.start(0,99);
}

```

I can’t get setVolume to affect the music.  
Any help is much appreciated

Peace
