X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fswfdump.c;h=6256e49fcbd48daa54746a8f25c368d3e427c94b;hb=c2911e50c1e98ccf8ea6224fd9466dce13ca6d8e;hp=0d4babcb6db58500b609747409900a81c95b9c14;hpb=ee7c0f96f3bc1eca68dd4c17dfb0c4b3a404fce4;p=swftools.git diff --git a/src/swfdump.c b/src/swfdump.c index 0d4babc..6256e49 100644 --- a/src/swfdump.c +++ b/src/swfdump.c @@ -676,9 +676,9 @@ void hexdumpTag(TAG*tag, char* prefix) ascii[t&15] = printable(tag->data[t]); if((t && ((t&15)==15)) || (t==tag->len-1)) { - int s,p=((t-1)&15)+1; + int s,p=((t)&15)+1; ascii[p] = 0; - for(s=p;s<16;s++) { + for(s=p-1;s<16;s++) { printf(" "); } if(t==tag->len-1) @@ -1073,6 +1073,12 @@ int main (int argc,char ** argv) actions = swf_ActionGet(tag); swf_DumpActions(actions, myprefix); } + else if(tag->id == ST_DOINITACTION && action) { + ActionTAG*actions; + swf_GetU16(tag); // id + actions = swf_ActionGet(tag); + swf_DumpActions(actions, myprefix); + } else if(tag->id == ST_DEFINEBUTTON && action) { dumpButtonActions(tag, myprefix); }