var tr:TextRange = new TextRange(ta,true,ta.selectionBeginIndex,ta.selectionEndIndex); tr.fontSize = 20; tr.fontWeight = "bold"; <mx:TextArea id="ta" width="300" height="200"/>
var tr:TextRange = new TextRange(ta,true,ta.selectionBeginIndex,ta.selectionEndIndex); tr.fontSize = 20; tr.fontWeight = "bold"; <mx:TextArea id="ta" width="300" height="200"/>