我在 flex 项目中使用 Flash 的 TLFTextField
。我们可以使用 HTMLText(li)
在 TLFTextField
中添加项目符号,但是如何在不使用 HTMLText 的情况下向 TLFTextField
添加项目符号?
我可以使用 TextFormat
的 bullet 属性在 Flash 的经典 TextField
中制作项目符号。
最佳答案
试试这个
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;
请检查此链接以获取更多帮助.. https://forums.adobe.com/thread/787203?tstart=0
希望对你有帮助
关于actionscript-3 - 如何在 Flash TLFTextField 中定义项目符号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31021544/