1 #include <mingpp.h>
2 #include <cstdlib>
3 
main()4 int main()
5 {
6 	try {
7 		SWFMovie *m = new SWFMovie(9);
8 		SWFText *text = new SWFText(1);
9 
10 		SWFFont *font = new SWFFont(MEDIADIR "/font01.fdb");
11 		m->assignSymbol(text, "mytext");
12 		text->setFont( font);
13 		text->setColor( 0, 0, 0, 0xff);
14 		text->setHeight( 10);
15 		text->moveTo(10,100);
16 		text->addString( "The quick brown fox jumps over the lazy dog. 1234567890", NULL);
17 		m->add(text);
18 		m->nextFrame();
19 		m->save("test01.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 
29