Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adjusting Dynamic Text Boxes

Status
Not open for further replies.

MukeshMak

Technical User
Aug 6, 2002
19
CH
Hi all,

I was wondering if actionscript (flash 5) could be used to change the width and height of a dynamic text box at run-time.

The idea is to adjust the size to accommodate the inputted text.

As far as I can see there is no way to reference the text box object other then to enclose it within a symbol and then assign a instance name to that... Adjusting the symbol wouldn't allow me to adjust the size of the enclosed text field...

So... any ideas anyone?

Thanks.
 
"change the width and height of a ?dynamic text box? "
"accommodate the ?inputted text?"
...what you want to do exactly...an input textbox or display some text into an dynamic textbox???

You can try this but i'm not sure that will work in flash5:

MovieClip.createTextField("name",depth,x,y,width,height);
...and then change height and width:

name._width=100;
name._height=20;
...these propreties won't strech or skew the size of the text contained within the field.


Regards,
Dragos.


 
In Flash 5, you can't dynamically change the size of a textfield.
Only in MX.

Regards,

oldman3.gif
 
Thanks oldnewbie and bubu.

Thought that was the case but...

I guess I will have to be more imagniative and do it the hard way.

Later.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top