Make scroll bar vanish if not needed?

I would like to make my scroll bars invisible if they are not needed on my dynamic text boxes and visible if they are needed (like the TextArea component in MX 2004). Can anyone help me with this, or point me in the direction of a good tut? I’d really appreciate it.