Skip to main content
October 17, 2013
Answered

htmlText in input text field?

  • October 17, 2013
  • 1 reply
  • 430 views

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.

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer

Never mind - I had the wrong syntax.

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

1 reply

Correct answer
October 17, 2013

Never mind - I had the wrong syntax.

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