开发者

HTML Canvas element implemented in Flash?

开发者 https://www.devze.com 2022-12-13 00:28 出处:网络
Can the HTML 5 Canvas element be开发者_开发百科 implemented in Flash to provide support for that element in older browsers?

Can the HTML 5 Canvas element be开发者_开发百科 implemented in Flash to provide support for that element in older browsers?

ExplorerCanvas can be included on a web page to allow emulation of Canvas in IE using VML. Since this is an IE-only solution, I would like to know if a similar replacement could be done using Flash, giving support for Canvas to all browsers.


http://www.azarask.in/blog/post/flash-canvas/

An implementation of the canvas tag using Flash.


For older browsers (namely IE), you can use ExplorerCanvas: http://code.google.com/p/explorercanvas/, which simulates canvas in IE using SVG I think.


There are 3 projects I know of that implemented canvas in flash, 2 are mentioned above.

  1. http://code.google.com/p/fxcanvas/ - implements some things via a special "invoke" method so your code will have to be adjusted slightly if you use things like getImageData, the implementation of the special methods is a bit odd, it runs in a separate thread seemingly, so some things i can do with a real canvas don't seem possible right now if you depend on it.

  2. flash-canvas - very basic, only a few simple operations supported

  3. explorer-canvas - i.e. only, does not support any of the ImageData methods, otherwise quite good.

Sadly there does not seem to be a perfect flash implementation out there.


i must say flashcanvas is the greatest one i know, which is surprised not mentioned!

0

精彩评论

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

关注公众号