     /**
      *  @private
      */     
-    private function measureChromeText(textField:UITextField):Rectangle
+    private function measureChromeText(textField:IUITextField):Rectangle
     {
         var textWidth:Number = 20;
         var textHeight:Number = 14;

import mx.controls.Button;
import mx.core.WindowedApplication;
import mx.core.IFlexDisplayObject;
import mx.core.IWindow;
import mx.core.mx_internal;
import mx.core.UIComponent;

        
        if (!titleTextField)
        {
            titleTextField = IUITextField(createInFontContext(UITextField));
            titleTextField.text = _title;
            titleTextField.styleName = getStyle("titleTextStyleName");
            titleTextField.enabled = true;
            addChild(DisplayObject(titleTextField));
        }
 
        if (!titleIconObject && _titleIcon)
