question: private static String codegenRSLRootClass ( String base , String rootClassName ) { String lineSep = System . getProperty ( "line.separator" ) ; String [ ] codePieces = new String [ ] { "package" , lineSep , "{" , lineSep , lineSep , "import flash.display.Sprite;" , lineSep , "import flash.system.Security;" , lineSep , lineSep , "/**" , lineSep , " *  @private" , lineSep , " */" , lineSep , "[ExcludeClass]" , lineSep , "public class " , rootClassName , lineSep , "    extends " , base , lineSep , "{" , lineSep , "    public function " , rootClassName , "()" , lineSep , "    {" , lineSep , "        super();" , lineSep , "    }" , lineSep , lineSep , "}" , lineSep , lineSep , "}" , lineSep } ; return StringJoiner . join ( codePieces , null ) ; }
target:  Generate a root class for an RSL with wrapper calls to Security.allowDomain() and Security.allowInsecureDomain(). The purpose is to allow callers to trust the RSL SWFs in the same way they can trust an application swf.