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