Question on drag and drop feature

Hi friends,

My flash movie has interactive drag and drop reactangles(shape). Before dragging and dropping these onto a particular place,the application requires useres to name these shapes i.e input some number/text onto these. I tried to use the dynamic text property but when I drag the shape the text is left behind. I tried to group the two together, but still I did not succeed. I think I am not doing it correctly.

I hope someone can suggest something here.

Thanks,
bmw