4 Replies Latest reply on May 11, 2006 5:55 AM by TimSymons

    TextField Scroller script

    Level 7
      Hi,

      I m looking for a good skinnable textfield scroller script ?
      Any help ?

      Stan


        • 1. Re: TextField Scroller script
          TimSymons Level 1
          The UIScrollBar component that comes with Flash is good and skinnable. If you check out the Help Docs it will give you a list of the items that you can skin and what their linkage names need to be so that you can customize it.

          Tim
          • 2. Re: TextField Scroller script
            Level 7
            Thanks Tim,
            Using the UIScrollbar how to hide the scrollbar if the content doesn't
            exceed the textfield ?

            Stan

            "TimSymons" <webforumsuser@macromedia.com> a �crit dans le message de news:
            e3va9h$rr3$1@forums.macromedia.com...
            > The UIScrollBar component that comes with Flash is good and skinnable. If
            > you
            > check out the Help Docs it will give you a list of the items that you can
            > skin
            > and what their linkage names need to be so that you can customize it.
            >
            > Tim
            >


            • 3. Re: TextField Scroller script
              TimSymons Level 1
              You can use the "visible" property. Set it to false to hide it, and true to see it.

              Tim
              • 4. Re: TextField Scroller script
                TimSymons Level 1
                Stan,

                I also did a quick test, though this will not work in the case which you only have 1 line to scroll but it will work for other cases.

                tf : Textfield to scroll
                sb : instance name of the UIScrollBar component.

                // This small bit of code should determine if the TextField needs to be scrollable.
                if (tf.maxscroll == 1) {
                // may not need scrollbar, so hide it.
                sb.visible = false;
                } else {
                // definitely need the scrollbar, so show it
                sb.visible = true;
                }

                Tim