3 Replies Latest reply on Jul 8, 2009 5:52 PM by kRizzl0r

    Impossible to define "onPeerConnect" in a seperate class

    emphasized Level 1
      It isn't possible to define the function onPeerConnect in a custom class to use as a client of a NetStream instance.
      only thing that works atm is to define it as follows:

      var client:Object = new Object();
      client.onPeerConnect = function(nsCaller:NetStream):Boolean
      return true;

      _ns.client = client;
      anny thoughts?