I have my mx:Text component, myText.
 
It has a fixed width and the height varies depending on the length of the string i load it up with.
 
I'm trying to capture myText.height right after I load a string into it, in order to add "\n" characters to the front of shorter strings so they are centered top to bottom.
 
Problem is the myText.height property doesn't seem to update for a while after loading in a new string.  Everytime I capture it I end up getting the height of the previous string loaded in instead of the current one.
 
I've tried validatenow() and all the other validate functions to update that .height value immediately, with no luck.
 
Any ideas how I can capture that value?  or better ways to go about centering a string of random length top to bottom?
 
Thanks so much,
 
Jamie
 
__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to