# Problem with attach Soun

**URL:** https://forum.kirupa.com/t/problem-with-attach-soun/215911
**Category:** flash
**Created:** [February 12, 2007, 3:14am UTC](https://forum.kirupa.com/t/problem-with-attach-soun/215911 "2007-02-12T03:14:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gloqui](https://avatars.discourse-cdn.com/v4/letter/g/97f17d/32.png) [@gloqui](https://forum.kirupa.com/u/gloqui)
#### Post date: [February 12, 2007, 3:14am UTC](https://forum.kirupa.com/t/problem-with-attach-soun/215911/1 "2007-02-12T03:14:22Z")

</div>

HI everybody!

I have this issue that I don’t know how to resolve. This is the problem.

I have to sound on the library, one has a volume of 100, and the other a volume of 20, the problem is that both sound play with the same volume, this is the code:

volume1 = 0  
volume2 = 100

song1 = new Sound ()  
song1.attachSound(“cancion1”)  
song1.start(0,500)  
song1.setVolume(volume1)

song2 = new Sound ()  
song2.attachSound(“cancion2”)  
song2.start(0,500)  
song2.setVolume(volume2)

If someone could tell me what am I doing wrong, i’ll be more than glad.
