X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fswfc.c;h=d37995f6a053a56c170e3616e3b7625589f918a7;hb=d0884f3fcd06d63b52834d48076a100d0a4e9557;hp=3901cd0fdc995cfbe247fbf85450ac5e5ad449b4;hpb=9ad02f173cca3f7c0d51f641d0d668219a561e7d;p=swftools.git diff --git a/src/swfc.c b/src/swfc.c index 3901cd0..d37995f 100644 --- a/src/swfc.c +++ b/src/swfc.c @@ -498,11 +498,11 @@ void s_buttonput(char*character, char*as, parameters_t p) while(1) { if(*s==',' || *s==0) { - if(!strncmp(o,"idle",s-o)) mybutton.records[0]=r; - else if(!strncmp(o,"shape",s-o)) mybutton.records[0]=r; - else if(!strncmp(o,"hover",s-o)) mybutton.records[1]=r; - else if(!strncmp(o,"pressed",s-o)) mybutton.records[2]=r; - else if(!strncmp(o,"area",s-o)) mybutton.records[3]=r; + if(!strncmp(o,"idle",s-o)) {mybutton.records[0]=r;o=s+1;} + else if(!strncmp(o,"shape",s-o)) {mybutton.records[0]=r;o=s+1;} + else if(!strncmp(o,"hover",s-o)) {mybutton.records[1]=r;o=s+1;} + else if(!strncmp(o,"pressed",s-o)) {mybutton.records[2]=r;o=s+1;} + else if(!strncmp(o,"area",s-o)) {mybutton.records[3]=r;o=s+1;} else syntaxerror("unknown \"as\" argument: \"%s\"", strdup_n(o,s-o)); } if(!*s) @@ -692,13 +692,17 @@ int s_getframe() return currentframe; } -void s_frame(int nr, int cut) +void s_frame(int nr, int cut, char*name) { int t; TAG*now = tag; for(t=currentframe;t%d (is:%s)", s_getframe(), framestr); } - s_frame(frame, cut); + s_frame(frame, cut, name); return 0; } static int c_primitive(map_t*args) @@ -2481,7 +2486,7 @@ static struct { char*arguments; } arguments[] = {{"flash", c_flash, "bbox=autocrop background=black version=5 fps=50 name=!default! @compress=default"}, - {"frame", c_frame, "n=1 @cut=no"}, + {"frame", c_frame, "n=1 name= @cut=no"}, // "import" type stuff {"swf", c_swf, "name filename"}, {"shape", c_swf, "name filename"},