Skip to main content
Known Participant
January 21, 2011
Question

ScrollBar in TLF

  • January 21, 2011
  • 1 reply
  • 853 views

I'm a noobie when it comes to code but I'm catching on quickly.  One thing I don't understand is why when I've dynamically created the textFlow and all of it's paragraphs and spans in code, there is no simple way to add a scroll bar to that text.  Sure, I can get it to scroll with

controller.verticalScrollPolicy=ScrollPolicy.AUTO; 

But the scrollbar doesn't appear, even when there is plenty of text to scroll.

Do I have to put the entire container into a scrollpane to make this work or is there something more simple?

This topic has been closed for replies.

1 reply

Adobe Employee
January 21, 2011

Welcome to coding & TLF! I'm glad its going well for you.

TLF handles the actual scrolling of the text, but the user interface for the scrolling (the scroll bar) is handled as part of the overall text component (could be in either Flex or Flash). This is to allow customization of scroll bars for text the same way that scroll bars for other component types are handled.

Hope this helps,

- robin