Modifying dynamic text inside Buttons

Hello,

I have a flash project that I’m working on that changes text color depending on the background image loaded. I was able to change all the content text to a different color using dynamic text and code like:

text.setTextFormat(_global.color_change)

The problem is that I also have text buttons that need to change color as well. I just can’t seem to change the dynamic text within the button. It seems that i can’t put actionscript inside the button on a layer and I can’t reference the text fomr outside the button.

Any ideas?