Solved

Dynamically setting the TextField size according to read Text

Posted on 2003-10-31
8
307 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
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. …
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

696 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