3 Replies Latest reply on May 28, 2012 8:47 PM by flourmilling

    Can you Drag and Drop to open Files


      Hello All,


      I am trying to make a desktop app using AIR with Flash Pro CS5.5. I was wondering if it was possible to have the app open files by dropping them onto the app's icon in the browser of the OS.


      For example, let's say I want to create a photo viewer app for Windows. I would like to be able to highlight a couple of JPGs, drag them over my app's icon and 'drop' them into the program. This will open the app and it will show me the selected JPGs in a slide show.


      If this is not possible, then is it possible to have the app already open and drag the JPGs on the the open window for the same effect?


      I have read the FileReference and File classes documentation but it doesn't quite answer my question. Also, searches on Google as well as here don't seem to be leading me to the answer. I've tried "open file using drag and drop" and "pass a file as a parameter to AIR app" etc,  but the queries don't lead me to relevant information.


      Any help is appreciated,


      Thanks in advance.