// swf_WriteCGI(&swf);
- f = open("box.swf",O_RDWR|O_CREAT|O_TRUNC,0644);
+ f = open("box.swf",O_RDWR|O_CREAT|O_TRUNC|O_BINARY,0644);
if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n");
close(f);
t = swf_InsertTag(t,ST_SHOWFRAME);
t = swf_InsertTag(t,ST_END);
- f = open("buttontest.swf",O_WRONLY|O_CREAT, 0644);
+ f = open("buttontest.swf",O_WRONLY|O_CREAT|O_BINARY, 0644);
if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n");
close(f);
tag = swf_InsertTag(tag,ST_SHOWFRAME);
tag = swf_InsertTag(tag,ST_END);
- f = open("edittext.swf",O_WRONLY|O_CREAT|O_TRUNC, 0644);
+ f = open("edittext.swf",O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, 0644);
if(swf_WriteSWF(f,&swf)<0) fprintf(stderr,"WriteSWF() failed.\n");
close(f);
\r
// swf_WriteCGI(&swf);\r
\r
- f = open("glyphshape.swf",O_RDWR|O_CREAT|O_TRUNC,0644);\r
+ f = open("glyphshape.swf",O_RDWR|O_CREAT|O_TRUNC|O_BINARY,0644);\r
if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n");\r
close(f);\r
\r
// swf_WriteCGI(&swf);
- f = open("jpegtest.swf",O_WRONLY|O_CREAT, 0644);
+ f = open("jpegtest.swf",O_WRONLY|O_CREAT||O_BINARY, 0644);
if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n");
close(f);
// write movie to file
- f = open("shape1.swf",O_WRONLY|O_CREAT|O_TRUNC, 0644);
+ f = open("shape1.swf",O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, 0644);
if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n");
close(f);
tag = swf_InsertTag(tag, ST_END);
- f = open("sound.swf",O_WRONLY|O_CREAT|O_TRUNC, 0644);
+ f = open("sound.swf",O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, 0644);
if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n");
close(f);
// swf_WriteCGI(&swf);
- f = open("sprites.swf",O_RDWR|O_CREAT|O_TRUNC,0644);
+ f = open("sprites.swf",O_RDWR|O_CREAT|O_TRUNC|O_BINARY,0644);
if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n");
close(f);
// swf_WriteCGI(&swf);
- f = open("text.swf",O_RDWR|O_CREAT|O_TRUNC,0644);
+ f = open("text.swf",O_RDWR|O_CREAT|O_TRUNC|O_BINARY,0644);
if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n");
close(f);
// swf_WriteCGI(&swf);
- f = open("transtest.swf",O_RDWR|O_CREAT|O_TRUNC,0644);
+ f = open("transtest.swf",O_RDWR|O_CREAT|O_TRUNC|O_BINARY,0644);
if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n");
close(f);
// swf_WriteCGI(&swf);
- f = open("zlibtest.swf",O_RDWR|O_CREAT|O_TRUNC,0644);
+ f = open("zlibtest.swf",O_RDWR|O_CREAT|O_TRUNC|O_BINARY,0644);
if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n");
close(f);