Skip navigation
Currently Being Moderated

How to drop asset file from remote server?

Jun 1, 2012 3:19 AM

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,arr ay);

 

does anybody know ClipboardFormats.FILE_PROMISE_LIST_FORMAT is supported in InDesign

 

Thanks,

Vikram

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points