Dice rolling problems

I have a dynamic textfield var_name: mcRes and I have a button. On the button I place the following code:

on(press){

dRoller = Math.floor(Math.random() * (7 - 1)) + 1;

_root.mcRes.trace(dRoller);

}

I know that it generates a random number for a D6 , because the output windows says so. However, the result is not being sent to the textfield mcRes.I can’t figure out why. Can anyone help me with that one little thing that I’m missing? Thanks.

Dave