6 Replies Latest reply on Aug 28, 2011 8:29 AM by [no name] :D 2011

    How to mouse out from a (mouse over>bring to front)??

    [no name] :D 2011 Level 1

      hii

       

      img1.addEventListener(MouseEvent.MOUSE_OVER, fl_MouseOverHandler_3);

       

      function fl_MouseOverHandler_3(event:MouseEvent):void

      {

          addChild(MovieClip(event.currentTarget)); 

      }

      img2.addEventListener(MouseEvent.MOUSE_OVER, fl_MouseOverHandler_3);

      img3.addEventListener(MouseEvent.MOUSE_OVER, fl_MouseOverHandler_3);

      img4.addEventListener(MouseEvent.MOUSE_OVER, fl_MouseOverHandler_3);

      img5.addEventListener(MouseEvent.MOUSE_OVER, fl_MouseOverHandler_3);

       

       

       

      img1.addEventListener(MouseEvent.MOUSE_OUT, fl_MouseOutHandler);

       

      function fl_MouseOutHandler(event:MouseEvent):void

      {

      }

      img2.addEventListener(MouseEvent.MOUSE_OUT, fl_MouseOutHandler);

      img3.addEventListener(MouseEvent.MOUSE_OUT, fl_MouseOutHandler);

      img4.addEventListener(MouseEvent.MOUSE_OUT, fl_MouseOutHandler);

      img5.addEventListener(MouseEvent.MOUSE_OUT, fl_MouseOutHandler);

       

       

       

      This is what im using. the mouse over works perfectly fine to bring the object forward but for some reason, it won't mouse out. Would anyone know why?