             textField.multiline = false;
             textField.tabEnabled = true;
             textField.wordWrap = false;
-            if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)
-                textField.styleName = this;
 
             textField.addEventListener(Event.CHANGE, textField_changeHandler);
             textField.addEventListener(TextEvent.TEXT_INPUT,


            w = lineMetrics.width + bm.left + bm.right + 8; 
            h = lineMetrics.height + bm.top + bm.bottom + UITextField.TEXT_HEIGHT_PADDING; 
                            
            if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_3_0)
            {
                w += getStyle("paddingLeft") + getStyle("paddingRight");
                h += getStyle("paddingTop") + getStyle("paddingBottom");
            }
        }

        measuredWidth = Math.max(w, measuredWidth);

        textField.x = bm.left;
        textField.y = bm.top;

        textField.x += paddingLeft;
        textField.y += paddingTop;
        widthPad += paddingLeft + paddingRight; 
        heightPad += paddingTop + paddingBottom;
        
        textField.width = Math.max(0, unscaledWidth - widthPad);
        textField.height = Math.max(0, unscaledHeight - heightPad);
