# Hide UIScrollbar if nothing to scroll?

**URL:** <https://forum.kirupa.com/t/hide-uiscrollbar-if-nothing-to-scroll/259246>\
**Category:** Uncategorized\
**Created:** [May 2, 2008, 1:35pm UTC](https://forum.kirupa.com/t/hide-uiscrollbar-if-nothing-to-scroll/259246 "2008-05-02T13:35:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonni](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@tonni](https://forum.kirupa.com/u/tonni)\
**Post date:** [May 2, 2008, 1:35pm UTC](https://forum.kirupa.com/t/hide-uiscrollbar-if-nothing-to-scroll/259246/1 "2008-05-02T13:35:03Z")

</div>

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.
