0 Replies Latest reply on Jun 1, 2012 3:19 AM by Vikram_S

    How to drop asset file from remote server?

    Vikram_S Level 2

      Hi All,

       

      I am exploring AssetDragDrop example from Creative Suite SDK Examples. It worked well with local files but not with remote file.

       

      I explored how to drag drop remote file from AIR, I found that URLFilePromise need to use for same (Found some example on web).

       

      I changed handleFileDragStart as bellow but InDesign does not accept that drop. Here is modified method.

       

       

                          var urlFileP:URLFilePromise = new URLFilePromise();

                          urlFileP.request = new URLRequest("{server image url}");

       

                                     //Also checked with by providing relative path

                                    urlFileP.relativePath = "C:\\SomeFolder\\1.jpg";

                                    var array:Array = new Array();

                                    array.push(urlFileP);

       

                                    urlFileP = new URLFilePromise();

                                    urlFileP.request = new URLRequest("{server image url}");

                                    urlFileP.relativePath = "C:\\SomeFolder\\2.jpg";

                                    array.push(urlFileP);

                                                       event.clipboard.setData(ClipboardFormats.FILE_PROMISE_LIST_FORMAT,array);

       

      does anybody know ClipboardFormats.FILE_PROMISE_LIST_FORMAT is supported in InDesign

       

      Thanks,

      Vikram