1 #include <mingpp.h>
2 #include <cstdlib>
3
main()4 int main()
5 {
6 try {
7 SWFMovie *m = new SWFMovie(8);
8
9 SWFFillStyle *fill = SWFFillStyle::SolidFillStyle(255, 128, 0, 255);
10 SWFShape *shape = new SWFShape();
11 shape->setRightFillStyle(fill);
12
13 shape->setLine(1, 0,0,0,255);
14 shape->drawLine(100, 0);
15 shape->drawLine(0, 100);
16 shape->drawLine(-100, 0);
17 shape->drawLine(0, -100);
18
19 m->add(shape);
20 m->save("test01.swf");
21 }
22 catch (SWFException &e)
23 {
24 std::cerr << "SWFException: " << e.what() << std::endl << std::endl;
25 return EXIT_FAILURE;
26 }
27 return 0;
28
29 }
30