3 Replies Latest reply on Dec 3, 2009 1:21 AM by Saransoft84

    linking PDF to Flash


      I'm still a newbie at this, so pleasse bear with me. I have a links page on a website for myself. I wish to create a link from a hidden button over the text to a pdf file within the project folder. I keep getting errors saying that it cant find the file and points to an address which is totally wrong. This is the code I am using


      var marriages:URLRequest = new URLRequest("marriagesStPauls1837_85.pdf");
      function clickHandler(event:MouseEvent):void

      navigateToURL(marriages, "_blank");
      btSaintPaulBurial1.addEventListener(MouseEvent.CLICK, clickHandler);


      This is the message that I get.

      can't find the file at /C|/Users/Admin/AppData/Local/Temp/marriagesStPauls1837_85.pdf.


      Is this the right way to link a pdf file to flash?

      Is there some other code I should be using?