I'm trying to get a reference to the client and connection on the stage/root/whatever, so that I can easily access it anywhere in my game. I've found a workaround for the connection, but none of my attempts have successfully worked for client. The only place I can access it, as of now, is in my handleConnect() function. So how would I go about getting a reference to the client where I can easily access it. (Also, how would I do that for connection? My current way works well enough, but it's an obvious workaround, so I'd like to do it a simpler way if possible).
Thanks in advance for any help.