Need help understanding classes

Ok, so I want to “attach” a variable to a movieclip, do I need to create the movieclip in the class file?

What I have is a movieclip in the library that is placed on stage multiple times. What I would like to do is have a class that when one of the movieclips is clicked, will add a variable to that particular instance of the movieclip.