swfをJavaScriptで直接バイナリ分解してcanvasに出力
分解と変換をリアルタイムで行っているので動的なswfも再生可能。
対応バージョン:
- FlashLite 1.x, 2.x, 3.x, 4,x
- ActionScript 1.0, 2.0
- ActionScript 3.0 (prototype)
Swf2Js is an open source Flash™ runtime written in pure JavaScript. It reads binary code from an SWF file, and outputs the result in a web canvas.
Swf2Js allows flash apps to run on the iphone !
It supports:
- FlashLite 1.x, 2.x, 3.x, 4,x
- ActionScript 1.0, 2.0
- ActionScript 3.0 (prototype)
-- Release Date: 23 Sep 2016
<script type="text/javascript" src="swf2js.js"></script>
<script type="text/javascript">
swf2js.load('SET SWF PATH');
</script>
Action Script 3
Action Script 2
Flash Lite2.x
Flash Lite1.x
python3 -m http.server
Then open http://localhost:8000 on your browser
https://swf2js.wordpress.com/api/
[覇者もん for GREE and Mobage]
http://gamebiz.jp/?p=131364
Facebook: https://www.facebook.com/swf2js
Twitter: https://twitter.com/swf2js
- ActionScript 1.x - ◯
- ActionScript 2.x - ◯
- ActionScript 3.x - built-in function
- ZLIB : ◯
- LZMA : × (0.7.x TBR)
- WebGL : × (0.8 TBR)
- DropShadow : ◯
- Blur : ◯
- Glow : ◯
- Bevel : ◯
- GradientGlow : × (0.8.x TBR)
- Convolution : × (0.8.x TBR)
- ColorMatrix : × (0.8.x TBR)
- GradientBevel : × (0.8.x TBR)
- Layer : × (0.8.x TBR)
- Multiply : ◯
- Screen : ◯
- Lighten : ◯
- Darken : ◯
- Difference : ◯
- Add : ◯
- Subtract : ◯
- Invert : ◯
- Alpha : ◯
- Erase : ◯
- Overlay : ◯
- Hardlight : ◯
- MP3 : ◯
- WAV : ◯
- WAV(ADPCM) : × (0.9 TBR)
- Flv : × (0.9 TBR)
- H.264 : × (0.9 TBR)
- Chrome : ◯
- FireFox : ◯
- Safari : ◯
- Edge : ◯
- Android : ◯
- iPhone : ◯
- Internet Explorer 10,11 : ◯