Hi there,
how come when trying to see the text Formatting of a text area the following code, when tracing _curFormat traces [object TextFormat]. What does this mean?
I need to find out if the selected text is bold or not. This will allow the user to set it bold or set it non bold.
private function bold():void
{
_selStart = myArea.selectionBeginIndex;
_selEnd = myArea.selectionEndIndex;
var _textBold:TextFormat = new TextFormat();
var _curFor:TextFormat = new TextFormat();
_textBold.bold = true;
_curFor = myArea.textField.getTextFormat(_selStart, _selEnd);
myArea.textField.setTextFormat(_textBold, _selStart, _selEnd);
trace(_curFor);
}
thanks.