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

Change background Color of TLF text. How ?!

Guest
Apr 11, 2013 Apr 11, 2013

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,

TOPICS
ActionScript
517
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

correct answers 1 Correct answer

Community Expert , Apr 11, 2013 Apr 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;

Translate
Community Expert ,
Apr 11, 2013 Apr 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;

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
Guest
Apr 11, 2013 Apr 11, 2013

Thanks kglad it's work fine

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
Community Expert ,
Apr 11, 2013 Apr 11, 2013
LATEST

you're welcome.

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