Attaching and Removing Movie Clip

Advance Thanks for your valuable help

My Concept:

When i click an image i want to attach a animated movie clip with that image, i tried attach movie for that concept and its working fine, but i want to remove that animated movie clip when the same image is clicked again, how to check whether the animated movie clip is attached with the image, Please Help me out

Regards