From a9bae24f0a8b54f54cc0c8e9b3b9dc60070d93c4 Mon Sep 17 00:00:00 2001 From: kramm Date: Tue, 1 Apr 2008 16:17:11 +0000 Subject: [PATCH] added support for Flash9 Actionscript parsing --- src/swfdump.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/swfdump.c b/src/swfdump.c index 272f9af..8fb84b6 100644 --- a/src/swfdump.c +++ b/src/swfdump.c @@ -964,11 +964,11 @@ int main (int argc,char ** argv) #endif close(f); - - if(action && swf.fileVersion>=9) { - fprintf(stderr, "Actionscript parsing (-a) not yet supported for SWF versions>=9\n"); - action = 0; - } + + //if(action && swf.fileVersion>=9) { + // fprintf(stderr, "Actionscript parsing (-a) not yet supported for SWF versions>=9\n"); + // action = 0; + //} xsize = (swf.movieSize.xmax-swf.movieSize.xmin)/20; ysize = (swf.movieSize.ymax-swf.movieSize.ymin)/20; @@ -1310,6 +1310,9 @@ int main (int argc,char ** argv) actions = swf_ActionGet(tag); swf_DumpActions(actions, myprefix); } + else if(tag->id == ST_DOABC && action) { + swf_DissassembleABC(tag); + } else if(tag->id == ST_DOINITACTION && action) { ActionTAG*actions; swf_GetU16(tag); // id -- 1.7.10.4