0 Replies Latest reply on Jan 30, 2009 9:00 AM by ponch

    Problem trying to link from SWF to local files (for CD Rom)

    ponch
      Hi,

      I'm creating a flash movie which will be published as an exe - it's to be burnt onto a CD Rom. I need to link to word documents and PDFs from this flash file.

      Currently, my button action looks like this:

      myButton_mc.onRelease = function(){
      getURL("\files\test.html", "_blank")
      };
      this opens the browser, but the url comes up muddled:

      file:///C|/Documents%20and%20Settings/Ponch/My%20Documents/DESIGN/Clients/90ten/DESIGN/fil esest.pdf

      you can see that instead of using "\files\test.html" as the path, it's changed to "filesest.pdf".

      Any ideas what is going wrong?


      I've also tried (with forward slashes):
      pdfNav2Link1_mc.onRelease = function(){
      getURL("/files/test.html", "_blank")
      };

      and (not specifying a window):
      pdfNav2Link1_mc.onRelease = function(){
      getURL("/files/test.html")
      };

      and (adding to dots and to backward slashes before the URL):
      pdfNav2Link1_mc.onRelease = function(){
      getURL("..\\files\test.pdf", "_blank")
      };