# Change dynamic text

**URL:** <https://forum.kirupa.com/t/change-dynamic-text/124350>\
**Category:** Uncategorized\
**Created:** [October 2, 2004, 4:27pm UTC](https://forum.kirupa.com/t/change-dynamic-text/124350 "2004-10-02T16:27:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dru\_nasty](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@dru\_nasty](https://forum.kirupa.com/u/dru_nasty)\
**Post date:** [October 2, 2004, 4:27pm UTC](https://forum.kirupa.com/t/change-dynamic-text/124350/1 "2004-10-02T16:27:34Z")

</div>

I’ve got a mc with a dynamic text field in it.(using the mc as a button, and the text is the button label). I dragged two instances of the clip onto the stage and gave them each an instance name. (button1 & button2). Also, within the clip, I gave my dynamic text field and instance name of ‘myText’.  
So what I want, is to be able to change the text for each button. Since if you do this manually, the text changes for every button. So I slapped this in the first frame of the main timeline.

```auto

button1.onLoad = function() {
this.myText.text = "home";
}

button2.onLoad = function() {
this.myText.text = "about";
}

```

Not working. Anyone got an answer?
