       mic.addEventListener(StatusEvent.STATUS, onMicStatus);
       mic.addEventListener(SampleDataEvent.SAMPLE_DATA, onMicSampleData);
 
-      this.urlParsed = url.parse(iurl);
+      this.urlParsed = url.parse(currentUrl);
 
       conn = new Socket();
       conn.addEventListener(Event.CONNECT, onConnected);

      }
    }

    public function start(iurl:String):void {
      if (conn.connected) {
        trace('already connected');
        return;
      }

      var mic:Microphone = Microphone.getMicrophone();
      mic.rate = 16;

    private var authState:String = 'none';
    private var authOpts:Object = {};

    private var savedUrl:String = null;

    public function AxisTransmit() {
    }

