def __createFlashVars(self, config):
        # Begin Config
        config_string = 'config={'

        # PlayerId
        config_string += '"playerId":"%s",' % self.movieName

        # Plugins
        if config.plugins:
            config_string += '"plugins":{'
            plugins = config.plugins
            controls = False
            for i in range(len(plugins)):
                plugin = plugins[i]
                if plugin.name == 'controls':
                    controls = True
                if i > 0:
                    config_string += ','
                config_string += '"%s":' % plugin.name
                config_string += self.__getObjectAsString(plugin)
            if not config.controls and not controls:
                config_string += ',"controls":null'
            config_string += '},'


        # Common Clip
        config_string += '"clip":'
        if config.common_clip:
            config_string += self.__getObjectAsString(config.common_clip)
            config_string += ','
        else:
            config_string += '{},'

        # Playlist
        config_string += '"playlist":['
        if config.playlist:
            i = 0
            for clip in config.playlist:
                i+=1
                config_string += self.__getObjectAsString(clip)
                if not i == len(config.playlist):
                    config_string += ','
        else:
            config_string += '{}'
        config_string += ']'

        # Debug
        if config.debug:
            config_string += ',"debug":true,"log":{"level":"%s","filter":"%s"}' % (config.logLevel, config.logFilter)

        # End Config
        config_string += '}'
        config_string = config_string.replace('%', 'pct')
        config_string = config_string.replace('&', '%26')
        config_string = config_string.replace('"', '&quot;')
        #config_string = config_string.replace('<', '&lt;')
        #config_string = config_string.replace('>', '&gt;')
        config_string = config_string.replace('\'', '\\\'')
        #log.debug(config_string)
        return config_string
This function will write the zone's zone file to the the staging area
dataset/ETHPy150Open pyjs/pyjs/pyjswaddons/FlowPlayer.py/Player.__createFlashVars--crossover with--dataset/ETHPy150Open mozilla/inventory/mozdns/mozbind/builder.py/DNSBuilder.build_zone