1 #include <mingpp.h>
2 #include <cstdlib>
3 
main()4 int main()
5 {
6 	try {
7 		SWFMovie *m = new SWFMovie(8);
8 		SWFBitmap *bmp = new SWFBitmap(MEDIADIR "/image01.jpeg");
9 
10 		m->addExport(bmp, "BitmapExport");
11 		m->writeExports();
12 
13 		m->save("test02.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 }
23