1071: syntax error: produce a keyword (for example the function) after attribute _ definition, not root.

I followed a tutorial on YouTube about creating a leader board for a game.

After you set:

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 with the Syntaxt error above.

Can anyone help please?

When you write this program in AS3 shoud you do not use _root. Instead of _root, you can use MovieClip (root).

Tags: Adobe Animate

Similar Questions

Maybe you are looking for

  • How to remove the password in Windows Vista?

    Hello!Maybe someone can help me... I have a laptop - Satellite L300-11 q. Windows does not correctly load, and when I try to run the recovery it asks password administrator... But I never put this password. What should I do?

  • Satellite U400 - doesn't have a Bios update procedure

    Hey guys,. I need help!I was updating my laptop works Bios and I had the power cord plugged in (no battery, he was at home).In any case, we had a power outage in the heart when I was doing the set date. Now, when the computer starts all the lights co

  • Hulu app frozen on apple tv

    I install a new apple TV (the 64 GB model) downloaded the HULU app, when I opened the app, it won't go past the opening screen, I can click on the trial version free start or sign in. no effect, other applications loading fine and work

  • PROBLEMA CON DISCO DURO EXTERNAL

    Do disco duro external Toshiba al conectarlo're detectado o me muestra error 22 y windows no habilitarlo is can what encuentra disabled. Esto are therefore desconectarlo sin modo seguro por error del operator hacerlo. MI pregunta seria TR estara dama

  • Unexpected reboot Windows 2008 R2 server caused by PROCEXP111. SYS

    The computer was restarted after a bugcheck.  The bugcheck was: 0 x 00000050 (0xfffffa80bd8dc050, 0 x 0000000000000000, 0xfffff88008072ddd, 0 x 0000000000000000). A dump was saved in the: C:\Windows\Minidump\052313-36332-01.dmp. Report ID: 052313-363