 	import flash.text.TextFormat;
 	
 	import org.apache.flex.core.ValuesManager;
+    import org.apache.flex.events.Event;
 		
     /**
      *  The CSSTextField class implements CSS text styles in a TextField.

			var sp:Object = parent;
			if (!sp)
				sp = styleParent;
			
			var tf: TextFormat = new TextFormat();
			tf.font = ValuesManager.valuesImpl.getValue(sp, "fontFamily") as String;
			tf.size = ValuesManager.valuesImpl.getValue(sp, "fontSize");

			defaultTextFormat = tf;
			super.text = value;
		}
        
        private function updateStyles(event:Event):void
        {
            // force styles to be re-calculated
            this.text = text;
        }
	}
}