height="500">
import mx.controls.textClasses.TextRange;
[Bindable]
public var htmlData:String="HTML Formatted Text
";
public function changeSelectionText():void {
var sel:TextRange = rte1.selection;
var selLength:int = sel.endIndex - sel.beginIndex;
if (selLength) {
t1.text="Number of characters selected: " + String(selLength);
t1.text+="\nOriginal Font Size: " + sel.fontSize;
}
}
height="100%" mouseUp="changeSelectionText()" />
fontWeight="bold" width="300" height="180" />