Variables

I’m attempting to get a variable to be displayed on a screen by the use of dynamic text thats been linked to a variable via the properties menu. The variable however is attached to a move clip and is within an onClipEvent.
For some reason I can only get the varible to be displayed by putting it on a frame.
So is there anyway i can get a varible to be displayed that is within a MC or can I use a command in that MC to change a varible thats stored in a frame?

Thanks for your time.