I had a user tonight request an extension that would play external .mp3 files, in order to cut down on his .swf filesize. I made this for him, and he requested I release it to the public, along with a simple example, so here it is. :)
Printable View
I had a user tonight request an extension that would play external .mp3 files, in order to cut down on his .swf filesize. I made this for him, and he requested I release it to the public, along with a simple example, so here it is. :)
Sweet.
A "play looping" action would be very handy for this extension.
Amazing useful extensions popping out one after another! Great stuff, once again. Need to test this one out asap. :)
I may add more to this extension at some point. Fade effects, looping, multiple channels, etc, but the user just wanted a basic way to play mp3 files, so that's what I made. ;)
Thanks :D
Yes!!! So you listen to this other guy, and not to me. Well I suppose he offered you some money heheh.
You were part of the reason I agreed to make this extension, RickyRombo. :) And no, I didn't get any money for it. I did it because someone needed it, and I could make it.
Words of a true hero.Quote:
Originally Posted by StephenL
No. Words of THE true hero. :)
Thanks StephenL!!! :D
wow this works great!
a smooth looping feature would be awesome.
if anyone want a quick mp3 url, you can use mine: http://www.softwarewolf.com/temp/chubrubtime.mp3
edit: i am amazed you can start playing flawlessly with a start of frame action!
The sounds are cached on the system, so they play while they are loading. :)
I put the runtime file in runtime, the flash part of runtime in the flash folder and the extension part under extensions. For some strange reason, it says cannot load extension flash mp3.mfx when I go to open the example and does not show up in objects when I open MMF2. Has anyone else had this problem?
What build of MMF2 are you using? Make sure you are using the latest one.
Hi
Can you make a playlist?
I tryed to use a counter, but it would not load the mp3 file.
I got smooth looping working which wasn't easy, though I did it with music in the SWF. I don't know about streaming.Quote:
Originally Posted by SoftWarewolf
Released: http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=205217#Post2052 17
Wow, that's fantastic! If I could make a suggestion for a future build - Maybe the extension could return the amount of data currently downloaded/buffered and the total length of the file (if available, obviously). I'm using the FLV object for this purpose right now but would MUCH rather use MP3. :D
How does the "MP3 Is Not Playing" event work? I'm trying to use it to replay an MP3 when it ends to simulate looping but the event itself does not seem to be triggered at all when the MP3 ends.
Updated Version: http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=206872#Post2068 72 :)
Great extension. Any chance you can implement the looping feature?
Both "MP3 Is Playing" and "MP3 Is Not Playing" still don't work on the latest version, at least, in my case.
Also, when you create one mp3 object in each frame, they are kinda global, since it always plays the first loaded song even if you specify a different song to load.
I can't get this to work... Can anyone tell me how / where they uploaded their mp3?
Nevermind, I did get it to work. I just wasn't building the application...
Hi StephenL,
Thank you for this extension. I have tried the extension in order to choose and play an mp3 file from a list. The first time I choose the file from the list it plays with no problem but if the file has ended playing or if I want to choose another file to play, it does not play the file. In other words it only plays one file. Is there any way this can be fixed?
With Regards
Stephen,
I was wondering if Flash MP3 normalised the volume to some kind of arbitrary maximum? No matter how quiet I mix my source MP3, it is always louder than I want it to be. This buries my sounds in the background. Because there's no volume control on Flash MP3, there's no work around.
I don't want to increase my Sound FX volumes because I believe flash games shouldn't unexpectedly blast through peoples speakers at maximum volume.
Also, I noticed a bug with the looping. I have a 12 minute music file and the loop actually just loops to a position of about 10 mins, repeating the last couple of minutes over and over.
Flash MP3 was a rushed extension for a friend. I will look it over when I get some free time, and check into these issues. :)
Thanks, I'd appreciate any work you do on this extension. It's one of the most useful flash extensions so it's a shame it's such a low priority.
Note: I managed to work-around the loop issue by setting the music to loop 99 times.
Actually it's skipping to random spots in the file after 1 or 2 play throughs. I have a...
MP3 is not playing
- Play
...event. Not sure if that's the source of the problem. It may also be after the player pauses then resumes the music, it may be loop back to the pause spot, not the start of the MP3 file.
Thanks for your efforts with this extension Stephen, it allowed me to release my game 'Orb' at a reasonable filesize.
Currently The Advanced Flash Sound extension has more functionally (including volume control) so this should now be obsolete. You shouldn't need to worry about fixing the aforementioned issues.
I just tried downloading it from the Fusion Wiki and got an error of "You do not have permission to download this attachment."
It won't let me edit the wiki right now, but here is the download:
Flash MP3
Thanks. :)
Stephen,
I have 2 problems with the last version of your extension:
1. "MP3 is playing" is only triggered when the mp3 is being launched.
2. "MP3 is not playing" is not triggered at all.
I need this to detect when the music is over, in order to launch an other music when the first music is over...
I thought I fixed that. Do you have the latest version?
DavidT, you can use this:
http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=228828#Post2288 28
Stephen,
Yes i have this last version. You can see an exemple in attachement to this post. Here is the result on my computer :
- The square should be green when the mp3 is playing, but it just turns green once and then it stays black.
- The square should be blue when the mp3 is not playing, but at the end of the mp3 (duration 1'27'') it stays black.