 
         var showHSB:Boolean = false;
         var hAuto:Boolean = false; 
-        switch(scroller.horizontalScrollPolicy) {
+        switch(scroller.getStyle("horizontalScrollPolicy")) {
             case ScrollPolicy.ON: 
                 if (hsb) showHSB = true; 
                 break;


        var showVSB:Boolean = false;
        var vAuto:Boolean = false;
        switch(scroller.verticalScrollPolicy) {
           case ScrollPolicy.ON: 
                if (vsb) showVSB = true; 
                break;


        var vsb:ScrollBar = scroller.verticalScrollBar;
        var showVSB:Boolean = false;
        switch(scroller.getStyle("verticalScrollPolicy")) 
        {
           case ScrollPolicy.ON: 
                if (vsb) showVSB = true; 
