1 #include <mingpp.h> 2 #include <cstdlib> 3 4 main()5main(){ 6 try { 7 SWFMovie* m = new SWFMovie(); 8 9 m->setDimension(640.000000, 480.000000); 10 11 // SWF_SETBACKGROUNDCOLOR 12 m->setBackground(0xff, 0xff, 0xff); 13 14 // SWF_SHOWFRAME 15 m->nextFrame(); // end of frame 1 16 17 // SWF_END 18 19 m->save("test01.swf"); 20 } 21 catch(SWFException &e) 22 { 23 std::cerr << "SWFException: " << e.what() << std::endl << std::endl; 24 return EXIT_FAILURE; 25 } 26 return 0; 27 28 } 29