0 Replies Latest reply on Oct 12, 2007 7:33 AM by twchayden

    AS 2.0 FLV playback multi videos

    twchayden
      I've set up FLV playback for one video, but need to allow users to choose the next movie they want to view (non linear), as well as allow them to click through each movie in a linear fashion.
      Not sure what code to attach to buttons to:
      1. Allow non-linear video playback
      2. Allow the if/then/else option of going through each video in a linear manner--thinking should attach code to fwd button

      Code below, any help would be much appreciated! thx

      //------NETCONNECTION SETUP--------------------
      var nc:NetConnection = new NetConnection();
      nc.connect(null);


      //------NETSTREAM SETUP--------------------
      var ns:NetStream = new NetStream(nc);

      ns.onStatus = function(info) {
      if(info.code == "NetStream.Play.Start") {
      progressBar.onEnterFrame = videoUpdate;
      }
      }

      ns.onMetaData = function(info) {
      ns.duration = info.duration;
      }

      //------ATTACHING NETSTREAM--------------------
      video.attachVideo(ns);

      //------PLAYING EXTERNAL FLV--------

      ns.play("sample pics.flv");