Hi there,
I'm trying to get Flex (3.5, I know there is the Sparks Text stuff in 4.0 but unfortunately I'm stuck with 3.5 for the foreseeable future) to truncate a Text box to a certain number of lines.
I've come across http://blogs.adobe.com/bhellema/2007/03/truncating_text_1.html and also http://cookbooks.adobe.com/post_Graphical_truncating_of_texts_and_labels__custom_t-13306.html
The first link truncates nicely, but not to line, only height. The second link truncates to line count, but puts the ellipsis somewhere strange. The second link was also working earlier but I think there's an infinite looping problem somewhere now (because when I use that component it doesn't even load).
I've tried to combine the two myself, and I've ended up with http://codepad.org/sIFRbEkd however, this doesn't work correctly - it goes into an infinite loop somewhere along the road.
I'm not stuck using any of the above things though, so if someone has something handy, that'd be lovely.
Cheers!