0 Replies Latest reply on Jan 8, 2007 9:18 AM by markk03

    NetStream URLRequest

      The official documentation for the play() method of the NetStream class says that the argument of the method is:

      "The location of the FLV file to play, as a URLRequest object or a string".

      I have tried to pass a URLRequest object to the method and it really doesn't work. Here is the sample code:

      var url:String =' http://www.someurl.com/thefile.flv'; //not that in real code, this is a double quote
      var urlRequest:URLRequest = new URLRequest(url);
      ns.play(urlRequest). // --> ns.play(url) works perfectly fine.

      The reason I am trying to use a URLRequest object is that I have to specify custom HTTP header.

      Any idea?