An open source project that uses JavaScript/HTML5 to implement Flash functions, Smokescreen, can convert Flash animations to pure HTML5 + JavaScript, so as to implement Flash-style animations directly in the browser without the Flash plug-in.
The following is the relevant content of a Smokescreen open source project that implements Flash animation in HTML5 + JavaScript. The article tutorial mainly talks about some technologies and knowledge related to the Smokescreen open source of HTML5 JavaScript Flash animation. For more content, you are welcome to visit http://www.VeVb.com to get more latest tutorials. The following is the tutorial explanation:
An open source project that uses JavaScript/HTML5 to implement Flash functions, Smokescreen, can convert Flash animations to pure HTML5 + JavaScript, so as to implement Flash-style animations directly in the browser without the Flash plug-in.
A programmer named Chris Smoak recently launched an open source project that uses JavaScript/HTML5 to implement Flash functions. Smokescreen can convert Flash animations to pure HTML5 + JavaScript, so as to implement Flash-style animations directly in the browser without the Flash plug-in. Here are some pretty demos.
Regarding this technology, a programmer named Simon Willison did a good analysis in his blog:
SmokeScreen runs entirely in the browser, reads SWF binary files, decompresses (and uses local JavaScript to decompress!), extracts images and embedded audio from it, converts them into Base64-encoded data, and then converts the vector graphics into SVG animations. Open the Web Inspector in Chrome, and as the demo is in progress, you will see the SVG running in real time. SmokeScreen even designed its own ActionScript interpreter.
Smoak said he will soon open the source code of SmokeScreen based on the open source protocol. At present, he has made several very beautiful demonstrations. Although it is not perfect, he can already see what the Flash-style animation based on HTML5 looks like. These codes do not support Flash videos, but HTML5 already has its own video solution. Smoak said his original intention was to implement Flash-style advertising animation on devices like iPhone and iPad, and this technology is most likely to be used in advertising.
After optimization, the technology can also be used for games. Willison said that infographics in news sites are also very useful, and can also be used to render cartoon-style animations, such as the Strongbad series in the demonstration.
However, people are worried about whether SmokeScreen can be applied well to mobile devices with very limited speed and power supply, and we expect the code to be optimized after it is open source. Currently, only those latest browsers can use the technology, including Firefox 3.6, Chrome 5, Safari 4, and Mobile Safari. The Opera 10.5 series is also close to support, but not IE8, but Smoak says IE9 is promising.
The content of sharing a Smokescreen open source project that implements Flash animation in HTML5 + JavaScript is finished here. You can bookmark this page URL http://www.VeVb.com/web/a/2018090560157.shtml for easy access next time.