I have a function as follows:
- Code: Select all
function keyPressed(e:KeyboardEvent):void
{
connection.send("Key Pressed");
}
This wont work because connection isn't part of this function, but if that's the case how can I use connection.send when a key is pressed. How would I call the handleJoin function without using PlayerIO.connect everytime?