Random Selection

Discussion in 'JavaScript' started by orstyles, Apr 28, 2008.

  1. #1
    Hi I have a flash player which reads from an xml playlist. It works fine but it plays the songs according to the order in the playlist. I want it to continously shuffle to select randomly. This is the script: I added the ones with stars to create the sfuffle but it does not work. Any ideas what it should be?


    <script type="text/javascript">
    var so = new SWFObject("playerMultiple.swf", "mymovie", "192", "95", "7", "#FFFFFF");
    so.addVariable("overColor","#660000")
    so.addVariable("autoPlay","no")
    so.addVariable("playlistPath","playlist.xml")
    *so.addVariable("shuffle", "True")*
    *so.addVariable('repeat','list')*
    so.write("flashPlayer");
    </script>
     
    orstyles, Apr 28, 2008 IP