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: AS3
Leave a Reply