hi,
i’ve been trying to figure out how to hide and show the scrollbar component with dynamically loaded text depending on whether the text overflows or not.
the problem i am having is that TextField.maxscroll keeps returning 1 because it is being performed before the text is loaded into the textfield. here is the code i am working with:
loadVariables(“copy.txt”, this);
scrollbar._visible = (text.maxscroll > 1);
how can i solve this?