开发者

Does mouseEnabled property cause Flash player to redraw the object?

开发者 https://www.devze.com 2023-01-23 15:30 出处:网络
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.

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 mou开发者_StackOverflow中文版seEnabled 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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号