Flash CS3 UIScrollBar Trouble

I had some trouble with the CS3 UIScrollbar properly latching onto a dynamic textbox earlier this week. I found a solution and I thought I’d share.

In more detail, my issue was that although I had pointed the “scrollTargetName” property in the Component Inspector to the instance name of my dynamic textbox, the UIScrollbar just refused to work. It would come up blank, with no arrows and no scrollbar.

It turns out there must be a bug when using the GUI to set the properties of the UIScrollbar. I used some Actionscript to re-set the “scrollTargetName” property after filling my textbox with text and everything worked fine.

UIScrollBar.scrollTarget = txtContentArea;

It’s kind of too bad I had to do that, but it works.

Comments

Leave a Reply