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