WMODE and Flash Video - stability and performance

十年热恋 提交于 2019-12-05 09:37:39

Yes, wmode opaque can hinder performance. "transparent" is even worse. However,

1) It's not as bad as it was a while ago (when sometimes it wouldn't work at all).

2) Most importantly, performance hit is only on certain situations. I have ran into two different situations: a) you have a part of your SWF that is being redraw, and that part of the SWF (dirty rectangle) is close to some HTML content. This forces the browser to redraw the HTML content every time the SWF part is redrawn, thus losing performance; and b) user events like a mouse rolling over a button that is close to HTML content can also be a problem... the browser seems to lose a few frames every time you move the mouse (to determine what's below the cursor, maybe?) so if you have a quick rollover (say, something that takes 0.3s) it's very easy to notice the animation 'lagging' as you move the mouse and it loses some frames.

Point is, if you can avoid situations where you are interacting with animated content below the HTML area, or if you can disable the HTML content sometimes, using opaque is ok.

Performance also vary between browsers, so be sure to test well.

I personally don't have any issue with it. But most sites seem to hide the flash content when something such as a modal dialog is being displayed on top of the flash content and made visible again once it's closed.

I would like to add:

After changing the WMODE to opacity, the input boxes could not have special characters (icelandic, such as þ, ð) in them. I'm unsure if this is an issue for everyone.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!