mouseEnabled 属性是否会导致 Flash 播放器重绘对象?
所以我在舞台上制作了一些文本字段并启动了电影。 看来,当我打开“显示重绘区域”并尝试单击文本字段时,它显示它已重绘。
当将此文本字段的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可能是因为如果将
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.