play flash files with pure javascript without flash

1:28 AM

(0) Comments

confusing isn't is ??
the first time i heard such thoughts was on wikimania 2008 some engineers talk about the importance alternative open source flash player on the web
and i did see some simple ways to do that but one of the amazing codes that what i saw today is Gordon , its open source swf flash run-time environment written in pure java script it deals with swf files and run it without needs of any plugins or tools just pure java script
works on FF , Opera , Chrome , Safari
https://github.com/tobeytailor/gordon/wiki/browser-support-table/
simple code

<?xml version="1.0" encoding="UTF-8">
<!DOCTYPE html  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <script type="text/javascript" src="/path/to/gordon.js"></script>
  </head>
  <body>
    <div id="your_stage">Replace me</div>
    <script type="text/javascript">
      var movie = new Gordon.Movie("/path/to/your.swf", {id: "your_stage", width: 480, height: 320});
    </script>
  </body>
</html>
you can download it here https://github.com/tobeytailor/gordon/wiki/
and follow @tobeytailor  for more information

eslam

,

0 Responses to "play flash files with pure javascript without flash"

Post a Comment