Jump to content


Flash Music Player


  • You cannot reply to this topic
4 replies to this topic

#1 Seraphic

    Young Padawan

  • Members
  • Pip
  • 18 posts

Posted 02 November 2007 - 03:46 PM

Hi,

I designed a music player that I've been using for awhile now. However it has rather limited features and what not. So started work on a new one using a free template that is much more advanced. After looking over the code, I was able to see how it works for the most part and make the changed needed. Just about done with it, but some issues remain...

Posted Image

Issue #1. "Total Track Time" is not always correct. Seems to be over the real track time by about a minute or so on a some tracks. However, on other tracks it's correct, which is odd.

I called with:
	var duration:Number = mySound.duration/1000;
	var durMin:Number = Math.round(duration/60);
	durMin = (durMin < 10) ? "0"+durMin : durMin;
	var durSec:Number = Math.round(duration`);
	durSec = (durSec < 10) ? "0"+durSec : durSec;
	totalTrackTime.text = durMin+":"+durSec;

Issue #2. Horizontal scroll track title text. The issue here is that the track song titles are too long for the menu. Thus, a horizontal marquee in two locations is needed. First is the main track title and the second is on mouse over in the track selection menu. I've tried several methods including the keyframe and actionscript, but with no luck.

Issue #3. Menu dragger. It came with up and done arrows to move along the track menu list, however, when you have over 850 tracks, it is much too slow. So a menu dragger for quick access from the top to the bottom of the menu is needed. Again, tried a few guides, but with no luck.

Any help would be appreciated.

Edited by Seraphic, 02 November 2007 - 03:52 PM.


#2 Ben

    P2L Jedi Master

  • Publishing Betazoids
  • PipPipPipPip
  • 1,366 posts
  • Gender:Male
  • Location:VIC, Australia

Posted 03 November 2007 - 03:00 AM

Oh my God! I made that music player! Wow where did you get that from? That was made year(s) ago. So I can answer those issues for you:

1. The total tracks time is I think retrieved by the meta data in the file. Sometimes it is not always correct, however I've only ever experienced this issue locally - online, it's fine.
2. When I made it I didn't actually think about having that problem, however in a later music player I did make it scroll left and right. I could show you the code for that if you need it.
3. The menu I made in there was very half-assed. I didn't bother with a scroller, nor with performance issues. To make a decent one that can handle all that, you'd need to start again in the menu.

There is actually another issue I hadn't noticed at the time. You cannot seek through the file while it's streaming, or else it will mess up.

Overall the music player was written pretty badly. I mean, it worked, but the code was messy, and I was unaware of some bugs and such that would occur. My later music players have worked a lot better than that, so if that one is giving you headaches, I could show you some of my other music players.

#3 Seraphic

    Young Padawan

  • Members
  • Pip
  • 18 posts

Posted 03 November 2007 - 03:35 AM

View PostBen, on Nov 3 2007, 04:00 AM, said:

Oh my God! I made that music player! Wow where did you get that from? That was made year(s) ago. So I can answer those issues for you:

1. The total tracks time is I think retrieved by the meta data in the file. Sometimes it is not always correct, however I've only ever experienced this issue locally - online, it's fine.
2. When I made it I didn't actually think about having that problem, however in a later music player I did make it scroll left and right. I could show you the code for that if you need it.
3. The menu I made in there was very half-assed. I didn't bother with a scroller, nor with performance issues. To make a decent one that can handle all that, you'd need to start again in the menu.

There is actually another issue I hadn't noticed at the time. You cannot seek through the file while it's streaming, or else it will mess up.

Overall the music player was written pretty badly. I mean, it worked, but the code was messy, and I was unaware of some bugs and such that would occur. My later music players have worked a lot better than that, so if that one is giving you headaches, I could show you some of my other music players.

Damn, really?! Wow, small world... lol. It said, in the code tab, by Ben F****** at FLASHIMPULSE.COM. I went to that website to look for some help, but it's gone it seems. Anyway, looks like that is you, lol.

To be honest, I don't really remember where I found it. I think back when I was looking to make a flash player I just found it on a website with flash tutorials. No clue where though. It's been on my hard-drive for about a year and I haven't even tried to use it until now (as my music player isn't too great). It came with the .fla file, empty media folder and basic .xml playlist. (my player also uses .xml for streaming, so this was good to see).

Issue #1
I've only be using it on local PC so that must be why the total track time is off then. But, from what you said, it sounds like the total time issue would be fixed once it's moved to the online server.

Issue #2
Yeah, could you show me how? I tried for awhile and couldn't get it to anything, lol. Just it those two locations, a slow horizontal scroll marquee to the left would work fine.

Issue #3
For a hundred or so songs it would work fine as it is now. Just, when you have a thousand, some kind of scroll bar for the menu is needed, or you would be there for awhile moving the bottom of the list. I tried this for awhile too, but could not get it to work. Is adding this a lot of extra work?

I've only made a few changes in the way and location text information is shown, but overall, I thought the player was designed and coded really well. And the only bug I noticed is if you click on the up or down arrow, and then click and hold while moving the cursor off and away, then release, the menu will scroll for that direction until you click the arrow again.

Like I said, the one I made was really basic so yours was like night and day. It had all the features I was looking for. The only think that would have been a plus is if it was longer width wise. But that isn't a major deal.

Oh, and you can't seek the current track being played at all online? Again, I've only used it on local PC as of now, so thought it would be fine online as well. Did you ever find a fix for it?

Sure, what other players do you have? Could I take a look? Do you have MSN Messenger?

Edited by Seraphic, 03 November 2007 - 03:55 AM.


#4 Seraphic

    Young Padawan

  • Members
  • Pip
  • 18 posts

Posted 09 November 2007 - 01:46 AM

Ben, are you still out there?

#5 Seraphic

    Young Padawan

  • Members
  • Pip
  • 18 posts

Posted 13 March 2008 - 01:02 AM

MediaDesign, are you still active?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users