Solved

Dynamically setting the TextField size according to read Text

Posted on 2003-10-31
8
271 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
 

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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

746 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now