I think its pretty much explained but simply this is the way I do it
-If the text box had the var of score and you want it to say 5
_root.score=5;
-If you stuck the text box inside a movie clip with the instance name of "scoreMC"
_root.scoreMC.score=5;
If you want the score to follow the character round the stage say your characters instance name is "hero" put this AS on your scoreMC
onClipEvent (enterFrame) {
if (_root.hero._x>_x) {
_x += 1;
}
if (_root.hero._x<_x) {
_x -= 1;
}
if (_root.hero._y>_y) {
_y += 1;
}
if (_root.hero._y<_y) {
_y -= 1;
}
}