Hi,

Put the alert inside a method and call the method using callLater... The
textHeight wont be set immediately after you set the text. It takes a couple
of milliseconds to do some internal operations. Here is the syntax:

callLater(methodName)

Regards,
Venkat
www.venkatv.com


On Fri, Feb 20, 2009 at 4:47 PM, Akhil Agrawal <[email protected]>wrote:

>
> hi,
> when i run this code
>
> temptext.text=this.gettext();
> Alert.show(temptext.text+"\n"+  this.font.getsize().toString()
> +box.height+"\n"+temptext.textHeight.toString(),"hi");
>
> it give NAN for textHeight even i uset temptext.validatenow() what is
> the problem and how to fix it.
>
> thanx
>
> regards
> akhil agrawal
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to