0.9.0:
* pdf2swf: Added support for Flash 8 Flashtype
- * src/swfdump: now dumps a few more Flash 8 tags (like DEFINESHAPE4)
- * pdf2swf: Common fonts are now linked directly into the executable (removes need for InstallPath in registry)
- * pdf2swf: New optimizing levels -O1 -O2
- * pdf2swf: Added direct gradient conversion
- * setup.py: Added Python setup script
+ * pdf2swf: numerous bugfixes
+ * pdf2swf: support for gradients
+ * pdf2swf: support for different optimization levels (-O1, -O2, --flatten)
+ * src/swfdump: Flash 8/9 support
+ * pdf2swf: Common fonts are now linked directly into the executable
+ * setup.py: added Python setup script
* lib/python/gfx: New python module for accessing pdf2swf functionality
- * lib/modules/swfabc.c: New module for the Flash9 AVM2 Actionscript
+ * as3compile: New tool, for compiling ActionScript 3.0
+ * swfc: added AS3.0 support
[ --with-poppler use poppler instead of internal xpdf (currently broken)], [USE_POPPLER=true])
PACKAGE=swftools
-VERSION=2008-09-22-1956
+VERSION=0.9.0
# ------------------------------------------------------------------
cc = ccompiler.new_compiler()
+# leave it to gcc to detect c/c++ files. we'll be linking against -lstdc++
+# later on to ensure we do have all the c++ libraries, so we don't need to
+# compile *everything* as c++ just because of the few .cc files.
+cc.language_map[".cc"] = "c"
+
import os
import sys
import stat
+import re
DATADIR = "/usr/share/swftools/"
return 1
elif name.startswith("INTERNAL"):
return 1
+ elif name == "PACKAGE":
+ return "\"swftools\""
+ elif name == "VERSION":
+ fi = open("configure.in", "rb")
+ for line in fi.readlines():
+ if line.startswith("VERSION="):
+ return '"'+line[8:].strip()+'"'
+ return "unknown"
elif "POPPLER" in name:
return None
elif name.startswith("HAVE_") and name.endswith("_H"):
\fB\-r\fR, \fB\-\-rate\fR
Set target SWF framerate
.TP
+\fB\-M\fR, \fB\-\-mainclass\fR
+ Set the name of the main class (extending flash.display.MovieClip)
+.TP
\fB\-l\fR, \fB\-\-library\fR \fIfile\fR
Include library file \fIfile\fR. <file> can be an .abc or .swf file.
.TP
{"X", "width"},
{"Y", "height"},
{"r", "rate"},
+{"M", "mainclass"},
{"l", "library"},
{"I", "include"},
{"N", "local-with-network"},
return 0;
}
else if(!strcmp(name, "D")) {
+ if(!strstr(val, "::")) {
+ fprintf(stderr, "Error: compile definition must contain \"::\"\n");
+ exit(1);
+ }
as3_set_define(val);
return 1;
}
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("-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");
//as3_warning("output name not given, writing to %s", outputname);
}
- as3_parse_file(filename);
+ if(!strcmp(filename, ".")) {
+ as3_parse_directory(".");
+ } else {
+ as3_parse_file(filename);
+ }
+
void*code = as3_getcode();
SWF swf;
Set target SWF width
-r, --rate
Set target SWF framerate
+-M, --mainclass
+ Set the name of the main class (extending flash.display.MovieClip)
-l, --library <file>
Include library file <file>. <file> can be an .abc or .swf file.
-I, --include <dir>