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