1 #include <mingpp.h> 2 #include <cstdlib> 3 4 main()5int main() 6 { 7 int i; 8 try { 9 SWFMovie *m = new SWFMovie(8); 10 11 SWFShape *shape1 = new SWFShape(); 12 13 shape1->setLine2(1, 25, 0, 0, 128, SWF_LINESTYLE_FLAG_HINTING, 0); 14 shape1->movePenTo(5, 5); 15 shape1->drawLineTo(50, 30); 16 17 SWFDisplayItem *item = m->add(shape1); 18 m->nextFrame(); 19 m->replace(item, shape1); 20 m->nextFrame(); 21 22 m->save("test02.swf"); 23 } 24 catch(SWFException &e) 25 { 26 std::cerr << "SWFException: " << e.what() << std::endl << std::endl; 27 return EXIT_FAILURE; 28 } 29 return 0; 30 } 31