hello
I have been using this code in an external .as file to download PDF files
but I now have the need to have them open in a blank tab / window
any help adjusting this script would be much appreciated.
public function DownloadStatement()
{
var downloadFile:String = "http://www.Website.com/Site/pdf/test.pdf";
var localRef:FileReference = new FileReference();
var request:URLRequest = new URLRequest();
request.url = downloadFile;
try
{
localRef.download(request);
}
catch (error:Error)
{
}
}
thanks