Change dynamic text

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.


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

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

Not working. Anyone got an answer?