1 #include <mingpp.h>
2 #include <cstdlib>
3 
main()4 int main()
5 {
6 	try {
7 		SWFMovie *m = new SWFMovie(8);
8 		SWFShape *shape1 = new SWFShape();
9 		SWFShape *shape2 = new SWFShape();
10 		shape2->useVersion(SWF_SHAPE4);
11 		m->add(shape1);
12 		m->add(shape2);
13 		m->save("test01.swf");
14 	}
15 	catch(SWFException &e)
16 	{
17 		std::cerr << "SWFException: " << e.what() << std::endl << std::endl;
18 		return EXIT_FAILURE;
19 	}
20 	return 0;
21 }
22