Add code to attachMovie

So a clip is attached to a clip, and that works fine, but how do I get code on to the attached clip?

I’ve tried duplicateMovieClip…but it’s not working…