I have a .xml file with this contents:
songs.xml
i have a flash player that views that list and displays the content in that order. I'm wanting to make a shuffle button that when clicked, uses javascript or php to shuffle each <track> ... </track> tag.
Is this possible?
songs.xml
<?xml version="1.0" encoding="UTF-8"?> <xml> <track> <path>songs/song1.mp3</path> <title>song 1</title> </track> <track> <path>songs/song2.mp3</path> <title>song 2</title> </track> <track> <path>songs/song3.mp3</path> <title>song 3</title> </track> <track> <path>songs/song4.mp3</path> <title>song 4</title> </track> </xml>
i have a flash player that views that list and displays the content in that order. I'm wanting to make a shuffle button that when clicked, uses javascript or php to shuffle each <track> ... </track> tag.
Is this possible?

Help
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Back to top









