3 Replies Latest reply on Feb 12, 2013 8:33 AM by Mac_06

    Drag mix content to InDesign CS6

    Mac_06 Level 2

      Hi,

       

      I know we can drag drop file and bitmap content from CS Extension to InDesign which is given here. But I have a different scenerio where I've some mix content shown in Tile list i.e. one image and 3 lables which I need to drag from Panel and drop in InDesign file. There was some dicussion around it in http://forums.adobe.com/message/4154591

      I'm trying the way is:

       

       

      public function handlePureFlashFileDragStart(event:Event):void
               {
                     var clip:Clipboard = new Clipboard();
                     clip.setData(ClipboardFormats.FILE_LIST_FORMAT, event.currentTarget.selectedItems);
      
                     var allowedActions:NativeDragOptions = new NativeDragOptions();
                     allowedActions.allowLink = false;
                     NativeDragManager.doDrag(event.currentTarget as InteractiveObject, clip);
               }
      

       

      But I'm getting the error below

       

       

      TypeError: Error #1034: Type Coercion failed: cannot convert __AS3__.vec::Vector.<Object>@2845a731 to Array.
                at flash.desktop::Clipboard/convertFlashFormat()
                at flash.desktop::Clipboard/setData()
                at controllar::ApplicationControllar/handlePureFlashFileDragStart()[/Users/z013j4k/Documents/DCP_Projects_CS6/CatalogPagination/src/controllar/ApplicationControllar.as:67]
                at components::ProductsTab/___ProductsTab_List1_mouseDown()[/Users/z013j4k/Documents/DCP_Projects_CS6/CatalogPagination/src/components/ProductsTab.mxml:9]
                at flash.events::EventDispatcher/dispatchEventFunction()
                at flash.events::EventDispatcher/dispatchEvent()
                at mx.core::UIComponent/dispatchEvent()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:13128]
                at mx.managers::WindowedSystemManager/mouseEventHandler()[E:\dev\hero_private\frameworks\projects\airframework\src\mx\managers\WindowedSystemManager.as:2344]
      
      

       

      I'm not sure how can we get that done . Can some one help me out on this ?

       

      Thanks

      Mac