0 Replies Latest reply on Jul 15, 2008 12:31 AM by arrowCai

    Why alert casting error when module url changed?

    arrowCai
      Hi, everyone.
      I occurred a stranger error when click the item in DataGrid which is redirected by "ModuleLoader" url.

      Error #1034: Cast Error:Cannot cast mx.managers::DragManagerImpl@482f971 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()

      Actually I never modify about DragManagerImpl...

      In my main.mxml there is a
      <mx:ModuleLoader id="module" url="modules/DeviceRegisterSelectWizardModule.swf"/>
      this ModuleLoader control is to load a new swf module when change the url.
      Althought the first loaded module which included DataGrid is OK, it popup the error when this module is the second time switched by the url...
      The error is the above when click the item in it.

      Actually all cast operation is error as I tried:

      And is there any solution for it? ModuleLoader has such a bug?

      Thank you very much.