Welcome, Guest
  • Author Topic: Simple mp3 player with playlist  (Read 2337 times)

    vinylmatt

    • Server what's that
    • *
    • Posts: 1
      • View Profile
      • Email
    Simple mp3 player with playlist
    « on: 03/26/08, 18:56 »
    Hi, I'm new here, and a bit of a newbie with Flash so please go easy with me!

    I'm trying to get this to work, using Flash 8...

    http://www.flash-db.com/Tutorials/mp3player/

    At the moment I've got it working in my Flash document, I've configured the xml file and copied mp3s into the correct directory. I've tested it and it works fine...

    But I want to edit the look of the playlist, which appears to be 'list_comp'. I also want to edit 'continous_comp'.

    Basically I need to change the font, font size and colour of the scroll bar to suit the look and feel of the rest of the site and can't seem to access the correct parameters. Are they locked in some way?

    Any help very gratefully received, thanks in advance, Matt

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: Simple mp3 player with playlist
    « Reply #1 on: 03/26/08, 21:16 »
    The playlist is a List component, open the Components dictionary (F1), look for List component, all components have a customize chapter with all the parameters you can change using setStyle

    Jorge

    blackghost

    • Server what's that
    • *
    • Posts: 1
      • View Profile
      • Email
    Re: Simple mp3 player with playlist
    « Reply #2 on: 04/05/08, 12:44 »
    would anyone have any ideas on how to add on a shuffle feature and a next track/previous track function?

    nothingGrinder

    • Mods
    • Systems Administrator
    • *****
    • Posts: 823
    • Automatic websites with social media distribution
      • View Profile
      • nothingGrinder
    Re: Simple mp3 player with playlist
    « Reply #3 on: 04/07/08, 02:12 »
    You can use Math.random() and the length of the playlist to generate the shuffle function.

    You need to use list.selectedIndex = aNumber, to create the next and last buttons.

    You will have to do some work on it yourself and post any problems that come up here. In the state that the application is in, it probably won't be too much trouble to modify.

    bgypsies

    • Server what's that
    • *
    • Posts: 1
      • View Profile
      • Email
    Re: Simple mp3 player with playlist
    « Reply #4 on: 05/30/08, 04:22 »
    How would I make this not auto start?

    Thanks

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: Simple mp3 player with playlist
    « Reply #5 on: 05/30/08, 07:42 »
    Inside populateTracksArray, delete or comment this line:

    playTrack(tracks_array[0].source,tracks_array[0].artist,tracks_array[0].album,tracks_array[0].title,true);

    Jorge