             switch (event.keyCode)
             {
                 case Keyboard.LEFT:
-                    hspDelta = vp.getHorizontalScrollPositionDelta(ScrollUnit.LEFT);
+                    hspDelta = vp.getHorizontalScrollPositionDelta(NavigationUnit.LEFT);
                     break;
                 case Keyboard.RIGHT:
-                    hspDelta = vp.getHorizontalScrollPositionDelta(ScrollUnit.RIGHT);
+                    hspDelta = vp.getHorizontalScrollPositionDelta(NavigationUnit.RIGHT);
                     break;
                 case Keyboard.HOME:
-                    hspDelta = vp.getHorizontalScrollPositionDelta(ScrollUnit.HOME);
+                    hspDelta = vp.getHorizontalScrollPositionDelta(NavigationUnit.HOME);
                     break;
                 case Keyboard.END:                
-                    hspDelta = vp.getHorizontalScrollPositionDelta(ScrollUnit.END);
+                    hspDelta = vp.getHorizontalScrollPositionDelta(NavigationUnit.END);
                     break;
                 // If there's no vertical scrollbar, then map page up/down to
                 // page left,right
                 case Keyboard.PAGE_UP:
                      if (!verticalScrollBar || !(verticalScrollBar.visible))   
-                         hspDelta = vp.getHorizontalScrollPositionDelta(ScrollUnit.PAGE_LEFT);
+                         hspDelta = vp.getHorizontalScrollPositionDelta(NavigationUnit.PAGE_LEFT);
                      break;
                 case Keyboard.PAGE_DOWN:
                      if (!verticalScrollBar || !(verticalScrollBar.visible))   
-                         hspDelta = vp.getHorizontalScrollPositionDelta(ScrollUnit.PAGE_RIGHT);
+                         hspDelta = vp.getHorizontalScrollPositionDelta(NavigationUnit.PAGE_RIGHT);
                      break;
             }
             if (!isNaN(hspDelta))

            switch (event.keyCode)
            {
                case Keyboard.UP:
                     vspDelta = vp.getVerticalScrollPositionDelta(ScrollUnit.UP);
                     break;
                case Keyboard.DOWN:
                     vspDelta = vp.getVerticalScrollPositionDelta(ScrollUnit.DOWN);
                     break;
                case Keyboard.PAGE_UP:
                     vspDelta = vp.getVerticalScrollPositionDelta(ScrollUnit.PAGE_UP);
                     break;
                case Keyboard.PAGE_DOWN:
                     vspDelta = vp.getVerticalScrollPositionDelta(ScrollUnit.PAGE_DOWN);
                     break;
                case Keyboard.HOME:
                     vspDelta = vp.getVerticalScrollPositionDelta(ScrollUnit.HOME);
                     break;
                case Keyboard.END:
                     vspDelta = vp.getVerticalScrollPositionDelta(ScrollUnit.END);
                     break;
            }
            if (!isNaN(vspDelta))

            return;*/

        var nSteps:uint = Math.abs(event.delta);
        var navigationUnit:uint;

        // Scroll event.delta "steps".  If the VSB is up, scroll vertically,
        // if -only- the HSB is up then scroll horizontally.
         
        if (verticalScrollBar && verticalScrollBar.visible)
        {
            navigationUnit = (event.delta < 0) ? NavigationUnit.DOWN : NavigationUnit.UP;
            for(var vStep:int = 0; vStep < nSteps; vStep++)
            {
                var vspDelta:Number = vp.getVerticalScrollPositionDelta(navigationUnit);
                if (!isNaN(vspDelta))
                    vp.verticalScrollPosition += vspDelta;
            }
