6 Replies Latest reply: Jun 22, 2012 5:30 AM by Harbs. RSS

    Native Drag Drop

    nilamk Community Member

      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\projects\framework\src \mx\core\UIComponent.as:9408]

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

      at mx.managers::NativeDragManagerImpl/nativeDragEventHandler()[C:\autobuild\galaga\framework s\projects\airframework\src\mx\managers\NativeDragManagerImpl.as:598]