Cannot tame the AS3 Label component in Flash
Copy link to clipboard
Copied
I cant get this label component to change color. Any idea why?
var myFont:Font = new Font1();
var myTextFormat:TextFormat = new TextFormat();
myTextFormat.size = 12;
myTextFormat.font = myFont.fontName;
myTextFormat.color = 0xFF0000;
windowlabel.text = "TÃtulo de Documento";
windowlabel.setStyle("embedFonts", true);
windowlabel.setStyle("textFormat", myTextFormat);
Thnaks for any ideas or help.
Att.,
Edwin
Copy link to clipboard
Copied
Pasting your code right into my Flash file works well for me. Are you able to see the text in a black color? Are you able to change everything else except for the color?
Copy link to clipboard
Copied
I see the text in black but if you change the color to 0xFFFFFF, it will not change to white.
Its puzzling

