Skip navigation
nilamk
Currently Being Moderated

Native Drag Drop

Feb 10, 2012 5:26 AM

I have used the following event and respective event handler in canvas.

 

nativeDragEnter="canvas1_nativeDragEnterHandler(event)"

nativeDragExit="canvas1_nativeDragExitHandler(event)"

nativeDragDrop="canvas1_nativeDragDropHandler(event)"

nativeDragComplete="canvas1_nativeDragCompleteHandler(event)"

 

It gives type error like

 

 

TypeError: Error #1034: Type Coercion failed: cannot convert mx.events::DragEvent@18b51741 to mx.events.DragEvent.

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.4.0\frameworks\pr ojects\framework\src\mx\core\UIComponent.as:9408]

at mx.managers::NativeDragManagerImpl/_dispatchDragEvent()[C:\autobuild\ galaga\frameworks\projects\airframework\src\mx\managers\NativeDragMana gerImpl.as:625]

at mx.managers::NativeDragManagerImpl/nativeDragEventHandler()[C:\autobu ild\galaga\frameworks\projects\airframework\src\mx\managers\NativeDrag ManagerImpl.as:598]

 
Replies
  • Currently Being Moderated
    Apr 6, 2012 6:31 AM   in reply to nilamk

    It seems to be a Creative Suite sdk bug.

     

    You won't this exception raised anymore, if you're running your extension in release mode.

    This workaround is pretty creepy.

     

    Still waiting for Adobe to fix that bug. 

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 20, 2012 12:01 AM   in reply to nilamk

    I am too facing same problem, i didn't used DragEvent anywere in my code instead used NativeDragEvent, any updates on this  please...

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 20, 2012 12:28 AM   in reply to charanseeram

    It's an issue with the CS SDK. You cannot debug drag events. I works fine in as a release build, but debugging drag and drop is a drag...

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 20, 2012 12:36 AM   in reply to Harbs.

    thanks Harbs, inDesign plugin dev is  new to me, now uisng trace() instead debuging , but does inDesing follow any other lib's to achive drag drop feacility instead of NativeDragEvents  of flex sdk 3.4?,  coz i have to " d n d " mutiple files at a time on to inDesign document from my plugin application, (idms/indd/indt/images/textfiles) ..thanks in advance

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 22, 2012 5:27 AM   in reply to nilamk

    nativeDragDrop is not working on to  inDesing when i drop the collected items , can some one suggest the best way, can i handle this using NativeDragComplete handler ??, NativeDragComplete is working but how  can i  bring this selected source  items in to  this handler ...

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 22, 2012 5:30 AM   in reply to charanseeram

    You need to use File objects.

     

    Harbs

     
    |
    Mark as:

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