# Conditional Scrollbars

**URL:** <https://forum.kirupa.com/t/conditional-scrollbars/284963>\
**Category:** flash\
**Created:** [March 25, 2009, 4:55pm UTC](https://forum.kirupa.com/t/conditional-scrollbars/284963 "2009-03-25T16:55:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phaedo5](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@phaedo5](https://forum.kirupa.com/u/phaedo5)\
**Post date:** [March 25, 2009, 4:55pm UTC](https://forum.kirupa.com/t/conditional-scrollbars/284963/1 "2009-03-25T16:55:29Z")

</div>

Ok, I’m still in my first few months of AS3, so if this answer is obvious I apologize.

I have a dynamic text box. It has x,y,width, and height all set. I have scrollbars built for it. They work great. Now, I just need those scrollbars to be conditional.

And it’s not so obvious to me how to do that. If I have a fixed height already set, I can’t just say if the height is greater than this. If I set the autoSize then it goes with the autosize regardless of what I do.

So I don’t know how to go about this. Anyone?
