# attachSound and nested components

**URL:** <https://forum.kirupa.com/t/attachsound-and-nested-components/233023>\
**Category:** flash\
**Created:** [July 19, 2007, 2:35pm UTC](https://forum.kirupa.com/t/attachsound-and-nested-components/233023 "2007-07-19T14:35:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RocketRonz](https://avatars.discourse-cdn.com/v4/letter/r/edb3f5/32.png) [@RocketRonz](https://forum.kirupa.com/u/RocketRonz)\
**Post date:** [July 19, 2007, 2:35pm UTC](https://forum.kirupa.com/t/attachsound-and-nested-components/233023/1 "2007-07-19T14:35:42Z")

</div>

I’ve noticed a few Threads on this forum where people are having problems with attachSound within nested SWFs, ie. Sounds play within the nested SWF when run standalone but fail when embedded within a main SWF.

I’m having the same problem when using a component instead of the embedded SWF and I can’t find a workaround other than copying the sound files to the main SWF. I realise I could solve the problem using an embedded SWF but dynamic loading is not an option for the system I am writing.

The whole point of a component is to provide a self contained unit of functionality, including resources. The strange thing is that I can drag the sound to the components timeline and it plays … I just can’t access it using attachSound.

Any help would be greatly appreciated,  
Ronny.
