Hi, Kramm, Thanks for the quick response. FileAttributes tag indicates Metadata tag which is useful for SEO. So why not keep it when writing if it exists.
I'm currently working on a small utility which reads one or more mtasc-generated swf, then injects them into a main swf generated by either Flash CS, mtasc or any other tools. I know swfcombine do very good job in this. but i just want a more neat way without too much modification to the original file. So in my program, I just try best to keep tags in the main swf, avoid striping any tags if i can. What i'm doing now is turn on no_extra_tags in the source to avoid stripping of FileAttributes & etc. It'll be much nicer to me if there can be a switch to turn the "auto tagging" on and off when calling swf_WriteSWF. Thanks. Regards, Du Song On Mon, Jan 12, 2009 at 10:59, Matthias Kramm <[email protected]> wrote: > On Mon, Jan 12, 2009 at 03:42:04AM +0800, Du Song <[email protected]> > wrote: >> according to Page 59 of >> http://www.adobe.com/devnet/swf/pdf/swf_file_format_spec_v10.pdf >> The FileAttributes tag defines characteristics of the SWF file. This >> tag is required for SWF 8 >> and later and must be the first tag in the SWF file. Additionally, the >> FileAttributes tag can >> optionally be included in all SWF file versions. >> >> but in rfxswf.c: >> int WriteExtraTags(SWF*swf, writer_t*writer) >> { >> ... >> if(swf->fileVersion >= 9) { > > For Flash 8, the FILEATTRIBUTES tag doesn't make much sense, > as its primary purpose is to switch to AS3, which is supported > since Flash 9. > Unless there's a particular benefit in adding this tag for > Flash 8 files, I'd rather leave it away, as it just wastes > file space. > >> ...//write FileAttributes and other tags. >> } >> ... >> } >> >> btw, there is a flag in rfxswf.c >> int no_extra_tags = 0; >> but no where to change it > > That's just for internal purposes. > > What are you working on, or trying to do? > > Greetings > > Matthias > > > > >
