/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
button.addEventListener(MouseEvent.CLICK, launchPDF); function launchPDF(e:MouseEvent):void { navigateToURL(new URLRequest("yourpdf.pdf")); }