another actionscript conundrum

Mar 30, 2007 16:02

Edit: Found the solution!

myScrollPane.invalidate();
Yess!!!
http://www.sleekdigital.com/News/11.aspx


I have a goal that has a lot of different possible methods, but they are all giving me roadblocks.

What I want is a textfield that will scroll once the text goes past a certain length. The field will keep the logs of what's going on.

That would be simple with the UIScrollBar and a dynamic text field, but I'm picky, and I want certain text to be different colors. I don't know how to do that within one text field. I don't think you can, but I haven't found a definite yes or no.

So, I went another route. I made a movie clip with actionscript on it ths at puts a dynamic text field of which color I want, and then continues adding dynamic text fields for each line of the log.

Cool. I got my text with my colors. The problem is now that I want it to scroll in a window. I try the ScrollPane component, but the problem is that the ScrollPane's scrollbar doesn't update as my movie gets larger within it.

So, I trying yet another method. I found some script that uses scrollRect. I made a container for my log text movie, put it in, and made some buttons to move the clip up and down in it, as well as a homemade scroll bar. The problem is that I can't get it to scroll smoothly, and I feel like I'm reinventing the wheel. There's a lot more coding for this way that I haven't done yet, but I wanted to see if there was a better way.
Previous post Next post
Up