# Loading sound into diff. level

**URL:** https://forum.kirupa.com/t/loading-sound-into-diff-level/35152
**Category:** Uncategorized
**Created:** [November 11, 2003, 12:30am UTC](https://forum.kirupa.com/t/loading-sound-into-diff-level/35152 "2003-11-11T00:30:09Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![mucho](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@mucho](https://forum.kirupa.com/u/mucho)
#### Post date: [November 11, 2003, 12:30am UTC](https://forum.kirupa.com/t/loading-sound-into-diff-level/35152/1 "2003-11-11T00:30:09Z")

</div>

Hello ladies and gents,

I’m loading a sounf module in a different level to keep file size small and which can be downloaded. The module itself works, but when I load it into a dif. level the loops won’t start playing?

why is that?

thx,

m.

---

<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: [November 11, 2003, 10:30am UTC](https://forum.kirupa.com/t/loading-sound-into-diff-level/35152/2 "2003-11-11T10:30:16Z")

</div>

What code do you have ?

---

<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: [November 11, 2003, 3:06pm UTC](https://forum.kirupa.com/t/loading-sound-into-diff-level/35152/3 "2003-11-11T15:06:22Z")

</div>

I’m just using

loadMovieM(sound.swf, 81);

the sounds are in sound.swf but onclick they don’t play, so I guess I have to target them within the level 81

---

<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: [November 11, 2003, 3:14pm UTC](https://forum.kirupa.com/t/loading-sound-into-diff-level/35152/4 "2003-11-11T15:14:44Z")

</div>

That’s not a loading code, it’s one of these …

```auto

holder.loadMovie("sound.swf")
loadMovie("sound.swf",holder)
loadMovieNum("sound.swf",81)

```

And yes, to target it you must target \_level81 when using loadMovieNum, and holder when using loadMovie.

---

<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: [November 11, 2003, 3:24pm UTC](https://forum.kirupa.com/t/loading-sound-into-diff-level/35152/5 "2003-11-11T15:24:39Z")

</div>

hmmmm ok…  
now what happens is that some part of the movie seems to play into nowhere and the sounds are not even loaded.  
a button to load the sounds…

on (release) {  
holder.loadMovie(“sound.swf”)  
loadMovie(“sound.swf”,holder)  
loadMovieNum(“sound.swf”,81)

}

click and then the whole mc is unabled…

m.

---

<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: [November 11, 2003, 3:30pm UTC](https://forum.kirupa.com/t/loading-sound-into-diff-level/35152/6 "2003-11-11T15:30:49Z")

</div>

No, no !! Did you even read my post !?

**it’s one of these …**

---

<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: [November 11, 2003, 3:31pm UTC](https://forum.kirupa.com/t/loading-sound-into-diff-level/35152/7 "2003-11-11T15:31:48Z")

</div>

ooops. sorry… missed the one ( I was kind wodnering why so many loading functions…) my bad…

m.

---

<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: [November 11, 2003, 3:37pm UTC](https://forum.kirupa.com/t/loading-sound-into-diff-level/35152/8 "2003-11-11T15:37:24Z")

</div>

k, its loading now… and I can see the interface, however, the sounds will not start playing… the file itself works, its just the level (I guess)

---

<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: [November 11, 2003, 3:56pm UTC](https://forum.kirupa.com/t/loading-sound-into-diff-level/35152/9 "2003-11-11T15:56:32Z")

</div>

and I’m using this to control the sounds… but something tells me I have to instert the mc level somewhere… ???

on (release) {  
stopAllSounds ();  
song = new Sound();  
song.attachSound(“sound2”);  
song.start(0, 999);  
}

---

<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: [November 11, 2003, 4:08pm UTC](https://forum.kirupa.com/t/loading-sound-into-diff-level/35152/10 "2003-11-11T16:08:25Z")

</div>

Wait a minute … are you using an swf or the sound object ?

---

<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: [November 11, 2003, 4:18pm UTC](https://forum.kirupa.com/t/loading-sound-into-diff-level/35152/11 "2003-11-11T16:18:22Z")

</div>

I’m using a swf in which all sounds are included. That way I can load the swf on choice and have a smaller file size of the actual (original) mc.

---

<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: [November 11, 2003, 4:52pm UTC](https://forum.kirupa.com/t/loading-sound-into-diff-level/35152/12 "2003-11-11T16:52:04Z")

</div>

k, just imagine this module to be loaded in level 81 (or whatever),  
can this be made to work…

[www.akdmx.com/sound\_module.fla](http://www.akdmx.com/sound_module.fla)

thx,

m.

ps. I cut most of the sounds out to have a smaller fla, but you get the idea

---

<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: [November 11, 2003, 7:07pm UTC](https://forum.kirupa.com/t/loading-sound-into-diff-level/35152/13 "2003-11-11T19:07:38Z")

</div>

K…if we cannot find a solution to this, maybe some alternatives idea.  
Point of this is to have a smaller byte size MC and the user can choose to download additional sounds - how can I solve that?

thx,

m.

---

<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: [November 11, 2003, 7:31pm UTC](https://forum.kirupa.com/t/loading-sound-into-diff-level/35152/14 "2003-11-11T19:31:27Z")

</div>

I think you should have a look at the Sound object 😉 [www.kennybellew.com](http://www.kennybellew.com)
