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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T19:35:57+00:00 2026-05-18T19:35:57+00:00

Is it possible to save text of textarea (flash 10, as3, cs5) in some

  • 0

Is it possible to save text of textarea (flash 10, as3, cs5) in some variable or so and with its textformat (more than one color) and then reuse it to replace text in textarea?

I tried saving htmlText of textarea but the problem is when i replace it in textarea

tags causes problem. There will always be another extra line.

If anyone wants to view p tags problem try following. Just click on text and then move your down arrow key, cursor will go to next line.

import fl.controls.TextArea;

var txtHTML:TextArea = new TextArea();
txtHTML.move(0,0);

var default_format:TextFormat = new TextFormat();
    default_format.font = "Arial";
    default_format.bold = false;
    default_format.align = "center";
    default_format.color = 0xFFFF00;
    default_format.size = 14;

var field:TextField = txtHTML.textField;
    field.defaultTextFormat = default_format;
    field.setTextFormat(default_format);
    field.alwaysShowSelection = true;
    field.background = true;
    field.type = 'input';
    field.multiline = true;
    field.backgroundColor = 0x777777;
    field.embedFonts = true;   
    txtHTML.htmlText = '<P ALIGN="CENTER"><FONT FACE="_sans" SIZE="14" COLOR="#FFFF00" LETTERSPACING="0" KERNING="0">ASDF</FONT></P>';
    field.x = 0;
    field.y = 0;   
    field.width = 400;
    field.height = 200;
    field.text = "";

addChild(txtHTML);

Is there a way to do this?

  • 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-18T19:35:58+00:00Added an answer on May 18, 2026 at 7:35 pm

    Just copy the text and remove the last character i.e. ‘>’. So there won’t be <p></p> tags problem of extra line.

    Regards

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

Sidebar

Related Questions

Is it possible to save a whole C# solution in one single text file?
How is it possible to save text from a text field when the user
Is it possible to save some Perl code in a database, retrieve it using
How is it possible to save a file to the android phone rather than
Does anybody know if its possible to save the windows event logs from a
Is it possible to save out some javascript object purely on client-side? My question
Is it possible to save dynamic text from a website and dump it into
Not sure if this is even possible but I am trying to save text
I've edited original text to save potential readers some time and health. Maybe someone
Possible Duplicate: php: pdf to string i am trying to save text content of

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.