Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

parsing a swf/fla (using php?)

I've written a framework (it's been a year) which will render AS3 code as HTML5

I want to reach into a swf and parse the guts into my framework so that you can upload an AS3 swf and get the HTML5 equivalent back.

Any ideas on how to parse a swf/fla using php?

** edit **

As a reference, google does something similiar to this. However, swiffy only parses AS2 code.

** edit 2 **

For further clarification, I only want to be able to parse a swf for layout props and actionscript. I've got the rest figured out.

like image 758
Jacksonkr Avatar asked Jul 01 '11 22:07

Jacksonkr


1 Answers

Take a look at SWFTools - that can dump the code out of SWFs apparently, and has source code, though you could use the command line utilities from PHP and parse the output to get the actionscript sections out. God knows what you will do with it then.

like image 190
Orbling Avatar answered Sep 28 '22 19:09

Orbling