0 Replies Latest reply on Jun 29, 2010 4:54 PM by UbuntuPenguin

    Component Resize Flicker

    UbuntuPenguin Level 4

      Hello Everyone ,

        I have a component that I am resizing in an event-handling block triggered by mouse movement.  If the mouse-movement is down and to the right , the component behaves correctly.  However , If I move the handle in the left or upwards direction , I get a nasty flicker.  Does anyone have any clue how to fix this ?  Here is my code:

       

                  protected function resizeAndMove(x:int , y:int ,
                                                  width:int , height:int):void
                  {   
                      if( _rectBorderContainer.x != x || _rectBorderContainer.y != y )
                      {
                          _rectBorderContainer.move( x , y );
                      }
                      _rectBorderContainer.width = width;
                      _rectBorderContainer.height = height;
                      _rectBorderContainer.invalidateDisplayList();
                  }

       

      Points will be awarded.

       

      Sincerely ,

        Ubu