Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7659101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:17:16+00:00 2026-05-31T13:17:16+00:00

How is it possible to DISPLAY text with simple formatting (like font color) in

  • 0

How is it possible to DISPLAY text with simple formatting (like font color) in flash TextArea or similar control? I need to add text to this control programmatically and be able to select and copy portions of it to clipboard.

RichTextEditor does not fit my needs sine it has multiple controls to allow user to format text and no way to disable them (?).

UPDATE

Additional question is how to code formatting. Only <b> does work in the following code:

private function Print(s:String, ... optionalArgs):void {
            if( optionalArgs.length == 0 || optionalArgs[0]==0) {
                mLog.htmlText = mLog.htmlText + '<b>' + s + '</b><br>';
            }
            else if(optionalArgs[0]==-1) {
                mLog.htmlText = mLog.htmlText + '<font color=\"red\">' + s + '</font><br>';
            }
            else if(optionalArgs[0]==1) {
                mLog.htmlText = mLog.htmlText + '<span style=\"color:green\">' + s + '</span><br>';
            }
            else if(optionalArgs[0]==2) {
                mLog.htmlText = mLog.htmlText + '<span style=\"color:blue\">' + s + '</span><br>';
            }
            else {
                mLog.htmlText = mLog.htmlText + '<b>' + s + '</b><br>';
            }
        }

How to code font color?

SOLUTION

My mistake was I was using symbolic color names, while flash interpreter looks like do not understand them

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T13:17:17+00:00Added an answer on May 31, 2026 at 1:17 pm

    This is actually a very easy problem to solve. RichTextEditor has a showControlBar setting, which if set to false, hides the fancy controls.

    Also, you can access the internal text area and make it uneditable (myRTE.textArea.editable= false), restricting user interaction with the text.

    Synopsis:

    <mx:RichTextEditor id="myRTE" showControlBar="false"... />
    
    ...
    
    myRTE.textArea.editable = false;
    

    Here’s a few resources for formatting your htmlText: Adobe ‘RichTextEditor Control’, Adobe ‘using htmlText properly’

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to add a simple text button to my c++ win32 application.
With the DataGridView it is possible to display cells containing some long text. The
I've made this example as simple as possible: <!DOCTYPE html> <html> <head> <title>Test</title> <link
I'm using Highcharts and would like to display a simple column graph, but instead
I'm implementing a B-Tree, and would like to display it in a simple UI
Iam making a simple app, I display pdf file with some text and images
I don't know if it is possible to do this. I would like to
I need to know if it is possible to call a control and also
is it possible display a 'x' for an html checkbox when we click on
is it possible to display ⇓ entity in ie6? It is being display in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.