var doc = fl.openDocument ("file:///d|/test.fla"); doc.exportSWF ("file:///d|/test.swf", true); fl.quit (false);