Skip to main content
MartynasB
Participant
July 20, 2010
Question

TextConverter.TEXT_FIELD_HTML_FORMAT , dynamic text, need to add scrollbar

  • July 20, 2010
  • 1 reply
  • 928 views

I have a setter that changes HTML text to TextFlow
         public function set text(value:String):void {
             _log = value;
             _flowElement = TextConverter.importToFlow(_log,  TextConverter.TEXT_FIELD_HTML_FORMAT, _configuation);
              _flowElement.flowComposer.addController(_containerController);
            
             _flowElement.flowComposer.updateAllControllers();
             _containerController.verticalScrollPosition =  _containerController.getContentBounds().height;
             _flowElement.flowComposer.updateAllControllers();
         }

i need to attach scrollbar to  _containerController. Any ideas?

This topic has been closed for replies.

1 reply

Adobe Employee
July 20, 2010

TLF does not contain any UI for scrolling, that is normally supplied by the component that is using TLF. You could use either Flex or Flash Authoring text components, and then just turn scrolling on. Otherwise, you will have to create your own scroll controls, and hook them up to calls to the ContainerController to set the scroll position (see ContainerController verticalScrollPosition and horizontalScrollPosition).

- robin