{"id":2988,"date":"2010-08-09T14:30:44","date_gmt":"2010-08-09T13:30:44","guid":{"rendered":"http:\/\/www.itwriting.com\/blog\/2988-render-swf-in-javascript-a-solution-for-flash-on-iphoneipad.html"},"modified":"2010-08-09T14:30:44","modified_gmt":"2010-08-09T13:30:44","slug":"render-swf-in-javascript-a-solution-for-flash-on-iphoneipad","status":"publish","type":"post","link":"https:\/\/www.itwriting.com\/blog\/2988-render-swf-in-javascript-a-solution-for-flash-on-iphoneipad.html","title":{"rendered":"Render SWF in JavaScript \u2013 a solution for Flash on iPhone\/iPad?"},"content":{"rendered":"<p>Looking at the blazing-fast JavaScript in <a href=\"http:\/\/ie.microsoft.com\/testdrive\/\" target=\"_blank\">IE9 Preview 4<\/a> made me wonder if anyone had tried to write a SWF renderer in JavaScript. SWF is the Adobe Flash file format and a <a href=\"http:\/\/www.adobe.com\/devnet\/swf\/\" target=\"_blank\">published specification<\/a>.<\/p>\n<p>Of course someone has. Tobias Schneider has been working on <a href=\" http:\/\/github.com\/tobeytailor\/gordon\" target=\"_blank\">Gordon<\/a> and built his first full release in June.<\/p>\n<p><a href=\"http:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2010\/08\/image7.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2010\/08\/image_thumb7.png\" width=\"244\" height=\"235\" \/><\/a> <\/p>\n<p>Gordon is a little behind in terms of version support:<\/p>\n<blockquote>\n<p>In this build, Gordon can read and parse all valid SWF\u2019s, even if they are compressed with ZLIB, but plays only SWF1 files completely, as well as the most of the SWF2 features.<\/p>\n<\/blockquote>\n<p>The Adobe SWF specification is now up to version 10.<\/p>\n<p>It is still an interesting exercise. Consider <a href=\"http:\/\/code.google.com\/webtoolkit\/\" target=\"_blank\">Google Web Toolkit<\/a>, which compiles Java to JavaScript. What if Adobe did something similar for Flash? In fact, if you look at the <a href=\"http:\/\/www.itwriting.com\/blog\/1858-the-sneak-peeks-at-adobe-max-09.html\" target=\"_blank\">Smart Paste \u201csneak peak\u201d<\/a> from Adobe Max 09 something like this was demonstrated.<\/p>\n<p>The Flash player includes some proprietary codecs that could not easily be replicated in JavaScript. Still, given such limitations, \u201cExport to HTML 5\u201d would be a nice option to find on some future version of Flash Professional, and would help Adobe\u2019s tools business even if it also dented its ambitions for Flash as the universal runtime.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Looking at the blazing-fast JavaScript in IE9 Preview 4 made me wonder if anyone had tried to write a SWF renderer in JavaScript. SWF is the Adobe Flash file format and a published specification. Of course someone has. Tobias Schneider has been working on Gordon and built his first full release in June. Gordon is &hellip; <a href=\"https:\/\/www.itwriting.com\/blog\/2988-render-swf-in-javascript-a-solution-for-flash-on-iphoneipad.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Render SWF in JavaScript \u2013 a solution for Flash on iPhone\/iPad?<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,34],"tags":[123,394,462,476,494,514,884],"class_list":["post-2988","post","type-post","status-publish","format-standard","hentry","category-adobe","category-flash","tag-adobe","tag-flash","tag-html-5","tag-ie9","tag-internet-explorer-9","tag-javascript","tag-swf"],"_links":{"self":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/2988","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/comments?post=2988"}],"version-history":[{"count":0,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/2988\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/media?parent=2988"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/categories?post=2988"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/tags?post=2988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}