actionscript-3 - IntellijIdea 中的 Action Script 3 TextArea 组件
问题描述
我需要带滚动条的 TextField。我找到了示例:https ://help.adobe.com/ru_RU/FlashPlatform/reference/actionscript/3/fl/controls/TextArea.html#htmlText
fl.controls
未找到第一个错误。我已添加“d:\Program Files\Adobe\Adobe Animate 2020\Common\Configuration\Component Source\ActionScript 3.0\User Interface\”文件夹作为源。
之后,如果我运行示例:
package {
import fl.controls.TextArea;
import flash.display.Sprite;
public class Test_AdobeAnimateComponents extends Sprite {
public function Test_AdobeAnimateComponents() {
var myText:String = "";
myText += "<p>You can use the <b> tag to create <b>bold</b> text.</p>";
myText += "<p>You can use the <i> tag to create <i>italic</i> text.</p>";
myText += "<p>You can use the <u> tag to create <u>underlined</a> text.</p>";
myText += "<p>You can use the <a> tag to create <a href='http://www.adobe.com'>links to other sites</a>.</p>";
myText += "<p>You can use the <br> tag to create<br>new lines of text<br>whenever you want.</p>";
myText += "<p>You can use the <font> tag to specificy different font <font color='#FF0000'>colors</font>, <font size='16'>sizes</font>, or <font face='Times New Roman'>faces</font>.</p>";
myText += "<p>You can use the <img> tag to load images or SWF files:<br><img src='http://www.helpexamples.com/flash/images/logo.png'>.</p>";
var myTextArea:TextArea = new TextArea();
myTextArea.setSize(320, 100);
myTextArea.move(10, 10);
myTextArea.htmlText = myText;
addChild(myTextArea);
}
}
}
错误现在在drawLayout()
TextArea.as 中:背景为空。这是因为以前drawBackground()
想找到“upSkin”。在defaultStyles
upSkin 中是“TextArea_upSkin”。看起来我也需要一些图形文件。
同一文件夹中的“d:\Program Files\Adobe\Adobe Animate 2020\Common\Configuration\Component Source\ActionScript 3.0\User Interface\ComponentShim.fla”没有帮助。
解决方案
推荐阅读
- javascript - 如何修复表中单个行内的 beforesend ajax 小型加载程序
- google-cloud-platform - 谷歌账户管理
- android-studio - 获取android Studio中表格布局中的所有按钮
- javascript - 如何隐藏 GIF 并用图像替换(以便使用放大工具)
- google-cloud-platform - Google Compute Engine:启动脚本未在容器优化操作系统中运行
- javascript - 地图中的顺序 axios 请求
- google-cloud-platform - 从带有 GPU 的机器映像创建不带 GPU 的 GCP 实例
- vba - 什么是使用访问 vba 的最佳事件
- python - Python字符串出现计数正则表达式性能
- json - 如何从 Ionic 3 中的 JSON 对象获取不是 URL 的图标值