Permalink
Browse files

small as3 fixes

  • Loading branch information...
1 parent fe0bf96 commit 2773d91e9b8459c9f51070d78419cba75ba32bef @matthiaskramm matthiaskramm committed Jun 1, 2009
Showing with 3 additions and 4 deletions.
  1. +1 −2 setup.py
  2. +2 −2 src/as3compile.c
View
3 setup.py
@@ -259,11 +259,10 @@ def load(self):
"lib/rfxswf.c", "lib/drawer.c", "lib/MD5.c", "lib/h.263/dct.c", "lib/h.263/h263tables.c",
"lib/h.263/swfvideo.c", "lib/action/assembler.c", "lib/action/compile.c",
"lib/action/lex.swf4.c", "lib/action/lex.swf5.c", "lib/action/libming.c",
-"lib/action/swf4compiler.tab.c",
+"lib/action/swf4compiler.tab.c", "lib/action/swf5compiler.tab.c", "lib/action/actioncompiler.c",
"lib/as3/abc.c", "lib/as3/code.c", "lib/as3/pool.c", "lib/as3/files.c", "lib/as3/opcodes.c",
"lib/as3/scripts.c", "lib/as3/common.c", "lib/as3/builtin.c", "lib/as3/compiler.c", "lib/as3/expr.c", "lib/as3/import.c",
"lib/as3/initcode.c", "lib/as3/parser.tab.c", "lib/as3/registry.c", "lib/as3/tokenizer.yy.c",
-"lib/action/swf5compiler.tab.c", "lib/action/actioncompiler.c",
]
libpdf_sources = [
"lib/pdf/GFXOutputDev.cc", "lib/pdf/InfoOutputDev.cc", "lib/pdf/BitmapOutputDev.cc",
View
4 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 <file> Include library file <file>. <file> can be an .abc or .swf file.\n");
printf("-I , --include <dir> Add additional include dir <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");
}

0 comments on commit 2773d91

Please sign in to comment.