actionscript-3 - 如何在 Flash TLFTextField 中定义项目符号?

标签 actionscript-3 flash apache-flex tlf

我在 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/

相关文章:

actionscript-3 - 如何制作一个可以正常运行的简单的音量拖动按钮?我已经研究过,但是找不到有效的方法

apache-flex - 为 Flash 开发人员提供哪些现场声音编辑/过滤库?

html - 在 Flash 页面中编辑分辨率

android - Flex 移动 : Can I "add to contacts" some info like name, 电子邮件、电话?

php - 使用带有特殊字符的 SimpleXML 在 PHP 中创建 XML

regex - string.search (".") 总是返回 0

php - 我如何知道请求是否来自 flash swf?

java - BlazeDs Java 对象的序列化

javascript - Javascript 和 Flash/ActionScript 之间的交互无需外部接口(interface)?

actionscript-3 - 我的错误在哪里? (Flash CS6 AS3错误: 1120)