X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=src%2Fas3compile.c;h=98ac30f6ddf325fd7a2e1704c4aeb09744fe16fe;hp=43b646f844352a1692e5a585c5549d4c9c1fbc20;hb=2773d91e9b8459c9f51070d78419cba75ba32bef;hpb=fe0bf96d27b7af11538533b4df9eca5cbc96eedf diff --git a/src/as3compile.c b/src/as3compile.c index 43b646f..98ac30f 100644 --- a/src/as3compile.c +++ b/src/as3compile.c @@ -161,7 +161,7 @@ void args_callback_usage(char *name) printf("-X , --width Set target SWF width\n"); printf("-Y , --height Set target SWF width\n"); printf("-r , --rate Set target SWF framerate\n"); - printf("-M , --mainclass Set the name of the main class (extending flash.display.MovieClip)\n"); + printf("-M , --mainclass Set the name of the main class (extending flash.display.MovieClip or .Sprite)\n"); printf("-l , --library Include library file . can be an .abc or .swf file.\n"); printf("-I , --include Add additional include dir .\n"); printf("-N , --local-with-network Make output file \"local with networking\"\n"); @@ -253,7 +253,7 @@ int main (int argc,char ** argv) tag = swf_InsertTag(tag, ST_SYMBOLCLASS); swf_SetU16(tag, 1); swf_SetU16(tag, 0); - swf_SetString(tag, as3_getglobalclass()); + swf_SetString(tag, mainclass); } else { as3_warning("no global public MovieClip subclass"); }