flash basics 2
flash basics 2
- Started
- Last post
- 5 Responses
- lnu
Does anybody know if a dynamic textbox can return it's own width (depending on what text it contains)? I can't get that to work. Thanks.
- unknown0
Only it's length (in characters)... you could probably make a little routine to approximate it... i.e a=4 pixels b=5 pixels...
Or you could ditch the idea and find something that works!
- b34r0
function txtDimensions () {
_root.createTextField( "textfield_txt", 1 , 10 , 10 , 0 , 0 );
textfield_txt.autoSize = "left";
textfield_txt.text = "Newstoday Roxor!";trace ("w = " + textfield_txt._width)
trace ("h = " + textfield_txt._height)}
txtDimensions()
:)
- lnu0
looking good, i'll try it later!
- unknown0
Blimey! does that work! If so... I like it a lot!
- 187LockDown0
No you will try it now.