1 Reply Latest reply on Oct 19, 2006 10:09 AM by derobinson

    Load FLV into SWF from URL string

    dummy
      I would like to load any flv I have on the server into a an SWF, with a URL value or FlashVars value. What I don't know how to do is get the actionscript setup to read the value and put it into something like this:

      ns.play(myVideoName);

      instead of the normal way:

      ns.play("somevideo.flv");

      I have the following code so far:

      var nc:NetConnection = new NetConnection();
      nc.connect(null);

      var ns:NetStream = new NetStream(nc);

      theVideo.attachedVideo(ns);

      ns.play(?);

      Thanks to anyone in advance.