Solved

Dynamically setting the TextField size according to read Text

Posted on 2003-10-31
8
295 Views
Last Modified: 2010-04-03
Hi all,

I am reading some text from a file. I load it into a textfield and that textfield is in a movieclip which in turn is in a scrollpane.

The problem is the text size varies. And I want to be able to view the whole text. How can I automatically set the size (or height) of the textfield to the size of what I read? (that might have little bits of HTML).

Thanks in advance
0
Comment
Question by:amotaz
  • 4
  • 4
8 Comments
 
LVL 27

Accepted Solution

by:
negatyve earned 135 total points
ID: 9661779
0
 

Author Comment

by:amotaz
ID: 9661871
Thank YOU!!!

I do not know how I overlooked the autoSize property. Thanks again!

I give you a little bonus :)
0
 
LVL 27

Expert Comment

by:negatyve
ID: 9661874
;)
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:amotaz
ID: 9661879
umm, I think there is something wrong here.

I tried to create some data file like this...


** any crap here **
and at the end

(a number of tabs, like 20-30) and then any text.

The text after the tab disappears.
0
 
LVL 27

Expert Comment

by:negatyve
ID: 9663300
sorry?
0
 

Author Comment

by:amotaz
ID: 9664464
What I am trying to say is that it works perfectly; however, it has some bug, I guess.

In the text file, put 20 or 30 (tabs). When I did that, the text following the tabs disappeared.

Hope that's clear.
0
 
LVL 27

Expert Comment

by:negatyve
ID: 9668253
I have tried with this text:

content=I am reading some text from a file. I load it into a textfield                                                                                                                                                                                                                                                       and that textfield is in a movieclip which in turn is in a scrollpane. The problem is the text size varies. And I want to be able to view the whole text. How can I automatically set the size (or height) of the textfield to the size of what I read? (that might have little bits of HTML). I am reading some text from a file. I load it into a textfield and that textfield is in a movieclip which in turn is in a scrollpane. The problem is the text size varies. And I want to be able to view the whole text. How can I automatically set the size (or height) of the textfield to the size of what I read? (that might have little bits of HTML).

[actually they are 40 tabs]

and still works...
0
 

Author Comment

by:amotaz
ID: 9671305
umm, weird...


anyway, thanks a lot :)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question