I've made a movieclip of a button. Now I want to set a dynamic text in the main movie by clicking on this button.

Is there an actionscript for this.