# Sound(target\_mc) Class problem

**URL:** <https://forum.kirupa.com/t/sound-target-mc-class-problem/209102>\
**Category:** flash\
**Created:** [December 5, 2006, 10:37pm UTC](https://forum.kirupa.com/t/sound-target-mc-class-problem/209102 "2006-12-05T22:37:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ozgur\_uksal](https://avatars.discourse-cdn.com/v4/letter/o/cc9497/32.png) [@ozgur\_uksal](https://forum.kirupa.com/u/ozgur_uksal)\
**Post date:** [December 5, 2006, 10:37pm UTC](https://forum.kirupa.com/t/sound-target-mc-class-problem/209102/1 "2006-12-05T22:37:25Z")

</div>

Hi,

I have a question about “Sound class” in AS2. I read almost everything. I have tons of Flash books, and also reading material on internet and still couldn’t understand how to solve the following problem.

Assume you have 3 swf files, “index.swf , foo1.swf , foo2.swf”

index.swf only creates an empty movieclip named “myMovie\_mc”, and then loads “foo1.swf”  
into “myMovie\_mc”, for instance, \<myMCL.loadClip(“foo1.swf”, myMovie\_mc); \>

foo1.swf contains 10 different mp3 files in its library; I attached to its first frame the following actionscript code to playback one of the mp3 files, for instance,  
\<  
var mySound:Sound = new Sound(\_root.myMovie);  
mySound.attachSound(“music1”);  
mySound.start();  
\>  
and then foo1.swf loads foo2.swf

Now, I can’t figure out how I suppose to use Sound class when foo2.swf needs to play any other mp3 files contained in foo1.swf ?

[INDENT]If you could give me a suggestion, or something to read, I would [/INDENT]

[INDENT]appreciate it.[/INDENT]

[INDENT]Thank you.[/INDENT]

[INDENT]Ozgur[/INDENT]
