I have discovered a peculiar bug. When creating a NetGroup the NetStatusEvent's thrown differ based on where the NetGroup variable is defined:
A) When the variable is declared locally, like: var netGroup:NetGroup = new NetGroup(connection, groupspecifier), the event listener on the NetConnection receives two events:
B) When however declaring the NetGroup as a global variable in the class and assigning the new NetGroup to it in the function (following the receipt of the NetConnection.Connect.Success) I only receive the NetGroup.Connect.Success (as I would expect).
Can you reproduce this behavior and comfirm whether this is indeed a bug?
sounds like the garbage collector is collecting the NetGroup.
the order of events is weird, but i suspect the NetGroup is unavailable at that point.
Thanks, this was precisely what was causing the unexpected behaviour. That is one agressive garbage collector