Mais conteúdo relacionado Semelhante a Flash Is Dead, Long Live Flash! (20) Flash Is Dead, Long Live Flash!1. Flash is dead,
long live Flash!
OR
Indroducing Gordon:
An open source Flash runtime written in pure JavaScript
2. Flash
+Well structured and extendable file format (SWF)
+Great authoring tools (Flash IDE, OpenOffice, libMing)
-Runtime sucks on non-windows-systems
-Runtime would suck on iP‘s
-Accesibility & Semantics
5. 000000 465753034F000000 7800055F00000FA0
000010 00000C01004302FF FFFFBF0023000000
000020 010070FB49970D0C 7D50000114000000
000030 000125C9920D21ED 488765303B6DE1D8
000040 B400008606060100 01000040000000
<?xml version="1.0"?>
<swf version="6" compressed="1">
<Header framerate="16384" frames="1">
<size>
<Rectangle left="0" right="11900" top="0" bottom="16840"/>
</size>
<tags>
<SetBackgroundColor>
<color>
<Color red="255" green="255" blue="255"/>
</color>
</SetBackgroundColor>
<ShowFrame/>
<End/>
</tags>
</Header>
</swf>
7. Gordon
Flash & Friends sitting in the DOM
100% JavaScript (no Flash fallbacks :))
~3100 lines of code (~15kB Gzipped)
Customizable (SVG renderer by default)
10. var movie = new Gordon.Movie("your.swf", {
id: "stage",
width: 500,
height: 400,
autoplay: false
});
...
movie.goTo(10).play();
...
movie.rewind().next();
...
movie.prev().stop();
11. var xhr = new XMLHttpRequest();
xhr.open("GET", url, false);
xhr.overrideMimeType("text/plain;charset=x-user-defined");
...
xhr.responseText.charCodeAt(23) & 0xff;
21. Embeded SVG Fonts in WebKit (Opera?)
Inline Glyph-Shapes in Firefox
Web Font(ODT) Data-URL
25. Not implemented yet
SWF just defines Start- & End-Shape
Transition & Transformation done by the RT
Great solution in RaphaëlJS
33. CustomWebGLRenderer = function(options){
...
};
CustomWebGLRenderer.prototype = {
define: function(obj){ ... },
place: function(character){ ... },
remove: function(depth){ ... }
};
var movie = new Gordon.Movie("your.swf", {
...
renderer: CustomWebGLRenderer
});