X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fswfcombine.c;h=44c251b198aed189a4c84008b9bdbcd1eebd271f;hb=85077af0f0ee7acb9389b2a5ca89a8f499d2f67b;hp=a1437c1953c405f6cabf912bcabfdf24c2f3bdaa;hpb=59c093ee0efccf7ea0045b62e4a927e0e0fd9a7c;p=swftools.git diff --git a/src/swfcombine.c b/src/swfcombine.c index a1437c1..44c251b 100644 --- a/src/swfcombine.c +++ b/src/swfcombine.c @@ -285,7 +285,7 @@ void args_callback_usage(char *name) printf("-f , --frame The following identifier is a frame or framelabel, not an id or objectname\n"); printf("-x , --movex x Adjust position of slave by pixels\n"); printf("-y , --movey y Adjust position of slave by pixels\n"); - printf("-s , --scale Adjust size of slave by percent (e.g. 100%% = original size)\n"); + printf("-s , --scale Adjust size of slave by percent (e.g. 100% = original size)\n"); printf("-r , --rate Set movie framerate to (frames/sec)\n"); printf("-X , --width Force movie bbox width to (default: use master width (not with -t))\n"); printf("-Y , --height Force movie bbox height to (default: use master height (not with -t))\n"); @@ -1022,8 +1022,12 @@ void normalcombine(SWF*master, char*slave_name, SWF*slave, SWF*newswf) if (spriteid<0 && !config.isframe) { if(slavename) { - if(strcmp(slavename,"!!dummy!!")) + if(strcmp(slavename,"!!dummy!!")) { msg(" Didn't find anything named %s in file. No substitutions will occur.", slavename); + if(!strcmp(slavename, "swf")) { + msg(" (If you were trying to combine rfxview with a document, try replacing 'swf' with 'viewport'."); + } + } } else msg(" Didn't find id %d in file. No substitutions will occur.", slaveid); @@ -1062,7 +1066,7 @@ void normalcombine(SWF*master, char*slave_name, SWF*slave, SWF*newswf) FLAGS_WRITEDEFINES|FLAGS_WRITENONDEFINES| FLAGS_WRITESPRITE ); } - swf_DeleteTag(newswf, tag); + swf_DeleteTag(newswf, newswf->firstTag); } void combine(SWF*master, char*slave_name, SWF*slave, SWF*newswf)