7 int main (int argc,char ** argv)
13 S32 width=300,height = 300;
17 memset(&swf,0x00,sizeof(SWF));
20 swf.FrameRate = 0x1900;
21 swf.MovieSize.xmax = 20*width;
22 swf.MovieSize.ymax = 20*height;
24 swf.FirstTag = InsertTag(NULL,ST_SETBACKGROUNDCOLOR);
32 t = InsertTag(t,ST_DEFINESHAPE);
36 j = ShapeAddLineStyle(s,40,&rgb);
37 rgb.r = 0; rgb.b = 0xff;
38 ShapeAddLineStyle(s,40,&rgb);
50 ShapeCountBits(s,NULL,NULL);
53 ShapeSetAll(t,s,0,0,j,0,0);
54 // ShapeSetCurve(t,s,4*width,0,0,4*height);
55 ShapeSetLine(t,s,4*width,4*height);
56 ShapeSetStyle(t,s,2,0,0);
58 ShapeSetCircle(t,s,4*width,4*height,i*width/2,i*height/2);
61 t = InsertTag(t,ST_PLACEOBJECT2);
63 ObjectPlace(t,1,1,NULL,NULL,NULL);
65 t = InsertTag(t,ST_SHOWFRAME);
67 t = InsertTag(t,ST_END);
72 f = open("shape1.swf",O_WRONLY|O_CREAT, 0777);
74 if FAILED(WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n");
80 system("start ..\\shape1.swf");