In Flex 2, if the text is too long for a Label control, Flex truncates the text and adds a "..." to the end. The Text and TextArea controls just truncate the text. I would like to add the Label-style "..." behavior to multi-line Text and TextArea controls. I talked to Doug at the last CFLunch, and he said: " You over-ride the data setter/getter for custom renderers, not what you were trying to do. Have a look at truncateToFit() inside UITextField.as. You might be able to model your component after Text.as or Label.as which extends Label which extends UITextField. truncateToFit() is where the truncation routine is, its public so over-rideable. " This makes sense and it looks like truncateToFit() may do what I want. Now, here are my questions: 1. truncateToFit() is a method of the UITextField object. Now, I know that TextArea.as has a UITextField. But, in general, what's the best way to see what other objects are inside of a control? 2. I know it's in there somewhere, but how do I access the UITextField. How do I get a handle to the internal object. 3. Both of the above questions may be the two ways to ask the same question -- I'm not sure. The other thing I want to know is what's the best practice way to reference an internal, contained object? 4. From looking at the Text Class, I think one thing Doug said was wrong. Text does not extend UITextField, it extends UIComponent. I think Text uses composition to "have a" UITextField. This is what I'm trying to understand. I think I have a good understanding of what I'm trying to do. It's just that the complexity of Flex can be overwhelming as I try to wade through all the ActionScript. I'm looking for ideas on how to best structure my search. Thanks for any advice! Clarke
------------------------------------------------------------- To unsubscribe from this list, simply email the list with unsubscribe in the subject line For more info, see http://www.affug.com Archive @ http://www.mail-archive.com/discussion%40affug.com/ List hosted by http://www.fusionlink.com -------------------------------------------------------------
