如何在动态文本字段中将一些文本设置为Adobe Animate中的斜体



我需要在斜体字段中编写动态文本字段的某些部分。假设我想在斜体上写"文本"。我该怎么做?

this.instance_name.text = "This is some text.";

未测试" it's a html5 animation" ,但您可以尝试使用textField的HTMLTEXT属性:

this.instance_name.htmlText = "This is some <i>text</i>.";

最新更新