1 #include <libming.h>
2 
3 
main()4 int main()
5 {
6 	int i;
7 	SWFMovie m = newSWFMovieWithVersion(8);
8 
9 	SWFMorph morph = newSWFMorphShape();
10 
11 	SWFShape shape1 = SWFMorph_getShape1(morph);
12 	SWFShape shape2 = SWFMorph_getShape2(morph);
13 
14         SWFShape_setLine(shape1, 4, 25, 0, 0, 128);
15 	SWFShape_movePenTo(shape1, 5, 5);
16         SWFShape_drawLineTo(shape1, 50, 30);
17 
18         SWFShape_setLine(shape2, 4, 25, 0, 0, 128);
19 	SWFShape_movePenTo(shape2, 5, 5);
20         SWFShape_drawLineTo(shape2, 50, 130);
21 
22 	SWFDisplayItem item = SWFMovie_add(m, (SWFBlock)morph);
23 	for(i = 0; i < 10; i++)
24 	{
25 		SWFDisplayItem_setRatio(item, 0.1 * i);
26 		SWFMovie_nextFrame(m);
27 	}
28 
29 	SWFMovie_save(m,"test01.swf");
30 
31 	return 0;
32 }
33