[Flashcoders] getTextExtent and embedded images

2006-01-05 Thread Josh Gormley
I'm dynamically populating a textField with HTML and would like to  
get the entire height of the textField, including embedded images.


Is there a method for determining the height of a textField that  
includes an embedded image?  Both the textEntent and _height values  
do not take the image into account, even if I specify a width and  
height for the image.  I did notice that the help docs for  
getTextExtent mentions that text is treated as plain text, not HTML  
text, so that would explain why textExtent doesn't work.  Is there  
another way?


Thanks,
Josh
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] getTextExtent and embedded images [RESOLVED]

2006-01-05 Thread Josh Gormley
Ok, I figure out that if I have wordwrap AND autosize set to true,  
then the _height property of the textField does take into account any  
width and height attributes you specify for the image.  This is only  
a minor inconvenience, and much better than setting up an interval to  
check for when the image has loaded and then continuing on with my code.


Josh

On Jan 5, 2006, at 11:26 AM, Josh Gormley wrote:

I'm dynamically populating a textField with HTML and would like to  
get the entire height of the textField, including embedded images.


Is there a method for determining the height of a textField that  
includes an embedded image?  Both the textEntent and _height values  
do not take the image into account, even if I specify a width and  
height for the image.  I did notice that the help docs for  
getTextExtent mentions that text is treated as plain text, not HTML  
text, so that would explain why textExtent doesn't work.  Is there  
another way?

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders