6 Replies Latest reply on Aug 25, 2010 8:31 AM by schreiter

    NetConnection NetStatusEvent

    schreiter

      Hi,

       

      I'm trying to receive NetStatusEvents from NetStream and NetConnection.

      Extending the NetLoader did it for the NetStream Object but i cant get it to work for the NetConnection.

       

      My first attempt was to simply and the event listener my extended NetLoader class and use the given

      NetConnection in createNetStream. That didnt work (or i made a mistake )

       

      After that i tried to add the listener in processFinishLoading to loadTrait.connection, that didnt work either

      and isnt really what i'm trying to achieve. I need listner for "NetConnection.Connect.Success", ".Rejected" and ".Failed".

      Adding the listener in processFinishLoading doesnt make sense because NetConnection is already connected to the server.

       

      Anyone an idea?

       

      greets

      Vincent