flash: dynamic text
- Started
- Last post
- 11 Responses
- dwid
can you get a dynamic textfield to adjust its width to the amount of text you send in to it??
- dwid0
c'mon i know you hardcore actionscripters read this, dont give a newbie the silent treatment. is it possible?
- ********0
I could never manage it. So i was waiting for the answer too.
- dwid0
it would have been nice...
- kinetix0
testField.autosize = "left";
testField.autosize = "center";
testField.autosize = "right";
You have to be using MX though, where testfield is the name of instance name of your movie clip.
- kinetix0
all you gotta do is look through the flash actionscript help guide... its in there.
- ********0
Ah..I was trying to do a while back in flash5. Glad that MX can do it.
- kinetix0
The problem with that is you have to add the line breaks yourself ala "
"
- dwid0
allan, thnx. ye i know... sometimes im just lasy, but lasy doesnt get me anywhere! i'll never asc a actionscript question again, sry.
- mac100
you can set the hight and width
in flash Mxlike is
myTextField._width = 200;
myTextField._height = 200;if you want to change the size of the text field
myTextField._width = twidth;
myTextField._height = theight;on a button
twidth = 200;
theight = 200;hope this helps
mac-10
- kinetix0
dont worry about it..... took me about a month to figure that out.
- kinetix0
Nice call Mac 10.