0 Replies Latest reply on Jul 1, 2008 3:17 PM by BetsyW.

    Scrolling Component

    BetsyW. Level 1
      When I type into the window in flash in which I want all the text to scroll the window just elongates and when I test the file I just see an elongated window.

      The code attached was tried with both dynamic and input text fields.

      Does anyone know what I might be doing wrong? Thank you very much.

      CODE:

      var pressing:Boolean = false;
      var movement:Number = 0;
      upButton_btn.onPress = function() {
      pressing = true;
      movement = -1;
      };
      upButton_btn.onRelease = function() {
      pressing = false;
      };
      downButton_btn.onPress = function() {
      pressing = true;
      movement = 1;
      };
      downButton_btn.onRelease = function() {
      pressing = false;
      };
      _root.onEnterFrame = function() {
      if (pressing == true) {
      scrollWindow_txt.scroll = scrollWindow_txt.scroll + movement;
      }
      };
      skipToEndButton_btn.onRelease = function() {
      scrollWindow_txt.scroll = scrollWindow_txt.maxscroll;
      };