refactored relocation
[swftools.git] / lib / as3 / main.c
index 85b36a6..a4d0e48 100644 (file)
@@ -126,7 +126,17 @@ int main(int argn, char*argv[])
     swf.movieSize.xmin = swf.movieSize.ymin = 0;
     swf.movieSize.xmax = 20*20;
     swf.movieSize.ymax = 10*20;
-    TAG*tag = swf.firstTag = swf_InsertTag(0, ST_DOABC);
+
+
+    TAG*tag = swf.firstTag = swf_InsertTag(0, ST_SETBACKGROUNDCOLOR);
+    swf_SetU8(tag, 0xff);
+    swf_SetU8(tag, 0xff);
+    swf_SetU8(tag, 0xff);
+       
+    tag = as3_getassets(tag);
+
+    tag = swf_InsertTag(tag, ST_DOABC);
+    if(!swf.firstTag && tag) swf.firstTag = tag;
     swf_WriteABC(tag, code);
 
     if(!mainclass)