1 Reply Latest reply on Jan 28, 2007 10:38 PM by Marghoob Suleman

    UIScrollBar componet

    oscar7878 Level 1
      HI

      I'm working with a dynamic text field and a UIScrollBar componet. Users can update the text field.

      I need that the UIScrollBar componet show automatically the last imput to the text field, I mean thta auto scroll to the botton of the text field.

      any sugestions will be apreciated.

      Thanks
        • 1. Re: UIScrollBar componet
          Marghoob Suleman Level 1
          If i guess right... you can add this code in you flash...

          scroller : is your scrollbar component.
          text_txt : is your text instance


          scroller._visible = false;
          text_txt.onChanged = function() {
          trace(text_txt.maxscroll)
          if(text_txt.maxscroll>1) {
          scroller._visible = true;
          } else {
          scroller._visible = false;
          }
          }