2 Replies Latest reply on Aug 22, 2011 7:09 AM by saisri2k2

    Open local files with Flex

    Sjoerd Moret1990

      hey,

       

      I'm making a Flex application. I want to open Word/PDF files from a link in the Flex application.

       

      Like: C:\Users\smo\workspace\wordDoc.doc

       

      I tried it with navigateToURL and with:

       

          <s:a href="file:///C:\Users\smo\workspace\wordDoc.doc" >
                              Testtest
                          </s:a>

       

       

      SecurityError: Error #2148: SWF-bestand http://localhost:8080/registr8/registr8/Main.swf heeft geen toegang tot lokale bron file:///C:/. Alleen SWF-bestanden Lokaal-met-bestandssysteem en Lokaal-vertrouwd krijgen toegang tot lokale bronnen.
          at global/flash.net::navigateToURL()
          at flashx.textLayout.elements::LinkElement/mouseClickHandler()[C:\Vellum\branches\v1\1.1\dev \output\openSource\textLayout\src\flashx\textLayout\elements\LinkElement.as:832]
          at flashx.textLayout.elements::LinkElement/mouseUpHandler()[C:\Vellum\branches\v1\1.1\dev\ou tput\openSource\textLayout\src\flashx\textLayout\elements\LinkElement.as:803]