Click here to load reader
Upload
robert-szaloki
View
53
Download
2
Embed Size (px)
DESCRIPTION
Short demonstration about Mozilla's Shumway, a SWF player written in javascript.
Citation preview
Mozilla Shumway
Who am I?
Frontend developer at EU Edge
Render SWF files in JavaScript
Why?
● Atwood's Law: any application that can be written in JavaScript, will eventually be written in JavaScript.
● Leave no user behind! Flash is a zombie, but you have a tons of user generated swf files
How?
● swf parser
● ActionScript VM
● rendering
● media playback
SWF format
● compressed format
● good documentation from Adobe
● old (from 1996)
DefineFont, DefineFont2, DefineFont3,
DefineFont4
● really good container for animation
ActionScript
● the Tamarin VM (AVM2) was donated by
Adobe, for the development for ES4
● originally a C++ code, but compiled to
javascript
Rendering
● font rendering - convert the embedded font
into opentype
● shape rendering - easy, until you have to
deal with the Adobe Flash's output
● clipping, bitmaps, gradients - canvas
● bugs and no documentation
Bugs!
Bugs!
Bugs!
Demos
http://mozilla.github.io/shumway/
http://mozilla.github.io/shumway/examples/inspector/inspector.html?
rfile=../racing/race.swf