1 #include <libming.h>
2 #include <stdlib.h>
3 
main()4 int main()
5 {
6 	SWFMovie m = newSWFMovie();
7 	SWFTextField text = newSWFTextField();
8 
9 	SWFBrowserFont font = newSWFBrowserFont("_sans");
10 	if(font == NULL)
11 		return EXIT_FAILURE;
12 
13 	SWFTextField_setFont(text, (SWFBlock)font);
14 	SWFTextField_setColor(text, 0, 0, 0, 0xff);
15 	SWFTextField_setHeight(text, 20);
16 	SWFTextField_addString(text, "abc");
17 
18 	SWFMovie_add(m, text);
19 	SWFMovie_nextFrame(m);
20 	SWFMovie_save(m, "test01.swf");
21 
22 	return 0;
23 }
24 
25