# Attach Sound via A.S

**URL:** <https://forum.kirupa.com/t/attach-sound-via-a-s/20019>\
**Category:** Uncategorized\
**Created:** [May 4, 2003, 2:54am UTC](https://forum.kirupa.com/t/attach-sound-via-a-s/20019 "2003-05-04T02:54:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thekok](https://avatars.discourse-cdn.com/v4/letter/t/9e8a1a/32.png) [@thekok](https://forum.kirupa.com/u/thekok)\
**Post date:** [May 4, 2003, 2:54am UTC](https://forum.kirupa.com/t/attach-sound-via-a-s/20019/1 "2003-05-04T02:54:44Z")

</div>

Hello everyone.  
I am loading for a 10 mins slide show 6 swf #loadMovieNum(“myClip.swf”, 1)#  
one into the other and every clip got his soundtrack attached and linked via A.S.

s = new Sound();  
s.attachSound(“song2.mp3”);  
s.start();

The music works only if I play each swf by itself in the flash player but is mute when i make all the thing started  
i checked already every singol frame but i can’t find the bug!

ps: i am also dealing with

vol = s.getvolume();  
s.setVolume(vol - 10);

to fade out every song but somethimes it works and others time the player seem to ignore this command.  
if i pump up the volume at the beginning with

vol = s.getvolume();  
s.setVolume(vol + 80);

can i fade it out with  
vol = s.getvolume();  
s.setVolume(vol - 100);

???  
ask for details if u need i’ll be refreshing this page every hour  
THANKS THANKS THANKS

😊 :sigh: :-\

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 4, 2003, 1:49pm UTC](https://forum.kirupa.com/t/attach-sound-via-a-s/20019/2 "2003-05-04T13:49:41Z")

</div>

s = new Sound(this);

check here for fade techniques  
[http://proto.layer51.com/l.aspx?p=15](http://proto.layer51.com/l.aspx?p=15)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 4, 2003, 3:13pm UTC](https://forum.kirupa.com/t/attach-sound-via-a-s/20019/3 "2003-05-04T15:13:35Z")

</div>

hi man , very glad u replay to me, i was looking for a replay from senocular…, u know is an honor for a very junior member…  
by the way yeah i am using that script, I adding s = new Sound(this);  
to every swf but but i have e new problem now , only my first swf got the right volume setting, when i play all the swf in a row the flash player just set the volume of the 2th 3th 4th 5th swfs at the very minimun.!!  
Can be something wrong on the publish setting panel ???  
please i am getting crazy  
thanks going x the link…

:nerd:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 7, 2003, 5:26pm UTC](https://forum.kirupa.com/t/attach-sound-via-a-s/20019/4 "2003-05-07T17:26:32Z")

</div>

Does anyone of u guys can quickly tell me a way to make 6 songs start & fade out inside 6 swf loaded one after the other with loadsMovieNum ?  
Dealing with tutorials al time but my brain it doen’t take anything inside at the moment.
