# Bizzar Sound problem }}}}HELP{{{{

**URL:** <https://forum.kirupa.com/t/bizzar-sound-problem-help/10001>\
**Category:** flash\
**Created:** [December 22, 2002, 9:01am UTC](https://forum.kirupa.com/t/bizzar-sound-problem-help/10001 "2002-12-22T09:01:46Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![djozusa](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@djozusa](https://forum.kirupa.com/u/djozusa)\
**Post date:** [December 22, 2002, 9:01am UTC](https://forum.kirupa.com/t/bizzar-sound-problem-help/10001/1 "2002-12-22T09:01:46Z")

</div>

Here’s the dilema… First the dynamics of the movie are as such… [COLOR=blue]movie1.swf[/COLOR] is loaded on a level of [COLOR=red]mainstage.swf[/COLOR] .

[COLOR=blue]movie1.swf[/COLOR] has sound triggering with this code (linkage set):

sound1= new Sound();  
sound1.attachSound(“housetrack1”);  
sound1.start();

[COLOR=blue]movie1.swf[/COLOR] when run works perfectly.

HERE’S THE PROBLEM:

When [COLOR=blue]movie1.swf[/COLOR] is called onto a level in [COLOR=red]mainstage.swf[/COLOR] Like this:  
loadMovieNum(“fla/movie1.swf”, 1);  
there is no sound.

Appreciate any suggestions.

\<:}

---

<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:** [December 22, 2002, 9:05am UTC](https://forum.kirupa.com/t/bizzar-sound-problem-help/10001/2 "2002-12-22T09:05:07Z")

</div>

Are you sure that it loads the movie but **only** the sound is missing?

---

<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:** [December 22, 2002, 11:30am UTC](https://forum.kirupa.com/t/bizzar-sound-problem-help/10001/3 "2002-12-22T11:30:35Z")

</div>

I had a similar problem, I was using a code quite like yours to attach the sound but nothing happened when I played the whole movie. I found that I had to actually publish the mainstage movie that loads onto level 0 with the soundfile in the library, however the controller for the sound(Play, stop ect) is still loaded on another level without the soundfile in it’s library.

Hope this helps ya out dude. Im still new to AS too and I can’t explain the reasoning but I know it worked for 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:** [December 22, 2002, 3:54pm UTC](https://forum.kirupa.com/t/bizzar-sound-problem-help/10001/4 "2002-12-22T15:54:17Z")

</div>

> \*Originally posted by djozusa \*  
> \*\*HERE’S THE PROBLEM:  
> When [COLOR=blue]movie1.swf[/COLOR] is called onto a level in [COLOR=red]mainstage.swf[/COLOR] Like this:  
> loadMovieNum(“fla/movie1.swf”, 1);  
> there is no sound. \*\*

Since your using flash mx, you can load your sound files directly into your movie.

Check out this thread for more information.

[http://www.kirupaforum.com/showthread.php?s=&threadid=9670&perpage=15&pagenumber=1](http://www.kirupaforum.com/showthread.php?s=&threadid=9670&perpage=15&pagenumber=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:** [December 28, 2002, 2:31am UTC](https://forum.kirupa.com/t/bizzar-sound-problem-help/10001/5 "2002-12-28T02:31:06Z")

</div>

looks like the best way to load sound is like this:

\_root.createEmptyMovieClip(“sound\_mc”, 10);  
sound = new Sound(mySound\_mc);  
sound.loadSound(“sound.mp3”);  
sound.start ();

But I still haven’t gotten it to load in a movie on a different level.

H E L P…

🙂

---

<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:** [December 28, 2002, 2:34am UTC](https://forum.kirupa.com/t/bizzar-sound-problem-help/10001/6 "2002-12-28T02:34:40Z")

</div>

sound1= new Sound( **this** );  
sound1.attachSound(“housetrack1”);  
sound1.start();

---

<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:** [December 28, 2002, 2:58am UTC](https://forum.kirupa.com/t/bizzar-sound-problem-help/10001/7 "2002-12-28T02:58:32Z")

</div>

sound1= new Sound(this);  
sound1.attachSound(“housetrack1”);  
sound1.start();

works by itself BUT when movie1.swf is loaded on a level of mainstage.swf it does not.

---

<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:** [December 28, 2002, 3:23am UTC](https://forum.kirupa.com/t/bizzar-sound-problem-help/10001/8 "2002-12-28T03:23:51Z")

</div>

are you sure you re-published movie1.swf with that change (and not just re-saved)?

---

<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:** [December 28, 2002, 3:33am UTC](https://forum.kirupa.com/t/bizzar-sound-problem-help/10001/9 "2002-12-28T03:33:44Z")

</div>

> \*Originally posted by senocular \*  
> \*\*are you sure you re-published movie1.swf with that change (and not just re-saved)? \*\*

Yes, I double checked that…

The ideal solution would be using this method:

\_root.createEmptyMovieClip(“sound\_mc”, 10);  
sound = new Sound(mySound\_mc);  
sound.loadSound(“sound.mp3”);  
sound.start ();

this is driving me :crazy:

---

<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:** [December 28, 2002, 3:36am UTC](https://forum.kirupa.com/t/bizzar-sound-problem-help/10001/10 "2002-12-28T03:36:03Z")

</div>

:

---

<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:** [December 28, 2002, 3:47am UTC](https://forum.kirupa.com/t/bizzar-sound-problem-help/10001/11 "2002-12-28T03:47:19Z")

</div>

just realized I was calling a moving in another directory…

DUH!!!

Thanks for the help!!!

:beam:

---

<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:** [December 28, 2002, 4:00am UTC](https://forum.kirupa.com/t/bizzar-sound-problem-help/10001/12 "2002-12-28T04:00:17Z")

</div>

FYI the solution I was looking for looks like this

this.createEmptyMovieClip(“mysound\_mc”, 10);  
sound1 = new Sound(mysound\_mc);  
sound1.loadSound(“sound.mp3”);  
sound1.start();

Thanks to all that helped…

Happy New Year!!

---

<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:** [December 28, 2002, 4:05am UTC](https://forum.kirupa.com/t/bizzar-sound-problem-help/10001/13 "2002-12-28T04:05:04Z")

</div>

using ‘this’ does the same thing without the need of making an empty movieclip

---

<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:** [December 28, 2002, 4:25am UTC](https://forum.kirupa.com/t/bizzar-sound-problem-help/10001/14 "2002-12-28T04:25:41Z")

</div>

> \*Originally posted by senocular \*  
> \*\*using ‘this’ does the same thing without the need of making an empty movieclip \*\*

true, but i see a major difference:

when using:

**sound1= new Sound([COLOR=green]this[/COLOR] );  
sound1.attachSound(“housetrack1”);  
sound1.start();**

it adds weight to the movie because it sits in the sound is embeded inside the movie.

**[COLOR=green]this[/COLOR] .createEmptyMovieClip(“mysound\_mc”, 10);  
sound1 = new Sound(mysound\_mc);  
sound1.loadSound(“sound.mp3”);  
sound1.start();**

Loads sound dynamically from a directory and reduces movie size.

---

<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:** [December 28, 2002, 4:39am UTC](https://forum.kirupa.com/t/bizzar-sound-problem-help/10001/15 "2002-12-28T04:39:46Z")

</div>

that doesnt have anything to do with the new movieclip. Besides, loading it in externally or not, if you’re loading it, and in the end its all the same sound and most likely the same size. What you do lose is any compression Flash might have given the MP3 when exported from within the swf. As an external file you have to use whatever compression the MP3 currently has and are left with its current size (when flash might have made it smaller compressing it in the swf). Not something hard to do, changing the compression of the external file if needed, but could be something to be concious of.

---

<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:** [December 28, 2002, 5:00am UTC](https://forum.kirupa.com/t/bizzar-sound-problem-help/10001/16 "2002-12-28T05:00:40Z")

</div>

good point.

Just wondering if the external mp3 would start streaming or would have to load completely before playing.

---

<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:** [December 28, 2002, 5:04am UTC](https://forum.kirupa.com/t/bizzar-sound-problem-help/10001/17 "2002-12-28T05:04:46Z")

</div>

you can set an mp3 to be streaming using mySound.loadSound. it takes 2 arguments, one, the url of the sound file, and two a boolean “isStreaming” which is true if you want it to stream, false if not.

mySound.loadSound(“song.mp3”, true); // streams song.mp3

---

<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:** [December 28, 2002, 5:08am UTC](https://forum.kirupa.com/t/bizzar-sound-problem-help/10001/18 "2002-12-28T05:08:34Z")

</div>

So in the example we were talking about it would have to load fully to play - right?

---

<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:** [December 28, 2002, 5:25am UTC](https://forum.kirupa.com/t/bizzar-sound-problem-help/10001/19 "2002-12-28T05:25:36Z")

</div>

yes, loaded sounds in that respect which are not set to streaming are considered event sounds and need to be fully loaded befoe playing.
