Coder Social home page Coder Social logo

swf2js's Introduction

JavaScript製FlashPlayer「swf2js」Flash(swf)をHTML5に変換してiPhone、Androidで再生可能に!

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)

Latest Version 0.7.7

-- Release Date: 23 Sep 2016

HTML - SAMPLE CODE

<script type="text/javascript" src="swf2js.js"></script>
<script type="text/javascript">
    swf2js.load('SET SWF PATH');
</script>  

Examples

Action Script 3

Action Script 2

Flash Lite2.x

Flash Lite1.x

How to test locally

python3 -m http.server

Then open http://localhost:8000 on your browser

API

https://swf2js.wordpress.com/api/

Games using it

[覇者もん for GREE and Mobage]
http://gamebiz.jp/?p=131364

SNS

Facebook: https://www.facebook.com/swf2js
Twitter: https://twitter.com/swf2js

Project status

ActionScript

  • ActionScript 1.x - ◯
  • ActionScript 2.x - ◯
  • ActionScript 3.x - built-in function

Compression

  • ZLIB : ◯
  • LZMA : × (0.7.x TBR)

WebGL

  • WebGL : × (0.8 TBR)

Filters

  • DropShadow : ◯
  • Blur : ◯
  • Glow : ◯
  • Bevel : ◯
  • GradientGlow : × (0.8.x TBR)
  • Convolution : × (0.8.x TBR)
  • ColorMatrix : × (0.8.x TBR)
  • GradientBevel : × (0.8.x TBR)

Blend Modes

  • Layer : × (0.8.x TBR)
  • Multiply : ◯
  • Screen : ◯
  • Lighten : ◯
  • Darken : ◯
  • Difference : ◯
  • Add : ◯
  • Subtract : ◯
  • Invert : ◯
  • Alpha : ◯
  • Erase : ◯
  • Overlay : ◯
  • Hardlight : ◯

Audio

  • MP3 : ◯
  • WAV : ◯
  • WAV(ADPCM) : × (0.9 TBR)

Video

  • Flv : × (0.9 TBR)
  • H.264 : × (0.9 TBR)

Browser support

  • Chrome : ◯
  • FireFox : ◯
  • Safari : ◯
  • Edge : ◯
  • Android : ◯
  • iPhone : ◯
  • Internet Explorer 10,11 : ◯

swf2js's People

Contributors

ienaga avatar thomas-sonicmoov avatar humbertodias avatar gitter-badger avatar ousia avatar vikbez avatar

Watchers

Tim Bielawski avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.