Skip to main content
edwinmerced
Inspiring
March 1, 2011
Question

Cannot tame the AS3 Label component in Flash

  • March 1, 2011
  • 1 reply
  • 823 views

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

This topic has been closed for replies.

1 reply

somascope
Inspiring
March 1, 2011

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?

edwinmerced
Inspiring
March 1, 2011

I see the text in black but if you change the color to 0xFFFFFF, it will not change to white.

Its puzzling