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