How to apply a TextFormat to a TextField in a super class?

How can I apply a TextFormat to a TextField instance in a super class?

// This doesn't seem to work:

var textFormat:TextFormat = new TextFormat();
textFormat.size = 24;
            
super.alertText.setTextFormat(textFormat);