1 #include <mingpp.h>
2 #include <cstdlib>
3 
4 
main()5 int main()
6 {
7 	SWFMovie *m;
8 	SWFAction *a;
9 	SWFInitAction *init;
10 
11 	try{
12 		m = new SWFMovie();
13 		a = new SWFAction("trace('');");
14 		init = new SWFInitAction(a, 99);
15 
16 		m->add(init);
17 
18 		m->save("test02.swf");
19 	}
20 	catch(SWFException &e)
21 	{
22 		std::cerr << "SWFException: " << e.what() << std::endl << std::endl;
23 		return EXIT_FAILURE;
24 	}
25 	return 0;
26 }
27