使用标准 Flash AS3 滚动条类

发布于 2024-08-29 18:18:38 字数 388 浏览 5 评论 0原文

Flash 有一个滚动条类,记录如下:

http:// /help.adobe.com/en_US/AS3LCR/Flash_10.0/fl/controls/ScrollBar.html

但是,除了列出函数和变量之外,没有真正解释如何将此类的实例挂接到文本字段。

我尝试过的所有操作要么最终出错,要么滚动条不显示。该文档缺乏如何将文本字段和滚动条绑定在一起的明确方法,并且 CS4 也不提供任何帮助。

有人可以解释一下,或者链接到滚动条如何与文本字段一起使用的示例吗?

Flash has a scrollbar class, documented here:

http://help.adobe.com/en_US/AS3LCR/Flash_10.0/fl/controls/ScrollBar.html

However, besides listing functions and variables, there's no real explanation of how to hook an instance of this class to a textfield.

Everything I've tried either ends up in errors or the scrollbar not showing. The documentation lacks a clear way of how you should bind the textfield and the scrollbar toghether, and CS4 isn't providing any help either.

Can someone explain, or link to an example of how scrollbars work with textfield?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

窗影残 2024-09-05 18:18:38

如果您的问题是如何将滚动条附加到设计视图中的文本字段
然后只需将文本文件添加到舞台,确保文本文件是多行的
将滚动条组件拖到其上,向文本字段添加一些行,然后运行它。

if your question is how to attach scrollbar to textfiled in design view
then just add textfiled to the stage, make sure the textfiled is multiline
drag a scrollbar component over it, add some lines to the textfiled then run it.

凌乱心跳 2024-09-05 18:18:38

如果您只想要一个带有滚动条的文本字段,您可以使用预制的“TextArea”组件已经提供了此功能。

If you just want a textfield with a scrollbar attached, you can use the premade "TextArea" component which already provides this functionality.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文