# Attaching Sound Issue

**URL:** <https://forum.kirupa.com/t/attaching-sound-issue/219334>\
**Category:** flash\
**Created:** [March 15, 2007, 7:01pm UTC](https://forum.kirupa.com/t/attaching-sound-issue/219334 "2007-03-15T19:01:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wahiche](https://avatars.discourse-cdn.com/v4/letter/w/da6949/32.png) [@wahiche](https://forum.kirupa.com/u/wahiche)\
**Post date:** [March 15, 2007, 7:01pm UTC](https://forum.kirupa.com/t/attaching-sound-issue/219334/1 "2007-03-15T19:01:19Z")

</div>

Hello,

I am trying to add sound to a website that was previously created and I am now updating. The site is [http://www.buildingbodiestv.com](http://www.buildingbodiestv.com), the only issue I am having is that it is a Flash/HTML hybrid, so when you go to a different section it is restarting the music, and I do not want that to happen. I would like the music to play and loop but not restart when changing sections.

Here is my sound code:

```auto
plpSound = new Sound(this);
plpSound.attachSound("theme");
plpSound.start(0, 99);

play_btn.onRelease = function() {
    stopAllSounds();
    plpSound.start(0, 99);
};
stop_btn.onRelease = function() {
    stopAllSounds();
};

```

Any help would be greatly appreciated
