# Playing sound in main movie

**URL:** <https://forum.kirupa.com/t/playing-sound-in-main-movie/63591>\
**Category:** Uncategorized\
**Created:** [September 8, 2004, 8:05am UTC](https://forum.kirupa.com/t/playing-sound-in-main-movie/63591 "2004-09-08T08:05:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amyanet1](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@amyanet1](https://forum.kirupa.com/u/amyanet1)\
**Post date:** [September 8, 2004, 8:05am UTC](https://forum.kirupa.com/t/playing-sound-in-main-movie/63591/1 "2004-09-08T08:05:42Z")

</div>

Hello,  
There,

I made cd presentation. My prob. is that to play sound from main file.  
Let me describe …

for cd presentaion i made main movie say “cddemo”  
i required links into like home,about,products etc…so i made seperate files say  
home.swf,about.swf, products.swf…etc

and that files will loaded in to main movie say “cddemo” by action loadmovieNum();

then i put sound on button in the respective movie say home.swf, about etc…  
when i test that movie seperately…sound is paly perfectly when i click the buttons

but main prob. is that when i test this file through main movie…“cddemo”…sound on the button does’t play what’s the prob…

pls tell me!

---

<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:** [September 8, 2004, 8:20am UTC](https://forum.kirupa.com/t/playing-sound-in-main-movie/63591/2 "2004-09-08T08:20:13Z")

</div>

assuming that you are attaching the sound dynamically i’ll sugest you the following code…

[color=darkgreen]mysound = new Sound([color=blue]this[/color]);  
mysound.attachSound(“sound1”);  
mysound.start();[/color]  
[color=#006400][/color]  
[color=black]don’t forget to put “this” like shown above…[/color]
