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 8005515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:15:03+00:00 2026-06-04T17:15:03+00:00

I have created a simple text chat application for android device using flex 4

  • 0

I have created a simple text chat application for android device using flex 4 and action script 3. in the text chat I have given a option for change font color. I have used “TextInput” for enter text message and “Textarea” for shows the chat messages. when I change the color of the text, all the lines in the “textarea” color has been changing.

textoutput.setStyle("color",textInput.getStyle("color"));
textoutput.text += userNameInput.text + ": " + msg + "\n";"

this is the code I have used. but I need to change the color for every line in the “textarea”.
In the other hand, i have created the panel for display chat, and dynamically created the label for the message and dynamically I have changed the color but all the lines are merging in same line. I need to add line break for every dynamic label in the panel window.

var mylabel:Label=new Label();
mylabel.setStyle("color",textInput.getStyle("color"));
mylabel.text += userNameInput.text + ": " + msg +      "\n";
        panelId.addElement(mylabel);"

this is the code I have used for adding dynamic label into Panel . can any one kindly suggest me some idea for solving any one of this problem means that should be very helpful for me. thanks in advance.

  • 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-06-04T17:15:05+00:00Added an answer on June 4, 2026 at 5:15 pm

    Here is some info that might be helpful , from http://help.adobe.com/en_US/as3/dev/WS8d7bb3e8da6fb92f-20050207122bd5f80cb-7ff5.html

    Formatting ranges of text within a text field

    A useful method of the flash.text.TextField class is the setTextFormat() method. Using setTextFormat(), you can assign specific properties to the contents of a part of a text field to respond to user input, such as forms that need to remind users that certain entries are required or to change the emphasis of a subsection of a passage of text within a text field as a user selects parts of the text.

    The following example uses TextField.setTextFormat() on a range of characters to change the appearance of part of the content of myTextField when the user clicks the text field:

    var myTextField:TextField = new TextField(); 
    myTextField.text = "No matter where you click on this text field the TEXT IN ALL CAPS changes format."; 
    myTextField.autoSize = TextFieldAutoSize.LEFT; 
    addChild(myTextField); 
    addEventListener(MouseEvent.CLICK, changeText); 
    var myformat:TextFormat = new TextFormat(); 
    myformat.color = 0xFF0000; 
    myformat.size = 18; 
    myformat.underline = true; 
    
    function changeText(event:MouseEvent):void 
    { 
    
     myTextField.setTextFormat(myformat, 49, 65); 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Created a simple Jquery Code.. The Code is <script type=text/javascript> $('#Button1').click(function (evt)
I have created a simple silverlight application to display some text at realtime from
I have created a simple silverlight application using WCF service.. My service created well
I have created a simple application using MVC3 and the site is based on
Could someone help me on this, I have created simple web services using axis2
I have created a simple JQuery script with hovering effect on some links. The
I have created a simple web browser using c# and I want to block
I have created a simple win 32 application..in which it has a textbox and
I am working on my second CI application. I have created some simple CRUD
I have created JavaScript code for validation of a simple text field. The issue

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.