1 Reply Latest reply on Jun 19, 2008 10:16 AM by whiterrabbit

    Datagrid in module problem

      Well Flex is looking more and more like a Bug Safari, anyone come across something like this?

      A data grid in an application with 3 modules throws an error when clicked:

      TypeError: Error #1034: Type Coercion failed: cannot convert mx.managers::DragManagerImpl@1c996dd1 to mx.managers.IDragManager.
      at mx.managers::DragManager$/get impl()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\DragManager.as:152]
      at mx.managers::DragManager$/get isDragging()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\DragManager.as:18 7]
      at mx.controls.listClasses::ListBase/dragScroll()[E:\dev\3.0.x\frameworks\projects\framework \src\mx\controls\listClasses\ListBase.as:7148]
      at Function/ http://adobe.com/AS3/2006/builtin::apply()
      at <anonymous>()
      at SetIntervalTimer/onTimer()
      at flash.utils::Timer/_timerDispatch()
      at flash.utils::Timer/tick()
      This will happen even without an ItemClick property assigned to the datagrid. Remove the dataProvider tag though and the error is gone. The datagrid has been populated without any problem, just clicking on it causes this error with or without and ItemClick tag.

      I have already tried importing some classes.
      import mx.managers.IDragManager;
      private var iDragManager:IDragManager;