Tom
Tom

Reputation: 6707

TextArea font does not change (for editing) if its blank

I have a text field (flash.display.textField) for editing, but the default font does not change unless I put some data there e.g. with AppendText() or .Text=""

private var editarea:TextField
editarea.setTextFormat(FontFormat);
editarea.appendText (""); // = " "; // font stays wrong if blank
editarea.setTextFormat(FontFormat);

Upvotes: 2

Views: 362

Answers (1)

Tom
Tom

Reputation: 6707

editarea.defaultTextFormat = FontFormat;

Upvotes: 1

Related Questions