package utils.textField { import flash.text.StyleSheet; import flash.text.TextField; /** * Apply a StyleSheet to a TextField & set its contents. * * @param tf TextField to display. * @param str of text to apply. * @param stylesheet to apply to the TextField's (Default: App.css). * * @see sekati.core.App#css */ public function setStyledText(tf:TextField, str:String, stylesheet:StyleSheet = null):void { styleFields(tf, stylesheet); tf.htmlText = str; } }