1 #include <mingpp.h>
2 #include <cstdlib>
3 
4 
5 main(){
6 try {
7 SWFMovie* m = new SWFMovie(6);
8 
9 
10 // SWF_SETBACKGROUNDCOLOR
11 m->setBackground(0xff, 0xff, 0xff);
12 
13 // SWF_SHOWFRAME
14 m->nextFrame(); // end of frame 1
15 
16 // SWF_END
17 
18 m->save("test04.swf");
19 }
20 catch(SWFException &e)
21 {
22 std::cerr << "SWFException: " << e.what() << std::endl << std::endl;
23 return EXIT_FAILURE;
24 }
25 return 0;
26 }
27