7 Replies Latest reply on Mar 7, 2013 6:13 AM by DeanLoganBH

    How to auto-scroll a Spark TextArea when adding text ?

    KnuX75002 Level 1

      Hi all,


      I'm looking for the best method to auto-scroll my Spark TextArea to the bottom when I add text in it.

      I'm adding text using textFlow.addChild() and I listen the CompositionCompleteEvent.COMPOSITION_COMPLETE event on the textFlow component in order to set the vertical scrollbar value to its maximum.


      But sometimes, it doesn't work very well... Maybe I'm not using the proper event, on the appropriate object... That's why I'm asking for your help ^^


      Thanks you in advance !