0 Replies Latest reply on Mar 21, 2007 8:18 AM by darkfrog26

    PopUpManager + Concurrency = NOT Thread-Safe

    darkfrog26
      Is there any way to make the PopUpManager not throw evil messages like this:

      RangeError: Error #2006: The supplied index is out of bounds.
      at flash.display::DisplayObjectContainer/addChildAt()
      at mx.managers::SystemManager/ http://www.adobe.com/2006/flex/mx/internal::rawChildren_addChildAt()
      at mx.managers::SystemManager/addChild()
      at mx.managers::PopUpManagerImpl/addPopUp()
      at mx.managers::PopUpManager$/addPopUp()
      at mx.controls::Menu/show()
      at jseamless/::openRightClick()
      at Function/ http://adobe.com/AS3/2006/builtin::apply()
      at ()
      at flash.external::ExternalInterface$/flash.external:ExternalInterface::_callIn()

      When a call is made concurrently. I think I can resolve the issue if I can replace the PopUpManager's implementation. Can someone tell me how to do that? I'd like to write a thread-safe version of the PopUpManager to handle concurrent calls to it....right now it just dies showing the error above.