Dynamic text with button

Hi!

I’m trying to have a button with dynamic text to change the name for each button. Here is the code I entered (btn is my button, and btn0 is my dynamic text field):

btn.btn0.text="Work";

but here is the output error I receive:

TypeError: Error #1009: Cannot access a property or method of a null object reference. at MadP2_2_fla::MainTimeline/frame1()

I will be so grateful for any help!
Thanks