Sunday, March 28, 2010

How do I change lineBreak To...

I am trying to change the lineBreak explicitly but the RichEditableText not allowed because hostFormat of TextFlow refers to a CSSTextLayoutFormat which is read onlyHow do I change lineBreak To...

When TLF is inside a Flex component, the hostFormat is determined by Flex's CSS style system; it's not intended to be set directly. So please try

rt.setStyle(''lineBreak'', ''explicit'');

However, I would expect

myTextFlow.lineBreak = LineBreak.EXPLICIT;

to also work. If it doesn't, please file a bug at http:/bugs.adobe.com/flex.

Gordon Smith

Adobe Flex SDK Team

No comments:

Post a Comment