if (backgroundColor != null)
writeTag(new SetBackgroundColorTag(backgroundColor));
// EnableDebugger2 tag
if (enableDebug)
writeTag(new EnableDebugger2Tag("NO-PASSWORD"));
// ProductInfo tag for Flex compatibility
ProductInfoTag productInfo = swf.getProductInfo();
if (productInfo != null)
writeTag(productInfo);