GithubHelp home page GithubHelp logo

mohamed-moneim-said / shumway-player Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 639 KB

Shumway is a Flash VM and runtime written in JavaScript

License: Apache License 2.0

Shell 2.14% JavaScript 92.36% HTML 5.50%

shumway-player's Introduction

Shumway player

Shumway is a Flash VM and runtime written in JavaScript

how to use Shumway player

First download clone project using this link "https://github.com/Mohamed-moneim-said/Shumway-player.git" and unarchive file

create a web page (e.g. demo.html) that includes shuobject.js:

<script src='./bower_components/shumway-dist/shuobject.js'></script>

and, in a JavaScript, instantiate SWF file viewer similar to swfobject:

shuobject.embedSWF('demo.swf', 'mainSWF', 800, 512, '9,0,10');

where mainSWF is a div element/container on the web page.

You shall have something like:

<html>
<head lang="en">
  <meta charset="UTF-8">
  <title>Basic shuobject demo</title>
  <script src="./bower_components/shumway-dist/shuobject.js"></script>
  <script>
    // Create/embed SWF movie.
    shuobject.embedSWF('demo.swf', 'mainSWF', 800, 512, '9,0,10');
  </script>
</head>
<body>
  <h1>Demo</h1>

  <div id="mainSWF">Flash will be loaded here (it is similar to swfobject)</div>
</body>
</html>

Also add demo.swf file (e.g. from http://mozilla.github.io/shumway/demo.swf)

Viewing a SWF Use a web server to view the created above page.

Copyrights

This is a pre-built version of the Shumway source code.

See also https://github.com/mozilla/shumway

All rights saved to mozilla

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.