FORUMS: list search recent posts

download pdf from flash site

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Daniel Fogarty
download pdf from flash site
on Oct 12, 2010 at 6:19:49 pm

hey all.
i have searched everywhere for the answer to this question but to no avail. I just want to make a button that downloads my resume as a pdf to the user's computer. i'm running as3 so the prescribed GetURL method will not work. any help would be greatly appreciated. thanks in advance.

Return to posts index

demetri tashie
Re: download pdf from flash site
on Oct 13, 2010 at 3:52:18 am

this would be a super easy way for a button with the instance name "getPDF".
your PDF is presumed to be in the same directory as the SWF, otherwise use the correct directory adress to the file:

getPDF.addEventListener(MouseEvent.CLICK, goPDF);

function goPDF(e:MouseEvent):void
navigateToURL(new URLRequest("myResume.pdf"));

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved