X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Fmain.c;h=a4d0e4885551cf50d685faf62690a1b06ab9c5bc;hb=c63b2bf21dc1df9a736f0b4c08f6cba828cdab92;hp=2835556f78358f3cf4d8ed98b2880cd38f5b220f;hpb=8a7da6f65154bb96d47695cbcbf42684cccb0aad;p=swftools.git diff --git a/lib/as3/main.c b/lib/as3/main.c index 2835556..a4d0e48 100644 --- a/lib/as3/main.c +++ b/lib/as3/main.c @@ -64,7 +64,9 @@ int main(int argn, char*argv[]) } filename=argv[argn-1]; - //a3_debug = 1; //if bison was called with -t +#ifdef BISONDEBUG + a3_debug = 1; //if bison was called with -t +#endif as3_add_include_dir(getcwd(buf, 512)); @@ -124,7 +126,17 @@ int main(int argn, char*argv[]) swf.movieSize.xmin = swf.movieSize.ymin = 0; swf.movieSize.xmax = 20*20; swf.movieSize.ymax = 10*20; - TAG*tag = swf.firstTag = swf_InsertTag(0, ST_DOABC); + + + TAG*tag = swf.firstTag = swf_InsertTag(0, ST_SETBACKGROUNDCOLOR); + swf_SetU8(tag, 0xff); + swf_SetU8(tag, 0xff); + swf_SetU8(tag, 0xff); + + tag = as3_getassets(tag); + + tag = swf_InsertTag(tag, ST_DOABC); + if(!swf.firstTag && tag) swf.firstTag = tag; swf_WriteABC(tag, code); if(!mainclass)