Problems with dynamic text

This is done is Actionscript 2/1 setting on Adobe Flash CS6.
I am having some problems creating a dynamic text box to display how much money you have in a game I am working on. What I have right now is:
_root.hud.credits = 50;
The text field is inside a movie clip named hud. When I run my game the field just remains blank, and does not display 50. I have set the “variable” of the dynamic text as credits, not the instance, but I have tried switching them and it does not work still.