Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Cannot tame the AS3 Label component in Flash

Participant ,
Feb 28, 2011 Feb 28, 2011

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

TOPICS
ActionScript
757
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 28, 2011 Feb 28, 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 28, 2011 Feb 28, 2011
LATEST

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

Its puzzling

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines