View Full Version : load external mp3
corinne
September 17th, 2002, 02:44 AM
I’m trying hard but with no success to load external mp3 into this cleoplayer.fla.
The cleoplayer is placed on my homepage. Our mp3’s are to havy to be in the .swf.
How can I do that with my .fla? I can send my .fla trough your email if you liked.
Thank you in advance to help me.
Corinne
lostinbeta
September 17th, 2002, 02:51 AM
You can't post a .swf file as an attachment. It doesn't show. I learned that one the hard way too.
This is coming straight from a tutorial from Kirupa.
<B><U>Load .mp3 dynamically with Flash MX:</U></B>
It's the same method. The commands change a bit, but the idea is similar : you create an instance of a sound object, in which you load the sound. This instance is what we will use to change the properties of the sound (volume for instance).
Here again, you can load dynamically sounds under a certain format, which happens to be MP3.
mySound = new Sound();
mySound.loadSound("music.mp3",true);
<B>mySound = new Sound();</B>
You create a new Sound object.
<B>mySound.loadSound("music.mp3",true);</B>
You load music.mp3 into mySound. The second parameter is call isStreaming. If it's set to true, the sound will play while loading, whereas it will wait until it's fully loaded before playing if isStreaming is set to false.
I hope this helps.
Here is a link to the tutorial.... It is for MX, which I believe is the only version thus far that supports dynamically loaded mp3 and images.
http://www.kirupa.com/developer/mx/loading.asp
pom
September 17th, 2002, 02:54 AM
Encore quelqu'un qui parle francais, woohoo!!
pom :asian:
lostinbeta
September 17th, 2002, 02:55 AM
Man too many people speak french:) . Yeah, I guess thats another one Ilyas.
eyezberg
September 17th, 2002, 02:57 AM
Grüezi la Suisse,
It would be better if you could zip the fla and attach that, just to check how the playing/loading etc is handled in there, i know i have this cleoplayer thing somewhere, but i have about 2 cd's full with fla (that's a LOT!) and don't want to look throught them.
If we can see the fla, we (or I or someone ..) can rewritte the code for Flash MX (if you use that), coz F 5 couldn't dynamically load mp3's.
Bezzer
September 17th, 2002, 03:09 AM
yeah its not that hard to do.... just do the tut on this site...or the one on flash kit... :)
SphericJ
September 18th, 2002, 03:57 PM
that stupid tutorial doesnt work. Im using Flash MX and have tried that thing, and i get a download prompt. Im not an expert at actionscripting, but i dont think thats dynamically loading
does anyone know that answer??
thanks
~J
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.