Skip to main content
April 11, 2013
Answered

Change background Color of TLF text. How ?!

  • April 11, 2013
  • 1 reply
  • 558 views

Hello,

I have to TLF text ( Read Only ) with a name of sMath10 inside MovieClip with a name of content10. I want to chage the backgorund color from white to gray when the value of the text less then 26. How can i do that. please ?!

Regards,

This topic has been closed for replies.
Correct answer kglad

is sMath10 is a valid reference in the scope of your code use the following.  otherwise, try content10.sMath10 instead of sMath10 (if content10 is defined in the scope of your code).

sMath10.background = true;

sMath10.backgroundColor = 0xff0000;

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
April 11, 2013

is sMath10 is a valid reference in the scope of your code use the following.  otherwise, try content10.sMath10 instead of sMath10 (if content10 is defined in the scope of your code).

sMath10.background = true;

sMath10.backgroundColor = 0xff0000;

April 11, 2013

Thanks kglad it's work fine

kglad
Community Expert
Community Expert
April 11, 2013

you're welcome.