1 Reply Latest reply on Oct 20, 2009 4:41 AM by Marlene

    Download code use FileReference does not download

    Marlene Level 1

      My site is at http://yumyumburbank.com. I want the user to be able to download a pdf . I have a link that says "download yum yum guide here" that goes to a state where the user can click on a button and download the file.  I have used this code:

      public function downloadPDF():void{


      var request:URLRequest = new URLRequest("yumyumbrochure.pdf");

      var fileRef:FileReference = new FileReference();




      It does not download the file.