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