Hide UIScrollbar if nothing to scroll?

In as2 we had :

scrollbar._visible = (textfield.maxscroll > 1);
textfield.onChanged = function() {
scrollbar._visible = (this.maxscroll > 1);
};

Anyone know of a similar way to do this in as 3?

Thanks in advance.