Hello,

how do you please find out the width of a string in a TextField?

I have a Sprite representing a comic bubble
(my code available at http://pastebin.com/m6d9f4087 )
and use a TextField with TextFieldAutoSize.LEFT
there to accomodate the text.

I would like to shrink the TextField's width though
when the text is short. How can I find text's width?

Also another thing I'd like to do: when the text is long,
I'd like to find its total width too and set the width
of the TextField so that the resulting TextField
will have a (approximately) square form.

Thank you
Alex
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to