Ok so i have this dyanamic textbox called logtxt and i have a UIScrollbar attached to it. It works, but only if i add it through typing/pasting it into the textbox. I need it to work when i add the text through the code. (it is linked correctly through the components inspector)
Share
I made the movieclips drag_mc and track_mc and put them in a movie clip called scroll_mc. Then i have a class for making the scroll bar:
and a document class
scroll_txt is the textbox
got it from http://www.webdevils.com/2007/10/13/as3-version-of-scrollbar-class/