I have been trying to apply a font style to a buttons content but it's not working .What am I doing wrong?
The quad is being applied. When I remove the quad, background becomes white, so I'm pretty sure the default skin is being applied. The labelis being applied also, but the font style is not.
var viewButton:Button = new Button();
viewButton.label = view;
viewButton.defaultSkin = new Quad( 50, 50, 0x355240 );
viewButton.fontStyles = new TextFormat( "Helvetica", 50, 0xffffff );
any help is appreciated.