# Show hide UIScrollBar

**URL:** <https://forum.kirupa.com/t/show-hide-uiscrollbar/230941>\
**Category:** flash\
**Created:** [June 30, 2007, 10:45am UTC](https://forum.kirupa.com/t/show-hide-uiscrollbar/230941 "2007-06-30T10:45:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alloneword](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@alloneword](https://forum.kirupa.com/u/alloneword)\
**Post date:** [June 30, 2007, 10:45am UTC](https://forum.kirupa.com/t/show-hide-uiscrollbar/230941/1 "2007-06-30T10:45:22Z")

</div>

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](http://www.kirupa.com/developer/mx2004/hide_scrollbar.htm) and extracted the code below, however it doesnt’ work for me.

I suspect I need to use a different event?

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

```

Any help would be most welcome.
