0 Replies Latest reply on Aug 1, 2006 10:52 AM by tronwell

    playlist action script woe

    tronwell
      i'm having a problem with the following code:

      var xml:XML = new XML ();
      xml.ignoreWhite = true;

      xml.onLoad = function () {
      var nodes = this.firstChild.childNodes;
      for(i=0;i<nodes.length;i++) {
      list.addItem(nodes .attributes.desc,nodes.attributes.flv);

      }
      vid.play(list.getItemAt(0).data);
      list.selectiveIndex = 0;
      }

      xml.load("videos.xml");

      var lList:Object = new Object();
      lList.change = function() {
      vid.play(list.getItemAt(list.selectedIndex).data);
      }

      list.addEventListener("change",lList);

      for some reason when I click on the next video in the playlist shrinks the FLV player window, this happens each time I click on another video.
      Any help would be greatly appreciated.
      Thanks,
      Nate