11 Replies Latest reply on Aug 6, 2010 1:20 PM by jimmyoneshot

    Error - Cannot Use Lists, Tilelists Etc Inside a Module

    jimmyoneshot Level 1

      Inside my main application file I have a custom component which is a ModuleLoader. This ModuleLoader loads my Modules based on what buttons the user clicks in my main application.


      In one of my modules I have a populated list control. Whenever I run the application and click on the list control I get the error:-


      TypeError: Error #1034: Type Coercion failed: cannot convert mx.managers::DragManagerImpl@660ab51 to mx.managers.IDragManager.


      I've heard of this error previously so imported every type of manager I could think would help into the main application file as so:-


      import mx.managers.*


      public var _historyManager:HistoryManager;


      public var _dragManager:DragManager;


      public var _popupManager:PopUpManager;


      public var _cursorManager:CursorManager;


      public var _focusManager:FocusManager


      Now when I run the application and click the list I don't get the error but I am simply unable to select items in the list. It simply does nothing when I click it. Is there any solution to this problem?


      Any help is greatly appreciated