Skip navigation
Currently Being Moderated

RichTextEditor.TextArea backgroundColor broken in Flex 4.*

Aug 3, 2011 7:05 AM

I have a simple application which uses a RichTextEditor with a colored background, like so:

 

richTextEditor = addChild(new RichTextEditor()) as RichTextEditor;

richTextEditor.textArea.setStyle("backgroundColor", 0xAAAAAA);

richTextEditor.title = "Edit Text:";

richTextEditor.htmlText = formattedText;

 

This works fine when I compile against Flex 3.5.0, but in Flex 4.0 and 4.5, the background color remains white. I've tried setting it before the text, after the text, before and after it is added to the stage - even every single frame with an EnterFrame handler. Nothing - it just stays white.

 

Has anyone else encountered this and does anyone have a workaround? I don't really want to switch to a Spark component if I can help it, and I can't downgrade the whole application to 3.5.

 

Any answers much appreciated - as always.

 

JcFx

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points