提供/获取对 TextArea 中 UIScrollBar(或其名称)的引用
这是一个非常简单的问题,但显然所有讨论 ActionScript 的论坛(或者至少是谷歌上的所有论坛)都没有得到很好的管理。
我有一个文本区域。它有一个 UIScrollbar。我希望能够引用该滚动条。我听说有一个 update() 函数,它也许可以让我免于这个该死的 UIScrollbar 自己做的莫名其妙的事情。
(顺便说一句,actionscript = 笑话语言)
This is such a mindnumbingly simple question, but apparently all the forums where actionscript is discussed (or at least all the ones on google) aren't very well managed.
I have a textArea. It has a UIScrollbar. I want to be able to reference that scrollbar. I heard there's an update() function, and that may be able to save me from the inexplicable things this damnable UIScrollbar is doing on its own.
(btw, actionscript = joke language)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当滚动条添加到 TextArea 时,它会调度事件 ADDED。您可以像这样捕获它的滚动条:
带有滚动条的事件将被触发一次。 TextArea 中还添加了许多其他内容,因此需要进行类型检查。
知道你的笑话并保持冷静 ^_^
编辑:错误...真正的解决方案似乎只是 textArea.verticalScrollBar。
When scrollbar is added to TextArea, it dispatches event ADDED. You can catch its scrollbar like this:
Event with scrollbar will be fired once. There is also many other stuff that adds into TextArea, so type check is needed.
Know ya jokes and be cool ^_^
Edit: wrong... Real solution seems to be just textArea.verticalScrollBar.
在你的课堂上只需写:
瞧,USB 就是你的参考。
In your class just write:
and voilá, usb is your reference.