* added optimizing
authorkramm <kramm>
Thu, 28 Oct 2004 16:31:16 +0000 (16:31 +0000)
committerkramm <kramm>
Thu, 28 Oct 2004 16:31:16 +0000 (16:31 +0000)
* fixed framelabel for frame 0

src/swfc.c

index 50e5a03..e51848f 100644 (file)
@@ -642,6 +642,8 @@ static void s_endSWF()
     tag = swf_InsertTag(tag, ST_END);
 
     swf_OptimizeTagOrder(swf);
+    
+    swf_Optimize(swf);
 
     if(!(swf->movieSize.xmax-swf->movieSize.xmin) || !(swf->movieSize.ymax-swf->movieSize.ymin)) {
        swf->movieSize = currentrect; /* "autocrop" */
@@ -705,6 +707,10 @@ void s_frame(int nr, int cut, char*name)
            swf_SetString(tag, name);
        }
     }
+    if(nr == 0 && currentframe == 0 && name) {
+        tag = swf_InsertTag(tag, ST_FRAMELABEL);
+        swf_SetString(tag, name);
+    }
 
     if(cut) {
        if(now == tag) {