# Loading External SWF one after another

**URL:** <https://forum.kirupa.com/t/loading-external-swf-one-after-another/23442>\
**Category:** Uncategorized\
**Created:** [June 18, 2003, 2:30am UTC](https://forum.kirupa.com/t/loading-external-swf-one-after-another/23442 "2003-06-18T02:30:35Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![filete](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/filete/32/124_2.png) [@filete](https://forum.kirupa.com/u/filete)\
**Post date:** [June 18, 2003, 2:30am UTC](https://forum.kirupa.com/t/loading-external-swf-one-after-another/23442/1 "2003-06-18T02:30:35Z")

</div>

Hello there,

I have 4 external SWF that link each one for a MP3 music.  
In my main movie i have 4 buttons, one for each external SWF.

When i click on 1 button the external SWF shows the preloader and  
starts the first MP3.  
That ok,  
But then if i click on 2 button, and after the preloader  
loads the second MP3 it starts playing but the first MP3 doesn´t stop!  
I have 2 music at the same time!  
A mess!:-\

I want to be able to choose another music and stop the one  
that is playing…  
I guess that just load the externals SWF to the same container  
doens´t work, cost they are really a preloader for MP3 files.

Any help?  
thanks

---

<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:** [June 18, 2003, 2:44am UTC](https://forum.kirupa.com/t/loading-external-swf-one-after-another/23442/2 "2003-06-18T02:44:31Z")

</div>

Try using [AS]stopAllSounds();[/AS] before you load your new movie.

---

<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:** [June 18, 2003, 2:45am UTC](https://forum.kirupa.com/t/loading-external-swf-one-after-another/23442/3 "2003-06-18T02:45:25Z")

</div>

On each button u goin to put sum code:

on (release) {  
stopAllSounds();  
loadMovie(“music1.swf”, “targetMC”);  
}

just rename music1 with the mp3 movie name and targetMC with the container movie clip name.

there it is

---

<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:** [June 18, 2003, 2:46am UTC](https://forum.kirupa.com/t/loading-external-swf-one-after-another/23442/4 "2003-06-18T02:46:39Z")

</div>

guess lostinbeta was faster than me :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:** [June 18, 2003, 2:51am UTC](https://forum.kirupa.com/t/loading-external-swf-one-after-another/23442/5 "2003-06-18T02:51:46Z")

</div>

Ok,  
Hi lostinbeta , thanks for the help…

Claudio, thanks again;)  
About the other post, everything works fine if i put  
main movie online:)  
And by the way, if you wanna write AS here in Kirupa´s  
forum, put "as"inside [] before and "/as"inside [] at the end of your code…!

It will show the code like this:

```auto

loadMovie("great uh?")

```

---

<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:** [June 18, 2003, 2:52am UTC](https://forum.kirupa.com/t/loading-external-swf-one-after-another/23442/6 "2003-06-18T02:52:54Z")

</div>

Ehem…

[**AS]//code here[**/AS]

😉

---

<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:** [June 18, 2003, 2:54am UTC](https://forum.kirupa.com/t/loading-external-swf-one-after-another/23442/7 "2003-06-18T02:54:45Z")

</div>

:trout:  
im kinda new here, i dunno the tricks yet  
but thanks for the tip 😉

glad u got everything working now :thumb:

---

<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:** [June 18, 2003, 2:56am UTC](https://forum.kirupa.com/t/loading-external-swf-one-after-another/23442/8 "2003-06-18T02:56:43Z")

</div>

:thumb:  
thanks lost,

i was figure out how to explain without mess around.!

---

<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:** [June 18, 2003, 2:59am UTC](https://forum.kirupa.com/t/loading-external-swf-one-after-another/23442/9 "2003-06-18T02:59:50Z")

</div>

> \*Originally posted by claudio \*  
> \*\*:trout:  
> im kinda new here, i dunno the tricks yet  
> but thanks for the tip 😉

glad u got everything working now :thumb: \*\*

Show Actionscript  
[**AS]//code here[**/AS]

Show PHP and any other client-side or server-side language (Javascript, ASP, HTML, etc)  
[**PHP]//code here[**/PHP]

Quote someone…  
[**QUOTE]//code here[**/QUOTE]

Those are some of the useful ones, the rest can be found if you click on the “Reply to Thread” button and you can see them above the reply text area in the vbCode column (set of grey buttons)

---

<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:** [June 18, 2003, 3:10am UTC](https://forum.kirupa.com/t/loading-external-swf-one-after-another/23442/10 "2003-06-18T03:10:41Z")

</div>

thanks a lot lostinbeta, i think i got it 🙂

---

<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:** [June 18, 2003, 3:49am UTC](https://forum.kirupa.com/t/loading-external-swf-one-after-another/23442/11 "2003-06-18T03:49:16Z")

</div>

As if it wasn’t obvious enough I used copy and paste 😛

Obviously replace //code here in the quotes tag with an actual quote 😉

No problem.
