1 #include <mingpp.h>
2 #include <cstdlib>
3 
4 int main()
5 {
6 	try {
7 		SWFMovie *m = new SWFMovie();
8 		SWFTextField *text = new SWFTextField();
9 
10 		SWFFont *font = new SWFFont(MEDIADIR "/test.ttf");
11 
12 		text->setFont(font);
13 		text->setColor( 0, 0, 0, 0xff);
14 		text->setHeight( 20);
15 		m->add(text);
16 		m->nextFrame();
17 		m->save("test02.swf");
18 	}
19 	catch(SWFException &e)
20 	{
21 		std::cerr << "SWFException: " << e.what() << std::endl << std::endl;
22 		return EXIT_FAILURE;
23 	}
24 	return 0;
25 }
26 
27