How can I color words in spark:TextInput with two or more colors ?
I did it with mx:TextInput with htmlText property but i can not find it in spark component.
Thanks
<s:TextArea id="txt_ar" textAlign="justify"
borderAlpha="0" editable="false">
then write ur html string
textrichtml:String = "your html string"
then use following code.
txt_ar.textFlow = TextConverter.importToFlow(textrichtml,TextConverter.TEXT_FIELD_HTML_FORMAT);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.