 	private static var initialized:Boolean = false;
 	
 	/**
-	 * If this is true, then ExternalInterface.call() does not properly quote backslashes in the code.
-	 */
-	private static var codeBackslashNeedsEscaping:Boolean = false;
-	
-	/**
-	 * If this is true, backslashes are not properly escaped in results from external ActionScript invocations.
-	 */
-	private static var resultBackslashNeedsEscaping:Boolean = true;
+	 * If this is true, backslashes need to be escaped when returning a String to JavaScript.
+	 */
+	private static var backslashNeedsEscaping:Boolean = true;
 	
 	/**
 	 * A pointer to JSON.

		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);
