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

4x4 Matrix in Python -

python - String indices must be integers and while issue -

python - PyInstaller UAC not working in onefile mode -