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