Hi Tonic,

This is a snippet I use for htmltext in my mobile apps

var styles:String = "p {font-weight:normal;} a { color: #405081;
text-decoration: none;} a:hover { color: #3366CC; text-decoration: none; }
a:active { color: #b60c10; text-decoration: none; }";
var myStyleSheet:StyleSheet = new StyleSheet();
myStyleSheet.parseCSS(styles);

var stf:StyleableTextField = contactTxt.textDisplay as StyleableTextField;
var format:TextFormat = stf.defaultTextFormat;
format.bullet = null;
stf.defaultTextFormat = format;
stf.htmlText = Lang[app.lang].contactTxt;
stf.width = 400;

callLater(function():void{
StyleableTextField(stf).styleSheet = myStyleSheet;
});

contactTxt.skin.invalidateSize();

This works perfect for me.

Best regards,
Maarten Cammaert


On Wed, Aug 27, 2014 at 10:27 PM, Tonic <[email protected]> wrote:

> Hello,
>
> I try to show HTML text in a Textarea component in a mobile component.
>
> I just try a simple example (the final html text is longer and I want to
> use
> scrolling with selectable=false) :
>
>
>
> With this example, no text appears in the textarea. I don't understand why
> :) ?
>
> Thanks for your help :)
>
>
>
> --
> View this message in context:
> http://apache-flex-users.2333346.n4.nabble.com/Flex-Mobile-Textarea-HTML-Text-not-work-tp7773.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>

Reply via email to