1 #include <mingpp.h>
2 #include <cstdlib>
3 
4 
main()5 int main()
6 {
7 	try {
8 		SWFMovie *m = new SWFMovie(8);
9 		SWFShape *shape = new SWFShape();
10 
11 		shape->setLine2(40, 25, 0, 0, 128, SWF_LINESTYLE_FLAG_HINTING | SWF_LINESTYLE_JOIN_BEVEL | SWF_LINESTYLE_FLAG_ENDCAP_SQUARE, 0);
12 		shape->movePenTo(5, 5);
13 		shape->drawLineTo(50, 100);
14 		shape->drawLineTo(100, 100);
15 
16 		m->add(shape);
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