Show hide UIScrollBar

I’m looking to show/hide a UIScrollBar component when either, text is loaded or text goes below the lower edge of the text box that the UIScrollBar is targeting.

I’ve looked at this tutorial and extracted the code below, however it doesnt’ work for me.

I suspect I need to use a different event?

 
scroll1._visible = (description_txt.maxscroll > 1);
description_txt.onChanged = function() {
 scroll1._visible = (this.maxscroll > 1);
};

Any help would be most welcome.