F8 AS2 noob; dynamic but code

Hi, noob here

I’m creating buttons dynamically, but I want to add code also.

something like (psuedo)

[thumb + i].on Release = “_parent.thumb” + i + “Pressed()”

can that work?

I think I need targetMc?

Thanks