Copy link to clipboard
Copied
Hi,
Im having a problem with my UIScrollBar.,
I have a dynamic text field "My_text" in the scene. the text is aplied to it dynamicly like this: My_text=String(theVarText). The text appear but the scroll dont scroll. but if i set the text in the textfield in the actual FLA and export the movie, the scroll works, Can someone tel me WHY ??
Copy link to clipboard
Copied
When you write to a textfield that has a scrollbar assigned to it, you need to refresh the scrollbar if you change/add text after the file is playing. I don't have the help documents available at the moment, but if you should be able to look thru the UIScrollbar methods and find the method that is used for this... possibly reset() or refresh() or update(). So once you write to the textfield, use that command to make the scrollbar readjust to the new next situation.
Copy link to clipboard
Copied
thanks .i will look thru the UIScrollbar methods and find happy new year !
Copy link to clipboard
Copied
i found it yourScrollBar.update();