I converted a Flash SWF file to HTML5 using Google Swiffy.
This works fine in Firefox.
However, in IE8, I get the following errors:
'swiffy' - undefined
'stage' is null or not an object
In IE, if you go to the Google Swiffy gallery section ( http://www.google.com/doubleclick/studio/swiffy/gallery.html ) and click on any of the examples, you will get similar errors (or at least I). Perhaps this is already a problem.
I will also contact Google to find out if there is a solution to this problem.
Here is a snippet of code.
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Swiffy output</title> <script src="http://www.gstatic.com/swiffy/v3.5/runtime.js"></script> <script>swiffyobject = {"tags": [{"id":1,"height":194,"width":609,"data":"data:image/jpeg; base64,/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkS ...there a lot of converted code, most of it looks like the gibberish above... </script> </head> <body style="overflow:hidden;margin:0;"> <script>var stage = new swiffy.Stage(document.body, swiffyobject);</script> <script>stage.start();</script> </body> </html>
I began to convert the Flash file, encoding it myself using Canvas. I will probably continue this. I just clicked on this time to do this, and would like these errors to be resolved.
Thanks.
Stephen
(By the way, can I attach the file? The code is really long.)
source share