# Linking Sounds

**URL:** <https://forum.kirupa.com/t/linking-sounds/2598>\
**Category:** flash\
**Created:** [May 29, 2002, 12:13pm UTC](https://forum.kirupa.com/t/linking-sounds/2598 "2002-05-29T12:13:12Z")\
**Posts on this page:** 3\
**Page:** 1

<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 29, 2002, 12:13pm UTC](https://forum.kirupa.com/t/linking-sounds/2598/1 "2002-05-29T12:13:12Z")

</div>

Hey Gurus:

I am exporting 5 sounds for actionscript. On the first frame of the movie, I put the following syntax for each sound:

\_root.myBeep = new Sound();  
\_root.myBeep.attachSound(“beep”);

Later in the movie, I call the sounds with this syntax:

\_root.myBeep.start(0,1);

Works fine when I export the movie.

However, when I load the movie onto level 2 (from another movie), the sound doesn’t work anymore.

Can anyone tell me why? Any suggestions to fix this?

Thanks,  
bread\_man

---

<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 29, 2002, 4:57pm UTC](https://forum.kirupa.com/t/linking-sounds/2598/2 "2002-05-29T16:57:36Z")

</div>

I think that this is the problem.

\_root. always refers to the timeline of \_level0. So when you load the movie into level 2 the sound is no longer on the \_root. timeline.

You can try changing \_root. to \_level2.myBeep.start(0,1);

That is what I would try first. If I am wrong somebody else will correct me.

Good luck,  
Matt

---

<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 29, 2002, 9:32pm UTC](https://forum.kirupa.com/t/linking-sounds/2598/3 "2002-05-29T21:32:20Z")

</div>

almost, tito. \_root refers to the base of whatever \_level you’re in.

so in \_level2, \_root will correspond with \_level2, but had you loaded that movie into \_level34, \_root would correspond with \_level34.

nevertheless, i agree with your diagnosis, it’s probably a pathing thing. make sure that your talking about the right level!
