1 #include <mingpp.h> 2 #include <cstdlib> 3 4 main()5int main() 6 { 7 SWFMovieClip *mc; 8 SWFMovie *m; 9 SWFAction *a; 10 11 try { 12 m = new SWFMovie(); 13 a = new SWFAction("trace('');"); 14 mc = new SWFMovieClip(); 15 16 mc->addInitAction(a); 17 m->addExport(mc, "test"); 18 19 m->save("test02.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