Topic: Help with MP3 player (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=27943" title="Pages that link to Topic: Help with MP3 player (Page 1 of 1)" rel="nofollow" >Topic: Help with MP3 player <span class="small">(Page 1 of 1)</span>\

 
Radical Rob
Bipolar (III) Inmate

From: Kapolei, Hawaii USA
Insane since: Jun 2001

posted posted 05-17-2006 03:11

Ok, so I just discovered how to stream an MP3 using flash, problem is im trying to create one that will have all of my songs on it so the user can select which one they want to hear.... I did the basic timeline navigation but for some reason it's not working correctly.

By iteself without navigation it plays fine, put in the nav and POOF! stop working...

the asylum always has the geniuses that can figure this out in like 2 posts so im hoping someone can just point out where Im going wrong.

www.wayoutwestenterprises.com/mp3player.fla



(Edited by Radical Rob on 05-17-2006 03:11)

Steve
Maniac (V) Inmate

From: Boston, MA, USA
Insane since: Apr 2000

posted posted 05-17-2006 14:33

Hi;

Using the timeline for navigation is a bad idea in this case.

You should reduce your movie to one frame, with just one instance of the component. Be sure to give the instance a name so you can address it with ActionScript. Remove the hard-coded URLs in the component too. Your movieclip navigation elements should load the MP3 URL instead of advancing to another frame (check the built in component help - I think you want to use the "setMedia()" method of the component).

Also - it's bad practice to place code directly on movieclip instances if you can place in on the main timeline which in your case you can.

If you still need help I'll try to put together a demo fla.

Steve
Maniac (V) Inmate

From: Boston, MA, USA
Insane since: Apr 2000

posted posted 05-17-2006 15:46

Here's a bare bones demo. Hope it helps

Radical Rob
Bipolar (III) Inmate

From: Lost Angeles Kalifornia, via Hawaii....
Insane since: Jun 2001

posted posted 05-18-2006 16:53

I wish I had checked this last night before spending quite a bit of time on what I thought was a better solution. Thanks big time for the advice!!

Yeah eventually there will be alot of songs, I want to try and put every song I've ever done up.... (well over 100+)

I am so new to the whole flash thing, so I probably have alot of bad habits.

Here's how I ended up doing it, but of course there were problems with this method as well.

www.wayoutwestenterprises.com/audio.php
problem is the player isn't there. But if I link directly to the swf file, it works ok... sort of.
www.wayoutwestenterprises.com/audio/swf/MEDIAPLAYER.swf

At the time the easiest way I could think of doing this was loading external swf files.
(im so not looking forward to rewriting the actions the way you did it.....) :-)

thnx!

Steve
Maniac (V) Inmate

From: Boston, MA, USA
Insane since: Apr 2000

posted posted 05-18-2006 19:16
quote:
(im so not looking forward to rewriting the actions the way you did it.....)


Indeed not. With that many songs you REALLY need to make your playlist an XML file and use a List component. Before you invest many more hours we should hash that out or you'll be seriously hating yourself down the road.

Radical Rob
Bipolar (III) Inmate

From: Lost Angeles Kalifornia, via Hawaii....
Insane since: Jun 2001

posted posted 05-18-2006 20:46

I looked at quite a few XML style media players for flash and I got one that I pretty much am happy with, I've even started building the xml page a while ago, though with my limited Flash AS skills, I don't really have the know how to customize it how I'd like.

For example: http://www.wayoutwestenterprises.com/audio/audioplayer.swf

Ultimately I'd like the player to display an image of the album the person is listening to, as well as have a menu of all the songs that are available to listen to. As it is now, you can only skip to the next track.

Any thoughts on customization as I mentioned?

Steve
Maniac (V) Inmate

From: Boston, MA, USA
Insane since: Apr 2000

posted posted 05-18-2006 21:07

How come you ditched the media player component?
It wouldn't be hard to hook up a media player component, a List component, a dynamic text field (for the current track) and a holder clip for album art and tie them all together with an XML file that is easy for you to update. But I'm wondering why you moved away from Macromedia's fairly slick looking component to one much more sparse. A design decision?

Let me know some more about your design parameters and we ought to be able to get something good going without too much pain.

Radical Rob
Bipolar (III) Inmate

From: Lost Angeles Kalifornia, via Hawaii....
Insane since: Jun 2001

posted posted 05-18-2006 23:51

Sorry these were all done at seperate times, i was just trying to figure out which one would work the best... (well WORK being the key word here)
The only thing I had a problem was a lack of customization on the xml formated one. I much prefer the media player component.... very clean and simple.

Radical Rob
Bipolar (III) Inmate

From: Lost Angeles Kalifornia, via Hawaii....
Insane since: Jun 2001

posted posted 05-22-2006 11:53

update: Ok, thanks to Steve, everything has come to fruition. (spelling...) Got me a nice little xml playlist that now displays song title, a jpg of the album and does it really clean and simple. With a bit of tweaking I was able to do it for video as well.

www.wayoutwestenterprises.com

Click on Audio and Video.

Three cheers for Steve!!!

whoo whooo!!



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu