nowhere, Georgia, USA
flash mp3 players
Author: bbwax on October 24 2006
Viewed 2501 times. 5 people liked this blog. You can rate it below if you haven't already.
People who enjoyed reading this: skab, lunatinker, RRine, bsr, DrexonField
--> okay, i will try and be to the point. i need some flash actionscript genius to help me out with some code.

i have been working on a flash mp3 player for my new personal webby site. i have most everything the way i want it. i am no flash genius but i am good enough to cobble together bits of example code from here and there and design my own interface, etc. it's been damn hard work for me. it's taken me almost 2 solid weeks of work to get to this point, so believe me, i am not asking for a total freebie here.

now, what i need to finish this player up is a way to scrub the playhead back and forth, and when you drop it, it plays the song at the current position. know what i mean? basically, it will function like the one at bleep.com.

trust me, i have googled. i have googled like the wind. and i found a few examples of code but they were so tied in to other aspects of that particular player that i could not just extricate what i needed to finish up my player.

currently i have the loader bar working. i have the playhead working, as in - it follows the position of the song. i even can make the playhead draggable (scrubbable?). but i cannot for the life of me figure out how to make it update the position of the song when you drop the playhead.

is that clear as mud or what? can anybody help me out? i am poor so i can't pay a gazillion bucks an hour or whatever mega-brained actionscripters get these days. but i can give you a free downloadable mp3 album of my stuff and/or paypal you a few bucks for beers, hookers, or midget hookers (yes, i'm looking at you. you know who you are.).

i wanted so badly to do this all myself. just to prove to myself that i could. i got 97% of the way. but my brain hurts, and i'm starting to see actionscript on the walls and on tv and newsprint like russell crowe in that math movie. i just want to get this damn thing done already! help!
Read bbwax's other blogs.bbwax's Recent Blogs
Comments

xspf player from this site is open source and has no skip ahead IN track.
wimpy ( i bought that like a jackoff!) has slider for skipping ahead...
but you can't extricate the code legally even though there is a program that will
decompile flash/action script ( sothink flash swf decompiler ? ) ...
wimpy if it wasn't so goddamned ugly would be nice.
it works as an addon to expression engine (plugin for that!)
and also is IDV3 friendly. that's all i wrote.

emmail me for anything more than what i just pounded out here....? ;)

wimpy example: link
xspf player example link
just like the one here. i haven't figured out how to write the auto loading php / script
and generated the code for the XML playlist by hand. anyone can help with that link
i'm indebted!

thanks for the tips luna. i think i'll stick with what i've got so far. i worked too damn hard to turn back now, when all i need is just... a bit more... code. it's kinda like searching for a needle in a haystack though.

go with xspf!

You can modify the code easily and it comes with a .fla for the design with a simple include".as" action exported in the first frame. It is sweet. The .AS file has a custom UI at the bottom of the page, you can modify it. Just make sure to modify the .as before you upload it to your site. It behaves wierdly if you try to mess with the .as on the site when it is published (server side var passing, certain things stick into server vars when it is published)
Recent blogs: Chuck, vacation, inflamatory discovery  

i'm not a fan of the player used on this site, used to have it on hippocamp and it didnt perform too well. xspf is just a bit of xml.

anyways, if you want a player like the the one on bleep then follow this tutorial: link with the final player on the last page: link

wouldn't take much to turn that into something stylish a'la bleep.

thanks for the link jon. i think i might have used a bit of that code in mine actually. i've frankensteined so many examples together i might have forgoten about this one when it came time to do the playhead bit however. thanks for reminding me of it!

that's very cool. i can't tell immediately if that tutorial includes adding playlists or includes built in sound only?
great template layout and explanation!

i wrote some asp code and adapted a flash file that performs pretty well, i'll post a blog later with some downloads when i get to work, is simple code so should be easy to convert to php if you need that, it passes the mp3 file via a query string but seems to start playing about 100 times quicker than the xspf player on here; fuck knows why, it's not cos of anything i've done intentionally but it might help with what you're doing in some way.

here ya go: link - seems to load much much faster than most/all? other players i've seen out there that don't used a mp3 converted by flash.

[edit] updated the blog, added php page to the download.

thanks for the links jon! i'll check them out.

sorry to hijack your blog, i'll create one of my own when it's done, but i've added a javascript version to the above which means there's no server resources used at all other than delivering the html page.

nah, go ahead and hijack it. your stuff is a bit over my head i'm afraid though. what can i say, i'm a lightweight when it comes to math and code issues.

i've designed my player already. and i'd like to put it in my design portfolio eventually. it's a multitrack deal. it functions like the one on bleep for the most part. all except the -- when the playhead is let go, update the song position -- part. that's the only part i'm tripping up on the code.

that example you linked to earlier might do the trick. have to look when i get home though. hopefully it deals with external mp3s. i seem to recall though that they used embedded mp3s and loaded a swf into a swf or something weird like that. we'll see. thanks for trying to help me though!


Register / login
You must be a member to reply or post. signup or login