Applying font type to radio buttons
How do you apply a font type to a radio button. I thought I was doing it correctly, but it keeps showing as Arial.
I've embedded the font as AirCruiser and given it a class name.
I use the following code:
var font:AirCruiser=new AirCruiser();
var myformat:TextFormat = new TextFormat();
myformat.color = 0xFFFFFF;
myformat.font = font.fontname;
myformat.size = 48;
normalButton.setStyle("textFormat", myformat);
hardButton.setStyle("textFormat", myformat);
suicidalButton.setStyle("textFormat", myformat);
It takes the color and the size, but the font remains arial.
Any ideas what I'm doing wrong?