Hide UI scrollbar when there isn’t enough text

If you only want the scrollbar to show when there is enough text to warrant a scrolling, use the following:

vScrollBar.visible = contentText.maxScrollV > 1;
contentText.addEventListener(Event.CHANGE, function():void{
        vScrollBar.visible = contentText.maxScrollV > 1;
});

src: http://www.kirupa.com/forum/showthread.php?t=296865

Tech Reference:

Leave a Reply

Your email address will not be published. Required fields are marked *

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑