0 Replies Latest reply on Dec 4, 2006 2:22 PM by paulmmalone

    Actionscript to control scrollPane component

    paulmmalone
      I am trying to control a scrollpane "my_sp" with a couple of buttons "down_bt" and "up_bt"
      I am pretty new to coding. Anyone see any errors. Thanks for the help.

      my_sp.setStyle("borderStyle", "none");
      my_sp.setSize(300, 300);
      down_bt.onPress = function() {my_sp.scroll += 1;};
      up_bt.onPress = function() {my_sp.scroll -= 1;};
      stop();