X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=src%2Fas3compile.c;h=9ee4569edc28092ba7498a6114d64a15f0260089;hp=43b646f844352a1692e5a585c5549d4c9c1fbc20;hb=c63b2bf21dc1df9a736f0b4c08f6cba828cdab92;hpb=aab59bee1b79b487e2a15ec57a80a857ffd623a5 diff --git a/src/as3compile.c b/src/as3compile.c index 43b646f..9ee4569 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"); @@ -213,7 +213,6 @@ int main (int argc,char ** argv) } else { as3_add_include_dir(currentdir); } - registry_init(); int t; processargs(argc, argv); @@ -253,7 +252,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"); }