[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Dynamically setting the TextField size according to read Text

Posted on 2003-10-31
8
Medium Priority
?
319 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 540 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
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.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses
Course of the Month18 days, 12 hours left to enroll

834 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