AS3 NetConnection Recommended Usage
What is the recommended approach for using the NetConnection class?
- Repeated usage, use one NetConnection instance to send all messages.
- What's the behavior of a single NetConnection instance when you send a second message before the f开发者_开发问答irst one completes? Does it matter?
- Create one NetConnection instance for every message.
I guess you should ask your instance for uncompleted operations. If your instance is not occupied feel free to reuse it. Otherwise create a new one.
Maybe object pooling is a keyword here
精彩评论