You're removing your listener in your NetStatusEvent
handler. You should keep it until the connection is closed. This is why NetStatusEvent
is only handled once before its listener is removed. Any other than first event will throw that error.
So remove netConnect.removeEventListener(NetStatusEvent.NET_STATUS, arguments.callee);
NetConnection
dispatches that event quite a lot, depending on what is happening. You have to handle the event until every time. For a list of possible values of the info
property visit this Link. There's also a little example of how to handle the event at the end of the page.