hi there! ive been working on a sniper game and im having trouble with dynamic text for scoring.

heres the thing.

i got a button which registers hits inside a MC. so thats this
Actionscript Code:
on(press)
{play();
 sound = new Sound();
    sound.attachSound("die3");
    sound.start(0, 1);


    scoret.text = scoret+10;    
           
    }

please ignore the sound cause that works fine. the problem is scoret.

in a different layer on a movie clip.

i got a dynamic text inside. instance named scoret.

what im trying to do is whenever the button is pressed. it should add +10 to scoret.

but i dont have any error nor anything showing in my dynamic text!

thanks in advance for the help!