1 #include <libming.h>
2 
main()3 int main()
4 {
5 	SWFMovie m = newSWFMovieWithVersion(8);
6 	SWFMovie_setBackground(m, 0, 0, 0);
7 	SWFMovie_setDimension(m, 500, 450);
8 
9 
10 	SWFGradient g = newSWFGradient();
11 	SWFGradient_addEntry(g, 0.0, 255, 255, 255, 255);
12 	SWFGradient_addEntry(g, 1.0, 255, 255, 255, 0);
13 	SWFFillStyle fill = newSWFGradientFillStyle(g, SWFFILL_RADIAL_GRADIENT);
14 	SWFShape shape = newSWFShape();
15 	SWFShape_setRightFillStyle(shape, fill);
16 	SWFShape_drawCircle(shape, 55);
17 
18 	SWFDisplayItem i = SWFMovie_add(m, shape);
19 	SWFDisplayItem_moveTo(i, 100, 100);
20 	SWFMovie_save(m, "test07.swf");
21 	return 0;
22 }
23