Skip to main content
Known Participant
June 22, 2016
Answered

Need help with text format

  • June 22, 2016
  • 2 replies
  • 450 views

I am trying to set one of three formats to a dynamic text box in a movieClip

pfd_mc.crsTxt_mc.crs_txt.text = "150";

pfd_mc.crsTxt_mc.crs_txt.setTextFormat(nav);

var ils: TextFormat = new TextFormat();

ils.color = 0xFFFF00;

var nav: TextFormat = new TextFormat();

nav.color = 0x00FFFF;

var tcn: TextFormat = new TextFormat();

tcn.color = 0xFF00FF;

This topic has been closed for replies.
Correct answer Ned Murphy

Move the textformat definitions before the first line so that they exist before you try to use them.

2 replies

Known Participant
June 22, 2016

Thanks for the help that worked like a charm

Ned Murphy
Legend
June 22, 2016

You're welcome

Ned Murphy
Ned MurphyCorrect answer
Legend
June 22, 2016

Move the textformat definitions before the first line so that they exist before you try to use them.