Quick button question

If I have a Button(myButton) in my library, and a dynamic text field (myText) attached to the button (and also in the library) how do I reference the myText field to write to it?

I’m using the addChild method to populate the stage with buttons, but can’t seem to access the dynamic text fields.

Any help appreciated.