1 Reply Latest reply on Oct 14, 2007 6:07 AM by Starlover_jacob

    flvplayback component accessing an xml doc for a flv file

    treybraid1968 Level 1
      i am using flash 8 pro and trying to learn " as 2... this is the action script currently in frame 1 of my movie clip:
      ( i found this code and i cut and pasted it... ) i have googled the hell out of this for the last 2-3 day's in vain.... please help... i have also posted on 2-3 forum's without a response...

      the instance of my player is : my_FLVPlybk

      var vlist:XML = new XML();
      vlist.ignoreWhite = true;
      vlist.onLoad = function(success:Boolean) {
      var videos:Array = this.firstChild.childNodes;
      for (i=0; i<videos.length; i++) {
      videoList.addItem(videos .attributes.desc,
      videos
      .attributes.url);
      }
      ns.play(videoList.getItemAt(0).data);
      videoList.selectedItem = 0;
      };
      var vidList:Object = new Object();
      vidList.change = function() {
      ns.play(videoList.getItemAt(videoList.selectedIndex).data);
      };
      videoList.addEventListener("change", vidList); vlist.load("rtmp://Documents and Settings/Angie/My Documents/video/ videos.xml");

      and here is my xml file for the flv....

      <?xml version="1.0" encoding="iso-8859-1"?> <videos>
      <video url="mikefundy.flv" desc="Mike Gundy"/> </videos>



      i keep getting this error:

      Error opening URL "rtmp://Documents and Settings/Angie/My Documents/ video/videos.xml"
      1000: Unable to make connection to server or to find FLV on server

      once this is done then i'm going to tackle using multiple flv's ....
      with a slide / list box to the right that one click's on to play in the flvplayer... another day another dilemna...

      please help...
      trey