             case ScrollUnit.LEFT:
                 // Snap the left edge of element to the left edge of the scrollRect.
                 // The element is the the first non-fully visible element left of the scrollRect.
-                delta = Math.max(elementBounds.left - scrollRect.left, -scrollRect.width);
+                delta = Math.max(getElementBounds.left - scrollRect.left, -scrollRect.width);
             break;    
             case ScrollUnit.RIGHT:
                 // Snap the right edge of the element to the right edge of the scrollRect.
                 // The element is the the first non-fully visible element right of the scrollRect.
-                delta = Math.min(elementBounds.right - scrollRect.right, scrollRect.width);
+                delta = Math.min(getElementBounds.right - scrollRect.right, scrollRect.width);
             break;    
             case ScrollUnit.PAGE_LEFT:
             {
                 // Snap the right edge of the element to the right edge of the scrollRect.
                 // The element is the the first non-fully visible element left of the scrollRect. 
-                delta = elementBounds.right - scrollRect.right;
+                delta = getElementBounds.right - scrollRect.right;
                 
                 // Special case: when an element is wider than the scrollRect,
                 // we want to snap its left edge to the left edge of the scrollRect.
                 // The delta will be limited to the width of the scrollRect further below.
                 if (delta >= 0)
-                    delta = Math.max(elementBounds.left - scrollRect.left, -scrollRect.width);  
+                    delta = Math.max(getElementBounds.left - scrollRect.left, -scrollRect.width);  
             }
             break;
             case ScrollUnit.PAGE_RIGHT:
             {
                 // Align the left edge of the element to the left edge of the scrollRect.
                 // The element is the the first non-fully visible element right of the scrollRect.
-                delta = elementBounds.left - scrollRect.left;
+                delta = getElementBounds.left - scrollRect.left;
                 
                 // Special case: when an element is wider than the scrollRect,
                 // we want to snap its right edge to the right edge of the scrollRect.
                 // The delta will be limited to the width of the scrollRect further below.
                 if (delta <= 0)
-                    delta = Math.min(elementBounds.right - scrollRect.right, scrollRect.width);
+                    delta = Math.min(getElementBounds.right - scrollRect.right, scrollRect.width);
             }
             break;
         }

        // to scroll to the END and minDelta scrolls to HOME. 
        var maxDelta:Number = g.contentHeight - scrollRect.bottom;
        var minDelta:Number = -scrollRect.top;
        var elementBounds:Rectangle;
        switch(scrollUnit)
        {
            case ScrollUnit.UP:
            case ScrollUnit.PAGE_UP:
                // Find the bounds of the first non-fully visible element
                // that spans right of the scrollRect.
                elementBounds = elementBoundsAboveScrollRect(scrollRect);
                break;

            case ScrollUnit.DOWN:
            case ScrollUnit.PAGE_DOWN:
                // Find the bounds of the first non-fully visible element
                // that spans below the scrollRect.
                elementBounds = elementBoundsBelowScrollRect(scrollRect);
                break;

            case ScrollUnit.HOME: 

     *  @return Returns the bounds of the first element that spans or is
     *  above the scrollRect’s top edge.
     *  
     *  @see #getElementBoundsLeftOfScrollRect
     *  @see #getElementBoundsRightScrollRect
     *  @see #getElementBoundsBelowScrollRect
     *  @see #getVerticalScrollPositionDelta
     *  
     *  @langversion 3.0
