1 #include <libming.h>
2
main()3 int main()
4 {
5 SWFMovie m = newSWFMovieWithVersion(8);
6
7 SWFFillStyle fill = newSWFSolidFillStyle(255, 128, 0, 255);
8 SWFShape shape = newSWFShape();
9 SWFShape_setRightFillStyle(shape, fill);
10
11 SWFShape_setLine(shape, 1, 0,0,0,255);
12 SWFShape_drawLine(shape, 100, 0);
13 SWFShape_drawLine(shape, 0, 100);
14 SWFShape_drawLine(shape, -100, 0);
15 SWFShape_drawLine(shape, 0, -100);
16
17 SWFMovie_add(m, (SWFBlock)shape);
18 SWFMovie_save(m, "test01.swf");
19 return 0;
20
21 }
22