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 ='
//not that in real code, this is a double quote
var urlRequest:URLRequest = new URLRequest(url);
ns.play(urlRequest). // --> ns.play(url) works perfectly
The reason I am trying to use a URLRequest object is that I
have to specify custom HTTP header.