| Member List |
| Posted: 09 Jun 2009 21:07 | ||
|
Registered User Currently Offline |
Posts: 1 Join Date: Jun 2009 |
|
|
Can you go into some detail on how to set up spectrum bars and id3 tags?
Using the audioManager, I have an mp3 player that looks like the attached image. My buttons for previous, play, pause, stop and next are transparent pngs placed on top of the player and for the most part work the same as your examples. The major difference is that I'm using a dataGrid instead of a ComboBox. Because of this, the standard code for the previous and next buttons didn't work. When I click Previous, I call this instead: Code:
if(playlist.selectedIndex>0) { playlist.selectedIndex = playlist.selectedIndex - 1; playlistChange(); } For the Next button, I call this: Code:
if(playlist.selectedIndex<dp.length - 1) { playlist.selectedIndex = playlist.selectedIndex + 1; playlistChange(); } I'm going to be using a directory tree as my playlist instead of a single list defined within actionscript, so I'm working on the PHP code to read a directory structure, build the xml which will then build the necessary array. For my questions: 1. How do I control the playcount of a song. As is, when a song finishes playing, the same song repeats. I can build controls to set it up for play next or random play, but I'm not sure what to look for within the audioManager. 2. I see the code for spectrum bars in the audioManager, but I'm not really understanding what I need to put into my layout to get it to work. Can you help? 3. Can you provide a brief tutorial on id3 tags, what information can be collected and how to use that information? In my playlist, I'm of course putting in the track number, the title and artist and the duration of each song. Up to this point, however, those elements have been entered by hand into the xml. Can these things be picked up from id3? I want the player to have two lines of text. One for song title and one for the artist and to configure it for scrolling text if either line is longer than the available space. I'm then hoping to build a timer to display the time elapsed for currently playing song.
|
||