Loading External SWF one after another

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

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

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

guess lostinbeta was faster than me :beam:

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:



loadMovie("great uh?")


Ehem…

[AS]//code here[/AS]

:wink:

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

glad u got everything working now :thumb:

:thumb:
thanks lost,

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

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

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)

thanks a lot lostinbeta, i think i got it :slight_smile:

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

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

No problem.