 			var sp:Object = parent;
 			if (!sp)
 				sp = styleParent;
-			
+			sp.addEventListener("classNameChanged", updateStyles);
+            
 			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;
		}
	}
}
	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.
