Link to launch pdf file in browser


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. button.addEventListener(MouseEvent.CLICK, launchPDF);
  2.  
  3. function launchPDF(e:MouseEvent):void
  4. {
  5. navigateToURL(new URLRequest("yourpdf.pdf"));
  6. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.