1071: Syntax error: expected a definition keyword (such as function) after attribute _, not root.
I've been following a tutorial on YouTube on how to create a leader board for a game.
After putting in:
stop();
_ root.pos = SharedObject.getLocal("scoresTut");
_ root.pos.data.player1=_ root.player1.text;
_ root.pos.data.player2=_ root.player2.text;
_ root.pos.data.player3=_ root.player3.text;
_ root.pos.data.player4=_ root.player4.text;
_ root.pos.data.player5=_ root.player5.text;
_ root.pos.data.player6=_ root.player6.text;
_ root.pos.data.player1Score=_ root.player1.Score;
_ root.pos.data.player2Score=_ root.player2.Score;
_ root.pos.data.player3Score=_ root.player3.Score;
_ root.pos.data.player4Score=_ root.player4.Score;
_ root.pos.data.player5Score=_ root.player5.Score;
_ root.pos.data.player6Score=_ root.player6.Score;
It came up with the Syntaxt error above.
Can anyone help please?