1 Reply Latest reply on Nov 6, 2012 2:54 PM by Ryosake

    openWithDefautlApplication

    Ryosake

      Hi!

       

      Im trying to open some PDFs from my AIR application. Im developing with Dreamweaver and JavaScript. I've already found this snippet, but it doenst work under Javascript.

       

           var file:File = File.deskopDirectory;

           file = file.resolvePath("test.pdf");

           file.openWithDefaultApplication();

       

      Is it possible that it will work with JavaScript (or any other scipt language in dreamweaver) or do i have to work with e.g. Flex?

      Or is it even possible to use flex code in Dreamweaver?

       

      Thanks for help!

       

       

      PS: It's my first time developing with Air/Dreamweaver, so please excuse me, if my question is a little bit stupid