1 #include <ming.h>
2 
3 
main()4 int main()
5 {
6 	int i;
7 	SWFMovie m = newSWFMovieWithVersion(8);
8 
9 	SWFShape shape1 = newSWFShape();
10 	SWFShape shape2 = newSWFShape();
11 
12 	SWFShape_setLine2(shape1, 1, 25, 0, 0, 128, SWF_LINESTYLE_FLAG_HINTING, 0);
13 	SWFShape_movePenTo(shape1, 5, 5);
14         SWFShape_drawLineTo(shape1, 50, 30);
15 
16 	SWFShape_setLine2(shape2, 1, 25, 100, 100, 255, SWF_LINESTYLE_FLAG_HINTING, 0);
17 	SWFShape_movePenTo(shape2, 5, 5);
18         SWFShape_drawLineTo(shape2, 50, 130);
19 
20 	SWFDisplayItem item = SWFMovie_add(m, shape1);
21 	SWFMovie_nextFrame(m);
22 	SWFMovie_replace(m, item, shape2);
23 	SWFMovie_nextFrame(m);
24 
25 	SWFMovie_save(m,"test01.swf");
26 
27 	return 0;
28 }
29