0 Replies Latest reply on Oct 12, 2007 11:47 AM by twchayden

    How to create "next" button for FLV

    twchayden
      How can I do this? Thinking might need else if statement? New to AS. thanks for your help!
      This is the code I have currently:
      //------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");

      fwd.onRelease = function() {

      }