1 #include <mingpp.h>
2 #include <cstdlib>
3
main()4 int main()
5 {
6 try {
7 SWFMovie *m = new SWFMovie(8);
8 m->setBackground(0,0,0);
9 m->setDimension(500,450);
10 SWFGradient *g = new SWFGradient();
11
12 g->addEntry(0.0, 255, 255, 255, 255);
13 g->addEntry(1.0, 255, 255, 255, 0);
14
15 SWFFillStyle *fillstyle = SWFFillStyle::GradientFillStyle(g, SWFFILL_RADIAL_GRADIENT);
16 SWFShape *shape = new SWFShape();
17 shape->setRightFillStyle(fillstyle);
18
19 shape->drawCircle(55);
20
21 SWFDisplayItem *i = m->add(shape);
22 i->moveTo(100,100);
23 m->save("test07.swf");
24 }
25 catch (SWFException &e)
26 {
27 std::cerr << "SWFException: " << e.what() << std::endl << std::endl;
28 return EXIT_FAILURE;
29 }
30 return 0;
31 }
32