0 Replies Latest reply on Mar 10, 2008 1:47 PM by dudanskavitch

    linking to pdf with getURL + javascript

    dudanskavitch
      Hello-

      This seems like a fairly simple thing to do, but I cannot figure out the correct syntax to make it happen. I need to link to a pdf file and add some javascript to the call using getURL, used in Google Analytics to track a pdf file.

      I need to translate
      <a href=" http://www.example.com/files/map.pdf" onClick="javascript: pageTracker._trackPageview('/downloads/map'); ">

      into Flash AS 2. I have tried different combinations similar to
      on (release) {
      getURL("files/map.pdf","_blank", "javascript: pageTracker._trackPageview('downloads/map')'");
      }

      but to no avail.

      Any help would be greatly appreciated.