opening a pdf file in a relative link / local
Maybe this sounds simple.
But I get used to AS2 code to open a pdf file like the code below:
getURL("pdfDocuments/pdfname.pdf","_blank")
As I search uncle Google I'm stuck to this as equivalent to getURL in AS2.
btn.addEventListener(MouseEvent.CLICK, btnClick);
function btnClick(e:MouseEvent):void {
navigateToURL( new URLRequest("pdfDocuments/pdfname.pdf"), "_blank");
}
But still it did'nt work.
Before in AS2 getURL working on mailto, pdf on a relative link and a typical url's.
But as to AS3 navigateToURL function only works on mailto and typical url.
Any tweaks to the code above, to get it to work? will much appreciated.
Thanks,