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

htmlText in input text field?

Guest
Oct 17, 2013 Oct 17, 2013

Hi

Is it possible to have input text fields respond to htmlText? I'm sure I've done it before.

Although the following code displays the string correctly, there is no color formatting displayed:

e.target.htmlText = noColour + "<font color='0x00FF00'>"+ colorText +"</font>";

I've clicked the button in the field's properties (Flash Pro) to render as htmlText.

Cheers for having a look.

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

Deleted User
Oct 17, 2013 Oct 17, 2013

Never mind - I had the wrong syntax.

Should be '#00FF00', not '0x00FF00' when it's within quotes.

Translate
Guest
Oct 17, 2013 Oct 17, 2013
LATEST

Never mind - I had the wrong syntax.

Should be '#00FF00', not '0x00FF00' when it's within quotes.

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