=== modified file 'src/as3compile.c' --- src/as3compile.c 2009-05-22 22:58:24 +0000 +++ src/as3compile.c 2009-05-23 00:43:29 +0000 @@ -161,7 +161,7 @@ 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 flash.display.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,11 @@ tag = swf_InsertTag(tag, ST_SYMBOLCLASS); swf_SetU16(tag, 1); swf_SetU16(tag, 0); - swf_SetString(tag, as3_getglobalclass()); + /* user pass the name of the mainclass with + -M or--mainclass option, so we will use it. + If the mainclass name given is incorrect, + it will generate a runtime error */ + swf_SetString(tag, mainclass); } else { as3_warning("no global public MovieClip subclass"); }