Search code examples
filepdfflashactionscript

Open PDF or Folder


I try to open PDFs or folders (in finder/explorer) triggered by a mouse click in a swf application running in flash player.

Opening a PDF via urlRequest and navigateToUrl() always opens the browser.

I read about this solution with fscommand and it seems that we have to write shell scripts for mac and PC. Doesn't sound perfect.

The swf is executed on cd ROM. So I think we can't use an air application and the classes of the air framework (File... etc.).

Is there a better way?


Solution

  • we go now with zinc. it seems to be very powerful. you can create a exe from any swf. zinc let´s you implement many functions in actionscript, that give you access to the system. open pdf or something it the smallest task then :) cheers, florian