# .attachSound crazyness

**URL:** <https://forum.kirupa.com/t/attachsound-crazyness/172221>\
**Category:** flash\
**Created:** [December 12, 2005, 4:52pm UTC](https://forum.kirupa.com/t/attachsound-crazyness/172221 "2005-12-12T16:52:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![malidia](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/malidia/32/684_2.png) [@malidia](https://forum.kirupa.com/u/malidia)\
**Post date:** [December 12, 2005, 4:52pm UTC](https://forum.kirupa.com/t/attachsound-crazyness/172221/1 "2005-12-12T16:52:40Z")

</div>

okay, so i have a sound linked from my library like so:

```auto

_root.loopSound = new Sound("_root");
_root.loopSound.attachSound("loopSound");
_root.loopSound.setVolume(0);
_root.loopSound.start(0,9999)
;

```

then, i have a movie clip that has this on it:

```auto

onClipEvent(enterFrame) {
	CurrentVolume = _root.loopSound.getVolume();
	if (CurrentVolume > 10) {
		_root.loopSound.setVolume(CurrentVolume - 1);
	}
}

```

On top of this i have streaming audio on the timeline that i want to play over this loop, the only problem is that the onClipEvent handler is also effecting the streaming audio, i thought with attach sound i was creating an indepent sound element, i guess I was wrong, or messing up on something small, does anyone know why this effects the streaming audio as well as my loopSound???
