Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Add text before existing...

New Here ,
Jan 18, 2013 Jan 18, 2013

Hi there!

I populate a dynamic text field with various warnings and/or indications related to the progress of different actions.

Dimensions of the text field are limited. It has a ScrollBar Component attached to it.

I currently use "+=" to add warnings and/or indications.

Problem is:

I want the last added text to always be inserted at the top of the list instead at the bottom.

This way, user can see the progress without doing anything.

User only use the ScrollBar to navigate into the text field to have a look to previous actions reported in it.

Is there a way to do this?

Many thanks in advance for your help!

PS: I think there's a typo in "dinamyc" tag which should be dynamic... Please correct it...   🙂

TOPICS
ActionScript
516
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jan 18, 2013 Jan 18, 2013

The way to add the text at the beginning is to reassign the text and add the existing text....

     tfield.text = newText +tfield.text;

Translate
LEGEND ,
Jan 18, 2013 Jan 18, 2013

The way to add the text at the beginning is to reassign the text and add the existing text....

     tfield.text = newText +tfield.text;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 18, 2013 Jan 18, 2013

As usual, it's jaw dropping simple!

Thank you very much, Ned!

You made my day.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 18, 2013 Jan 18, 2013
LATEST

You're welcome

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines