writeTag(new MetadataTag(metadata));
// SetBackgroundColor tag
final RGB backgroundColor = swf.getBackgroundColor();
if (backgroundColor != null)
writeTag(new SetBackgroundColorTag(backgroundColor));
// EnableDebugger2 tag
if (enableDebug)
writeTag(new EnableDebugger2Tag("NO-PASSWORD"));