Processing
 

parsing a swf/fla (using php?)

01/07/2011 22:44#1

Jacksonkr

Member

Joined at: 10 months ago

Post: 46

Thank: 0

Thanked: 0

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.

01/07/2011 22:55Top#2

Orbling

Member

Joined at: 10 months ago

Post: 17

Thank: 0

Thanked: 0

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.

16/03/2016 18:09Top#3

Rick

Member

Joined at: 10 months ago

Post: 67

Thank: 0

Thanked: 0

https://github.com/iborodikhin/php-swiffy/

use this lib and implement like this

require_once('php-swiffy-master/vendor/autoload.php');  $swiffy = new Swiffy\Client(); $html = $swiffy->convert("test.swf"); $myfile = fopen("test.html", "w"); if(!empty($html)){      fwrite($myfile, $html);     fclose($myfile); } 
Similar articles

Open a folder in finder/explorer from a webpage?

5 years ago - Reply: 2 - Views: 80

How do I escape a reserved word in Actionscript?

5 years ago - Reply: 2 - Views: 198

Save PPS/PPT files as SWF using C#

5 years ago - Reply: 2 - Views: 171

Ways of making a graphic/visual novel in flash

6 years ago - Reply: 3 - Views: 114

Use PhoneGap + HTML5 and an Embedded Flash Movie

5 years ago - Reply: 2 - Views: 96

View word docs and PDF in browser?

5 years ago - Reply: 2 - Views: 52

ActionScript 3 Read JPEG quality

7 years ago - Reply: 2 - Views: 59

Export/Test Movie Issues

5 years ago - Reply: 3 - Views: 39

Flash always on top in Android browser workaround?

5 years ago - Reply: 2 - Views: 149

Sending Json Form from Flash AS3

5 years ago - Reply: 2 - Views: 29

parsing a swf/fla (using php?)

6 years ago - Reply: 2 - Views: 44

Getting high FPS on Flash/AIR games for mobile?

4 years ago - Reply: 2 - Views: 58

vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re