 		}
 		
 		/**
-		 * Handles a JavaScript request.
-		 * @param methodName The name of the method to call.
-		 * @param paramsJson An Array of parameters to pass to the method, stringified with JSON.
-		 * @return The result of calling the method, stringified with JSON.
-		 */
-		private static function handleJsonCall(methodName:String, paramsJson:String):String
-		{
-			var method:Function = registeredMethods[methodName] as Function;
-			if (method == null)
-				throw new Error("No such method: " + methodName);
-			
-			var params:Array = json.parse(paramsJson, _jsonReviver);
-			var result:* = method.apply(null, params);
-			var resultJson:String = json.stringify(result, _jsonReplacer);
-			
-			// work around flash player bug
-			if (backslashNeedsEscaping)
-				resultJson = resultJson.split('\\').join('\\\\');
-	
-			return resultJson;
-		}
-		
-		/**
 		 * Exposes a method to JavaScript.
 		 * @param methodName The name to be used in JavaScript.
 		 * @param method The method.

		 */
		public static function registerMethod(methodName:String, method:Function, requiredParamCount:int = -1):void
		{
			// backwards compatibility
			if (!json)
			{

		private static const UNDEFINED:String = undefined + JSON_SUFFIX;
		private static const INFINITY:String = Infinity + JSON_SUFFIX;
		private static const NEGATIVE_INFINITY:String = -Infinity + JSON_SUFFIX;
		
		/**
		 * Initializes json variable and required external JSON interface.
		 */
		private static function initialize():void
		{
			// one-time initialization attempt
