I'm using Flash's TLFTextField in a flex project. We can add bullets in TLFTextField using HTMLText(li), but how can I add bullets to TLFTextField without using HTMLText?
I can do bullets in Flash's classic TextField using the bullet property of TextFormat.
Try this
var pText:String = "<list listStylePosition='inside' listStyleType='disc' afterFormat = '\t' paddingLeft = '30' tabStops='e100 s700'>" +
"<li><p>Mango</p></li>" +
"<li><p>Apple</p></li>" +
"</list>";
var t:TLFTypographicCase;
textLayoutFormat = new TextLayoutFormat();
//textLayoutFormat.color = "#ffffff";
textLayoutFormat.fontFamily = "Myriad Pro";
textLayoutFormat.fontSize = 36;
textLayoutFormat.paragraphSpaceBefore = 12;
linkNormal = new TextLayoutFormat();
linkNormal.color = 0x26e1fd;
linkNormal.fontFamily = textLayoutFormat.fontFamily;
linkNormal.fontSize = textLayoutFormat.fontSize;
richTextArea.textFlow = TextFlowUtil.importFromString(pText);
richTextArea.textFlow.format = textLayoutFormat;
richTextArea.textFlow.linkNormalFormat = linkNormal;
Please check this link for further help.. https://forums.adobe.com/thread/787203?tstart=0
Hope this helps
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With