 
 import mx.core.mx_internal;
 import mx.events.FlexEvent;
+import mx.resources.ResourceManager;
 import mx.styles.IStyleClient;
 
 import spark.core.IEditableText;

     */
    public function truncateToFit(truncationIndicator:String = "..."):Boolean
    {
    //    if (!truncationIndicator)
    //          truncationIndicator = truncationIndicatorResource;
        
        // Ensure that the proper CSS styles get applied to the textField
        // before measuring text.
        // Otherwise the callLater(validateNow) in styleChanged()
        // can apply the CSS styles too late.
    //     commitStyles();
        
        var originalText:String = super.text;
        
        untruncatedText = originalText;
        
        var w:Number = width;
        
        _isTruncated = false;

//   in styleChanged():
//       tf.styleChanged(styleProp);
//
// Supported styles: textAlign, fontFamily, fontWeight, "colorName", fontSize, fontStyle, 
//                   textDecoration, textIndent, leading, letterSpacing
 
/**
 *  The MobileTextField class is a text primitive for use in ActionScript
