             else
                 addChild(badge);
 
-            proxy_mode = (this.loaderInfo.parameters["proxy"] != null);
-
             fac_addr = get_param_addr("facilitator", DEFAULT_FACILITATOR_ADDR);
             if (!fac_addr) {
                 puts("Error: Facilitator spec must be in the form \"host:port\".");
                 return;
             }
 
-            if (proxy_mode)
+            if (this.loaderInfo.parameter["proxy"])
                 proxy_main();
             else
                 client_main();

            proxy_pair = new ProxyPair(this, rs, function ():void {
                /* Do nothing; already connected. */
            }, s_t, function ():void {
                s_t.connect(DEFAULT_TOR_CLIENT_ADDR.host, DEFAULT_TOR_CLIENT_ADDR.port);
            });
            proxy_pair.connect();
        }

            port: 9002
        };
        
        /* Local Tor client to use in case of RTMFP connection. */
        private const LOCAL_TOR_CLIENT_ADDR:Object = {
            host: "127.0.0.1",
            port: 9002
        };
