How can I make a button only appear when text is larger thhan text field?

I have a dynamic text box that acquires text from a txt file.

Sometimes the text is greater than the text field so I want to be able to show a page up and page down button. However I do not want these displayed if the text does not exceed the field.

Currently the buttons are always displayed.

I understand how to get the text field info, I do not understand the “easy” bit of only loading the buttons if the text field size is exceeded.

Please could someone provide a few pointers to what must be a simple problem !!!

Regards
Dean

Count roughly how many characters will fit in your text field.

[AS]if (theTextField.text.length > thechars){
theButton._visible = true;
}else{
theButton._visible = false;
};
[/AS]

Replace theTextField with the name of your textfield, thechars with the number of characters which will fit into your textfield and theButton with the name of the button which you want to make visible

Thank you for your time and assistance. I knew it had to be quite simple.

Problem solved.