# Triggering a Sound object once the SWf is loaded into a container SWF

**URL:** <https://forum.kirupa.com/t/triggering-a-sound-object-once-the-swf-is-loaded-into-a-container-swf/23856>\
**Category:** Uncategorized\
**Created:** [June 23, 2003, 12:36pm UTC](https://forum.kirupa.com/t/triggering-a-sound-object-once-the-swf-is-loaded-into-a-container-swf/23856 "2003-06-23T12:36:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jOEL](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@jOEL](https://forum.kirupa.com/u/jOEL)\
**Post date:** [June 23, 2003, 12:36pm UTC](https://forum.kirupa.com/t/triggering-a-sound-object-once-the-swf-is-loaded-into-a-container-swf/23856/1 "2003-06-23T12:36:51Z")

</div>

Greetings Flash Heads,

I have a created a sound object like so:

//Creating the Sound Object  
sliderSound = new Sound();  
sliderSound.attachSound(“slideInSound”);  
sliderSound.setVolume(20);

I then trigger the sound from a number of buttons like so:

someButton\_mc.onRelease = function() {  
sliderSound.start(0,1);  
}

It works great when viewed. the problem is that when I load this SWF file into an container SWF file (using loadMovie) the sound will not play.

Any suggestions?

---

<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:** [June 23, 2003, 2:15pm UTC](https://forum.kirupa.com/t/triggering-a-sound-object-once-the-swf-is-loaded-into-a-container-swf/23856/2 "2003-06-23T14:15:56Z")

</div>

I’m all set.

sliderSound = new Sound(this);
