mouseEnabled 属性是否会导致 Flash 播放器重绘对象?

发布于 2024-10-01 07:29:40 字数 147 浏览 0 评论 0原文

所以我在舞台上制作了一些文本字段并启动了电影。 看来,当我打开“显示重绘区域”并尝试单击文本字段时,它显示它已重绘。

当将此文本字段的 mouseEnabled 属性设置为 false 并尝试单击该文本字段时,它不会显示正在重绘。

重绘意味着什么?

So I made few text fields on the stage and launched the movie.
It appears that when I turn on the "Show redraw regions" and try to click on the text field it shows it's redrawed.

When is set the mouseEnabled property for this text field to false and try to click on the text field it doesn't show it's being redrawed.

By redrawing they mean what?

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

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

发布评论

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

评论(1

守不住的情 2024-10-08 07:29:41

可能是因为如果将 mouseEnabled 设置为 false,则单击时不会发生任何事情,因此文本字段不可能发生更改,因此不需要重新绘制。如果启用,单击可以产生任意数量的效果(默认或您自己添加),因此需要重新绘制字段才能确定。

Probably because nothing happens upon a click if you set mouseEnabled to false, there's no way the textfield could have changed, so it doesn't need to be redrawn. If it is enabled, a click can have any number of effects (default or added yourself) so it needs to redraw the field to be sure.

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