 		var result:* = em.method.apply(null, params);
 		var resultJson:String = json.stringify(result, _jsonReplacer);
 		
-		// work around bug where ExternalInterface does not escape backslash.
-		if (resultBackslashNeedsEscaping)
+		// work around flash player bug
+		if (backslashNeedsEscaping)
 			resultJson = resultJson.split('\\').join('\\\\');
 
 		return resultJson;

		if (!initialized)
			initialize();
		
		// backwards compatibility
		if (!json)
		{
			ExternalInterface.addCallback(methodInfo.name, host[methodInfo.name]);
			return;
		}
		
		var methodName:String = methodInfo.name;
		method = host[methodName];
		// find the number of required parameters
		paramCount = 0;
		while (paramCount < method.length && !methodInfo.parameters[paramCount].optional)

			
			// if there are no parameters, just run the code
			if (pNames.length == 0)
				return ExternalInterface.call(code);
			
			// call the function with the specified parameters
			pValues.unshift(code);
