4 Replies Latest reply on Feb 28, 2010 11:05 PM by Luis Pedro Ferreira

    measureText() always returning 0

    Luis Pedro Ferreira Level 1

      I guys! I've used measureText() before with Flex 3.0 but now, using the same sintax in Flex 4.0 it's not working like it used to work.


      I set measureText(input_search.text).width to the focusOut() method of input_search (a TextInput component), so it can measure the width of its text property when it loses the focus but for some reason its always returning me the value 0.


      Am i doing anything wrong? Is it differente now?

      Can someone help me?