void textcallback(void*self, int*glyphs, int*ypos, int nr, int fontid, int fontsize, int startx, int starty, RGBA*color)
{
int font=-1,t;
- printf(" <%2d glyphs in font %2d, color #%02x%02x%02x%02x> ",nr, fontid, color->r, color->g, color->b, color->a);
+ printf(" <%2d glyphs in font %2d size %d, color #%02x%02x%02x%02x> ",nr, fontid, fontsize, color->r, color->g, color->b, color->a);
for(t=0;t<fontnum;t++)
{
if(fonts[t]->id == fontid) {
#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;
else
printf("\n");
}
+ else if(tag->id == ST_DEFINESCALINGGRID) {
+ U16 id = swf_GetU16(tag);
+ SRECT r;
+ swf_GetRect(tag, &r);
+ printf(" (%.2f,%.2f)-(%.2f,%.2f)\n", r.xmin/20.0, r.ymin/20.0, r.xmax/20.0, r.ymax/20.0);
+ }
else if(tag->id == ST_PLACEOBJECT2 || tag->id == ST_PLACEOBJECT3) {
}
else if(tag->id == ST_NAMECHARACTER || tag->id==ST_DEFINEFONTNAME) {
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