To anyone who can provide assistance:
I would like to pass a value from a text box on stage as the URL or filename to the NetStream.play() argument. example:

var url:String = url_text.text;

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

var stream:NetStream = new NetStream(conn);

stream.play(url); //Receive error "Error #2044: Unhandled NetStatusEvent:. level=error, code=NetStream.Play.StreamNotFound
at FileName_fla::MainTimeline/frame1()"


If I provide the filename in the url declaration it works but when try to pass the string value from the text box it doesn't seem to be able to recognize the value. Is it possible a type conversion issue or timing issue as to when the NetStream.play receives the value (before the value is available)

var url:String = "filename.mp4" //hardcoded
...
stream.play(url); // This takes the value of the variable

The point of the matter is that I'm pulling the values from JavaScript/HTML using the ExternalInterface which changes as the user selects next on a HTML page. The page name (URL) is being parsed and passed back as the video filename. I'm using the text boxes currently just to test/view the values being received and sent to JavaScript. The value send and receive fine, I just can not seem to pass the value into the NetStream.play(JavaScriptValue). Thanks in advance

function getTextFromJavaScript(str:String):void {
sending_ti.text = str;
var jsArgument:String = sending_ti.text;
var result:Object = ExternalInterface.call("getTextFromFlash", jsArgument);
received_ti.text = "Returned: " + result;
}
ExternalInterface.addCallback("sendTextToFlash", getTextFromJavaScript);