Saturday, May 5, 2007


Definition: getTextRuns(beingIndex:int = 0, endIndex:int = int.MAX_VALUE):Array

getTextRuns returns an Array of flash.text.TextRun objects. A TextRun represents a continuous segment of text which has a single text format. In other words, this function parses text in a TextField by its formating. All you have to do is iterate through the Array that is returned. There is no setter equivalent (i.e. setTextRuns()).

No comments:

"Flex", "ActionScript" and possibly "MXML" are probably trademarks of Adobe Systems Incorporated.
"Adobe" is a trademark of Adobe Systems Incorporated.
This site is in no way endorsed or sponsored by Adobe Systems Incorporated.
Content Copyright © 2007 Daniel Freiman.
Site Design Copyright by its copyright holder.
The Flex Non-Docs reserves the right to remove comments for any reason.
All ActionScript and MXML code (and ONLY ActionScript and MXML code) on this website is available under the MIT License.