Tab stops can be set in two ways: Shorthand and explicitly. Shorthand would be something like this: format.tabStops ="s150 s250 s550";
explicitly would be something like this: var stops:Array = []; var stop:TabStopFormat; stop = new TabStopFormat(); stop.position = 150; stop.alignment = TabAlignment.START; stops.push(stop); stop = new TabStopFormat(); stop.position = 250; stop.alignment = TabAlignment.START; stops.push(stop); stop = new TabStopFormat(); stop.position = 550; stop.alignment = TabAlignment.START; stops.push(stop); format.tabStops = stops; You can use shrthand letters for each of the TabAlignment options (s,e,c or d). More details in the asdocs[1]. [1]https://flex.apache.org/asdoc/flashx/textLayout/formats/TextLayoutFormat.html#tabStops On Feb 3, 2016, at 2:58 PM, FrankD <[email protected]> wrote: > thanks for the tip! > > any idea how to add alignment to this way of defining the tabs? > txtBox.setStyle("tabStops", "150 250 550"); > > > > -- > View this message in context: > http://apache-flex-users.2333346.n4.nabble.com/How-to-assign-tabs-to-a-Spark-RichtText-with-TextLayoutFramework-tp11883p11896.html > Sent from the Apache Flex Users mailing list archive at Nabble.com.
