1 Reply Latest reply on Jun 23, 2009 11:42 AM by Flex harUI

    Need help on a PopUpManager error

    apmyhr Level 1

      I have a class which has a Mouse_Over event that executes the following function,


      private function CreatePopUp(event){

           popUpObject = PopUpManager.createPopUp(this, PopUpClass);

           // Do Stuff //


           this.addEventListener(Mouse_Down, DestroyPopUp);

           this.addEventListener(Mouse_Out, DestroyPopUp);


           function DestroyPopUp(event){

                removeEventListener(Mouse_Down, DestroyPopUp);

                removeEventListener(Mouse_Out, DestroyPopUp);





      I have a whole bunch of these objects in my application.  For the most part, the pop ups work very smoothly.  However, if you keep waving the mouse over the objects, a random error will eventually occur.  After debugging, I found that an error is being thrown in SystemManager.updateLastActiveForm() on line 5087 because the index is = -1.  Does anyone know what might be causing this and how I can fix it?