3 Replies Latest reply on Mar 14, 2011 10:37 PM by Michael Thornburgh

    Multiple NetGroups: How to provide callback for each NetGroup?

    Guesswhooo-2dCJV2

      I'm trying to setup multiple groups and i need to identify which group have triggered "NetGroup.Connect.Success" event.

       

      I'm trying to provide custom callback like that:

       

      var callback = function(info){etc...}

       

      addEventListener(NetStatusEvent.NET_STATUS,function(event:NetStatusEvent):void{

       

      switch(event.info.code){

      case "NetGroup.Connect.Success":

           callback(event.info);

           break;

       

      But instead NetConnection callback is called on NetGroup.Connect.Success