Dynamically created buttons & text fields

I am creating a CMS (AS3) and need to know how to link dynamically created buttons with the dynamically created text fields that display the incoming data.

Thanks for anticipated help!