actionscript 3 - Make a Text Field the same size as the font size -


i wondering if there way make text field same size font used text inside of it.

one of options i've tried was:

mytextfield.height = mytextfield.textheight  

but didn't job, because textheight height of highest letter in text, not can rely on.

i've tried using gettextformat().size:

mytextfield.height = mytextfield.gettextformat().size 

but returned:

error 1118 implicit coercion of value static type object possible unrelated type number. 


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -